From a46a4adbd09c1ac7892b7a1c4e6d03e91f57dd5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20de=20Ara=C3=BAjo=20Cabral?= Date: Fri, 20 Oct 2023 09:00:53 -0300 Subject: [PATCH] Add flag to update ceph-mon ip due to MGMT reconfiguration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit During a management network reconfiguration on AIO-SX with Ceph storage backend, this flag will indicate the need to update the ceph-monitor to the new network. The flag is used in the mandatory controller-0 unlock during the mgmt reconfiguration by the "platform::ceph::monitor" puppet class, which will proceed with the ip update. Test Plan: PASS: Reconfigure mgmt network on AIO-SX ipv4 with Ceph backend PASS: Reconfigure mgmt network on AIO-SX ipv6 with Ceph backend PASS: After controller-0 is unlocked, check if Ceph is healthy with 'ceph -s' PASS: Reconfigure mgmt network on AIO-SX ipv4 without Ceph backend Story: 2010722 Task: 48973 Depends on: https://review.opendev.org/c/starlingx/config/+/889724 Change-Id: Id3e4cee3b4cf51fa48c160d4ddbed0a3b55cb97a Signed-off-by: Gabriel de Araújo Cabral --- controllerconfig/controllerconfig/scripts/controller_config | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/controllerconfig/controllerconfig/scripts/controller_config b/controllerconfig/controllerconfig/scripts/controller_config index 7f0c8fdf84..2bcf5c10f6 100755 --- a/controllerconfig/controllerconfig/scripts/controller_config +++ b/controllerconfig/controllerconfig/scripts/controller_config @@ -555,6 +555,12 @@ start() # delete flags rm -f $ETC_PLATFORM_DIR/.mgmt_network_reconfiguration_ongoing rm -f $ETC_PLATFORM_DIR/.mgmt_network_reconfiguration_unlock + + # Create a flag to indicate that ceph mon reconfiguration is required if ceph is configured + if [ -e $ETC_PLATFORM_DIR/.node_ceph_configured ] + then + touch $ETC_PLATFORM_DIR/.ceph_mon_reconfig_required + fi fi hostname > /etc/hostname