~smoser/cloud-utils:fix/1850257-drop-cloud-utils-ecua

Last commit made on 2019-10-29
Get this branch:
git clone -b fix/1850257-drop-cloud-utils-ecua 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:
fix/1850257-drop-cloud-utils-ecua
Repository:
lp:~smoser/cloud-utils

Recent commits

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.

8418dfe... by Scott Moser

White space cleanup. Remove trailing space and tabs.