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

server.py: remove '<pool>.<group>' from metadata id #1080

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

Conversation

VallariAg
Copy link
Member

In service_map registeration, shorten "id" by
removing rbd pool name and gw group name.

Before: "id": "mypool.mygroup1.ceph-nvme-vm8.fntlci"
After: "id": "ceph-nvme-vm8.fntlci"

This helps to display short gateway names in "ceph -s" output. Exmaple:

    nvmeof (mygroup1) : 2 gateways active (ceph-nvme-vm13.azfdpk, ceph-nvme-vm14.hdsoxl)
    nvmeof (mygroup2) : 2 gateways active (ceph-nvme-vm11.hnooxs, ceph-nvme-vm12.wcjcjs)

In service_map registeration, shorten "id" by
removing rbd pool name and gw group name.

Before: `"id": "mypool.mygroup1.ceph-nvme-vm8.fntlci"`
After: `"id": "ceph-nvme-vm8.fntlci"`

This helps to display short gateway names in "ceph -s"
output. Exmaple:
```
    nvmeof (mygroup1) : 2 gateways active (ceph-nvme-vm13.azfdpk, ceph-nvme-vm14.hdsoxl)
    nvmeof (mygroup2) : 2 gateways active (ceph-nvme-vm11.hnooxs, ceph-nvme-vm12.wcjcjs)
```

Signed-off-by: Vallari Agrawal <[email protected]>
Copy link
Collaborator

@baum baum left a comment

Choose a reason for hiding this comment

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

Looks good. How gateway groups (group_name,pool1) and (group_name.pool2), i.e. with the same group name, but different pools, would be displayed? Could we use service id in the parentheses?

Would the following make sense?

    nvmeof (mypool.mygroup1) : 2 gateways active (ceph-nvme-vm13.azfdpk, ceph-nvme-vm14.hdsoxl)
    nvmeof (mypool.mygroup1) : 2 gateways active (ceph-nvme-vm11.hnooxs, ceph-nvme-vm12.wcjcjs)

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

Successfully merging this pull request may close these issues.

2 participants