yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #50957
[Bug 1582126] [NEW] when loadbalancer is created, name of the load balancer is not optional argument.
Public bug reported:
It is in kilo branch.
1. From following help information, name of the load balancer is an optional argument.
[root@opencos2 test_img(keystone_admin)]# neutron lbaas-loadbalancer-create -h
usage: neutron lbaas-loadbalancer-create [-h] [-f {shell,table,value}]
[-c COLUMN] [--max-width <integer>]
[--prefix PREFIX]
[--request-format {json,xml}]
[--tenant-id TENANT_ID]
[--description DESCRIPTION]
[--admin-state-down] [--name NAME]
[--provider PROVIDER]
[--vip-address VIP_ADDRESS]
VIP_SUBNET
LBaaS v2 Create a loadbalancer.
positional arguments:
VIP_SUBNET Load balancer VIP subnet.
optional arguments:
-h, --help show this help message and exit
--request-format {json,xml}
The XML or JSON request format.
--tenant-id TENANT_ID
The owner tenant ID.
--description DESCRIPTION
Description of the load balancer.
--admin-state-down Set admin state up to false.
--name NAME Name of the load balancer.
2. But if I don't input the name, it failes. So it seems that the name
is the positional argument.
[root@opencos2 test_img(keystone_admin)]# neutron lbaas-loadbalancer-create 502be3ac-f8d8-43b3-af5b-f0feada72aed
Invalid input for name. Reason: 'None' is not a valid string.
3. After adding the name, it creates successfully.
[root@opencos2 test_img(keystone_admin)]# neutron lbaas-loadbalancer-create --name loadbalancer 502be3ac-f8d8-43b3-af5b-f0feada72aed
Created a new loadbalancer:
+---------------------+--------------------------------------+
| Field | Value |
+---------------------+--------------------------------------+
| admin_state_up | True |
| description | |
| id | 267451b7-54bd-4003-b8c1-b8b535a26926 |
| listeners | |
| name | loadbalancer |
| operating_status | OFFLINE |
| provider | zxveglb |
| provisioning_status | PENDING_CREATE |
| tenant_id | be58eaec789d44f296a65f96b944a9f5 |
| vip_address | 20.0.0.175 |
| vip_port_id | 4b838bb2-f904-4a74-9040-8240ab718972 |
| vip_subnet_id | 502be3ac-f8d8-43b3-af5b-f0feada72aed |
+---------------------+--------------------------------------+
** Affects: neutron
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1582126
Title:
when loadbalancer is created, name of the load balancer is not
optional argument.
Status in neutron:
New
Bug description:
It is in kilo branch.
1. From following help information, name of the load balancer is an optional argument.
[root@opencos2 test_img(keystone_admin)]# neutron lbaas-loadbalancer-create -h
usage: neutron lbaas-loadbalancer-create [-h] [-f {shell,table,value}]
[-c COLUMN] [--max-width <integer>]
[--prefix PREFIX]
[--request-format {json,xml}]
[--tenant-id TENANT_ID]
[--description DESCRIPTION]
[--admin-state-down] [--name NAME]
[--provider PROVIDER]
[--vip-address VIP_ADDRESS]
VIP_SUBNET
LBaaS v2 Create a loadbalancer.
positional arguments:
VIP_SUBNET Load balancer VIP subnet.
optional arguments:
-h, --help show this help message and exit
--request-format {json,xml}
The XML or JSON request format.
--tenant-id TENANT_ID
The owner tenant ID.
--description DESCRIPTION
Description of the load balancer.
--admin-state-down Set admin state up to false.
--name NAME Name of the load balancer.
2. But if I don't input the name, it failes. So it seems that the name
is the positional argument.
[root@opencos2 test_img(keystone_admin)]# neutron lbaas-loadbalancer-create 502be3ac-f8d8-43b3-af5b-f0feada72aed
Invalid input for name. Reason: 'None' is not a valid string.
3. After adding the name, it creates successfully.
[root@opencos2 test_img(keystone_admin)]# neutron lbaas-loadbalancer-create --name loadbalancer 502be3ac-f8d8-43b3-af5b-f0feada72aed
Created a new loadbalancer:
+---------------------+--------------------------------------+
| Field | Value |
+---------------------+--------------------------------------+
| admin_state_up | True |
| description | |
| id | 267451b7-54bd-4003-b8c1-b8b535a26926 |
| listeners | |
| name | loadbalancer |
| operating_status | OFFLINE |
| provider | zxveglb |
| provisioning_status | PENDING_CREATE |
| tenant_id | be58eaec789d44f296a65f96b944a9f5 |
| vip_address | 20.0.0.175 |
| vip_port_id | 4b838bb2-f904-4a74-9040-8240ab718972 |
| vip_subnet_id | 502be3ac-f8d8-43b3-af5b-f0feada72aed |
+---------------------+--------------------------------------+
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1582126/+subscriptions
Follow ups