When blacklisting nodes on the overcloud, we don't want to generated
a configuration with these servers.
This patch ignore the server when server_id can't be found in the stack
when generating the configuration of the overcloud.
A warning is shown so the operator knows this server isn't part of the
configuration, probably due to blacklisting.
If getting the server name fails for another reason than a KeyError,
we fail the configuration generation and raise an exception with the
error message.
Reviewed: https:/ /review. openstack. org/604483 /git.openstack. org/cgit/ openstack/ tripleo- common/ commit/ ?id=272bd17c304 d7d047ed7567956 8a09e9ebf7865b
Committed: https:/
Submitter: Zuul
Branch: master
commit 272bd17c304d7d0 47ed75679568a09 e9ebf7865b
Author: Emilien Macchi <email address hidden>
Date: Fri Sep 21 17:32:18 2018 -0400
config: ignore missing server_id from the stack
When blacklisting nodes on the overcloud, we don't want to generated
a configuration with these servers.
This patch ignore the server when server_id can't be found in the stack
when generating the configuration of the overcloud.
A warning is shown so the operator knows this server isn't part of the
configuration, probably due to blacklisting.
If getting the server name fails for another reason than a KeyError,
we fail the configuration generation and raise an exception with the
error message.
Change-Id: Ie7660894050e5e ca251aaf8c10f0c c7e7d837dfc
Closes-Bug: #1793605