DistUpgradeViewNonInteractive is now interactive
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-release-upgrader (Ubuntu) |
Fix Released
|
High
|
Brian Murray | ||
Hirsute |
Fix Released
|
High
|
William Wilson | ||
Impish |
Fix Released
|
High
|
Brian Murray |
Bug Description
[Impact]
* The non-interactive release upgrades ask a question and wait for
an interaction from the user. This makes the "NonInteractive"
process interactive, and therefore breaks automatic upgrades.
[Test Case]
* On a hirsute VM, make sure all packages are up to date
by running `sudo apt update && sudo apt upgrade -y`
* `sudo do-release-upgrade -d --frontend=
* Observe that the the upgrader displays the release notes followed
by a question in the form of "Continue [yN]"
* Type N and press enter to cancel the upgrade
* Install ubuntu-
* `sudo do-release-upgrade -d --frontend=
* Observe that the release upgrade completes successfully without
any interaction from the user.
[Regression Potential]
* If the check for the specific frontend is not
properly written it may be possible that
the other frontends no longer display the release
notes and ask the user if they want to continue.
* This can be tested by running "do-release-
with --frontend=
--frontend=
the question is asked.
[Original Description]
With the change to show the release notes when using the "Text" view of the release upgrader (LP: #1925529) a yes / no question regarding upgrading is also displayed when using the NonInteractive view. This ends up making the upgrade process interactive and breaks automatic upgrade testing as seen in this log file:
== More Information ==
You can find out more about Ubuntu on the Ubuntu website and Ubuntu
wiki.
http://
http://
To sign up for Ubuntu development announcements, please
subscribe to Ubuntu's development announcement list at:
http://
Continue [yN] auto-upgrade [13:48:19]: Rebooting the system.
bash: line 1: 889 Killed /tmp/autopkgtes
autopkgtest: DBG: testbed command exited with code 137
tags: | added: rls-ii-incoming |
Changed in ubuntu-release-upgrader (Ubuntu): | |
milestone: | none → ubuntu-21.10 |
Changed in ubuntu-release-upgrader (Ubuntu): | |
assignee: | nobody → Brian Murray (brian-murray) |
importance: | Undecided → High |
status: | New → In Progress |
tags: | added: fr-1741 |
tags: | removed: rls-ii-incoming |
Changed in ubuntu-release-upgrader (Ubuntu Hirsute): | |
assignee: | nobody → William Wilson (jawn-smith) |
status: | New → In Progress |
description: | updated |
description: | updated |
Changed in ubuntu-release-upgrader (Ubuntu Hirsute): | |
importance: | Undecided → High |
tags: |
added: regression-update removed: verification-needed |
One way to fix it is in DistUpgradeFetc herCore. py by modifying showReleaseNotes with an if statement at the beginning.
if '--frontend= DistUpgradeView NonInteractive' in self.run_options:
return True