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

[RFE] Provide means to export node utilization and attributes as pcs commands [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
    • Yes
    • None
    • Feature
    • Hide
      .The `pcs node attribute` and `pcs node utilization` commands now support multiple output formats

      Previously, the `pcs node attribute` and `pcs node utilization` commands displayed their 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 node attribute` and `pcs node utilization` commands.

      As a result, you can now display the configured node attributes and utilization 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 configuration on a different system.
      Show
      .The `pcs node attribute` and `pcs node utilization` commands now support multiple output formats Previously, the `pcs node attribute` and `pcs node utilization` commands displayed their 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 node attribute` and `pcs node utilization` commands. As a result, you can now display the configured node attributes and utilization 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 configuration on a different system.
    • Done
    • Done
    • Done
    • Not Required
    • None

      This is a clone of issue RHEL-21050 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 node utilization and attributes configuration. Resource utilization is already being exported.

      Acceptance Criteria

      • There is a CLI command which prints configured node utilization in plaintext, json, and pcs commands format.
      • There is a CLI command which prints configured node attributes in plaintext, json, and pcs commands format.
      • There is an API call which exports nodes' utilization, instance attributes and other CIB configuration in a data  structure.
      • Pcs man page and help text is updated accordingly.
      • There are corresponding pcs / pcsd capabilities.

       

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

                Created:
                Updated: