instance cant boot without throwing any errors
- Setup : packstack allinone configuration . Fresh install as of today.
- Images : Cirros
- Hypervisor : kvm
- Images : Cirros
Launching an instance in Compute node with cirros- Fail - Dashboard show the instance is active - instance not reachable.
the ramdisk and kernel file is not present at nova/instances/<id>
console log
Machine UUID 69d2575e-2ce0-4109-9cab-a082712f953c
enter code here`gPXE (http://etherboot.org) - 00:03.0 C100 PCI2.10 PnP BBS PMM07E0@10 C100
Press Ctrl-B to configure gPXE (PCI 00:03.0)...
Booting from Hard Disk...
I upload this "QCOW2" image to Glance by command
curl http://download.cirros-cloud.net/daily/20161201/cirros-d161201-x86_64-disk.img | glance image-create --name='cirros image' --visibility=public --container-format=bare --disk-format=qcow2
And I confirm by glance image-show
+------------------+--------------------------------------+
| Property | Value |
+------------------+--------------------------------------+
| checksum | ae303c6f064fdc912616f6dd0c044cef |
| container_format | bare |
| created_at | 2016-12-19T21:00:39Z |
| disk_format | qcow2 |
| id | bb5cb151-8689-4dc4-a4f2-c0310f0db97c |
| min_disk | 0 |
| min_ram | 0 |
| name | cirros image |
| owner | d8b81f2c3eda4f02a01dc4bcba746159 |
| protected | False |
| size | 12747776 |
| status | active |
| tags | [] |
| updated_at | 2016-12-19T21:01:23Z |
| virtual_size | None |
| visibility | public |
+------------------+--------------------------------------+
Now, I began to create instance in compute node using dashboard. In nova list, it show:
+--------------------------------------+--------+--------+------------+-------------+--------------------------------+
| ID | Name | Status | Task State | Power State | Networks |
+--------------------------------------+--------+--------+------------+-------------+--------------------------------+
| 50be3ff0-4ddb-4d6c-8de6-badb6803efa2 | test32 | ACTIVE | - | Running | private_network=192.168.100.11 |
+--------------------------------------+--------+--------+------------+-------------+--------------------------------+
and nova show 50be3ff0-4ddb-4d6c-8de6-badb6803efa2
+--------------------------------------+---------------------------------------------------------------------------------+
| Property | Value |
+--------------------------------------+---------------------------------------------------------------------------------+
| OS-DCF:diskConfig | AUTO |
| OS-EXT-AZ:availability_zone | nova |
| OS-EXT-SRV-ATTR:host | server1.example.org |
| OS-EXT-SRV-ATTR:hostname | test32 |
| OS-EXT-SRV-ATTR:hypervisor_hostname | server1.example.org |
| OS-EXT-SRV-ATTR:instance_name | instance-00000001 |
| OS-EXT-SRV-ATTR:kernel_id | |
| OS-EXT-SRV-ATTR:launch_index | 0 |
| OS-EXT-SRV-ATTR:ramdisk_id | |
| OS-EXT-SRV-ATTR:reservation_id | r-pk0rpipj |
| OS-EXT-SRV-ATTR:root_device_name | /dev/vda |
| OS-EXT-SRV-ATTR:user_data | - |
| OS-EXT-STS:power_state | 1 |
| OS-EXT-STS:task_state | - |
| OS-EXT-STS:vm_state | active |
| OS-SRV-USG:launched_at | 2016-12-19T21:08:45.000000 |
| OS-SRV-USG:terminated_at | - |
| accessIPv4 | |
| accessIPv6 | |
| config_drive | |
| created | 2016-12-19T21:07:12Z |
| description | test32 |
| flavor | m1.tiny (1) |
| hostId | efeb918ec3cfd920d4743140b66ce7810cd1db61f567c21e8551a0b7 |
| host_status | UP |
| id | 50be3ff0-4ddb-4d6c-8de6-badb6803efa2 |
| image | Attempt to boot from volume - no image supplied |
| key_name | - |
| locked | False |
| metadata | {} |
| name | test32 |
| os-extended-volumes:volumes_attached | [{"id": "abe6fd25-4bb1-4831-9435-e97772b8f5c4", "delete_on_termination": true}] |
| private_network network | 192.168.100.11 |
| progress | 0 |
| security_groups | default |
| status | ACTIVE |
| tags | [] |
| tenant_id | d8b81f2c3eda4f02a01dc4bcba746159 |
| updated | 2016-12-19T21:08:45Z |
| user_id | 93694f16d97d4646a4462484aac300a3 |
+--------------------------------------+---------------------------------------------------------------------------------+
compute log
2016-12-19 22:07:14.040 17593 INFO nova.compute.claims [req-ce4b8903-46e6-4e42-96c8-49d828793350 93694f16d97d4646a4462484aac300a3 d8b81f2c3eda4f02a01dc4bcba746159 - - -] [instance: 50be3ff0-4ddb-4d6c-8de6-badb6803efa2] Claim successful
2016-12-19 22:07:14.669 17593 WARNING nova.virt.libvirt.driver [req-ce4b8903-46e6-4e42-96c8-49d828793350 93694f16d97d4646a4462484aac300a3 d8b81f2c3eda4f02a01dc4bcba746159 - - -] [instance: 50be3ff0-4ddb-4d6c-8de6-badb6803efa2] Ignoring supplied device name: /dev/vda. Libvirt can't honour user-supplied dev names
2016-12-19 22:07:18.439 17593 WARNING nova.virt.osinfo [req-ce4b8903-46e6-4e42-96c8-49d828793350 93694f16d97d4646a4462484aac300a3 d8b81f2c3eda4f02a01dc4bcba746159 - - -] Cannot find OS information - Reason: (No configuration information found for operating system Empty)
2016-12-19 22:07:20.169 17593 INFO nova.virt.block_device [req-ce4b8903-46e6-4e42-96c8-49d828793350 93694f16d97d4646a4462484aac300a3 d8b81f2c3eda4f02a01dc4bcba746159 - - -] [instance: 50be3ff0-4ddb-4d6c-8de6-badb6803efa2] Booting with blank volume at /dev/vda
2016-12-19 22:08:12.027 17593 INFO oslo.privsep.daemon [req-ce4b8903-46e6-4e42-96c8-49d828793350 93694f16d97d4646a4462484aac300a3 d8b81f2c3eda4f02a01dc4bcba746159 - - -] Running privsep helper: ['sudo', 'nova-rootwrap', '/etc/nova/rootwrap.conf', 'privsep-helper', '--config-file', '/usr/share/nova/nova-dist.conf', '--config-file', '/etc/nova/nova.conf', '--privsep_context', 'os_brick.privileged.default', '--privsep_sock_path', '/tmp/tmpvZQgu7/privsep.sock']
2016-12-19 22:08:13.676 17593 INFO oslo.privsep.daemon [req-ce4b8903-46e6-4e42-96c8-49d828793350 93694f16d97d4646a4462484aac300a3 d8b81f2c3eda4f02a01dc4bcba746159 - - -] Spawned new privsep daemon via rootwrap
2016-12-19 22:08:13.679 17593 INFO oslo.privsep.daemon [-] privsep daemon starting
2016-12-19 22:08:13.679 17593 INFO oslo.privsep.daemon [-] privsep process running with uid/gid: 0/0
2016-12-19 22:08 ...
On my Newton DevStack, by default Horizon copies the image to a volume when launching an instance. Your compute log indicates the same. This would explain why you have nothing in the instances directory.
Why does the launch fail? Something wrong with the image, I guess. Try launching it from CLI.