Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cloud-init[915]: Failed to connect to bus: No medium found #12

Open
cmoulliard opened this issue Nov 10, 2023 · 1 comment
Open

cloud-init[915]: Failed to connect to bus: No medium found #12

cmoulliard opened this issue Nov 10, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@cmoulliard
Copy link
Collaborator

cmoulliard commented Nov 10, 2023

Issue

During the execution of the bash script - https://github.com/iocanel/openshift-vm-playground/blob/fc58851fb75af3d2c1269fad0e2b9cfc5a1305a3/resources/config.sh
and commands:

sudo dnf -y install podman socat
systemctl --user enable --now podman.socket
loginctl enable-linger 1000

cloudinit reports the following error and stop the execution of the commands:

Nov 10 10:24:49 fedora37 cloud-init[915]: Failed to connect to bus: No medium found

NOTe: I suspect that the issue that we have here is related to the fact that we would like to enable the service for user 1000 (= podman rootless mode) while in fact the script and the bash commands are not executed by the user 1000 as we are not logged !

@cmoulliard
Copy link
Collaborator Author

Of course, we can enable the service as root using such a syntax

sudo systemctl start podman.socket
sudo systemctl enable podman.socket

sudo socat TCP-LISTEN:2376,reuseaddr,fork,bind=0.0.0.0 unix:/run/podman/podman.sock &

That will work but then another question will raise which is about: Should we start on the VM podman as rootful or rootless ?

cmoulliard added a commit that referenced this issue Nov 10, 2023
…e will know if we will use podman rootfull or rootless. #12

Signed-off-by: cmoulliard <cmoulliard@redhat.com>
@cmoulliard cmoulliard added the bug Something isn't working label Nov 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant