2023-02-14 06:45:56 |
errors.ubuntu.com bug bridge |
bug |
|
|
added bug |
2023-02-14 06:45:57 |
errors.ubuntu.com bug bridge |
bug |
|
|
added subscriber Christian Ehrhardt |
2023-02-14 14:23:58 |
Christian Ehrhardt |
ubuntu-advantage-tools (Ubuntu): assignee |
|
Grant Orndorff (orndorffgrant) |
|
2023-02-14 22:02:35 |
Renan Rodrigo |
ubuntu-advantage-tools (Ubuntu): assignee |
Grant Orndorff (orndorffgrant) |
Renan Rodrigo (renanrodrigo) |
|
2023-02-15 12:23:30 |
Renan Rodrigo |
ubuntu-advantage-tools (Ubuntu): status |
New |
In Progress |
|
2023-03-16 16:11:13 |
Grant Orndorff |
description |
The Ubuntu Error Tracker has been receiving reports about a problem regarding ubuntu-advantage-tools. This problem was most recently seen with package version 27.13.5~20.04.1, the problem page at https://errors.ubuntu.com/problem/3861dcce5f1d6eda3eb34e1e201e2e517c6a8c37 contains more details, including versions of packages affected, stacktrace or traceback, and individual crash reports.
If you do not have access to the Ubuntu Error Tracker and are a software developer, you can request it at http://forms.canonical.com/reports/. |
[Impact]
If python3 was able to import uaclient but unable to import yaml for some reason, pro client processes would crash.
ubuntu-advantage-tools depends on python3-yaml, so we consider the case where python3-yaml is not installed or corrupted to be unsupportable by u-a-t (though it may be indicative of a bug or error somewhere else).
In the case where python3-yaml is installed properly, but the user's python environment is set up in such a way that it isn't seen by a normal `import yaml`, then we can mitigate the issue. The fix is to hardcode the path where we look for the yaml library.
[Test Case]
In a container, set up a contrived python environment where it can see uaclient and apt but not yaml:
```
apt update
apt install python3-venv
python3 -m venv env
source ./env/bin/activate
ln -s /usr/lib/python3/dist-packages/uaclient ./env/lib/python3.10/site-packages/uaclient
ln -s /usr/lib/python3/dist-packages/apt ./env/lib/python3.10/site-packages/apt
ln -s /usr/lib/python3/dist-packages/apt_pkg.cpython-310-x86_64-linux-gnu.so ./env/lib/python3.10/site-packages/apt_pkg.cpython-310-x86_64-linux-gnu.so
python3 /usr/lib/ubuntu-advantage/esm_cache.py
```
(Note that the python version will be different on different Ubuntu releases)
Before the fix, that last command will fail because it cannot import yaml.
After the fix, it will succeed.
[Regression Potential]
The fix involves directly using pythons import mechanisms rather than using "import yaml". If we made a mistake here, then we may start failing to import yaml in different scenarios.
The fix also involves re-exporting the yaml functions, if we missed an export that another piece of code relies on, then that would cause an unhandled exception.
[Discussion]
Until recently our position had been: non-standard python isntall -> unsupported. This fix is a change in stance to have a best-effort implementation to support systems that have non-standard python installations. It is not supposed to be a guarantee that u-a-t will work with all non-standard python installs.
[Original Description]
The Ubuntu Error Tracker has been receiving reports about a problem regarding ubuntu-advantage-tools. This problem was most recently seen with package version 27.13.5~20.04.1, the problem page at https://errors.ubuntu.com/problem/3861dcce5f1d6eda3eb34e1e201e2e517c6a8c37 contains more details, including versions of packages affected, stacktrace or traceback, and individual crash reports.
If you do not have access to the Ubuntu Error Tracker and are a software developer, you can request it at http://forms.canonical.com/reports/. |
|
2023-03-16 16:12:00 |
Grant Orndorff |
description |
[Impact]
If python3 was able to import uaclient but unable to import yaml for some reason, pro client processes would crash.
ubuntu-advantage-tools depends on python3-yaml, so we consider the case where python3-yaml is not installed or corrupted to be unsupportable by u-a-t (though it may be indicative of a bug or error somewhere else).
In the case where python3-yaml is installed properly, but the user's python environment is set up in such a way that it isn't seen by a normal `import yaml`, then we can mitigate the issue. The fix is to hardcode the path where we look for the yaml library.
[Test Case]
In a container, set up a contrived python environment where it can see uaclient and apt but not yaml:
```
apt update
apt install python3-venv
python3 -m venv env
source ./env/bin/activate
ln -s /usr/lib/python3/dist-packages/uaclient ./env/lib/python3.10/site-packages/uaclient
ln -s /usr/lib/python3/dist-packages/apt ./env/lib/python3.10/site-packages/apt
ln -s /usr/lib/python3/dist-packages/apt_pkg.cpython-310-x86_64-linux-gnu.so ./env/lib/python3.10/site-packages/apt_pkg.cpython-310-x86_64-linux-gnu.so
python3 /usr/lib/ubuntu-advantage/esm_cache.py
```
(Note that the python version will be different on different Ubuntu releases)
Before the fix, that last command will fail because it cannot import yaml.
After the fix, it will succeed.
[Regression Potential]
The fix involves directly using pythons import mechanisms rather than using "import yaml". If we made a mistake here, then we may start failing to import yaml in different scenarios.
The fix also involves re-exporting the yaml functions, if we missed an export that another piece of code relies on, then that would cause an unhandled exception.
[Discussion]
Until recently our position had been: non-standard python isntall -> unsupported. This fix is a change in stance to have a best-effort implementation to support systems that have non-standard python installations. It is not supposed to be a guarantee that u-a-t will work with all non-standard python installs.
[Original Description]
The Ubuntu Error Tracker has been receiving reports about a problem regarding ubuntu-advantage-tools. This problem was most recently seen with package version 27.13.5~20.04.1, the problem page at https://errors.ubuntu.com/problem/3861dcce5f1d6eda3eb34e1e201e2e517c6a8c37 contains more details, including versions of packages affected, stacktrace or traceback, and individual crash reports.
If you do not have access to the Ubuntu Error Tracker and are a software developer, you can request it at http://forms.canonical.com/reports/. |
[Impact]
If python3 was able to import uaclient but unable to import yaml for some reason, pro client processes would crash.
ubuntu-advantage-tools depends on python3-yaml, so we consider the case where python3-yaml is not installed or corrupted to be unsupportable by u-a-t (though it may be indicative of a bug or error somewhere else).
In the case where python3-yaml is installed properly, but the user's python environment is set up in such a way that it isn't seen by a normal `import yaml`, then we can mitigate the issue. The fix is to hardcode the path where we look for the yaml library.
[Test Case]
In a container, set up a contrived python environment where it can see uaclient and apt but not yaml:
```
apt update
apt install python3-venv
python3 -m venv env
source ./env/bin/activate
ln -s /usr/lib/python3/dist-packages/uaclient ./env/lib/python3.10/site-packages/uaclient
ln -s /usr/lib/python3/dist-packages/apt ./env/lib/python3.10/site-packages/apt
ln -s /usr/lib/python3/dist-packages/apt_pkg.cpython-310-x86_64-linux-gnu.so ./env/lib/python3.10/site-packages/apt_pkg.cpython-310-x86_64-linux-gnu.so
python3 /usr/lib/ubuntu-advantage/esm_cache.py
```
(Note that the python version will be different on different Ubuntu releases)
Before the fix, that last command will fail because it cannot import yaml.
After the fix, it will succeed.
[Regression Potential]
The fix involves directly using pythons import mechanisms rather than using "import yaml". If we made a mistake here, then we may start failing to import yaml in different scenarios.
The fix also involves re-exporting the yaml functions, if we missed an export that another piece of code relies on, then that would cause an unhandled exception.
[Discussion]
Until recently our position had been: non-standard python install -> unsupported. This fix is a change in stance to have a best-effort implementation to support systems that have non-standard python installations. It is not supposed to be a guarantee that u-a-t will work with all non-standard python installs.
[Original Description]
The Ubuntu Error Tracker has been receiving reports about a problem regarding ubuntu-advantage-tools. This problem was most recently seen with package version 27.13.5~20.04.1, the problem page at https://errors.ubuntu.com/problem/3861dcce5f1d6eda3eb34e1e201e2e517c6a8c37 contains more details, including versions of packages affected, stacktrace or traceback, and individual crash reports.
If you do not have access to the Ubuntu Error Tracker and are a software developer, you can request it at http://forms.canonical.com/reports/. |
|
2023-03-17 22:26:55 |
Athos Ribeiro |
bug |
|
|
added subscriber Athos Ribeiro |
2023-03-23 02:23:12 |
Launchpad Janitor |
ubuntu-advantage-tools (Ubuntu): status |
In Progress |
Fix Released |
|
2023-03-23 20:39:54 |
Renan Rodrigo |
description |
[Impact]
If python3 was able to import uaclient but unable to import yaml for some reason, pro client processes would crash.
ubuntu-advantage-tools depends on python3-yaml, so we consider the case where python3-yaml is not installed or corrupted to be unsupportable by u-a-t (though it may be indicative of a bug or error somewhere else).
In the case where python3-yaml is installed properly, but the user's python environment is set up in such a way that it isn't seen by a normal `import yaml`, then we can mitigate the issue. The fix is to hardcode the path where we look for the yaml library.
[Test Case]
In a container, set up a contrived python environment where it can see uaclient and apt but not yaml:
```
apt update
apt install python3-venv
python3 -m venv env
source ./env/bin/activate
ln -s /usr/lib/python3/dist-packages/uaclient ./env/lib/python3.10/site-packages/uaclient
ln -s /usr/lib/python3/dist-packages/apt ./env/lib/python3.10/site-packages/apt
ln -s /usr/lib/python3/dist-packages/apt_pkg.cpython-310-x86_64-linux-gnu.so ./env/lib/python3.10/site-packages/apt_pkg.cpython-310-x86_64-linux-gnu.so
python3 /usr/lib/ubuntu-advantage/esm_cache.py
```
(Note that the python version will be different on different Ubuntu releases)
Before the fix, that last command will fail because it cannot import yaml.
After the fix, it will succeed.
[Regression Potential]
The fix involves directly using pythons import mechanisms rather than using "import yaml". If we made a mistake here, then we may start failing to import yaml in different scenarios.
The fix also involves re-exporting the yaml functions, if we missed an export that another piece of code relies on, then that would cause an unhandled exception.
[Discussion]
Until recently our position had been: non-standard python install -> unsupported. This fix is a change in stance to have a best-effort implementation to support systems that have non-standard python installations. It is not supposed to be a guarantee that u-a-t will work with all non-standard python installs.
[Original Description]
The Ubuntu Error Tracker has been receiving reports about a problem regarding ubuntu-advantage-tools. This problem was most recently seen with package version 27.13.5~20.04.1, the problem page at https://errors.ubuntu.com/problem/3861dcce5f1d6eda3eb34e1e201e2e517c6a8c37 contains more details, including versions of packages affected, stacktrace or traceback, and individual crash reports.
If you do not have access to the Ubuntu Error Tracker and are a software developer, you can request it at http://forms.canonical.com/reports/. |
[Impact]
If python3 was able to import uaclient but unable to import yaml for some reason, pro client processes would crash.
ubuntu-advantage-tools depends on python3-yaml, so we consider the case where python3-yaml is not installed or corrupted to be unsupportable by u-a-t (though it may be indicative of a bug or error somewhere else).
In the case where python3-yaml is installed properly, but the user's python environment is set up in such a way that it isn't seen by a normal `import yaml`, then we can mitigate the issue. We will log an error and exit when yaml is not found, avoiding a crash and autoamatic error reports.
[Test Case]
In a container, set up a contrived python environment where it can see uaclient and apt but not yaml:
```
apt update
apt install python3-venv
python3 -m venv env
source ./env/bin/activate
ln -s /usr/lib/python3/dist-packages/uaclient ./env/lib/python3.10/site-packages/uaclient
ln -s /usr/lib/python3/dist-packages/apt ./env/lib/python3.10/site-packages/apt
ln -s /usr/lib/python3/dist-packages/apt_pkg.cpython-310-x86_64-linux-gnu.so ./env/lib/python3.10/site-packages/apt_pkg.cpython-310-x86_64-linux-gnu.so
python3 /usr/lib/ubuntu-advantage/esm_cache.py
systemctl start esm-cache.service
```
(Note that the python version will be different on different Ubuntu releases)
Before the fix, that last commands will fail because u-a-t cannot import yaml.
After the fix, it will log an error, return 1, and no crash will be present in /var/crash related to this.
[Regression Potential]
The fix relies on importing yaml functionality from uaclient.yaml - if in any code we import directly from yaml, it will bypass this fix and fail in the same scenario as this bug does. We need to pay attention to not import yaml directly in any other module.
The fix involves re-exporting the yaml functions, if we missed an export that another piece of code relies on, then that would cause an unhandled exception.
[Discussion]
Until recently our position had been: non-standard python install -> unsupported. This fix is deals with the error in a best-effort implementation to avoid crashes and automatic reports from errors.ubuntu.com, which can block phasing for no reason.
[Original Description]
The Ubuntu Error Tracker has been receiving reports about a problem regarding ubuntu-advantage-tools. This problem was most recently seen with package version 27.13.5~20.04.1, the problem page at https://errors.ubuntu.com/problem/3861dcce5f1d6eda3eb34e1e201e2e517c6a8c37 contains more details, including versions of packages affected, stacktrace or traceback, and individual crash reports.
If you do not have access to the Ubuntu Error Tracker and are a software developer, you can request it at http://forms.canonical.com/reports/. |
|
2023-04-06 21:31:17 |
Andreas Hasenack |
ubuntu-advantage-tools (Ubuntu Kinetic): status |
New |
Fix Committed |
|
2023-04-06 21:31:18 |
Andreas Hasenack |
bug |
|
|
added subscriber Ubuntu Stable Release Updates Team |
2023-04-06 21:31:20 |
Andreas Hasenack |
bug |
|
|
added subscriber SRU Verification |
2023-04-06 21:31:27 |
Andreas Hasenack |
tags |
bionic focal jammy kinetic |
bionic focal jammy kinetic verification-needed verification-needed-kinetic |
|
2023-04-06 21:35:56 |
Andreas Hasenack |
ubuntu-advantage-tools (Ubuntu Jammy): status |
New |
Fix Committed |
|
2023-04-06 21:36:04 |
Andreas Hasenack |
tags |
bionic focal jammy kinetic verification-needed verification-needed-kinetic |
bionic focal jammy kinetic verification-needed verification-needed-jammy verification-needed-kinetic |
|
2023-04-06 21:40:43 |
Andreas Hasenack |
ubuntu-advantage-tools (Ubuntu Focal): status |
New |
Fix Committed |
|
2023-04-06 21:40:51 |
Andreas Hasenack |
tags |
bionic focal jammy kinetic verification-needed verification-needed-jammy verification-needed-kinetic |
bionic focal jammy kinetic verification-needed verification-needed-focal verification-needed-jammy verification-needed-kinetic |
|
2023-04-06 21:46:41 |
Andreas Hasenack |
ubuntu-advantage-tools (Ubuntu Bionic): status |
New |
Fix Committed |
|
2023-04-06 21:46:48 |
Andreas Hasenack |
tags |
bionic focal jammy kinetic verification-needed verification-needed-focal verification-needed-jammy verification-needed-kinetic |
bionic focal jammy kinetic verification-needed verification-needed-bionic verification-needed-focal verification-needed-jammy verification-needed-kinetic |
|
2023-04-06 21:52:19 |
Andreas Hasenack |
ubuntu-advantage-tools (Ubuntu Xenial): status |
New |
Fix Committed |
|
2023-04-06 21:52:26 |
Andreas Hasenack |
tags |
bionic focal jammy kinetic verification-needed verification-needed-bionic verification-needed-focal verification-needed-jammy verification-needed-kinetic |
bionic focal jammy kinetic verification-needed verification-needed-bionic verification-needed-focal verification-needed-jammy verification-needed-kinetic verification-needed-xenial |
|
2023-04-10 19:21:47 |
Lucas Albuquerque Medeiros de Moura |
attachment added |
|
test-2007234.tar.xz https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/2007234/+attachment/5662787/+files/test-2007234.tar.xz |
|
2023-04-10 19:22:52 |
Lucas Albuquerque Medeiros de Moura |
tags |
bionic focal jammy kinetic verification-needed verification-needed-bionic verification-needed-focal verification-needed-jammy verification-needed-kinetic verification-needed-xenial |
bionic focal jammy kinetic verification-done verification-done-bionic verification-done-focal verification-done-jammy verification-done-kinetic verification-done-xenial |
|
2023-04-19 01:31:25 |
Launchpad Janitor |
ubuntu-advantage-tools (Ubuntu Xenial): status |
Fix Committed |
Fix Released |
|
2023-04-19 01:32:11 |
Chris Halse Rogers |
removed subscriber Ubuntu Stable Release Updates Team |
|
|
|
2023-04-19 01:32:48 |
Launchpad Janitor |
ubuntu-advantage-tools (Ubuntu Bionic): status |
Fix Committed |
Fix Released |
|
2023-04-19 01:33:17 |
Launchpad Janitor |
ubuntu-advantage-tools (Ubuntu Focal): status |
Fix Committed |
Fix Released |
|
2023-04-19 01:33:44 |
Launchpad Janitor |
ubuntu-advantage-tools (Ubuntu Jammy): status |
Fix Committed |
Fix Released |
|
2023-04-19 01:34:12 |
Launchpad Janitor |
ubuntu-advantage-tools (Ubuntu Kinetic): status |
Fix Committed |
Fix Released |
|