nova api crashes on floating ip creation

Bug #1512250 reported by Rushikesh
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
New
Undecided
Unassigned

Bug Description

I'm using Openstack Liberty

2015-11-02 13:36:26.522 118707 INFO nova.osapi_compute.wsgi.server [req-3a1d6c46-a04e-452b-b5b5-240f4d8f7ff7 4fee825c04e04bcc8779fbc0e1c75154 d8c1e9ee4f6e429199a85389ab64868d - - -] 115.124.106.199 "GET /v2/ HTTP/1.1" status: 200 len: 572 time: 0.0321729
2015-11-02 13:36:26.695 118707 ERROR nova.api.openstack.extensions [req-f37d3666-00cf-4b69-bd07-1764cb5ab663 4fee825c04e04bcc8779fbc0e1c75154 d8c1e9ee4f6e429199a85389ab64868d - - -] Unexpected exception in API method
2015-11-02 13:36:26.695 118707 ERROR nova.api.openstack.extensions Traceback (most recent call last):
2015-11-02 13:36:26.695 118707 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/api/openstack/extensions.py", line 478, in wrapped
2015-11-02 13:36:26.695 118707 ERROR nova.api.openstack.extensions return f(*args, **kwargs)
2015-11-02 13:36:26.695 118707 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/api/openstack/compute/floating_ips.py", line 122, in index
2015-11-02 13:36:26.695 118707 ERROR nova.api.openstack.extensions floating_ips = self.network_api.get_floating_ips_by_project(context)
2015-11-02 13:36:26.695 118707 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/network/neutronv2/api.py", line 1402, in get_floating_ips_by_project
2015-11-02 13:36:26.695 118707 ERROR nova.api.openstack.extensions fips = client.list_floatingips(tenant_id=project_id)['floatingips']
2015-11-02 13:36:26.695 118707 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 102, in with_params
2015-11-02 13:36:26.695 118707 ERROR nova.api.openstack.extensions ret = self.function(instance, *args, **kwargs)
2015-11-02 13:36:26.695 118707 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 731, in list_floatingips
2015-11-02 13:36:26.695 118707 ERROR nova.api.openstack.extensions **_params)
2015-11-02 13:36:26.695 118707 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 307, in list
2015-11-02 13:36:26.695 118707 ERROR nova.api.openstack.extensions for r in self._pagination(collection, path, **params):
2015-11-02 13:36:26.695 118707 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 320, in _pagination
2015-11-02 13:36:26.695 118707 ERROR nova.api.openstack.extensions res = self.get(path, params=params)
2015-11-02 13:36:26.695 118707 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 293, in get
2015-11-02 13:36:26.695 118707 ERROR nova.api.openstack.extensions headers=headers, params=params)
2015-11-02 13:36:26.695 118707 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 270, in retry_request
2015-11-02 13:36:26.695 118707 ERROR nova.api.openstack.extensions headers=headers, params=params)
2015-11-02 13:36:26.695 118707 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 211, in do_request
2015-11-02 13:36:26.695 118707 ERROR nova.api.openstack.extensions self._handle_fault_response(status_code, replybody)
2015-11-02 13:36:26.695 118707 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 185, in _handle_fault_response
2015-11-02 13:36:26.695 118707 ERROR nova.api.openstack.extensions exception_handler_v20(status_code, des_error_body)
2015-11-02 13:36:26.695 118707 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 83, in exception_handler_v20
2015-11-02 13:36:26.695 118707 ERROR nova.api.openstack.extensions message=message)
2015-11-02 13:36:26.695 118707 ERROR nova.api.openstack.extensions NeutronClientException: 404 Not Found
2015-11-02 13:36:26.695 118707 ERROR nova.api.openstack.extensions
2015-11-02 13:36:26.695 118707 ERROR nova.api.openstack.extensions The resource could not be found.
2015-11-02 13:36:26.695 118707 ERROR nova.api.openstack.extensions
2015-11-02 13:36:26.695 118707 ERROR nova.api.openstack.extensions
2015-11-02 13:36:26.695 118707 ERROR nova.api.openstack.extensions
2015-11-02 13:36:26.697 118707 INFO nova.api.openstack.wsgi [req-f37d3666-00cf-4b69-bd07-1764cb5ab663 4fee825c04e04bcc8779fbc0e1c75154 d8c1e9ee4f6e429199a85389ab64868d - - -] HTTP exception thrown: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<class 'neutronclient.common.exceptions.NeutronClientException'>
2015-11-02 13:36:26.698 118707 INFO nova.osapi_compute.wsgi.server [req-f37d3666-00cf-4b69-bd07-1764cb5ab663 4fee825c04e04bcc8779fbc0e1c75154 d8c1e9ee4f6e429199a85389ab64868d - - -] 115.124.106.199 "GET /v2/d8c1e9ee4f6e429199a85389ab64868d/os-floating-ips HTTP/1.1" status: 500 len: 459 time: 0.0432839

Reproduce Steps:

Clean installation of Openstack Liberty wrt http://docs.openstack.org/liberty/install-guide-ubuntu/ and http://docs.openstack.org/liberty/install-guide-ubuntu/neutron-controller-install-option1.html

Tags: api
Revision history for this message
Alex Xu (xuhj) wrote :

Looks like this is similar with https://bugs.launchpad.net/nova/+bug/1488537

Rushikesh have you setup l3 agent? From the http://docs.openstack.org/liberty/install-guide-ubuntu/neutron-controller-install-option1.html, it didn't mention about l3 agent. If you didn't setup l3 agent, just will be the case same with 1488537.

tags: added: api
Revision history for this message
Rushikesh (rushikesh7) wrote :

Hi Alex, I have not installed L3 agent and have disabled the L3 agent option from Openstack UI 'enable_router': False
I'm using ML2 plugin with pure flat network option.

I do not see that the issue is related to 1488537, it may be related, i'm not sure.

Revision history for this message
Alex Xu (xuhj) wrote :

Rushikesh, thanks for the reply, as this patch https://review.openstack.org/#/c/216746/, it mentioned the neutron will return 404 when l3 agent isn't enabled. So I think this bug is similar to https://bugs.launchpad.net/nova/+bug/1488537

Revision history for this message
Rushikesh (rushikesh7) wrote :

Thanks Alex,
I see the status on the patch as "Review in Progress", is there any way where in I can update that to my Ubuntu Liberty Setup and confirm the fix ?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.