-
Bug
-
Resolution: Done-Errata
-
Undefined
-
rhel-9.1.0
-
tracer-1.1-2.el9
-
None
-
None
-
rhel-sst-cs-system-management
-
ssg_core_services
-
15
-
None
-
QE ack, Dev ack
-
False
-
-
None
-
None
-
Pass
-
Automated
-
If docs needed, set a value
-
-
Unspecified
-
None
Description of problem:
The man page suggests that tracer could report processes for certain users with -e/-r/-u. However, after downgrading procps-ng, logging in from virtual console and running top as "testuser", and upgrading procps-ng all the following produce the same report when running as root:
- tracer -e
- tracer -r
- tracer -u nosuchuser
Either these should be fixed or the man page should be updated to better explain what these options are about. Regardless, the last case should probably cause an error due to invalid/unknown user specified.
The mutually exclusive option gives an exception, not sure is this related or not but should also be fixed:
- tracer --erased
Traceback (most recent call last):
File "/usr/bin/tracer", line 34, in <module>
tracer.main.run()
File "/usr/lib/python3.9/site-packages/tracer/main.py", line 45, in run
return router.dispatch()
File "/usr/lib/python3.9/site-packages/tracer/resources/router.py", line 52, in dispatch
controller = DefaultController(self.args, self.packages)
File "/usr/lib/python3.9/site-packages/tracer/controllers/default.py", line 62, in _init_
self.applications = self.tracer.trace_affected(self._user(args.user))
File "/usr/lib/python3.9/site-packages/tracer/resources/tracer.py", line 117, in trace_affected
if self._erased and not self._PACKAGE_MANAGER.provided_by(a.name):
File "/usr/lib/python3.9/site-packages/tracer/resources/PackageManager.py", line 63, in provided_by
return self.package_managers[0].provided_by(app)
File "/usr/lib/python3.9/site-packages/tracer/packageManagers/rpm.py", line 162, in provided_by
process = app.instances[0] # @TODO Reimplement for all processes
AttributeError: 'str' object has no attribute 'instances'
Version-Release number of selected component (if applicable):
python3-tracer-0.7.5-4.el9.noarch
- links to
-
RHBA-2023:125008 tracer update
- mentioned on