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

OKD v4.17.0-okd-scos.0 : The console does not show CSI Volume Snapshots for "All Projects" #2073

Open
titou10titou10 opened this issue Dec 21, 2024 · 0 comments

Comments

@titou10titou10
Copy link

titou10titou10 commented Dec 21, 2024

[UPDATE from initial post]
When selecting a specific project in the console, the VS are shown correctly. When selecting "All Projects" nothing is displayed...

Context

Describe the bug

After taking a volume snapshot of a PVC, the snapshot exists in OKD but the console does not show it in the VolumeSnapshotvue ("No VolumeSnapshots found") if the context is set to "All Projects", although theVolumeSnapshotContents page shows the corresponding "snapshot content" (those are not namespace bound)

From the VolumeSnapshotContents view, when choosing an entry and selecting the parent VolumeSnapshot, the details of the VolumeSnapshotis displayed

oc get VolumeSnapshot -Alists the Volume Snapshots in all projects...

The network request is that case is :

GET https://console-openshift-console.apps.<cluster domain>/api/kubernetes/apis/snapshot.storage.k8s.io/v1/namespaces/default/volumesnapshots?limit=250

It seems "namespaces/default" is incorrectly added to the query. As a comparison, for displaying the pods for all projects the query is:

GET https://console-openshift-console.apps.<cluster domain>/api/kubernetes/api/v1/pods?limit=250

Version

OKD v4.17.0-okd-scos.0 UPI install on baremetal
csi-driver nfs v4.9.0 (https://github.com/kubernetes-csi/csi-driver-nfs)

How reproducible

  • install a CSI driver that supports VolumeSnapshsots
  • create a StorageClass and a VolumeSnapshotClass that uses the csi driver
  • create a PVC linked to the StorageClass
  • via the console or with a manifest, create a Snapshot with the VolumeSnapshotClass
  • console: Storage > VolumeSnapshots, Project: All Projects : "No VolumeSnaphots found"
  • console: Storage > VolumeSnapshotContents: see the snapshot content
  • Select the vsc, select the "VolumeSnapshot" link: Display the VolumeSnapshot details
  • oc get VolumeSnapshot -A: shows the VolumeSnapshot for all projects
  • console: Home > Search. Resources=VolumeSnapshots: "No VolumeSnapshots found"
@titou10titou10 titou10titou10 changed the title OKD v4.17.0-okd-scos.0 : The console does not show CSI Volume Snapshots OKD v4.17.0-okd-scos.0 : The console does not show CSI Volume Snapshots for "All Projects" Dec 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants