Fix: Ignore CentOS LDAP configuration during restore
During CentOS to Debian upgrade, the configuration path changes from
/etc/openldap to /etc/ldap. However, /etc/openldap is not cleaned
up after migration. This caused restore to use the incorrect
LDAP configuration.
To avoid encountering this issue on systems that have already been
upgraded, the logic of when restoring LDAP has been changed.
TEST PLAN
PASS: Perform stx6 to stx8 upgrade on AIO-SX
PASS: Perform optimized B&R on AIO-SX on an upgraded system
* The upgrade should be CentOS to Debian
* Ensure LDAP data is correct after restore
* Ensure /etc/openldap is not present on system after restore
Reviewed: https:/ /review. opendev. org/c/starlingx /ansible- playbooks/ +/891616 /opendev. org/starlingx/ ansible- playbooks/ commit/ aa1c9281f0702c5 aef2dc3e7b732bf 550ce71522
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit aa1c9281f0702c5 aef2dc3e7b732bf 550ce71522
Author: Joshua Kraitberg <email address hidden>
Date: Wed Aug 16 12:45:05 2023 -0400
Fix: Ignore CentOS LDAP configuration during restore
During CentOS to Debian upgrade, the configuration path changes from
/etc/openldap to /etc/ldap. However, /etc/openldap is not cleaned
up after migration. This caused restore to use the incorrect
LDAP configuration.
To avoid encountering this issue on systems that have already been
upgraded, the logic of when restoring LDAP has been changed.
TEST PLAN
PASS: Perform stx6 to stx8 upgrade on AIO-SX
PASS: Perform optimized B&R on AIO-SX on an upgraded system
* The upgrade should be CentOS to Debian
* Ensure LDAP data is correct after restore
* Ensure /etc/openldap is not present on system after restore
Closes-Bug: 2031556 359e2965a7daddd b82d31877e5
Signed-off-by: Joshua Kraitberg <email address hidden>
Change-Id: Ib66ea00a65c725