Comment 0 for bug 1634678

Revision history for this message
Lee Faris (leelynnef) wrote :

# cloud-init -v
cloud-init 0.7.5

# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.4 LTS
Release: 14.04
Codename: trusty

AMI: ami-1721ff77 - Ubuntu 14.04 20160314

fs_setup fails to detect an existing filesystem and creates a new one when using the following configuration:

fs_setup:
    label: None
    filesystem: ext4
    device: /dev/xvdf
    partition: auto

There error seems to be here - https://git.launchpad.net/cloud-init/tree/cloudinit/config/cc_disk_setup.py#n216
This line sets definition['partition'] to None.

I believe " definition['partition'] = part" should be a part of the above conditional.