Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-6988

tracer exception, user parameters ignored

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Undefined Undefined
    • rhel-9.4
    • rhel-9.1.0
    • tracer
    • tracer-1.1-2.el9
    • None
    • None
    • rhel-sst-cs-system-management
    • ssg_core_services
    • 15
    • None
    • QE ack, Dev ack
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • If docs needed, set a value
    • 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:

      1. tracer -e
      2. tracer -r
      3. 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:

      1. 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

              jkadlcik Jakub Kadlčík
              myllynen Marko Myllynen
              Jakub Kadlčík Jakub Kadlčík
              Evgeny Fedin Evgeny Fedin
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: