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

[RFE] Put 'crm_verify' messages in 'pcs status' output, run 'crm_verify' when editing CIB [rhel-9]

Linking RHIVOS CVEs to...Migration: Automation ...Sync from "Extern...XMLWordPrintable

    • pcs-0.11.9-3.el9
    • None
    • FutureFeature
    • rhel-ha
    • 13
    • 19
    • 0
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • Enhancement
    • Hide
      .`pcs` automatically validates the CIB for potential issues

      Previously, the `pcs` utility did not automatically run advanced validation checks on the Cluster Information Base (CIB). As a consequence, certain cluster misconfigurations could remain undetected during routine operations.

      With this enhancement, `pcs` has been updated to integrate Pacemaker's CIB validation tool into its workflow.

      As a result, `pcs` now automatically performs a validation check and displays the results when you run the `pcs status`, `pcs cluster edit`, or `pcs cluster cib-push` commands.
      Show
      .`pcs` automatically validates the CIB for potential issues Previously, the `pcs` utility did not automatically run advanced validation checks on the Cluster Information Base (CIB). As a consequence, certain cluster misconfigurations could remain undetected during routine operations. With this enhancement, `pcs` has been updated to integrate Pacemaker's CIB validation tool into its workflow. As a result, `pcs` now automatically performs a validation check and displays the results when you run the `pcs status`, `pcs cluster edit`, or `pcs cluster cib-push` commands.
    • Done
    • Done
    • Done
    • Not Required
    • None

      This is a clone of issue RHEL-7681 to use for version rhel-9.7

      Original description:
      Description of problem:
      CIB may be misconfigured in such a way that it is a valid XML and confirm to the schema. In that case, it is possible to push such CIB to pacemaker with no issues. For example: not configured or misconfigured fencing; promotable clones of non-OCF resources.

      Consider also running crm_verify after successfully pushing CIB to pacemaker, to report possible issues early.

      • This has been considered and the final decision is not to do it with the following reasoning:
        • crm_verify is already being run upon failed push of user provided CIB: RHEL-63186
        • if a pcs command is run when there is already an issue with the CIB, the resulting error messages would be confusing
        • it is responsibility of pcs to prevent creating invalid CIB and report such errors early
      • pcs will, however be running crm_verify upon pushing user provided CIB even if the push succeeded

      Note that issues reported by crm_verify may depend not only on CIB but also on current cluster status.

      How reproducible:
      Always, easily

      Steps to Reproduce:
      1. create an invalid configuration, e.g. pcs resource create test1 systemd:chronyd promotable
      2. run 'pcs status'
      3.

      Actual results:
      Only several cases are covered by pcs checks, non-OCF promotable clone is not.

      Expected results:
      Pcs prints all errors and warnings provided by crm_verify

              rhn-support-nhostako Nina Hostakova
              watson-automation Watson Automation
              Malhar Jivrajani
              Tomas Jelinek Tomas Jelinek
              Nina Hostakova Nina Hostakova
              Michal Stubna Michal Stubna
              Votes:
              0 Vote for this issue
              Watchers:
              13 Start watching this issue

                Created:
                Updated: