← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1018554] Re: write timestamp to console on halt/reboot/shutdown

 

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

  * debian/patches/lp-1070345-landscape-restart-after-change.patch,
    debian/patches/lp-1066115-landscape-install-fix-perms.patch:
    fix missing or incorrect imports (LP: #1070345, LP: #1066115).

cloud-init (0.6.3-0ubuntu1.2) precise-proposed; urgency=low

  * debian/patches/lp-978127-maas-oauth-fix-bad-clock.patch: fix usage of
    oauth in maas data source if local system has a bad clock (LP: #978127)
  * debian/cloud-init.preinst: fix bug where user data scripts re-ran on
    upgrade from 10.04 versions (LP: #1049146)
  * debian/patches/lp-974509-detect-dns-server-redirection.patch: detect dns
    server redirection and disable searching dns for a mirror named
    'ubuntu-mirror' (LP: #974509)
  * debian/patches/lp-1018554-shutdown-message-to-console.patch: write a
    message to the console on system shutdown. (LP: #1018554)
  * debian/patches/lp-1066115-landscape-install-fix-perms.patch: install
    landscape package if needed which will ensure proper permissions on config
    file (LP: #1066115).
  * debian/patches/lp-1070345-landscape-restart-after-change.patch: restart
    landscape after modifying config (LP: #1070345)
  * debian/patches/lp-1073077-zsh-workaround-for-locale_warn.patch: avoid
    warning when user's shell is zsh (LP: #1073077)
  * debian/patches/rework-mirror-selection.patch: improve mirror selection by:
    * allowing region/availability-zone to be part of mirror (LP: #1037727)
    * making mirror selection arch aware (LP: #1028501)
    * allow specification of a security mirror (LP: #1006963)
 -- Scott Moser <smoser@xxxxxxxxxx>   Thu, 13 Dec 2012 12:16:56 -0500

** Changed in: cloud-init (Ubuntu Precise)
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/1018554

Title:
  write timestamp to console on halt/reboot/shutdown

Status in Init scripts for use on cloud images:
  Fix Released
Status in “cloud-init” package in Ubuntu:
  Fix Released
Status in “cloud-init” source package in Precise:
  Fix Released

Bug description:
  === 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)

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1018554/+subscriptions