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

[RFE] Provide means to export stonith levels as pcs commands [rhel-9]

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Major Major
    • rhel-9.6
    • rhel-9.0.0
    • pcs
    • rhel-sst-high-availability
    • 13
    • 19
    • 5
    • False
    • Hide

      None

      Show
      None
    • Yes
    • None
    • Enhancement
    • Hide
      .Support for exporting fencing level configuration in JSON format and as `pcs` commands

      The `pcs stonith config` and the `pcs stonith level config` commands now support the `--output-format=` option to display the fencing level configuration in JSON format and as `pcs` commands.

      * Specifying `--output-format=cmd` displays the `pcs` commands created from the current cluster configuration that configure fencing levels. You can use these commands to re-create configured fencing levels on a different system.

      * Specifying `--output-format=json` displays the fencing level configuration in JSON format, which is suitable for machine parsing.
      Show
      .Support for exporting fencing level configuration in JSON format and as `pcs` commands The `pcs stonith config` and the `pcs stonith level config` commands now support the `--output-format=` option to display the fencing level configuration in JSON format and as `pcs` commands. * Specifying `--output-format=cmd` displays the `pcs` commands created from the current cluster configuration that configure fencing levels. You can use these commands to re-create configured fencing levels on a different system. * Specifying `--output-format=json` displays the fencing level configuration in JSON format, which is suitable for machine parsing.
    • Done
    • None

      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 stonith levels configuration.

      Acceptance Criteria

      • The existing CLI command for exporting stonith resources as plain text, json, and pcs commands is extended to export stonith levels as well.
      • Pcs no longer warns that exporting stonith levels is not supported.
      • There is an API call to export stonith levels in a data structure.
      • Pcs man page and help text is updated accordingly
      • There are corresponding pcs / pcsd capabilities.

              slevine@redhat.com Steven Levine
              tojeline@redhat.com Tomas Jelinek
              Peter Romancik
              Michal Pospisil Michal Pospisil
              Nina Hostakova Nina Hostakova
              Steven Levine Steven Levine
              Votes:
              0 Vote for this issue
              Watchers:
              12 Start watching this issue

                Created:
                Updated: