Activity log for bug #1460715

Date Who What changed Old value New value Message
2015-06-01 15:59:58 Dan Watkins bug added bug
2015-07-29 12:26:42 Dan Watkins cloud-init: assignee Dan Watkins (daniel-thewatkins)
2015-10-19 14:13:56 Dan Watkins cloud-init: status New In Progress
2015-10-19 14:23:35 Dan Watkins branch linked lp:~daniel-thewatkins/cloud-init/lp1460715
2016-04-06 16:47:39 Scott Moser cloud-init: importance Undecided Medium
2016-07-28 08:04:34 Robert C Jennings summary MBR disk setup fails in wily because sfdisk no longer accepts M as a valid unit MBR disk setup fails because sfdisk no longer accepts M as a valid unit
2016-11-22 14:49:55 Scott Moser description Specifically, we get the following output in cc_disk_setup.exec_mkpart_mbr: sfdisk: --Linux option is unnecessary and deprecated sfdisk: unsupported unit 'M' and the manpage says: -u, --unit S Deprecated option. Only the sector unit is supported. So we'll need to shift to using sectors. Specifically, we get the following output in cc_disk_setup.exec_mkpart_mbr: sfdisk: --Linux option is unnecessary and deprecated sfdisk: unsupported unit 'M' and the manpage says:        -u, --unit S               Deprecated option. Only the sector unit is supported. So we'll need to shift to using sectors. Related bugs: * bug 1642383: Unable to configure swap space on ephemeral disk in Azure
2016-11-22 17:48:01 Scott Moser cloud-init: status In Progress Fix Committed
2016-12-02 02:23:03 Scott Moser bug task added cloud-init (Ubuntu)
2016-12-02 02:23:41 Scott Moser cloud-init (Ubuntu): status New Fix Released
2016-12-02 02:23:44 Scott Moser cloud-init (Ubuntu): importance Undecided Medium
2016-12-02 02:23:54 Scott Moser nominated for series Ubuntu Yakkety
2016-12-02 02:23:54 Scott Moser bug task added cloud-init (Ubuntu Yakkety)
2016-12-02 02:23:54 Scott Moser nominated for series Ubuntu Xenial
2016-12-02 02:23:54 Scott Moser bug task added cloud-init (Ubuntu Xenial)
2016-12-02 02:24:50 Scott Moser cloud-init (Ubuntu Xenial): status New Confirmed
2016-12-02 02:24:52 Scott Moser cloud-init (Ubuntu Yakkety): status New Confirmed
2016-12-02 02:24:55 Scott Moser cloud-init (Ubuntu Xenial): importance Undecided Medium
2016-12-02 02:24:58 Scott Moser cloud-init (Ubuntu Yakkety): importance Undecided Medium
2016-12-02 02:25:04 Scott Moser cloud-init (Ubuntu Xenial): status Confirmed In Progress
2016-12-02 02:25:06 Scott Moser cloud-init (Ubuntu Xenial): assignee Scott Moser (smoser)
2016-12-02 16:12:17 Scott Moser description Specifically, we get the following output in cc_disk_setup.exec_mkpart_mbr: sfdisk: --Linux option is unnecessary and deprecated sfdisk: unsupported unit 'M' and the manpage says:        -u, --unit S               Deprecated option. Only the sector unit is supported. So we'll need to shift to using sectors. Related bugs: * bug 1642383: Unable to configure swap space on ephemeral disk in Azure === Begin SRU Template === [Impact] Cloud-init has function to partition disks on devices. Creating partitions on a disk no longer works with sfdisk as recent versions of sfdisk no accept the unit 'M' as input, this function is broken. [Test Case] 1. Launch an instance with provided user-data On Azure, this will work: #cloud-config disk_setup: ephemeral0: table_type: mbr layout: [66, [33, 82]] overwrite: True fs_setup: - device: ephemeral0.1 filesystem: ext4 - device: ephemeral0.2 filesystem: swap mounts: - ["ephemeral0.1", "/mnt2"] - ["ephemeral0.2", "none", "swap", "sw", "0", "0"] On a typical kvm openstack use: #cloud-config disk_setup: /dev/vdb: table_type: mbr layout: [66, [33, 82]] overwrite: True fs_setup: - device: /dev/vdb1 filesystem: ext4 - device: /dev/vdb2 filesystem: swap mounts: - ["/dev/vdb1", "/mnt2"] - ["/dev/vdb2", "none", "swap", "sw", "0", "0"] 2. Add proposed, update, and reboot as fresh instance. # enable proposed sudo apt-get -qy update && sudo apt-get -qy install cloud-init sudo rm -Rf /var/lib/cloud /var/log/cloud-init* sudo sed -i '/cloudconfig/d' /etc/fstab sudo reboot 3. login to system and look around. The target disk should be partitioned with 2 partitions. $ grep [sv]db /proc/partitions 253 16 41943040 vdb 253 17 27682406 vdb1 253 18 14259200 vdb2 There should entries in /etc/fstab for the configured devices $ cat /etc/fstab LABEL=cloudimg-rootfs / ext4 defaults 0 0 LABEL=UEFI /boot/efi vfat defaults 0 0 /dev/vdb1 /mnt2 auto defaults,nofail,x-systemd.requires=cloud-init.service,comment=cloudconfig 0 2 /dev/vdb2 none swap sw,comment=cloudconfig 0 0 A 'mount -a' will mount the necessary devices. Note, these should ideally be already mounted, but an as-yet unidentified issue (to be fixed in bug 1642383) means they are not mounted on first boot. $ mount -a $ df -h /mnt2 Filesystem Size Used Avail Use% Mounted on /dev/vdb1 26G 45M 25G 1% /mnt2 There should be swap used. $ free total used free shared buff/cache available Mem: 2047792 73984 1804508 3252 169300 1825896 Swap: 14259196 0 14259196 $ grep [vs]db2 /proc/swaps /dev/vdb2 partition 14259196 0 -1 [Regression Potential] Change from using Megabytes to Sectors could have caused math errors, most likely with sector sizes other than 512. Partitioning with sfdisk was broken previously, so it wont be worse. === End SRU Template === Specifically, we get the following output in cc_disk_setup.exec_mkpart_mbr: sfdisk: --Linux option is unnecessary and deprecated sfdisk: unsupported unit 'M' and the manpage says:        -u, --unit S               Deprecated option. Only the sector unit is supported. So we'll need to shift to using sectors. Related bugs:  * bug 1642383: Unable to configure swap space on ephemeral disk in Azure
2016-12-02 18:14:47 Scott Moser cloud-init (Ubuntu Yakkety): status Confirmed In Progress
2016-12-09 18:20:22 Robie Basak cloud-init (Ubuntu Xenial): status In Progress Fix Committed
2016-12-09 18:20:25 Robie Basak bug added subscriber Ubuntu Stable Release Updates Team
2016-12-09 18:20:28 Robie Basak bug added subscriber SRU Verification
2016-12-09 18:20:30 Robie Basak tags verification-needed
2016-12-16 14:42:58 Scott Moser description === Begin SRU Template === [Impact] Cloud-init has function to partition disks on devices. Creating partitions on a disk no longer works with sfdisk as recent versions of sfdisk no accept the unit 'M' as input, this function is broken. [Test Case] 1. Launch an instance with provided user-data On Azure, this will work: #cloud-config disk_setup: ephemeral0: table_type: mbr layout: [66, [33, 82]] overwrite: True fs_setup: - device: ephemeral0.1 filesystem: ext4 - device: ephemeral0.2 filesystem: swap mounts: - ["ephemeral0.1", "/mnt2"] - ["ephemeral0.2", "none", "swap", "sw", "0", "0"] On a typical kvm openstack use: #cloud-config disk_setup: /dev/vdb: table_type: mbr layout: [66, [33, 82]] overwrite: True fs_setup: - device: /dev/vdb1 filesystem: ext4 - device: /dev/vdb2 filesystem: swap mounts: - ["/dev/vdb1", "/mnt2"] - ["/dev/vdb2", "none", "swap", "sw", "0", "0"] 2. Add proposed, update, and reboot as fresh instance. # enable proposed sudo apt-get -qy update && sudo apt-get -qy install cloud-init sudo rm -Rf /var/lib/cloud /var/log/cloud-init* sudo sed -i '/cloudconfig/d' /etc/fstab sudo reboot 3. login to system and look around. The target disk should be partitioned with 2 partitions. $ grep [sv]db /proc/partitions 253 16 41943040 vdb 253 17 27682406 vdb1 253 18 14259200 vdb2 There should entries in /etc/fstab for the configured devices $ cat /etc/fstab LABEL=cloudimg-rootfs / ext4 defaults 0 0 LABEL=UEFI /boot/efi vfat defaults 0 0 /dev/vdb1 /mnt2 auto defaults,nofail,x-systemd.requires=cloud-init.service,comment=cloudconfig 0 2 /dev/vdb2 none swap sw,comment=cloudconfig 0 0 A 'mount -a' will mount the necessary devices. Note, these should ideally be already mounted, but an as-yet unidentified issue (to be fixed in bug 1642383) means they are not mounted on first boot. $ mount -a $ df -h /mnt2 Filesystem Size Used Avail Use% Mounted on /dev/vdb1 26G 45M 25G 1% /mnt2 There should be swap used. $ free total used free shared buff/cache available Mem: 2047792 73984 1804508 3252 169300 1825896 Swap: 14259196 0 14259196 $ grep [vs]db2 /proc/swaps /dev/vdb2 partition 14259196 0 -1 [Regression Potential] Change from using Megabytes to Sectors could have caused math errors, most likely with sector sizes other than 512. Partitioning with sfdisk was broken previously, so it wont be worse. === End SRU Template === Specifically, we get the following output in cc_disk_setup.exec_mkpart_mbr: sfdisk: --Linux option is unnecessary and deprecated sfdisk: unsupported unit 'M' and the manpage says:        -u, --unit S               Deprecated option. Only the sector unit is supported. So we'll need to shift to using sectors. Related bugs:  * bug 1642383: Unable to configure swap space on ephemeral disk in Azure === Begin SRU Template === [Impact] Cloud-init has function to partition disks on devices. Creating partitions on a disk no longer works with sfdisk as recent versions of sfdisk no accept the unit 'M' as input, this function is broken. [Test Case] 1. Launch an instance with provided user-data    On Azure, this will work:      #cloud-config      disk_setup:        ephemeral0:            table_type: mbr            layout: [66, [33, 82]]            overwrite: True      fs_setup:        - device: ephemeral0.1          filesystem: ext4        - device: ephemeral0.2          filesystem: swap      mounts:        - ["ephemeral0.1", "/mnt2"]        - ["ephemeral0.2", "none", "swap", "sw", "0", "0"]    On a typical kvm openstack use:      #cloud-config      disk_setup:        /dev/vdb:            table_type: mbr            layout: [66, [33, 82]]            overwrite: True      fs_setup:        - device: /dev/vdb1          filesystem: ext4        - device: /dev/vdb2          filesystem: swap      mounts:        - ["/dev/vdb1", "/mnt2"]        - ["/dev/vdb2", "none", "swap", "sw", "0", "0"] 2. Add proposed, update, and reboot as fresh instance.    # enable proposed echo deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc)-proposed main | sudo tee /etc/apt/sources.list.d/proposed.list    sudo apt-get -qy update && sudo apt-get -qy install cloud-init    sudo rm -Rf /var/lib/cloud /var/log/cloud-init*    sudo sed -i '/cloudconfig/d' /etc/fstab    sudo reboot 3. login to system and look around.    The target disk should be partitioned with 2 partitions.    $ grep [sv]db /proc/partitions    253 16 41943040 vdb    253 17 27682406 vdb1    253 18 14259200 vdb2    There should entries in /etc/fstab for the configured devices    $ cat /etc/fstab    LABEL=cloudimg-rootfs / ext4 defaults 0 0    LABEL=UEFI /boot/efi vfat defaults 0 0    /dev/vdb1 /mnt2 auto defaults,nofail,x-systemd.requires=cloud-init.service,comment=cloudconfig 0 2    /dev/vdb2 none swap sw,comment=cloudconfig 0 0    A 'mount -a' will mount the necessary devices.    Note, these should ideally be already mounted, but an as-yet unidentified    issue (to be fixed in bug 1642383) means they are not mounted on first    boot.    $ mount -a    $ df -h /mnt2    Filesystem Size Used Avail Use% Mounted on    /dev/vdb1 26G 45M 25G 1% /mnt2    There should be swap used.    $ free              total used free shared buff/cache available    Mem: 2047792 73984 1804508 3252 169300 1825896    Swap: 14259196 0 14259196    $ grep [vs]db2 /proc/swaps    /dev/vdb2 partition 14259196 0 -1 [Regression Potential] Change from using Megabytes to Sectors could have caused math errors, most likely with sector sizes other than 512. Partitioning with sfdisk was broken previously, so it wont be worse. === End SRU Template === Specifically, we get the following output in cc_disk_setup.exec_mkpart_mbr: sfdisk: --Linux option is unnecessary and deprecated sfdisk: unsupported unit 'M' and the manpage says:        -u, --unit S               Deprecated option. Only the sector unit is supported. So we'll need to shift to using sectors. Related bugs:  * bug 1642383: Unable to configure swap space on ephemeral disk in Azure
2016-12-16 14:44:51 Scott Moser description === Begin SRU Template === [Impact] Cloud-init has function to partition disks on devices. Creating partitions on a disk no longer works with sfdisk as recent versions of sfdisk no accept the unit 'M' as input, this function is broken. [Test Case] 1. Launch an instance with provided user-data    On Azure, this will work:      #cloud-config      disk_setup:        ephemeral0:            table_type: mbr            layout: [66, [33, 82]]            overwrite: True      fs_setup:        - device: ephemeral0.1          filesystem: ext4        - device: ephemeral0.2          filesystem: swap      mounts:        - ["ephemeral0.1", "/mnt2"]        - ["ephemeral0.2", "none", "swap", "sw", "0", "0"]    On a typical kvm openstack use:      #cloud-config      disk_setup:        /dev/vdb:            table_type: mbr            layout: [66, [33, 82]]            overwrite: True      fs_setup:        - device: /dev/vdb1          filesystem: ext4        - device: /dev/vdb2          filesystem: swap      mounts:        - ["/dev/vdb1", "/mnt2"]        - ["/dev/vdb2", "none", "swap", "sw", "0", "0"] 2. Add proposed, update, and reboot as fresh instance.    # enable proposed echo deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc)-proposed main | sudo tee /etc/apt/sources.list.d/proposed.list    sudo apt-get -qy update && sudo apt-get -qy install cloud-init    sudo rm -Rf /var/lib/cloud /var/log/cloud-init*    sudo sed -i '/cloudconfig/d' /etc/fstab    sudo reboot 3. login to system and look around.    The target disk should be partitioned with 2 partitions.    $ grep [sv]db /proc/partitions    253 16 41943040 vdb    253 17 27682406 vdb1    253 18 14259200 vdb2    There should entries in /etc/fstab for the configured devices    $ cat /etc/fstab    LABEL=cloudimg-rootfs / ext4 defaults 0 0    LABEL=UEFI /boot/efi vfat defaults 0 0    /dev/vdb1 /mnt2 auto defaults,nofail,x-systemd.requires=cloud-init.service,comment=cloudconfig 0 2    /dev/vdb2 none swap sw,comment=cloudconfig 0 0    A 'mount -a' will mount the necessary devices.    Note, these should ideally be already mounted, but an as-yet unidentified    issue (to be fixed in bug 1642383) means they are not mounted on first    boot.    $ mount -a    $ df -h /mnt2    Filesystem Size Used Avail Use% Mounted on    /dev/vdb1 26G 45M 25G 1% /mnt2    There should be swap used.    $ free              total used free shared buff/cache available    Mem: 2047792 73984 1804508 3252 169300 1825896    Swap: 14259196 0 14259196    $ grep [vs]db2 /proc/swaps    /dev/vdb2 partition 14259196 0 -1 [Regression Potential] Change from using Megabytes to Sectors could have caused math errors, most likely with sector sizes other than 512. Partitioning with sfdisk was broken previously, so it wont be worse. === End SRU Template === Specifically, we get the following output in cc_disk_setup.exec_mkpart_mbr: sfdisk: --Linux option is unnecessary and deprecated sfdisk: unsupported unit 'M' and the manpage says:        -u, --unit S               Deprecated option. Only the sector unit is supported. So we'll need to shift to using sectors. Related bugs:  * bug 1642383: Unable to configure swap space on ephemeral disk in Azure === Begin SRU Template === [Impact] Cloud-init has function to partition disks on devices. Creating partitions on a disk no longer works with sfdisk as recent versions of sfdisk no accept the unit 'M' as input, this function is broken. [Test Case] 1. Launch an instance with provided user-data    On Azure, this will work:      #cloud-config      disk_setup:        ephemeral0:            table_type: mbr            layout: [66, [33, 82]]            overwrite: True      fs_setup:        - device: ephemeral0.1          filesystem: ext4        - device: ephemeral0.2          filesystem: swap      mounts:        - ["ephemeral0.1", "/mnt2"]        - ["ephemeral0.2", "none", "swap", "sw", "0", "0"]    On a typical kvm openstack use:      #cloud-config      disk_setup:        /dev/vdb:            table_type: mbr            layout: [66, [33, 82]]            overwrite: True      fs_setup:        - device: /dev/vdb1          filesystem: ext4        - device: /dev/vdb2          filesystem: swap      mounts:        - ["/dev/vdb1", "/mnt2"]        - ["/dev/vdb2", "none", "swap", "sw", "0", "0"] 2. Add proposed, update, and reboot as fresh instance.    # enable proposed    echo deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc)-proposed main | sudo tee /etc/apt/sources.list.d/proposed.list sudo apt-get -qy update && sudo apt-get -qy install cloud-init </dev/null sudo rm -Rf /var/lib/cloud /var/log/cloud-init* sudo sed -i '/cloudconfig/d' /etc/fstab sudo reboot 3. login to system and look around.    The target disk should be partitioned with 2 partitions.    $ grep [sv]db /proc/partitions    253 16 41943040 vdb    253 17 27682406 vdb1    253 18 14259200 vdb2    There should entries in /etc/fstab for the configured devices    $ cat /etc/fstab    LABEL=cloudimg-rootfs / ext4 defaults 0 0    LABEL=UEFI /boot/efi vfat defaults 0 0    /dev/vdb1 /mnt2 auto defaults,nofail,x-systemd.requires=cloud-init.service,comment=cloudconfig 0 2    /dev/vdb2 none swap sw,comment=cloudconfig 0 0    A 'mount -a' will mount the necessary devices.    Note, these should ideally be already mounted, but an as-yet unidentified    issue (to be fixed in bug 1642383) means they are not mounted on first    boot.    $ mount -a    $ df -h /mnt2    Filesystem Size Used Avail Use% Mounted on    /dev/vdb1 26G 45M 25G 1% /mnt2    There should be swap used.    $ free              total used free shared buff/cache available    Mem: 2047792 73984 1804508 3252 169300 1825896    Swap: 14259196 0 14259196    $ grep [vs]db2 /proc/swaps    /dev/vdb2 partition 14259196 0 -1 [Regression Potential] Change from using Megabytes to Sectors could have caused math errors, most likely with sector sizes other than 512. Partitioning with sfdisk was broken previously, so it wont be worse. === End SRU Template === Specifically, we get the following output in cc_disk_setup.exec_mkpart_mbr: sfdisk: --Linux option is unnecessary and deprecated sfdisk: unsupported unit 'M' and the manpage says:        -u, --unit S               Deprecated option. Only the sector unit is supported. So we'll need to shift to using sectors. Related bugs:  * bug 1642383: Unable to configure swap space on ephemeral disk in Azure
2016-12-16 14:52:59 Scott Moser description === Begin SRU Template === [Impact] Cloud-init has function to partition disks on devices. Creating partitions on a disk no longer works with sfdisk as recent versions of sfdisk no accept the unit 'M' as input, this function is broken. [Test Case] 1. Launch an instance with provided user-data    On Azure, this will work:      #cloud-config      disk_setup:        ephemeral0:            table_type: mbr            layout: [66, [33, 82]]            overwrite: True      fs_setup:        - device: ephemeral0.1          filesystem: ext4        - device: ephemeral0.2          filesystem: swap      mounts:        - ["ephemeral0.1", "/mnt2"]        - ["ephemeral0.2", "none", "swap", "sw", "0", "0"]    On a typical kvm openstack use:      #cloud-config      disk_setup:        /dev/vdb:            table_type: mbr            layout: [66, [33, 82]]            overwrite: True      fs_setup:        - device: /dev/vdb1          filesystem: ext4        - device: /dev/vdb2          filesystem: swap      mounts:        - ["/dev/vdb1", "/mnt2"]        - ["/dev/vdb2", "none", "swap", "sw", "0", "0"] 2. Add proposed, update, and reboot as fresh instance.    # enable proposed    echo deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc)-proposed main | sudo tee /etc/apt/sources.list.d/proposed.list sudo apt-get -qy update && sudo apt-get -qy install cloud-init </dev/null sudo rm -Rf /var/lib/cloud /var/log/cloud-init* sudo sed -i '/cloudconfig/d' /etc/fstab sudo reboot 3. login to system and look around.    The target disk should be partitioned with 2 partitions.    $ grep [sv]db /proc/partitions    253 16 41943040 vdb    253 17 27682406 vdb1    253 18 14259200 vdb2    There should entries in /etc/fstab for the configured devices    $ cat /etc/fstab    LABEL=cloudimg-rootfs / ext4 defaults 0 0    LABEL=UEFI /boot/efi vfat defaults 0 0    /dev/vdb1 /mnt2 auto defaults,nofail,x-systemd.requires=cloud-init.service,comment=cloudconfig 0 2    /dev/vdb2 none swap sw,comment=cloudconfig 0 0    A 'mount -a' will mount the necessary devices.    Note, these should ideally be already mounted, but an as-yet unidentified    issue (to be fixed in bug 1642383) means they are not mounted on first    boot.    $ mount -a    $ df -h /mnt2    Filesystem Size Used Avail Use% Mounted on    /dev/vdb1 26G 45M 25G 1% /mnt2    There should be swap used.    $ free              total used free shared buff/cache available    Mem: 2047792 73984 1804508 3252 169300 1825896    Swap: 14259196 0 14259196    $ grep [vs]db2 /proc/swaps    /dev/vdb2 partition 14259196 0 -1 [Regression Potential] Change from using Megabytes to Sectors could have caused math errors, most likely with sector sizes other than 512. Partitioning with sfdisk was broken previously, so it wont be worse. === End SRU Template === Specifically, we get the following output in cc_disk_setup.exec_mkpart_mbr: sfdisk: --Linux option is unnecessary and deprecated sfdisk: unsupported unit 'M' and the manpage says:        -u, --unit S               Deprecated option. Only the sector unit is supported. So we'll need to shift to using sectors. Related bugs:  * bug 1642383: Unable to configure swap space on ephemeral disk in Azure === Begin SRU Template === [Impact] Cloud-init has function to partition disks on devices. Creating partitions on a disk no longer works with sfdisk as recent versions of sfdisk no accept the unit 'M' as input, this function is broken. [Test Case] 1. Launch an instance with provided user-data    On Azure, this will work:      #cloud-config      disk_setup:        ephemeral0:            table_type: mbr            layout: [66, [33, 82]]            overwrite: True      fs_setup:        - device: ephemeral0.1          filesystem: ext4        - device: ephemeral0.2          filesystem: swap      mounts:        - ["ephemeral0.1", "/mnt2"]        - ["ephemeral0.2", "none", "swap", "sw", "0", "0"]    On a typical kvm openstack use:      #cloud-config      disk_setup:        /dev/vdb:            table_type: mbr            layout: [66, [33, 82]]            overwrite: True      fs_setup:        - device: /dev/vdb1          filesystem: ext4        - device: /dev/vdb2          filesystem: swap      mounts:        - ["/dev/vdb1", "/mnt2"]        - ["/dev/vdb2", "none", "swap", "sw", "0", "0"] 2. Add proposed, update, and reboot as fresh instance.    # enable proposed    echo deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc)-proposed main | sudo tee /etc/apt/sources.list.d/proposed.list    sudo apt-get -qy update && sudo apt-get -qy install cloud-init </dev/null # clear out previous state in cloud-init    sudo rm -Rf /var/lib/cloud /var/log/cloud-init* # wipe the partition table and filesystem from the disk sudo dd if=/dev/zero of=/dev/[sv]db bs=1M count=10 # remove cloud-init written entries in /etc/fstab to mimic clean first boot    sudo sed -i '/cloudconfig/d' /etc/fstab    sudo reboot 3. login to system and look around.    The target disk should be partitioned with 2 partitions.    $ grep [sv]db /proc/partitions    253 16 41943040 vdb    253 17 27682406 vdb1    253 18 14259200 vdb2    There should entries in /etc/fstab for the configured devices    $ cat /etc/fstab    LABEL=cloudimg-rootfs / ext4 defaults 0 0    LABEL=UEFI /boot/efi vfat defaults 0 0    /dev/vdb1 /mnt2 auto defaults,nofail,x-systemd.requires=cloud-init.service,comment=cloudconfig 0 2    /dev/vdb2 none swap sw,comment=cloudconfig 0 0    A 'mount -a' will mount the necessary devices.    Note, these should ideally be already mounted, but an as-yet unidentified    issue (to be fixed in bug 1642383) means they are not mounted on first    boot.    $ mount -a    $ df -h /mnt2    Filesystem Size Used Avail Use% Mounted on    /dev/vdb1 26G 45M 25G 1% /mnt2    There should be swap used.    $ free              total used free shared buff/cache available    Mem: 2047792 73984 1804508 3252 169300 1825896    Swap: 14259196 0 14259196    $ grep [vs]db2 /proc/swaps    /dev/vdb2 partition 14259196 0 -1 [Regression Potential] Change from using Megabytes to Sectors could have caused math errors, most likely with sector sizes other than 512. Partitioning with sfdisk was broken previously, so it wont be worse. === End SRU Template === Specifically, we get the following output in cc_disk_setup.exec_mkpart_mbr: sfdisk: --Linux option is unnecessary and deprecated sfdisk: unsupported unit 'M' and the manpage says:        -u, --unit S               Deprecated option. Only the sector unit is supported. So we'll need to shift to using sectors. Related bugs:  * bug 1642383: Unable to configure swap space on ephemeral disk in Azure
2016-12-16 14:55:12 Scott Moser tags verification-needed verification-done
2016-12-16 15:08:17 Barry Warsaw bug task added ubuntu-image
2016-12-16 20:07:21 Steve Langasek ubuntu-image: status New Invalid
2016-12-19 16:27:40 Launchpad Janitor cloud-init (Ubuntu Xenial): status Fix Committed Fix Released
2016-12-19 16:27:53 Robie Basak removed subscriber Ubuntu Stable Release Updates Team
2016-12-23 17:38:05 Scott Moser cloud-init: status Fix Committed Fix Released
2017-01-12 19:45:52 Brian Murray cloud-init (Ubuntu Yakkety): status In Progress Fix Committed
2017-01-12 19:45:55 Brian Murray bug added subscriber Ubuntu Stable Release Updates Team
2017-01-12 19:46:50 Brian Murray tags verification-done
2017-01-12 19:46:52 Brian Murray tags verification-needed
2017-01-20 17:46:20 Scott Moser tags verification-needed verification-done
2017-01-30 18:18:12 Launchpad Janitor cloud-init (Ubuntu Yakkety): status Fix Committed Fix Released
2023-05-10 08:15:14 James Falcon bug watch added https://github.com/canonical/cloud-init/issues/2556