systemd in degraded state on startup in LXD containers
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lvm2 (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
open-iscsi (Ubuntu) |
Fix Released
|
High
|
Unassigned |
Bug Description
The ubuntu:xenial image shows 'degraded' state in lxd on initial boot.
$ lxc launch xenial x1
$ sleep 10
$ lxc file pull x1/etc/
build_name: server
serial: 20160420-145324
$ lxc exec x1 systemctl is-system-running
degraded
$ lxc exec x1 -- systemctl --state=failed
UNIT LOAD ACTIVE SUB DESCRIPTION
● dev-hugepages.mount loaded failed failed Huge Pages File System
● iscsid.service loaded failed failed iSCSI initiator daemon (iscsid)
● open-iscsi.service loaded failed failed Login to default iSCSI targets
● systemd-
● systemd-
● lvm2-lvmetad.socket loaded failed failed LVM2 metadata daemon socket
● systemd-
LOAD = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB = The low-level unit activation state, values depend on unit type.
7 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: open-iscsi 2.0.873+
ProcVersionSign
Uname: Linux 4.4.0-18-generic x86_64
ApportVersion: 2.20.1-0ubuntu2
Architecture: amd64
Date: Thu Apr 28 17:28:04 2016
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
SourcePackage: open-iscsi
UpgradeStatus: No upgrade log present (probably fresh install)
description: | updated |
Changed in lvm2 (Ubuntu): | |
status: | New → Confirmed |
Changed in open-iscsi (Ubuntu): | |
status: | New → Confirmed |
Changed in systemd (Ubuntu): | |
status: | New → Confirmed |
Changed in systemd (Ubuntu): | |
importance: | Undecided → High |
Changed in open-iscsi (Ubuntu): | |
importance: | Undecided → High |
Changed in lxd (Ubuntu): | |
importance: | Undecided → High |
Changed in lvm2 (Ubuntu): | |
importance: | Undecided → High |
description: | updated |
description: | updated |
summary: |
- fails in lxd container + systemd in degraded state on startup in LXD containers |
Changed in lvm2 (Ubuntu): | |
status: | In Progress → Fix Committed |
Changed in systemd (Ubuntu): | |
status: | Confirmed → In Progress |
status: | In Progress → Fix Committed |
milestone: | none → ubuntu-17.05 |
assignee: | nobody → Dimitri John Ledkov (xnox) |
no longer affects: | lxd (Ubuntu) |
no longer affects: | snapd (Ubuntu) |
iscsid.service: Failed to read PID from file /run/iscsid.pid: Invalid argument
When runnig iscsid -f -d7, we see the issue:
root@x1:~# iscsid -f -d 7
iscsid: sysfs_init: sysfs_path='/sys'
iscsid: InitiatorName= iqn.1993- 08.org. debian: 01:32a765bb043 iqn.1993- 08.org. debian: 01:32a765bb043
iscsid: InitiatorName=
iscsid: InitiatorAlias=x1
iscsid: Max file limits 65536 65536
iscsid: Could not increase process priority: Operation not permitted
iscsid: Could not set oom score to -16: Permission denied
iscsid: Could not set oom score to -17: Permission denied
iscsid: failed to mlockall, exiting...
It doesn't handle non-root usernamespace; expects to be able to write to oom_adjst. similar to tgtd.