~smoser/cloud-utils:feature/growpart-add-sectors

Last commit made on 2020-02-24
Get this branch:
git clone -b feature/growpart-add-sectors https://git.launchpad.net/~smoser/cloud-utils
Only Scott Moser can upload to this branch. If you are Scott Moser please log in for upload directions.

Branch merges

Branch information

Name:
feature/growpart-add-sectors
Repository:
lp:~smoser/cloud-utils

Recent commits

0224fd1... by Scott Moser

Add sector size to growpart output.

This adds the sector size (either 512 or 4096) to output of
growpart, so instead of:

  CHANGED: partition=3 start=731136 old: size=819200 end=1550336
     new: size=3330048 end=4061184

you'll now see:

  CHANGED: partition=3 ssize=512 start=731136 old: size=819200 end=1550336 \
     new: size=3330048 end=4061184

1691678... by Scott Moser

Drop the python2 only cloud-utils-euca package and tools.

euca2ools is python2 only, so tools that use it are no longer
maintainable. These tools were not specifically dependent on
euca2ools. The user could set EC2PRE='ec2-' and the tools would
then invoke the ec2-api-tool commands rather than their euca-
counterparts.

The same is true of ubuntu-ec2-run, but *it* would default to
ec2- as the prefix by default. However, it has not been maintained
for quite a while. So just remove it also.

LP: #1850257

ef42f6b... by Scott Moser

test-growpart: fix logic error resulting in test failure.

In test-growpart, the cleanup code should unmount if the tracking
variable "MP" has a non-empty value, not an empty value. An empty
value would indicate that the mount has *not* been done.

This is a regression caused by bug 1835124.

LP: #1842682

51ef36d... by Scott Moser

Fix race condition in test-growpart teardown seen on ppc64el.

The test case 'test-growpart' seemed to have a race condition that
would sometimes be seen on the Ubuntu autopkg builder infrastructure.
The failure was only seen on ppc64el.

The fix here is to use 'udevadm settle' liberally in teardown.
I have admittedly not thought this completely through as to what
*could* cause this scenario, and 'udevadm settle' often has the same
effect as 'sleep 1'. That said, this is just in testcase teardown
so there is no harm in making it work even if this is not the fully
"proper" fix.

Also here is removal of code that was not used in test-growpart-fsimage.
There, MP and LODEV were never set, so the removed cleanup would
never run.

LP: #1836593

fadd07f... by Scott Moser

growpart: Fix bug when file image ends in a digit.

If the input to growpart was a file that ended in a digit (my.disk0)
then growing partition would fail because sfdisk output will
uses a 'p' to delimit the filename and partition name.

The fix here is safe/dumb at the cost of a bit of verbosity.

LP: #1835124

7adb670... by Scott Moser

Fix spelling error in ec2metadata (--reserveration-id).

This just makes ec2metadata correctly take:
  --reservation-id
rather than the broken
  --reserveration-id

Thanks to Daniel Serodio for noticing and reporting the bug.

LP: #1810857

d32cfae... by Scott Moser

tools: rename export-tarball to make-tarball.

make-tarball is the name of this utility in cloud-init and curtin.
Rename it here for consistency.

f62ad22... by Scott Moser

update changelog for 0.31

a31b5bc... by Scott Moser

debian/control: drop Suggests on lxc1

This never actually made it into Ubuntu packaging.
It was added probably for uns-switch usage when mount-image-callback
had support for lxc.

70e241f... by Scott Moser

debian/tests/control: add test growpart-start-matches-size.