ansible-playbooks/playbookconfig
Salman Rana aeabb62d84 Set enrollment flag and disable cert checks during Keystone update
This commit addresses two issues observed during enrollment: one with
OAM reconfiguration and another with management network configuration.

1. OAM Reconfiguration Conflict:
   With OAM reconfiguration, manifests may be deferred to later stages
   of enrollment and applied multiple times, ultimately conflicting
   with the enrollment process. Specifically, updating the OAM network
   triggers Puppet to apply the class
   openstack::keystone::endpoint::runtime::post based on stale config,
   which may reset the updated Keystone user passwords, causing
   service failures.

   This commit introduces an enrollment_in_progress flag,
   preventing the openstack::keystone::endpoint::runtime Puppet class
   from running during enrollment (see related Puppet changes[1]).

2. Management Network Reconfiguration:
   When the management network is updated, certs are
   updated with the new address. However, endpoints are only fully
   reconfigured after unlock. This leads to a transitional state where
   endpoints still use the old IP, causing failures as certificates
   reference the new IP.

   To address this, we bypass certificate validation during enrollment.
   The central cloud will not validate the certificates presented by
   the subcloud during enrollment's transitional state.

[1] https://review.opendev.org/c/starlingx/stx-puppet/+/938062

Test plan:
Run end-to-end enrollment, ensuring subcloud is fully enrolled
(endpoints reconfigured, no alarms reported, etc) and
reporting online in system controller  Following tests were
done in both Virtual and H/W Lab:

PASS: No network reconfiguration. Enroll
      with same network config set during
      inital install.

PASS: OAM network reconfiguration. Enroll
      with a different OAM IP that's set during
      inital install.

PASS: Mgmt. network reconfiguration. Enroll
      with a different Mgmt. IPs that's set during
      inital install.

PASS: Run common roles with 'rehome' mode,
      ensure cert checks are done.

PASS: Verify enrollment with retry.
      Run enrollment with induced failure, revert the
      failure and retry. Ensure successful
      end-to-end enrollment.

Closes-bug: 2092214
Closes-bug: 2092212

Change-Id: Ie416009dfbc52702c4cb884e474e32da76d4d7eb
Signed-off-by: Salman Rana <salman.rana@windriver.com>
2024-12-20 20:00:10 +00:00
..
debian Update debian package versions to use git commits 2023-02-09 14:12:35 -08:00
src Set enrollment flag and disable cert checks during Keystone update 2024-12-20 20:00:10 +00:00
PKG-INFO Ansible Bootstrap Deployment 2019-04-11 08:40:34 -04:00