2021-07-19 13:42:29 |
Umar Sharief |
bug |
|
|
added bug |
2021-07-19 13:50:07 |
Apport retracing service |
tags |
amd64 apport-package impish need-duplicate-check uec-images |
amd64 apport-package impish uec-images |
|
2021-07-19 13:50:08 |
Apport retracing service |
bug |
|
|
added subscriber Crash bug triagers for Ubuntu packages |
2021-07-19 14:20:10 |
Grant Orndorff |
ubuntu-advantage-tools (Ubuntu): status |
New |
Triaged |
|
2021-07-19 14:20:18 |
Grant Orndorff |
ubuntu-advantage-tools (Ubuntu): importance |
Undecided |
Medium |
|
2021-07-19 16:10:20 |
Chad Smith |
ubuntu-advantage-tools (Ubuntu): status |
Triaged |
Incomplete |
|
2021-07-20 22:55:40 |
Michael Hudson-Doyle |
ubuntu-advantage-tools (Ubuntu): status |
Incomplete |
Confirmed |
|
2021-07-20 23:15:52 |
Michael Hudson-Doyle |
bug |
|
|
added subscriber Michael Hudson-Doyle |
2021-07-21 11:10:28 |
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 |
|
2021-07-21 11:17:26 |
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 |
|
2021-07-21 13:35:46 |
Lucas Albuquerque Medeiros de Moura |
ubuntu-advantage-tools (Ubuntu): status |
Confirmed |
Fix Committed |
|
2021-07-23 11:46:10 |
Mathieu Marquer |
bug |
|
|
added subscriber Mathieu Marquer |
2021-07-27 06:32:02 |
botjaeger |
description |
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 1 dpkg: 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
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
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) |
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 1 dpkg: 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
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
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) |
|
2021-07-27 08:07:42 |
Pieter Houwen |
bug |
|
|
added subscriber Pieter Houwen |
2021-07-27 10:19:56 |
Robie Basak |
summary |
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 |
postinst fails when cloud-init is installed but never ran |
|
2021-07-27 10:22:38 |
Robie Basak |
bug |
|
|
added subscriber Robie Basak |
2021-07-27 10:37:18 |
Robie Basak |
tags |
amd64 apport-package impish uec-images |
amd64 apport-package impish regression-update uec-images |
|
2021-07-27 11:08:08 |
Robie Basak |
nominated for series |
|
Ubuntu Bionic |
|
2021-07-27 11:08:08 |
Robie Basak |
bug task added |
|
ubuntu-advantage-tools (Ubuntu Bionic) |
|
2021-07-27 11:08:08 |
Robie Basak |
nominated for series |
|
Ubuntu Focal |
|
2021-07-27 11:08:08 |
Robie Basak |
bug task added |
|
ubuntu-advantage-tools (Ubuntu Focal) |
|
2021-07-27 11:08:08 |
Robie Basak |
nominated for series |
|
Ubuntu Hirsute |
|
2021-07-27 11:08:08 |
Robie Basak |
bug task added |
|
ubuntu-advantage-tools (Ubuntu Hirsute) |
|
2021-07-27 11:08:08 |
Robie Basak |
nominated for series |
|
Ubuntu Xenial |
|
2021-07-27 11:08:08 |
Robie Basak |
bug task added |
|
ubuntu-advantage-tools (Ubuntu Xenial) |
|
2021-07-27 11:08:17 |
Robie Basak |
ubuntu-advantage-tools (Ubuntu Xenial): importance |
Undecided |
Critical |
|
2021-07-27 11:08:19 |
Robie Basak |
ubuntu-advantage-tools (Ubuntu Bionic): importance |
Undecided |
Critical |
|
2021-07-27 11:08:22 |
Robie Basak |
ubuntu-advantage-tools (Ubuntu Focal): importance |
Undecided |
Critical |
|
2021-07-27 11:08:24 |
Robie Basak |
ubuntu-advantage-tools (Ubuntu Hirsute): importance |
Undecided |
Critical |
|
2021-07-27 13:09:53 |
Dan Streetman |
bug |
|
|
added subscriber Dan Streetman |
2021-07-27 13:30:24 |
Launchpad Janitor |
merge proposal linked |
|
https://code.launchpad.net/~lamoura/ubuntu/+source/ubuntu-advantage-tools/+git/ubuntu-advantage-tools/+merge/406232 |
|
2021-07-27 13:57:55 |
Launchpad Janitor |
merge proposal linked |
|
https://code.launchpad.net/~lamoura/ubuntu/+source/ubuntu-advantage-tools/+git/ubuntu-advantage-tools/+merge/406237 |
|
2021-07-27 14:02:39 |
Renan Rodrigo |
description |
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 1 dpkg: 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
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
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) |
[Impact]
Users are not able to install or upgrade ubuntu-advantage-tools in situations where cloud-init is installed in the system, but did not run - either because of some error, or it was disabled, or it did not finished executing yet.
When cloud-init runs, instance-data.json will be available and cloud-id does not fail. The fix checks for the existence of this file, and does not run the script if the file is not present.
Backporting the fix will enable users to install or upgrade ubuntu-advantage tools without problems.
[Test Plan]
The bug can be reproduced by running:
"schroot -c impish-amd64 -u root -d /",
and then within the chroot, running:
"apt-get update && apt-get install -y ubuntu-advantage-tools cloud-init".
Running the above using the patched version of ubuntu-advantage-tools should succeed without any errors.
[Where problems could occur]
The fix itself just skips a call that adds a warning notice to ua.
If the user is running on a cloud and has some kind of error in cloud-init, the user may miss a warning about having the wrong metapackages for the cloud. However, in the case where cloud-init did not run because of some error, the instance has a problem anyway.
If it happens that cloud init did not run yet - as if this happens at image creation time - then cloud-init will be later executed, and the cloud-id checked in the code so those wrong metapackages are not installed.
[Original Description]
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 1 dpkg: 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
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
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) |
|
2021-07-27 15:39:33 |
Launchpad Janitor |
ubuntu-advantage-tools (Ubuntu Xenial): status |
New |
Confirmed |
|
2021-07-27 15:39:33 |
Launchpad Janitor |
ubuntu-advantage-tools (Ubuntu Bionic): status |
New |
Confirmed |
|
2021-07-27 15:39:33 |
Launchpad Janitor |
ubuntu-advantage-tools (Ubuntu Focal): status |
New |
Confirmed |
|
2021-07-27 15:39:33 |
Launchpad Janitor |
ubuntu-advantage-tools (Ubuntu Hirsute): status |
New |
Confirmed |
|
2021-07-27 15:44:16 |
Launchpad Janitor |
merge proposal linked |
|
https://code.launchpad.net/~lamoura/ubuntu/+source/ubuntu-advantage-tools/+git/ubuntu-advantage-tools/+merge/406234 |
|
2021-07-27 15:45:10 |
Launchpad Janitor |
merge proposal linked |
|
https://code.launchpad.net/~lamoura/ubuntu/+source/ubuntu-advantage-tools/+git/ubuntu-advantage-tools/+merge/406235 |
|
2021-07-27 15:45:43 |
Launchpad Janitor |
merge proposal linked |
|
https://code.launchpad.net/~lamoura/ubuntu/+source/ubuntu-advantage-tools/+git/ubuntu-advantage-tools/+merge/406236 |
|
2021-07-27 15:49:06 |
Launchpad Janitor |
merge proposal unlinked |
https://code.launchpad.net/~lamoura/ubuntu/+source/ubuntu-advantage-tools/+git/ubuntu-advantage-tools/+merge/406234 |
|
|
2021-07-27 15:51:17 |
Launchpad Janitor |
merge proposal unlinked |
https://code.launchpad.net/~lamoura/ubuntu/+source/ubuntu-advantage-tools/+git/ubuntu-advantage-tools/+merge/406235 |
|
|
2021-07-27 15:52:35 |
Launchpad Janitor |
merge proposal unlinked |
https://code.launchpad.net/~lamoura/ubuntu/+source/ubuntu-advantage-tools/+git/ubuntu-advantage-tools/+merge/406236 |
|
|
2021-07-27 16:48:28 |
Launchpad Janitor |
merge proposal unlinked |
https://code.launchpad.net/~lamoura/ubuntu/+source/ubuntu-advantage-tools/+git/ubuntu-advantage-tools/+merge/406237 |
|
|
2021-07-27 17:41:49 |
Robie Basak |
ubuntu-advantage-tools (Ubuntu Hirsute): status |
Confirmed |
Fix Committed |
|
2021-07-27 17:41:51 |
Robie Basak |
bug |
|
|
added subscriber Ubuntu Stable Release Updates Team |
2021-07-27 17:41:52 |
Robie Basak |
bug |
|
|
added subscriber SRU Verification |
2021-07-27 17:41:56 |
Robie Basak |
tags |
amd64 apport-package impish regression-update uec-images |
amd64 apport-package impish regression-update uec-images verification-needed verification-needed-hirsute |
|
2021-07-27 17:42:20 |
Robie Basak |
ubuntu-advantage-tools (Ubuntu Focal): status |
Confirmed |
Fix Committed |
|
2021-07-27 17:42:26 |
Robie Basak |
tags |
amd64 apport-package impish regression-update uec-images verification-needed verification-needed-hirsute |
amd64 apport-package impish regression-update uec-images verification-needed verification-needed-focal verification-needed-hirsute |
|
2021-07-27 17:42:57 |
Robie Basak |
ubuntu-advantage-tools (Ubuntu Bionic): status |
Confirmed |
Fix Committed |
|
2021-07-27 17:43:02 |
Robie Basak |
tags |
amd64 apport-package impish regression-update uec-images verification-needed verification-needed-focal verification-needed-hirsute |
amd64 apport-package impish regression-update uec-images verification-needed verification-needed-bionic verification-needed-focal verification-needed-hirsute |
|
2021-07-27 17:43:27 |
Robie Basak |
ubuntu-advantage-tools (Ubuntu Xenial): status |
Confirmed |
Fix Committed |
|
2021-07-27 17:43:33 |
Robie Basak |
tags |
amd64 apport-package impish regression-update uec-images verification-needed verification-needed-bionic verification-needed-focal verification-needed-hirsute |
amd64 apport-package impish regression-update uec-images verification-needed verification-needed-bionic verification-needed-focal verification-needed-hirsute verification-needed-xenial |
|
2021-07-27 17:56:36 |
Mathieu Marquer |
tags |
amd64 apport-package impish regression-update uec-images verification-needed verification-needed-bionic verification-needed-focal verification-needed-hirsute verification-needed-xenial |
amd64 apport-package impish regression-update uec-images verification-done-impish verification-needed verification-needed-bionic verification-needed-focal verification-needed-hirsute verification-needed-xenial |
|
2021-07-27 19:24:41 |
Renan Rodrigo |
attachment added |
|
testproposed.sh https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/1936833/+attachment/5514125/+files/testproposed.sh |
|
2021-07-27 19:25:53 |
Renan Rodrigo |
attachment added |
|
results https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/1936833/+attachment/5514126/+files/results |
|
2021-07-27 20:09:57 |
Launchpad Janitor |
ubuntu-advantage-tools (Ubuntu): status |
Fix Committed |
Fix Released |
|
2021-07-27 20:12:58 |
Lucas Albuquerque Medeiros de Moura |
tags |
amd64 apport-package impish regression-update uec-images verification-done-impish verification-needed verification-needed-bionic verification-needed-focal verification-needed-hirsute verification-needed-xenial |
amd64 apport-package impish regression-update uec-images verification-done verification-done-bionic verification-done-focal verification-done-hirsute verification-done-impish verification-done-xenial |
|
2021-07-28 00:31:55 |
Chris Halse Rogers |
removed subscriber Ubuntu Stable Release Updates Team |
|
|
|
2021-07-28 02:58:30 |
Launchpad Janitor |
ubuntu-advantage-tools (Ubuntu Xenial): status |
Fix Committed |
Fix Released |
|
2021-07-28 02:58:50 |
Launchpad Janitor |
ubuntu-advantage-tools (Ubuntu Focal): status |
Fix Committed |
Fix Released |
|
2021-07-28 02:59:08 |
Launchpad Janitor |
ubuntu-advantage-tools (Ubuntu Bionic): status |
Fix Committed |
Fix Released |
|
2021-07-28 02:59:30 |
Launchpad Janitor |
ubuntu-advantage-tools (Ubuntu Hirsute): status |
Fix Committed |
Fix Released |
|
2021-10-27 16:58:02 |
Christopher Reiff |
bug |
|
|
added subscriber Christopher Reiff |