Why will instance will not start [closed]

asked 2015-04-28 04:28:34 -0600

mickt gravatar image

updated 2015-04-28 08:56:04 -0600

I launched some instances but none will start. I don't see much of assistance in logs or more likely, I don't understand what the logs are telling me. Can anyone assist?

I initially had an issue launching instances, scheduler.log showing the following:

Invalid: Config requested an explicit CPU model, but the current libvirt hypervisor 'xen' does not support selecting CPU models

I manged work around this by commenting out 'cpu_mode=host-passthrough' in nova.conf (same as setting to none).

nova list

+--------------------------------------+------+---------+------------+-------------+------------------+
| ID                                   | Name | Status  | Task State | Power State | Networks         |
+--------------------------------------+------+---------+------------+-------------+------------------+
| 8752f1a2-0d61-469d-b5f1-0978d5898483 | mt4  | SHUTOFF | -          | Shutdown    | net1=10.10.10.10 |
| fd011d71-7f5a-4714-a2c9-e01afca3ba25 | mt7  | SHUTOFF | -          | Shutdown    | net2=20.20.20.6  |
| 606e33a1-8ffd-4da9-8114-13f1c813106d | mt8  | SHUTOFF | -          | Shutdown    | net1=10.10.10.12 |
+--------------------------------------+------+---------+------------+-------------+------------------+

nova start mt4

nova list

+--------------------------------------+------+---------+-------------+-------------+------------------+
| ID                                   | Name | Status  | Task State  | Power State | Networks         |
+--------------------------------------+------+---------+-------------+-------------+------------------+
| 8752f1a2-0d61-469d-b5f1-0978d5898483 | mt4  | SHUTOFF | powering-on | Shutdown    | net1=10.10.10.10 |
| fd011d71-7f5a-4714-a2c9-e01afca3ba25 | mt7  | SHUTOFF | -           | Shutdown    | net2=20.20.20.6  |
| 606e33a1-8ffd-4da9-8114-13f1c813106d | mt8  | SHUTOFF | -           | Shutdown    | net1=10.10.10.12 |
+--------------------------------------+------+---------+-------------+-------------+------------------+

nova list

+--------------------------------------+------+---------+------------+-------------+------------------+
| ID                                   | Name | Status  | Task State | Power State | Networks         |
+--------------------------------------+------+---------+------------+-------------+------------------+
| 8752f1a2-0d61-469d-b5f1-0978d5898483 | mt4  | SHUTOFF | -          | Shutdown    | net1=10.10.10.10 |
| fd011d71-7f5a-4714-a2c9-e01afca3ba25 | mt7  | SHUTOFF | -          | Shutdown    | net2=20.20.20.6  |
| 606e33a1-8ffd-4da9-8114-13f1c813106d | mt8  | SHUTOFF | -          | Shutdown    | net1=10.10.10.12 |
+--------------------------------------+------+---------+------------+-------------+------------------+

nova-compute.log:

2015-04-28 10:13:38.614 19140 INFO nova.virt.libvirt.driver [-] [instance: 8752f1a2-0d61-469d-b5f1-0978d5898483] Instance destroyed successfully.
2015-04-28 10:13:45.829 19140 INFO nova.compute.manager [-] [instance: 8752f1a2-0d61-469d-b5f1-0978d5898483] VM Started (Lifecycle Event)
2015-04-28 10:13:46.153 19140 INFO nova.compute.manager [-] [instance: 8752f1a2-0d61-469d-b5f1-0978d5898483] During sync_power_state the instance has a pending task (powering-on). Skip.
2015-04-28 10:13:46.525 19140 INFO nova.virt.libvirt.driver [-] [instance: 8752f1a2-0d61-469d-b5f1-0978d5898483] Instance rebooted successfully.
2015-04-28 10:13:50.198 19140 INFO nova.compute.manager [-] [instance: 8752f1a2-0d61-469d-b5f1-0978d5898483] VM Stopped (Lifecycle Event)
2015-04-28 10:13:50.705 19140 WARNING nova.compute.manager [-] [instance: 8752f1a2-0d61-469d-b5f1-0978d5898483] Instance shutdown by itself. Calling the stop API.
2015-04-28 10:13:51.526 19140 INFO nova.virt.libvirt.driver [-] [instance: 8752f1a2-0d61-469d-b5f1-0978d5898483] Instance destroyed successfully.

nova show mt4

+--------------------------------------+----------------------------------------------------------+
| Property                             | Value                                                    |
+--------------------------------------+----------------------------------------------------------+
| OS-DCF:diskConfig                    | AUTO                                                     |
| OS-EXT-AZ:availability_zone          | nova                                                     |
| OS-EXT-SRV-ATTR:host                 | HOL                                                      |
| OS-EXT-SRV-ATTR:hypervisor_hostname  | HOL                                                      |
| OS-EXT-SRV-ATTR:instance_name        | instance-0000000a                                        |
| OS-EXT-STS:power_state               | 4                                                        |
| OS-EXT-STS:task_state                | -                                                        |
| OS-EXT-STS:vm_state                  | stopped                                                  |
| OS-SRV-USG:launched_at               | 2015-04-27T14:35:43.000000                               |
| OS-SRV-USG:terminated_at             | -                                                        |
| accessIPv4                           |                                                          |
| accessIPv6                           |                                                          |
| config_drive                         |                                                          |
| created                              | 2015-04-27T14:35:07Z                                     |
| flavor                               | m1.micro (36794ca9-a7fa-4a64-80c6-21e3eddb0c50)          |
| hostId                               | 170ba8213322c56b92b39a3ac95102ffbc604b9a5c27cceb796bdd9b |
| id                                   | 8752f1a2-0d61-469d-b5f1-0978d5898483                     |
| image                                | ol65 (0a9ccc1e-a866-40ce-9112-4bc94d80023e)              |
| key_name                             | -                                                        |
| metadata                             | {}                                                       |
| name                                 | mt4                                                      |
| net1 network                         | 10.10.10.10                                              |
| os-extended-volumes:volumes_attached | []                                                       |
| security_groups                      | default                                                  |
| status                               | SHUTOFF                                                  |
| tenant_id                            | 755714d2f36e41ca9234c457044475c1                         |
| updated                              | 2015-04-28T09:13:51Z                                     |
| user_id                              | 58751a3883064387b4e8ef8c87f1fa95                         |
+--------------------------------------+----------------------------------------------------------+
edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by mickt
close date 2016-07-21 08:44:51.133471

Comments

Could you try enabling debug mode in nova.conf file and then (after nova services' restart) running again your test. Post here your relevant log files

Antonio G. gravatar imageAntonio G. ( 2015-04-28 05:16:33 -0600 )edit

Placed compute log entry in answer field below as it is large.

Removed from answer field.

mickt gravatar imagemickt ( 2015-04-28 05:34:28 -0600 )edit

Please don't use answer to post log files. Use this link instead and post only the reference.

Antonio G. gravatar imageAntonio G. ( 2015-04-28 05:54:11 -0600 )edit

I think VM does not start because of resources' issues: nova.compute.resource_tracker [-] Hypervisor: free VCPUs: 0

Antonio G. gravatar imageAntonio G. ( 2015-04-28 05:55:21 -0600 )edit

I noticed that too but in dashboard I see VCPUs Used 1 of 2; I suppose the log is to be trusted.

How can I free CPU? There are no running instances so there should be free CPU, correct?

mickt gravatar imagemickt ( 2015-04-28 06:26:35 -0600 )edit