[Bug 1575572] Re: apache2 fails to start if installed via cloud config (on Xenial)

2016-12-15 Thread Bug Watch Updater
** Changed in: systemd (Debian) Status: Confirmed => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1575572 Title: apache2 fails to start if installed via cloud config (on

[Bug 1575572] Re: apache2 fails to start if installed via cloud config (on Xenial)

2016-07-14 Thread Martin Pitt
** No longer affects: systemd (Ubuntu) ** No longer affects: systemd (Ubuntu Xenial) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1575572 Title: apache2 fails to start if installed via cloud

[Bug 1575572] Re: apache2 fails to start if installed via cloud config (on Xenial)

2016-06-30 Thread Bug Watch Updater
** Changed in: init-system-helpers (Debian) Status: Unknown => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1575572 Title: apache2 fails to start if installed via cloud config

[Bug 1575572] Re: apache2 fails to start if installed via cloud config (on Xenial)

2016-06-28 Thread Martin Pitt
** Bug watch added: Debian Bug tracker #497665 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=497665 ** Also affects: init-system-helpers (Debian) via http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=497665 Importance: Unknown Status: Unknown -- You received this bug

[Bug 1575572] Re: apache2 fails to start if installed via cloud config (on Xenial)

2016-05-31 Thread Martin Pitt
Thanks Dominique for the careful testing! ** Tags removed: verification-needed ** Tags added: verification-done -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1575572 Title: apache2 fails to start

[Bug 1575572] Re: apache2 fails to start if installed via cloud config (on Xenial)

2016-05-31 Thread Launchpad Bug Tracker
This bug was fixed in the package init-system-helpers - 1.29ubuntu2 --- init-system-helpers (1.29ubuntu2) xenial; urgency=medium * invoke-rc.d: Under systemd, "runlevel" only switches to 3 or 5 when multi-user.target/graphical.target have been reached, not before. Adjust

[Bug 1575572] Re: apache2 fails to start if installed via cloud config (on Xenial)

2016-05-31 Thread Dominique Poulain
The fix seems to work for me. Here's what I did to check: I used a VM (xenial_test) booted from a pristine copy of the image at in a local OpenStack environment to verify the fix. I modified the VM to enable

[Bug 1575572] Re: apache2 fails to start if installed via cloud config (on Xenial)

2016-05-12 Thread Adam Conrad
Hello Dan, or anyone else affected, Accepted init-system-helpers into xenial-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/init- system-helpers/1.29ubuntu2 in a few hours, and then in the -proposed repository. Please help us by testing this new

[Bug 1575572] Re: apache2 fails to start if installed via cloud config (on Xenial)

2016-05-09 Thread Robie Basak
Bug 1577596 is diagnosed as having a similar "unknown" runlevel invoke- rc.d problem. Is that a dupe of this bug? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1575572 Title: apache2 fails to start

[Bug 1575572] Re: apache2 fails to start if installed via cloud config (on Xenial)

2016-05-06 Thread Martin Pitt
** Changed in: init-system-helpers (Ubuntu Xenial) Status: Triaged => In Progress ** Description changed: + SRU TEST CASE: + Using the following cloud config, apache2 will fail to start on installation on Xenial: #cloud-config packages: - apache2 See for example: $

[Bug 1575572] Re: apache2 fails to start if installed via cloud config (on Xenial)

2016-05-06 Thread Martin Pitt
** Changed in: systemd (Ubuntu) Assignee: (unassigned) => Martin Pitt (pitti) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1575572 Title: apache2 fails to start if installed via cloud config

[Bug 1575572] Re: apache2 fails to start if installed via cloud config (on Xenial)

2016-05-06 Thread Launchpad Bug Tracker
This bug was fixed in the package init-system-helpers - 1.32ubuntu1 --- init-system-helpers (1.32ubuntu1) yakkety; urgency=medium * Merge from Debian unstable. Remaining changes: - init: Drop sysvinit-core as alternative pre-depends, and add upstart-sysv instead.

[Bug 1575572] Re: apache2 fails to start if installed via cloud config (on Xenial)

2016-05-05 Thread Martin Pitt
systemd upstream report: https://github.com/systemd/systemd/issues/3177 ** Changed in: systemd (Ubuntu) Status: Won't Fix => Triaged ** Changed in: systemd (Ubuntu) Importance: High => Low -- You received this bug notification because you are a member of Ubuntu Bugs, which is

[Bug 1575572] Re: apache2 fails to start if installed via cloud config (on Xenial)

2016-05-02 Thread Bug Watch Updater
** Changed in: systemd (Debian) Status: Unknown => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1575572 Title: apache2 fails to start if installed via cloud config (on Xenial) To

[Bug 1575572] Re: apache2 fails to start if installed via cloud config (on Xenial)

2016-05-02 Thread Martin Pitt
systemd upstream report: https://github.com/systemd/systemd/issues/3177 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1575572 Title: apache2 fails to start if installed via cloud config (on Xenial)

[Bug 1575572] Re: apache2 fails to start if installed via cloud config (on Xenial)

2016-05-02 Thread Martin Pitt
** Bug watch added: Debian Bug tracker #608456 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=608456 ** Also affects: systemd (Debian) via http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=608456 Importance: Unknown Status: Unknown -- You received this bug notification because

[Bug 1575572] Re: apache2 fails to start if installed via cloud config (on Xenial)

2016-04-29 Thread Martin Pitt
This commit fixes the bogus "runlevel fails" check: http://anonscm.debian.org/cgit/collab-maint/init-system- helpers.git/commit/?id=2c444f0cd . It does modify behaviour during early boot, but I think this is a correct change; nevertheless I would *not* want to SRU this, as this check has been

[Bug 1575572] Re: apache2 fails to start if installed via cloud config (on Xenial)

2016-04-29 Thread Scott Moser
** Description changed: Using the following cloud config, apache2 will fail to start on installation on Xenial: #cloud-config packages: - apache2 See for example: $ gcloud compute instances create xenial-$(date +%y%m%d-%H%M) --image ubuntu-1604-xenial-v20160420c

[Bug 1575572] Re: apache2 fails to start if installed via cloud config (on Xenial)

2016-04-29 Thread Scott Moser
** Description changed: Using the following cloud config, apache2 will fail to start on installation on Xenial: #cloud-config packages: - apache2 See for example: $ gcloud compute instances create xenial-$(date +%y%m%d-%H%M) --image ubuntu-1604-xenial-v20160420c

[Bug 1575572] Re: apache2 fails to start if installed via cloud config (on Xenial)

2016-04-29 Thread Scott Moser
> This behaviour of installing packages or configuring your system while the > system isn't booted yet might also bite you in other cases (it certainly bit > me a number of cases). Maybe we should discuss how to move that after the > boot? I do that in >

[Bug 1575572] Re: apache2 fails to start if installed via cloud config (on Xenial)

2016-04-29 Thread Scott Moser
> This behaviour of installing packages or configuring your system while the > system isn't booted yet might also bite you in other cases (it certainly bit > me a number of cases). Maybe we should discuss how to move that after the > boot? I do that in >

[Bug 1575572] Re: apache2 fails to start if installed via cloud config (on Xenial)

2016-04-29 Thread Scott Moser
Pitti, in reponse to comment 5 above: > > d.) output of runlevel is stored in RL and then it goes looking for an > > SLINK or SSLINK (/etc/rc$RL.d/S??apache2 or /etc/rcS.d/S??apache2). Neither > > of these exist so it exits without starting the service. > To be sure we are talking about the same

[Bug 1575572] Re: apache2 fails to start if installed via cloud config (on Xenial)

2016-04-29 Thread Scott Moser
Pitti, in reponse to comment 5 above: > > d.) output of runlevel is stored in RL and then it goes looking for an > > SLINK or SSLINK (/etc/rc$RL.d/S??apache2 or /etc/rcS.d/S??apache2). Neither > > of these exist so it exits without starting the service. > To be sure we are talking about the same

[Bug 1575572] Re: apache2 fails to start if installed via cloud config (on Xenial)

2016-04-29 Thread Martin Pitt
** Also affects: cloud-init (Ubuntu Xenial) Importance: Undecided Status: New ** Also affects: systemd (Ubuntu Xenial) Importance: Undecided Status: New ** Also affects: init-system-helpers (Ubuntu Xenial) Importance: Undecided Status: New ** Changed in:

[Bug 1575572] Re: apache2 fails to start if installed via cloud config (on Xenial)

2016-04-29 Thread Martin Pitt
I had a closer look how systemd emulates the old runlevels. systemd- update-utmp-runlevel.service runs after graphical.target, multi- user.target etc. started (After=runlevel1.target runlevel2.target runlevel3.target runlevel4.target runlevel5.target, those are activated in multi-user.target

[Bug 1575572] Re: apache2 fails to start if installed via cloud config (on Xenial)

2016-04-29 Thread Martin Pitt
For the record, even after fixing this, installing packages from current cloud-init will still not be 100% reliable in its current form. The design problem here is that cloud-init runs *in* the boot sequence, i. e. in the transaction where default.target and its dependencies get started. You

[Bug 1575572] Re: apache2 fails to start if installed via cloud config (on Xenial)

2016-04-29 Thread Martin Pitt
I tested the output of "runlevel" and the env under Debian sid with sysvinit-core: - In an rcS script: runlevel says "unknown" (env has RUNLEVEL=S and PREVLEVEL=N) - In an rc[2345] script: runlevel says "N 2" (env has RUNLEVEL=2 and PREVLEVEL=N) With systemd, runlevel says "unknown" until

[Bug 1575572] Re: apache2 fails to start if installed via cloud config (on Xenial)

2016-04-28 Thread Martin Pitt
Indeed this isn't related to native systemd units vs. sysvinit scripts. > honor this historical behavior by making the 'runlevel' command return the target runlevel when called from a systemd unit that's run at boot, even if that target has not yet been reached. OK, I wasn't aware of that. I'll

[Bug 1575572] Re: apache2 fails to start if installed via cloud config (on Xenial)

2016-04-28 Thread Steve Langasek
> The problem seems to be that any package install during systemd boot of > a package that only provides sysvinit scripts will fail. Reading invoke-rc.d, > i'm not really sure why a proper systemd service woudlnt fail also. The RUNLEVELHELPER check is buggy, yes. However, the behavior of

[Bug 1575572] Re: apache2 fails to start if installed via cloud config (on Xenial)

2016-04-27 Thread Scott Moser
Ok, here is what is happening: a.) dpkg (or apt) install of apache2 (or just about any service) starts services by calling to /usr/sbin/invoke-rc.d (like 'invoke-rc.d apache2 start'). b.) invoke-rc.d calls 'runlevel' to get the current runlevel and see if this service should be started. c.)

[Bug 1575572] Re: apache2 fails to start if installed via cloud config (on Xenial)

2016-04-27 Thread Scott Moser
Ok, here is what is happening: a.) dpkg (or apt) install of apache2 (or just about any service) starts services by calling to /usr/sbin/invoke-rc.d (like 'invoke-rc.d apache2 start'). b.) invoke-rc.d calls 'runlevel' to get the current runlevel and see if this service should be started. c.)

[Bug 1575572] Re: apache2 fails to start if installed via cloud config (on Xenial)

2016-04-27 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: cloud-init (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1575572 Title:

[Bug 1575572] Re: apache2 fails to start if installed via cloud config (on Xenial)

2016-04-27 Thread Dominique Poulain
This issue was originally reported by a customer, who investigated it as follows: # "If you run up a 16.04 cloud image using EC2 compatible user-data containing a simple shell script. #!/bin/sh sudo DEBIAN_FRONTEND=noninteractive apt-get -q -y update sudo DEBIAN_FRONTEND=noninteractive