-
Bug
-
Resolution: Unresolved
-
Critical
-
certsys-10.6
Description of problem:
Re installation is not working after removing instances using pkidestroy / pki-server remove
Version-Release number of selected component (if applicable):
RHCS 10.6 on RHEL 8.8 with Luna and Thales HSM
Name : redhat-pki
Stream : 10 [d][e][a]
Version : 8080020240227223936
Context : 4125a91d
Architecture : x86_64
How reproducible:
Always
Steps to Reproduce:
1. Install a CA instance
2. Remove it with any command mentioned below :
pkidestroy -i topology-02-CA --force
pki-server remove topology-02-CA --force
3. Try installing the CA instance again.
Actual results:
INFO: Creating /etc/systemd/system/pki-tomcatd.target.wants/pki-tomcatd@topology-02-CA.service
DEBUG: Command: ln -s /lib/systemd/system/pki-tomcatd@.service /etc/systemd/system/pki-tomcatd.target.wants/pki-tomcatd@topology-02-CA.service
ERROR: FileNotFoundError: [Errno 2] No such file or directory: '/lib/systemd/system/pki-tomcatd@.service' -> '/etc/systemd/system/pki-tomcatd.target.wants/pki-tomcatd@topology-02-CA.service'
File "/usr/lib/python3.6/site-packages/pki/server/pkispawn.py", line 568, in main
deployer.spawn()
File "/usr/lib/python3.6/site-packages/pki/server/deployment/_init_.py", line 4955, in spawn
scriptlet.spawn(self)
File "/usr/lib/python3.6/site-packages/pki/server/deployment/scriptlets/instance_layout.py", line 292, in spawn
exist_ok=True)
File "/usr/lib/python3.6/site-packages/pki/server/_init_.py", line 651, in symlink
exist_ok=exist_ok)
File "/usr/lib/python3.6/site-packages/pki/util.py", line 132, in symlink
os.symlink(source, dest)
Installation failed: [Errno 2] No such file or directory: '/lib/systemd/system/pki-tomcatd@.service' -> '/etc/systemd/system/pki-tomcatd.target.wants/pki-tomcatd@topology-02-CA.service'
Expected results:
Should PASS
Additional info:
Workaround : After pkidestroy , remove and reinstall the redhat-pki packages.
It is observed only on HSM VMs, But observed even in the installations which are not using token in config file.