-
Bug
-
Resolution: Done-Errata
-
Undefined
-
6.16.0, stream
Description of problem:
Host is failing to create '~root/.ssh' from `kickstart default` template while provisioning the host.
How reproducible:
Always
Is this issue a regression from an earlier version:
Yes, It worked earlier in Satellite stream snap 68 and 6.15.3
Steps to Reproduce:
1. Configure a Satellite for provisioning setup, where remote_execution_ssh_user is default set as root
2. Create a host with "remote_execution_ssh_keys" host param to add a public key to the host
3. After host is provisioned, try running a REX job on it
Actual behavior:
REX job fails because after host is provisioned '~root/.ssh' is missing, no public keys are added in ~/.ssh/authorized_keys, warnings can be seen in `install.post.log` file on host,
chmod: cannot access '/root/.ssh': No such file or directory
{{chmod: cannot access '/root/.ssh/authorized_keys': No such file or directory }}
{{chown: cannot access '/root/.ssh': No such file or directory }}
/sbin/restorecon restorecon: lstat(/root/.ssh) failed: No such file or directory
Expected behavior:
After is provisioned successfully, REX jobs can be run, and ~root/.ssh directory exists with ~root/.ssh/authorized_keys file present
Business Impact / Additional info:
- links to
-
RHBA-2024:140284 Important: Satellite 6.16.0 release