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

fence-agents: DeprecationWarning in fence_compute script: inspect.getargspec() deprecated

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • rhel-9.7
    • rhel-9.2.0
    • fence-agents
    • None
    • fence-agents-4.10.0-88.el9
    • No
    • Low
    • rhel-ha
    • 13
    • 17
    • 3
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • Release Note Not Required
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      What were you trying to do that didn't work?

      Using the fence_compute agent in a RHOSP 17.1 environment with InstanceHA configured triggers a Python deprecation warning repeatedly in Pacemaker logs.

      What is the impact of this issue to you?

      This issue generates frequent, unnecessary log entries, complicating troubleshooting and potentially masking critical log messages.

      Please provide the package NVR for which the bug is seen:

      $ rpm -q fence-agents-compute
      fence-agents-compute-4.10.0-43.el9_2.11.x86_64

      How reproducible is this bug?:

      Consistently reproducible every time the fence_compute script is executed.

      Steps to reproduce:

      1. Deploy or use an existing RHOSP 17.1 environment with InstanceHA.
      1. Perform an action involving fence_compute (e.g., compute node fencing or monitor operation).
      1. Review Pacemaker logs at /var/log/pacemaker/pacemaker.log.

      Expected results:

      The fence_compute script executes without producing deprecation warnings.

      Actual results:

      Pacemaker logs show a recurring deprecation warning:

      Mar 16 11:03:28.811 controller-150001o3010 pacemaker-fenced [26034] (log_op_output) info: fence_compute_monitor_1of2[607552] error output [ /usr/sbin/fence_compute:288: DeprecationWarning: inspect.getargspec() is deprecated since Python 3.0, use inspect.signature() or inspect.getfullargspec() ] Mar 16 11:03:28.811 controller-150001o3010 pacemaker-fenced [26034] (log_op_output) info: fence_compute_monitor_1of2[607552] error output [ clientargs = inspect.getargspec(client.Client).varargs ] Mar 16 11:03:28.811 controller-150001o3010 pacemaker-fenced [26034] (log_action) warning: fence_compute[607552] stderr: [ /usr/sbin/fence_compute:288: DeprecationWarning: inspect.getargspec() is deprecated since Python 3.0, use inspect.signature() or inspect.getfullargspec() ] Mar 16 11:03:28.812 controller-150001o3010 pacemaker-fenced [26034] (log_action) warning: fence_compute[607552] stderr: [ clientargs = inspect.getargspec(client.Client).varargs ]

      Additional context:

      This issue was identified during Red Hat support case #04079099.

              rhn-engineering-oalbrigt Oyvind Albrigtsen
              rhn-support-aromito Antonio Romito
              Antonio Romito Antonio Romito
              Daniel Barzilay Daniel Barzilay
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated: