Your message dated Sat, 22 Dec 2018 15:20:35 +0000
with message-id <[email protected]>
and subject line Bug#903288: fixed in systemd 240-1
has caused the Debian Bug report #903288,
regarding systemd-container: container does not reboot when it is started by 
machinectl or systemctl
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
903288: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=903288
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: systemd-container
Version: 239-5
Severity: normal


A systemd-nspawn container does not reboot if it is started by
machinectl or systemctl on the host Linux. The key error messages are

Jul 08 21:17:17 unstable systemd[1]: Starting Container container-unstable...
Jul 08 21:17:17 unstable systemd-nspawn[943]: Failed to register
machine: Machine 'container-unstable' already exists
Jul 08 21:17:17 unstable systemd[1]:
[email protected]: Main process exited,
code=exited, status=1/FAILURE
Jul 08 21:17:17 unstable systemd[1]:
[email protected]: Failed with result
'exit-code'.
Jul 08 21:17:17 unstable systemd[1]: Failed to start Container
container-unstable.
Jul 08 21:17:17 unstable systemd[1]:
[email protected]: Consumed 31ms CPU time,
received 0B IP traffic, sent 0B IP traffic

If I start it as
systemd-nspawn -b -M container-unstable --network-ipvlan=wls3
then "systemctl reboot" inside the container works as expected.

So, I believe that this issue is different from the archived one
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=900956


The below is transcript to reproduce the above:


root@unstable:/var/tmp# machinectl start container-unstable
root@unstable:/var/tmp# machinectl list
MACHINE            CLASS     SERVICE        OS VERSION ADDRESSES
container-desktop  container systemd-nspawn -  -       192.168.1.131
container-unstable container systemd-nspawn -  -       192.168.1.130

2 machines listed.
root@unstable:/var/tmp# ssh -l root 192.168.1.130
[email protected]'s password:
Linux container-unstable 4.17.0-1-amd64 #1 SMP Debian 4.17.3-1
(2018-07-02) x86_64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sun Jul  8 21:13:16 2018 from 192.168.1.129
root@container-unstable:~# systemctl reboot
Connection to 192.168.1.130 closed by remote host.
Connection to 192.168.1.130 closed.
root@unstable:/var/tmp# machinectl list
MACHINE           CLASS     SERVICE        OS VERSION ADDRESSES
container-desktop container systemd-nspawn -  -       192.168.1.131

1 machines listed.
root@unstable:/var/tmp# journalctl -n 20 -u
systemd-nspawn@container-unstable --no-pager
-- Logs begin at Sun 2018-07-08 21:06:44 JST, end at Sun 2018-07-08
21:17:17 JST. --
Jul 08 21:17:15 unstable systemd-nspawn[867]: [FAILED] Failed unmounting /tmp.
Jul 08 21:17:15 unstable systemd-nspawn[867]: [  OK  ] Unmounted
/run/systemd/nspawn/incoming.
Jul 08 21:17:15 unstable systemd-nspawn[867]: [  OK  ] Reached target
Unmount All Filesystems.
Jul 08 21:17:15 unstable systemd-nspawn[867]: [  OK  ] Stopped target
Local File Systems (Pre).
Jul 08 21:17:15 unstable systemd-nspawn[867]: [  OK  ] Stopped Remount
Root and Kernel File Systems.
Jul 08 21:17:15 unstable systemd-nspawn[867]: [  OK  ] Stopped target Swap.
Jul 08 21:17:15 unstable systemd-nspawn[867]: [  OK  ] Reached target Shutdown.
Jul 08 21:17:15 unstable systemd-nspawn[867]: [  OK  ] Reached target
Final Step.
Jul 08 21:17:15 unstable systemd-nspawn[867]:          Starting Reboot...
Jul 08 21:17:17 unstable systemd[1]:
[email protected]: Consumed 1.083s CPU time,
received 13.1K IP traffic, sent 8.5K IP traffic
Jul 08 21:17:17 unstable systemd[1]:
[email protected]: Service RestartSec=100ms
expired, scheduling restart.
Jul 08 21:17:17 unstable systemd[1]:
[email protected]: Scheduled restart job,
restart counter is at 1.
Jul 08 21:17:17 unstable systemd[1]: Stopped Container container-unstable.
Jul 08 21:17:17 unstable systemd[1]:
[email protected]: Consumed 1.083s CPU time,
received 13.1K IP traffic, sent 8.5K IP traffic
Jul 08 21:17:17 unstable systemd[1]: Starting Container container-unstable...
Jul 08 21:17:17 unstable systemd-nspawn[943]: Failed to register
machine: Machine 'container-unstable' already exists
Jul 08 21:17:17 unstable systemd[1]:
[email protected]: Main process exited,
code=exited, status=1/FAILURE
Jul 08 21:17:17 unstable systemd[1]:
[email protected]: Failed with result
'exit-code'.
Jul 08 21:17:17 unstable systemd[1]: Failed to start Container
container-unstable.
Jul 08 21:17:17 unstable systemd[1]:
[email protected]: Consumed 31ms CPU time,
received 0B IP traffic, sent 0B IP traffic
root@unstable:/var/tmp# exit
exit

Script done on 2018-07-08 21:18:58+09:00



-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.17.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages systemd-container depends on:
ii  dbus             1.12.8-3
ii  libacl1          2.2.52-3+b1
ii  libbz2-1.0       1.0.6-8.1
ii  libc6            2.27-3
ii  libcurl3-gnutls  7.60.0-2
ii  libgcrypt20      1.8.3-1
ii  liblzma5         5.2.2-1.3
ii  libseccomp2      2.3.3-3
ii  libselinux1      2.8-1+b1
ii  systemd          239-5
ii  zlib1g           1:1.2.11.dfsg-1

Versions of packages systemd-container recommends:
ii  btrfs-progs        4.16.1-2
ii  libnss-mymachines  239-5

systemd-container suggests no packages.

-- no debconf information

--- End Message ---
--- Begin Message ---
Source: systemd
Source-Version: 240-1

We believe that the bug you reported is fixed in the latest version of
systemd, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Michael Biebl <[email protected]> (supplier of updated systemd package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Sat, 22 Dec 2018 16:01:43 +0100
Source: systemd
Binary: systemd systemd-sysv systemd-container systemd-journal-remote 
systemd-coredump systemd-tests libpam-systemd libnss-myhostname 
libnss-mymachines libnss-resolve libnss-systemd libsystemd0 libsystemd-dev udev 
libudev1 libudev-dev udev-udeb libudev1-udeb
Architecture: source
Version: 240-1
Distribution: unstable
Urgency: medium
Maintainer: Debian systemd Maintainers 
<[email protected]>
Changed-By: Michael Biebl <[email protected]>
Description:
 libnss-myhostname - nss module providing fallback resolution for the current 
hostname
 libnss-mymachines - nss module to resolve hostnames for local container 
instances
 libnss-resolve - nss module to resolve names via systemd-resolved
 libnss-systemd - nss module providing dynamic user and group name resolution
 libpam-systemd - system and service manager - PAM module
 libsystemd-dev - systemd utility library - development files
 libsystemd0 - systemd utility library
 libudev-dev - libudev development files
 libudev1   - libudev shared library
 libudev1-udeb - libudev shared library (udeb)
 systemd    - system and service manager
 systemd-container - systemd container/nspawn tools
 systemd-coredump - tools for storing and retrieving coredumps
 systemd-journal-remote - tools for sending and receiving remote journal logs
 systemd-sysv - system and service manager - SysV links
 systemd-tests - tests for systemd
 udev       - /dev/ and hotplug management daemon
 udev-udeb  - /dev/ and hotplug management daemon (udeb)
Closes: 903011 903288 916516 916678
Changes:
 systemd (240-1) unstable; urgency=medium
 .
   [ Michael Biebl ]
   * New upstream version 240
     - core: Skip cgroup_subtree_mask_valid update if UNIT_STUB
       (Closes: #903011)
     - machined: Rework referencing of machine scopes from machined
       (Closes: #903288)
     - timesync: Fix serialization of IP address
       (Closes: #916516)
     - core: Don't track jobs-finishing-during-reload explicitly
       (Closes: #916678)
   * Rebase patches
   * Install new systemd-id128 binary
   * Update symbols file for libsystemd0
   * Update nss build options
 .
   [ Martin Pitt ]
   * tests: Disable some flaky upstream tests.
     See https://github.com/systemd/systemd/issues/11195
   * tests: Disable flaky TEST-17-UDEV-WANTS upstream test.
     See https://github.com/systemd/systemd/issues/11195
Checksums-Sha1:
 471ce7bdf8963c1281e087da050668427bd4c7ed 4898 systemd_240-1.dsc
 09014c22f8fd6b98b7fd6eca40e44194b0a49931 7582001 systemd_240.orig.tar.gz
 202ca97c0edea65c4f44618d8b98fe5445bffe42 138136 systemd_240-1.debian.tar.xz
 46de7042ba484868201dfe6810e3ee59706aea26 9055 systemd_240-1_source.buildinfo
Checksums-Sha256:
 986a9046a922d03896a6e35285d55ac1016720861236adcc1f2cb161957949f7 4898 
systemd_240-1.dsc
 8f15aec1ac926e13a21a04d0ca3fe371f7004951448142a6f8952075c5b5f0b5 7582001 
systemd_240.orig.tar.gz
 73087644e690ed67e1a2cc2b2ce1518f9346320421225812ecbc0b4ce439e5f3 138136 
systemd_240-1.debian.tar.xz
 e226b6d2399b08b67b7679508f4dfafd14cbde88c6d1f89fc5bd07622a2b5533 9055 
systemd_240-1_source.buildinfo
Files:
 999cf60bcd9ef40a7caf25f87472844d 4898 admin optional systemd_240-1.dsc
 0e4f91b513d4b04e2c10a5173e5a87b2 7582001 admin optional systemd_240.orig.tar.gz
 a7141240a29936ee89f79d7408bd9ece 138136 admin optional 
systemd_240-1.debian.tar.xz
 ce1ecde6e1a4b99d950bb19a49d7cd96 9055 admin optional 
systemd_240-1_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEECbOsLssWnJBDRcxUauHfDWCPItwFAlweUgwACgkQauHfDWCP
ItwU7hAAl4I0HvrN70TaxNu+OoD4MNIriq8xwy12LQ/bsGcuToh9cJfNNcOPCcBU
rsORBcmqPkxXOkkCBPT/fhosoQEjYKtEVzXAkhj7iOlDIIkNJMXGdqGElT/p7ngn
7mKmVmZvyBbM6c0/FO9Z3tGHhYrM2hkpSpRZetnFdRIEmRzxQMerV/5ZGXQKooXb
dEgy8+YuD81ZHENCd/ve86ZifsmgNElKzg/teTwdYDCqcB2tSsjOlIWP2hwSRcpn
rjABodLu6iS9zKWNy9RDAna8Nf3aicTXqByvy4gFsUQ32jrVxasZC7INoVTC2K73
uXRcDeH6fQ9xTwmIUHDYUpeJhujnX3NQajldWiGrwDCjulWpFLTqIH9/FReJst6B
aNIUCfZy0fyaApWyEzpAoxSVsFwxgPoy3y8xGF15nYzkDksHtKaOB3n7wVb7cry0
ioY5NQI1JPWnwXjPwzBb59s8CnHBNxdFSKoPZ1bG7cgz/rZWkem9MwU4IBr4QJ4o
MBPjUZKeaYHnoI3cr89EG6Sg3DqLIfxekBIcji072m+LmSgLTuKxJYCb8DpjKkF2
8LKU5eEA4OJquFoSHMZ13ydEmwdZ5/sOUnopQRGym2eKxJ1nWlT6yex806pMlwyo
1iHApP+79Tu1rDd6Cj5BCgQIBjC8Le6xSd3wu7yPfZnu+WCkyLg=
=DQBb
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to