Reviewed: https://review.openstack.org/252879 Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=e1cd13f862b6937458782666a8ebcc7cd4f351d8 Submitter: Jenkins Branch: master
commit e1cd13f862b6937458782666a8ebcc7cd4f351d8 Author: jichenjc <[email protected]> Date: Tue Nov 24 01:54:40 2015 +0800 Catch FixedIpNotFoundForAddress when create server FixedIpNotFoundForAddress is not catched during server creation, so 500 error is reported to client side. Change-Id: I3cd45cd63c962225d6a893ad0fdeb01ecb94e784 Closes-Bug: 1522349 ** Changed in: nova Status: In Progress => Fix Released -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Compute (nova). https://bugs.launchpad.net/bugs/1522349 Title: FixedIpNotFoundForAddress should be catched when create instance Status in OpenStack Compute (nova): Fix Released Bug description: nova --debug boot --image 9eee793a-25e5-4f42-bd9e-b869e60d3dbd --flavor m1.micro --user-data 't.py' --nic net-id=7b2133b4-57a7-4010-ad60-68e07ceb298a,v4-fixed-ip=10.10.20.20 t2 RESP BODY: {"computeFault": {"message": "Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.\n<class 'FixedIpNotFoundForAddress_Remote'>", "code": 500}} DEBUG (shell:916) Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible. <class 'FixedIpNotFoundForAddress_Remote'> (HTTP 500) (Request-ID: req-eee88d6a-a602-4893-b232-842981d6bd6e) Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/novaclient/shell.py", line 914, in main OpenStackComputeShell().main(argv) File "/usr/local/lib/python2.7/dist-packages/novaclient/shell.py", line 841, in main args.func(self.cs, args) File "/usr/local/lib/python2.7/dist-packages/novaclient/v2/shell.py", line 521, in do_boot server = cs.servers.create(*boot_args, **boot_kwargs) File "/usr/local/lib/python2.7/dist-packages/novaclient/v2/servers.py", line 1011, in create **boot_kwargs) File "/usr/local/lib/python2.7/dist-packages/novaclient/v2/servers.py", line 544, in _boot return_raw=return_raw, **kwargs) File "/usr/local/lib/python2.7/dist-packages/novaclient/base.py", line 172, in _create _resp, body = self.api.client.post(url, body=body) File "/usr/local/lib/python2.7/dist-packages/keystoneclient/adapter.py", line 176, in post return self.request(url, 'POST', **kwargs) File "/usr/local/lib/python2.7/dist-packages/novaclient/client.py", line 93, in request raise exceptions.from_response(resp, body, url, method) ClientException: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible. <class 'FixedIpNotFoundForAddress_Remote'> (HTTP 500) (Request-ID: req-eee88d6a-a602-4893-b232-842981d6bd6e) ERROR (ClientException): Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible. <class 'FixedIpNotFoundForAddress_Remote'> (HTTP 500) (Request-ID: req-eee88d6a-a602-4893-b232-842981d6bd6e) (reverse-i-search)`vim /': sudo ^Cm /usr/local/lib/python2.7/dist-packages/novaclient/__init__.py To manage notifications about this bug go to: https://bugs.launchpad.net/nova/+bug/1522349/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : [email protected] Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp

