Snapshot not created with any container_format column
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Invalid
|
Undecided
|
Unassigned | ||
OpenStack Compute (nova) |
Invalid
|
Medium
|
Brian Waldon | ||
OpenStack Dashboard (Horizon) |
Won't Fix
|
Medium
|
Gabriel Hurley |
Bug Description
======UPDATE=
Got some more information on that problem:
What happened was something like this, not entirely sure about all sequences:
- create VM1 from image, do something with VM1, create snapshot of VM1
- create VM2 from snapshot, stop VM1, do something with VM2, create snapshot of VM2
- create VM3 from snapshot, stop VM2, delete snapshot of VM2
So the situation was this: There's a VM created from a snapshot and the snapshot image was deleted. Creating a snapshot in that situation was impossible and resulted in the stacktrace
=======
I've got an Openstack setup with one controller node (glance, keystone, horizon, nova-* (except nova-compute)) and three compute nodes. I wanted to create a snapshot of a vm running on one of the compute nodes, by using the option in the horizon dashboard.
What happens is that the snapshot gets listed as a snapshot, but with the status queued. And from there on nothing happens anymore.
In the nova-compute.log on the compute host I can see these entries:
2012-07-25 12:45:56 TRACE nova.rpc.amqp Traceback (most recent call last):
2012-07-25 12:45:56 TRACE nova.rpc.amqp File "/usr/lib/
2012-07-25 12:45:56 TRACE nova.rpc.amqp rval = node_func(
2012-07-25 12:45:56 TRACE nova.rpc.amqp File "/usr/lib/
2012-07-25 12:45:56 TRACE nova.rpc.amqp return f(*args, **kw)
2012-07-25 12:45:56 TRACE nova.rpc.amqp File "/usr/lib/
2012-07-25 12:45:56 TRACE nova.rpc.amqp sys.exc_info())
2012-07-25 12:45:56 TRACE nova.rpc.amqp File "/usr/lib/
2012-07-25 12:45:56 TRACE nova.rpc.amqp self.gen.next()
2012-07-25 12:45:56 TRACE nova.rpc.amqp File "/usr/lib/
2012-07-25 12:45:56 TRACE nova.rpc.amqp return function(self, context, instance_uuid, *args, **kwargs)
2012-07-25 12:45:56 TRACE nova.rpc.amqp File "/usr/lib/
2012-07-25 12:45:56 TRACE nova.rpc.amqp self.driver.
2012-07-25 12:45:56 TRACE nova.rpc.amqp File "/usr/lib/
2012-07-25 12:45:56 TRACE nova.rpc.amqp return f(*args, **kw)
2012-07-25 12:45:56 TRACE nova.rpc.amqp File "/usr/lib/
2012-07-25 12:45:56 TRACE nova.rpc.amqp image_file)
2012-07-25 12:45:56 TRACE nova.rpc.amqp File "/usr/lib/
2012-07-25 12:45:56 TRACE nova.rpc.amqp _reraise_
2012-07-25 12:45:56 TRACE nova.rpc.amqp File "/usr/lib/
2012-07-25 12:45:56 TRACE nova.rpc.amqp image_meta = client.
2012-07-25 12:45:56 TRACE nova.rpc.amqp File "/usr/lib/
2012-07-25 12:45:56 TRACE nova.rpc.amqp res = self.do_
2012-07-25 12:45:56 TRACE nova.rpc.amqp File "/usr/lib/
2012-07-25 12:45:56 TRACE nova.rpc.amqp return func(self, *args, **kwargs)
2012-07-25 12:45:56 TRACE nova.rpc.amqp File "/usr/lib/
2012-07-25 12:45:56 TRACE nova.rpc.amqp headers=headers)
2012-07-25 12:45:56 TRACE nova.rpc.amqp File "/usr/lib/
2012-07-25 12:45:56 TRACE nova.rpc.amqp return func(self, method, url, body, headers)
2012-07-25 12:45:56 TRACE nova.rpc.amqp File "/usr/lib/
2012-07-25 12:45:56 TRACE nova.rpc.amqp raise exception.
2012-07-25 12:45:56 TRACE nova.rpc.amqp Invalid: Data supplied was not valid.
2012-07-25 12:45:56 TRACE nova.rpc.amqp Details: 400 Bad Request
2012-07-25 12:45:56 TRACE nova.rpc.amqp
2012-07-25 12:45:56 TRACE nova.rpc.amqp The server could not comply with the request since it is either malformed or otherwise incorrect.
2012-07-25 12:45:56 TRACE nova.rpc.amqp
2012-07-25 12:45:56 TRACE nova.rpc.amqp Failed to update image metadata. Got error: Data supplied was not valid. Details: 400 Bad Request The server could not comply with the request since it is either malformed or otherwise incorrect. Failed to update image metadata. Got error: Data supplied was not valid. Details: Invalid container format 'None' for image.
I checked with the api.log of glance and found these entries:
2012-07-25 13:13:22 2371 ERROR [glance.
2012-07-25 13:13:22 2371 ERROR [glance.
2012-07-25 13:13:22 2371 ERROR [glance.
2012-07-25 13:13:22 2371 ERROR [glance.
2012-07-25 13:13:22 2371 ERROR [glance.
2012-07-25 13:13:22 2371 ERROR [glance.
Any idea what's going wrong here?
Changed in horizon: | |
assignee: | Gabriel Hurley (gabriel-hurley) → Nebula (nebula) |
Changed in nova: | |
importance: | Undecided → Medium |
status: | New → Confirmed |
Changed in nova: | |
status: | In Progress → Triaged |
Hi guys, this came from here: https:/ /answers. launchpad. net/glance/ +question/ 204133