-
Notifications
You must be signed in to change notification settings - Fork 828
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
write timestamp to console on halt/reboot/shutdown #2268
Comments
Launchpad user Scott Moser(smoser) wrote on 2012-06-27T19:53:51.545879+00:00 Launchpad attachments: Dependencies.txt |
Launchpad user Launchpad Janitor(janitor) wrote on 2012-06-27T20:15:21.479037+00:00 Status changed to 'Confirmed' because the bug affects multiple users. |
Launchpad user James Hunt(jamesodhunt) wrote on 2012-06-28T10:02:32.608763+00:00 Hi Scott, This doesn't require a change to Upstart - just create a job called "log-reboot" or similar containing something like this: start on runlevel PREVLEVEL=2 task exec echo "rebooting |
Launchpad user Scott Moser(smoser) wrote on 2012-06-28T19:58:02.011261+00:00 I chatted a bit with james, and he also said: So, i suggest we just add this to cloud-init ubuntu packaging. |
Launchpad user Scott Moser(smoser) wrote on 2012-07-26T14:30:08.082185+00:00 fixed in trunk revno 609. |
Launchpad user Launchpad Janitor(janitor) wrote on 2012-08-03T19:00:13.087024+00:00 This bug was fixed in the package cloud-init - 0.7.0~bzr614-0ubuntu1 cloud-init (0.7.0~bzr614-0ubuntu1) quantal; urgency=low
|
Launchpad user Steve Langasek(vorlon) wrote on 2012-12-10T19:30:45.060152+00:00 FWIW, this would be more precise if it had a start condition of: start on runlevel [06] though it's unlikely that cloud users are going to make much use of runlevels other than runlevel 2. |
Launchpad user Steve Langasek(vorlon) wrote on 2012-12-10T23:04:07.847461+00:00 Hello Scott, or anyone else affected, Accepted cloud-init into precise-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/cloud-init/0.6.3-0ubuntu1.2 in a few hours, and then in the -proposed repository. Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users. If this package fixes the bug for you, please change the bug tag from verification-needed to verification-done. If it does not, change the tag to verification-failed. In either case, details of your testing will help us make a better decision. Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance! |
Launchpad user Scott Moser(smoser) wrote on 2012-12-12T21:06:22.968052+00:00 booted an image, installed new cloud-init, ran '/sbin/poweroff' saw this on the serial console: |
Launchpad user Clint Byrum(clint-fewbar) wrote on 2013-01-08T19:15:23.873025+00:00 Hello Scott, or anyone else affected, Accepted cloud-init into precise-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/cloud-init/0.6.3-0ubuntu1.3 in a few hours, and then in the -proposed repository. Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users. If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision. Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance! |
Launchpad user Launchpad Janitor(janitor) wrote on 2013-01-16T14:20:17.525104+00:00 This bug was fixed in the package cloud-init - 0.6.3-0ubuntu1.3 cloud-init (0.6.3-0ubuntu1.3) precise-proposed; urgency=low
cloud-init (0.6.3-0ubuntu1.2) precise-proposed; urgency=low
|
Launchpad user Colin Watson(cjwatson) wrote on 2013-01-16T14:20:21.061621+00:00 The verification of this Stable Release Update has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regresssions. |
This bug was originally filed in Launchpad as LP: #1018554
Launchpad details
Launchpad user Scott Moser(smoser) wrote on 2012-06-27T19:53:51.545879+00:00
=== Begin SRU Information ===
[Impact]
* When launching a cloud instance, the console log is extremely valuable
in debugging issues, and is often times all the data you have.
In Ubuntu automated tests [1], having timestamps on the console for
'reboot' or 'halt' allows us to correlate logs from the instance
console and test harness.
This change simply writes a message to /dev/console when a reboot or
shutdown occurs.
[1] https://jenkins.qa.ubuntu.com/view/Quantal/view/All%20Quantal/job/quantal-server-ec2/
[Test Case]
* To demonstrate the usefulness, launch an instance, and then power it
off. After that, get the console log. You'll notice no timestamp
other than the kernel uptime timestamps that could help you to
determine when the instance was terminated.
[Regression Potential]
* There is very little regression potential here. If this upstart job was
somehow buggy, it would just result in failure to write the message.
=== End SRU Information ===
In EC2 and other cloud platforms, the console data is programmatically available.
Our tests in EC2 collect this console output on shutdown / reboot /terminate. The data is very useful.
in cloud-init i've added timestamps to output so that information is available in the console log.
One thing missing (which cloud-init has no hooks for) is 'shutdown' or 'reboot'.
I'd like for upstart to write a message to /dev/console saying:
rebooting Wed, 27 Jun 2012 15:52:45 -0400
or something like that.
I'd be happy if the 'nih_info' messages in util/reboot.c
had at timestamp on them, and got written to /dev/console by default (they do not seem to).
ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: upstart 1.5-0ubuntu7
ProcVersionSignature: User Name 3.5.0-2.2-generic 3.5.0-rc4
Uname: Linux 3.5.0-2-generic x86_64
ApportVersion: 2.2.5-0ubuntu1
Architecture: amd64
Date: Wed Jun 27 19:45:52 2012
ProcEnviron:
TERM=screen
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: upstart
UpgradeStatus: No upgrade log present (probably fresh install)
The text was updated successfully, but these errors were encountered: