Bug 1331428

Summary: Boot from instance snapshot fails with error "Volume is smaller than the minimum size specified in image metadata"
Product: Red Hat OpenStack Reporter: Chaitanya Shastri <cshastri>
Component: openstack-novaAssignee: Kashyap Chamarthy <kchamart>
Status: CLOSED CURRENTRELEASE QA Contact: Prasanth Anbalagan <panbalag>
Severity: high Docs Contact:
Priority: high    
Version: 8.0 (Liberty)CC: alonare, dasmith, eglynn, kchamart, lyarwood, mbooth, sbauza, scohen, sgordon, sgotliv, smooney, srevivo, tvignaud, vromanso
Target Milestone: ---Keywords: Triaged, ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-10-01 18:15:41 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Chaitanya Shastri 2016-04-28 13:48:23 UTC
Description of problem:

Boot an instance from a volume with say 1 GB size, take its snapshot, boot another instance from it with same flavor, fails with error "Volume is smaller than the minimum size specified in image metadata".

Version-Release number of selected component (if applicable):
RHOS8 GA

How reproducible:
Reproduces every time.

Steps to Reproduce:

1. Create a cinder volume from a glance image of 1 GB:

[heat-admin@overcloud-novacompute-0 ~]$ glance image-list
+--------------------------------------+-------------+
| ID                                   | Name        |
+--------------------------------------+-------------+
| ce5414e8-38cb-49f9-bfb8-292c178a8454 | virt-cirros |
+--------------------------------------+-------------+

[heat-admin@overcloud-novacompute-0 ~]$ cinder create --display-name virt-cirros-vol --image-id ce5414e8-38cb-49f9-bfb8-292c178a8454 1
+---------------------------------------+---------------------------------------+
|                Property               |                 Value                 |
+---------------------------------------+---------------------------------------+
|              attachments              |                   []                  |
|           availability_zone           |                  nova                 |
|                bootable               |                 false                 |
|          consistencygroup_id          |                  None                 |
|               created_at              |       2016-04-28T06:13:00.000000      |
|              description              |                  None                 |
|               encrypted               |                 False                 |
|                   id                  |  62dcf90d-1b92-46fd-bbf2-762f0c7eb0c4 |
|                metadata               |                   {}                  |
|            migration_status           |                  None                 |
|              multiattach              |                 False                 |
|                  name                 |            virt-cirros-vol            |
|         os-vol-host-attr:host         | hostgroup@tripleo_iscsi#tripleo_iscsi |
|     os-vol-mig-status-attr:migstat    |                  None                 |
|     os-vol-mig-status-attr:name_id    |                  None                 |
|      os-vol-tenant-attr:tenant_id     |    ce6a6d587d2d454e8f2c3f583bc3fca9   |
|   os-volume-replication:driver_data   |                  None                 |
| os-volume-replication:extended_status |                  None                 |
|           replication_status          |                disabled               |
|                  size                 |                   1                   |
|              snapshot_id              |                  None                 |
|              source_volid             |                  None                 |
|                 status                |                creating               |
|                user_id                |    84a2ef96c95c433298cdc6e6758e8d2f   |
|              volume_type              |                  None                 |
+---------------------------------------+---------------------------------------+

[heat-admin@overcloud-novacompute-0 ~]$ cinder list
+--------------------------------------+-----------+------------------+-----------------+------+-------------+----------+-------------+-+
|                  ID                  |   Status  | Migration Status |       Name      | Size | Volume Type | Bootable | Multiattach | |
+--------------------------------------+-----------+------------------+-----------------+------+-------------+----------+-------------+-+
| 62dcf90d-1b92-46fd-bbf2-762f0c7eb0c4 | available |        -         | virt-cirros-vol |  1   |      -      |   true   |    False    | |
+--------------------------------------+-----------+------------------+-----------------+------+-------------+----------+-------------+-+

2.Boot an instance from the created volume:

[heat-admin@overcloud-novacompute-0 ~]$ nova flavor-list
+----+------------+-----------+------+-----------+------+-------+-------------+-----------+
| ID | Name       | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public |
+----+------------+-----------+------+-----------+------+-------+-------------+-----------+
| 1  | m1.tiny    | 512       | 1    | 0         |      | 1     | 1.0         | True      |
| 2  | m1.small   | 2048      | 20   | 0         |      | 1     | 1.0         | True      |
| 3  | m1.medium  | 4096      | 40   | 0         |      | 2     | 1.0         | True      |
| 4  | m1.large   | 8192      | 80   | 0         |      | 4     | 1.0         | True      |
| 5  | m1.xlarge  | 16384     | 160  | 0         |      | 8     | 1.0         | True      |
| 6  | m1.testing | 256       | 3    | 0         |      | 1     | 1.0         | True      |
+----+------------+-----------+------+-----------+------+-------+-------------+-----------+

[heat-admin@overcloud-novacompute-0 ~]$ neutron net-list
+--------------------------------------+----------------------------------------------------+-------------------------------------------+
| id                                   | name                                               | subnets                                   |
+--------------------------------------+----------------------------------------------------+-------------------------------------------+
| 0922cdf5-b088-478d-86f1-4186790ec5ed | private                                            | 4c4fded0-80ec-44f8-b646-120cf08b3fe5 172.1|
| be59dabb-5ab5-45c2-9ab3-f8ea60bfd1c3 | HA network tenant ce6a6d587d2d454e8f2c3f583bc3fca9 | 12736e36-84ed-428a-9c37-b089dd7bb084 169.2|
| 2c7973f9-e8a7-4aa1-8310-ad323afe4140 | public                                             | 96990e28-498e-46bb-aa2d-5c13525b6af3 192.0|
+--------------------------------------+----------------------------------------------------+-------------------------------------------+

[heat-admin@overcloud-novacompute-0 ~]$ nova boot --boot-volume 62dcf90d-1b92-46fd-bbf2-762f0c7eb0c4 --flavor 6 --nic net-id=0922cdf5-b088-478d-86f1-4186790ec5ed instance-boot-from-vol
+--------------------------------------+--------------------------------------------------+
| Property                             | Value                                            |
+--------------------------------------+--------------------------------------------------+
| OS-DCF:diskConfig                    | MANUAL                                           |
| OS-EXT-AZ:availability_zone          |                                                  |
| OS-EXT-SRV-ATTR:host                 | -                                                |
| OS-EXT-SRV-ATTR:hypervisor_hostname  | -                                                |
| OS-EXT-SRV-ATTR:instance_name        | instance-0000000b                                |
| OS-EXT-STS:power_state               | 0                                                |
| OS-EXT-STS:task_state                | scheduling                                       |
| OS-EXT-STS:vm_state                  | building                                         |
| OS-SRV-USG:launched_at               | -                                                |
| OS-SRV-USG:terminated_at             | -                                                |
| accessIPv4                           |                                                  |
| accessIPv6                           |                                                  |
| adminPass                            | Dcy3KEGiziJU                                     |
| config_drive                         |                                                  |
| created                              | 2016-04-28T06:19:29Z                             |
| flavor                               | m1.testing (6)                                   |
| hostId                               |                                                  |
| id                                   | aaebbd24-7978-49e5-a279-73d7ad782384             |
| image                                | Attempt to boot from volume - no image supplied  |
| key_name                             | -                                                |
| metadata                             | {}                                               |
| name                                 | instance-boot-from-vol                           |
| os-extended-volumes:volumes_attached | [{"id": "62dcf90d-1b92-46fd-bbf2-762f0c7eb0c4"}] |
| progress                             | 0                                                |
| security_groups                      | default                                          |
| status                               | BUILD                                            |
| tenant_id                            | ce6a6d587d2d454e8f2c3f583bc3fca9                 |
| updated                              | 2016-04-28T06:19:30Z                             |
| user_id                              | 84a2ef96c95c433298cdc6e6758e8d2f                 |
+--------------------------------------+--------------------------------------------------+

[heat-admin@overcloud-novacompute-0 ~]$ nova list
+--------------------------------------+------------------------+--------+------------+-------------+--------------------+
| ID                                   | Name                   | Status | Task State | Power State | Networks           |
+--------------------------------------+------------------------+--------+------------+-------------+--------------------+
| aaebbd24-7978-49e5-a279-73d7ad782384 | instance-boot-from-vol | ACTIVE | -          | Running     | private=172.16.0.8 |
+--------------------------------------+------------------------+--------+------------+-------------+--------------------+


3.Create a snapshot of the instance:

[heat-admin@overcloud-novacompute-0 ~]$ nova image-create --poll instance-boot-from-vol instance-boot-from-vol-snap

Server snapshotting... 100% complete
Finished

[heat-admin@overcloud-novacompute-0 ~]$ glance image-list
+--------------------------------------+-----------------------------+
| ID                                   | Name                        |
+--------------------------------------+-----------------------------+
| 824da38d-46ec-42b0-b5b1-a9d0d25f17f4 | instance-boot-from-vol-snap |
| ce5414e8-38cb-49f9-bfb8-292c178a8454 | virt-cirros                 |
+--------------------------------------+-----------------------------+

[heat-admin@overcloud-novacompute-0 ~]$ glance image-show 824da38d-46ec-42b0-b5b1-a9d0d25f17f4
+----------------------+----------------------------------------------------------------------------------+
| Property             | Value                                                                            |
+----------------------+----------------------------------------------------------------------------------+
| base_image_ref       |                                                                                  |
| bdm_v2               | True                                                                             |
| block_device_mapping | [{"guest_format": null, "boot_index": 0, "delete_on_termination": false,         |
|                      | "no_device": null, "snapshot_id": "e8220c07-6dc2-4e93-adee-171704631af2",        |
|                      | "device_name": "/dev/vda", "disk_bus": "virtio", "image_id": null,               |
|                      | "source_type": "snapshot", "device_type": "disk", "volume_id": null,             |
|                      | "destination_type": "volume", "volume_size": 1}]                                 |
| checksum             | None                                                                             |
| container_format     | None                                                                             |
| created_at           | 2016-04-28T06:21:06Z                                                             |
| disk_format          | None                                                                             |
| id                   | 824da38d-46ec-42b0-b5b1-a9d0d25f17f4                                             |
| min_disk             | 3                                                                                |
| min_ram              | 0                                                                                |
| name                 | instance-boot-from-vol-snap                                                      |
| owner                | ce6a6d587d2d454e8f2c3f583bc3fca9                                                 |
| protected            | False                                                                            |
| root_device_name     | /dev/vda                                                                         |
| size                 | 0                                                                                |
| status               | active                                                                           |
| tags                 | []                                                                               |
| updated_at           | 2016-04-28T06:21:06Z                                                             |
| virtual_size         | None                                                                             |
| visibility           | private                                                                          |
+----------------------+----------------------------------------------------------------------------------+


4. Boot another instance from this snapshot:

[heat-admin@overcloud-novacompute-0 ~]$ nova boot --flavor 6 --image 824da38d-46ec-42b0-b5b1-a9d0d25f17f4 --nic net-id=0922cdf5-b088-478d-86f1-4186790ec5ed instance-boot-from-vol-snap
ERROR (BadRequest): Volume is smaller than the minimum size specified in image metadata. Volume size is 1073741824 bytes, minimum size is 3221225472 bytes (HTTP 400) (Request-ID: req-4c2ca7b2-c582-4a00-847b-1a6bd705418f)



Actual results:

Boot from instance snapshot fails with error "Volume is smaller than the minimum size specified in image metadata"


Expected results:

Instance should boot successfully from the snapshot without failing.


Additional info:

I tried the same on RHOS7 setup, and there, it works perfectly. The issue that I am suspecting causing this is the 'volume_size' metadata which is fetched when we create the instance snapshot:

On RHOS8:

[heat-admin@overcloud-novacompute-0 ~]$ glance image-show 824da38d-46ec-42b0-b5b1-a9d0d25f17f4

++++++++++++++

| block_device_mapping | [{"guest_format": null, "boot_index": 0, "delete_on_termination": false,         |
|                      | "no_device": null, "snapshot_id": "e8220c07-6dc2-4e93-adee-171704631af2",        |
|                      | "device_name": "/dev/vda", "disk_bus": "virtio", "image_id": null,               |
|                      | "source_type": "snapshot", "device_type": "disk", "volume_id": null,             |
|                      | "destination_type": "volume", "volume_size": 1}]  <=====                         |

++++++++++++++

On RHOS7:

++++++++++++++

| Property 'block_device_mapping' | [{"guest_format": null, "boot_index": 0, "no_device": null, "snapshot_id":       |
|                                 | "b8127823-3c4f-42a5-8f5e-1a0db2b7861b", "delete_on_termination": null,           |
|                                 | "disk_bus": "virtio", "image_id": null, "source_type": "snapshot",               |
|                                 | "device_type": "disk", "volume_id": null, "destination_type": "volume",          |
|                                 | "volume_size": null}]  <===== 

++++++++++++++

Workaround for this problem:

If we set 'volume_size' to null, by doing database update manually, we can launch the instance successfully:

MariaDB [glance]>  UPDATE image_properties SET value='[{"guest_format": null, "boot_index": 0, "delete_on_termination": false, "no_device": null, "snapshot_id": "e8220c07-6dc2-4e93-adee-171704631af2", "device_name": "/dev/vda", "disk_bus": "virtio", "image_id": null, "source_type": "snapshot", "device_type": "disk", "volume_id": null, "destination_type": "volume", "volume_size": null}]' WHERE name = 'block_device_mapping';

[heat-admin@overcloud-novacompute-0 ~]$ nova boot --flavor 6 --image 824da38d-46ec-42b0-b5b1-a9d0d25f17f4 --nic net-id=0922cdf5-b088-478d-86f1-4186790ec5ed instance-boot-from-vol-snap
+--------------------------------------+--------------------------------------------------------------------+
| Property                             | Value                                                              |
+--------------------------------------+--------------------------------------------------------------------+
| OS-DCF:diskConfig                    | MANUAL                                                             |
| OS-EXT-AZ:availability_zone          |                                                                    |
| OS-EXT-SRV-ATTR:host                 | -                                                                  |
| OS-EXT-SRV-ATTR:hypervisor_hostname  | -                                                                  |
| OS-EXT-SRV-ATTR:instance_name        | instance-0000000e                                                  |
| OS-EXT-STS:power_state               | 0                                                                  |
| OS-EXT-STS:task_state                | scheduling                                                         |
| OS-EXT-STS:vm_state                  | building                                                           |
| OS-SRV-USG:launched_at               | -                                                                  |
| OS-SRV-USG:terminated_at             | -                                                                  |
| accessIPv4                           |                                                                    |
| accessIPv6                           |                                                                    |
| adminPass                            | GS93gFXfKTFt                                                       |
| config_drive                         |                                                                    |
| created                              | 2016-04-28T06:56:04Z                                               |
| flavor                               | m1.testing (6)                                                     |
| hostId                               |                                                                    |
| id                                   | c10a4774-ac29-4e06-a0cb-6add1f599253                               |
| image                                | instance-boot-from-vol-snap (824da38d-46ec-42b0-b5b1-a9d0d25f17f4) |
| key_name                             | -                                                                  |
| metadata                             | {}                                                                 |
| name                                 | instance-boot-from-vol-snap                                        |
| os-extended-volumes:volumes_attached | []                                                                 |
| progress                             | 0                                                                  |
| security_groups                      | default                                                            |
| status                               | BUILD                                                              |
| tenant_id                            | ce6a6d587d2d454e8f2c3f583bc3fca9                                   |
| updated                              | 2016-04-28T06:56:05Z                                               |
| user_id                              | 84a2ef96c95c433298cdc6e6758e8d2f                                   |
+--------------------------------------+--------------------------------------------------------------------+

I also would like to know if there is any specific reason for fetching the 'volume_size' metadata with the instance snapshot in RHOS8.

Comment 2 Sergey Gotliv 2016-05-09 05:41:36 UTC
Nova behavior looks inconsistent to me. It allows to boot an instance that requires a min disk size of 3GB (--flavor 6) from 1GB Cinder volume, but later 
fails to boot the similar instance (--flavor 6) from the image created from __THAT__ 1GB Cinder volume! 

Image metadata also looks inconsistent:

min_disk 3 (I guess because flavor's min disk size was 3 GB)
size 0 (Not sure what exactly size means in this case but it's definitely not 0)
volume_size 1 (This is consistent with the original volume from which this image is created).

Comment 3 Matthew Booth 2016-05-27 09:03:31 UTC
I just reproduced this in devstack, and this looks like a real bug to me. The issue is the image metadata generated when creating the snapshot.

In my reproducer, I've created a volume from a cirros image with no min_disk. I booted a flavor with a 2G root disk, although obviously that root disk is not created when booting from volume. I then snapshotted the instance. The resulting image metadata in the snapshot contains:

min_disk             | 2
min_ram              | 0
size                 | 0

I assume that min_disk here has been copied from the flavor size. This is obviously bogus. I believe that when we create the snapshot metadata we should copy image metadata from the source, and set size to the actual size.

Comment 4 Matthew Booth 2016-05-27 09:10:14 UTC
Just to clarify, in the above reproducer I think that the bug has occurred by the time the snapshot is created. That may mean that the bug is in the creation of the snapshot, or it may mean that some metadata copied during that process is already wrong and the bug happened even earlier.

Note that the described workaround disables the check. The check is actually working correctly here. A better workaround would be to update the image metadata of the snapshot to set min_disk to 0.

Comment 5 Kashyap Chamarthy 2016-05-27 10:47:18 UTC
Thanks Matt, for the analysis.

Just noting for the record, I could reproduce it on current Nova Git master.  

------------------------------------------------------------------------
# Create a new Nova flavor
$ nova flavor-create m1.test 6 256 3 1

# Create a Cinder volume (the UUID here is of cirros-0.3.4-x86_64-disk)
$ cinder create --display-name cirr-vol1 \
    --image-id 577d309a-b9e8-48fa-b461-28b14e002b4d 1

# Boot an instance from the created volume the UUID below is of
# the the Cinder volume created above
$ nova boot --boot-volume 360f97a0-6588-46ae-b25a-e5687cc2c0e0 \
    --flavor 6 instance-boot-from-vol

# Create a snapshot
$ nova image-create --poll instance-boot-from-vol \
    snap-of-instance-boot-from-vol

# Enumerate Glance images to get the UUID of the snapshot created above
$ glance image-list | grep snap-of-instance-boot-from-vol \
    | awk '{print$2}'
a8b8b3b1-1312-4ece-96b0-2216e4e2d075

# Boot an instance using the above snapshot UUID as the image
$ nova boot --flavor 6 --image a8b8b3b1-1312-4ece-96b0-2216e4e2d075
    instance-from-snap
ERROR (BadRequest): Volume is smaller than the minimum size specified in
image metadata. Volume size is 1073741824 bytes, minimum size is
3221225472 bytes. (HTTP 400) (Request-ID:
req-547c0339-0576-418f-a5a1-72d9ff114401)
------------------------------------------------------------------------

Comment 9 Chaitanya Shastri 2017-01-24 04:32:24 UTC
I was not able to reproduce this issue on OSP 10

~~~

[heat-admin@overcloud-compute-0 ~]$ glance image-list
+--------------------------------------+--------+
| ID                                   | Name   |
+--------------------------------------+--------+
| 59bc3997-4a02-4767-ac44-79b4a2ba5f4e | cirros |
+--------------------------------------+--------+

[heat-admin@overcloud-compute-0 ~]$ nova boot --block-device source=image,id=59bc3997-4a02-4767-ac44-79b4a2ba5f4e,dest=volume,size=1,shutdown=remove,bootindex=0 --flavor web.tiny --nic net-id=e0126357-4a5b-44b7-9294-f269b0b4b03e cirros-test
+--------------------------------------+-------------------------------------------------+
| Property                             | Value                                           |
+--------------------------------------+-------------------------------------------------+
| OS-DCF:diskConfig                    | MANUAL                                          |
| OS-EXT-AZ:availability_zone          |                                                 |
| OS-EXT-SRV-ATTR:host                 | -                                               |
| OS-EXT-SRV-ATTR:hostname             | cirros-test                                     |
| OS-EXT-SRV-ATTR:hypervisor_hostname  | -                                               |
| OS-EXT-SRV-ATTR:instance_name        | instance-00000004                               |
| 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-uz04xlxl                                      |
| OS-EXT-SRV-ATTR:root_device_name     | -                                               |
| OS-EXT-SRV-ATTR:user_data            | -                                               |
| OS-EXT-STS:power_state               | 0                                               |
| OS-EXT-STS:task_state                | scheduling                                      |
| OS-EXT-STS:vm_state                  | building                                        |
| OS-SRV-USG:launched_at               | -                                               |
| OS-SRV-USG:terminated_at             | -                                               |
| accessIPv4                           |                                                 |
| accessIPv6                           |                                                 |
| adminPass                            | BHtndixp2Fvr                                    |
| config_drive                         |                                                 |
| created                              | 2017-01-23T11:10:38Z                            |
| description                          | -                                               |
| flavor                               | web.tiny (ede884f9-4fcb-4750-bce0-c1069a0c9aba) |
| hostId                               |                                                 |
| host_status                          |                                                 |
| id                                   | 7b451252-26ee-4558-ae30-21644c464c56            |
| image                                | Attempt to boot from volume - no image supplied |
| key_name                             | -                                               |
| locked                               | False                                           |
| metadata                             | {}                                              |
| name                                 | cirros-test                                     |
| os-extended-volumes:volumes_attached | []                                              |
| progress                             | 0                                               |
| security_groups                      | default                                         |
| status                               | BUILD                                           |
| tenant_id                            | 9f0cb378c25d4baab55641b00634afa9                |
| updated                              | 2017-01-23T11:10:38Z                            |
| user_id                              | 26e4cafc65d3406d9982136acdb3abf2                |
+--------------------------------------+-------------------------------------------------+

[heat-admin@overcloud-compute-0 ~]$ nova list
+--------------------------------------+-------------+--------+------------+-------------+----------------------+
| ID                                   | Name        | Status | Task State | Power State | Networks             |
+--------------------------------------+-------------+--------+------------+-------------+----------------------+
| 7b451252-26ee-4558-ae30-21644c464c56 | cirros-test | ACTIVE | -          | Running     | internal=192.168.0.7 |
+--------------------------------------+-------------+--------+------------+-------------+----------------------+

[heat-admin@overcloud-compute-0 ~]$ nova show cirros-test
+--------------------------------------+---------------------------------------------------------------------------------+
| Property                             | Value                                                                           |
+--------------------------------------+---------------------------------------------------------------------------------+
| OS-DCF:diskConfig                    | MANUAL                                                                          |
| OS-EXT-AZ:availability_zone          | nova                                                                            |
| OS-EXT-SRV-ATTR:host                 | overcloud-compute-1.localdomain                                                 |
| OS-EXT-SRV-ATTR:hostname             | cirros-test                                                                     |
| OS-EXT-SRV-ATTR:hypervisor_hostname  | overcloud-compute-1.localdomain                                                 |
| OS-EXT-SRV-ATTR:instance_name        | instance-00000004                                                               |
| 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-uz04xlxl                                                                      |
| 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               | 2017-01-23T11:10:59.000000                                                      |
| OS-SRV-USG:terminated_at             | -                                                                               |
| accessIPv4                           |                                                                                 |
| accessIPv6                           |                                                                                 |
| config_drive                         |                                                                                 |
| created                              | 2017-01-23T11:10:38Z                                                            |
| description                          | -                                                                               |
| flavor                               | web.tiny (ede884f9-4fcb-4750-bce0-c1069a0c9aba)                                 |
| hostId                               | be00fd8f71de12a55dc8745fffd3734b0f59c369f48a40fe32a25d4f                        |
| host_status                          | UP                                                                              |
| id                                   | 7b451252-26ee-4558-ae30-21644c464c56                                            |
| image                                | Attempt to boot from volume - no image supplied                                 |
| internal network                     | 192.168.0.7                                                                     |
| key_name                             | -                                                                               |
| locked                               | False                                                                           |
| metadata                             | {}                                                                              |
| name                                 | cirros-test                                                                     |
| os-extended-volumes:volumes_attached | [{"id": "4f0f6abf-4465-4b72-a11a-92ad47b465f9", "delete_on_termination": true}] |
| progress                             | 0                                                                               |
| security_groups                      | default                                                                         |
| status                               | ACTIVE                                                                          |
| tenant_id                            | 9f0cb378c25d4baab55641b00634afa9                                                |
| updated                              | 2017-01-23T11:10:59Z                                                            |
| user_id                              | 26e4cafc65d3406d9982136acdb3abf2                                                |
+--------------------------------------+---------------------------------------------------------------------------------+

[heat-admin@overcloud-compute-0 ~]$ nova image-create 7b451252-26ee-4558-ae30-21644c464c56 cirros-image
[heat-admin@overcloud-compute-0 ~]$ glance image-list
+--------------------------------------+--------------+
| ID                                   | Name         |
+--------------------------------------+--------------+
| 59bc3997-4a02-4767-ac44-79b4a2ba5f4e | cirros       |
| fac12983-de15-48a1-89b2-1e3870a31cb0 | cirros-image |
+--------------------------------------+--------------+

[heat-admin@overcloud-compute-0 ~]$ glance image-show fac12983-de15-48a1-89b2-1e3870a31cb0
+----------------------+----------------------------------------------------------------------------------+
| Property             | Value                                                                            |
+----------------------+----------------------------------------------------------------------------------+
| base_image_ref       |                                                                                  |
| bdm_v2               | True                                                                             |
| block_device_mapping | [{"guest_format": null, "boot_index": 0, "delete_on_termination": true,          |
|                      | "no_device": null, "snapshot_id": "607604de-fb31-4ef5-a800-11d7c0d788b7",        |
|                      | "device_name": "/dev/vda", "disk_bus": "virtio", "image_id": null,               |
|                      | "source_type": "snapshot", "device_type": "disk", "volume_id": null,             |
|                      | "destination_type": "volume", "volume_size": 1}]                                 |
| checksum             | None                                                                             |
| container_format     | None                                                                             |
| created_at           | 2017-01-23T11:17:23Z                                                             |
| disk_format          | None                                                                             |
| id                   | fac12983-de15-48a1-89b2-1e3870a31cb0                                             |
| min_disk             | 1                                                                                |
| min_ram              | 0                                                                                |
| name                 | cirros-image                                                                     |
| owner                | 9f0cb378c25d4baab55641b00634afa9                                                 |
| protected            | False                                                                            |
| root_device_name     | /dev/vda                                                                         |
| size                 | 0                                                                                |
| status               | active                                                                           |
| tags                 | []                                                                               |
| updated_at           | 2017-01-23T11:17:23Z                                                             |
| virtual_size         | None                                                                             |
| visibility           | private                                                                          |
+----------------------+----------------------------------------------------------------------------------+

[heat-admin@overcloud-compute-0 ~]$ nova boot --image fac12983-de15-48a1-89b2-1e3870a31cb0 --flavor web.tiny --nic net-id=e0126357-4a5b-44b7-9294-f269b0b4b03e cirros-from-snap
+--------------------------------------+-----------------------------------------------------+
| Property                             | Value                                               |
+--------------------------------------+-----------------------------------------------------+
| OS-DCF:diskConfig                    | MANUAL                                              |
| OS-EXT-AZ:availability_zone          |                                                     |
| OS-EXT-SRV-ATTR:host                 | -                                                   |
| OS-EXT-SRV-ATTR:hostname             | cirros-from-snap                                    |
| OS-EXT-SRV-ATTR:hypervisor_hostname  | -                                                   |
| OS-EXT-SRV-ATTR:instance_name        | instance-00000005                                   |
| 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-840ffahh                                          |
| OS-EXT-SRV-ATTR:root_device_name     | /dev/vda                                            |
| OS-EXT-SRV-ATTR:user_data            | -                                                   |
| OS-EXT-STS:power_state               | 0                                                   |
| OS-EXT-STS:task_state                | scheduling                                          |
| OS-EXT-STS:vm_state                  | building                                            |
| OS-SRV-USG:launched_at               | -                                                   |
| OS-SRV-USG:terminated_at             | -                                                   |
| accessIPv4                           |                                                     |
| accessIPv6                           |                                                     |
| adminPass                            | C75manSsRXA3                                        |
| config_drive                         |                                                     |
| created                              | 2017-01-23T13:00:57Z                                |
| description                          | -                                                   |
| flavor                               | web.tiny (ede884f9-4fcb-4750-bce0-c1069a0c9aba)     |
| hostId                               |                                                     |
| host_status                          |                                                     |
| id                                   | 3d5e04f3-d401-4b79-95e0-c30298fac0d2                |
| image                                | cirros-image (fac12983-de15-48a1-89b2-1e3870a31cb0) |
| key_name                             | -                                                   |
| locked                               | False                                               |
| metadata                             | {}                                                  |
| name                                 | cirros-from-snap                                    |
| os-extended-volumes:volumes_attached | []                                                  |
| progress                             | 0                                                   |
| security_groups                      | default                                             |
| status                               | BUILD                                               |
| tenant_id                            | 9f0cb378c25d4baab55641b00634afa9                    |
| updated                              | 2017-01-23T13:00:57Z                                |
| user_id                              | 26e4cafc65d3406d9982136acdb3abf2                    |
+--------------------------------------+-----------------------------------------------------+

[heat-admin@overcloud-compute-0 ~]$ nova list
+--------------------------------------+------------------+--------+------------+-------------+----------------------+
| ID                                   | Name             | Status | Task State | Power State | Networks             |
+--------------------------------------+------------------+--------+------------+-------------+----------------------+
| 3d5e04f3-d401-4b79-95e0-c30298fac0d2 | cirros-from-snap | ACTIVE | -          | Running     | internal=192.168.0.8 |
| 7b451252-26ee-4558-ae30-21644c464c56 | cirros-test      | ACTIVE | -          | Running     | internal=192.168.0.7 |
+--------------------------------------+------------------+--------+------------+-------------+----------------------+

~~~