Activity log for bug #1468103

Date Who What changed Old value New value Message
2015-06-23 20:39:30 Scott Moser bug added bug
2015-06-23 20:39:30 Scott Moser attachment added user-data showing problem https://bugs.launchpad.net/bugs/1468103/+attachment/4419597/+files/my-userdata
2015-06-23 20:40:23 Scott Moser description per https://www.debian.org/doc/manuals/debian-faq/ch-customizing.en.html | The rc.local script is executed at the end of each multiuser runlevel. Generally speaking people expect rc.local to be run as "the last thing in boot". currently it is being run by systemd much earlier. Provided in the attached is user-data that tells cloud-init to write a file in /usr/local/bin/rc-local-message and edit set rc.local to execute it. On current wily, under most scenarios the script will not be executed as rc.local will most likely run before the cloud-init service has a chance to update /etc/rc.local. To reproduce: a.) launch an instance with provided user-data Expected behavior would be: 1. /run/rc-local-message exists with contents of /proc/uptime at the time it was run 2. /rc-local-message.mark exists with the number of times this script has been run ('1' after first boot) 3. /var/log/rc-local-message.log exists with a message like: [/var/log/rc-local-message.log] <date> === successful boot 1 ==== 4. console log should also have message like in 3 with '/dev/console' 4 is broken as rc.local output is not sent to console as reported separately at bug 1468102. ProblemType: Bug DistroRelease: Ubuntu 15.10 Package: systemd 220-7ubuntu1 ProcVersionSignature: User Name 3.19.0-22.22-generic 3.19.8-ckt1 Uname: Linux 3.19.0-22-generic x86_64 ApportVersion: 2.17.3-0ubuntu4 Architecture: amd64 Date: Tue Jun 23 20:21:50 2015 Ec2AMI: ami-00000434 Ec2AMIManifest: FIXME Ec2AvailabilityZone: nova Ec2InstanceType: m1.small Ec2Kernel: aki-00000002 Ec2Ramdisk: ari-00000002 Lsusb: Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub MachineType: OpenStack Foundation OpenStack Nova ProcEnviron: TERM=xterm-256color PATH=(custom, no user) XDG_RUNTIME_DIR=<set> LANG=en_US.UTF-8 SHELL=/bin/bash ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.19.0-22-generic root=LABEL=cloudimg-rootfs ro console=tty1 console=ttyS0 SourcePackage: systemd UdevLog: Error: [Errno 2] No such file or directory: '/var/log/udev' UpgradeStatus: No upgrade log present (probably fresh install) dmi.bios.date: 01/01/2011 dmi.bios.vendor: Bochs dmi.bios.version: Bochs dmi.chassis.type: 1 dmi.chassis.vendor: Bochs dmi.modalias: dmi:bvnBochs:bvrBochs:bd01/01/2011:svnOpenStackFoundation:pnOpenStackNova:pvr2014.1.4:cvnBochs:ct1:cvr: dmi.product.name: OpenStack Nova dmi.product.version: 2014.1.4 dmi.sys.vendor: OpenStack Foundation per https://www.debian.org/doc/manuals/debian-faq/ch-customizing.en.html  | The rc.local script is executed at the end of each multiuser runlevel. Generally speaking people expect rc.local to be run as "the last thing in boot". currently it is being run by systemd much earlier. Provided in the attached is user-data that tells cloud-init to write a file in /usr/local/bin/rc-local-message and edit set rc.local to execute it. On current wily, under most scenarios the script will not be executed as rc.local will most likely run before the cloud-init service has a chance to update /etc/rc.local. To reproduce:  a.) launch an instance with provided user-data Expected behavior would be:  1. /run/rc-local-message exists with contents of /proc/uptime at the time it was run  2. /rc-local-message.mark exists with the number of times this script has been run ('1' after first boot)  3. /var/log/rc-local-message.log exists with a message like:       [/var/log/rc-local-message.log] <date> === successful boot 1 ====  4. console log should also have message like in 3 with '/dev/console' 4 is broken as rc.local output is not sent to console as reported separately at bug 1468102. Related bugs: * bug 1468102: rc.local output does not go to console ProblemType: Bug DistroRelease: Ubuntu 15.10 Package: systemd 220-7ubuntu1 ProcVersionSignature: User Name 3.19.0-22.22-generic 3.19.8-ckt1 Uname: Linux 3.19.0-22-generic x86_64 ApportVersion: 2.17.3-0ubuntu4 Architecture: amd64 Date: Tue Jun 23 20:21:50 2015 Ec2AMI: ami-00000434 Ec2AMIManifest: FIXME Ec2AvailabilityZone: nova Ec2InstanceType: m1.small Ec2Kernel: aki-00000002 Ec2Ramdisk: ari-00000002 Lsusb: Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub MachineType: OpenStack Foundation OpenStack Nova ProcEnviron:  TERM=xterm-256color  PATH=(custom, no user)  XDG_RUNTIME_DIR=<set>  LANG=en_US.UTF-8  SHELL=/bin/bash ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.19.0-22-generic root=LABEL=cloudimg-rootfs ro console=tty1 console=ttyS0 SourcePackage: systemd UdevLog: Error: [Errno 2] No such file or directory: '/var/log/udev' UpgradeStatus: No upgrade log present (probably fresh install) dmi.bios.date: 01/01/2011 dmi.bios.vendor: Bochs dmi.bios.version: Bochs dmi.chassis.type: 1 dmi.chassis.vendor: Bochs dmi.modalias: dmi:bvnBochs:bvrBochs:bd01/01/2011:svnOpenStackFoundation:pnOpenStackNova:pvr2014.1.4:cvnBochs:ct1:cvr: dmi.product.name: OpenStack Nova dmi.product.version: 2014.1.4 dmi.sys.vendor: OpenStack Foundation
2015-06-23 20:42:14 Scott Moser systemd (Ubuntu): status New Confirmed
2015-06-24 16:05:23 Martin Pitt summary rc.local runs too early. rc.local runs earlier than cloud-init.service
2015-06-24 16:05:29 Martin Pitt affects systemd (Ubuntu) cloud-init (Ubuntu)
2015-06-25 15:27:44 Alberto Salvia Novella bug task added hundredpapercuts
2015-06-25 15:27:50 Alberto Salvia Novella hundredpapercuts: status New Confirmed
2015-06-25 15:28:44 Alberto Salvia Novella cloud-init (Ubuntu): importance Undecided High
2015-06-25 15:28:46 Alberto Salvia Novella hundredpapercuts: importance Undecided High
2015-06-26 04:59:30 Martin Pitt affects hundredpapercuts systemd (Ubuntu)
2015-06-26 04:59:36 Martin Pitt systemd (Ubuntu): status Confirmed Triaged
2016-01-11 15:21:11 Martin Pitt systemd (Ubuntu): importance High Undecided
2016-01-11 15:21:11 Martin Pitt systemd (Ubuntu): status Triaged Invalid
2017-01-28 18:25:13 Mathew Hodson bug task deleted systemd (Ubuntu)
2023-05-02 09:46:00 James Falcon cloud-init (Ubuntu): status Confirmed Won't Fix