We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'Unexpected API Error' when add fixed ip to an instance with 'ERROR' status
Openstack
Openstack cinder
Openstack master branch
S3
Devstack deployed Openstack environment
[root@scaleiovm1 ~]# nova flavor-list +----+-----------+-----------+------+-----------+------+-------+-------------+-----------+ | ID | Name | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public | +----+-----------+-----------+------+-----------+------+-------+-------------+-----------+ | 1 | m1.tiny | 512 | 1 | 0 | | 1 | 1.0 | True | | 2 | m1.small | 2048 | 20 | 0 | | 1 | 1.0 | True | | 3 | m1.medium | 4096 | 40 | 0 | | 2 | 1.0 | True | | 4 | m1.large | 8192 | 80 | 0 | | 4 | 1.0 | True | | 42 | m1.nano | 64 | 0 | 0 | | 1 | 1.0 | True | | 5 | m1.xlarge | 16384 | 160 | 0 | | 8 | 1.0 | True | | 84 | m1.micro | 128 | 0 | 0 | | 1 | 1.0 | True | +----+-----------+-----------+------+-----------+------+-------+-------------+-----------+ [root@scaleiovm1 ~]# nova boot --flavor 4 --image 28a0308f-b5f6-4394-a5ad-43bc66506ec0 test1 ---> chose a large one which host can't supply the resource. ... ... [root@scaleiovm1 ~]# nova list +--------------------------------------+-------+--------+------------+-------------+------------------+ | ID | Name | Status | Task State | Power State | Networks | +--------------------------------------+-------+--------+------------+-------------+------------------+ | 49a5083b-e186-4d40-9a57-545a3a9d5058 | test1 | ERROR | - | NOSTATE | | +--------------------------------------+-------+--------+------------+-------------+------------------+ [root@scaleiovm1 ~]# nova add-fixed-ip 49a5083b-e186-4d40-9a57-545a3a9d5058 default ERROR (ClientException): Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible. <class 'nova.exception.NovaException'> (HTTP 500) (Request-ID: req-db5d8a55-2c7b-4eac-bed8-1cde23248dfd)
nova should report some meaningful errors in this situation.
The error message is confusing.
2015-11-24 06:04:35.413 ERROR nova.api.openstack.extensions [req-db5d8a55-2c7b-4eac-bed8-1cde23248dfd admin admin] Unexpected exception in API method 2015-11-24 06:04:35.413 21187 ERROR nova.api.openstack.extensions Traceback (most recent call last): 2015-11-24 06:04:35.413 21187 ERROR nova.api.openstack.extensions File "/opt/stack/new/nova/nova/api/openstack/extensions.py", line 478, in wrapped 2015-11-24 06:04:35.413 21187 ERROR nova.api.openstack.extensions return f(*args, **kwargs) 2015-11-24 06:04:35.413 21187 ERROR nova.api.openstack.extensions File "/opt/stack/new/nova/nova/api/validation/__init__.py", line 73, in wrapper 2015-11-24 06:04:35.413 21187 ERROR nova.api.openstack.extensions return func(*args, **kwargs) 2015-11-24 06:04:35.413 21187 ERROR nova.api.openstack.extensions File "/opt/stack/new/nova/nova/api/openstack/compute/multinic.py", line 50, in _add_fixed_ip 2015-11-24 06:04:35.413 21187 ERROR nova.api.openstack.extensions self.compute_api.add_fixed_ip(context, instance, network_id) 2015-11-24 06:04:35.413 21187 ERROR nova.api.openstack.extensions File "/opt/stack/new/nova/nova/compute/api.py", line 235, in wrapped 2015-11-24 06:04:35.413 21187 ERROR nova.api.openstack.extensions return func(self, context, target, *args, **kwargs) 2015-11-24 06:04:35.413 21187 ERROR nova.api.openstack.extensions File "/opt/stack/new/nova/nova/compute/api.py", line 224, in inner 2015-11-24 06:04:35.413 21187 ERROR nova.api.openstack.extensions return function(self, context, instance, *args, **kwargs) 2015-11-24 06:04:35.413 21187 ERROR nova.api.openstack.extensions File "/opt/stack/new/nova/nova/compute/api.py", line 2753, in add_fixed_ip 2015-11-24 06:04:35.413 21187 ERROR nova.api.openstack.extensions instance=instance, network_id=network_id) 2015-11-24 06:04:35.413 21187 ERROR nova.api.openstack.extensions File "/opt/stack/new/nova/nova/compute/rpcapi.py", line 390, in add_fixed_ip_to_instance 2015-11-24 06:04:35.413 21187 ERROR nova.api.openstack.extensions cctxt = self.client.prepare(server=_compute_host(None, instance), 2015-11-24 06:04:35.413 21187 ERROR nova.api.openstack.extensions File "/opt/stack/new/nova/nova/compute/rpcapi.py", line 67, in _compute_host 2015-11-24 06:04:35.413 21187 ERROR nova.api.openstack.extensions 'Instance %s') % instance.uuid) 2015-11-24 06:04:35.413 21187 ERROR nova.api.openstack.extensions NovaException: Unable to find host for Instance 49a5083b-e186-4d40-9a57-545a3a9d5058 2015-11-24 06:04:35.413 21187 ERROR nova.api.openstack.extensions 2015-11-24 06:04:35.413 INFO nova.api.openstack.wsgi [req-db5d8a55-2c7b-4eac-bed8-1cde23248dfd admin admin] HTTP exception thrown: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible. <class 'nova.exception.NovaException'> 2015-11-24 06:04:35.414 DEBUG nova.api.openstack.wsgi [req-db5d8a55-2c7b-4eac-bed8-1cde23248dfd admin admin] Returning 500 to user: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible. <class 'nova.exception.NovaException'> __call__ /opt/stack/new/nova/nova/api/openstack/wsgi.py:1175
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description:
'Unexpected API Error' when add fixed ip to an instance with 'ERROR' status
Project:
Openstack
Project Area:
Openstack cinder
Release:
Openstack master branch
Severity:
S3
Full Details:
Test Environment and PreCondtion:
Devstack deployed Openstack environment
Detailed Test Steps:
Expected Results:
nova should report some meaningful errors in this situation.
Actual results:
The error message is confusing.
Problem details:
Support Materials:
The text was updated successfully, but these errors were encountered: