-
Notifications
You must be signed in to change notification settings - Fork 23.8k
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
hostname module error inside LXD containers: Failed to activate service 'org.freedesktop.hostname1': timed out #42530
Comments
Files identified in the description: If these files are inaccurate, please update the |
This seems to come from:
IMO under |
Files identified in the description: If these files are incorrect, please update the |
After discussing this in a backlog, we aren't sure there's much we can do to address this. We can't immediately fall back to not using systemd because there are cases where a container can use systemd and we would break those cases. If you really need this, you can use a |
@relrod You can fall back after failing to use systemd. Something like:
After I committed this issue I of course used workaround. But I still think it's a good idea to fix this, rather than continue having an obvious bug. |
SUMMARY
In LXD contaiers hostname module fails with error
Failed to activate service 'org.freedesktop.hostname1': timed out
ISSUE TYPE
COMPONENT NAME
hostname
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
LXD containers host: Ubuntu 18.04 bionic
LXD version: 3.0.1
Container: Ubuntu 16.04 xenial
STEPS TO REPRODUCE
lxc launch ubuntu:xenial mycontainer
EXPECTED RESULTS
Hostname should be updated
ACTUAL RESULTS
hostname
shell command inside container works fine, container's hostname is updated. So it's ansible module problem.The text was updated successfully, but these errors were encountered: