yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #69276
[Bug 1732890] Re: floatingip-create:Ignore floating_ip_address when using floating_ip_address and subnet
@Brian Haley, the reproduce step is both specify subnet and floating-ip-
address:
# neutron floatingip-create --floating-ip-address 172.24.4.101 --subnet
0c280593-3066-4393-bbdc-028b24139314 public
The result is:
Created a new floatingip:
+---------------------+--------------------------------------+
| Field | Value |
+---------------------+--------------------------------------+
| created_at | 2017-11-20T02:22:07Z |
| description | |
| fixed_ip_address | |
| floating_ip_address | 172.24.4.3 |
| floating_network_id | 30c2a624-7c53-46a2-a733-b196e7d72b40 |
| id | c94e45c2-05a4-4c00-9cb1-4168db7de6e4 |
| port_id | |
| project_id | a349811205044d119b27a9f09a06bf3e |
| revision_number | 0 |
| router_id | |
| status | DOWN |
| tags | |
| tenant_id | a349811205044d119b27a9f09a06bf3e |
| updated_at | 2017-11-20T02:22:07Z |
+---------------------+--------------------------------------+
While using openstackclient it always using the floating-ip-address, so
I think floating-ip-address and subnet is optional.
** Changed in: neutron
Status: Invalid => Confirmed
** Project changed: neutron => python-neutronclient
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1732890
Title:
floatingip-create:Ignore floating_ip_address when using
floating_ip_address and subnet
Status in python-neutronclient:
Confirmed
Bug description:
When I created floating ip with "floating_ip_address" and "subnet", it ignored "floating_ip_address".
$neutron floatingip-create --floating-ip-address 172.24.4.25 --subnet d5ece368-35fb-4537-be84-eda656250974
Created a new floatingip:
+---------------------+--------------------------------------+
| Field | Value |
+---------------------+--------------------------------------+
| created_at | 2017-11-17T09:42:57Z |
| description | |
| fixed_ip_address | |
| floating_ip_address | 172.24.4.10 |
| floating_network_id | fa18e1d7-1f33-48c0-a77f-f192f3c1c6df |
| id | 4d6129a4-9076-4e79-b3f0-b05ce68deb05 |
| port_id | |
| project_id | f0f9361fbf8e495b97eeadae6a81e14d |
| revision_number | 1 |
| router_id | |
| status | DOWN |
| tenant_id | f0f9361fbf8e495b97eeadae6a81e14d |
| updated_at | 2017-11-17T09:42:57Z |
+---------------------+--------------------------------------+
This is my REQ:
DEBUG: keystoneauth.session REQ: curl -g -i -X POST http://10.10.10.7:9696/v2.0/floatingips.json -H "User-Agent: python-neutronclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}0996a50cdaac248681cedb7000dbe71c7bd1a3e0" -d '{"floatingip": {"floating_network_id": "fa18e1d7-1f33-48c0-a77f-f192f3c1c6df", "subnet_id": "d5ece368-35fb-4537-be84-eda656250974", "floating_ip_address": "172.24.4.25"}}'
And this is my RESP:
RESP BODY: {"floatingip": {"router_id": null, "status": "DOWN", "description": "", "tenant_id": "f0f9361fbf8e495b97eeadae6a81e14d", "created_at": "2017-11-17T09:42:57Z", "updated_at": "2017-11-17T09:42:57Z", "floating_network_id": "fa18e1d7-1f33-48c0-a77f-f192f3c1c6df", "fixed_ip_address": null, "floating_ip_address": "172.24.4.10", "revision_number": 1, "project_id": "f0f9361fbf8e495b97eeadae6a81e14d", "port_id": null, "id": "4d6129a4-9076-4e79-b3f0-b05ce68deb05"}}
I think we should make sure the "floating_ip_address" belongs to the "subnet" and create it.
Or we should report a error message when we set these parameters at the same time.
To manage notifications about this bug go to:
https://bugs.launchpad.net/python-neutronclient/+bug/1732890/+subscriptions
References