Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while building STORK container image #812

Open
srk260999 opened this issue Mar 23, 2021 · 0 comments
Open

Error while building STORK container image #812

srk260999 opened this issue Mar 23, 2021 · 0 comments

Comments

@srk260999
Copy link

srk260999 commented Mar 23, 2021

Is this a BUG REPORT or FEATURE REQUEST?:

What happened:
After following the steps given in readme.md to build the recent STORK image, facing package independency issues
the steps which were followed to build STORK image:

  1. git clone [email protected]:libopenstorage/stork.git

    export DOCKER_HUB_REPO=myrepo

    export DOCKER_HUB_STORK_IMAGE=stork

    export DOCKER_HUB_STORK_TAG=latest

    make

  2. It asked to run go mod init and go mod vendor before makefile

Following above steps lead to error

Building the stork binary

github.com/libopenstorage/stork/pkg/metrics

../../pkg/metrics/metrics.go:62:33: "github.com/portworx/sched-ops/k8s/stork".Instance().WatchApplicationBackupSchedule undefined (type "github.com/portworx/sched-ops/k8s/stork".Ops has no field or method WatchApplicationBackupSchedule)
../../pkg/metrics/metrics.go:92:33: "github.com/portworx/sched-ops/k8s/stork".Instance().WatchMigrationSchedule undefined (type "github.com/portworx/sched-ops/k8s/stork".Ops has no field or method WatchMigrationSchedule)
make: *** [stork] Error 2

Tried changing versions manually , but fixing version for one package leads to dependency issues on other packages as described in #778

What you expected to happen:
Following steps mentioned container image for STORK should be built . Are there any other steps to be followed (other than mentioned in readme.md)
How to reproduce it (as minimally and precisely as possible):
By following steps given in readme.md for building STORK image

Anything else we need to know?:

Environment:

  • Kubernetes version (use kubectl version): 1.20.1
  • Cloud provider or hardware configuration:
  • OS (e.g. from /etc/os-release): CentOS
  • Kernel (e.g. uname -a): redhat
  • Install tools: go get
  • Others:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant