[Bug 1049146] Re: cloud-init runs again after reboot in release upgraded instance

2013-01-16 Thread Launchpad Bug Tracker
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 MoserThu, 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 Ubuntu
Server Team, which is subscribed to cloud-init in Ubuntu.
https://bugs.launchpad.net/bugs/1049146

Title:
  cloud-init runs again after reboot in release upgraded instance

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1049146/+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 1049146] Re: cloud-init runs again after reboot in release upgraded instance

2013-01-08 Thread Scott Moser
** Tags removed: verification-needed
** Tags added: verification-done

-- 
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/1049146

Title:
  cloud-init runs again after reboot in release upgraded instance

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1049146/+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 1049146] Re: cloud-init runs again after reboot in release upgraded instance

2013-01-08 Thread Clint Byrum
Hello Andreas, 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!

** Tags removed: verification-done

** Tags added: verification-needed

-- 
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/1049146

Title:
  cloud-init runs again after reboot in release upgraded instance

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1049146/+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 1049146] Re: cloud-init runs again after reboot in release upgraded instance

2012-12-12 Thread Scott Moser
verified fixed by running the above 'Test Case', but by adding the proposed 
pocket before upgrading the initial system.
   echo "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc)-proposed main" 
| sudo tee -a /etc/apt/sources.list
# then 
sudo apt-get update -q && sudo apt-get upgrade -y
do-release-upgrade --frontend=DistUpgradeViewNonInteractive

# then reboot

after reboot,

$ sudo cat /root/user-data.log
== Wed, 12 Dec 2012 19:18:15 + [/var/lib/cloud/data/scripts/part-000] 
=

There was only one entry there, indicating it did not run on reboot

** Tags removed: verification-needed
** Tags added: verification-done

-- 
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/1049146

Title:
  cloud-init runs again after reboot in release upgraded instance

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1049146/+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 1049146] Re: cloud-init runs again after reboot in release upgraded instance

2012-12-10 Thread Steve Langasek
Hello Andreas, 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!

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

** Tags added: verification-needed

-- 
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/1049146

Title:
  cloud-init runs again after reboot in release upgraded instance

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1049146/+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 1049146] Re: cloud-init runs again after reboot in release upgraded instance

2012-11-08 Thread Scott Moser
** Description changed:

- I spawned a lucid AWS instance and used some cloud-init config to
- perform some tasks for me.
+ === Begin SRU Information ===
+ [Impact]
+  * If a user launches a 10.04 cloud-image with a user-data script, and then
+does a upgrade to 12.04 and 'reboot's to complete the upgrade, the
+user-data script will incorrectly execute again on boot.
+ 
+This is because the cloud config module that executed user-data changed
+names between 10.04 and 12.04 from 'user-scripts' to 'config-scripts-user',
+but nothing was in place to adjust the "already ran" marker file
+ 
+ [Test Case]
+  * launch an instance with some user-data:
+$ cat lp-1049146-user-data.txt
+#!/bin/sh
+echo "== $(date -R) [$0] =" | tee -a /root/user-data.log
+ 
+$ ubuntu-ec2-run --key=your-keyname --instance-type=m1.medium \
+   --user-data-file lp-1049146-user-data.txt lucid daily
+# us-east-1/instance-store/ubuntu-lucid-daily-amd64-server-20121108
+ 
+  * upgrade the image and then do-release-upgrade it, then reboot
+$ IP=THE_IP_ADDRESS
+$ ssh ubuntu@$IP
+% sudo apt-get update -q && sudo apt-get upgrade -y
+% do-release-upgrade --frontend=DistUpgradeViewNonInteractive
+ 
+# you could install the patched new version of cloud-init by hand here.
+% sudo reboot
+ 
+  * see that the user-data has run more than once
+# upon reboot, you'll see that the user-data script ran again (twice)
+$ sudo cat /root/user-data.log
+== Thu, 08 Nov 2012 17:07:52 +
+[/var/lib/cloud/data/scripts/part-000] =
+== Thu, 08 Nov 2012 17:26:50 +
+[/var/lib/cloud/instance/scripts/part-000] =
+== Thu, 08 Nov 2012 17:26:50 +
+[/var/lib/cloud/instance/scripts/part-001] =
+ 
+ [Regression Potential]
+  * There is little potential to make anything worse here.  The relevant
+change is really only to touch a file in the post install that will
+serve as a marker for the newer version of cloud-init, so it realize
+that the user-data has already been executed once.
+ 
+ === End SRU Information ===
+ 
+ 
+ 
+ I spawned a lucid AWS instance and used some cloud-init config to perform 
some tasks for me.
  
  All is good.
  
  Then, as part of the task I was performing, I upgraded that lucid
  instance to precise using do-release-upgrade. It failed, but unrelated
  to cloud-init (a postinst from a package failed).
  
  I then rebooted the instance. When it came back up, the cloud-init
  config I supplied the first time was run again, as if this was the first
  time the instance booted.
  
  smoser had access to before and after reboot, and asked to add this to the 
bug:
  # for x in /var/lib/cloud/instance/sem/*; do [ -f 
var-lib-cloud/instance/sem/${x##*/} ] || echo ${x##*/}; done
  config-byobu
  config-ca-certs
  config-chef
  config-grub-dpkg
  config-keys-to-console
  config-landscape
  config-mcollective
  config-phone-home
  config-rightscale_userdata
  config-rsyslog
  config-salt-minion
  config-scripts-per-instance
  config-scripts-user
  config-set-passwords
  config-ssh-import-id
  config-timezone
  
  $ ls var-lib-cloud/instance/sem/
  config-apt-pipelining  config-puppetconfig-updates-check
  config-apt-update-upgrade  config-runcmdconsume_userdata
  config-locale  config-set_hostname  user-scripts
  config-mounts  config-ssh

-- 
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/1049146

Title:
  cloud-init runs again after reboot in release upgraded instance

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1049146/+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 1049146] Re: cloud-init runs again after reboot in release upgraded instance

2012-10-12 Thread Launchpad Bug Tracker
** Branch linked: lp:~smoser/ubuntu/precise/cloud-init/sru

-- 
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/1049146

Title:
  cloud-init runs again after reboot in release upgraded instance

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1049146/+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 1049146] Re: cloud-init runs again after reboot in release upgraded instance

2012-10-05 Thread Scott Moser
** Changed in: cloud-init (Ubuntu Precise)
   Status: New => Triaged

** Changed in: cloud-init (Ubuntu Precise)
   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/1049146

Title:
  cloud-init runs again after reboot in release upgraded instance

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1049146/+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 1049146] Re: cloud-init runs again after reboot in release upgraded instance

2012-09-24 Thread Scott Moser
fix-released in 0.7.0~bzr659-0ubuntu1.


** Also affects: cloud-init (Ubuntu)
   Importance: Undecided
   Status: New

** No longer affects: cloud-init

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

** Changed in: cloud-init (Ubuntu)
   Importance: Undecided => Medium

** Changed in: cloud-init (Ubuntu)
 Assignee: (unassigned) => Scott Moser (smoser)

** Also affects: cloud-init (Ubuntu Precise)
   Importance: Undecided
   Status: New

-- 
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/1049146

Title:
  cloud-init runs again after reboot in release upgraded instance

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1049146/+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