Update lxc-setup script on lxd vm instances#117
Merged
Conversation
6 tasks
blackboxsw
requested changes
Feb 12, 2021
When we create Xenial and Bionic lxd vm instances through pycloudlib, we need to provide a script to install the lxd-agent on those machines. Recently, one of the services that was being started in this script was dropped from lxd, lxd-agent-9p, as can be seen here: lxc/incus@2d013df We are now updating the script to remove references to that service
e28049f to
1fcaa96
Compare
Collaborator
|
Hrm I'm holding off on approval of this as I can't reproduce this issue locally (outside of ua-client integration tests). Once I can properly reproduce with pycloudlib alone, i can +1 this. Until then, I'll hold on approviing. |
Author
|
@blackboxsw pycloudlib is not raising any failures if cloud-init fails to run since #93. This might explain why you are not seeing this error. But if you are explicitly checking the status of cloud-init and it is not failing, please let me know and I will work on it |
Collaborator
|
Ok was able to reproduce the error today, right the issue was raise_on_error wasn't happening: # /var/lib/cloud/scripts/per-once/setup-lxc.sh
LXD agent has been installed, reboot to confirm setup.
To start it now, unmount this filesystem and run: systemctl start lxd-agent
Failed to start lxd-agent-9p.service: Unit lxd-agent-9p.service not found.Changing the service to drop lxd-agent-9p works. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When we create Xenial and Bionic lxd vm instances through pycloudlib, we need to provide a script to install the lxd-agent
on those machines. Recently, one of the services that was being started in this script was dropped from lxd, lxd-agent-9p. We are
now updating the script to remove references to that service.
This is the new script being used:
And we can see that lxd has dropped support for the
lxd-agent-9pservice on this commit:lxc/incus@2d013df