Bug 2163914
| Summary: | [RFE] Provide means to export configured cluster properties as pcs commands | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | Tomas Jelinek <tojeline> | |
| Component: | pcs | Assignee: | Miroslav Lisik <mlisik> | |
| Status: | VERIFIED --- | QA Contact: | cluster-qe <cluster-qe> | |
| Severity: | medium | Docs Contact: | ||
| Priority: | medium | |||
| Version: | 9.3 | CC: | cluster-maint, idevat, mlisik, mmazoure, mpospisi, nhostako, omular, slevine, tojeline | |
| Target Milestone: | rc | Keywords: | FutureFeature, Triaged | |
| Target Release: | 9.3 | Flags: | slevine:
needinfo?
(mlisik) |
|
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | pcs-0.11.5-1.el9 | Doc Type: | Enhancement | |
| Doc Text: |
Feature:
Pcs command `pcs property` is now able to export cluster properties configuration in form of text, json and pcs command(s) by using option '--output-format'. During the overhaul of `pcs property` command the option '--defaults' was deprecated in favor of newly added command `pcs property defaults`. Another new command `pcs property describe` for describing meaning of cluster properties was added. Text format output of `pcs resource describe` command was extended and unified with `pcs property describe` text output.
Reason:
Pcs was able only to export configuration of cluster properties in text format. Ability to export configuration of cluster properties in format of pcs command is very useful feature that contributes to more portable form of re-creation of current cluster configuration. In order to add feature, the `pcs property [config]` command needed to be rewritten to the new architecture.
Result:
Pcs command `pcs property` now support '--output-format' option. There are 3 formats of output available: 'cmd', 'json', 'text', default is 'text'. The 'text' format slightly differs from previous `pcs property` command plaintext only format. Another two commands were added: `pcs property defaults` and `pcs property describe`. Text output format of `pcs resource describe` command was extended.
|
Story Points: | --- | |
| Clone Of: | ||||
| : | 2166289 (view as bug list) | Environment: | ||
| Last Closed: | Type: | Bug | ||
| Regression: | --- | Mount Type: | --- | |
| Documentation: | --- | CRM: | ||
| Verified Versions: | Category: | --- | ||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
| Cloudforms Team: | --- | Target Upstream Version: | ||
| Embargoed: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 2166289 | |||
|
Description
Tomas Jelinek
2023-01-24 14:04:21 UTC
Upstream patch: https://github.com/ClusterLabs/pcs/commit/3b1cdc84d2f4d625350d72d04fe37a5abf423220 Updated commands: * pcs property [config] Added commands: * pcs property defaults * pcs property describe Enviroment: A running cluster with some configured properties. Test: # pcs property config --output-format=cmd pcs property set --force -- \ placement-strategy=minimal # pcs property defaults placement-strategy placement-strategy=default # pcs property describe placement-strategy placement-strategy Description: How the cluster should allocate resources to nodes Allowed values: 'balanced', 'default', 'minimal', 'utilization' Default: default DevTestResults: [root@r09-03-a ~]# rpm -q pcs pcs-0.11.5-1.el9.x86_64 [root@r09-03-a ~]# pcs property set migration-limit=10 [root@r09-03-a ~]# pcs property config --output-format=cmd pcs property set --force -- \ migration-limit=10 \ placement-strategy=minimal |