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

fence_xvm should output validation error messages to stderr instead of stdout

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

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • rhel-10.2
    • rhel-10.0
    • fence-agents
    • None
    • fence-agents-4.16.0-18.el10
    • None
    • Low
    • 1
    • rhel-ha
    • 15
    • 26
    • 3
    • False
    • False
    • Hide

      None

      Show
      None
    • No
    • HA-infra Sprint #3: Nov24 2025
    • Unspecified Release Note Type - Unknown
    • Unspecified
    • Unspecified
    • Unspecified
    • None

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

      Validate configuration of fence agent fence_xvm|fence_virt using stonith_admin. The validation errors from the fence agent are outputted to stdout instead of stderr, which is inconsistent with all other fencing agents.

      What is the impact of this issue to you?

      The validation with this agent is inconsistent with all of the other agents.

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

      fence-virt-4.16.0-5.el10.x86_64

      pacemaker-3.0.0-5.el10.x86_64

      How reproducible is this bug?:

      Always

      Steps to reproduce

      Run:

      # stonith_admin --validate --agent fence_xvm

      Expected results

      The validation messages to be on stderr

      Actual results

      The validation messages are on stdout. This is also visible in the XML output, with the <output source="stdout">:

      # stonith_admin --validate --output-as xml --agent fence_xvm
      <pacemaker-result api-version="2.41" request="stonith_admin --validate --output-as xml --agent fence_xvm">
        <validate agent="fence_xvm" valid="false">
          <command code="61">
            <output source="stdout">No domain specified!
      </output>
          </command>
        </validate>
        <status code="1" message="Error occurred"/>
      </pacemaker-result>

              rhn-engineering-oalbrigt Oyvind Albrigtsen
              rh-ee-promanci Peter Romancik
              Oyvind Albrigtsen Oyvind Albrigtsen
              Cluster QE Cluster QE
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: