
User procedure
Start user procedure:
- Have an Ubuntu 22 VM ready in your tenancy or create a new temporary Ubuntu 22 VM from Morpheus

- plan: eo1.medium
- networks: private
- security group: ssh
- Create backup of the LDAP VM (See CreatebackupofaVM );
- Check the Operating System of your LDAP from Morpheus, Provisioning → Instances → select LDAP machine
;- If your LDAP is rocky 8 based → jump to step 8.
- If your LDAP is centos7 based → continue to step 4.
- Create LDAP replica instance type to move from centos7 to rocky 8 (see MigratefromCentos7toRocky8);
- Switch IP interfaces between LDAPs using 'switch interfaces of two VMs' workflow in Morpheus (see SwitchInterfacesoftwoVMs);
- Update Morpheus (see UpdateMorpheus );
- Check everything is working fine (see Tests);
- Create LDAP replica instance type to move from rocky 8 to rocky 9 (see MigratefromRocky8toRocky9)
- Switch IP interfaces between LDAPs using 'switch interfaces of two VMs' workflow in Morpheus (see SwitchInterfacesoftwoVMs);
- Update Morpheus (see UpdateMorpheus );
- Check everything is working fine (see Tests);
- Delete old LDAP machine/s to free resources (see Delete a VM from Morpheus).
Tasks
Migrate from Centos7 to Rocky 8
Creating a new rocky 8 LDAP replica
- Login to Morpheus
- Go to Provisioning → Instances and click '+ADD'

- Select the LDAP replica Instance type

- Select a new name for the VM (e.g. ldap-rocky8) and click 'Next'
- Use the following inputs for the VM and then click 'Next' until the deployment starts:
- version: 8
- plan: eo1.medium
- networks: private
- security group: ldap
Migrate from Rocky 8 to Rocky 9
Creating a new rocky 8 LDAP replica
- Login to Morpheus
- Go to Provisioning → Instances and click '+ADD'

- Select the LDAP replica Instance type

- Select a new name for the VM (e.g. ldap-rocky8) and click 'Next'
- Use the following inputs for the VM and then click 'Next' until the deployment starts:
- version: 9
- plan: eo1.medium
- networks: private
- security group: ldap
Create backup of a VM
- Go to an Ubuntu 22 VM and select 'Run Workflow'

- Select the 'Create Backup of a VM using Openstack Applications Credentials'

- Insert inputs and run the workflow
where you provide:
- Name of the VM to backup
- Openstack Application Credentials ID and Secret
Switch Interfaces of two VMs
- Go to an Ubuntu 22 VM and select 'Run Workflow'

- Select the 'Switch Interfaces of two VMs using Openstack Applicaitons Credentials'

- Insert inputs and run the workflow
where you provide:- OLD VM in this case is the OLD LDAP machine name
- NEW VM in this case is the NEW LDAP machine name
- Openstack Application Credentials ID and Secret
Update Morpheus
- Login to Morpheus and change the value of the hostname for LDAP, going to Tools → Cypher:
- Delete the secret/ldap_hostname

- Use the '+ADD' to create a new secret

- Add KEY: secret/ldap_hostname and VALUE: NEW_LDAP_HOSTNAME
Tests
- ssh to ssh-proxy in your tenancy
- ssh using DNS to the new LDAP machine
- Run sudo ipactl status → verify the services are all up and running
- From Morpheus go to Provisioning → Instances and deploy a new machine to test the enrollment to LDAP DNS is working correctly with the new LDAP machine.
Known possible errors
DNA range issue
After the IPA Migration, especially from Centos7 to Rocky9, there might be still some possible errors, like the one below:
ipa: ERROR: Operations error: Allocation of a new value for range cn=posix ids,cn=distributed numeric assignment plugin,cn=plugins,cn=config failed! Unable to proceed.
There is a FreeIPA doc site related to this: https://www.freeipa.org/page/V3/Recover_DNA_Ranges.html
The fix for that error is the following command:
- Identify min and max range of IDs
- Set the lower boundary to exclude every existing account (as of
ipa user-find | grep 'UID'
) - Assign the DNS range using ${min}-${max} identified in the previous steps
ipa-replica-manage dnarange-set $ldap_server ${min}-${max} |
- Check the range that is used
ipa-replica-manage dnarange-show |
ipa
command line of WebUI access is denied, with an HTTP error 401
You could identify this error during tests or enrloment, after the migration from Centos7 to Rocky8.
- SSH to the LDAP machine
- become root
- Run the following
python3 /usr/libexec/ipa/oddjob/org.freeipa.server.config-enable-sid --add-sids |
- finally kinit with the admin user and try to run ipa commands to verify it works
Resource: https://access.redhat.com/solutions/7052125