lbaas: command "--admin-state-down" doesn't work in neutron lb-vip.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-neutronclient |
Expired
|
Undecided
|
Unassigned |
Bug Description
in openstack kilo ubuntu 14.04 setup, when try to create or update lb vip admin state using command "--admin-
[root@nsj1 ~]# neutron lb-vip-create
usage: neutron lb-vip-create [-h] [-f {shell,
neutron lb-vip-create: error: too few arguments
create or update will be failed command including parameter "--admin_
[root@nsj1 ~]# neutron lb-vip-create --connection-limit 0 --description vip --name lb_vip --protocol-port 80 --protocol TCP --subnet-id 0f27a0a7-
Bad Request (HTTP 400) (Request-ID: req-a8df8529-
[root@nsj1 ~]# neutron lb-vip-update 5c8d692e-
Bad Request (HTTP 400) (Request-ID: req-8fd0f8c4-
if using "--admin_state_up False" or "--admin_state_up True", then it will be successful.
[root@nsj1 ~]# neutron lb-vip-update 5c8d692e-
Updated vip: 5c8d692e-
Changed in python-neutronclient: | |
assignee: | nobody → Jas (singhj) |
assignee: | Jas (singhj) → nobody |
Could you clarify in which command --admin-state-down does not work? lb-vip-create? lb-vip-update?
For lb-vip-update, we don't have a plan to support --admin-state-down.
Instead we are discussing to register --admin-state-up True/False explicitly.
For lb-vip-create, could you provide an exact command-line example?
In the master of neutronclient, it works as expected.
I would like to know your neutronclient version.
Kilo is not shipped with Ubuntu 14.04 so I think you got neutroncleint from somewhere (cloud archive or pypi).
ubuntu@dev16:~$ neutron lb-vip-create --admin-state-down --name vip1 --protocol-port 80 --protocol HTTP --subnet-id mysubnet mypool ------- ------- -+----- ------- ------- ------- ------- -----+ ------- ------- -+----- ------- ------- ------- ------- -----+ 44d6-4c4f- bf7d-7f18182825 24 | 8709-446c- 9b57-0a208eeae4 11 | d646-4254- a768-54ff138e56 7c | e590-4b35- a662-1ea9c36f4c ec | a987736c8c68417 8d | ------- ------- -+----- ------- ------- ------- ------- -----+
Created a new vip:
+------
| Field | Value |
+------
| address | 192.168.100.2 |
| admin_state_up | False |
| connection_limit | -1 |
| description | |
| id | c3658b98-
| name | vip1 |
| pool_id | ada28c0c-
| port_id | 3f6e7057-
| protocol | HTTP |
| protocol_port | 80 |
| session_persistence | |
| status | PENDING_CREATE |
| status_description | |
| subnet_id | 92672a45-
| tenant_id | 8f0ebf767043483
+------