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

Example for list pools #331

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

OdedViner
Copy link
Contributor

@OdedViner OdedViner commented Oct 13, 2024

Input:

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Launch",
            "type": "go",
            "request": "launch",
            "mode": "debug",
            "program": "${file}",
            "env": {},
            "args": ["ceph", "osd", "lspools", "--format", "json-pretty"]
        }
    ]
}

Output:


[
    {
        "poolnum": 1,
        "poolname": ".mgr"
    },
    {
        "poolnum": 2,
        "poolname": "replicapool"
    }
]

#20
Checklist:

  • Commit Message Formatting: Commit titles and messages follow guidelines in the developer guide.
  • Reviewed the developer guide on Submitting a Pull Request
  • Documentation has been updated, if necessary.
  • Unit tests have been added, if necessary.
  • Integration tests have been added, if necessary.

Signed-off-by: Oded Viner <[email protected]>
Copy link
Collaborator

@subhamkrai subhamkrai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@OdedViner you are listing only pool name and as part of the issue #20 we need to add command that will list the subvolumes. @yati1998 can you help @OdedViner on this as you have worked in the past adding subvolume changes

@yati1998
Copy link
Contributor

@OdedViner I guess you need to print the output for rbd image ls from what I see #20 , feel free to ping me for any help

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

Successfully merging this pull request may close these issues.

3 participants