-
Bug
-
Resolution: Unresolved
-
Major
-
CNV v4.15.0
-
None
-
Quality / Stability / Reliability
-
0.42
-
False
-
-
False
-
CNV v4.99.0.rhel9-2269
-
-
Important
-
No
Description of problem:
When "Dynamic SSH key injection" is enabled for RHEL9 VM, the ssh key is failed to be added to VM, the error is QEMU agent command 'guest-ssh-add-authorized-keys': failed to create directory '/home/cloud-user/.ssh': Permission denied'
Version-Release number of selected component (if applicable):
4.15 and 4.16
How reproducible:
100%
Steps to Reproduce:
1. Configure the public ssh key via UI: Virtualization -> Overview -> settings -> User -> Manage SSH keys 2. Create RHEL9 VM from UI: Virtualization -> Catalog -> Templates -> RHEL9 template -> Customize -> Enable "Dynamic SSH key injection" under "Scripts" tab 3. Wait until the VM is up
Actual results:
1. AgentVersionNotSupported is showing in VM status, which is misleading 2. Check VMI events, could see the error QEMU agent command 'guest-ssh-add-authorized-keys': failed to create directory '/home/cloud-user/.ssh': Permission denied'
Expected results:
SSH key is added to the VM
Additional info:
- is blocked by
-
CNV-57721 post PR for "QEMU agent command 'guest-ssh-add-authorized-keys': failed to create directory '/home/cloud-user/.ssh': Permission denied'"
-
- Closed
-
- relates to
-
CNV-38523 AgentVersionNotSupported on propagationMethod qemuGuestAgent
-
- Closed
-
- links to
-
RHEA-2024:138825 OpenShift Virtualization 4.99.0 Images
- mentioned on