Comment 5 for bug 1974070

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to nova (master)

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

commit 8a476061c5e034016668cd9e5a20c4430ef6b68d
Author: John Garbutt <email address hidden>
Date: Wed May 18 19:06:36 2022 +0100

    Ironic: retry when node not available

    After a baremetal instance is deleted, and its allocation is removed
    in placement, the ironic node might start cleaning. Eventually nova
    will notice and update the inventory to be reserved.
    During this window, a new instance may have already picked this
    ironic node.

    When that race happens today the build fails with an error:
    "Failed to reserve node ..."

    This change tries to ensure the remaining alternative hosts are
    attempted before aborting the build.
    Clearly the race is still there, but this makes it less painful.

    Related-Bug: #1974070
    Change-Id: Ie5cdc17219c86927ab3769605808cb9d9fa9fa4d