Verified on the following releases with versions of cloud-init in proposed:
Zesty (cloud-init all 0.7.9-153-g16a7302f-0ubuntu1~17.04.1)
Yakkety (0.7.9-153-g16a7302f-0ubuntu1~16.10.1)
Xenial (0.7.9-153-g16a7302f-0ubuntu1~16.04.1)
In an azure instance with a spare 8Gb disk:
$ az vm create -n $name -g $group --image $image --data-disk-sizes-gb 8
--size Standard_DS2_v2 --ssh-key-value ~/.ssh/id_rsa.pub
$ ls /dev/sd*
/dev/sda /dev/sda1 /dev/sdb /dev/sdb1 /dev/sdc
$ cat /etc/cloud/cloud.cfg.d/disk-setup.cfg
#cloud-config
disk_setup:
/dev/sdc:
table_type: gpt
layout: [66, [33, 82]]
overwrite: True
fs_setup:
- device: /dev/sdc
partition: 1
filesystem: ext4
- device: /dev/sdc
partition: 2
filesystem: swap
mounts:
- ["/dev/sdc1", "/mnt"]
Reproduce before upgrading:
2017-06-20 22:25:56,571 - cc_mounts.py[WARNING]: Activate mounts: FAIL:mount -a
2017-06-20 22:25:56,572 - util.py[WARNING]: Activate mounts: FAIL:mount -a
Stderr: mount: wrong fs type, bad option, bad superblock on /dev/sdc1,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so.
# After upgrade
powersj@cloud-init-test-powersj-1:/var/log$ ls /dev/sd*
/dev/sda /dev/sda1 /dev/sdb /dev/sdb1 /dev/sdc /dev/sdc1 /dev/sdc2
...
Device Start End Sectors Size Type
/dev/sdc1 2048 11075009 11072962 5.3G Linux filesystem
/dev/sdc2 11075584 16777182 5701599 2.7G Linux swap
No error messages.
** Tags removed: verification-needed
** Tags added: verification-done-xenial verification-done-yakkety
verification-done-zesty
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1692087
Title:
check_partition_layout has false positives when partitioned with gpt
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1692087/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs