Re: [Bug 1936833] Re: package ubuntu-advantage-tools 27.2.1~21.10.1 failed to install/upgrade: installed ubuntu-advantage-tools package post-installation script subprocess returned error exit status 1

2021-07-27 Thread Richard Harding
We'll work to release a hotfix with the landed PR asap.

On Tue, Jul 27, 2021 at 4:15 AM Pieter Houwen
<1936...@bugs.launchpad.net> wrote:
>
> When can we expect this to hit production? I just updated my WSL today
> and I stumbled across this error but I can see from the PR that it is
> already merged.
>
> Should I do anything to fix this or do I need to just wait?
>
> --
> You received this bug notification because you are subscribed to ubuntu-
> advantage-tools in Ubuntu.
> https://bugs.launchpad.net/bugs/1936833
>
> Title:
>   package ubuntu-advantage-tools 27.2.1~21.10.1 failed to
>   install/upgrade: installed ubuntu-advantage-tools package post-
>   installation script subprocess returned error exit status 1
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/1936833/+subscriptions
>

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1936833

Title:
  postinst fails when cloud-init is installed but never ran

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/1936833/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1936833] Re: package ubuntu-advantage-tools 27.2.1~21.10.1 failed to install/upgrade: installed ubuntu-advantage-tools package post-installation script subprocess returned error exit status 1

2021-07-27 Thread Pieter Houwen
When can we expect this to hit production? I just updated my WSL today
and I stumbled across this error but I can see from the PR that it is
already merged.

Should I do anything to fix this or do I need to just wait?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1936833

Title:
  package ubuntu-advantage-tools 27.2.1~21.10.1 failed to
  install/upgrade: installed ubuntu-advantage-tools package post-
  installation script subprocess returned error exit status 1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/1936833/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1936833] Re: package ubuntu-advantage-tools 27.2.1~21.10.1 failed to install/upgrade: installed ubuntu-advantage-tools package post-installation script subprocess returned error exit status 1

2021-07-27 Thread botjaeger
** Description changed:

  This happens when upgrading to Ubuntu 21.10. This is the full error:
  
  Setting up ubuntu-advantage-tools (27.2.1~21.10.1) ...
  ERROR: File not found '/run/cloud-init/instance-data.json'. Provide a
  path to instance data json file using --instance-data   dpkg:
  error processing package ubuntu-advantage-tools (--configure):
  installed ubuntu-advantage-tools package post-installation script
  subprocess returned error exit status 1dpkg:
  dependency problems prevent configuration of ubuntu-minimal:
  ubuntu-minimal depends on ubuntu-advantage-tools; however:
  Package ubuntu-advantage-tools is not configured yet.
  
  ProblemType: Package
  DistroRelease: Ubuntu 21.10
  Package: ubuntu-advantage-tools 27.2.1~21.10.1
  Uname: Linux 5.4.72-microsoft-standard-WSL2 x86_64
  ApportVersion: 2.20.11-0ubuntu67
  Architecture: amd64
  CasperMD5CheckResult: unknown
  Date: Mon Jul 19 14:32:11 2021
  DuplicateSignature:
-  package:ubuntu-advantage-tools:27.2.1~21.10.1
-  Installing new version of config file /etc/ubuntu-advantage/uaclient.conf ...
-  ERROR: File not found '/run/cloud-init/instance-data.json'. Provide a path 
to instance data json file using --instance-data
-  dpkg: error processing package ubuntu-advantage-tools (--configure):
-   installed ubuntu-advantage-tools package post-installation script 
subprocess returned error exit status 1
+  package:ubuntu-advantage-tools:27.2.1~21.10.1
+  Installing new version of config file /etc/ubuntu-advantage/uaclient.conf ...
+  ERROR: File not found '/run/cloud-init/instance-data.json'. Provide a path 
to instance data json file using --instance-data
+  dpkg: error processing package ubuntu-advantage-tools (--configure):
+   installed ubuntu-advantage-tools package post-installation script 
subprocess returned error exit status 1
  ErrorMessage: installed ubuntu-advantage-tools package post-installation 
script subprocess returned error exit status 1
  Python3Details: /usr/bin/python3.9, Python 3.9.6, python3-minimal, 3.9.4-1
  PythonDetails: N/A
  RebootRequiredPkgs: libc6
  RelatedPackageVersions:
-  dpkg 1.20.9ubuntu2
-  apt  2.3.6
+  dpkg 1.20.9ubuntu2
+  apt  2.3.6
  SourcePackage: ubuntu-advantage-tools
  Title: package ubuntu-advantage-tools 27.2.1~21.10.1 failed to 
install/upgrade: installed ubuntu-advantage-tools package post-installation 
script subprocess returned error exit status 1
  UpgradeStatus: Upgraded to impish on 2021-07-19 (0 days ago)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1936833

Title:
  package ubuntu-advantage-tools 27.2.1~21.10.1 failed to
  install/upgrade: installed ubuntu-advantage-tools package post-
  installation script subprocess returned error exit status 1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/1936833/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1936833] Re: package ubuntu-advantage-tools 27.2.1~21.10.1 failed to install/upgrade: installed ubuntu-advantage-tools package post-installation script subprocess returned error exit status 1

2021-07-21 Thread Michael Hudson-Doyle
Could you upload the fix to impish pretty please?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1936833

Title:
  package ubuntu-advantage-tools 27.2.1~21.10.1 failed to
  install/upgrade: installed ubuntu-advantage-tools package post-
  installation script subprocess returned error exit status 1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/1936833/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1936833] Re: package ubuntu-advantage-tools 27.2.1~21.10.1 failed to install/upgrade: installed ubuntu-advantage-tools package post-installation script subprocess returned error exit status 1

2021-07-21 Thread Lucas Albuquerque Medeiros de Moura
We have landed #1743 which should fix this issue

** Changed in: ubuntu-advantage-tools (Ubuntu)
   Status: Confirmed => Fix Committed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1936833

Title:
  package ubuntu-advantage-tools 27.2.1~21.10.1 failed to
  install/upgrade: installed ubuntu-advantage-tools package post-
  installation script subprocess returned error exit status 1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/1936833/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1936833] Re: package ubuntu-advantage-tools 27.2.1~21.10.1 failed to install/upgrade: installed ubuntu-advantage-tools package post-installation script subprocess returned error exit status 1

2021-07-21 Thread Umar Sharief
** Attachment added: "/var/ubuntu-advantage.log"
   
https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/1936833/+attachment/5512464/+files/ubuntu-advantage.log

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1936833

Title:
  package ubuntu-advantage-tools 27.2.1~21.10.1 failed to
  install/upgrade: installed ubuntu-advantage-tools package post-
  installation script subprocess returned error exit status 1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/1936833/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1936833] Re: package ubuntu-advantage-tools 27.2.1~21.10.1 failed to install/upgrade: installed ubuntu-advantage-tools package post-installation script subprocess returned error exit status 1

2021-07-21 Thread Umar Sharief
** Attachment added: "This was generated through cloud-init collect-logs, as 
requested."
   
https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/1936833/+attachment/5512463/+files/cloud-init.tar.gz

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1936833

Title:
  package ubuntu-advantage-tools 27.2.1~21.10.1 failed to
  install/upgrade: installed ubuntu-advantage-tools package post-
  installation script subprocess returned error exit status 1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/1936833/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1936833] Re: package ubuntu-advantage-tools 27.2.1~21.10.1 failed to install/upgrade: installed ubuntu-advantage-tools package post-installation script subprocess returned error exit status 1

2021-07-20 Thread Michael Hudson-Doyle
Here's a PR https://github.com/canonical/ubuntu-advantage-
client/pull/1743

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1936833

Title:
  package ubuntu-advantage-tools 27.2.1~21.10.1 failed to
  install/upgrade: installed ubuntu-advantage-tools package post-
  installation script subprocess returned error exit status 1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/1936833/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1936833] Re: package ubuntu-advantage-tools 27.2.1~21.10.1 failed to install/upgrade: installed ubuntu-advantage-tools package post-installation script subprocess returned error exit status 1

2021-07-20 Thread Michael Hudson-Doyle
You can reproduce this by running "schroot -c impish-amd64 -u root -d /"
and then within the chroot, run "apt-get install -y ubuntu-advantage-
tools cloud-init".

The problem is this bit of the postinst:

if command -v "cloud-id" > /dev/null ; then
  cloud_id=$(cloud-id)
fi

In this situation, cloud-id is present but errors. One option would be
to change this to:

cloud_id=$(cloud-id 2>/dev/null || true)

Or another would be to make the call to cloud-id conditional on the
existence of /run/cloud-init/instance-data.json.

Either way this is currently blocking my efforts to work on a minimal
layer for the live server ISO so it qualifies as pretty annoying :)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1936833

Title:
  package ubuntu-advantage-tools 27.2.1~21.10.1 failed to
  install/upgrade: installed ubuntu-advantage-tools package post-
  installation script subprocess returned error exit status 1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/1936833/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1936833] Re: package ubuntu-advantage-tools 27.2.1~21.10.1 failed to install/upgrade: installed ubuntu-advantage-tools package post-installation script subprocess returned error exit status 1

2021-07-20 Thread Michael Hudson-Doyle
** Changed in: ubuntu-advantage-tools (Ubuntu)
   Status: Incomplete => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1936833

Title:
  package ubuntu-advantage-tools 27.2.1~21.10.1 failed to
  install/upgrade: installed ubuntu-advantage-tools package post-
  installation script subprocess returned error exit status 1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/1936833/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1936833] Re: package ubuntu-advantage-tools 27.2.1~21.10.1 failed to install/upgrade: installed ubuntu-advantage-tools package post-installation script subprocess returned error exit status 1

2021-07-19 Thread Chad Smith
I'm marking this bug as "Incomplete" status at the moment at the top of
the page. When you have a chance to respond with any additional
information about the failed instance, please mark this bug status  back
to  'New' so we get eyes on it quickly. Thanks again!

** Changed in: ubuntu-advantage-tools (Ubuntu)
   Status: Triaged => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1936833

Title:
  package ubuntu-advantage-tools 27.2.1~21.10.1 failed to
  install/upgrade: installed ubuntu-advantage-tools package post-
  installation script subprocess returned error exit status 1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/1936833/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1936833] Re: package ubuntu-advantage-tools 27.2.1~21.10.1 failed to install/upgrade: installed ubuntu-advantage-tools package post-installation script subprocess returned error exit status 1

2021-07-19 Thread Chad Smith
Since this appears to be a WSL-based solution, it would be helpful to
have the following attached to this bug:

Run `cloud-init collect-logs` on the system and attach the cloud-init.tar.gz to 
this bug
Attach /var/log/ubuntu-advantage.log

We can then try to determine the general state of cloud-init and if this
was a race condition on WSL ubuntu images.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1936833

Title:
  package ubuntu-advantage-tools 27.2.1~21.10.1 failed to
  install/upgrade: installed ubuntu-advantage-tools package post-
  installation script subprocess returned error exit status 1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/1936833/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1936833] Re: package ubuntu-advantage-tools 27.2.1~21.10.1 failed to install/upgrade: installed ubuntu-advantage-tools package post-installation script subprocess returned error exit status 1

2021-07-19 Thread Grant Orndorff
Thanks for the bug report!

ubuntu-advantage-tools tries to run `cloud-id` if the command is present
during postinst to find a certain edge case and notify the user.

It looks like cloud-id was available, but instance-data.json was
missing, so cloud-id failed. I believe this would occur if cloud-init is
installed on this system but never ran. If you are able to get cloud-
init to run and then try to upgrade ubuntu-advantage-tools again, I
suspect it will work.

Regardless, ubuntu-advantage-tools should probably be able to handle
this situation without failing.


** Changed in: ubuntu-advantage-tools (Ubuntu)
   Status: New => Triaged

** Changed in: ubuntu-advantage-tools (Ubuntu)
   Importance: Undecided => Medium

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1936833

Title:
  package ubuntu-advantage-tools 27.2.1~21.10.1 failed to
  install/upgrade: installed ubuntu-advantage-tools package post-
  installation script subprocess returned error exit status 1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/1936833/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1936833] Re: package ubuntu-advantage-tools 27.2.1~21.10.1 failed to install/upgrade: installed ubuntu-advantage-tools package post-installation script subprocess returned error exit status 1

2021-07-19 Thread Apport retracing service
** Tags removed: need-duplicate-check

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1936833

Title:
  package ubuntu-advantage-tools 27.2.1~21.10.1 failed to
  install/upgrade: installed ubuntu-advantage-tools package post-
  installation script subprocess returned error exit status 1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/1936833/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs