dell / csm

Dell Container Storage Modules (CSM)
Apache License 2.0
71 stars 16 forks source link

[BUG]: "make install" command is failing for csm-operator #1601

Closed mgandharva closed 5 days ago

mgandharva commented 5 days ago

Bug Description

For running operator in dev mode, it required to run following command in csm-operator folder make install and make run. While running make install it will produce following error Error: load packages in root "/root/csm-operator/tests/e2e": err: exit status 1: stderr: go: updates to go.mod needed; to update it: go mod tidy

Logs

root@master-1-ro7wVbIvOtAmB:~/csm-operator# make install test -s /root/csm-operator/bin/controller-gen && /root/csm-operator/bin/controller-gen --version | grep -q v0.15.0 || \ GOBIN=/root/csm-operator/bin go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.15.0 /root/csm-operator/bin/controller-gen rbac:roleName=manager-role crd webhook paths="./..." output:crd:artifacts:config=config/crd/bases Error: load packages in root "/root/csm-operator/tests/e2e": err: exit status 1: stderr: go: updates to go.mod needed; to update it: go mod tidy

Usage: controller-gen [flags]

Examples:

Generate RBAC manifests and crds for all types under apis/,

    # outputting crds to /tmp/crds and everything else to stdout
    controller-gen rbac:roleName=<role name> crd paths=./apis/... output:crd:dir=/tmp/crds output:stdout

    # Generate deepcopy/runtime.Object implementations for a particular file
    controller-gen object paths=./apis/v1beta1/some_types.go

    # Generate OpenAPI v3 schemas for API packages and merge them into existing CRD manifests
    controller-gen schemapatch:manifests=./manifests output:dir=./manifests paths=./pkg/apis/... 

    # Run all the generators for a given project
    controller-gen paths=./apis/...

    # Explain the markers for generating CRDs, and their arguments
    controller-gen crd -ww

Flags: -h, --detailed-help count print out more detailed help (up to -hhh for the most detailed output, or -hhhh for json output) --help print out usage and a summary of options --version show version -w, --which-markers count print out all markers available with the requested generators (up to -www for the most detailed output, or -wwww for json output)

Options

generators

+webhook[:headerFile=][,year=] package generates (partial) {Mutating,Validating}WebhookConfiguration objects.
+schemapatch[:generateEmbeddedObjectMeta=],manifests=[,maxDescLen=] package patches existing CRDs with new schemata.
+rbac[:headerFile=],roleName=[,year=] package generates ClusterRole objects.
+object[:headerFile=][,year=] package generates code containing DeepCopy, DeepCopyInto, and
+crd[:allowDangerousTypes=][,crdVersions=<[]string>][,deprecatedV1beta1CompatibilityPreserveUnknownFields=][,generateEmbeddedObjectMeta=][,headerFile=][,ignoreUnexportedFields=][,maxDescLen=][,year=] package generates CustomResourceDefinition objects.

generic

+paths=<[]string> package represents paths and go-style path patterns to use as package roots.

output rules (optionally as output::...)

+output:artifacts[:code=],config= package outputs artifacts to different locations, depending on
+output:dir= package outputs each artifact to the given directory, regardless
+output:none package skips outputting anything.
+output:stdout package outputs everything to standard-out, with no separation.

run controller-gen rbac:roleName=manager-role crd webhook paths=./... output:crd:artifacts:config=config/crd/bases -w to see all available markers, or controller-gen rbac:roleName=manager-role crd webhook paths=./... output:crd:artifacts:config=config/crd/bases -h for usage make: *** [Makefile:61: manifests] Error 1

Screenshots

No response

Additional Environment Information

No response

Steps to Reproduce

clone csm-operator: https://github.com/dell/csm-operator.git cd csm-operator then run make install

This will produce the error

Expected Behavior

It should complete the step without any error.

CSM Driver(s)

NA

Installation Type

No response

Container Storage Modules Enabled

No response

Container Orchestrator

NA

Operating System

NA

ashleyvjoy commented 5 days ago

/sync

csmbot commented 5 days ago

link: 30552

meggm commented 5 days ago

Issue is now resolved