[Bug 1758529] Re: landscape-package-changer crashed with io.UnsupportedOperation in pulse(): fileno
Eric Desrochers
eric.desrochers at canonical.com
Mon Feb 24 14:48:59 UTC 2020
** Information type changed from Private to Public
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to python-apt in Ubuntu.
https://bugs.launchpad.net/bugs/1758529
Title:
landscape-package-changer crashed with io.UnsupportedOperation in
pulse(): fileno
Status in Landscape Client:
Fix Committed
Status in landscape-client package in Ubuntu:
Fix Released
Status in python-apt package in Ubuntu:
Invalid
Status in landscape-client source package in Bionic:
In Progress
Status in python-apt source package in Bionic:
Invalid
Status in landscape-client source package in Disco:
Won't Fix
Status in python-apt source package in Disco:
Invalid
Status in landscape-client source package in Eoan:
In Progress
Status in python-apt source package in Eoan:
Invalid
Bug description:
[Impact]
* landscape-package-changer will output stack traces when executed
with python3. This adds noise in the logs and confuse apport into
thinking there was a crash, even though the error does not affect
functionality.
* The activity log for package operations will also show errors.
* The patch overrides python-apt reporting of progress, as
landscape-package-changer is never executed from a terminal.
[Test Case]
* register landscape-client and wait for packages to be reported.
* trigger a package installation from the landscape server.
* check /var/log/landscape/manager.log for Package changer warnings
[Regression Potential]
* The change is trivially simple.
* The changed code path is only used by python-apt progress reporting.
Since landscape-package-changer does not rely on it and is able
to continue, other errors would likely have the same fate: that is
crashing the progress reporting thread and continuing.
[Original Description]
Crash in the background
ProblemType: Crash
DistroRelease: Ubuntu 18.04
Package: landscape-client 18.01-0ubuntu2
ProcVersionSignature: Ubuntu 4.15.0-12.13-generic 4.15.7
Uname: Linux 4.15.0-12-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.8-0ubuntu10
Architecture: amd64
Date: Sat Mar 24 07:05:34 2018
ExecutablePath: /usr/bin/landscape-package-changer
InstallationDate: Installed on 2015-07-04 (994 days ago)
InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Release amd64 (20150422)
InterpreterPath: /usr/bin/python3.6
ProcCmdline: /usr/bin/python3 /usr/bin/landscape-package-changer --quiet
ProcEnviron:
LANGUAGE=en_GB:en
PATH=(custom, no user)
LANG=en_GB.UTF-8
Python3Details: /usr/bin/python3.6, Python 3.6.5rc1, python3-minimal, 3.6.4-1
PythonArgs: ['/usr/bin/landscape-package-changer', '--quiet']
PythonDetails: /usr/bin/python2.7, Python 2.7.14+, python-minimal, 2.7.14-4
SourcePackage: landscape-client
Title: landscape-package-changer crashed with io.UnsupportedOperation in pulse(): fileno
Traceback:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apt/progress/text.py", line 164, in pulse
not os.isatty(self._file.fileno())):
io.UnsupportedOperation: fileno
UpgradeStatus: Upgraded to bionic on 2018-03-15 (8 days ago)
UserGroups:
To manage notifications about this bug go to:
https://bugs.launchpad.net/landscape-client/+bug/1758529/+subscriptions
More information about the foundations-bugs
mailing list