← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1161619] Re: Can't create nova aggregate on Xen

 

** Changed in: nova
       Status: Fix Committed => Fix Released

** Changed in: nova
    Milestone: None => havana-3

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1161619

Title:
  Can't create nova aggregate on Xen

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  Hi

  I want to use XCP resource pool feature with openstack (2013.1). I
  have 2 XCP 1.6 hosts with 1 compute vm on each. Scheme was working ok
  with "separate" XCP hosts. Now I'm trying to add first host to
  aggregate:

  nova aggregate-create TestPool nova
  nova aggregate-set-metadata 2 hypervisor_pool=true
  nova aggregate-set-metadata 2 operational_state=created
  nova aggregate-add-host 2 DevStackOSDomU

  After that operational_state becomes always "changing". In the logs I
  see

  2013-03-28 21:19:50.992 ERROR nova.openstack.common.rpc.amqp [req-3867d0c9-97f0-4711-8266-62cddbdb32b7 admin admin] Exception during message handling
  2013-03-28 21:19:50.992 TRACE nova.openstack.common.rpc.amqp Traceback (most recent call last):
  2013-03-28 21:19:50.992 TRACE nova.openstack.common.rpc.amqp   File "/opt/stack/nova/nova/openstack/common/rpc/amqp.py", line 430, in _process_data
  2013-03-28 21:19:50.992 TRACE nova.openstack.common.rpc.amqp     rval = self.proxy.dispatch(ctxt, version, method, **args)
  2013-03-28 21:19:50.992 TRACE nova.openstack.common.rpc.amqp   File "/opt/stack/nova/nova/openstack/common/rpc/dispatcher.py", line 133, in dispatch
  2013-03-28 21:19:50.992 TRACE nova.openstack.common.rpc.amqp     return getattr(proxyobj, method)(ctxt, **kwargs)
  2013-03-28 21:19:50.992 TRACE nova.openstack.common.rpc.amqp   File "/opt/stack/nova/nova/exception.py", line 117, in wrapped
  2013-03-28 21:19:50.992 TRACE nova.openstack.common.rpc.amqp     temp_level, payload)
  2013-03-28 21:19:50.992 TRACE nova.openstack.common.rpc.amqp   File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__
  2013-03-28 21:19:50.992 TRACE nova.openstack.common.rpc.amqp     self.gen.next()
  2013-03-28 21:19:50.992 TRACE nova.openstack.common.rpc.amqp   File "/opt/stack/nova/nova/exception.py", line 94, in wrapped
  2013-03-28 21:19:50.992 TRACE nova.openstack.common.rpc.amqp     return f(self, context, *args, **kw)
  2013-03-28 21:19:50.992 TRACE nova.openstack.common.rpc.amqp   File "/opt/stack/nova/nova/compute/manager.py", line 3938, in add_aggregate_host
  2013-03-28 21:19:50.992 TRACE nova.openstack.common.rpc.amqp     slave_info=slave_info)
  2013-03-28 21:19:50.992 TRACE nova.openstack.common.rpc.amqp   File "/opt/stack/nova/nova/virt/xenapi/driver.py", line 579, in add_to_aggregate
  2013-03-28 21:19:50.992 TRACE nova.openstack.common.rpc.amqp     return self._pool.add_to_aggregate(context, aggregate, host, **kwargs)
  2013-03-28 21:19:50.992 TRACE nova.openstack.common.rpc.amqp   File "/opt/stack/nova/nova/virt/xenapi/pool.py", line 105, in add_to_aggregate
  2013-03-28 21:19:50.992 TRACE nova.openstack.common.rpc.amqp     master_compute = aggregate['metadetails']['master_compute']
  2013-03-28 21:19:50.992 TRACE nova.openstack.common.rpc.amqp KeyError: 'master_compute'
  2013-03-28 21:19:50.992 TRACE nova.openstack.common.rpc.amqp

  I'm new to openstack, is it a bug or am I missing something? 
  Thanks

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1161619/+subscriptions