Replies: 3 comments 5 replies
-
I know it's been a while since this has been posted, but I too am looking for a way forward with systemd-enabled molecule tests. Has anyone tried other container engines like podman? I guess the other alternative would be full VMs using something like vagrant, but that seems awfully "fat" for simple test cases like the ones I have |
Beta Was this translation helpful? Give feedback.
-
New to Molecule, and noticed essentially every older article out there would test with a Geerling role like Docker, and use one of his systemd images, and it constantly failed for me on my Mac, but worked when testing on another machine. Come to find out, it seems the latest Docker Desktop after 4.3.0 changed some of the behaviors around cgroups, and what once worked before, now doesn't. I have not seen alot of guidance as a beginner, if systemd was never an intended use case, how one tests for service related items. I will attempt this Podman setup, but what other drivers are available that are recommended for properly testing something like this? |
Beta Was this translation helpful? Give feedback.
-
Another potential pitfall for the folks in this thread to maybe be aware of... I had originally started with docker like this: $ pip install molecule[lint,docker] and then, I don't recall which, but I did one of these two:
This was causing errors every time I did |
Beta Was this translation helpful? Give feedback.
-
Greetings,
I believe I've experienced the effects of systemd/systemd#19245 (I believe) in that systemd containers will not function properly anymore with systemd 248.2-2-arch. This makes molecule-docker unsuitable for testing purposes for impacted hosts (Arch Linux starting last month, FC34 (?), soon more (?)).
While I can, and will, turn to other molecule plugins, I'm very much interested in ways to fix this or to workaround it.
Diagnostics
What happens is that there is only one systemd process in the container at PID 1 and that's it.
I wasn't able to get any logs out of systemd, or any kind of output. - so, no journal, and console doesn't print or write anything as far as I can tell.
Relevant issue
I wrongly posted this as an issue first, to which ssbarnea answered:
Beta Was this translation helpful? Give feedback.
All reactions