Ubuntu 18.04 systemctl is-system-running always shows degraded in LXD containers

Bug #1811628 reported by Bryan Quigley
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
systemd (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Issue in Ubuntu 18.04 LTS:
lxc launch ubuntu-daily:18.04
lxc shell <containername>
# systemctl is-system-running
degraded

# systemctl --failed
  UNIT LOAD ACTIVE SUB DESCRIPTION
● sys-kernel-config.mount loaded failed failed Kernel Configuration File System
● systemd-modules-load.service loaded failed failed Load Kernel Modules

Fixed in Ubuntu 19.04:
lxc launch ubuntu-daily:19.04
lxc shell <containername>
systemctl is-system-running
running

It appears to be fixed by adding: ConditionVirtualization=!container to both. Can this be backported to 18.04 or are we stuck with special casing 18.04 vs future versions?

As far as I know this is the easiest way to see if a container finished starting.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in systemd (Ubuntu):
status: New → Confirmed
Revision history for this message
Dan Streetman (ddstreet) wrote :

please reopen if this is still an issue

Changed in systemd (Ubuntu):
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.