Il giorno 25/ago/2012, alle ore 01:15, Vishvananda Ishaya 
<vishvana...@gmail.com> ha scritto:

> Actually it looks like a different error. For some reason container format is 
> being sent in as none on the second node.
> 
> Is it possible the original image that you launched the vm from has been 
> deleted? For some reason it can't determine the container format.

Nope, the image from which the instance has been created is still there.

> 
> If not, can you also make sure that your versions of glance and 
> python-glanceclient are the same on both nodes?
> 
> you should be able to do `pip freeze` to see the installed versions.

I'm using the latest version from ubuntu 12.04 repo, btw, i can see only:

glance==2012.1

from pip freeze, no python-glanceclient there.

> 
> 
> Vish
> 
> On Aug 24, 2012, at 12:10 AM, Alessandro Tagliapietra 
> <tagliapietra.alessan...@gmail.com> wrote:
> 
>> Hi Vish,
>> 
>> I had already a setting:
>> 
>> glance_api_servers=10.0.0.1:9292
>> 
>> i've also tried to add
>> 
>> glance_host=10.0.0.1
>> 
>> but i got the same error.. Also, after changing configuration and restarting 
>> nova-compute restarts all instances, is that normal?
>> 
>> Best
>> 
>> Alessandro
>> 
>> Il giorno 23/ago/2012, alle ore 20:24, Vishvananda Ishaya 
>> <vishvana...@gmail.com> ha scritto:
>> 
>>> looks like the compute node has a bad setting for glance_api_servers on the 
>>> second node.
>>> 
>>> because glance_api_servers defaults to $glance_host:$glance_port, you 
>>> should be able to fix it by setting:
>>> 
>>> glance_host = <ip where glance is running>
>>> 
>>> in your nova.conf on the second node.
>>> 
>>> Vish
>>> 
>>> On Aug 23, 2012, at 10:15 AM, Alessandro Tagliapietra 
>>> <tagliapietra.alessan...@gmail.com> wrote:
>>> 
>>>> Hi all,
>>>> 
>>>> i've a controller which is running all service and a secondary controller 
>>>> which is un multi_host so it's running compute network and api-metadata. 
>>>> From the dashboard i can successfully create snapshots of instances 
>>>> running on the controller but when i try to create a snapshot of an 
>>>> instance on a compute node i get in its logs:
>>>> 
>>>> ==> /var/log/nova/nova-compute.log <==
>>>> 2012-08-23 19:08:14 ERROR nova.rpc.amqp 
>>>> [req-66389a04-b071-4641-949b-3df04da85d08 a63f5293c5454a979bddff1415a216f6 
>>>> e8c3367ff91d44b1ab1b14eb63f48bf7] Exception during message handling
>>>> 2012-08-23 19:08:14 TRACE nova.rpc.amqp Traceback (most recent call last):
>>>> 2012-08-23 19:08:14 TRACE nova.rpc.amqp   File 
>>>> "/usr/lib/python2.7/dist-packages/nova/rpc/amqp.py", line 253, in 
>>>> _process_data
>>>> 2012-08-23 19:08:14 TRACE nova.rpc.amqp     rval = node_func(context=ctxt, 
>>>> **node_args)
>>>> 2012-08-23 19:08:14 TRACE nova.rpc.amqp   File 
>>>> "/usr/lib/python2.7/dist-packages/nova/exception.py", line 114, in wrapped
>>>> 2012-08-23 19:08:14 TRACE nova.rpc.amqp     return f(*args, **kw)
>>>> 2012-08-23 19:08:14 TRACE nova.rpc.amqp   File 
>>>> "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 183, in 
>>>> decorated_function
>>>> 2012-08-23 19:08:14 TRACE nova.rpc.amqp     sys.exc_info())
>>>> 2012-08-23 19:08:14 TRACE nova.rpc.amqp   File 
>>>> "/usr/lib/python2.7/contextlib.py", line 24, in __exit__
>>>> 2012-08-23 19:08:14 TRACE nova.rpc.amqp     self.gen.next()
>>>> 2012-08-23 19:08:14 TRACE nova.rpc.amqp   File 
>>>> "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 177, in 
>>>> decorated_function
>>>> 2012-08-23 19:08:14 TRACE nova.rpc.amqp     return function(self, context, 
>>>> instance_uuid, *args, **kwargs)
>>>> 2012-08-23 19:08:14 TRACE nova.rpc.amqp   File 
>>>> "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 952, in 
>>>> snapshot_instance
>>>> 2012-08-23 19:08:14 TRACE nova.rpc.amqp     self.driver.snapshot(context, 
>>>> instance_ref, image_id)
>>>> 2012-08-23 19:08:14 TRACE nova.rpc.amqp   File 
>>>> "/usr/lib/python2.7/dist-packages/nova/exception.py", line 114, in wrapped
>>>> 2012-08-23 19:08:14 TRACE nova.rpc.amqp     return f(*args, **kw)
>>>> 2012-08-23 19:08:14 TRACE nova.rpc.amqp   File 
>>>> "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/connection.py", line 
>>>> 714, in snapshot
>>>> 2012-08-23 19:08:14 TRACE nova.rpc.amqp     image_file)
>>>> 2012-08-23 19:08:14 TRACE nova.rpc.amqp   File 
>>>> "/usr/lib/python2.7/dist-packages/nova/image/glance.py", line 306, in 
>>>> update
>>>> 2012-08-23 19:08:14 TRACE nova.rpc.amqp     
>>>> _reraise_translated_image_exception(image_id)
>>>> 2012-08-23 19:08:14 TRACE nova.rpc.amqp   File 
>>>> "/usr/lib/python2.7/dist-packages/nova/image/glance.py", line 304, in 
>>>> update
>>>> 2012-08-23 19:08:14 TRACE nova.rpc.amqp     image_meta = 
>>>> client.update_image(image_id, image_meta, data)
>>>> 2012-08-23 19:08:14 TRACE nova.rpc.amqp   File 
>>>> "/usr/lib/python2.7/dist-packages/glance/client.py", line 195, in 
>>>> update_image
>>>> 2012-08-23 19:08:14 TRACE nova.rpc.amqp     res = self.do_request("PUT", 
>>>> "/images/%s" % image_id, body, headers)
>>>> 2012-08-23 19:08:14 TRACE nova.rpc.amqp   File 
>>>> "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 58, in 
>>>> wrapped
>>>> 2012-08-23 19:08:14 TRACE nova.rpc.amqp     return func(self, *args, 
>>>> **kwargs)
>>>> 2012-08-23 19:08:14 TRACE nova.rpc.amqp   File 
>>>> "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 420, in 
>>>> do_request
>>>> 2012-08-23 19:08:14 TRACE nova.rpc.amqp     headers=headers)
>>>> 2012-08-23 19:08:14 TRACE nova.rpc.amqp   File 
>>>> "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 75, in 
>>>> wrapped
>>>> 2012-08-23 19:08:14 TRACE nova.rpc.amqp     return func(self, method, url, 
>>>> body, headers)
>>>> 2012-08-23 19:08:14 TRACE nova.rpc.amqp   File 
>>>> "/usr/lib/python2.7/dist-packages/glance/common/client.py", line 547, in 
>>>> _do_request
>>>> 2012-08-23 19:08:14 TRACE nova.rpc.amqp     raise 
>>>> exception.Invalid(res.read())
>>>> 2012-08-23 19:08:14 TRACE nova.rpc.amqp Invalid: Data supplied was not 
>>>> valid.
>>>> 2012-08-23 19:08:14 TRACE nova.rpc.amqp Details: 400 Bad Request
>>>> 2012-08-23 19:08:14 TRACE nova.rpc.amqp 
>>>> 2012-08-23 19:08:14 TRACE nova.rpc.amqp The server could not comply with 
>>>> the request since it is either malformed or otherwise incorrect.
>>>> 2012-08-23 19:08:14 TRACE nova.rpc.amqp 
>>>> 2012-08-23 19:08:14 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.    
>>>> 2012-08-23 19:08:14 TRACE nova.rpc.amqp
>>>> 
>>>> any idea?
>>>> Using nova create-image works but it creates a new image, not a snapshot 
>>>> (as the dashboard shows)
>>>> 
>>>> Best Regards
>>>> 
>>>> Alessandro
>>>> _______________________________________________
>>>> Mailing list: https://launchpad.net/~openstack
>>>> Post to     : openstack@lists.launchpad.net
>>>> Unsubscribe : https://launchpad.net/~openstack
>>>> More help   : https://help.launchpad.net/ListHelp
>>> 
>> 
> 


_______________________________________________
Mailing list: https://launchpad.net/~openstack
Post to     : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp

Reply via email to