Failing to parse apt_news if folder is not present
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-advantage-tools (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Xenial |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Unassigned | ||
Focal |
Fix Released
|
Undecided
|
Unassigned | ||
Jammy |
Fix Released
|
Undecided
|
Unassigned | ||
Kinetic |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
We have the APT news structure now in place and user should be seeing messages related to it when running some apt commands. We store that information in a specific folder (/run/ubuntu-
[Test Case]
We have a integration test that already covers this scenario. We have added the results of running that test here in the comments.
[Regression Potential]
We are just creating the folder necessary to store the APT news data. What will happen is that users that are not seeing that message will now see it, which is what we expect.
If something fails with the directory creation, then the bug will persist: the client will log it, and people will not see apt news when running apt upgrade. As the command is run as root, there should be no permission error when creating a dir in /root.
[Discussion]
This folder should be present in the system if the user has run any pro command in the past. If that is not the case, then this bug happens. We are now always trying to create the folder before running the job that fetches the apt news messages
Related branches
- Athos Ribeiro (community): Approve
- Canonical Server Core Reviewers: Pending requested
-
Diff: 332 lines (+179/-16)7 files modifieddebian/changelog (+8/-0)
docs/howtoguides.rst (+8/-0)
docs/howtoguides/pro_in_airgapped.md (+103/-0)
docs/index.rst (+21/-4)
features/apt_messages.feature (+36/-11)
uaclient/apt_news.py (+2/-0)
uaclient/version.py (+1/-1)
description: | updated |
description: | updated |
description: | updated |
description: | updated |
Hello Lucas, or anyone else affected,
Accepted ubuntu- advantage- tools into kinetic-proposed. The package will build now and be available at https:/ /launchpad. net/ubuntu/ +source/ ubuntu- advantage- tools/27. 13.6~22. 10.1 in a few hours, and then in the -proposed repository.
Please help us by testing this new package. See https:/ /wiki.ubuntu. com/Testing/ EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.
If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification- needed- kinetic to verification- done-kinetic. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification- failed- kinetic. In either case, without details of your testing we will not be able to proceed.
Further information regarding the verification process can be found at https:/ /wiki.ubuntu. com/QATeam/ PerformingSRUVe rification . Thank you in advance for helping!
N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.