Skip to content

Commit e4aa521

Browse files
committed
Fix edpm_kernel molecule job
The job is constantly failing with an error: TASK [../../../../molecule/common/test_deps : Gather facts if they don't exist] *** Friday 10 October 2025 06:52:38 +0000 (0:00:00.019) 0:00:00.036 ******** fatal: [instance]: UNREACHABLE! => changed=false msg: 'Failed to create temporary directory. In some cases, you may have been able to authenticate and did not have permissions on the target directory. Consider changing the remote tmp path in ansible.cfg to a path rooted in "/tmp", for more error information use -vvv. Failed command was: ( umask 77 && mkdir -p "` echo /tmp `"&& mkdir "` echo /tmp/ansible-tmp-1760079158.4157672-25921-94583121902720 `" && echo ansible-tmp-1760079158.4157672-25921-94583121902720="` echo /tmp/ansible-tmp-1760079158.4157672-25921-94583121902720 `" ), exited with result 125' unreachable: true Depends-On: openstack-k8s-operators/ci-framework#3414 Depends-On: openstack-k8s-operators/ci-framework#3417 Signed-off-by: Daniel Pawlik <[email protected]>
1 parent 95aa63d commit e4aa521

File tree

2 files changed

+25
-14
lines changed

2 files changed

+25
-14
lines changed

roles/edpm_kernel/molecule/default/molecule.yml

Lines changed: 24 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,20 @@ dependency:
55
role-file: collections.yml
66
driver:
77
name: podman
8+
log: true
89
platforms:
9-
- command: /sbin/init
10-
dockerfile: ../../../../molecule/common/Containerfile.j2
11-
image: ${EDPM_ANSIBLE_MOLECULE_IMAGE:-"ubi9/ubi-init"}
12-
name: instance
13-
privileged: true
14-
registry:
15-
url: ${EDPM_ANSIBLE_MOLECULE_REGISTRY:-"registry.access.redhat.com"}
16-
ulimits:
17-
- host
10+
- command: /sbin/init
11+
dockerfile: ../../../../molecule/common/Containerfile.j2
12+
image: ${EDPM_ANSIBLE_MOLECULE_IMAGE:-"ubi9/ubi-init"}
13+
name: instance
14+
privileged: true
15+
registry:
16+
url: ${EDPM_ANSIBLE_MOLECULE_REGISTRY:-"registry.access.redhat.com"}
17+
environment:
18+
http_proxy: "{{ lookup('env', 'http_proxy') }}"
19+
https_proxy: "{{ lookup('env', 'https_proxy') }}"
20+
ulimits:
21+
- host
1822
provisioner:
1923
inventory:
2024
hosts:
@@ -23,17 +27,23 @@ provisioner:
2327
instance:
2428
ansible_connection: local
2529
ansible_host: localhost
26-
log: true
30+
# NOTE: we don't include group_vars here as ci-framework do.
2731
name: ansible
32+
log: true
2833
playbooks:
2934
cleanup: ${MOLECULE_SCENARIO_DIRECTORY}/../../resources/molecule/cleanup.yml
3035
prepare: ${MOLECULE_SCENARIO_DIRECTORY}/../../resources/molecule/prepare.yml
36+
env:
37+
ANSIBLE_STDOUT_CALLBACK: yaml
38+
config_options:
39+
defaults:
40+
remote_tmp: /tmp
3141
scenario:
3242
name: default
3343
test_sequence:
34-
- prepare
35-
- converge
36-
- check
37-
- cleanup
44+
- prepare
45+
- converge
46+
- check
47+
- cleanup
3848
verifier:
3949
name: testinfra

zuul.d/jobs.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
- ^roles/edpm_kernel/(defaults|files|handlers|library|lookup_plugins|module_utils|molecule|tasks|templates|vars).*
4040
vars:
4141
TEST_RUN: edpm_kernel
42+
mol_config_dir: "{{ ansible_user_dir }}/{{ zuul.projects['github.com/openstack-k8s-operators/ci-framework'].src_dir }}/.config/molecule/config_podman.yml"
4243
- job:
4344
name: edpm-ansible-molecule-edpm_libvirt
4445
parent: edpm-ansible-molecule-base

0 commit comments

Comments
 (0)