[Bug 1103881] Re: cloud-final is never executed if upstart is upgraded during initialization of the image
Kapil, your upgrade list includes 'glibc' which is a library dependency of upstart. Because of that, a restart of upstart is necessary. (/var/lib/dpkg/info/libc6:amd64.postinst invokes 'telinit u'). -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to cloud-init in Ubuntu. https://bugs.launchpad.net/bugs/1103881 Title: cloud-final is never executed if upstart is upgraded during initialization of the image To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1103881/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1103881] Re: cloud-final is never executed if upstart is upgraded during initialization of the image
i see the issue even without an upstart upgrade.. my upgrade list is. note cloud-init is part of the list. apparmor apport apt apt-transport-https apt-utils base-files cloud-init curl gcc-4.7-base gir1.2-gudev-1.0 grub-common grub-legacy-ec2 grub-pc grub-pc-bin grub2-common kmod language-selector-common libapt-inst1.5 libapt-pkg4.12 libc-bin libc6 libcurl3 libcurl3-gnutls libgcc1 libglib2.0-0 libgudev-1.0-0 libisccc90 libkmod2 libpci3 libpython-stdlib libpython2.7 libpython2.7-minimal libpython2.7-stdlib libpython3-stdlib libpython3.3-minimal libpython3.3-stdlib libstdc++6 libudev1 login module-init-tools multiarch-support ntpdate passwd pciutils perl perl-base perl-modules python python-gi python-minimal python-pycurl python-twisted-bin python-twisted-core python2.7 python2.7-minimal python3 python3-apport python3-distupgrade python3-gi python3-minimal python3-problem-report python3-update-manager python3.3 python3.3-minimal rsyslog tar ubuntu-minimal ubuntu-release-upgrader-core ubuntu-standard udev update-manager-core update-notifier-common -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to cloud-init in Ubuntu. https://bugs.launchpad.net/bugs/1103881 Title: cloud-final is never executed if upstart is upgraded during initialization of the image To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1103881/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1103881] Re: cloud-final is never executed if upstart is upgraded during initialization of the image
I've added a simple reproduce for bug 1124384 under lxc . It seems likely to me at least that this bug and that one are related. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to cloud-init in Ubuntu. https://bugs.launchpad.net/bugs/1103881 Title: cloud-final is never executed if upstart is upgraded during initialization of the image To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1103881/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1103881] Re: cloud-final is never executed if upstart is upgraded during initialization of the image
** Description changed: During a cloud image initialization, the service cloud-final is never executed if the cloud-config script contains an "upgrade" directive and upstart is part of the upgraded packages: TESTCASE: 1. Download a cloud image from http://cloud-images.ubuntu.com/raring/ with an outdated version of upstart (e.g 2013.01.23 - I saved this image, if you need it and it is not available from the mirror just ask) 2. Prepare a cloud-config script with the directives (example cloud-config script used by lp:auto-package-testing attached): apt_update: true apt_upgrade: true 3. Initialize the cloud image with this cloud-config script EXPECTED RESULT: Installation finish ACTUAL RESULT The service cloud-final is never executed and the flag boot-finished is not present. cloud-init logs of a failed installation attached. Related bugs: - * bug 1080841: should reload configuration if an upstart job is added - * bug 1124384: reload-configuration can confuse upstart + * bug 1080841: should reload configuration if an upstart job is added + * bug 1124384: reload-configuration can confuse upstart + * bug 1163669: cloud-init fails to install juju agent after bootstrap ProblemType: Bug DistroRelease: Ubuntu 13.04 Package: cloud-init (not installed) ProcVersionSignature: Ubuntu 3.8.0-1.5-generic 3.8.0-rc4 Uname: Linux 3.8.0-1-generic x86_64 ApportVersion: 2.8-0ubuntu2 Architecture: amd64 Date: Thu Jan 24 09:08:19 2013 MarkForUpload: True ProcEnviron: TERM=xterm PATH=(custom, no user) XDG_RUNTIME_DIR= LANG=en_US.UTF-8 SHELL=/bin/bash SourcePackage: cloud-init UpgradeStatus: Upgraded to raring on 2012-01-31 (358 days ago) -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to cloud-init in Ubuntu. https://bugs.launchpad.net/bugs/1103881 Title: cloud-final is never executed if upstart is upgraded during initialization of the image To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1103881/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1103881] Re: cloud-final is never executed if upstart is upgraded during initialization of the image
To reproduce outside of "cloud", you can basically follow the blog post that I've got at [1]. Using this user-data to make sure you can login: #cloud-config-archive - content: | #!/bin/sh echo " $(date -R): user-script run ===" | tee /run/user-script.log - filename: myjob.conf content: | #upstart-job description "a test upstart job" start on stopped rc RUNLEVEL=[2345] console output task script echo " $(date -R): upstart job run ===" | tee /run/upstart-job.log end script - content: | #cloud-config password: passw0rd chpasswd: { expire: False } ssh_pwauth: True Then: sudo apt-get install kvm cloud-utils genisoimage wget http://cloud-images.ubuntu.com/raring/current/raring-server-cloudimg-amd64-disk1.img -O disk.img.dist qemu-img convert -O qcow2 disk.img.dist disk.img.orig qemu-img create -f qcow2 -b disk.img.orig disk.img cloud-localds my-seed.img my-user-data kvm -net nic -net user,hostfwd=tcp::-:22 \ -hda disk.img -hdb my-seed.img -m 512 Due to the fact that the bug blocks gettys from running, you'll have to ssh in. Thats why i've done the host forwarding there. You'll be able to log in with 'ubuntu' and 'passw0rd'. Remember that console output will be going to the serial device. -- [1] http://ubuntu-smoser.blogspot.com/2013/02/using-ubuntu-cloud-images-without-cloud.html -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to cloud-init in Ubuntu. https://bugs.launchpad.net/bugs/1103881 Title: cloud-final is never executed if upstart is upgraded during initialization of the image To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1103881/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1103881] Re: cloud-final is never executed if upstart is upgraded during initialization of the image
** Description changed: During a cloud image initialization, the service cloud-final is never executed if the cloud-config script contains an "upgrade" directive and upstart is part of the upgraded packages: TESTCASE: 1. Download a cloud image from http://cloud-images.ubuntu.com/raring/ with an outdated version of upstart (e.g 2013.01.23 - I saved this image, if you need it and it is not available from the mirror just ask) 2. Prepare a cloud-config script with the directives (example cloud-config script used by lp:auto-package-testing attached): apt_update: true apt_upgrade: true 3. Initialize the cloud image with this cloud-config script EXPECTED RESULT: Installation finish ACTUAL RESULT The service cloud-final is never executed and the flag boot-finished is not present. cloud-init logs of a failed installation attached. + Related bugs: + * bug 1080841: should reload configuration if an upstart job is added + * bug 1124384: reload-configuration can confuse upstart + ProblemType: Bug DistroRelease: Ubuntu 13.04 Package: cloud-init (not installed) ProcVersionSignature: Ubuntu 3.8.0-1.5-generic 3.8.0-rc4 Uname: Linux 3.8.0-1-generic x86_64 ApportVersion: 2.8-0ubuntu2 Architecture: amd64 Date: Thu Jan 24 09:08:19 2013 MarkForUpload: True ProcEnviron: - TERM=xterm - PATH=(custom, no user) - XDG_RUNTIME_DIR= - LANG=en_US.UTF-8 - SHELL=/bin/bash + TERM=xterm + PATH=(custom, no user) + XDG_RUNTIME_DIR= + LANG=en_US.UTF-8 + SHELL=/bin/bash SourcePackage: cloud-init UpgradeStatus: Upgraded to raring on 2012-01-31 (358 days ago) -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to cloud-init in Ubuntu. https://bugs.launchpad.net/bugs/1103881 Title: cloud-final is never executed if upstart is upgraded during initialization of the image To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1103881/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1103881] Re: cloud-final is never executed if upstart is upgraded during initialization of the image
** Also affects: upstart (Ubuntu) Importance: Undecided Status: New ** Changed in: upstart (Ubuntu) Status: New => Confirmed ** Changed in: upstart (Ubuntu) Importance: Undecided => High -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to cloud-init in Ubuntu. https://bugs.launchpad.net/bugs/1103881 Title: cloud-final is never executed if upstart is upgraded during initialization of the image To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1103881/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1103881] Re: cloud-final is never executed if upstart is upgraded during initialization of the image
** Changed in: cloud-init (Ubuntu) Status: New => Confirmed ** Changed in: cloud-init (Ubuntu) Importance: Undecided => Medium -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to cloud-init in Ubuntu. https://bugs.launchpad.net/bugs/1103881 Title: cloud-final is never executed if upstart is upgraded during initialization of the image To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1103881/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1103881] Re: cloud-final is never executed if upstart is upgraded during initialization of the image
** Attachment added: "LP1103881.syslog" https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1103881/+attachment/3498351/+files/LP1103881.syslog -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to cloud-init in Ubuntu. https://bugs.launchpad.net/bugs/1103881 Title: cloud-final is never executed if upstart is upgraded during initialization of the image To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1103881/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1103881] Re: cloud-final is never executed if upstart is upgraded during initialization of the image
** Attachment added: "LP1103881.dmesg" https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1103881/+attachment/3498350/+files/LP1103881.dmesg -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to cloud-init in Ubuntu. https://bugs.launchpad.net/bugs/1103881 Title: cloud-final is never executed if upstart is upgraded during initialization of the image To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1103881/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1103881] Re: cloud-final is never executed if upstart is upgraded during initialization of the image
Please can you boot such a system with '--debug' and capture syslog / dmesg / console so we can try and work out what is happening here. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to cloud-init in Ubuntu. https://bugs.launchpad.net/bugs/1103881 Title: cloud-final is never executed if upstart is upgraded during initialization of the image To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1103881/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1103881] Re: cloud-final is never executed if upstart is upgraded during initialization of the image
cloud-config script used by lp:auto-package-testing ** Attachment added: "cloud-config.txt" https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1103881/+attachment/3497984/+files/cloud-config.txt -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to cloud-init in Ubuntu. https://bugs.launchpad.net/bugs/1103881 Title: cloud-final is never executed if upstart is upgraded during initialization of the image To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1103881/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs