Misleading guide in configuring hosts aggregates

Bug #1445285 reported by Luo Gangyi
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fix Released
Christian Berendt

Bug Description

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.

Tags: nova
Luo Gangyi (luogangyi)
tags: added: nova
Lana (loquacity)
Changed in openstack-manuals:
status: New → Confirmed
Luo Gangyi (luogangyi)
Changed in openstack-manuals:
assignee: nobody → Luo Gangyi (luogangyi)
status: Confirmed → In Progress
Revision history for this message
Luo Gangyi (luogangyi) wrote :

I have submit a patch https://review.openstack.org/#/c/175282/
Please review it.

Changed in openstack-manuals:
assignee: Luo Gangyi (luogangyi) → Christian Berendt (berendt)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-manuals (master)

Reviewed: https://review.openstack.org/175282
Committed: https://git.openstack.org/cgit/openstack/openstack-manuals/commit/?id=1583bace505fe26699d63e92edbb2e4c9810bb79
Submitter: Jenkins
Branch: master

commit 1583bace505fe26699d63e92edbb2e4c9810bb79
Author: Luo Gangyi <email address hidden>
Date: Mon Apr 20 00:28:44 2015 -0700

    Add scope prefix in configuring host aggregates

    Using unscoped key pairs will cause conflicts between
    ComputeCapabilitiesFilter and AggregateInstanceExtraSpecsFilter.
    And that conflicts lead to return 0 hosts of

    This patch adds 'aggregate_instance_extra_specs' scope when
    configuring host aggregates to avoid above conflicts.

    Closes-Bug: #1445285

    Change-Id: I4af09b1a556f5f9c56fb4e6fb3098fc01fb386bf

Changed in openstack-manuals:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstack-manuals 15.0.0

This issue was fixed in the openstack/openstack-manuals 15.0.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.