Bug 1024430 - glance: taking an instance snapshot from instance booted from volume creates an unusable empty image
Summary: glance: taking an instance snapshot from instance booted from volume creates ...
Keywords:
Status: CLOSED DUPLICATE of bug 1026325
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-nova
Version: 4.0
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
: 4.0
Assignee: RHOS Maint
QA Contact: Ami Jeain
URL:
Whiteboard: storage
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-29 16:09 UTC by Dafna Ron
Modified: 2019-09-09 17:02 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-11-20 09:33:48 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
logs (1.15 MB, application/x-gzip)
2013-10-29 16:09 UTC, Dafna Ron
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1245940 0 None None None Never

Description Dafna Ron 2013-10-29 16:09:55 UTC
Created attachment 817132 [details]
logs

Description of problem:

I booted an instance from a volume and took an instance snapshot. 
we create an empty image which we cannot boot from 

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

openstack-nova-compute-2013.2-4.el6ost.noarch

How reproducible:

100%

Steps to Reproduce:
1. boot an instance from volume 
2. take a snapshot of the instance from horizon
3. 

Actual results:

an empty unusable image is created 

Expected results:

we should not create an image 

Additional info: logs 

[root@cougar06 ~(keystone_admin)]# glance image-list 
+--------------------------------------+-------+-------------+------------------+-----------+--------+
| ID                                   | Name  | Disk Format | Container Format | Size      | Status |
+--------------------------------------+-------+-------------+------------------+-----------+--------+
| 8911ad09-bb7c-4461-886e-79b1088374cc | bla   |             |                  |           | active |
| d601cc8e-72b8-4137-baa8-e213c32c41ec | boo   |             |                  |           | active |
| 48bf2581-1df3-4c2a-ac34-11ec7b4aab20 | boo1  |             |                  |           | active |
| 365ad861-eb57-4488-86b8-daf5bd2af126 | boo2  |             |                  |           | active |
| 597066b9-bee9-4ca2-a29e-57f257a13b7f | image | qcow2       | bare             | 699592704 | active |


[root@cougar06 ~(keystone_admin)]# nova boot test1 --flavor 2 --image 8911ad09-bb7c-4461-886e-79b1088374cc
ERROR: Block Device Mapping is Invalid: Boot sequence for the instance and image/block device mapping combination is not valid. (HTTP 400) (Request-ID: req-60c8b66f-395b-471e-b4e2-5ea71e92ecfd)

Comment 1 Flavio Percoco 2013-11-11 14:03:15 UTC
At first glance, this seems to be a nova bug since it's responsible for creating images and then `uploading` them to `glance-api`. In this whole process, glance does not modifies the image at all.

What makes you think this is a Glance bug? Any detail that I could be missing?

Comment 2 Dafna Ron 2013-11-15 08:34:08 UTC
I opened on glance because I thought that the image would be created with glance and not nova (nova will call glance). but if not, please change component to nova :)

Comment 3 Xavier Queralt 2013-11-20 09:33:48 UTC
Hey, I couldn't locate this bug in nova component and took the liberty of creating it. I didn't know it was already filled against glance ;)

Closing as a duplicate because the other one contains more information.

*** This bug has been marked as a duplicate of bug 1026325 ***


Note You need to log in before you can comment on or make changes to this bug.