[Bug 1722564] Re: apport question will not accept multi-character responses
Scott Moser
ssmoser2+ubuntu at gmail.com
Wed Dec 6 13:57:06 UTC 2017
Robie, Brian,
I went ahead and did the reproduce in the test and selected '2' in the multi-select. Heres the full console log. My responses can be seen there alsol.
$ for release in xenial artful; do
> ref=$release-proposed;
> echo "$release START --------------";
> lxc-proposed-snapshot --proposed --publish $release $ref;
> lxc init $ref test-$release;
> lxc start test-$release;
> lxc exec test-$release -- apt install apport;
> lxc exec test-$release -- dpkg-query --show apport;
> lxc exec test-$release -- ubuntu-bug cloud-init;
> done
xenial START --------------
Creating xenial-proposed-744923888
--proposed --
Hit:1 http://archive.ubuntu.com/ubuntu xenial InRelease
Get:2 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Get:3 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
Get:4 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]
Get:5 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [397 kB]
Get:6 http://archive.ubuntu.com/ubuntu xenial-proposed InRelease [253 kB]
Get:7 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages [7532 kB]
Get:8 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [183 kB]
Get:9 http://security.ubuntu.com/ubuntu xenial-security/universe Translation-en [96.5 kB]
Get:10 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages [3212 B]
Get:11 http://security.ubuntu.com/ubuntu xenial-security/multiverse Translation-en [1408 B]
Get:12 http://archive.ubuntu.com/ubuntu xenial/universe Translation-en [4354 kB]
Get:13 http://archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages [144 kB]
Get:14 http://archive.ubuntu.com/ubuntu xenial/multiverse Translation-en [106 kB]
Get:15 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [670 kB]
Get:16 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [561 kB]
Get:17 http://archive.ubuntu.com/ubuntu xenial-updates/universe Translation-en [227 kB]
Get:18 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages [16.2 kB]
Get:19 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse Translation-en [8052 B]
Get:20 http://archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages [4860 B]
Get:21 http://archive.ubuntu.com/ubuntu xenial-backports/main Translation-en [3220 B]
Get:22 http://archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages [6616 B]
Get:23 http://archive.ubuntu.com/ubuntu xenial-backports/universe Translation-en [3768 B]
Get:24 http://archive.ubuntu.com/ubuntu xenial-proposed/main amd64 Packages [133 kB]
Get:25 http://archive.ubuntu.com/ubuntu xenial-proposed/main Translation-en [52.4 kB]
Get:26 http://archive.ubuntu.com/ubuntu xenial-proposed/universe amd64 Packages [59.7 kB]
Get:27 http://archive.ubuntu.com/ubuntu xenial-proposed/universe Translation-en [27.4 kB]
Fetched 15.2 MB in 9s (1521 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following package was automatically installed and is no longer required:
libfreetype6
Use 'apt autoremove' to remove it.
The following packages will be upgraded:
cloud-init
1 upgraded, 0 newly installed, 0 to remove and 31 not upgraded.
Need to get 340 kB of archives.
After this operation, 5120 B of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu xenial-proposed/main amd64 cloud-init all 17.1-46-g7acc9e68-0ubuntu1~16.04.1 [340 kB]
Preconfiguring packages ...
Fetched 340 kB in 0s (538 kB/s)
(Reading database ... 25529 files and directories currently installed.)
Preparing to unpack .../cloud-init_17.1-46-g7acc9e68-0ubuntu1~16.04.1_all.deb ...
Unpacking cloud-init (17.1-46-g7acc9e68-0ubuntu1~16.04.1) over (17.1-27-geb292c18-0ubuntu1~16.04.1) ...
Processing triggers for ureadahead (0.100.0-19) ...
Setting up cloud-init (17.1-46-g7acc9e68-0ubuntu1~16.04.1) ...
Installing new version of config file /etc/cloud/templates/hosts.suse.tmpl ...
Installing new version of config file /etc/cloud/templates/ntp.conf.sles.tmpl ...
Leaving 'diversion of /etc/init/ureadahead.conf to /etc/init/ureadahead.conf.disabled by cloud-init'
Container published with fingerprint: 2d14b3770697ab43fade81706c5e84c526609f44a134aa6b6f4a5eb307b079e8
Creating test-xenial
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
libfreetype6
Use 'apt autoremove' to remove it.
The following additional packages will be installed:
python3-apport
Suggested packages:
apport-gtk | apport-kde python3-launchpadlib
The following packages will be upgraded:
apport python3-apport
2 upgraded, 0 newly installed, 0 to remove and 29 not upgraded.
Need to get 200 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://archive.ubuntu.com/ubuntu xenial-proposed/main amd64 python3-apport all 2.20.1-0ubuntu2.14 [79.5 kB]
Get:2 http://archive.ubuntu.com/ubuntu xenial-proposed/main amd64 apport all 2.20.1-0ubuntu2.14 [120 kB]
Fetched 200 kB in 0s (316 kB/s)
(Reading database ... 25530 files and directories currently installed.)
Preparing to unpack .../python3-apport_2.20.1-0ubuntu2.14_all.deb ...
Unpacking python3-apport (2.20.1-0ubuntu2.14) over (2.20.1-0ubuntu2.13) ...
Preparing to unpack .../apport_2.20.1-0ubuntu2.14_all.deb ...
Unpacking apport (2.20.1-0ubuntu2.14) over (2.20.1-0ubuntu2.13) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for systemd (229-4ubuntu21) ...
Processing triggers for ureadahead (0.100.0-19) ...
Setting up python3-apport (2.20.1-0ubuntu2.14) ...
Setting up apport (2.20.1-0ubuntu2.14) ...
apport 2.20.1-0ubuntu2.14
*** Collecting problem information
The collected information can be sent to the developers to improve the
application. This might take a few minutes.
..............
*** Your device details (lshw) may be useful to developers when addressing this bug, but gathering it requires admin privileges. Would you like to include this info?
What would you like to do? Your options are:
Y: Yes
N: No
C: Cancel
Please choose (Y/N/C): Y
*** Is this machine running in a cloud environment?
What would you like to do? Your options are:
Y: Yes
N: No
C: Cancel
Please choose (Y/N/C): Y
*** Please select the cloud vendor or environment in which this instance
is running
Choices:
1: Amazon - Ec2
2: AliYun
3: AltCloud
4: Azure
5: Bigstep
6: CloudSigma
7: CloudStack
8: DigitalOcean
9: GCE - Google Compute Engine
10: MAAS
11: NoCloud
12: OpenNebula
13: OpenStack
14: OVF
15: Scaleway
16: SmartOS
17: VMware
18: Other
C: Cancel
Please choose (1/2/3/4/5/6/7/8/9/10/11/12/13/14/15/16/17/18/C): 2
*** Your user-data or cloud-config file can optionally be provided from /var/lib/cloud/instance/user-data.txt and could be useful to developers when addressing this bug. Do you wish to attach user-data to this bug?
What would you like to do? Your options are:
Y: Yes
N: No
C: Cancel
Please choose (Y/N/C): Y
..
*** Send problem report to the developers?
After the problem report has been sent, please fill out the form in the
automatically opened web browser.
What would you like to do? Your options are:
S: Send report (89.1 KB)
V: View report
K: Keep report file for sending later or copying to somewhere else
I: Cancel and ignore future crashes of this program version
C: Cancel
Please choose (S/V/K/I/C): C
artful START --------------
Creating artful-proposed-35034265
--proposed --
Get:1 http://security.ubuntu.com/ubuntu artful-security InRelease [78.6 kB]
Hit:2 http://archive.ubuntu.com/ubuntu artful InRelease
Get:3 http://archive.ubuntu.com/ubuntu artful-updates InRelease [78.6 kB]
Get:4 http://security.ubuntu.com/ubuntu artful-security/main amd64 Packages [54.9 kB]
Get:5 http://archive.ubuntu.com/ubuntu artful-backports InRelease [72.2 kB]
Get:6 http://security.ubuntu.com/ubuntu artful-security/main Translation-en [25.6 kB]
Get:7 http://archive.ubuntu.com/ubuntu artful-proposed InRelease [235 kB]
Get:8 http://security.ubuntu.com/ubuntu artful-security/universe amd64 Packages [15.3 kB]
Get:9 http://security.ubuntu.com/ubuntu artful-security/universe Translation-en [10.7 kB]
Get:10 http://security.ubuntu.com/ubuntu artful-security/multiverse amd64 Packages [1168 B]
Get:11 http://archive.ubuntu.com/ubuntu artful/universe amd64 Packages [8103 kB]
Get:12 http://security.ubuntu.com/ubuntu artful-security/multiverse Translation-en [744 B]
Get:13 http://archive.ubuntu.com/ubuntu artful/universe Translation-en [4789 kB]
Get:14 http://archive.ubuntu.com/ubuntu artful/multiverse amd64 Packages [150 kB]
Get:15 http://archive.ubuntu.com/ubuntu artful/multiverse Translation-en [108 kB]
Get:16 http://archive.ubuntu.com/ubuntu artful-updates/main amd64 Packages [110 kB]
Get:17 http://archive.ubuntu.com/ubuntu artful-updates/main Translation-en [48.7 kB]
Get:18 http://archive.ubuntu.com/ubuntu artful-updates/universe amd64 Packages [35.8 kB]
Get:19 http://archive.ubuntu.com/ubuntu artful-updates/universe Translation-en [21.8 kB]
Get:20 http://archive.ubuntu.com/ubuntu artful-updates/multiverse amd64 Packages [1844 B]
Get:21 http://archive.ubuntu.com/ubuntu artful-updates/multiverse Translation-en [1124 B]
Get:22 http://archive.ubuntu.com/ubuntu artful-backports/main amd64 Packages [1508 B]
Get:23 http://archive.ubuntu.com/ubuntu artful-backports/main Translation-en [668 B]
Get:24 http://archive.ubuntu.com/ubuntu artful-backports/universe amd64 Packages [2656 B]
Get:25 http://archive.ubuntu.com/ubuntu artful-backports/universe Translation-en [1096 B]
Get:26 http://archive.ubuntu.com/ubuntu artful-proposed/main amd64 Packages [71.1 kB]
Get:27 http://archive.ubuntu.com/ubuntu artful-proposed/main Translation-en [32.8 kB]
Get:28 http://archive.ubuntu.com/ubuntu artful-proposed/universe amd64 Packages [30.5 kB]
Get:29 http://archive.ubuntu.com/ubuntu artful-proposed/universe Translation-en [18.1 kB]
Fetched 14.1 MB in 5s (2389 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following package was automatically installed and is no longer required:
libfreetype6
Use 'apt autoremove' to remove it.
The following packages will be upgraded:
cloud-init
1 upgraded, 0 newly installed, 0 to remove and 22 not upgraded.
Need to get 332 kB of archives.
After this operation, 6144 B of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu artful-proposed/main amd64 cloud-init all 17.1-46-g7acc9e68-0ubuntu1~17.10.1 [332 kB]
Preconfiguring packages ...
Fetched 332 kB in 0s (517 kB/s)
(Reading database ... 26632 files and directories currently installed.)
Preparing to unpack .../cloud-init_17.1-46-g7acc9e68-0ubuntu1~17.10.1_all.deb ...
Unpacking cloud-init (17.1-46-g7acc9e68-0ubuntu1~17.10.1) over (17.1-27-geb292c18-0ubuntu1~17.10.1) ...
Processing triggers for rsyslog (8.16.0-1ubuntu9) ...
invoke-rc.d: could not determine current runlevel
Setting up cloud-init (17.1-46-g7acc9e68-0ubuntu1~17.10.1) ...
Installing new version of config file /etc/cloud/templates/hosts.suse.tmpl ...
Installing new version of config file /etc/cloud/templates/ntp.conf.sles.tmpl ...
Container published with fingerprint: d600f559c8b4e47f70c7980a63de197d3ba9639ac3aea61a72e702670a618d89
Creating test-artful
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
libfreetype6
Use 'apt autoremove' to remove it.
The following additional packages will be installed:
python3-apport
Suggested packages:
apport-gtk | apport-kde python3-launchpadlib
The following packages will be upgraded:
apport python3-apport
2 upgraded, 0 newly installed, 0 to remove and 20 not upgraded.
Need to get 203 kB of archives.
After this operation, 1024 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://archive.ubuntu.com/ubuntu artful-proposed/main amd64 python3-apport all 2.20.7-0ubuntu3.6 [80.6 kB]
Get:2 http://archive.ubuntu.com/ubuntu artful-proposed/main amd64 apport all 2.20.7-0ubuntu3.6 [123 kB]
Fetched 203 kB in 0s (307 kB/s)
(Reading database ... 26633 files and directories currently installed.)
Preparing to unpack .../python3-apport_2.20.7-0ubuntu3.6_all.deb ...
Unpacking python3-apport (2.20.7-0ubuntu3.6) over (2.20.7-0ubuntu3.5) ...
Preparing to unpack .../apport_2.20.7-0ubuntu3.6_all.deb ...
Unpacking apport (2.20.7-0ubuntu3.6) over (2.20.7-0ubuntu3.5) ...
Processing triggers for ureadahead (0.100.0-20) ...
Setting up python3-apport (2.20.7-0ubuntu3.6) ...
Processing triggers for systemd (234-2ubuntu12.1) ...
Setting up apport (2.20.7-0ubuntu3.6) ...
Processing triggers for man-db (2.7.6.1-2) ...
apport 2.20.7-0ubuntu3.6
*** Collecting problem information
The collected information can be sent to the developers to improve the
application. This might take a few minutes.
..............
*** Your device details (lshw) may be useful to developers when addressing this bug, but gathering it requires admin privileges. Would you like to include this info?
What would you like to do? Your options are:
Y: Yes
N: No
C: Cancel
Please choose (Y/N/C): Y
*** Is this machine running in a cloud environment?
What would you like to do? Your options are:
Y: Yes
N: No
C: Cancel
Please choose (Y/N/C): Y
*** Please select the cloud vendor or environment in which this instance
is running
Choices:
1: Amazon - Ec2
2: AliYun
3: AltCloud
4: Azure
5: Bigstep
6: CloudSigma
7: CloudStack
8: DigitalOcean
9: GCE - Google Compute Engine
10: MAAS
11: NoCloud
12: OpenNebula
13: OpenStack
14: OVF
15: Scaleway
16: SmartOS
17: VMware
18: Other
C: Cancel
Please choose (1/2/3/4/5/6/7/8/9/10/11/12/13/14/15/16/17/18/C): 2
*** Your user-data or cloud-config file can optionally be provided from /var/lib/cloud/instance/user-data.txt and could be useful to developers when addressing this bug. Do you wish to attach user-data to this bug?
What would you like to do? Your options are:
Y: Yes
N: No
C: Cancel
Please choose (Y/N/C): Y
..
*** Send problem report to the developers?
After the problem report has been sent, please fill out the form in the
automatically opened web browser.
What would you like to do? Your options are:
S: Send report (80.1 KB)
V: View report
K: Keep report file for sending later or copying to somewhere else
I: Cancel and ignore future crashes of this program version
C: Cancel
Please choose (S/V/K/I/C): C
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apport in Ubuntu.
https://bugs.launchpad.net/bugs/1722564
Title:
apport question will not accept multi-character responses
Status in Apport:
Confirmed
Status in apport package in Ubuntu:
Fix Released
Status in apport source package in Xenial:
Fix Committed
Status in apport source package in Zesty:
Fix Committed
Status in apport source package in Artful:
Fix Committed
Bug description:
=== Begin SRU Template ===
[Impact]
Packages which provide apport integration with more than 9 options in a choice will not be able to select options numbered >= 10 on the commandline using 'ubuntu-bug <package-name>'
[Test Case]
Overview:
1. Update to proposed versions of cloud-init v. 17.1 and apport v. <X>
2. Run 'ubuntu-bug cloud-init' attempt to report a bug on a cloud choice greater than 9
3. View report and make sure the proper cloud is reported
Script:
if [ ! -f './lxc-proposed-snapshot' ]; then
wget https://raw.githubusercontent.com/cloud-init/ubuntu-sru/master/bin/lxc-proposed-snapshot;
chmod 755 lxc-proposed-snapshot;
fi
for release in xenial artful; do
ref=$release-proposed;
echo "$release START --------------";
lxc-proposed-snapshot --proposed --publish $release $ref;
lxc init $ref test-$release;
lxc start test-$release;
lxc exec test-$release -- apt install apport;
lxc exec test-$release -- dpkg-query --show apport;
lxc exec test-$release -- ubuntu-bug cloud-init;
done
[Regression Potential]
Minimal. This bug only affects packages with >9 bug filing options for a given choice. Worst case, is bugs filed would incorrectly represent option 1 of a selection instead of option 1X.
=== End SRU Template ===
=== original description ===
the newly added cloud-init apport support shows a list of cloud providers and asks the user to select one. There are currently 18 options. For any option > 10, apport will just take the '1' that is typed as the answer.
It should obviously wait for more than one character or a carriage
return.
*** Please select the cloud vendor or environment in which this
instance is running
Choices:
1: Amazon - Ec2
2: AliYun
3: AltCloud
4: Azure
5: Bigstep
6: CloudSigma
7: CloudStack
8: DigitalOcean
9: GCE - Google Compute Engine
10: MAAS
11: NoCloud
12: OpenNebula
13: OpenStack
14: OVF
15: Scaleway
16: SmartOS
17: VMware
18: Other
C: Cancel
Please choose (1/2/3/4/5/6/7/8/9/10/11/12/13/14/15/16/17/18/C): 1
ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: apport 2.20.7-0ubuntu2
ProcVersionSignature: Ubuntu 4.13.0-12.13-generic 4.13.3
Uname: Linux 4.13.0-12-generic x86_64
ApportVersion: 2.20.7-0ubuntu2
Architecture: amd64
Date: Tue Oct 10 15:21:48 2017
PackageArchitecture: all
ProcEnviron:
TERM=xterm-256color
PATH=(custom, no user)
LANG=C.UTF-8
SourcePackage: apport
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/apport/+bug/1722564/+subscriptions
More information about the foundations-bugs
mailing list