growpart can't resize partition with two digits

Bug #1499600 reported by Ilya Sviridov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-utils (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Release version
=====================
lsb_release -rd
Description: Ubuntu 14.04.3 LTS
Release: 14.04

package version
=====================
apt-cache policy cloud-utils
cloud-utils:
  Installed: 0.27-0ubuntu9.1
  Candidate: 0.27-0ubuntu9.1
  Version table:
 *** 0.27-0ubuntu9.1 0
        500 http://MIRROR/ubuntu/ trusty-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     0.27-0ubuntu9 0
        500 http://MIRROR/ubuntu/ trusty/main amd64 Packages

behavior
=====================
growpart -v /dev/sda 10
update-partition set to true
found MBR partition table (id = 83)
geometry is -C 48561 -H 255 -S 63. total size=780132465
## sfdisk -C 48561 -H 255 -S 63 --unit=S --dump /dev/sda
# partition table of /dev/sda
unit: sectors

/dev/sda1 : start= 2048, size= 20973568, Id=83, bootable
/dev/sda2 : start= 20975616, size= 133120, Id=83
/dev/sda3 : start= 21110782, size=759021683, Id= 5
/dev/sda4 : start= 0, size= 0, Id= 0
/dev/sda5 : start= 21110784, size= 2107392, Id=83
/dev/sda6 : start= 23220224, size= 41951232, Id=83
/dev/sda7 : start= 65173504, size= 2107392, Id=83
/dev/sda8 : start= 67282944, size= 2107392, Id=83
/dev/sda9 : start= 69392384, size= 31248384, Id=82
/dev/sda10: start=100642816, size= 5851136, Id=83

FAILED: failed to get start and end for /dev/sda10 in /dev/sda

Looks like because of no space between '/dev/sda10' and ':' parsing doesn't work

Expected behavior
=====================
Extending partition without errors

description: updated
no longer affects: cloud-utils (Ubuntu)
affects: cloud-utils → cloud-utils (Ubuntu)
Robie Basak (racb)
Changed in cloud-utils (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Scott Moser (smoser) wrote :

I'm pretty sure this is fixed.
I've just tried partitioning a disk with gpt and 11 partitions on xenial and then run
$ sudo growpart /dev/vdb 11
sudo: unable to resolve host xenial-20160510-175548
CHANGED: partition=11 start=206848 old: size=204800 end=411648 new: size=83679199,end=83886047

please feel free to re-open if you think otherwise.

Changed in cloud-utils (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.