host aggregate always changing

Asked by Guangya Liu

Hi Nova experts,

I encounter a problem when creating host aggregate with nova command and found that once a hos was added to an aggregate, then the status of the aggregate was always in changing state, do you know why?

root@nova:/opt/stack/nova/bin# nova aggregate-create ibm nova
+----+------+-------------------+-------------------+-------+----------+
| Id | Name | Availability Zone | Operational State | Hosts | Metadata |
+----+------+-------------------+-------------------+-------+----------+
| 1 | ibm | nova | created | | |
+----+------+-------------------+-------------------+-------+----------+
root@nova:/opt/stack/nova/bin# nova aggregate-add-host 1 nova
Aggregate 1 has been succesfully updated.
+----+------+-------------------+-------------------+-----------+----------+
| Id | Name | Availability Zone | Operational State | Hosts | Metadata |
+----+------+-------------------+-------------------+-----------+----------+
| 1 | ibm | nova | changing | [u'nova'] | {} |
+----+------+-------------------+-------------------+-----------+----------+
root@nova:/opt/stack/nova/bin# nova aggregate-list
+----+------+-------------------+-------------------+
| Id | Name | Availability Zone | Operational State |
+----+------+-------------------+-------------------+
| 1 | ibm | nova | changing |
+----+------+-------------------+-------------------+

Thanks,

Guangya Liu
IBM CSTL China

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Solved by:
Guangya Liu
Solved:
Last query:
Last reply:
Revision history for this message
John Garbutt (johngarbutt) said :
#1

What have you got on the api and compute logs?
Also, what Hypervisor are you using?

Thanks,
John

Revision history for this message
Guangya Liu (tramper2008-deactivatedaccount) said :
#2

Thanks John.

I was using KVM and I was using devstack, I do not know how to get nova-compute log.

Just check nova code, found that the function was not implemented.

The following code are from /opt/stack/nova/nova/virt/driver.py

def add_to_aggregate(self, context, aggregate, host, **kwargs):
        """Add a compute host to an aggregate."""
        raise NotImplementedError()

So now openstack do not support adding a host to host aggregation, right?

Thanks,
Guangya Liu
ISF Developer
IBM CSTL

Revision history for this message
John Garbutt (johngarbutt) said :
#3

There are some changes in this area hitting trunk in the next week or so.

Right now, and in Essex, host-aggregates only works with XenAPI driver.

Hope that helps,
John

Revision history for this message
Guangya Liu (tramper2008-deactivatedaccount) said :
#4

Thanks John for the answer. Clear now.

Guangya