hpe-storage / csi-driver

A Container Storage Interface (CSI) driver from HPE
https://scod.hpedev.io
Apache License 2.0
55 stars 53 forks source link

one or more objects failed to apply, reason: HPECSIDriver.storage.hpe.com "csi-driver" is invalid: spec.disableNodeConfiguration: Required value (retried 2 times). #364

Closed nin0-0 closed 7 months ago

nin0-0 commented 7 months ago

Hi,

I'm trying to deploy the CRD with argocd but I have a weird situation. When I sync the csi-driver HPECSIDriver I get the error

one or more objects failed to apply, reason: HPECSIDriver.storage.hpe.com "csi-driver" is invalid: spec.disableNodeConfiguration: Required value (retried 2 times).

When I add it, the sync works but in the logs it says disableNodeConfiguration is not in the schema:

oc logs -n hpe-csi-driver pods/hpe-csi-driver-operator-75df9f6664-sjvb8
{
  "level": "error",
  "ts": 1700841795.6133084,
  "msg": "Reconciler error",
  "controller": "hpecsidriver-controller",
  "object": {
    "name": "csi-driver",
    "namespace": "hpe-csi-driver"
  },
  "namespace": "hpe-csi-driver",
  "name": "csi-driver",
  "reconcileID": "7b56cc4c-1d1b-4626-8ec7-fd1299f5f140",
  "error": "failed to install release: values don't meet the specifications of the schema(s) in the following chart(s):\nhpe-csi-driver:\n- (root): Additional property disableNodeConfiguration is not allowed\n",
  "stacktrace": "sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.13.0/pkg/internal/controller/controller.go:326\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.13.0/pkg/internal/controller/controller.go:273\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.13.0/pkg/internal/controller/controller.go:234"
}

Am I doing something wrong?

grant-cl commented 7 months ago

have the same issue, fresh install of openshift 4.12.42 pulled in hpe 2.4.0 after adding disableNodeConfiguration to the HPECSIDriver we are stuck on: Additional property disableNodeConfiguration is not allowed

datamattsson commented 7 months ago

We pushed the wrong Operator bundle. Red Hat's CI didn't catch it. Red Hat is trying to fix it. Hopefully this week. Install the Helm chart if you're on 4.13 or 4.14 in the meantime. 4.12 should still run HPE CSI Driver 2.3.0.

nin0-0 commented 7 months ago

hpe-csi-operator.v2.4.0 is available for ocp 4.12 too

nin0-0 commented 7 months ago

I've been trying to install v.2.3.0 but can't seem to find it (nor 2.4.0).

In the description of the subscription I see: Message: constraints not satisfiable: no operators found in package hpe-csi-operator in the catalog referenced by subscription hpe-csi-operator, subscription hpe-csi-operator exists

So okay, I guessed maybe 2.4.0 is not available, so I patched the subs, but same result. Also cleanly deleted all subs, crds, but same result.

I'm trying now:

apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
  annotations:
    argocd.argoproj.io/sync-wave: "2"
    argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
  name: hpe-csi-operator
  namespace: hpe-csi-driver
spec:
    channel: stable
    installPlanApproval: Manual
    name: hpe-csi-operator
    source:  certified-operators
    sourceNamespace: openshift-marketplace
    startingCSV: 2.3.0

Any update on this? It's related to the operator publishing mistake I'm guessing?

Hints about getting operators smoothly installed through argocd (redhat gitops) very welcome too.

Thanks

datamattsson commented 7 months ago

Any update on this? It's related to the operator publishing mistake I'm guessing?

Keep monitoring the catalog, v2.4.0 will be republished.

nin0-0 commented 7 months ago

Can we get an estimate on when? Redhat is saying the operator is removed on request of hpe and thay you will republish?

datamattsson commented 7 months ago

It will be republished shortly (days).

nin0-0 commented 7 months ago

it's back, thanks