azure images have populated /var/lib/cloud/seed/nocloud-net, breaking login

Bug #1220855 reported by Scott Moser
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu on Windows Azure
Fix Released
High
Unassigned

Bug Description

recent saucy azure images have files in /var/lib/cloud/seed/nocloud-net.
This makes cloud-init find the nocloud-net datasource and not the azure datasource.

$ cat var/lib/cloud/seed/nocloud-net/meta-data
instance_id: azure-cloud_img-%s-a57e684a-d548-4ed0-9a26-f56ca06d3bef

$ ls -l var/lib/cloud/seed/nocloud-net/user-data
-rw-r--r-- 1 root root 0 Sep 4 04:35 var/lib/cloud/seed/nocloud-net/user-data

$ grep "Loaded da" var/log/cloud-init.log
2013-09-04 17:15:16,621 - stages.py[DEBUG]: Loaded datasource DataSourceNoCloudNet - DataSourceNoCloudNet [seed=/var/lib/cloud/seed/nocloud-net][dsmode=net]

The most immediate result is you can't log in at all, because there are no keys nor is anything going to set a password.

Scott Moser (smoser)
Changed in ubuntu:
status: New → Confirmed
importance: Undecided → High
assignee: nobody → Ben Howard (utlemming)
tags: added: azure cloud-images cloud-images-build
Revision history for this message
Ben Howard (darkmuggle-deactivatedaccount) wrote :

This is a regression caused by moving 12.04.3 to use cloud-init provisioning. I'm currently building a test image now, but it looks like the following commit will fix the problem:

------------------------------------------------------------
revno: 258
committer: Ben Howard <email address hidden>
branch nick: public
timestamp: Wed 2013-09-04 12:39:42 -0600
message:
  Fixed typo in test to determine if Azure Cloud-init provisioning sould be used or not.
diff:
=== modified file 'templates/img-azure.tmpl'
--- templates/img-azure.tmpl 2013-08-27 14:03:49 +0000
+++ templates/img-azure.tmpl 2013-09-04 18:39:42 +0000
@@ -235,7 +235,7 @@
 # Reconfigure cloud-init
 debug "Reconfiguring Cloud-init"
 if dist_le "${suite}" "precise" -o \
- dist_gre "${suite}" "saucy"; then
+ dist_ge "${suite}" "saucy"; then
        # Precise and Saucy have cloud-init provisioning for Windows Azure
        debug "Configured for Azure supported Cloud-init"
        printf "%s\t%s\t%s\tAzure\n" \

Revision history for this message
Ben Howard (darkmuggle-deactivatedaccount) wrote :

This is fixed. Marking as fix committed pending tonights daily.

Changed in ubuntu:
status: Confirmed → Fix Committed
Revision history for this message
Scott Moser (smoser) wrote :

I verified that I can run
b39f27a8b8c64d52b05eac6a62ebad85__Ubuntu_DAILY_BUILD-saucy-13_10-amd64-server-20130905-en-us-30GB
and ssh in.

So i'd mark 'fix released'.

Scott Moser (smoser)
Changed in ubuntu:
status: Fix Committed → Fix Released
Mathew Hodson (mhodson)
affects: ubuntu → ubuntuazure
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.