mountall errors on boot

Bug #744019 reported by Muhammad Shoaib
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-init
Fix Released
Low
Unassigned
cloud-init (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: cloud-init

My Setup
------------------
I am using the official Ubuntu 10.10 Maverick Meekat EBS AMIs (ami-ccf405a5,ami-cef405a7) on
64bit t1.micro and
32bit m1.small
instances.

Both instances have: cloud-init v 0.5.15-0ubuntu3

Nothing additional besides the defaults set of tools available on these AMIs was installed.

Problems
---------------
On every boot i get:
cloud-init start-local running: Mon, 28 Mar 2011 03:33:16 +0000. up 2.40 seconds
no instance data found in start-local
init: cloud-init-local main process (374) terminated with status 1

cloud-init start running: Mon, 28 Mar 2011 03:33:17 +0000. up 2.75 seconds
found data source: DataSourceEc2
mountall: Event failed

* Starting AppArmor profiles [80G 2011-03-28 04:00:52,257 - DataSourceEc2.py[WARNING]: unable to convert swap to a device
2011-03-28 04:00:52,268 - cc_mounts.py[WARNING]: 'mount -a' failed

Lastly even though the t1.micro instance type has only one drive attached to it, e.g. /dev/sda1 the "/". It appends "/dev/sdb" to be mounted over "/mnt" in fstab as well as swap. According to Amazon's Instance Guide with t1.micro instance there is neither swap nor /mnt drive.

How to reproduce the errors?
-----------------------------------------
Use same AMIs and launch an instance, get system log from aws console of /var/log.

Related branches

Scott Moser (smoser)
Changed in cloud-init (Ubuntu):
importance: Undecided → Low
status: New → Triaged
Revision history for this message
Scott Moser (smoser) wrote :

The reason that cloud-init wrote that entry in /etc/fstab is that the metadata service on t1.micro includes 'ephemeral0', even though there is no ephemeral0.

I'm fixing this by:
a.) special casing "ephemeral0" and device does not exist
b.) changing the warning on swap conversion to a debug statement (so it wont go to console)

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package cloud-init - 0.6.1-0ubuntu12

---------------
cloud-init (0.6.1-0ubuntu12) oneiric; urgency=low

  * do not give trace on failure to resize in lxc container (LP: #800856)
  * increase the timeout on url gets for "seedfrom" values (LP: #812646)
  * do not write entries for ephemeral0 on t1.micro (LP: #744019)

  [Adam Gandalman]
  * improve the updating of /etc/hosts with correct fqdn when possible
    (LP: #812539)

  [Avishai Ish-Shalom]
  * add chef support (cloudinit/CloudConfig/cc_chef.py) (LP: #798844)
 -- Scott Moser <email address hidden> Thu, 21 Jul 2011 05:51:03 -0400

Changed in cloud-init (Ubuntu):
status: Triaged → Fix Released
Scott Moser (smoser)
Changed in cloud-init:
importance: Undecided → Low
status: New → Fix Committed
Scott Moser (smoser)
Changed in cloud-init:
status: Fix Committed → Fix Released
Revision history for this message
James Falcon (falcojr) wrote :
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.