Merge ~paul-meyer/cloud-init:fix-raw-ephemeral-disk into cloud-init:master
Proposed by
Paul Meyer
Status: | Merged |
---|---|
Merged at revision: | 30d0adb71c9adadf437b2a1c69529ad9f44e75a8 |
Proposed branch: | ~paul-meyer/cloud-init:fix-raw-ephemeral-disk |
Merge into: | cloud-init:master |
Diff against target: |
16 lines (+4/-1) 1 file modified
cloudinit/config/cc_disk_setup.py (+4/-1) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
cloud-init Commiters | Pending | ||
Review via email: mp+304033@code.launchpad.net |
Description of the change
When the ephemeral drive is unpartitioned, sgdisk output has an extra line (see below), which fails get_gpt_hdd_size(). This patch add flexibility to handle this case.
root@sshvm2:~# sgdisk -p /dev/sdb
Creating new GPT entries.
Disk /dev/sdb: 266338304 sectors, 127.0 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 22D20184-
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 266338270
Partitions will be aligned on 2048-sector boundaries
Total free space is 266338237 sectors (127.0 GiB)
Number Start (sector) End (sector) Size Code Name
root@sshvm2:~#
To post a comment you must log in.
Hi,
could you give some cloud-config to demonstrate this? (i realize i have to have a blank disk), or does this just happen on Azure for some releases?
Also, is there a bug open that this fixes ?
Thanks!