← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 2085135] Re: nova fails to map host which has a provisioned node identity after its nova-compute service was deleted

 

Reviewed:  https://review.opendev.org/c/openstack/nova/+/933022
Committed: https://opendev.org/openstack/nova/commit/c04c94ecfb1b5bfb85bddf36612665402ed2bde8
Submitter: "Zuul (22348)"
Branch:    master

commit c04c94ecfb1b5bfb85bddf36612665402ed2bde8
Author: Julien Le Jeune <julien.le-jeune@xxxxxxxxxxxx>
Date:   Tue Oct 22 17:15:57 2024 +0200

    Reset the mapped field of nodes at service deletion
    
    Make sure that the 'mapped' field of compute nodes is reset
    to 0 at nova-compute service deletion.
    
    To let nova-manage create the missing host mapping in nova_api
    database.
    
    Closes-Bug: #2085135
    Change-Id: I774d4312d7e94af94d960f7269717a00fa08c583
    Signed-off-by: Julien Le Jeune <julien.le-jeune@xxxxxxxxxxxx>


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

Title:
  nova fails to map host which has a provisioned node identity after its
  nova-compute service was deleted

Status in OpenStack Compute (nova):
  Fix Released

Bug description:
  Hi,

  When we delete a nova-compute service, the 'mapped' field in
  nova_cell1.compute_nodes table stays at 1 instead of 0 while
  nova_api.host_mappings related entry is completely removed.

  By letting that 'mapped' field to 1, it prevents nova-manage cell_v2
  discover_hosts command to create the missing mapping. And that way, we
  can't anymore spawn on that compute because it's not linked to any
  cell.

  
  It may be linked to that bug: https://bugs.launchpad.net/nova/+bug/2077070

  To fix, we can use the --by-service option: nova-manage cell_v2 discover_hosts --verbose --by-service
  like mentioned here: https://bugs.launchpad.net/nova/+bug/2077070/comments/7

  A more global fix would be to set the 'mapped' field to 0 at nova-
  compute service deletion.

  
  Environment
  ===========
  - fresh Antelope deployment on Debian12
  - self provisioned compute id

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



References