How do I revive/boot up an openstack Linux VM that has been shutdown (shutdown -h now) and is therefore in the SHUTOFF status

asked 2018-06-18 19:44:55 -0500

ddamerjian gravatar image

updated 2018-06-27 05:38:45 -0500

I have a Linux VM that I have shutdown with shutdown -h now, and it goes into the SHUTOFF status, which in my case I can see clearly in the GUI of Cisco's VM Maestro product that runs on top of VIRL (Virtual Internet Routing Lab). But anyway none of those layers should matter ... I cannot figure out for the life of me how and if you can revive a VM that is in this status - I am really starting to think that you cannot - I do NOT want to lose all my work, and STOPPING the VM would result in that. I have shutdown the Linux VM and so everything should be intact on its hard drive, it just needs to be rebooted / TURNED ON!

What is interesting is that the following documentation talks about VM states but then also mentions that SHUTOFF is a state but really it is a "status":

https://docs.openstack.org/nova/lates...

This SHUTOFF status can be seen in the following output.

virl@virl:~$ openstack server show 3799583b-cf87-4e82-80b6-dc8baa371056 
+--------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Field                                | Value                                                                                                                                                                                 |
+--------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| OS-DCF:diskConfig                    | MANUAL                                                                                                                                                                                |
| OS-EXT-AZ:availability_zone          | nova                                                                                                                                                                                  |
| OS-EXT-SRV-ATTR:host                 | compute4                                                                                                                                                                              |
| OS-EXT-SRV-ATTR:hypervisor_hostname  | compute4                                                                                                                                                                              |
| OS-EXT-SRV-ATTR:instance_name        | instance-00002629                                                                                                                                                                     |
| OS-EXT-STS:power_state               | 4                                                                                                                                                                                     |
| OS-EXT-STS:task_state                | None                                                                                                                                                                                  |
| OS-EXT-STS:vm_state                  | stopped                                                                                                                                                                               |
| OS-SRV-USG:launched_at               | 2018-06-14T20:41:36.000000                                                                                                                                                            |
| OS-SRV-USG:terminated_at             | None                                                                                                                                                                                  |
| accessIPv4                           |                                                                                                                                                                                       |
| accessIPv6                           |                                                                                                                                                                                       |
| addresses                            | </ddamerji/endpoint>-<PGW_CPS_Remote_Topology_Stub_Config-liE7E1>-<Router1-to-lab>=10.255.255.2; </ddamerji/endpoint>-<PGW_CPS_Remote_Topology_Stub_Config-liE7E1>-<mgmt>=10.255.0.39 |
| config_drive                         | True                                                                                                                                                                                  |
| created                              | 2018-06-14T20:41:31Z                                                                                                                                                                  |
| flavor                               | CPS_16GbRAM_8CPU_100Gb (6c8148e4-b555-4038-953f-58d164073ac8)                                                                                                                         |
| hostId                               | 75acc970ac906aad964d02b87dfa7c56f670c69be8c82e14424d7b62                                                                                                                              |
| id                                   | 3799583b-cf87-4e82-80b6-dc8baa371056                                                                                                                                                  |
| image                                | ddamerji-server-lab-shutoff (59c5e758-117f-4fa5-9c24-17f408fe4d7c)                                                                                                                    |
| key_name                             | None                                                                                                                                                                                  |
| name                                 | </ddamerji/endpoint>-<PGW_CPS_Remote_Topology_Stub_Config-liE7E1>-<lab>                                                                                                               |
| os-extended-volumes:volumes_attached | []                                                                                                                                                                                    |
| project_id                           | 18a1a4dd4ef7454cae1ca9ab1a97219a                                                                                                                                                      |
| properties                           | node_id='lab', simulation_id='PGW_CPS_Remote_Topology_Stub_Config-liE7E1', user_id='ddamerji'                                                                                         |
| security_groups                      | [{u'name': u'default'}, {u'name': u'default'}]                                                                                                                                        |
| status                               | SHUTOFF                                                                                                                                                                               |
| updated                              | 2018-06-15T21:11:38Z                                                                                                                                                                  |
| user_id                              | 5cbe5c346a9e47f2b5e27dbd431e8f04                                                                                                                                                      |
+--------------------------------------+------------------------------

I'd appreciate any assistance here, internet searches have not turned up anything definitive, I did find one hit from 2014 where the person said they could just do an OpenStack server start, but I tried that in this case and it did NOTHING, the status remained shutoff:

image description

edit retag flag offensive close merge delete

Comments

If openstack server start fails, check the Nova logs for error messages. You can grep for the instance ID for fast results.

Or perhaps the instance just shuts down by itself. In this case, you must peel whatever logs your application generates from the instance's disk.

Bernd Bausch gravatar imageBernd Bausch ( 2018-06-25 06:46:35 -0500 )edit