[Bug 1064748] Re: a port which is not able to delete is made when floatingip create fails.
Steve Langasek
1064748 at bugs.launchpad.net
Thu Oct 14 01:41:44 UTC 2021
The Precise Pangolin has reached end of life, so this bug will not be
fixed for that release
** Changed in: quantum (Ubuntu Precise)
Status: Confirmed => Won't Fix
--
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to quantum in Ubuntu.
https://bugs.launchpad.net/bugs/1064748
Title:
a port which is not able to delete is made when floatingip create
fails.
Status in neutron:
Fix Released
Status in neutron folsom series:
Fix Released
Status in quantum package in Ubuntu:
Fix Released
Status in quantum source package in Precise:
Won't Fix
Status in quantum source package in Quantal:
Fix Released
Bug description:
for example:
---
$ quantum port-show port-test
+----------------+---------------------------------------------------------------------------------+
| Field | Value |
+----------------+---------------------------------------------------------------------------------+
| admin_state_up | True |
| device_id | |
| device_owner | |
| fixed_ips | {"subnet_id": "77d8c9df-71a5-4159-953c-4cd4c06e9824", "ip_address": "10.0.1.4"} |
| id | 42bed62d-4bed-4e52-9922-949b05b2d9e5 |
| mac_address | fa:16:3e:af:ad:9e |
| name | port-test |
| network_id | e0d11816-4153-430a-abcc-46b8c7a68e99 |
| status | ACTIVE |
| tenant_id | be3fc4694da2413c833574d6e018d338 |
+----------------+---------------------------------------------------------------------------------+
$ quantum -v floatingip-create --port-id 42bed62d-4bed-4e52-9922-949b05b2d9e5 --fixed-ip-address "10.10.10.10" net-ext
DEBUG: quantumclient.quantum.v2_0.floatingip.CreateFloatingIP get_data(Namespace(columns=[], fixed_ip_address='10.10.10.10', floating_network_id='net-ext', formatter='table', port_id='42bed62d-4bed-4e52-9922-949b05b2d9e5', prefix='', request_format='json', tenant_id=None, value_specs=[], variables=[]))
DEBUG: quantumclient.client REQ: curl -i http://172.17.190.3:5000/v2.0/tokens -X POST -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-quantumclient"
DEBUG: quantumclient.client REQ BODY: {"auth": {"tenantName": "admin",
"passwordCredentials": {"username": "admin", "password": "oda"}}}
DEBUG: quantumclient.client RESP:{'date': 'Tue, 09 Oct 2012 22:58:59
GMT', 'vary': 'X-Auth-Token', 'content-length': '2727', 'status':
'200', 'content-type': 'application/json'}
DEBUG: quantumclient.client RESP BODY:{"access": {"token": {"expires":
"2012-10-10T22:58:59Z", "id": "54f644616d6b4f56a0915437d326fa50",
"tenant": {"enabled": true, "description": null, "name": "admin",
"id": "be3fc4694da2413c833574d6e018d338"}}, "serviceCatalog":
[{"endpoints": [{"adminURL":
"http://172.17.190.3:8774/v2/be3fc4694da2413c833574d6e018d338",
"region": "RegionOne", "publicURL":
"http://172.17.190.3:8774/v2/be3fc4694da2413c833574d6e018d338",
"internalURL":
"http://172.17.190.3:8774/v2/be3fc4694da2413c833574d6e018d338"}],
"endpoints_links": [], "type": "compute", "name": "Compute Service"},
{"endpoints": [{"adminURL": "http://172.17.190.3:9696/", "region":
"RegionOne", "publicURL": "http://172.17.190.3:9696/", "internalURL":
"http://172.17.190.3:9696/"}], "endpoints_links": [], "type":
"network", "name": "Quantum Service"}, {"endpoints": [{"adminURL":
"http://172.17.190.3:3333", "region": "RegionOne", "publicURL":
"http://172.17.190.3:3333", "internalURL":
"http://172.17.190.3:3333"}], "endpoints_links": [], "type": "s3",
"name": "S3 Service"}, {"endpoints": [{"adminURL":
"http://172.17.190.3:9292", "region": "RegionOne", "publicURL":
"http://172.17.190.3:9292", "internalURL":
"http://172.17.190.3:9292"}], "endpoints_links": [], "type": "image",
"name": "Image Service"}, {"endpoints": [{"adminURL":
"http://172.17.190.3:8776/v1/be3fc4694da2413c833574d6e018d338",
"region": "RegionOne", "publicURL":
"http://172.17.190.3:8776/v1/be3fc4694da2413c833574d6e018d338",
"internalURL":
"http://172.17.190.3:8776/v1/be3fc4694da2413c833574d6e018d338"}],
"endpoints_links": [], "type": "volume", "name": "Volume Service"},
{"endpoints": [{"adminURL": "http://172.17.190.3:8773/services/Admin",
"region": "RegionOne", "publicURL":
"http://172.17.190.3:8773/services/Cloud", "internalURL":
"http://172.17.190.3:8773/services/Cloud"}], "endpoints_links": [],
"type": "ec2", "name": "EC2 Service"}, {"endpoints": [{"adminURL":
"http://172.17.190.3:8000/v1", "region": "RegionOne", "publicURL":
"http://172.17.190.3:8000/v1", "internalURL":
"http://172.17.190.3:8000/v1"}], "endpoints_links": [], "type":
"orchestration", "name": "Heat Service"}, {"endpoints": [{"adminURL":
"http://172.17.190.3:35357/v2.0", "region": "RegionOne", "publicURL":
"http://172.17.190.3:5000/v2.0", "internalURL":
"http://172.17.190.3:5000/v2.0"}], "endpoints_links": [], "type":
"identity", "name": "Identity Service"}], "user": {"username":
"admin", "roles_links": [], "id": "af4f007f3197436dad5e6e6df0a75003",
"roles": [{"name": "KeystoneServiceAdmin"}, {"name": "admin"},
{"name": "KeystoneAdmin"}], "name": "admin"}, "metadata": {"is_admin":
0, "roles": ["0351c121ed544e79a32c599f84ee898c",
"61a36e1107e84ddc941317a6cedaae66",
"7988289d6b0740259640c39a47c0d7c5"]}}}
DEBUG: quantumclient.client REQ: curl -i
http://172.17.190.3:9696/v2.0/networks.json?fields=id&name=net-ext -X
GET -H "User-Agent: python-quantumclient" -H "Content-Type:
application/json" -H "Accept: application/json" -H "X-Auth-Token:
54f644616d6b4f56a0915437d326fa50"
DEBUG: quantumclient.client RESP:{'date': 'Tue, 09 Oct 2012 22:58:59
GMT', 'status': '200', 'content-length': '62', 'content-type':
'application/json', 'content-location':
u'http://172.17.190.3:9696/v2.0/networks.json?fields=id&name=net-ext'}
DEBUG: quantumclient.client RESP BODY:{"networks": [{"id":
"364db7e1-6343-497b-bc9b-0c6ec72fce3f"}]}
DEBUG: quantumclient.client REQ: curl -i
http://172.17.190.3:9696/v2.0/floatingips.json -X POST -H "User-Agent:
python-quantumclient" -H "Content-Type: application/json" -H "Accept:
application/json" -H "X-Auth-Token: 54f644616d6b4f56a0915437d326fa50"
DEBUG: quantumclient.client REQ BODY: {"floatingip":
{"floating_network_id": "364db7e1-6343-497b-bc9b-0c6ec72fce3f",
"fixed_ip_address": "10.10.10.10", "port_id":
"42bed62d-4bed-4e52-9922-949b05b2d9e5"}}
DEBUG: quantumclient.client RESP:{'date': 'Tue, 09 Oct 2012 22:58:59
GMT', 'status': '400', 'content-length': '120', 'content-type':
'application/json'}
DEBUG: quantumclient.client RESP BODY:{"QuantumError": "Bad floatingip
request: Port 42bed62d-4bed-4e52-9922-949b05b2d9e5 does not have fixed
ip 10.10.10.10"}
DEBUG: quantumclient.v2_0.client Error message: {"QuantumError": "Bad floatingip request: Port 42bed62d-4bed-4e52-9922-949b05b2d9e5 does not have fixed ip 10.10.10.10"}
ERROR: cliff.app Bad floatingip request: Port 42bed62d-4bed-4e52-9922-949b05b2d9e5 does not have fixed ip 10.10.10.10
DEBUG: quantumclient.shell clean_up CreateFloatingIP
DEBUG: quantumclient.shell got an error: Bad floatingip request: Port 42bed62d-4bed-4e52-9922-949b05b2d9e5 does not have fixed ip 10.10.10.10
$ quantum floatingip-list
+--------------------------------------+------------------+---------------------+--------------------------------------+
| id | fixed_ip_address | floating_ip_address | port_id |
+--------------------------------------+------------------+---------------------+--------------------------------------+
| 55f47dc1-61bd-4774-afb8-8585a2dc883c | 10.0.3.3 | 192.168.0.204 | e290d2c9-9f51-463c-9d14-993f842955db |
| 5d260348-1790-4a52-acad-0864c473027a | 10.0.1.3 | 192.168.0.202 | 6e001fee-89de-462c-b882-449523fc37dd |
| 699c172a-7ffb-419a-a82b-efeeda878fe9 | 10.0.2.3 | 192.168.0.203 | 0593e82a-be00-4692-a42e-5b95a297a688 |
+--------------------------------------+------------------+---------------------+--------------------------------------+
$ quantum port-show c12f2096-07b3-4ad9-87d8-4f9f342ac3d1
+----------------+--------------------------------------------------------------------------------------+
| Field | Value |
+----------------+--------------------------------------------------------------------------------------+
| admin_state_up | True |
| device_id | 9be4d38c-4c65-46e5-a847-683f18635948 |
| device_owner | network:floatingip |
| fixed_ips | {"subnet_id": "9454a527-5e59-4e36-8bb2-ee188b24fb85", "ip_address": "192.168.0.205"} |
| id | c12f2096-07b3-4ad9-87d8-4f9f342ac3d1 |
| mac_address | fa:16:3e:9e:be:b3 |
| name | |
| network_id | 364db7e1-6343-497b-bc9b-0c6ec72fce3f |
| status | ACTIVE |
| tenant_id | |
+----------------+--------------------------------------------------------------------------------------+
$ quantum port-delete c12f2096-07b3-4ad9-87d8-4f9f342ac3d1
Port c12f2096-07b3-4ad9-87d8-4f9f342ac3d1 has owner network:floatingip and therefore cannot be deleted directly via the port API.
---
Port creation and FloatingIP creation are diffrent transaction in the current code. (quantum/db/l3_db.py create_floatingip())
I think it should be done in the one transaction.
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1064748/+subscriptions
More information about the Ubuntu-openstack-bugs
mailing list