[Openstack] Openstack Nova question

Vishvananda Ishaya vishvananda at gmail.com
Fri Sep 28 16:45:23 UTC 2012


Hi Roberto,

It looks like you have the wrong version of python-glanceclient installed

Try pip install python-glanceclient (or install the appropriate package via your package management system).

Vish

On Sep 28, 2012, at 6:38 AM, Roberto Sassu <roberto.sassu at polito.it> wrote:

> Hi everyone
> 
> I have a controller node with Ubuntu 12.04 LTS and a compute node with
> Fedora 16. I installed in both nodes the same version of Nova
> (2012.1.3), but I'm unable to deploy a VM on the compute node.
> The error message is:
> 
> ----
> 2012-09-28 15:23:16 ERROR nova.rpc.amqp [req-44675879-a976-4920-b5a7-b03d93eefc70 9343fcd95205427ca6632c69976e9b9a 9971204f5b554be181e9eaa878f7682a] Exception during message handling
> 2012-09-28 15:23:16 TRACE nova.rpc.amqp Traceback (most recent call last):
> 2012-09-28 15:23:16 TRACE nova.rpc.amqp   File "/usr/lib/python2.7/site-packages/nova/rpc/amqp.py", line 253, in _process_data
> 2012-09-28 15:23:16 TRACE nova.rpc.amqp     rval = node_func(context=ctxt, **node_args)
> 2012-09-28 15:23:16 TRACE nova.rpc.amqp   File "/usr/lib/python2.7/site-packages/nova/exception.py", line 114, in wrapped
> 2012-09-28 15:23:16 TRACE nova.rpc.amqp     return f(*args, **kw)
> 2012-09-28 15:23:16 TRACE nova.rpc.amqp   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 185, in decorated_function
> 2012-09-28 15:23:16 TRACE nova.rpc.amqp     sys.exc_info())
> 2012-09-28 15:23:16 TRACE nova.rpc.amqp   File "/usr/lib64/python2.7/contextlib.py", line 24, in __exit__
> 2012-09-28 15:23:16 TRACE nova.rpc.amqp     self.gen.next()
> 2012-09-28 15:23:16 TRACE nova.rpc.amqp   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 179, in decorated_function
> 2012-09-28 15:23:16 TRACE nova.rpc.amqp     return function(self, context, instance_uuid, *args, **kwargs)
> 2012-09-28 15:23:16 TRACE nova.rpc.amqp   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 678, in run_instance
> 2012-09-28 15:23:16 TRACE nova.rpc.amqp     do_run_instance()
> 2012-09-28 15:23:16 TRACE nova.rpc.amqp   File "/usr/lib/python2.7/site-packages/nova/utils.py", line 946, in inner
> 2012-09-28 15:23:16 TRACE nova.rpc.amqp     retval = f(*args, **kwargs)
> 2012-09-28 15:23:16 TRACE nova.rpc.amqp   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 677, in do_run_instance
> 2012-09-28 15:23:16 TRACE nova.rpc.amqp     self._run_instance(context, instance_uuid, **kwargs)
> 2012-09-28 15:23:16 TRACE nova.rpc.amqp   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 478, in _run_instance
> 2012-09-28 15:23:16 TRACE nova.rpc.amqp self._set_instance_error_state(context, instance_uuid)
> 2012-09-28 15:23:16 TRACE nova.rpc.amqp   File "/usr/lib64/python2.7/contextlib.py", line 24, in __exit__
> 2012-09-28 15:23:16 TRACE nova.rpc.amqp     self.gen.next()
> 2012-09-28 15:23:16 TRACE nova.rpc.amqp   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 447, in _run_instance
> 2012-09-28 15:23:16 TRACE nova.rpc.amqp     image_meta = self._check_image_size(context, instance)
> 2012-09-28 15:23:16 TRACE nova.rpc.amqp   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 525, in _check_image_size
> 2012-09-28 15:23:16 TRACE nova.rpc.amqp     image_meta = _get_image_meta(context, instance['image_ref'])
> 2012-09-28 15:23:16 TRACE nova.rpc.amqp   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 192, in _get_image_meta
> 2012-09-28 15:23:16 TRACE nova.rpc.amqp     return image_service.show(context, image_id)
> 2012-09-28 15:23:16 TRACE nova.rpc.amqp   File "/usr/lib/python2.7/site-packages/nova/image/glance.py", line 241, in show
> 2012-09-28 15:23:16 TRACE nova.rpc.amqp _reraise_translated_image_exception(image_id)
> 2012-09-28 15:23:16 TRACE nova.rpc.amqp   File "/usr/lib/python2.7/site-packages/nova/image/glance.py", line 476, in _reraise_translated_image_exception
> 2012-09-28 15:23:16 TRACE nova.rpc.amqp     new_exc = _translate_image_exception(image_id, exc_type, exc_value)
> 2012-09-28 15:23:16 TRACE nova.rpc.amqp   File "/usr/lib/python2.7/site-packages/nova/image/glance.py", line 488, in _translate_image_exception
> 2012-09-28 15:23:16 TRACE nova.rpc.amqp     if exc_type in (glance_exception.Forbidden,
> 2012-09-28 15:23:16 TRACE nova.rpc.amqp AttributeError: 'module' object has no attribute 'Forbidden'
> ----
> 
> 
> and the nova.conf file of the compute node is:
> 
> 
> [DEFAULT]
> dhcpbridge_flagfile=/etc/nova/nova.conf
> dhcpbridge=/usr/bin/nova-dhcpbridge
> logdir=/var/log/nova
> state_path=/var/lib/nova
> lock_path=/var/lock/nova
> force_dhcp_release=true
> iscsi_helper=tgtadm
> libvirt_use_virtio_for_bridges=true
> connection_type=libvirt
> root_helper=sudo nova-rootwrap
> verbose=true
> ec2_private_dns_show_ip=true
> auth_strategy=keystone
> network_manager=nova.network.manager.FlatDHCPManager
> fixed_range=192.168.100.0/24
> public_interface=em1
> flat_interface=p1p1
> flat_network_bridge=br100
> my_ip=compute-node
> vncserver_listen=compute-node
> vncserver_proxyclient_address=compute-node
> libvirt_type=kvm
> auth_strategy = keystone
> image_service=nova.image.glance.GlanceImageService
> sql_connection=mysql://[...]@controller-node/nova
> glance_api_servers=controller-node:9292
> iscsi_ip_prefix=controller-node
> rabbit_host=controller-node
> vpn_client_template = /usr/share/nova/client.ovpn.template
> credentials_template = /usr/share/nova/novarc.template
> firewall_driver = nova.virt.libvirt.firewall.IptablesFirewallDriver
> injected_network_template = /usr/share/nova/interfaces.template
> libvirt_xml_template = /usr/share/nova/libvirt.xml.template
> 
> 
> For the controller node, I only removed the last five lines and
> set the correct IP in my_ip, vncserver_listen and
> vncserver_proxyclient_address.
> 
> If I deploy the VM in the controller or in another compute node
> with Ubuntu, the operation succeeds.
> 
> Do you have an idea why the deploy fails in the node with Fedora?
> 
> Thanks
> 
> Roberto Sassu
> 
> 
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to     : openstack at lists.launchpad.net
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp





More information about the Openstack mailing list