Quantum subnet-create --gateway option is ignored when used after --ip_version
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-neutronclient |
Fix Released
|
Medium
|
Mark McClain |
Bug Description
#quantum subnet-create --tenant_id 72e90ea83771472
Created a new subnet:
+------
| Field | Value |
+------
| allocation_pools | {"start": "10.0.1.2", "end": "10.0.1.254"} |
| cidr | 10.0.1.0/24 |
| dns_nameservers | |
| enable_dhcp | True |
| gateway_ip | 10.0.1.1 |
| host_routes | |
| id | 262a8c49-
| ip_version | 4 |
| name | |
| network_id | 4373779d-
| tenant_id | 72e90ea83771472
+------
Work Around.....
# quantum subnet-create --tenant_id 72e90ea83771472
Created a new subnet:
+------
| Field | Value |
+------
| allocation_pools | {"start": "10.0.1.1", "end": "10.0.1.253"} |
| cidr | 10.0.1.0/24 |
| dns_nameservers | |
| enable_dhcp | True |
| gateway_ip | 10.0.1.254 |
| host_routes | |
| id | 5619e8af-
| ip_version | 4 |
| name | |
| network_id | 4373779d-
| tenant_id | 72e90ea83771472
+------
Changed in quantum: | |
assignee: | nobody → Mark McClain (markmcclain) |
importance: | Undecided → Medium |
affects: | quantum → python-quantumclient |
Changed in python-quantumclient: | |
status: | Fix Committed → Fix Released |
This is not strictly a bug, as the CLI is operating as intended, but I agree it is confusing as hell for people new to the CLI and we should find a way to make it less confusing.
The real issue is that you were specifying --gateway AFTER the positional argument, whereas this option must be used BEFORE the positional argument. Arguments after the positional argument are passed through in the JSON request as is, but the problem is that the JSON value is actually gateway_ip, not gateway, so specifying --gateway after the positional arguments is essentially a noop.
See the description here: http:// docs.openstack. org/cli/ quick-start/ content/ quantum- cli-reference. html
Sorry for the confusion... we need an easier way to do this, as the current approach seems to confuse everyone.