yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #64683
[Bug 1696972] [NEW] host type 'm1.nano' not found when lanch instance
Public bug reported:
I lanch an instance according to doc:https://docs.openstack.org/ocata
/install-guide-rdo/launch-instance-selfservice.html; Dependce has been
matched:
openstack flavor list
+----+---------+-----+------+-----------+-------+-----------+
| ID | Name | RAM | Disk | Ephemeral | VCPUs | Is Public |
+----+---------+-----+------+-----------+-------+-----------+
| 0 | m1.nano | 64 | 1 | 0 | 1 | True |
+----+---------+-----+------+-----------+-------+-----------+
Environment:
openstack-nova-common-15.0.3-2.el7.noarch
Storage is local disk.
But I got the following exception,I'll be very appreceate if anyone can
fix it.
2017-06-09 18:11:34.384 2714 INFO nova.api.openstack.wsgi [req-3f03f365-939a-4f39-b3e9-486b85aaea18 516cf2cbbe7a46cebee2c50a7ff0764c 0bd7f00e71f8494bb227621f058d926d - default default] HTTP 异常抛出:云主机类型 m1.nano 没有找到。
2017-06-09 18:11:34.387 2714 INFO nova.osapi_compute.wsgi.server [req-3f03f365-939a-4f39-b3e9-486b85aaea18 516cf2cbbe7a46cebee2c50a7ff0764c 0bd7f00e71f8494bb227621f058d926d - default default] 10.0.2.4 "GET /v2.1/flavors/m1.nano HTTP/1.1" status: 404 len: 470 time: 0.0577080
2017-06-09 18:11:34.442 2714 INFO nova.api.openstack.wsgi [req-135167cd-4698-4a92-82fd-3b6f3c74ed7d 516cf2cbbe7a46cebee2c50a7ff0764c 0bd7f00e71f8494bb227621f058d926d - default default] HTTP 异常抛出:云主机类型 m1.nano 没有找到。
2017-06-09 18:11:34.443 2714 INFO nova.osapi_compute.wsgi.server [req-135167cd-4698-4a92-82fd-3b6f3c74ed7d 516cf2cbbe7a46cebee2c50a7ff0764c 0bd7f00e71f8494bb227621f058d926d - default default] 10.0.2.4 "GET /v2.1/flavors/m1.nano HTTP/1.1" status: 404 len: 470 time: 0.0523901
2017-06-09 18:11:34.494 2714 INFO nova.osapi_compute.wsgi.server [req-056f68e2-390d-4e08-84f2-026220dadd3e 516cf2cbbe7a46cebee2c50a7ff0764c 0bd7f00e71f8494bb227621f058d926d - default default] 10.0.2.4 "GET /v2.1/flavors HTTP/1.1" status: 200 len: 520 time: 0.0470800
2017-06-09 18:11:34.537 2714 INFO nova.osapi_compute.wsgi.server [req-0f09f59e-950c-4913-944a-b04add664ed2 516cf2cbbe7a46cebee2c50a7ff0764c 0bd7f00e71f8494bb227621f058d926d - default default] 10.0.2.4 "GET /v2.1/flavors/0 HTTP/1.1" status: 200 len: 686 time: 0.0316770
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions [req-30bc50f8-ee53-487b-8194-2849c517e274 516cf2cbbe7a46cebee2c50a7ff0764c 0bd7f00e71f8494bb227621f058d926d - default default] 在API方法中发生未预料的异常
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions Traceback (most recent call last):
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/api/openstack/extensions.py", line 338, in wrapped
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions return f(*args, **kwargs)
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 108, in wrapper
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions return func(*args, **kwargs)
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 108, in wrapper
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions return func(*args, **kwargs)
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 108, in wrapper
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions return func(*args, **kwargs)
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 108, in wrapper
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions return func(*args, **kwargs)
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 108, in wrapper
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions return func(*args, **kwargs)
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 108, in wrapper
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions return func(*args, **kwargs)
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/api/openstack/compute/servers.py", line 642, in create
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions **create_kwargs)
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/hooks.py", line 154, in inner
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions rv = f(*args, **kwargs)
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 1613, in create
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions check_server_group_quota=check_server_group_quota)
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 1170, in _create_instance
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions image_id, boot_meta = self._get_image(context, image_href)
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 806, in _get_image
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions image = self.image_api.get(context, image_href)
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/image/api.py", line 95, in get
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions show_deleted=show_deleted)
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/image/glance.py", line 468, in show
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions _reraise_translated_image_exception(image_id)
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/image/glance.py", line 1050, in _reraise_translated_image_exception
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions six.reraise(type(new_exc), new_exc, exc_trace)
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/image/glance.py", line 466, in show
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions image = self._client.call(context, 2, 'get', image_id)
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/image/glance.py", line 164, in call
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions version)
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/image/glance.py", line 149, in _create_onetime_client
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions self.api_servers = get_api_servers()
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/image/glance.py", line 114, in get_api_servers
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions for api_server in CONF.glance.api_servers:
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions TypeError: 'NoneType' object is not iterable
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions
2017-06-09 18:11:34.860 2714 INFO nova.api.openstack.wsgi [req-30bc50f8-ee53-487b-8194-2849c517e274 516cf2cbbe7a46cebee2c50a7ff0764c 0bd7f00e71f8494bb227621f058d926d - default default] HTTP 异常抛出:发生意外 API 错误。请在 http://bugs.launchpad.net/nova/ 处报告此错误,并且附上 Nova API 日志(如果可能)。
<type 'exceptions.TypeError'>
2017-06-09 18:11:34.861 2714 INFO nova.osapi_compute.wsgi.server [req-30bc50f8-ee53-487b-8194-2849c517e274 516cf2cbbe7a46cebee2c50a7ff0764c 0bd7f00e71f8494bb227621f058d926d - default default] 10.0.2.4 "POST /v2.1/servers HTTP/1.1" status: 500 len: 666 time: 0.0585129
** Affects: nova
Importance: Undecided
Status: New
--
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/1696972
Title:
host type 'm1.nano' not found when lanch instance
Status in OpenStack Compute (nova):
New
Bug description:
I lanch an instance according to doc:https://docs.openstack.org/ocata
/install-guide-rdo/launch-instance-selfservice.html; Dependce has been
matched:
openstack flavor list
+----+---------+-----+------+-----------+-------+-----------+
| ID | Name | RAM | Disk | Ephemeral | VCPUs | Is Public |
+----+---------+-----+------+-----------+-------+-----------+
| 0 | m1.nano | 64 | 1 | 0 | 1 | True |
+----+---------+-----+------+-----------+-------+-----------+
Environment:
openstack-nova-common-15.0.3-2.el7.noarch
Storage is local disk.
But I got the following exception,I'll be very appreceate if anyone
can fix it.
2017-06-09 18:11:34.384 2714 INFO nova.api.openstack.wsgi [req-3f03f365-939a-4f39-b3e9-486b85aaea18 516cf2cbbe7a46cebee2c50a7ff0764c 0bd7f00e71f8494bb227621f058d926d - default default] HTTP 异常抛出:云主机类型 m1.nano 没有找到。
2017-06-09 18:11:34.387 2714 INFO nova.osapi_compute.wsgi.server [req-3f03f365-939a-4f39-b3e9-486b85aaea18 516cf2cbbe7a46cebee2c50a7ff0764c 0bd7f00e71f8494bb227621f058d926d - default default] 10.0.2.4 "GET /v2.1/flavors/m1.nano HTTP/1.1" status: 404 len: 470 time: 0.0577080
2017-06-09 18:11:34.442 2714 INFO nova.api.openstack.wsgi [req-135167cd-4698-4a92-82fd-3b6f3c74ed7d 516cf2cbbe7a46cebee2c50a7ff0764c 0bd7f00e71f8494bb227621f058d926d - default default] HTTP 异常抛出:云主机类型 m1.nano 没有找到。
2017-06-09 18:11:34.443 2714 INFO nova.osapi_compute.wsgi.server [req-135167cd-4698-4a92-82fd-3b6f3c74ed7d 516cf2cbbe7a46cebee2c50a7ff0764c 0bd7f00e71f8494bb227621f058d926d - default default] 10.0.2.4 "GET /v2.1/flavors/m1.nano HTTP/1.1" status: 404 len: 470 time: 0.0523901
2017-06-09 18:11:34.494 2714 INFO nova.osapi_compute.wsgi.server [req-056f68e2-390d-4e08-84f2-026220dadd3e 516cf2cbbe7a46cebee2c50a7ff0764c 0bd7f00e71f8494bb227621f058d926d - default default] 10.0.2.4 "GET /v2.1/flavors HTTP/1.1" status: 200 len: 520 time: 0.0470800
2017-06-09 18:11:34.537 2714 INFO nova.osapi_compute.wsgi.server [req-0f09f59e-950c-4913-944a-b04add664ed2 516cf2cbbe7a46cebee2c50a7ff0764c 0bd7f00e71f8494bb227621f058d926d - default default] 10.0.2.4 "GET /v2.1/flavors/0 HTTP/1.1" status: 200 len: 686 time: 0.0316770
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions [req-30bc50f8-ee53-487b-8194-2849c517e274 516cf2cbbe7a46cebee2c50a7ff0764c 0bd7f00e71f8494bb227621f058d926d - default default] 在API方法中发生未预料的异常
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions Traceback (most recent call last):
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/api/openstack/extensions.py", line 338, in wrapped
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions return f(*args, **kwargs)
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 108, in wrapper
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions return func(*args, **kwargs)
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 108, in wrapper
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions return func(*args, **kwargs)
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 108, in wrapper
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions return func(*args, **kwargs)
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 108, in wrapper
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions return func(*args, **kwargs)
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 108, in wrapper
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions return func(*args, **kwargs)
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 108, in wrapper
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions return func(*args, **kwargs)
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/api/openstack/compute/servers.py", line 642, in create
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions **create_kwargs)
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/hooks.py", line 154, in inner
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions rv = f(*args, **kwargs)
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 1613, in create
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions check_server_group_quota=check_server_group_quota)
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 1170, in _create_instance
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions image_id, boot_meta = self._get_image(context, image_href)
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 806, in _get_image
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions image = self.image_api.get(context, image_href)
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/image/api.py", line 95, in get
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions show_deleted=show_deleted)
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/image/glance.py", line 468, in show
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions _reraise_translated_image_exception(image_id)
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/image/glance.py", line 1050, in _reraise_translated_image_exception
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions six.reraise(type(new_exc), new_exc, exc_trace)
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/image/glance.py", line 466, in show
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions image = self._client.call(context, 2, 'get', image_id)
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/image/glance.py", line 164, in call
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions version)
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/image/glance.py", line 149, in _create_onetime_client
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions self.api_servers = get_api_servers()
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions File "/usr/lib/python2.7/site-packages/nova/image/glance.py", line 114, in get_api_servers
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions for api_server in CONF.glance.api_servers:
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions TypeError: 'NoneType' object is not iterable
2017-06-09 18:11:34.858 2714 ERROR nova.api.openstack.extensions
2017-06-09 18:11:34.860 2714 INFO nova.api.openstack.wsgi [req-30bc50f8-ee53-487b-8194-2849c517e274 516cf2cbbe7a46cebee2c50a7ff0764c 0bd7f00e71f8494bb227621f058d926d - default default] HTTP 异常抛出:发生意外 API 错误。请在 http://bugs.launchpad.net/nova/ 处报告此错误,并且附上 Nova API 日志(如果可能)。
<type 'exceptions.TypeError'>
2017-06-09 18:11:34.861 2714 INFO nova.osapi_compute.wsgi.server [req-30bc50f8-ee53-487b-8194-2849c517e274 516cf2cbbe7a46cebee2c50a7ff0764c 0bd7f00e71f8494bb227621f058d926d - default default] 10.0.2.4 "POST /v2.1/servers HTTP/1.1" status: 500 len: 666 time: 0.0585129
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1696972/+subscriptions
Follow ups