Activity log for bug #1732703

Date Who What changed Old value New value Message
2017-11-16 14:24:27 Victor Tapia bug added bug
2017-11-16 14:48:25 Andres Rodriguez maas: status New Incomplete
2017-11-16 14:51:13 Andres Rodriguez nominated for series maas/1.9
2017-11-16 14:51:13 Andres Rodriguez bug task added maas/1.9
2017-11-16 14:51:20 Andres Rodriguez maas: status Incomplete Won't Fix
2017-11-16 14:51:24 Andres Rodriguez maas/1.9: status New Incomplete
2017-11-22 17:55:30 Andres Rodriguez maas/1.9: assignee Andres Rodriguez (andreserl)
2017-11-22 17:55:34 Andres Rodriguez maas/1.9: milestone 1.9.6
2017-11-22 17:55:37 Andres Rodriguez maas/1.9: importance Undecided High
2017-11-22 17:55:40 Andres Rodriguez maas/1.9: status Incomplete Triaged
2017-12-06 14:04:10 Blake Rouse maas/1.9: importance High Critical
2017-12-07 17:35:02 Andres Rodriguez description Trusty uses upstart by default, and installing snapd (e.g. for livepatch purposes), pulls systemd too. In this setup, upstart is _not_ replaced by systemd, but MAAS "detects" systemd as init because of the existence of /run/systemd/system: @src/provisioningserver/utils/__init__.py:505 SYSTEMD_RUN_PATH = '/run/systemd/system' def get_init_system(): """Returns 'upstart' or 'systemd'.""" if os.path.exists(SYSTEMD_RUN_PATH): return 'systemd' else: return 'upstart' One possible solution would be to check if /sbin/init is a symlink pointing to /lib/systemd/systemd: def get_init_system(): """Returns 'upstart' or 'systemd'.""" initpath = os.readlink("/sbin/init") if (initpath == "/lib/systemd/systemd"): return 'systemd' else: return 'upstart' Other affected parts of the code are the postinst files for maas-proxy and maas-dhcp (debian/maas-proxy.postinst debian/maas-dhcp.postinst), throwing an error if maas is installed after systemd in Trusty [impact] Since Trusty uses upstart by default, MAAS manages its services with upstart. However, when a user installs systemd (even if it is not used as the init system), MAAS detects systemd installed and tries to manage its services via systemd. This obviously creates issues and prevents MAAS from working. [Test Case] 1. Install & configure MAAS 2. Add machines 3. install systemd 4. MAAS will fail to manage machines [Regression potential] Minimal. This just ensures that upstart is detected correctly even if systemd is installed (but not used). [Original bug report] Trusty uses upstart by default, and installing snapd (e.g. for livepatch purposes), pulls systemd too. In this setup, upstart is _not_ replaced by systemd, but MAAS "detects" systemd as init because of the existence of /run/systemd/system: @src/provisioningserver/utils/__init__.py:505 SYSTEMD_RUN_PATH = '/run/systemd/system' def get_init_system():     """Returns 'upstart' or 'systemd'."""     if os.path.exists(SYSTEMD_RUN_PATH):         return 'systemd'     else:         return 'upstart' One possible solution would be to check if /sbin/init is a symlink pointing to /lib/systemd/systemd: def get_init_system():     """Returns 'upstart' or 'systemd'."""     initpath = os.readlink("/sbin/init")     if (initpath == "/lib/systemd/systemd"):         return 'systemd'     else:     return 'upstart' Other affected parts of the code are the postinst files for maas-proxy and maas-dhcp (debian/maas-proxy.postinst debian/maas-dhcp.postinst), throwing an error if maas is installed after systemd in Trusty
2017-12-07 17:35:22 Andres Rodriguez bug added subscriber Ubuntu Stable Release Updates Team
2017-12-07 17:35:24 Andres Rodriguez maas/1.9: assignee Andres Rodriguez (andreserl)
2017-12-07 17:35:31 Andres Rodriguez maas/1.9: assignee Andres Rodriguez (andreserl)
2017-12-07 17:35:43 Andres Rodriguez bug task added maas (Ubuntu)
2017-12-07 17:35:49 Andres Rodriguez maas (Ubuntu): importance Undecided Critical
2017-12-07 17:35:58 Andres Rodriguez maas/1.9: status Triaged In Progress
2017-12-07 17:37:49 Launchpad Janitor merge proposal linked https://code.launchpad.net/~andreserl/maas/+git/maas/+merge/334930
2017-12-13 13:36:07 Robie Basak tags sts regression-update sts
2017-12-13 14:39:35 Robie Basak bug task added snapd (Ubuntu)
2017-12-13 16:51:20 Robie Basak bug task added systemd (Ubuntu)
2017-12-13 16:51:28 Robie Basak nominated for series Ubuntu Trusty
2017-12-13 16:51:28 Robie Basak bug task added systemd (Ubuntu Trusty)
2017-12-13 16:51:28 Robie Basak bug task added maas (Ubuntu Trusty)
2017-12-13 16:51:28 Robie Basak bug task added snapd (Ubuntu Trusty)
2017-12-13 16:51:38 Robie Basak systemd (Ubuntu Trusty): importance Undecided Critical
2017-12-13 16:53:24 Steve Langasek snapd (Ubuntu): status New Won't Fix
2017-12-13 18:48:58 Robie Basak bug added subscriber Robie Basak
2017-12-13 23:35:04 David Britton maas (Ubuntu): status New Won't Fix
2017-12-13 23:35:36 David Britton maas (Ubuntu Trusty): status New Triaged
2017-12-13 23:35:55 David Britton maas (Ubuntu Trusty): importance Undecided Critical
2017-12-14 00:28:43 David Britton bug added subscriber David Britton
2017-12-14 10:32:32 Dominique Poulain bug added subscriber Dominique Poulain
2017-12-14 15:34:58 Robie Basak snapd (Ubuntu Trusty): status New Invalid
2017-12-14 18:41:12 Andres Rodriguez maas/1.9: status In Progress New
2017-12-14 18:41:15 Andres Rodriguez maas/1.9: assignee Andres Rodriguez (andreserl)
2017-12-14 18:41:23 Andres Rodriguez maas/1.9: status New In Progress
2017-12-14 19:06:32 Brian Murray maas (Ubuntu Trusty): status Triaged Fix Committed
2017-12-14 19:06:41 Brian Murray bug added subscriber SRU Verification
2017-12-14 19:06:50 Brian Murray tags regression-update sts regression-update sts verification-needed verification-needed-trusty
2018-01-16 12:34:40 Victor Tapia tags regression-update sts verification-needed verification-needed-trusty regression-update sts verification-done verification-done-trusty
2018-01-16 12:38:25 Ivan Hitos bug added subscriber Ivan Hitos
2018-01-17 02:25:18 Launchpad Janitor maas (Ubuntu Trusty): status Fix Committed Fix Released
2018-01-17 02:25:28 Chris Halse Rogers removed subscriber Ubuntu Stable Release Updates Team
2018-04-08 22:10:55 Launchpad Janitor systemd (Ubuntu): status New Confirmed
2018-04-08 22:10:55 Launchpad Janitor systemd (Ubuntu Trusty): status New Confirmed
2019-03-25 12:06:33 Dan Streetman systemd (Ubuntu Trusty): status Confirmed Invalid
2019-03-25 12:06:36 Dan Streetman systemd (Ubuntu): status Confirmed Invalid