azure images have populated /var/lib/cloud/seed/nocloud-net, breaking login
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/
This makes cloud-init find the nocloud-net datasource and not the azure datasource.
$ cat var/lib/
instance_id: azure-cloud_
$ ls -l var/lib/
-rw-r--r-- 1 root root 0 Sep 4 04:35 var/lib/
$ grep "Loaded da" var/log/
2013-09-04 17:15:16,621 - stages.py[DEBUG]: Loaded datasource DataSourceNoClo
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.
Related branches
Changed in ubuntu: | |
status: | New → Confirmed |
importance: | Undecided → High |
assignee: | nobody → Ben Howard (utlemming) |
tags: | added: azure cloud-images cloud-images-build |
Changed in ubuntu: | |
status: | Fix Committed → Fix Released |
affects: | ubuntu → ubuntuazure |
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:
------- ------- ------- ------- ------- ------- ------- ------- ---- img-azure. tmpl' img-azure. tmpl 2013-08-27 14:03:49 +0000 img-azure. tmpl 2013-09-04 18:39:42 +0000 t%s\tAzure\ n" \
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/
--- templates/
+++ templates/
@@ -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\