Skip to content

Commit 80b7f22

Browse files
mnietojiclaude
andcommitted
[reproducer] Create id_cifw symlink on hypervisor for reuse_ocp
The reproducer inventory references ~/.ssh/id_cifw as the SSH key for connecting to controller-0. This key exists on controller-0 (injected by libvirt_manager) but not on the hypervisor, where the same key is named cifmw_reproducer_key. In reuse_ocp flows, cifmw_helpers reads the inventory from controller-0 and re-adds hosts via add_host with the id_cifw path. Subsequent tasks delegated to controller-0 then fail because the hypervisor cannot find ~/.ssh/id_cifw. Create a symlink on the hypervisor before the delegated block so both key names resolve to the same file. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Signed-off-by: Miguel Angel Nieto Jimenez <mnietoji@redhat.com>
1 parent c711a4c commit 80b7f22

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

roles/reproducer/tasks/reuse_main.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,13 @@
109109
- name: Push local code
110110
ansible.builtin.include_tasks: push_code.yml
111111

112+
- name: Ensure id_cifw symlink exists on hypervisor
113+
ansible.builtin.file:
114+
src: "{{ ansible_user_dir }}/.ssh/cifmw_reproducer_key"
115+
dest: "{{ ansible_user_dir }}/.ssh/id_cifw"
116+
state: link
117+
force: true
118+
112119
- name: Group tasks on controller-0
113120
delegate_to: controller-0
114121
block:

0 commit comments

Comments
 (0)