stack created but not showing on horizon(UI)

asked 2018-05-22 11:06:53 -0600

mheniMerzouki gravatar image

i created a stack with HEAT following these steps :

  1. source ~/devstack/openrc admin demo
  2. openstack stack create -t myTemp.hot --parameter key_name=heat_key --parameter image_id=trusty-server-cloudimg-amd64-disk1 test_stack

which results in a normal output :

+---------------------+----------------------------------------+
| Field               | Value                                  |
+---------------------+----------------------------------------+
| id                  | ccf03f56-010c-4d2e-b2be-fa83c4d22e1d   |
| stack_name          | test_stack                             |
| description         | Hot Template to deploy a single server |
| creation_time       | 2018-05-22T14:48:16Z                   |
| updated_time        | None                                   |
| stack_status        | CREATE_IN_PROGRESS                     |
| stack_status_reason | Stack CREATE started                   |
+---------------------+----------------------------------------+

and after a while i check if was successfully created : openstack stack show test_stack and i get a long output which says it was a success :

+---------------------------+-------------------------------------------------------------+
| Field                     | Value                                                       |
+---------------------------+----------------------------------------------------------- -+
| id                        | ccf03f56-010c-4d2e-b2be-fa83c4d22e1d                        |
| stack_name                | test_stack                                                  |
| description               | Hot Template to deploy a single server                      |
| creation_time             | 2018-05-22T14:48:16Z                                        |
| updated_time              | None                                                        |
| stack_status              | CREATE_COMPLETE                                             |
| stack_status_reason       | Stack CREATE completed successfully                         |
| parameters                | OS::project_id: f9e2817e0489463a8996ae60ac4930dd            |
|                           | OS::stack_id: ccf03f56-010c-4d2e-b2be-fa83c4d22e1d          |
|                           | OS::stack_name: test_stack                                  |
| outputs                   | - description: IP of the server                             |
|                           |   output_key: test_stack_ip                                 |
|                           |   output_value: 10.0.0.3                                    |

but when i log into horizon and check the instances under project/compute/instances nothing shows up. am i missing something ?

edit retag flag offensive close merge delete

Comments

Even if the stack is launched successfully, the instance may have exited. When you run openstack server list under the admin/demo identity, do you see the instance?

Or perhaps you don’t have the correct identity in Horizon. Do you log on as admin and select the demo project?

Bernd Bausch gravatar imageBernd Bausch ( 2018-05-22 16:20:59 -0600 )edit

thank you seems like i was on the wrong project and the instance was powered off after the creation. is that normal, i thought they were powered on automatically after creation?

mheniMerzouki gravatar imagemheniMerzouki ( 2018-05-23 09:19:31 -0600 )edit

Not normal, but the instance may have crashed or halted for some reason. Try to find clues in the Nova Compute log or the instance’s log files. Also try running it manually.

Bernd Bausch gravatar imageBernd Bausch ( 2018-05-23 18:46:03 -0600 )edit