ceph / ceph/ceph-csi-operator

Helm: ceph-csi-drivers fails to deploy when clientProfiles[0].rbd is defined

Open Beginner friendly
#591 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
63
Forks
59
Avg merge
1d 19h
Merged PRs (30d)
19

Description

# Describe the bug #

Helm: ceph-csi-drivers chart fails to deploy when clientProfiles[0].rbd is defined, reporting that the value is null when they are actually defined. Removing the rbd section from clientProfiles resolves the issue but this may not be desirable for those who want to adjust values.

# Environment details #

- Image/version of ceph-csi-operator : 1.0.4
- Image/version of Ceph-CSI driver : 1.0.4
- Kubernetes cluster version : 1.36
- Ceph cluster version : N/A

# Steps to reproduce #

Steps to reproduce the behavior:

values.yaml
```
clientProfiles:
- name: "my-profile"
cephConnection:
name: "my-connection"
rbd:
radosNamespace: ""
cephCsiSecrets:
controllerPublishSecret:
name: my-secret
namespace: ceph-csi-operator-system
```

# Actual results #

Helm fails to deploy ceph-csi-drivers when following the respective values.yaml [example](https://github.com/ceph/ceph-csi-operator/blob/main/deploy/charts/ceph-csi-drivers/values.yaml).

# Expected behavior #

Helm should deploy ceph-csi-drivers

# Logs #
```
Warning UpgradeFailed 1s (x5 over 3m4s) helm-controller (combined from similar events): Helm upgrade failed for release ceph-csi-operator-system/ceph-csi-driver with chart ceph-csi-drivers@1.0.4: failed to create resource: server-side apply failed for object ceph-csi-operator-system/my-profile csi.ceph.io/v1, Kind=ClientProfile: ClientProfile.csi.ceph.io "my-profile" is invalid: [spec.rbd: Invalid value: "null": spec.rbd in body must be of type object: "null", : Invalid value: null: some validation rules were not checked because the object was invalid; correct the existing errors to complete validation]
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with deploy/charts/ceph-csi-drivers/values.yaml and the chart templates that render clientProfiles, using the supplied clientProfiles[0].rbd example to reproduce the rendered ClientProfile. Confirm the deployment succeeds and spec.rbd is an object rather than null when rbd is defined.

Written by the indexing model from the issue text.

Assessment

Tech stack
helm, kubernetes
Domain
devops, infrastructure
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
74/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.