← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1735719] Re: Cell_v2 discover_hosts Not Working, after deleted a host from a cell

 

Reviewed:  https://review.openstack.org/524641
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=8ad36d15e404bf0dce90bed57f8aa91a350ed341
Submitter: Zuul
Branch:    master

commit 8ad36d15e404bf0dce90bed57f8aa91a350ed341
Author: Dan Smith <dansmith@xxxxxxxxxx>
Date:   Fri Dec 1 07:20:34 2017 -0800

    Unmap compute nodes when deleting host mapping
    
    When we delete a host mapping in the api database, we need to mark
    the compute node record as unmapped. Otherwise we can never re-discover
    it if added back.
    
    Change-Id: I9348827c5fd0364727e49cb8fae786cb2a29472a
    Closes-Bug: #1735719


** 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/1735719

Title:
  Cell_v2 discover_hosts Not Working, after deleted a host from a cell

Status in OpenStack Compute (nova):
  Fix Released

Bug description:
  !!!!!!!!!!!!!!!!!!!!!!!!! READ THIS !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  Description
  ===========
  Mulit-cell Cell_v2 'discover_hosts' is not working after executing 'delete_host' operation to remove a specific host from the cell. 

  Steps to reproduce
  ==================
  *Consider I am having nova-compute service running on host 'compute3'
  *nova-manage cell_v2 delete_host --cell_uuid d9a559a8-7d16-4e7c-8db2-82f28199509e --host compute3 (as per this https://review.openstack.org/513717 )
  *Host entry was removed from host_mappings table
  *Still service is up and Running on the local cell DB.
  *I am trying to execute 'nova-manage cell_v2 discover_hosts --verbose'
  *No host entry was created and got `Found 0 unmapped computes in cell: d9a559a8-7d16-4e7c-8db2-82f28199509e` message.

  Expected result
  ===============

  It should add the host that is not mapped to the cell.

  Actual result
  =============
  nova-manage cell_v2 discover_hosts --verbose
  Getting compute nodes from cell 'cell2': d9a559a8-7d16-4e7c-8db2-82f28199509e
  Found 0 unmapped computes in cell: d9a559a8-7d16-4e7c-8db2-82f28199509e
  Host is not added to the cell.

  Environment
  ===========
  Devstack(stable/pike) using nova-manage 16.0.3

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


References