Merge ~paride/+git/cloud-utils:ubuntu/devel into ~paride/+git/cloud-utils:ubuntu/0.32-18-g5b59de87-0ubuntu1

Proposed by Paride Legovini
Status: Merged
Merged at revision: 16b6aeb87da7c74053fa71739085d8c3d315727d
Proposed branch: ~paride/+git/cloud-utils:ubuntu/devel
Merge into: ~paride/+git/cloud-utils:ubuntu/0.32-18-g5b59de87-0ubuntu1
Diff against target: 113 lines (+19/-26)
3 files modified
bin/growpart (+3/-3)
debian/changelog (+14/-0)
test/test-growpart-lvm (+2/-23)
Reviewer Review Type Date Requested Status
Christian Ehrhardt  (community) Approve
Canonical Server Pending
Review via email: mp+406925@code.launchpad.net

Commit message

MP to ease review and sponsorship of a new snapshot of cloud-utils. The branch has already been reviewed on GitHub by tableflip [1], so this should be good to be uploaded. To generate the upstream tarball do:

  git deborig 45fe84a57724dc4b2e261d6f7d1831c8b01b2069

Note: the target branch is what we have in Impish right now.

Thanks!

[1] https://github.com/canonical/cloud-utils/pull/32

To post a comment you must log in.
Revision history for this message
Paride Legovini (paride) wrote :

Requested review from canonical-server-core-reviewers as cloud-utils is not in the 'server' packageset. It's in the 'cloud' packageset, but we don't have team members there anymore.

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

grabbing this one ...

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

your base is equivalent
$ git diff paride/ubuntu/0.32-18-g5b59de87-0ubuntu1..pkg/import/0.32-18-g5b59de87-0ubuntu1
<nothing>

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

And your picks into packaging match upstreams history
$ git range-diff 5b59de87d61432442883a8181b0d8999fe6285d4..45fe84a57724dc4b2e261d6f7d1831c8b01b2069 fd528cd597b3df17f0db2bb34a5ef0f90e41f031..45fe84a57724dc4b2e261d6f7d1831c8b01b2069
1: 3cde834 = 1: 3cde834 growpart: Use LANG=C to parse sfdisk output
2: af546af = 2: af546af growpart: change flock call to use short option for Busybox compatibility
3: 03aa997 = 3: 03aa997 Fix issue LP: #1928167 growpart doesn't work when LANG=cs_CZ.UTF-8
4: 45fe84a = 4: 45fe84a Merge test changes from test-growpart to test-growpart-lvm

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Changelog entries are ok to represent this kind of merge-from-upstream, but references are correct as well.

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

I think this is mostly fine, but on the packaging side I have one nit pick
  Maintainer: Scott Moser <email address hidden>
no more is correct.
Do you want to set yourself Paride or a team with an email address?

review: Needs Information
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

I've compared the git diff (to the latest version) to a debdiff of this build vs the one in the archive. It is a full match so there is no forgotten little detail.

Revision history for this message
Paride Legovini (paride) wrote :

Thanks for reviewing Christian! I agree the Maintainer is now outdated, and my proposal is to set it to the standard "Ubuntu Developers" value. We have the same in cloud-init:

  Maintainer: Ubuntu Developers <email address hidden>

so I think it's reasonable to have the same on cloud-utils. I submitted a PR for this:

  https://github.com/canonical/cloud-utils/pull/33

However if that's OK for let's upload with the Maintainer as it is for now, saving us some review rounds (the above PR + the merge to the packaging branch + your review for the sponsorship). Once that lands the next upload will have the updated Maintainer.

Revision history for this message
Utkarsh Gupta (utkarsh) wrote :

+1, having Ubuntu Developers as the maintainer is better than having an individual person, et al. And that PR makes sense, approving that and merging on GitHub.

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

That is fine with me, @paride would you merge that into your proposed branch - then we can sponsor.

Revision history for this message
Paride Legovini (paride) wrote :

Merged. Now the branch name is bad as it doesn't reflect the package version it contains, but no big deal as it's not published anywhere. I'll chose a better name next time.

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

LGTM now, sponsoring

review: Approve
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Did another debdiff check, upload look like what we want.
Uploaded

Uploading to ubuntu (via ftp to upload.ubuntu.com):
  Uploading cloud-utils_0.32-22-g45fe84a5-0ubuntu1.dsc: done.
  Uploading cloud-utils_0.32-22-g45fe84a5.orig.tar.xz: done.
  Uploading cloud-utils_0.32-22-g45fe84a5-0ubuntu1.debian.tar.xz: done.
  Uploading cloud-utils_0.32-22-g45fe84a5-0ubuntu1_source.buildinfo: done.
  Uploading cloud-utils_0.32-22-g45fe84a5-0ubuntu1_source.changes: done.
Successfully uploaded packages.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/bin/growpart b/bin/growpart
2index 994b258..541b4ab 100755
3--- a/bin/growpart
4+++ b/bin/growpart
5@@ -162,7 +162,7 @@ lock_disk() {
6 # Do not use --nonblock or --timeout as udev may be already processing
7 # the disk and we must wait until it has released the disk to
8 # proceed. Failure to obtain exclusive lock is fatal to growpart.
9- rq flock flock --exclusive $FLOCK_DISK_FD ||
10+ rq flock flock -x $FLOCK_DISK_FD ||
11 fail "Error while obtaining exclusive lock on $DISK"
12 debug 1 "FLOCK: $disk: obtained exclusive lock"
13 }
14@@ -230,7 +230,7 @@ get_sfdisk_version() {
15 return 0
16 }
17 # expected output: sfdisk from util-linux 2.25.2
18- out=$(sfdisk --version) ||
19+ out=$(LANG=C sfdisk --version) ||
20 { error "failed to get sfdisk version"; return 1; }
21 set -- $out
22 ver=$4
23@@ -292,7 +292,7 @@ resize_sfdisk() {
24 local pt_start pt_size pt_end max_end new_size change_info dpart
25 local sector_num sector_size disk_size tot out
26
27- rqe sfd_list sfdisk --list --unit=S "$DISK" >"$tmp" ||
28+ LANG=C rqe sfd_list sfdisk --list --unit=S "$DISK" >"$tmp" ||
29 fail "failed: sfdisk --list $DISK"
30 if [ "${SFDISK_VERSION}" -lt ${SFDISK_2_26} ]; then
31 # exected output contains: Units: sectors of 512 bytes, ...
32diff --git a/debian/changelog b/debian/changelog
33index 7c66aea..c2ae5df 100644
34--- a/debian/changelog
35+++ b/debian/changelog
36@@ -1,3 +1,17 @@
37+cloud-utils (0.32-22-g45fe84a5-0ubuntu1) impish; urgency=medium
38+
39+ * New upstream snapshot.
40+ - Merge test changes from test-growpart to test-growpart-lvm
41+ [Dan Bungert] (LP: #1929885)
42+ - Fix issue LP: #1928167 growpart doesn't work when LANG=cs_CZ.UTF-8
43+ [Amy Chen]
44+ - growpart: change flock call to use short option for Busybox
45+ compatibility [Dermot Bradley]
46+ - growpart: Use LANG=C to parse sfdisk output [Nicolas Chauvet]
47+ (LP: #1860479)
48+
49+ -- Paride Legovini <paride@ubuntu.com> Thu, 05 Aug 2021 11:58:37 +0200
50+
51 cloud-utils (0.32-18-g5b59de87-0ubuntu1) hirsute; urgency=medium
52
53 * New upstream snapshot.
54diff --git a/test/test-growpart-lvm b/test/test-growpart-lvm
55index b8f38dc..e0f1686 100755
56--- a/test/test-growpart-lvm
57+++ b/test/test-growpart-lvm
58@@ -34,25 +34,10 @@ rq() {
59 "$@" > "$out" 2>&1 || { echo "FAILED:" "$@"; cat "$out"; return 1; }
60 }
61
62-clearparts() {
63- # read /proc/partitions, clearing any partitions on dev (/dev/loopX)
64- local dev="$1"
65- local short=${dev##*/} parts="" part=""
66- parts=$(awk '$4 ~ m { sub(m,"",$4); print $4 }' \
67- "m=${short}p" /proc/partitions)
68- [ -z "$parts" ] && return
69- echo "clearing parts [$parts] from $dev"
70- for part in $parts; do
71- echo "delpart $LODEV $part"
72- delpart $LODEV $part
73- done
74- udevadm settle
75-}
76 cleanup() {
77 if [ -n "$MP" ]; then
78 echo "unmount $MP";
79 umount "$MP";
80- udevadm settle
81 fi
82 if [ -n "$VG" ]; then
83 echo "removing vg $VG"
84@@ -61,13 +46,10 @@ cleanup() {
85 if [ -n "$PV" ]; then
86 echo "removing pv $PV"
87 rq lvm pvremove --force --yes "$PV"
88- udevadm settle
89 fi
90 if [ -n "$LODEV" ]; then
91- clearparts "$LODEV"
92 echo "losetup --detach $LODEV";
93 losetup --detach "$LODEV";
94- udevadm settle
95 fi
96 [ ! -d "${TEMP_D}" ] || rm -Rf "${TEMP_D}"
97 }
98@@ -104,13 +86,10 @@ echo "2048," | rq sfdisk $label_flag --force --unit=S "$img"
99
100 truncate --size "$size" "$img"
101
102-lodev=$(losetup --show --find "$img")
103+lodev=$(losetup --show --find --partscan "$img")
104 LODEV=$lodev
105+udevadm settle
106 echo "set up $lodev"
107-
108-# clear any old ones that might be around (LP: #1136781)
109-clearparts "$lodev"
110-partx --add $lodev
111 lodevpart="${lodev}p1"
112
113 vg="testvg-$$"

Subscribers

People subscribed via source and target branches

to all changes: