<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">It looks like you aren't deploying Glance with Keystone authentication enabled. Add a [paste_deploy] section to glannce-api and glance-registry configs with a single entry: flavor=keystone.<div><br></div><div><br><div><div>On Oct 19, 2012, at 12:19 AM, Sam Stoelinga wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi all,<div><br></div><div>When I create a snapshot of a VM, the snapshot just vanishes or is hidden.</div><div><br></div><div><b>Scenario:</b></div><div>1. Create a vm with local storage</div><div>2. Create a snapshot of the VM after its running succesfully</div>
<div>3. In horizon create a snapshot of the VM</div><div>4. You get redirected to Image & Snapshots page but there is no sign of the snapshot.</div><div><br></div><div><b>Some more debugging:</b></div><div><br></div><div>
<div><br></div><div>glance image-list</div><div>+--------------------------------------+--------------------------+-------------+------------------+---------+--------+</div><div>| ID | Name | Disk Format | Container Format | Size | Status |</div>
<div>+--------------------------------------+--------------------------+-------------+------------------+---------+--------+</div><div>| 6d196c6a-b210-45f7-a4ab-4d98e5b2a31b | cirros-0.3.0-x86_64-disk | qcow2 | bare | 9761280 | active |</div>
<div>+--------------------------------------+--------------------------+-------------+------------------+---------+--------+</div><div><br></div><div>nova image-list</div><div>+--------------------------------------+--------------------------+--------+--------------------------------------+</div>
<div>| ID | Name | Status | Server |</div><div>+--------------------------------------+--------------------------+--------+--------------------------------------+</div>
<div>| 6d196c6a-b210-45f7-a4ab-4d98e5b2a31b | cirros-0.3.0-x86_64-disk | ACTIVE | |</div><div>| 33d37a0b-0c4d-4976-8580-9e7bf8b53776 | test snapshot | ACTIVE | 526e1738-1b44-4509-900e-b29beed7e0f7 |</div>
<div>+--------------------------------------+--------------------------+--------+--------------------------------------+</div></div><div><br></div><div>As you can see glance image-list and nova image-list return different results. The snapshot has in fact </div>
<div>been created correctly as you can see here:</div><div><div>ls /var/lib/glance/images/6d196c6a-b210-45f7-a4ab-4d98e5b2a31b -lh</div><div>-rw-r----- 1 glance glance 9.4M Oct 19 14:24 /var/lib/glance/images/6d196c6a-b210-45f7-a4ab-4d98e5b2a31b</div>
</div><div><br></div><div><br></div><div><b>This is the snapshot image detail: </b></div><div><div>glance image-show 33d37a0b-0c4d-4976-8580-9e7bf8b53776</div><div>+---------------------------+--------------------------------------+</div>
<div>| Property | Value |</div><div>+---------------------------+--------------------------------------+</div><div>| Property 'base_image_ref' | 6d196c6a-b210-45f7-a4ab-4d98e5b2a31b |</div>
<div>| Property 'image_location' | snapshot |</div><div>| Property 'image_state' | available |</div><div>| Property 'image_type' | snapshot |</div>
<div>| Property 'instance_uuid' | 526e1738-1b44-4509-900e-b29beed7e0f7 |</div><div>| Property 'owner_id' | c21b7e53480b497aac6683d618a6b3ce |</div><div>| Property 'user_id' | 4899e879f62846f1a4926b781a7489f6 |</div>
<div>| checksum | 46742031d20be7eabf52e55c9e7bf345 |</div><div>| container_format | bare |</div><div>| created_at | 2012-10-19T06:59:45 |</div>
<div>| deleted | False |</div><div>| disk_format | qcow2 |</div><div>| id | 33d37a0b-0c4d-4976-8580-9e7bf8b53776 |</div>
<div>| is_public | False |</div><div>| min_disk | 0 |</div><div>| min_ram | 0 |</div>
<div>| name | test snapshot |</div><div>| protected | False |</div><div>| size | 14352384 |</div>
<div>| status | active |</div><div>| updated_at | 2012-10-19T06:59:55 |</div><div>+---------------------------+--------------------------------------+</div>
<div>nova image-show 33d37a0b-0c4d-4976-8580-9e7bf8b53776</div><div>+-------------------------+--------------------------------------+</div><div>| Property | Value |</div><div>
+-------------------------+--------------------------------------+</div><div>| created | 2012-10-19T06:59:45Z |</div><div>| id | 33d37a0b-0c4d-4976-8580-9e7bf8b53776 |</div>
<div>| metadata base_image_ref | 6d196c6a-b210-45f7-a4ab-4d98e5b2a31b |</div><div>| metadata image_location | snapshot |</div><div>| metadata image_state | available |</div>
<div>| metadata image_type | snapshot |</div><div>| metadata instance_uuid | 526e1738-1b44-4509-900e-b29beed7e0f7 |</div><div>| metadata owner_id | c21b7e53480b497aac6683d618a6b3ce |</div>
<div>| metadata user_id | 4899e879f62846f1a4926b781a7489f6 |</div><div>| minDisk | 0 |</div><div>| minRam | 0 |</div>
<div>| name | test snapshot |</div><div>| progress | 100 |</div><div>| server | 526e1738-1b44-4509-900e-b29beed7e0f7 |</div>
<div>| status | ACTIVE |</div><div>| updated | 2012-10-19T06:59:55Z |</div><div>+-------------------------+--------------------------------------+</div>
</div><div><br></div><div>As you can see the image is_public = False, which is correct as this snapshot should only be visible to the</div><div>user who created the snapshot.</div><div><br></div><div><b>My workaround</b>:</div>
<div>Make the image public and it works fine (Image can be seen in horizon):</div><div><div>glance image-update 33d37a0b-0c4d-4976-8580-9e7bf8b53776 --is-public=True</div></div><div><br></div><div>Seems this is a big bug or a misconfiguration, but I guess it's a misconfiguration on my part.</div>
<div>I've attached all my glance configuration files as attachment: glance-config.tar.gz.</div><div>The logs didn't contain errors either.</div><div><br></div><div>Really hope somebody can help me in the right direction. Thanks a lot!</div>
<div>Sam</div>
<span><glance-config.tar.gz></span>_______________________________________________<br>Mailing list: <a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a><br>Post to : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>Unsubscribe : <a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a><br>More help : <a href="https://help.launchpad.net/ListHelp">https://help.launchpad.net/ListHelp</a><br></blockquote></div><br></div></body></html>