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

Provide a gRPC/CLI command to get the ana optimized states per subsystem on a specific gw #973

Open
caroav opened this issue Nov 28, 2024 · 3 comments
Assignees

Comments

@caroav
Copy link
Collaborator

caroav commented Nov 28, 2024

For example:

./usr/libexec/spdk/scripts/rpc.py nvmf_subsystem_get_listeners nqn.2016-06.io.spdk:cnode1.mygroup1

Will return something like:
{
"address": {
"trtype": "TCP",
"adrfam": "IPv4",
"traddr": "10.243.64.12",
"trsvcid": "4420"
},
"ana_states": [
{
"ana_group": 1,
"ana_state": "optimized"
},
{
"ana_group": 2,
"ana_state": "inaccessible"
},
{
"ana_group": 3,
"ana_state": "inaccessible"
},
{
"ana_group": 4,
"ana_state": "inaccessible"
},
{
"ana_group": 5,
...

We need to see the list of ana group ids that are defined as optimized. The command should be something like:

cli subsystem list optimized

@gbregman
Copy link
Contributor

@caroav we already have a "listener list" command. We can just add this information to its output.

@caroav
Copy link
Collaborator Author

caroav commented Nov 28, 2024

Its not the same. The listeners is a static configuration. The ana states are dynamic and per spdk (per gw).

@gbregman
Copy link
Contributor

We agreed to add this information to the existing "listener list" command. When the listener belongs to a different gateway and the ANA information is not available we'll just put "<n/a>" instead. This information will only be added when the user pass a special flag in the command line so it won't change the output in a regular use.

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

No branches or pull requests

2 participants