lxc-android-config not starting on ubuntu-touch/staging/* xenial-based images after lxc upgrade
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical System Image |
Confirmed
|
Critical
|
Unassigned | ||
lxc (Ubuntu) |
Fix Released
|
High
|
Christian Brauner | ||
Trusty |
Triaged
|
Medium
|
Stéphane Graber | ||
Xenial |
Fix Released
|
High
|
Stéphane Graber | ||
Yakkety |
Fix Released
|
High
|
Stéphane Graber | ||
Zesty |
Fix Released
|
High
|
Christian Brauner |
Bug Description
# SRU
## Rationale
LXC 2.0.6 introduced a writability test for /var/lib/lxc which breaks the corner case of partly-writable systems like the Ubuntu phone.
This upload fixes this by changing the test to a simple readability one.
## Test case
1) Attempt to run lxc-start with /var/lib/lxc on a read-only filesystem but /var/lib/
2) Confirm that the container now starts.
## Regression potential
This upload only changes the check from read/write to read so the only consequence of this should be more cases now being allowed. In the case where a writable /var/lib/lxc is in fact absolutely required for the requested operation, the operation will still fail, just a bit later and with a slightly less clear error message (as was the case pre-2.0.6).
# Original report
As in topic. Since the 20161217 rootfs, after upgrade of lxc from 2.0.5-0ubuntu1~
The syslog only states this:
Jan 3 10:50:30 ubuntu-phablet systemd[1]: Starting LXC Android Config and Container Initialization...
Jan 3 10:50:30 ubuntu-phablet kernel: [ 5.790810] (3)[1:systemd]
Jan 3 10:50:30 ubuntu-phablet systemd[1]: Starting Light Display Manager...
Jan 3 10:50:30 ubuntu-phablet systemd-udevd[672]: Could not generate persistent MAC address for ifb0: No such file or directory
Jan 3 10:50:30 ubuntu-phablet systemd-udevd[684]: Could not generate persistent MAC address for ifb1: No such file or directory
Jan 3 10:50:30 ubuntu-phablet lxc-start[1220]: You lack access to /var/lib/lxc
Jan 3 10:50:30 ubuntu-phablet systemd[1]: lxc-android-
Jan 3 10:50:30 ubuntu-phablet systemd[1]: Failed to start LXC Android Config and Container Initialization.
Jan 3 10:50:30 ubuntu-phablet systemd[1]: Dependency failed for force-mtp.service.
Jan 3 10:50:30 ubuntu-phablet systemd[1]: force-mtp.service: Job force-mtp.
Jan 3 10:50:30 ubuntu-phablet systemd[1]: lxc-android-
Jan 3 10:50:30 ubuntu-phablet systemd[1]: lxc-android-
This makes all of our frieza and cooler devices useless for testing purposes.
Changed in lxc (Ubuntu): | |
importance: | Undecided → High |
Changed in canonical-devices-system-image: | |
importance: | Undecided → Critical |
milestone: | none → x1 |
status: | New → Confirmed |
Changed in lxc (Ubuntu): | |
status: | New → In Progress |
Changed in lxc (Ubuntu): | |
status: | In Progress → Fix Committed |
no longer affects: | lxc-android-config (Ubuntu) |
Changed in lxc (Ubuntu Yakkety): | |
status: | New → Triaged |
Changed in lxc (Ubuntu Xenial): | |
status: | New → Triaged |
Changed in lxc (Ubuntu Yakkety): | |
importance: | Undecided → High |
Changed in lxc (Ubuntu Xenial): | |
importance: | Undecided → High |
Changed in lxc (Ubuntu Trusty): | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in lxc (Ubuntu Xenial): | |
assignee: | nobody → Stéphane Graber (stgraber) |
Changed in lxc (Ubuntu Yakkety): | |
assignee: | nobody → Stéphane Graber (stgraber) |
no longer affects: | lxc-android-config (Ubuntu Xenial) |
no longer affects: | lxc-android-config (Ubuntu Yakkety) |
no longer affects: | lxc-android-config (Ubuntu Zesty) |
Changed in lxc (Ubuntu Trusty): | |
assignee: | nobody → Stéphane Graber (stgraber) |
What are the permissions on /var/lib/lxc on such devices?