+++ This bug was initially created as a clone of Bug #2163914 +++ 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 BZ is focused on cluster properties configuration.
Upstream patch: https://github.com/ClusterLabs/pcs/commit/d5642c2ede0d6555603bc385dc35e581d2f0fddd Updated commands: * pcs property [config] Added commands: * pcs property defaults * pcs property describe Environment: A running cluster with some configured properties. Test: # pcs property set placement-strategy=minimal # 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@r08-09-a ~]# rpm -q pcs pcs-0.10.16-1.el8.x86_64 [root@r08-09-a ~]# pcs property set placement-strategy=minimal [root@r08-09-a ~]# pcs property config --output-format=cmd pcs property set --force -- \ placement-strategy=minimal
As discussed, 'pcs property config' text output should not change in late RHEL8 release.
Upstream patch: https://github.com/ClusterLabs/pcs/commit/88f57a99be1abba795c0b95f88f2f9930d26ec15 Updated commands: * pcs property [config] * pcs config Environment: A running cluster with some configured properties. Test: # pcs property Cluster Properties: cluster-infrastructure: corosync cluster-name: HACluster dc-version: 2.1.6-1.el8-6fdc9deea29 have-watchdog: false # pcs config | sed "/Cluster Properties:/,/^$/p" -n Cluster Properties: cluster-infrastructure: corosync cluster-name: HACluster dc-version: 2.1.6-1.el8-6fdc9deea29 have-watchdog: false
DevTestResults: [root@r08-09-b ~]# rpm -q pcs pcs-0.10.17-1.el8.x86_64 [root@r08-09-b ~]# pcs property config --output-format=cmd pcs property set --force -- \ maintenance-mode=false \ placement-strategy=minimal [root@r08-09-b ~]# pcs property config Cluster Properties: cluster-infrastructure: corosync cluster-name: pre1 dc-version: 2.1.6-1.el8-6fdc9deea29 have-watchdog: false maintenance-mode: false placement-strategy: minimal