[Bug 1417880] Re: Invisible prompts in do-release-upgrade
Michael Terry
michael.terry at canonical.com
Wed Feb 4 15:56:55 UTC 2015
Uploaded fixes for trusty and utopic, will unsub sponsors and sub sru
team.
** Description changed:
+ [Impact]
+
+ Users upgrading from 14.04 and 14.10 via the command line "do-release-
+ upgrade" will not be able to do so unless they figure out that they need
+ to press "y" and Enter (without the benefit of a prompt).
+
+ [Test Case]
+
+ On an affected system, run 'sudo do-release-upgrade'
+
+ When it asks if you want to continue doing this over SSH, the text ends
+ with a blank line. If you press Enter at this point, only then will you
+ get to see the prompt, which was
+
+ Continue? [yN]
+
+ but by then it's too late and you already chose "no" by pressing Enter.
+
+ [Regression Potential]
+
+ The patch itself is quite small, just flushing output whenever we prompt
+ the user. Should be safe.
+
+ [Original Report]
+
I'm upgrading an Ubuntu 14.04 LTS system to 14.10 over ssh with 'sudo
do-release-upgrade'.
When it asks me if I want to continue doing this over SSH, the text ends
with a blank line. If I press Enter at this point, only then I get to
see the prompt, which was
- Continue? [yN]
+ Continue? [yN]
but by then it's too late and I already chose "no".
The same thing happens if I restart, go past this prompt (without seeing
it), then ask for details about package removals/upgrades/installs. I
get a list of packages in a pager. When I quit (by pressing q) I should
once more see the prompt asking me if it's okay and if I should proceed,
or cancel, or see the details again. But the prompt isn't there and
doesn't appear until after I input my answer.
I think there's a missing sys.stdout.flush() call somewhere in do-
release-upgrade.
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: ubuntu-release-upgrader-core 1:0.220.6
ProcVersionSignature: Ubuntu 3.13.0-39.66-generic 3.13.11.8
Uname: Linux 3.13.0-39-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.6
Architecture: amd64
CrashDB: ubuntu
Date: Wed Feb 4 08:16:03 2015
InstallationDate: Installed on 2012-11-02 (823 days ago)
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120425)
PackageArchitecture: all
SourcePackage: ubuntu-release-upgrader
UpgradeStatus: Upgraded to trusty on 2015-02-04 (0 days ago)
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ubuntu-release-upgrader in
Ubuntu.
https://bugs.launchpad.net/bugs/1417880
Title:
Invisible prompts in do-release-upgrade
Status in ubuntu-release-upgrader package in Ubuntu:
Fix Committed
Status in ubuntu-release-upgrader source package in Trusty:
New
Status in ubuntu-release-upgrader source package in Utopic:
New
Bug description:
[Impact]
Users upgrading from 14.04 and 14.10 via the command line "do-release-
upgrade" will not be able to do so unless they figure out that they
need to press "y" and Enter (without the benefit of a prompt).
[Test Case]
On an affected system, run 'sudo do-release-upgrade'
When it asks if you want to continue doing this over SSH, the text
ends with a blank line. If you press Enter at this point, only then
will you get to see the prompt, which was
Continue? [yN]
but by then it's too late and you already chose "no" by pressing
Enter.
[Regression Potential]
The patch itself is quite small, just flushing output whenever we
prompt the user. Should be safe.
[Original Report]
I'm upgrading an Ubuntu 14.04 LTS system to 14.10 over ssh with 'sudo
do-release-upgrade'.
When it asks me if I want to continue doing this over SSH, the text
ends with a blank line. If I press Enter at this point, only then I
get to see the prompt, which was
Continue? [yN]
but by then it's too late and I already chose "no".
The same thing happens if I restart, go past this prompt (without
seeing it), then ask for details about package
removals/upgrades/installs. I get a list of packages in a pager.
When I quit (by pressing q) I should once more see the prompt asking
me if it's okay and if I should proceed, or cancel, or see the details
again. But the prompt isn't there and doesn't appear until after I
input my answer.
I think there's a missing sys.stdout.flush() call somewhere in do-
release-upgrade.
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: ubuntu-release-upgrader-core 1:0.220.6
ProcVersionSignature: Ubuntu 3.13.0-39.66-generic 3.13.11.8
Uname: Linux 3.13.0-39-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.6
Architecture: amd64
CrashDB: ubuntu
Date: Wed Feb 4 08:16:03 2015
InstallationDate: Installed on 2012-11-02 (823 days ago)
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120425)
PackageArchitecture: all
SourcePackage: ubuntu-release-upgrader
UpgradeStatus: Upgraded to trusty on 2015-02-04 (0 days ago)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/1417880/+subscriptions
More information about the foundations-bugs
mailing list