Public bug reported:

# 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.

** Affects: cloud-init
     Importance: Undecided
         Status: New

** Patch added: "Patch to not clear the partition when using 'auto' or 'any'"
   
https://bugs.launchpad.net/bugs/1634678/+attachment/4763457/+files/partition.patch

-- 
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/1634678

Title:
  fs_setup always creates new filesystem with partition 'auto'

Status in cloud-init:
  New

Bug description:
  # 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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1634678/+subscriptions

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to