Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

heat resource-show gives "Stack or resource not found"

Hi, TripleO baremetal overcloud creation does not complete . The heat stack creation continues for an hour and finally shows CREATE_FAILED. I just have one control and one compute node for the overcloud .

Adding debug for heat shows the below message continuously in the /var/log/heat/engine.log.

2014-10-29 21:13:16.905 5722 DEBUG heat.openstack.common.rpc.amqp [-] received {u'_msg_id': u'8fa5529d394c4f8a878251094dee6e3f', u'_context_request_id': u'req-10b64214-7be1-437b-94f5-5dcdac7bdf23', u'_context_trust_id': None, u'_context_auth_token': '<SANITIZED>', u'_context_user_id': u'50cae85f89ea4474b9df419bf7ece391', u'_context_username': None, u'_reply_q': u'reply_2ed2e66394ee4790a2a697770534dc9c', u'_context_show_deleted': False, u'namespace': None, u'_context_is_admin': False, u'version': u'1.0', u'_context_user': None, u'method': u'identify_stack', u'_context_roles': [u'heat_stack_user'], u'_context_auth_url': u'http://127.0.0.1:5000/v2.0', u'args': {u'stack_name': u'overcloud'}, u'_unique_id': u'fc019815be6040c0873737f0e35dd6cd', u'_context_tenant_id': u'b6a0286734e442b1879b63ca001130b7', u'_context_password': '<SANITIZED>', u'_context_trustor_user_id': None, u'_context_aws_creds': u'{"ec2Credentials": {"access": "5f997870818f4d4eb1f82b2b0c0a6eba", "signature": "RVIZb3vzyQfcjMacm1M/muQ2SKJ8h5WaGsV5mTFmRRw="}}', u'_context_tenant': u'admin'} _safe_log /usr/lib/python2.7/site-packages/heat/openstack/common/rpc/common.py:280
2014-10-29 21:13:16.905 5722 DEBUG heat.openstack.common.rpc.amqp [-] unpacked context: {'username': None, 'user_id': u'50cae85f89ea4474b9df419bf7ece391', 'show_deleted': False, 'roles': [u'heat_stack_user'], 'tenant_id': u'b6a0286734e442b1879b63ca001130b7', 'auth_token': '<SANITIZED>', 'trust_id': None, 'is_admin': False, 'user': None, 'request_id': u'req-10b64214-7be1-437b-94f5-5dcdac7bdf23', 'auth_url': u'http://127.0.0.1:5000/v2.0', 'password': '<SANITIZED>', 'aws_creds': u'{"ec2Credentials": {"access": "5f997870818f4d4eb1f82b2b0c0a6eba", "signature": "RVIZb3vzyQfcjMacm1M/muQ2SKJ8h5WaGsV5mTFmRRw="}}', 'tenant': u'admin', 'trustor_user_id': None} _safe_log /usr/lib/python2.7/site-packages/heat/openstack/common/rpc/common.py:280
2014-10-29 21:13:16.914 5722 DEBUG heat.openstack.common.rpc.amqp [req-10b64214-7be1-437b-94f5-5dcdac7bdf23 None] UNIQUE_ID is a7f77ffbbe2f44809f9f0f1cb3018230. _add_unique_id /usr/lib/python2.7/site-packages/heat/openstack/common/rpc/amqp.py:342
2014-10-29 21:13:16.915 5722 DEBUG amqp [-] Closed channel #1 _do_close /usr/lib/python2.7/site-packages/amqp/channel.py:95
2014-10-29 21:13:16.915 5722 DEBUG amqp [-] using channel_id: 1 __init__ /usr/lib/python2.7/site-packages/amqp/channel.py:71
2014-10-29 21:13:16.916 5722 DEBUG amqp [-] Channel open _open_ok /usr/lib/python2.7/site-packages/amqp/channel.py:429
2014-10-29 21:13:16.916 5722 DEBUG heat.openstack.common.rpc.amqp [req-10b64214-7be1-437b-94f5-5dcdac7bdf23 None] UNIQUE_ID is 4dd87ab66aef411c81b6f4ac24832f06. _add_unique_id /usr/lib/python2.7/site-packages/heat/openstack/common/rpc/amqp.py:342
2014-10-29 21:13:16.918 5722 DEBUG amqp [-] Closed channel #1 _do_close /usr/lib/python2.7/site-packages/amqp/channel.py:95
2014-10-29 21:13:16.918 5722 DEBUG amqp [-] using channel_id: 1 __init__ /usr/lib/python2.7/site-packages/amqp/channel.py:71
2014-10-29 21:13:16.919 5722 DEBUG amqp [-] Channel open _open_ok /usr/lib/python2.7/site-packages/amqp/channel.py:429
2014-10-29 21:13:16.921 5722 DEBUG heat.openstack.common.rpc.amqp [-] received {u'_msg_id': u'7fd5901215984b42b136d8317e59899c', u'_context_request_id': u'req-10b64214-7be1-437b-94f5-5dcdac7bdf23', u'_context_trust_id': None, u'_context_auth_token': '<SANITIZED>', u'_context_user_id': u'50cae85f89ea4474b9df419bf7ece391', u'_context_username': None, u'_reply_q': u'reply_2ed2e66394ee4790a2a697770534dc9c', u'_context_show_deleted': False, u'namespace': None, u'_context_is_admin': False, u'version': u'1.0', u'_context_user': None, u'method': u'describe_stack_resource', u'_context_roles': [u'heat_stack_user'], u'_context_auth_url': u'http://127.0.0.1:5000/v2.0', u'args': {u'resource_name': u'NovaCompute0Config', u'stack_identity': {u'stack_name': u'overcloud', u'stack_id': u'b4e61c3a-b950-4675-96f1-7c054e43c662', u'tenant': u'b6a0286734e442b1879b63ca001130b7', u'path': u''}}, u'_unique_id': u'0c94be27fb06463ea46552192514aa09', u'_context_tenant_id': u'b6a0286734e442b1879b63ca001130b7', u'_context_password': '<SANITIZED>', u'_context_trustor_user_id': None, u'_context_aws_creds': u'{"ec2Credentials": {"access": "5f997870818f4d4eb1f82b2b0c0a6eba", "signature": "RVIZb3vzyQfcjMacm1M/muQ2SKJ8h5WaGsV5mTFmRRw="}}', u'_context_tenant': u'admin'} _safe_log /usr/lib/python2.7/site-packages/heat/openstack/common/rpc/common.py:280
2014-10-29 21:13:16.922 5722 DEBUG heat.openstack.common.rpc.amqp [-] unpacked context: {'username': None, 'user_id': u'50cae85f89ea4474b9df419bf7ece391', 'show_deleted': False, 'roles': [u'heat_stack_user'], 'tenant_id': u'b6a0286734e442b1879b63ca001130b7', 'auth_token': '<SANITIZED>', 'trust_id': None, 'is_admin': False, 'user': None, 'request_id': u'req-10b64214-7be1-437b-94f5-5dcdac7bdf23', 'auth_url': u'http://127.0.0.1:5000/v2.0', 'password': '<SANITIZED>', 'aws_creds': u'{"ec2Credentials": {"access": "5f997870818f4d4eb1f82b2b0c0a6eba", "signature": "RVIZb3vzyQfcjMacm1M/muQ2SKJ8h5WaGsV5mTFmRRw="}}', 'tenant': u'admin', 'trustor_user_id': None} _safe_log /usr/lib/python2.7/site-packages/heat/openstack/common/rpc/common.py:280
2014-10-29 21:13:17.048 5722 DEBUG heat.openstack.common.rpc.amqp [req-10b64214-7be1-437b-94f5-5dcdac7bdf23 None] Expected exception during message handling (The Resource (NovaCompute0Config) is not available.) _process_data /usr/lib/python2.7/site-packages/heat/openstack/common/rpc/amqp.py:473
2014-10-29 21:13:17.049 5722 DEBUG heat.openstack.common.rpc.amqp [req-10b64214-7be1-437b-94f5-5dcdac7bdf23 None] UNIQUE_ID is 9a948d1438974b50983c9eff7ff721d6. _add_unique_id /usr/lib/python2.7/site-packages/heat/openstack/common/rpc/amqp.py:342

Below is the output of the heat resource-list

[ostack@localhost ~]$  heat resource-list overcloud
+---------------------------------+--------------------------------------+------------------------------------------+-----------------+----------------------+
| resource_name                   | physical_resource_id                 | resource_type                            | resource_status | updated_time         |
+---------------------------------+--------------------------------------+------------------------------------------+-----------------+----------------------+
| AccessPolicy                    |                                      | OS::Heat::AccessPolicy                   | CREATE_COMPLETE | 2014-10-30T04:07:41Z |
| BlockStorageAccessPolicy        |                                      | OS::Heat::AccessPolicy                   | CREATE_COMPLETE | 2014-10-30T04:07:41Z |
| BlockStorageUser                | f6b5b086308d4c0ca03830ad76aeeb18     | AWS::IAM::User                           | CREATE_COMPLETE | 2014-10-30T04:07:41Z |
| ComputeAccessPolicy             |                                      | OS::Heat::AccessPolicy                   | CREATE_COMPLETE | 2014-10-30T04:07:41Z |
| ComputeUser                     | 50cae85f89ea4474b9df419bf7ece391     | AWS::IAM::User                           | CREATE_COMPLETE | 2014-10-30T04:07:41Z |
| NovaCompute0CompletionHandle    | e658bb0688684b24ac6b39045ef77017     | AWS::CloudFormation::WaitConditionHandle | CREATE_COMPLETE | 2014-10-30T04:07:41Z |
| RabbitCookie                    | YYcoEaYf2KsxRvrsluV8                 | OS::Heat::RandomString                   | CREATE_COMPLETE | 2014-10-30T04:07:41Z |
| SwiftStorageAccessPolicy        |                                      | OS::Heat::AccessPolicy                   | CREATE_COMPLETE | 2014-10-30T04:07:41Z |
| SwiftStorageUser                | bcd30013b82543d5a5eb2d6889f5b765     | AWS::IAM::User                           | CREATE_COMPLETE | 2014-10-30T04:07:41Z |
| User                            | 95fdf8a522b04ad8b87093fe9810d431     | AWS::IAM::User                           | CREATE_COMPLETE | 2014-10-30T04:07:41Z |
| notCompute0CompletionHandle     | 452fc1d5aa0849f4b063508e53573a52     | OS::Heat::UpdateWaitConditionHandle      | CREATE_COMPLETE | 2014-10-30T04:07:41Z |
| NovaCompute0Key                 | 5f997870818f4d4eb1f82b2b0c0a6eba     | AWS::IAM::AccessKey                      | CREATE_COMPLETE | 2014-10-30T04:07:43Z |
| notCompute0Key                  | 374354d0bc3f4baa8a5c1337e8581a30     | AWS::IAM::AccessKey                      | CREATE_COMPLETE | 2014-10-30T04:07:43Z |
| NovaCompute0                    | 0303e769-8c84-4276-bf95-6eafe3a42106 | OS::Nova::Server                         | CREATE_FAILED   | 2014-10-30T04:07:44Z |
| notCompute0                     | a27cd70c-9b37-468a-a50c-30f0ff19aec4 | OS::Nova::Server                         | CREATE_FAILED   | 2014-10-30T04:07:46Z |
| NovaCompute0CompletionCondition |                                      | AWS::CloudFormation::WaitCondition       | INIT_COMPLETE   | 2014-10-30T16:27:43Z |
| NovaCompute0Config              |                                      | AWS::AutoScaling::LaunchConfiguration    | INIT_COMPLETE   | 2014-10-30T16:27:43Z |
| notCompute0CompletionCondition  |                                      | AWS::CloudFormation::WaitCondition       | INIT_COMPLETE   | 2014-10-30T16:27:43Z |
| notCompute0Config               |                                      | AWS::AutoScaling::LaunchConfiguration    | INIT_COMPLETE   | 2014-10-30T16:27:43Z |
+---------------------------------+--------------------------------------+------------------------------------------+-----------------+----------------------+
[ostack@localhost ~]$  heat resource-show overcloud NovaCompute0Config
Stack or resource not found: overcloud NovaCompute0Config

Is this due to some wrong configuration in the undercloud node or due to some issue in the baremetal overcloud node ? Why is the Novacompute0Config and Notcompute0config resource not showing create_complete ?