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: Ie7660894050e5eca251aaf8c10f0cc7e7d837dfc
Closes-Bug: #1793605
(cherry picked from commit 272bd17c304d7d047ed75679568a09e9ebf7865b)
Reviewed: https:/ /review. openstack. org/605412 /git.openstack. org/cgit/ openstack/ tripleo- common/ commit/ ?id=f86b2b4c55b 2aa10612388e75f 604faae969971a
Committed: https:/
Submitter: Zuul
Branch: stable/rocky
commit f86b2b4c55b2aa1 0612388e75f604f aae969971a
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 47ed75679568a09 e9ebf7865b)
Closes-Bug: #1793605
(cherry picked from commit 272bd17c304d7d0