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

verbose / debug mode? #228

Open
reefland opened this issue Mar 6, 2024 · 1 comment
Open

verbose / debug mode? #228

reefland opened this issue Mar 6, 2024 · 1 comment
Assignees

Comments

@reefland
Copy link

reefland commented Mar 6, 2024

I had a notice about CSIDriver Object missing, but not sure what its looking for that could be missing, below that it says This is a CSI driver.

Explore your Kubernetes storage options
**************************************
Kubernetes Version Check:
  Valid kubernetes version (v1.28.6+k3s2)  -  OK

RBAC Check:
  Kubernetes RBAC is enabled  -  OK

Aggregated Layer Check:
  The Kubernetes Aggregated Layer is enabled  -  OK

Available Storage Provisioners:

  rook-ceph.rbd.csi.ceph.com:
    Missing CSIDriver Object. Required by some provisioners.
    This is a CSI driver!
    (The following info may not be up to date. Please check with the provider for more information.)
    Provider:            Ceph RBD
    Website:             https://github.com/ceph/ceph-csi
    Description:         A Container Storage Interface (CSI)  Driver for Ceph RBD
    Additional Features: Raw Block, Snapshot, Expansion, Topology, Cloning

    Storage Classes:
      * ceph-block
      * csi-ceph-block
    Volume Snapshot Classes:
      * ceph-block
      * csi-ceph-blockpool

    To perform a FIO test, run-
      ./kubestr fio -s <storage class>

    To perform a check for block device support, run-
      ./kubestr blockmount -s <storage class>

    To test CSI snapshot/restore functionality, run-
      ./kubestr csicheck -s <storage class> -v <volume snapshot class>

All the test pass except this one, but seems to get past the snapshot.

$ ./kubestr csicheck -s csi-ceph-block -v csi-ceph-blockpool
Creating application
  -> Created pod (kubestr-csi-original-pod5qrp7) and pvc (kubestr-csi-original-pvc8jj4k)
Taking a snapshot
  -> Created snapshot (kubestr-snapshot-20240306111352)
Restoring application
  -> Restored pod (kubestr-csi-cloned-podvk896) and pvc (kubestr-csi-cloned-pvc77rcv)
Cleaning up resources
CSI checker test:
  Failed to fetch data from pod. Failure may be due to permissions issues. Try again with runAsUser=1000 option.: Failed to exec command in pod: command terminated with exit code 1  -  Error
Error: Failed to fetch data from pod. Failure may be due to permissions issues. Try again with runAsUser=1000 option.: Failed to exec command in pod: command terminated with exit code 1

Since it cleaned up all resources, I have nothing to look at to troubleshoot and don't see a way to get more verbose or debug information from the test. Suggestions? Thanks

@reefland
Copy link
Author

reefland commented Mar 6, 2024

Resolved test issue. But request for verbose / debug mode would be handy.

$ ./kubestr csicheck -s csi-ceph-block -v csi-ceph-blockpool
Creating application
  -> Created pod (kubestr-csi-original-podd6czf) and pvc (kubestr-csi-original-pvc5ql6x)
Taking a snapshot
  -> Created snapshot (kubestr-snapshot-20240306132739)
Restoring application
  -> Restored pod (kubestr-csi-cloned-podzccg5) and pvc (kubestr-csi-cloned-pvc4f8rs)
Cleaning up resources
CSI checker test:
  CSI application successfully snapshotted and restored.  -  OK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants