yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #61541
[Bug 1664850] Re: Error: Unable to create the server. Unexpected API Error.
Something is messed up with your deployment since you don't have all the
needed python packages :
2017-02-15 17:15:00.658 20804 ERROR stevedore.extension [req-627d9817-74d4-4669-b817-f51625ca4ff1 b84bf912c35a40c6a780f71b1f9a21c1 097640358bc14bd594b9d91e933b6e4c - - -] Could not load 'file': cannot import name imageutils
2017-02-15 17:15:00.658 20804 ERROR stevedore.extension [req-627d9817-74d4-4669-b817-f51625ca4ff1 b84bf912c35a40c6a780f71b1f9a21c1 097640358bc14bd594b9d91e933b6e4c - - -] cannot import name imageutils
2017-02-15 17:15:00.658 20804 ERROR stevedore.extension Traceback (most recent call last):
2017-02-15 17:15:00.658 20804 ERROR stevedore.extension File "/usr/lib/python2.7/dist-packages/stevedore/extension.py", line 163, in _load_plugins
2017-02-15 17:15:00.658 20804 ERROR stevedore.extension File "/usr/lib/python2.7/dist-packages/stevedore/extension.py", line 184, in _load_one_plugin
2017-02-15 17:15:00.658 20804 ERROR stevedore.extension File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2386, in resolve
2017-02-15 17:15:00.658 20804 ERROR stevedore.extension module = __import__(self.module_name, fromlist=['__name__'], level=0)
2017-02-15 17:15:00.658 20804 ERROR stevedore.extension File "/usr/lib/python2.7/dist-packages/nova/image/download/file.py", line 22, in <module>
2017-02-15 17:15:00.658 20804 ERROR stevedore.extension import nova.virt.libvirt.utils as lv_utils
2017-02-15 17:15:00.658 20804 ERROR stevedore.extension File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/__init__.py", line 15, in <module>
2017-02-15 17:15:00.658 20804 ERROR stevedore.extension from nova.virt.libvirt import driver
2017-02-15 17:15:00.658 20804 ERROR stevedore.extension File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 90, in <module>
2017-02-15 17:15:00.658 20804 ERROR stevedore.extension from nova.virt.disk import api as disk
2017-02-15 17:15:00.658 20804 ERROR stevedore.extension File "/usr/lib/python2.7/dist-packages/nova/virt/disk/api.py", line 46, in <module>
2017-02-15 17:15:00.658 20804 ERROR stevedore.extension from nova.virt import images
2017-02-15 17:15:00.658 20804 ERROR stevedore.extension File "/usr/lib/python2.7/dist-packages/nova/virt/images.py", line 27, in <module>
2017-02-15 17:15:00.658 20804 ERROR stevedore.extension from oslo_utils import imageutils
2017-02-15 17:15:00.658 20804 ERROR stevedore.extension ImportError: cannot import name imageutils
2017-02-15 17:15:00.658 20804 ERROR stevedore.extension
2017-02-15 17:15:00.662 20804 ERROR nova.api.openstack.extensions [req-627d9817-74d4-4669-b817-f51625ca4ff1 b84bf912c35a40c6a780f71b1f9a21c1 097640358bc14bd594b9d91e933b6e4c - - -] Unexpected exception in API method
2017-02-15 17:15:00.662 20804 ERROR nova.api.openstack.extensions Traceback (most recent call last):
2017-02-15 17:15:00.662 20804 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/api/openstack/extensions.py", line 478, in wrapped
2017-02-15 17:15:00.662 20804 ERROR nova.api.openstack.extensions return f(*args, **kwargs)
2017-02-15 17:15:00.662 20804 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/api/validation/__init__.py", line 73, in wrapper
2017-02-15 17:15:00.662 20804 ERROR nova.api.openstack.extensions return func(*args, **kwargs)
2017-02-15 17:15:00.662 20804 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/api/validation/__init__.py", line 73, in wrapper
2017-02-15 17:15:00.662 20804 ERROR nova.api.openstack.extensions return func(*args, **kwargs)
2017-02-15 17:15:00.662 20804 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/api/validation/__init__.py", line 73, in wrapper
2017-02-15 17:15:00.662 20804 ERROR nova.api.openstack.extensions return func(*args, **kwargs)
2017-02-15 17:15:00.662 20804 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/api/openstack/compute/servers.py", line 629, in create
2017-02-15 17:15:00.662 20804 ERROR nova.api.openstack.extensions **create_kwargs)
2017-02-15 17:15:00.662 20804 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/hooks.py", line 154, in inner
2017-02-15 17:15:00.662 20804 ERROR nova.api.openstack.extensions rv = f(*args, **kwargs)
2017-02-15 17:15:00.662 20804 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/compute/api.py", line 1564, in create
2017-02-15 17:15:00.662 20804 ERROR nova.api.openstack.extensions check_server_group_quota=check_server_group_quota)
2017-02-15 17:15:00.662 20804 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/compute/api.py", line 1132, in _create_instance
2017-02-15 17:15:00.662 20804 ERROR nova.api.openstack.extensions image_id, boot_meta = self._get_image(context, image_href)
2017-02-15 17:15:00.662 20804 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/compute/api.py", line 790, in _get_image
2017-02-15 17:15:00.662 20804 ERROR nova.api.openstack.extensions image = self.image_api.get(context, image_href)
2017-02-15 17:15:00.662 20804 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/image/api.py", line 93, in get
2017-02-15 17:15:00.662 20804 ERROR nova.api.openstack.extensions show_deleted=show_deleted)
2017-02-15 17:15:00.662 20804 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/image/glance.py", line 333, in show
2017-02-15 17:15:00.662 20804 ERROR nova.api.openstack.extensions _reraise_translated_image_exception(image_id)
2017-02-15 17:15:00.662 20804 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/image/glance.py", line 682, in _reraise_translated_image_exception
2017-02-15 17:15:00.662 20804 ERROR nova.api.openstack.extensions six.reraise(new_exc, None, exc_trace)
2017-02-15 17:15:00.662 20804 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/image/glance.py", line 331, in show
2017-02-15 17:15:00.662 20804 ERROR nova.api.openstack.extensions image = self._client.call(context, version, 'get', image_id)
2017-02-15 17:15:00.662 20804 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/image/glance.py", line 248, in call
2017-02-15 17:15:00.662 20804 ERROR nova.api.openstack.extensions version)
2017-02-15 17:15:00.662 20804 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/image/glance.py", line 229, in _create_onetime_client
2017-02-15 17:15:00.662 20804 ERROR nova.api.openstack.extensions return _glanceclient_from_endpoint(context, self.api_server, version)
2017-02-15 17:15:00.662 20804 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/nova/image/glance.py", line 161, in _glanceclient_from_endpoint
2017-02-15 17:15:00.662 20804 ERROR nova.api.openstack.extensions return glanceclient.Client(str(version), endpoint, **params)
2017-02-15 17:15:00.662 20804 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/glanceclient/client.py", line 59, in Client
2017-02-15 17:15:00.662 20804 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/glanceclient/common/utils.py", line 281, in import_versioned_module
2017-02-15 17:15:00.662 20804 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/dist-packages/oslo_utils/importutils.py", line 73, in import_module
2017-02-15 17:15:00.662 20804 ERROR nova.api.openstack.extensions ImportError: No module named v1.client
2017-02-15 17:15:00.662 20804 ERROR nova.api.openstack.extensions
2017-02-15 17:15:00.664 20804 INFO nova.api.openstack.wsgi [req-627d9817-74d4-4669-b817-f51625ca4ff1 b84bf912c35a40c6a780f71b1f9a21c1 097640358bc14bd594b9d91e933b6e4c - - -] HTTP exception thrown: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<type 'exceptions.ImportError'>
2017-02-15 17:15:00.665 20804 INFO nova.osapi_compute.wsgi.server [req-627d9817-74d4-4669-b817-f51625ca4ff1 b84bf912c35a40c6a780f71b1f9a21c1 097640358bc14bd594b9d91e933b6e4c - - -] 192.168.8.2 "POST /v2.1/servers HTTP/1.1" status: 500 len: 492 time: 0.1683691
Looks like a possible oslo.utils wrong version in Fuel deployment, but
something really not related to Nova upstream AFAICS.
** Changed in: nova
Status: New => Incomplete
** Changed in: nova
Status: Incomplete => Invalid
--
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/1664850
Title:
Error: Unable to create the server. Unexpected API Error.
Status in OpenStack Compute (nova):
Invalid
Bug description:
Description
===========
I have deployed a new cloud using fuel (stable mitaka). I am not able to create an instance and getting an error in horizon stating - "Unable to create server"
Steps to reproduce
==================
Deploy cloud with two compute nodes and 1 controller
Expected result
===============
instance shall spawn successfully
Actual result
=============
Failed to spawn instance with an error
Environment
===========
1. Exact version of OpenStack you are running- openstack 3.8.1
2. Which hypervisor did you use?----- Libvirt + KVM
2. Which storage type did you use? --- Ceph
root@node-67:/etc/nova# ceph tell osd.* version
osd.0: {
"version": "ceph version 0.94.6 (e832001feaf8c176593e0325c8298e3f16dfb403)"
}
osd.1: {
"version": "ceph version 0.94.6 (e832001feaf8c176593e0325c8298e3f16dfb403)"
}
osd.2: {
"version": "ceph version 0.94.6 (e832001feaf8c176593e0325c8298e3f16dfb403)"
}
osd.3: {
"version": "ceph version 0.94.6 (e832001feaf8c176593e0325c8298e3f16dfb403)"
}
root@node-67:/etc/nova#
3. Which networking type did you use?
Neutron with OpenVSwitch
Logs & Configs
==============
root@node-67:~# openstack image list
WARNING: openstackclient.common.utils is deprecated and will be removed after Jun 2017. Please use osc_lib.utils. This warning is caused by an out-of-date import in /usr/lib/python2.7/dist-packages/saharaclient/osc/plugin.py
+--------------------------------------+--------+--------+
| ID | Name | Status |
+--------------------------------------+--------+--------+
| 10156482-48cc-4f7c-9e34-a056bc55d180 | KEMP | active |
| ce3f9e90-95ad-478a-a756-214c703ffb64 | TestVM | active |
| 6ed88d21-635b-470e-809c-c326208ababd | UBUNTU | active |
+--------------------------------------+--------+--------+
root@node-67:~# openstack flavor list
WARNING: openstackclient.common.utils is deprecated and will be removed after Jun 2017. Please use osc_lib.utils. This warning is caused by an out-of-date import in /usr/lib/python2.7/dist-packages/saharaclient/osc/plugin.py
+--------------------------------------+-----------+-------+------+-----------+-------+-----------+
| ID | Name | RAM | Disk | Ephemeral | VCPUs | Is Public |
+--------------------------------------+-----------+-------+------+-----------+-------+-----------+
| 1 | m1.tiny | 512 | 1 | 0 | 1 | True |
| 2 | m1.small | 2048 | 20 | 0 | 1 | True |
| 3 | m1.medium | 4096 | 40 | 0 | 2 | True |
| 4 | m1.large | 8192 | 80 | 0 | 4 | True |
| 5 | m1.xlarge | 16384 | 160 | 0 | 8 | True |
| c6ab0633-b07a-4e44-9a41-90d8c6c339ba | m1.micro | 64 | 0 | 0 | 1 | True |
+--------------------------------------+-----------+-------+------+-----------+-------+-----------+
root@node-67:~# openstack server create --image KEMP --flavor m1.small test
WARNING: openstackclient.common.utils is deprecated and will be removed after Jun 2017. Please use osc_lib.utils. This warning is caused by an out-of-date import in /usr/lib/python2.7/dist-packages/saharaclient/osc/plugin.py
Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<type 'exceptions.ImportError'> (HTTP 500) (Request-ID: req-3c56b0db-6ddc-4489-a42a-6b09569fd66b)
root@node-67:~# cd /var/lo
All the other log files are attached.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1664850/+subscriptions
References