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

[RFE] Provide means to export resource defaults and resource operation defaults as pcs commands [rhel-9]

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Major Major
    • rhel-9.5
    • rhel-9.0.0
    • pcs
    • sst_high_availability
    • ssg_filesystems_storage_and_HA
    • 13
    • 19
    • 5
    • False
    • Hide

      None

      Show
      None
    • Yes
    • None
    • Enhancement
    • Hide
      .New `pcs resource defaults` and `pcs resource op defaults` option for displaying configuration in text, JSON, and command formats

      The `pcs resource defaults` and `pcs resource op defaults` commands and their aliases `pcs stonith defaults` and `pcs stonith op defaults` now provide the `--output-format` option.

      * Specifying `--output-format=text` displays the configured resource defaults or operation defaults in plain text format, which is the default value for this option.

      * Specifying `--output-format=cmd` displays the `pcs resource defaults` or `pcs resource op defaults` commands created from the current cluster defaults configuration. You can use these commands to re-create configured resource defaults or resource operation defaults on a different system.

      * Specifying `--output-format=json` displays the configured resource defaults or resource operation defaults in JSON format, which is suitable for machine parsing.
      Show
      .New `pcs resource defaults` and `pcs resource op defaults` option for displaying configuration in text, JSON, and command formats The `pcs resource defaults` and `pcs resource op defaults` commands and their aliases `pcs stonith defaults` and `pcs stonith op defaults` now provide the `--output-format` option. * Specifying `--output-format=text` displays the configured resource defaults or operation defaults in plain text format, which is the default value for this option. * Specifying `--output-format=cmd` displays the `pcs resource defaults` or `pcs resource op defaults` commands created from the current cluster defaults configuration. You can use these commands to re-create configured resource defaults or resource operation defaults on a different system. * Specifying `--output-format=json` displays the configured resource defaults or resource operation defaults 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 resource defaults and resource operation defaults configuration.

      Acceptance Criteria

      • There is a CLI command which prints resource defaults in plaintext, json, and pcs commands format.
      • There is an API call which exports resource defaults in a data  structure.
      • There is a similar CLI command an an API call for resource operation defaults.
      • Existing library calls for exporting resource defaults and resource operation defaults are used.
      • Pcs man page and help text is updated accordingly
      • There are corresponding pcs / pcsd capabilities.

            mmazoure Michal Mazourek
            tojeline@redhat.com Tomas Jelinek
            Miroslav Lisik Miroslav Lisik
            Michal Mazourek Michal Mazourek
            Steven Levine Steven Levine
            Votes:
            0 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated: