Code review comment for ~kissiel/plainbox-provider-checkbox:fix-verify-lxd

Revision history for this message
Jeff Lane  (bladernr) wrote :

Was this actually a failing issue on devices? IIRC LXD is designed to run by non-privileged users by default. Simply installing LXD and running lxd-init as a normal user should be sufficient. Running it as root shouldn't be necessary at all.

One gotcha we DID discover though is that if you do a sosreport BEFORE you run the LXD tests, you'll find the LXD tests won't work, because sosreport runs as root, and can trigger some LXD stuff, changing the ownership of some of the files to root, making it impossible at that point for a non-privileged user to run lxc commands.

This was fixed on our sosreport jobs by adding '-n lxd' to the sosreport command line to tell it to skip any LXD stuff.

« Back to merge proposal