lbaas member update accept --admin-state-up not --admin-state-down
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-neutronclient |
Invalid
|
Undecided
|
Unassigned |
Bug Description
This is found at Kilo and Mitaka releases.
--admin-state-down argument should be --admin-state-up
I think this is not lbaas issue, but neutron CLI.
$ neutron help lbaas-member-update
usage: neutron lbaas-member-update [-h] [--request-format {json}]
LBaaS v2 Update a given member.
positional arguments:
MEMBER ID or name of member to update.
POOL ID or name of the pool that this member belongs to
optional arguments:
-h, --help show this help message and exit
--request-format {json}
--admin-
--weight WEIGHT Weight of member in the pool (default:1, [0..256])
--name NAME Updated name of the member.
## test logs
stack@falcon-
$ env|grep OS_
OS_REGION_
OS_LOG_
OS_PROJECT_
OS_IDENTITY_
OS_PASSWORD=
OS_AUTH_URL=http://
OS_USERNAME=Venus
OS_TENANT_
OS_VOLUME_
OS_NO_CACHE=1
stack@falcon-
$ neutron lbaas-loadbalan
{
"loadbalancer": {
"name": "venus-lb2-http",
{
],
}
],
"pools": [
{
},
],
}
],
"id": "c47585b8-
}
}
stack@falcon-
$ neutron lbaas-member-list venus-lb2-
+------
| id | name | address | admin_state_up |
+------
| 49fb6de4-
| b9f625d1-
+------
stack@falcon-
$ neutron lbaas-member-list venus-lb2-
+------
| id | name | address | subnet_id | admin_state_up |
+------
| 49fb6de4-
| b9f625d1-
+------
stack@falcon-
$ neutron help lbaas-member-update
usage: neutron lbaas-member-update [-h] [--request-format {json}]
LBaaS v2 Update a given member.
positional arguments:
MEMBER ID or name of member to update.
POOL ID or name of the pool that this member belongs to
optional arguments:
-h, --help show this help message and exit
--request-format {json}
--admin-
--weight WEIGHT Weight of member in the pool (default:1, [0..256])
--name NAME Updated name of the member.
stack@falcon-
$ neutron lbaas-member-update --admin-state-down m1 venus-lb2-
Must specify new values to update lbaas_member
stack@falcon-
$ neutron lbaas-member-update --admin-
usage: neutron lbaas-member-update [-h] [--request-format {json}]
neutron lbaas-member-
Try 'neutron help lbaas-member-
stack@falcon-
$ neutron lbaas-member-update --admin-
Updated member: m1
stack@falcon-
$ neutron lbaas-member-list venus-lb2-
+------
| id | name | address | admin_state_up |
+------
| 49fb6de4-
| b9f625d1-
+------
stack@falcon-
$ neutron lbaas-member-update --admin-
Invalid input for operation: 'Down' cannot be converted to boolean.
Neutron server returns request_ids: ['req-f007d93f-
stack@falcon-
$ neutron lbaas-member-update --admin-
Updated member: m1
stack@falcon-
$ neutron lbaas-member-list venus-lb2-
+------
| id | name | address | admin_state_up |
+------
| 49fb6de4-
| b9f625d1-
+------
stack@falcon-
$
Changed in python-neutronclient: | |
status: | New → Invalid |
Please see https:/ /review. openstack. org/#/c/ 306906/