[openstack-dev] [Nova] Mislead of Nova Documents in configuring hosts aggregates

Luo Gangyi lgy181 at foxmail.com
Thu Apr 16 06:50:34 UTC 2015

Hi, guys,

I found a misleading configuration in openstack official documents.

When I follow the guide (http://docs.openstack.org/trunk/config-reference/content/section_compute-scheduler.html) to configure nova host aggregates, I got following DEBUG message in nova-schuduler log:

2015-04-16 09:30:47.395 1143 DEBUG nova.scheduler.filters.compute_capabilities_filter [req-66f091c4-c26f-482f-b432-cbd0f2456625 None] (node-132.domain.bcec, node-132.domain.bcec) ram:128519 disk:6240256 io_ops:0 instances:0 fails instance_type extra_specs requirements host_passes /usr/lib/python2.6/site-packages/nova/scheduler/filters/compute_capabilities_filter.py:73
2015-04-16 09:30:47.395 1143 INFO nova.filters [req-66f091c4-c26f-482f-b432-cbd0f2456625 None] Filter ComputeCapabilitiesFilter returned 0 hosts

Then I looked the source code, I found this problem was caused by the conflict of ComputeCapabilitiesFilter and AggregateInstanceExtraSpecsFilter if we did not use scope in  extra_specs.

In official guide, it use "$ nova flavor-key ssd.large set  ssd=true" which may cause conflict with ComputeCapabilitiesFilter!

In fact, we should use "$ nova flavor-key ssd.large set aggregate_instance_extra_specs:ssd=true" instead.

Hope someone can fix this problem in officical documents to avoid other people encountering the same problem.

Luo Gangyiluogangyi at chinamobile.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20150416/9d41149b/attachment.html>

More information about the OpenStack-dev mailing list