Cannot launch instance with cinder snapshot!!

asked 2016-08-31 10:44:20 -0500

Whistler gravatar image

updated 2016-08-31 13:26:35 -0500

sunnyarora gravatar image

I can create instance snapshot using cinder, but when I try launching an instance with that image or volume it fails. I get the below error

**Unable to clear device ID for port 'None'**:
"*Booting with volume None at /dev/vda
2016-08-31 19:48:00.259 1050 INFO nova.compute.resource_tracker [req-95c282be-dd67-4a79-abb9-9943c66304b1 - - - - -] Auditing locally available compute resources for node compute2.local
2016-08-31 19:48:05.079 1050 INFO nova.compute.resource_tracker [req-95c282be-dd67-4a79-abb9-9943c66304b1 - - - - -] Total usable vcpus: 4, total allocated vcpus: 1
2016-08-31 19:48:05.080 1050 INFO nova.compute.resource_tracker [req-95c282be-dd67-4a79-abb9-9943c66304b1 - - - - -] Final resource view: name=compute2.local phys_ram=7817MB used_ram=13312MB phys_disk=17GB used_disk=25GB total_vcpus=4 used_vcpus=1 pci_stats=<nova.pci.stats.PciDeviceStats object at 0x40760d0>
2016-08-31 19:48:05.182 1050 INFO nova.scheduler.client.report [req-95c282be-dd67-4a79-abb9-9943c66304b1 - - - - -] Compute_service record updated for ('compute2.local', 'compute2.local')
2016-08-31 19:48:05.183 1050 INFO nova.compute.resource_tracker [req-95c282be-dd67-4a79-abb9-9943c66304b1 - - - - -] Compute_service record updated for compute2.local:compute2.local
2016-08-31 19:49:00.261 1050 INFO nova.compute.resource_tracker [req-95c282be-dd67-4a79-abb9-9943c66304b1 - - - - -] Auditing locally available compute resources for node compute2.local
2016-08-31 19:49:04.764 1050 INFO nova.compute.resource_tracker [req-95c282be-dd67-4a79-abb9-9943c66304b1 - - - - -] Total usable vcpus: 4, total allocated vcpus: 1
2016-08-31 19:49:04.767 1050 INFO nova.compute.resource_tracker [req-95c282be-dd67-4a79-abb9-9943c66304b1 - - - - -] Final resource view: name=compute2.local phys_ram=7817MB used_ram=13312MB phys_disk=17GB used_disk=25GB total_vcpus=4 used_vcpus=1 pci_stats=<nova.pci.stats.PciDeviceStats object at 0x40760d0>
2016-08-31 19:49:04.844 1050 INFO nova.scheduler.client.report [req-95c282be-dd67-4a79-abb9-9943c66304b1 - - - - -] Compute_service record updated for ('compute2.local', 'compute2.local')
2016-08-31 19:49:04.846 1050 INFO nova.compute.resource_tracker [req-95c282be-dd67-4a79-abb9-9943c66304b1 - - - - -] Compute_service record updated for compute2.local:compute2.local
2016-08-31 19:49:30.476 1050 WARNING nova.compute.manager [req-95c282be-dd67-4a79-abb9-9943c66304b1 - - - - -] While synchronizing instance power states, found 11 instances in the database and 10 instances on the hypervisor.
2016-08-31 19:50:01.259 1050 INFO nova.compute.resource_tracker [req-95c282be-dd67-4a79-abb9-9943c66304b1 - - - - -] Auditing locally available compute resources for node compute2.local
2016-08-31 19:50:06.639 1050 INFO nova.compute.resource_tracker [req-95c282be-dd67-4a79-abb9-9943c66304b1 - - - - -] Total usable vcpus: 4, total allocated vcpus: 1
2016-08-31 19:50:06.640 1050 INFO nova.compute.resource_tracker [req-95c282be-dd67-4a79-abb9-9943c66304b1 - - - - -] Final resource view: name=compute2.local phys_ram=7817MB used_ram=13312MB phys_disk=17GB used_disk=25GB total_vcpus=4 used_vcpus=1 pci_stats=<nova.pci.stats.PciDeviceStats object at 0x40760d0>
2016-08-31 19:50:06.719 1050 INFO nova.scheduler.client.report [req-95c282be-dd67-4a79-abb9-9943c66304b1 - - - - -] Compute_service record updated for ('compute2.local', 'compute2.local')
2016-08-31 19:50:06.720 1050 INFO nova.compute.resource_tracker [req-95c282be-dd67-4a79-abb9-9943c66304b1 - - - - -] Compute_service record updated for compute2.local:compute2.local
2016-08-31 19:50:59.850 1050 ERROR nova.compute.manager [req-00236f05-c3db-4a9e-8f4b-c0fea04a51f4 0d6bc3d3319644979f324bf0245e6134 0d19360f16a545ed9d2f6762dabde3a5 - - -] [instance: 82a055d2-5ad9-4a7d-8414-db88140bf31f] Instance failed block device setup
2016-08-31 19:50:59.850 1050 TRACE nova.compute.manager [instance: 82a055d2-5ad9-4a7d-8414-db88140bf31f] Traceback (most recent call last):
2016-08-31 19:50:59.850 1050 TRACE nova.compute.manager [instance: 82a055d2-5ad9-4a7d-8414-db88140bf31f]   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1974, in _prep_block_device
2016-08-31 19:50:59.850 1050 TRACE nova.compute.manager [instance: 82a055d2-5ad9-4a7d-8414-db88140bf31f]     do_check_attach=do_check_attach) +
2016-08-31 19:50:59.850 1050 TRACE nova.compute ...
(more)
edit retag flag offensive close merge delete

Comments

There can be issues like Timeout or Flavor mismatch. Could you please share steps which you followed for snapshot & booting instance? My Concern - are you passing parameter " --image-id" with "cinder create" command.

Cinder makes a volume bootable when --image-id parameter is passed.

sunnyarora gravatar imagesunnyarora ( 2016-09-01 23:39:41 -0500 )edit