Tracked in Github Issues as https://github.com/canonical/cloud- init/issues/2432
** Bug watch added: github.com/canonical/cloud-init/issues #2432 https://github.com/canonical/cloud-init/issues/2432 ** Changed in: cloud-init Status: Triaged => Expired -- 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/1291820 Title: cc_mounts.py fails to remove ephemeral entry from fstab Status in cloud-init: Expired Bug description: 1) Create an m1.small instance starting with a stock Raring AMI. 2) Create a new EBS-backed AMI from that instance 3) Create a t1.micro instance with user-data mounts: - [ephemeral0, null] 4) look at /etc/fstab Expected: There should be no entry for the ephemeral device. Actual: There is /dev/xvdb /mnt/ephemeral auto defaults,nobootwait,comment=cloudconfig 0 2 cc_mounts.py adds the entry to fstab in step 1) but then fails to remove the entry in step 3) because it bails out prematurely in line https://github.com/number5/cloud- init/blob/0.7.2/cloudinit/config/cc_mounts.py#L155 before it has a chance to filter the line in https://github.com/number5/cloud- init/blob/0.7.2/cloudinit/config/cc_mounts.py#L175 The relevant (I hope) log lines are Mar 13 06:28:08 ip-10-222-249-176 [CLOUDINIT] helpers.py[DEBUG]: Running config-disk-setup using lock (<FileLock using file '/var/lib/cloud/instances/i-77144128/sem/config_disk_setu p'>) Mar 13 06:28:08 ip-10-222-249-176 [CLOUDINIT] util.py[DEBUG]: Writing to /var/lib/cloud/instances/i-77144128/sem/config_mounts - wb: [420] 19 bytes Mar 13 06:28:08 ip-10-222-249-176 [CLOUDINIT] helpers.py[DEBUG]: Running config-mounts using lock (<FileLock using file '/var/lib/cloud/instances/i-77144128/sem/config_mounts'>) Mar 13 06:28:08 ip-10-222-249-176 [CLOUDINIT] cc_mounts.py[DEBUG]: Attempting to determine the real name of ephemeral0 Mar 13 06:28:08 ip-10-222-249-176 [CLOUDINIT] cc_mounts.py[DEBUG]: Ignorming nonexistant named mount ephemeral0 Mar 13 06:28:08 ip-10-222-249-176 [CLOUDINIT] cc_mounts.py[DEBUG]: Attempting to determine the real name of ephemeral0 Mar 13 06:28:08 ip-10-222-249-176 [CLOUDINIT] cc_mounts.py[DEBUG]: Ignoring nonexistant default named mount ephemeral0 Mar 13 06:28:08 ip-10-222-249-176 [CLOUDINIT] cc_mounts.py[DEBUG]: Attempting to determine the real name of swap Mar 13 06:28:08 ip-10-222-249-176 [CLOUDINIT] DataSourceEc2.py[DEBUG]: Unable to convert swap to a device Mar 13 06:28:08 ip-10-222-249-176 [CLOUDINIT] cc_mounts.py[DEBUG]: Ignoring nonexistant default named mount swap Mar 13 06:28:08 ip-10-222-249-176 [CLOUDINIT] cc_mounts.py[DEBUG]: Skipping non-existent device named ephemeral0 Mar 13 06:28:08 ip-10-222-249-176 [CLOUDINIT] cc_mounts.py[DEBUG]: No modifications to fstab needed. To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-init/+bug/1291820/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : [email protected] Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp

