[Openstack] Heat create-stack fails.

Michael Van Der Beek michael.van at antlabs.com
Fri Jun 3 03:21:48 UTC 2016


Hi Eugen,

For some reason, I'm not getting any email from this list.
My mailserver doesn't even show any attempts from the list server.

Anyway, the install guide does not specify what the auth_plugin is suppose to be.
By default auth_plugin is depreciated.

# Authentication type to load (unknown value)
# Deprecated group;name - DEFAULT;auth_plugin
#auth_type=<None>

As the install guide does not specified, any idea what should I put in here.

The guide has many places that the commands have changed syntax so its not very accurate any more.

Regards,

Michael
-------------------------------------------------------------
Hi,

I'm just guessing, but maybe you didn't change the auth_plugin in
nova.conf on compute node?

Regards,
Eugen

From: Michael Van Der Beek
Sent: Thursday, June 2, 2016 4:48 PM
To: 'openstack at lists.openstack.org' <openstack at lists.openstack.org>
Subject: Heat create-stack fails.

Hi All,

Sorry to trouble you guys.
I've been following the install guide found at
http://docs.openstack.org/juno/install-guide/install/yum/content/ch_preface.html

I've gotten everything to work except the Orchestra.

When I do this.
[root at controller nova]# heat stack-create -f /root/test-stack.yml   -P "ImageID=cirros-0.3.3-x86_64;NetID=$NET_ID" testStack
+--------------------------------------+------------+--------------------+---------------------+--------------+
| id                                   | stack_name | stack_status       | creation_time       | updated_time |
+--------------------------------------+------------+--------------------+---------------------+--------------+
| a3c21978-78e0-4cb1-b92e-cb853df4aa04 | testStack  | CREATE_IN_PROGRESS | 2016-06-02T08:39:53 | None         |
+--------------------------------------+------------+--------------------+---------------------+--------------+

Later..
[root at controller nova]# heat stack-list
+--------------------------------------+------------+---------------+---------------------+--------------+
| id                                   | stack_name | stack_status  | creation_time       | updated_time |
+--------------------------------------+------------+---------------+---------------------+--------------+
| a3c21978-78e0-4cb1-b92e-cb853df4aa04 | testStack  | CREATE_FAILED | 2016-06-02T08:39:53 | None         |
+--------------------------------------+------------+---------------+---------------------+--------------+

>From what I understand, the heat log shows this:
2016-06-02 16:39:53.681 2853 INFO heat.engine.stack [-] Stack CREATE IN_PROGRESS (testStack): Stack CREATE started
2016-06-02 16:39:53.692 2853 INFO heat.engine.resource [-] creating Server "server" Stack "testStack" [a3c21978-78e0-4cb1-b92e-cb853df4aa04]
2016-06-02 16:39:54.699 2853 INFO heat.engine.resource [-] CREATE: Server "server" Stack "testStack" [a3c21978-78e0-4cb1-b92e-cb853df4aa04]
2016-06-02 16:39:54.699 2853 ERROR heat.engine.resource Traceback (most recent call last):
2016-06-02 16:39:54.699 2853 ERROR heat.engine.resource   File "/usr/lib/python2.7/site-packages/heat/engine/resource.py", line 704, in _action_recorder
2016-06-02 16:39:54.699 2853 ERROR heat.engine.resource     yield
2016-06-02 16:39:54.699 2853 ERROR heat.engine.resource   File "/usr/lib/python2.7/site-packages/heat/engine/resource.py", line 775, in _do_action
2016-06-02 16:39:54.699 2853 ERROR heat.engine.resource     yield self.action_handler_task(action, args=handler_args)
2016-06-02 16:39:54.699 2853 ERROR heat.engine.resource   File "/usr/lib/python2.7/site-packages/heat/engine/scheduler.py", line 297, in wrapper
2016-06-02 16:39:54.699 2853 ERROR heat.engine.resource     step = next(subtask)
2016-06-02 16:39:54.699 2853 ERROR heat.engine.resource   File "/usr/lib/python2.7/site-packages/heat/engine/resource.py", line 746, in action_handler_task
2016-06-02 16:39:54.699 2853 ERROR heat.engine.resource     handler_data = handler(*args)
2016-06-02 16:39:54.699 2853 ERROR heat.engine.resource   File "/usr/lib/python2.7/site-packages/heat/engine/resources/openstack/nova/server.py", line 861, in handle_crea
te
2016-06-02 16:39:54.699 2853 ERROR heat.engine.resource     admin_pass=admin_pass)
2016-06-02 16:39:54.699 2853 ERROR heat.engine.resource   File "/usr/lib/python2.7/site-packages/novaclient/v2/servers.py", line 1233, in create
2016-06-02 16:39:54.699 2853 ERROR heat.engine.resource     **boot_kwargs)
2016-06-02 16:39:54.699 2853 ERROR heat.engine.resource   File "/usr/lib/python2.7/site-packages/novaclient/v2/servers.py", line 667, in _boot
2016-06-02 16:39:54.699 2853 ERROR heat.engine.resource     return_raw=return_raw, **kwargs)
2016-06-02 16:39:54.699 2853 ERROR heat.engine.resource   File "/usr/lib/python2.7/site-packages/novaclient/base.py", line 345, in _create
2016-06-02 16:39:54.699 2853 ERROR heat.engine.resource     resp, body = self.api.client.post(url, body=body)
2016-06-02 16:39:54.699 2853 ERROR heat.engine.resource   File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 455, in post
2016-06-02 16:39:54.699 2853 ERROR heat.engine.resource     return self._cs_request(url, 'POST', **kwargs)
2016-06-02 16:39:54.699 2853 ERROR heat.engine.resource   File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 430, in _cs_request
2016-06-02 16:39:54.699 2853 ERROR heat.engine.resource     resp, body = self._time_request(url, method, **kwargs)
2016-06-02 16:39:54.699 2853 ERROR heat.engine.resource   File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 403, in _time_request
2016-06-02 16:39:54.699 2853 ERROR heat.engine.resource     resp, body = self.request(url, method, **kwargs)
2016-06-02 16:39:54.699 2853 ERROR heat.engine.resource   File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 397, in request
2016-06-02 16:39:54.699 2853 ERROR heat.engine.resource     raise exceptions.from_response(resp, body, url, method)
2016-06-02 16:39:54.699 2853 ERROR heat.engine.resource ClientException: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova A
PI log if possible.
2016-06-02 16:39:54.699 2853 ERROR heat.engine.resource <class 'oslo_config.cfg.NoSuchOptError'> (HTTP 500) (Request-ID: req-6a7f30c7-3882-4235-b3ca-8687b96f7645)
2016-06-02 16:39:54.699 2853 ERROR heat.engine.resource
2016-06-02 16:39:54.722 2853 INFO heat.engine.service [-] Stack create failed, status FAILED
2016-06-02 16:39:54.742 2853 INFO heat.engine.stack [-] Stack CREATE FAILED (testStack): Resource CREATE failed: ClientException: resources.server: Unexpected API Error.
Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<class 'oslo_config.cfg.NoSuchOptError'> (HTTP 500) (Request-ID: req-6a7f30c7-3882-4235-b3ca-8687b96f7645)

>From the Nova-api.logs:
2016-06-02 16:39:53.724 25221 INFO nova.api.openstack.wsgi [req-5f2ab23e-466d-426d-bf22-8608c265cf43 6b7fa6d27fc046dc8e991c25aa4a01c8 fd3a0ca3acf14106b4f45adaa8b0f0f8 - -
-] HTTP exception thrown: Flavor m1.tiny could not be found.
2016-06-02 16:39:53.726 25221 INFO nova.osapi_compute.wsgi.server [req-5f2ab23e-466d-426d-bf22-8608c265cf43 6b7fa6d27fc046dc8e991c25aa4a01c8 fd3a0ca3acf14106b4f45adaa8b0f
0f8 - - -] 10.20.1.71 "GET /v2/fd3a0ca3acf14106b4f45adaa8b0f0f8/flavors/m1.tiny HTTP/1.1" status: 404 len: 298 time: 0.0265911
2016-06-02 16:39:53.764 25221 INFO nova.osapi_compute.wsgi.server [req-0d1ef2b3-4daa-406e-9f31-6a63125f8303 6b7fa6d27fc046dc8e991c25aa4a01c8 fd3a0ca3acf14106b4f45adaa8b0f
0f8 - - -] 10.20.1.71 "GET /v2/fd3a0ca3acf14106b4f45adaa8b0f0f8/flavors HTTP/1.1" status: 200 len: 1407 time: 0.0322111
2016-06-02 16:39:53.796 25221 INFO nova.osapi_compute.wsgi.server [req-efce0c41-029d-4c49-9cdd-f76917af3189 6b7fa6d27fc046dc8e991c25aa4a01c8 fd3a0ca3acf14106b4f45adaa8b0f
0f8 - - -] 10.20.1.71 "GET /v2/fd3a0ca3acf14106b4f45adaa8b0f0f8/flavors/1 HTTP/1.1" status: 200 len: 615 time: 0.0266550
2016-06-02 16:39:54.361 25221 INFO nova.osapi_compute.wsgi.server [req-ef00628d-a63f-427a-a3de-47964e4717d3 6b7fa6d27fc046dc8e991c25aa4a01c8 fd3a0ca3acf14106b4f45adaa8b0f
0f8 - - -] 10.20.1.71 "GET /v2/fd3a0ca3acf14106b4f45adaa8b0f0f8/flavors/1 HTTP/1.1" status: 200 len: 615 time: 0.0368102
2016-06-02 16:39:54.694 25221 ERROR nova.api.openstack.extensions [req-6a7f30c7-3882-4235-b3ca-8687b96f7645 6b7fa6d27fc046dc8e991c25aa4a01c8 fd3a0ca3acf14106b4f45adaa8b0f
0f8 - - -] Unexpected exception in API method
2016-06-02 16:39:54.694 25221 ERROR nova.api.openstack.extensions Traceback (most recent call last):
2016-06-02 16:39:54.694 25221 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/api/openstack/extensions.py", line 478, in wrapped
2016-06-02 16:39:54.694 25221 ERROR nova.api.openstack.extensions     return f(*args, **kwargs)
2016-06-02 16:39:54.694 25221 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 73, in wrapper
2016-06-02 16:39:54.694 25221 ERROR nova.api.openstack.extensions     return func(*args, **kwargs)
2016-06-02 16:39:54.694 25221 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 73, in wrapper
2016-06-02 16:39:54.694 25221 ERROR nova.api.openstack.extensions     return func(*args, **kwargs)
2016-06-02 16:39:54.694 25221 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 73, in wrapper
2016-06-02 16:39:54.694 25221 ERROR nova.api.openstack.extensions     return func(*args, **kwargs)
2016-06-02 16:39:54.694 25221 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/api/openstack/compute/servers.py", line 629, in create
2016-06-02 16:39:54.694 25221 ERROR nova.api.openstack.extensions     **create_kwargs)
2016-06-02 16:39:54.694 25221 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/hooks.py", line 154, in inner
2016-06-02 16:39:54.694 25221 ERROR nova.api.openstack.extensions     rv = f(*args, **kwargs)
2016-06-02 16:39:54.694 25221 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 1556, in create
2016-06-02 16:39:54.694 25221 ERROR nova.api.openstack.extensions     check_server_group_quota=check_server_group_quota)
2016-06-02 16:39:54.694 25221 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 1139, in _create_instance
2016-06-02 16:39:54.694 25221 ERROR nova.api.openstack.extensions     reservation_id, max_count)
2016-06-02 16:39:54.694 25221 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/compute/api.py", line 866, in _validate_and_build_base_options
2016-06-02 16:39:54.694 25221 ERROR nova.api.openstack.extensions     pci_request_info, requested_networks)
2016-06-02 16:39:54.694 25221 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 1062, in create_pci_requests_for_sriov_ports
2016-06-02 16:39:54.694 25221 ERROR nova.api.openstack.extensions     neutron = get_client(context, admin=True)
2016-06-02 16:39:54.694 25221 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 139, in get_client
2016-06-02 16:39:54.694 25221 ERROR nova.api.openstack.extensions     _ADMIN_AUTH = _load_auth_plugin(CONF)
2016-06-02 16:39:54.694 25221 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 119, in _load_auth_plugin
2016-06-02 16:39:54.694 25221 ERROR nova.api.openstack.extensions     err_msg = _('Unknown auth plugin: %s') % conf.neutron.auth_plugin
2016-06-02 16:39:54.694 25221 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/oslo_config/cfg.py", line 2950, in __getattr__
2016-06-02 16:39:54.694 25221 ERROR nova.api.openstack.extensions     return self._conf._get(name, self._group)
2016-06-02 16:39:54.694 25221 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/oslo_config/cfg.py", line 2571, in _get
2016-06-02 16:39:54.694 25221 ERROR nova.api.openstack.extensions     value = self._do_get(name, group, namespace)
2016-06-02 16:39:54.694 25221 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/oslo_config/cfg.py", line 2588, in _do_get
2016-06-02 16:39:54.694 25221 ERROR nova.api.openstack.extensions     info = self._get_opt_info(name, group)
2016-06-02 16:39:54.694 25221 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/oslo_config/cfg.py", line 2722, in _get_opt_info
2016-06-02 16:39:54.694 25221 ERROR nova.api.openstack.extensions     raise NoSuchOptError(opt_name, group)
2016-06-02 16:39:54.694 25221 ERROR nova.api.openstack.extensions NoSuchOptError: no such option in group neutron: auth_plugin
2016-06-02 16:39:54.694 25221 ERROR nova.api.openstack.extensions
2016-06-02 16:39:54.696 25221 INFO nova.api.openstack.wsgi [req-6a7f30c7-3882-4235-b3ca-8687b96f7645 6b7fa6d27fc046dc8e991c25aa4a01c8 fd3a0ca3acf14106b4f45adaa8b0f0f8 - - -] HTTP exception thrown: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<class 'oslo_config.cfg.NoSuchOptError'>
2016-06-02 16:39:54.697 25221 INFO nova.osapi_compute.wsgi.server [req-6a7f30c7-3882-4235-b3ca-8687b96f7645 6b7fa6d27fc046dc8e991c25aa4a01c8 fd3a0ca3acf14106b4f45adaa8b0f0f8 - - -] 10.20.1.71 "POST /v2/fd3a0ca3acf14106b4f45adaa8b0f0f8/servers HTTP/1.1" status: 500 len: 435 time: 0.2159641

As far as I can see from dashboard, there is a m1.tny flavor. So I don't think that is the problem.
I'm not sure why it is throwing an error NoSuchOptError: no such option in group neutron: auth_plugin when the nova.conf file has auth_type=<None>

Can anyone give me some advice?

This guide has several command changes due to newer versions of some commands.

Regards,

Michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20160603/d6807cc2/attachment.html>


More information about the Openstack mailing list