This repository has been archived by the owner on Jan 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 26
Wait for instance fail on rootfull container creation #77
Comments
Looks like a permission problem :
I think |
Alright, that's indeed a problem of home folder. From 6e413e0f34c11071c96f77607921a0672e9e0d10 Mon Sep 17 00:00:00 2001
From: Tristan Pinaudeau <[email protected]>
Date: Sun, 29 Aug 2021 01:38:56 +0200
Subject: [PATCH] fix: allow waiting for rootless container creation
---
src/molecule_podman/playbooks/create.yml | 1 +
src/molecule_podman/playbooks/destroy.yml | 5 +++--
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/molecule_podman/playbooks/create.yml b/src/molecule_podman/playbooks/create.yml
index cc79f30..fdb58a6 100644
--- a/src/molecule_podman/playbooks/create.yml
+++ b/src/molecule_podman/playbooks/create.yml
@@ -178,6 +178,7 @@
changed_when: true
- name: Wait for instance(s) creation to complete
+ become: "{{ not (item.item.rootless|default(true)) }}"
async_status:
jid: "{{ item.ansible_job_id }}"
register: podman_jobs
diff --git a/src/molecule_podman/playbooks/destroy.yml b/src/molecule_podman/playbooks/destroy.yml
index fd30fac..2eee5a8 100644
--- a/src/molecule_podman/playbooks/destroy.yml
+++ b/src/molecule_podman/playbooks/destroy.yml
@@ -17,9 +17,10 @@
changed_when: true
- name: Wait for instance(s) deletion to complete
+ become: "{{ not (item.item.rootless|default(true)) }}"
async_status:
jid: "{{ item.ansible_job_id }}"
- register: docker_jobs
- until: docker_jobs.finished
+ register: podman_jobs
+ until: podman_jobs.finished
retries: 300
with_items: "{{ server.results }}"
--
2.33.0
|
0b11stan
changed the title
Wait for instance fail on rootless container creation
Wait for instance fail on rootfull container creation
Sep 14, 2021
This was referenced Sep 14, 2021
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi, first, thank you for the great work around molecule and ansible.
I think I spotted an issue when using rootfull containers with podman.
Pods creations works perfectly but the next step (waiting for them to be up) is failing.
This is not the case when I remove the
rootless: false
entry.Versions
How to reproduce
What is happening
What is expected
The text was updated successfully, but these errors were encountered: