Merge ~lamoura/ubuntu/+source/ubuntu-advantage-tools:upload-27.2.2-impish into ubuntu/+source/ubuntu-advantage-tools:ubuntu/devel

Proposed by Lucas Albuquerque Medeiros de Moura
Status: Merged
Approved by: Lucas Kanashiro
Approved revision: b64c1da6ed1133a2fe2d3e6fc70a29f7d7d9fac2
Merged at revision: b64c1da6ed1133a2fe2d3e6fc70a29f7d7d9fac2
Proposed branch: ~lamoura/ubuntu/+source/ubuntu-advantage-tools:upload-27.2.2-impish
Merge into: ubuntu/+source/ubuntu-advantage-tools:ubuntu/devel
Diff against target: 28 lines (+9/-1)
2 files modified
debian/changelog (+8/-0)
debian/ubuntu-advantage-tools.postinst (+1/-1)
Reviewer Review Type Date Requested Status
Lucas Kanashiro (community) Approve
Athos Ribeiro (community) Approve
Review via email: mp+406232@code.launchpad.net

Description of the change

This release will fix postinst problems where users have cloud-init in the system but cloud-id fails to run. We will no longer fail postinst in those situations

To post a comment you must log in.
Revision history for this message
Robie Basak (racb) :
Revision history for this message
Lucas Albuquerque Medeiros de Moura (lamoura) :
Revision history for this message
Athos Ribeiro (athos-ribeiro) wrote :

LGTM. While there are additional changes other than the regression fix itself, they are limited to changes to the test suite.

Will approve once Robie's comment on the changelog is addressed.

Revision history for this message
Athos Ribeiro (athos-ribeiro) wrote :

Note that, as Robie pointed out, we still need a not-SRU-reviewer core dev to do the actual review

review: Approve
Revision history for this message
Bryce Harrington (bryce) wrote :

On Tue, Jul 27, 2021 at 02:15:43PM -0000, Lucas Albuquerque Medeiros de Moura wrote:
>
>
> Diff comments:
>
> > diff --git a/debian/changelog b/debian/changelog
> > index 2441322..2a3b8b3 100644
> > --- a/debian/changelog
> > +++ b/debian/changelog
> > @@ -1,3 +1,10 @@
> > +ubuntu-advantage-tools (27.2.2~21.10) impish; urgency=medium
> > +
> > + * d/tools.postinst:
> > + - Do not fail in postinst if cloud-init did not run. (LP: #1936833)
>
> Fair enough Robie, but what should I reflect on the changelog entry to make users aware of that ?
> Would addding something like "Fix regression on release 27.2.1" enough ?
> Sorry, this is the first time I am working a regression fix :(

I like to think from the context of someone that might think they are
experiencing this regression, and describe it in a way that would match
how the behavior would look from their point of view. The goal there
being to help them identify whether upgrading would be worthwhile.

> > + -- Lucas Moura <email address hidden> Tue, 27 Jul 2021 10:09:18 -0300
> > +
> > ubuntu-advantage-tools (27.2.1~21.10.1) impish; urgency=medium
> >
> > * d/control:
>
>
> --
> https://code.launchpad.net/~lamoura/ubuntu/+source/ubuntu-advantage-tools/+git/ubuntu-advantage-tools/+merge/406232
> Your team Canonical Server Core Reviewers is requested to review the proposed merge of ~lamoura/ubuntu/+source/ubuntu-advantage-tools:upload-27.2.2-impish into ubuntu/+source/ubuntu-advantage-tools:ubuntu/devel.

Revision history for this message
Lucas Kanashiro (lucaskanashiro) wrote :

Lucas, thanks for removing the test changes, it will make the SRU team happy :) Also for appending .1 to the version string.

I rebuilt the package and ran autopkgtest against it locally and everything seems OK.

review: Approve
Revision history for this message
Lucas Kanashiro (lucaskanashiro) wrote :

Package uploaded:

$ git push pkg upload/27.2.2_21.10.1
Enumerating objects: 13, done.
Counting objects: 100% (13/13), done.
Delta compression using up to 32 threads
Compressing objects: 100% (9/9), done.
Writing objects: 100% (9/9), 1.27 KiB | 1.27 MiB/s, done.
Total 9 (delta 6), reused 0 (delta 0)
To ssh://git.launchpad.net/ubuntu/+source/ubuntu-advantage-tools
 * [new tag] upload/27.2.2_21.10.1 -> upload/27.2.2_21.10.1
$ dput ubuntu ../ubuntu-advantage-tools_27.2.2~21.10.1_source.changes
Checking signature on .changes
gpg: ../ubuntu-advantage-tools_27.2.2~21.10.1_source.changes: Valid signature from F823A2729883C97C
Checking signature on .dsc
gpg: ../ubuntu-advantage-tools_27.2.2~21.10.1.dsc: Valid signature from F823A2729883C97C
Uploading to ubuntu (via ftp to upload.ubuntu.com):
  Uploading ubuntu-advantage-tools_27.2.2~21.10.1.dsc: done.
  Uploading ubuntu-advantage-tools_27.2.2~21.10.1.tar.xz: done.
  Uploading ubuntu-advantage-tools_27.2.2~21.10.1_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/debian/changelog b/debian/changelog
2index 2441322..266050a 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,11 @@
6+ubuntu-advantage-tools (27.2.2~21.10.1) impish; urgency=medium
7+
8+ * d/tools.postinst:
9+ - Do not fail in postinst if cloud-init did not run.
10+ This fixes the regression introduced in 27.2.1. (LP: #1936833)
11+
12+ -- Lucas Moura <lucas.moura@canonical.com> Tue, 27 Jul 2021 10:09:18 -0300
13+
14 ubuntu-advantage-tools (27.2.1~21.10.1) impish; urgency=medium
15
16 * d/control:
17diff --git a/debian/ubuntu-advantage-tools.postinst b/debian/ubuntu-advantage-tools.postinst
18index bc3187f..f99c02e 100644
19--- a/debian/ubuntu-advantage-tools.postinst
20+++ b/debian/ubuntu-advantage-tools.postinst
21@@ -291,7 +291,7 @@ notify_wrong_fips_metapackage_on_cloud() {
22 fips_metapkg="ubuntu-fips"
23
24 cloud_id=""
25- if command -v "cloud-id" > /dev/null ; then
26+ if command -v "cloud-id" > /dev/null && [ -f /run/cloud-init/instance-data.json ] ; then
27 cloud_id=$(cloud-id)
28 fi
29

Subscribers

People subscribed via source and target branches

to status/vote changes: