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

[RFE] Provide means to export pacemaker alerts as pcs commands [rhel-9]

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

    • rhel-ha
    • 13
    • 19
    • 0
    • False
    • False
    • Hide

      None

      Show
      None
    • Yes
    • None
    • Feature
    • Hide
      .The `pcs alert config` command now supports multiple output formats

      Previously, the `pcs alert config` command displayed its output only in a human-readable plain text format. This format was not suitable for machine parsing or for easily replicating the configuration.

      With this enhancement, a new `--output-format` option has been added to the `pcs alert config` command.

      As a result, you can now display the configured alerts in one of three formats:
      * `text`: Displays the output in plain text. This is the default format.
      * `json`: Displays the output in a machine-readable JSON format, which is useful for scripting and automation.
      * `cmd`: Displays the output as a series of `pcs` commands, which you can use to recreate the same alert configuration on a different system.
      Show
      .The `pcs alert config` command now supports multiple output formats Previously, the `pcs alert config` command displayed its output only in a human-readable plain text format. This format was not suitable for machine parsing or for easily replicating the configuration. With this enhancement, a new `--output-format` option has been added to the `pcs alert config` command. As a result, you can now display the configured alerts in one of three formats: * `text`: Displays the output in plain text. This is the default format. * `json`: Displays the output in a machine-readable JSON format, which is useful for scripting and automation. * `cmd`: Displays the output as a series of `pcs` commands, which you can use to recreate the same alert configuration on a different system.
    • Done
    • Done
    • Done
    • Not Required
    • None

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

      Original description:

      Goal

      This is a part of a long term goal to export the whole cluster configuration in form of pcs commands which, when run, recreate the same configuration.

      This particular ticket is focused on pacemaker alerts.

      Acceptance Criteria

      • There is a CLI command which prints pacemaker alerts in plaintext, json, and pcs commands format.
      • There is an API call which exports pacemaker alerts in a data  structure.
      • Pcs man page and help text is updated accordingly.
      • There are corresponding pcs / pcsd capabilities.

              mmazoure Michal Mazourek
              watson-automation Watson Automation
              Malhar Jivrajani
              Tomas Jelinek Tomas Jelinek
              Michal Mazourek Michal Mazourek
              Michal Stubna Michal Stubna
              Votes:
              0 Vote for this issue
              Watchers:
              12 Start watching this issue

                Created:
                Updated: