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

Using command "dr health --debug-ms 1" does not generate any debug messages #338

Open
netzzer opened this issue Nov 19, 2024 · 2 comments
Open
Assignees

Comments

@netzzer
Copy link

netzzer commented Nov 19, 2024

Using debug flag does not output any messages. Krew rook-ceph plugin version v0.9.2.

$ kubectl rook-ceph -n openshift-storage dr health --debug-ms 1
Info: fetching the cephblockpools with mirroring enabled
Info: found "ocs-storagecluster-cephblockpool" cephblockpool with mirroring enabled
Info: running ceph status from peer cluster
Info:   cluster:
    id:     29148898-e40d-44f5-8ce8-f361fb33a025
    health: HEALTH_WARN
            2 MDSs behind on trimming
 
  services:
    mon:        3 daemons, quorum a,b,c (age 29h)
    mgr:        a(active, since 11d), standbys: b
    mds:        1/1 daemons up, 1 hot standby
    osd:        3 osds: 3 up (since 11d), 3 in (since 3w)
    rbd-mirror: 1 daemon active (1 hosts)
    rgw:        1 daemon active (1 hosts, 1 zones)
 
  data:
    volumes: 1/1 healthy
    pools:   12 pools, 169 pgs
    objects: 3.40k objects, 11 GiB
    usage:   35 GiB used, 1.5 TiB / 1.5 TiB avail
    pgs:     169 active+clean
 
  io:
    client:   2.1 KiB/s rd, 7.4 KiB/s wr, 3 op/s rd, 0 op/s wr
 

Info: running mirroring daemon health
health: OK
daemon health: OK
image health: OK
images: 0 total
@jarrpa
Copy link

jarrpa commented Nov 21, 2024

I had a peek at this and at least managed to find where the issue is: https://github.com/rook/kubectl-rook-ceph/blob/master/pkg/dr/health.go#L68-L72

I'm not 100% sure if the fix is as easy as it seems, it may be a bit more nuanced than just outputting everything on error as well.

@subhamkrai subhamkrai assigned jarrpa and unassigned subhamkrai Nov 22, 2024
@subhamkrai
Copy link
Collaborator

Based on offline discussion with @jarrpa assigning the issue to him

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

No branches or pull requests

3 participants