forcehost feature not working

Bug #1553099 reported by Paul Carlton
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Paul Carlton

Bug Description

The option of adding a specific nova compute host to the availability-zone selection as per http://docs.openstack.org/user-guide-admin/cli_nova_specify_host.html is not working, i.e. boot ... --availability-zone nova:server2 should schedule the instance to server2 regardless of scheduler filters or server2's capacity to accommodate the instance.

This feature is useful for testing newly provisioned nodes or potentially faulty nodes.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/288373

Changed in nova:
assignee: nobody → Paul Carlton (paul-carlton2)
status: New → In Progress
Changed in nova:
assignee: Paul Carlton (paul-carlton2) → Sylvain Bauza (sylvain-bauza)
tags: added: mitaka-rc-potential
Changed in nova:
assignee: Sylvain Bauza (sylvain-bauza) → Paul Carlton (paul-carlton2)
Changed in nova:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/288373
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=214b7550bca6b78c99660f257fc63d6ea4ccf212
Submitter: Jenkins
Branch: master

commit 214b7550bca6b78c99660f257fc63d6ea4ccf212
Author: pcarlton <email address hidden>
Date: Fri Mar 4 08:46:03 2016 +0000

    Add include_disabled parameter to service_get_all_by_binary

    The database query service_get_all_by_binary should return a list
    of services with the specified binary but it currently excludes
    disabled hosts. This change adds a name parameter called
    'include_disabled' which provides the caller with the option
    of having disabled hosts returned too.

    This query is used by the scheduler to retrieve the list of
    available hosts. The initial list should include disabled hosts.
    The ComputeFilter removes disabled hosts so inclusion of this
    filter is the proper way to exclude disabled hosts. Excluding
    disabled hosts from the initial list prevents the forcehost
    feature from being used to place an instance on a disabled host.

    The query is only used in objects.ServiceList.get_by_binary which
    is only called in one other place, in cells/state.py by
    CellStateManager._get_compute_hosts. Adding the named parameter
    to the get_by_binary method of the ServiceList class means the
    behaviour of CellStateManager._get_compute_hosts will not be
    impacted.

    Change-Id: I05c2716da45119e6e6aa272b0701be9ae098842c
    Closes-Bug: #1553099

Changed in nova:
status: In Progress → Fix Released
Revision history for this message
Thierry Carrez (ttx) wrote : Fix included in openstack/nova 13.0.0.0rc1

This issue was fixed in the openstack/nova 13.0.0.0rc1 release candidate.

Matt Riedemann (mriedem)
tags: added: availability-zones scheduler
removed: mitaka-rc-potential
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.