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

[RFE] Provide means to export tags as pcs commands [rhel-10]

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

      None

      Show
      None
    • Yes
    • None
    • Enhancement
    • Hide
      .New `pcs tag` command option for displaying cluster resource tags in text, JSON, and command formats

      The `pcs tag [config]` command now supports the `--output-format` option for the following use cases:

      * Displaying the configured text in plain text format by specifying `--output-format=text`. This is the default value for this option.

      * Displaying the commands created from the current cluster tags configuration by specifying `--output-format=cmd`. You can use these commands to re-create configured tags on a different system.

      * Displaying the configured tags in JSON format by specifying `--output-format=json`, which is suitable for machine parsing.
      Show
      .New `pcs tag` command option for displaying cluster resource tags in text, JSON, and command formats The `pcs tag [config]` command now supports the `--output-format` option for the following use cases: * Displaying the configured text in plain text format by specifying `--output-format=text`. This is the default value for this option. * Displaying the commands created from the current cluster tags configuration by specifying `--output-format=cmd`. You can use these commands to re-create configured tags on a different system. * Displaying the configured tags in JSON format by specifying `--output-format=json`, 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 pacemaker tags configuration.

      Acceptance Criteria

      • There is a CLI command which prints configured tags in plaintext, json, and pcs commands format.
      • There is an API call which exports the tags in a data  structure.
      • Exporting constraints as pcs commands and json supports tags.
      • Pcs man page and help text is updated accordingly.
      • There are corresponding pcs / pcsd capabilities.

       

              mmazoure Michal Mazourek
              tojeline@redhat.com Tomas Jelinek
              Peter Romancik Peter Romancik
              Michal Mazourek Michal Mazourek
              Steven Levine Steven Levine
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

                Created:
                Updated: