← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1702935] Re: Unshelving an offloaded server does not restrict to the original cell

 

Reviewed:  https://review.openstack.org/486208
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=06b4ff7df857f56d6ecb819895c17e1e708dd071
Submitter: Jenkins
Branch:    master

commit 06b4ff7df857f56d6ecb819895c17e1e708dd071
Author: Chris Friesen <chris.friesen@xxxxxxxxxxxxx>
Date:   Fri Jul 21 13:25:48 2017 -0600

    Ensure we unshelve in the cell the instance is mapped
    
    When we create a server it gets put in a specific cell and its
    instance_mappings record in the API DB is set to map that instance
    to that cell.
    
    When unshelving an instance we want to ensure that the scheduler
    only considers compute nodes in the cell where the instance is
    mapped.
    
    Change-Id: I96285a1902436cf59b6c6ddf22b69a33503d0f4a
    Closes-Bug: #1702935


** Changed in: nova
       Status: In Progress => Fix Released

-- 
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/1702935

Title:
  Unshelving an offloaded server does not restrict to the original cell

Status in OpenStack Compute (nova):
  Fix Released

Bug description:
  This was mentioned in bug 1702932 but is a separate issue.

  When we create a server it gets put in a specific cell and it's
  instance_mappings record in the API DB is set to map that instance to
  that cell.

  If we migrate (cold, resize or live) the instance, the conductor task
  manager restrict the instance move operation to the same cell:

  https://github.com/openstack/nova/blob/56cd608d3a199dcb02ac2ae071ff3057241259da/nova/conductor/tasks/migrate.py#L63-L66

  However, when we unshelve an offloaded server, there is nothing
  restricting the scheduler from picking a host in another cell:

  https://github.com/openstack/nova/blob/56cd608d3a199dcb02ac2ae071ff3057241259da/nova/conductor/manager.py#L673-L700

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


References