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

[RFE] Make 'pcs (resource|stonith) (create|update)' commands call the respective agents 'validate-all' action

    • pcs-0.11.7-5.el10
    • rhel-sst-high-availability
    • ssg_filesystems_storage_and_HA
    • 13
    • 19
    • 3
    • False
    • Hide

      None

      Show
      None
    • Yes
    • None
    • Enhancement
    • Hide
      .`pcs` now validates resource parameters when creating or updating a resource

      When you create or update a cluster resource, the `pcs` command-line interface now automatically asks the resource agent to validate the parameters you entered. If you specify `--agent-validation`, an invalid parameter yields an error. To maintain backward compatibility, if you do not specify `--agent-validation`, an invalid parameter prints a warning but does not prevent misconfiguration.
      Show
      .`pcs` now validates resource parameters when creating or updating a resource When you create or update a cluster resource, the `pcs` command-line interface now automatically asks the resource agent to validate the parameters you entered. If you specify `--agent-validation`, an invalid parameter yields an error. To maintain backward compatibility, if you do not specify `--agent-validation`, an invalid parameter prints a warning but does not prevent misconfiguration.
    • Done
    • None

      Goal

      As a followup to rhbz#2112270 and rhbz#2159454, pcs should validate instance attributes via agents by default.

      To prevent unnecessary failures caused by various issues in the agents, however, pcs will not error-out unless --agent-validation is specified.

      The long-term goal is to prevent the agent misconfiguration, rather than let the agent being misconfigured and fail.

      Acceptance Criteria

      • 'pcs (resource|stonith) (create|update)' commands call the respective agents 'validate-all' action by default
      • if --agent-validation is not specified, the validation doesn't produce errors
      • if --agent-validation is specified, the validation does produce errors and prevents resource misconfiguration
      • pcs doesn't fail in case the resource or stonith agent doesn't support 'validate-all' action

              rhn-support-nhostako Nina Hostakova
              tojeline@redhat.com Tomas Jelinek
              Tomas Jelinek Tomas Jelinek
              Nina Hostakova Nina Hostakova
              Steven Levine Steven Levine
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

                Created:
                Updated: