Skip to content

Error while building STORK container image #812

@srk260999

Description

@srk260999

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 git@github.com: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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions