neutron agent. list API lacks sort and page feature
Bug #1877254 reported by
yong sheng gong
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
New
|
Medium
|
Unassigned |
Bug Description
We have hundreds of neutron agents deployed, but currently, the agent list API does not support sorting and paging, which is very bad.
Changed in neutron: | |
status: | New → Incomplete |
importance: | Undecided → Low |
Changed in neutron: | |
assignee: | nobody → vinay harsha mitta (vinay7) |
Changed in neutron: | |
status: | Triaged → In Progress |
Changed in neutron: | |
status: | New → In Progress |
Changed in neutron: | |
assignee: | nobody → Heather Lemon (hypothetical-lemon) |
To post a comment you must log in.
What version are You using? I just checked on RHOSP-16 which is based on stable/train and the result is:
(overcloud) [stack@undercloud-0 ~]$ neutron agent-list --sort-column agent_type ------- ------- ------- ------- ----+-- ------- ------- ----+-- ------- ------- ------- ----+-- ------- ------- ---+--- ----+-- ------- ------- +------ ------- ------- ------- + ------- ------- ------- ------- ----+-- ------- ------- ----+-- ------- ------- ------- ----+-- ------- ------- ---+--- ----+-- ------- ------- +------ ------- ------- ------- + ad06-4455- 9c6b-6ad35f7b2f 5e | DHCP agent | controller- 2.redhat. local | nova | :-) | True | neutron-dhcp-agent | f415-4473- ac8e-9ca333b037 bc | DHCP agent | controller- 0.redhat. local | nova | :-) | True | neutron-dhcp-agent | 4ccb-4321- b170-2448344b92 fd | DHCP agent | controller- 1.redhat. local | nova | :-) | True | neutron-dhcp-agent | 57d8-4803- 9b44-942542e53d 6e | L3 agent | controller- 0.redhat. local | nova | :-) | True | neutron-l3-agent | 0bb3-48bb- a757-90956b8309 14 | L3 agent | controller- 1.redhat. local | nova | :-) | True | neutron-l3-agent | 0d0f-432a- a0ea-4420f1e889 21 | L3 agent | controller- 2.redhat. local | nova | :-) | True | neutron-l3-agent | 607a-4903- 9bf3-987743f237 a7 | L3 agent | compute- 1.redhat. local | nova | :-) | True | neutron-l3-agent | fc33-41c6- 8734-2cbe1c9a7a 5c | L3 agent | compute- 0.redhat. local | nova | :-) | True | neutron-l3-agent | 563c-4a2c- 9b41-b292a1aa87 6e | Metadata agent | compute- 0.redhat. local | | :-) | True | neutron- metadata- agent | c817-4755- 8628-e759402acc 5b | Metadata agent | controller- 0.redhat. local | | :-) | True | neutron- metadata- agent | f2e2-4db3- 8ff7-1765e5e5bb 93 | Metadata agent | controller- 2.redhat. local | | :-) | True | neutron- metadata- agent | d598-483c- bb57-4f616e631f bb | Metadata agent | controller- 1.redhat. local | | :-) | True | neutron- metadata- agent | 43d3-46de- 99bc-a8364f2604 57 | Metadata agent | compute- 1.redhat. local | | :-) | True | neutron- metadata- agent | 56b1-407a- 9903-2a6529d6be 77 | Open vSwitch agent | compute- 1.redhat. local | | :-) | True | neutron- openvswitch- agent | b379-4eb6- 8267-d76cd38f93 79 | Open vSwitch agent | controller- 0.redhat. local | | :-) | True | neutron- openvswitch- ...
neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
+------
| id | agent_type | host | availability_zone | alive | admin_state_up | binary |
+------
| 643a494d-
| 8a092f5b-
| 8a384ede-
| 2ec9c0d6-
| 758c19ef-
| 9cec9036-
| b0d7fb33-
| bf84115b-
| 386111f1-
| 43d33cd1-
| ad765ce7-
| c832081f-
| dbd82bdb-
| 274076b0-
| 98ed6974-