Fedora Account System
Red Hat Associate
Red Hat Customer
When issuing the "pcs constraints" command and you have one or multiple resource sets configured, the resources in the resource set are ordered alphabetically if the default "text" output format is used. They are supposed to match the order in the CIB, as the cluster takes actions based on the order in which resources are in the CIB, the other output formats do respect the order of the resources in the CIB. This creates confusion. For example: $ sudo pcs constraint --full Colocation Set Constraints: Set Constraint: colocation_set-nfs_server score=INFINITY Resource Set: colocation_set-nfs_server_set Resources: 'nfs_data_drbd-clone' role=Promoted Resource Set: colocation_set-nfs_server_set-1 Resources: 'nfs_data_animaletti', 'nfs_data_infodir', 'nfs_data_multimedia', 'nfs_data_software', 'nfs_export_animaletti', 'nfs_export_multimedia', 'nfs_export_root', 'nfs_export_software', 'nfs_ipv4', 'nfs_ipv6', 'nfs_server' Order Set Constraints: Set Constraint: order_set-nfs_server Resource Set: order_set-nfs_server_set Resources: 'nfs_data_drbd-clone' action=promote Resource Set: order_set-nfs_server_set-1 Resources: 'nfs_data_animaletti', 'nfs_data_infodir', 'nfs_data_multimedia', 'nfs_data_software', 'nfs_export_animaletti', 'nfs_export_multimedia', 'nfs_export_root', 'nfs_export_software', 'nfs_ipv4', 'nfs_ipv6', 'nfs_server' action=start $ sudo pcs constraint --output-format=json { "location": [], "location_set": [], "colocation": [], "colocation_set": [ { "resource_sets": [ { "set_id": "colocation_set-nfs_server_set", "sequential": null, "require_all": null, "ordering": null, "action": null, "role": "Promoted", "score": null, "kind": null, "resources_ids": [ "nfs_data_drbd-clone" ] }, { "set_id": "colocation_set-nfs_server_set-1", "sequential": null, "require_all": null, "ordering": null, "action": null, "role": null, "score": null, "kind": null, "resources_ids": [ "nfs_data_infodir", "nfs_data_software", "nfs_data_animaletti", "nfs_data_multimedia", "nfs_ipv4", "nfs_ipv6", "nfs_server", "nfs_export_root", "nfs_export_software", "nfs_export_multimedia", "nfs_export_animaletti" ] } ], "attributes": { "constraint_id": "colocation_set-nfs_server", "score": "INFINITY", "influence": null, "lifetime": [] } } ], Reproducible: Always Steps to Reproduce: 1. Create a Pacemaker cluster 2. Create some resources and resource constraints sets for ordering or colocation 3. issue pcs constraint Actual Results: resources are ordered alphabetically instead of the order in the CIB Expected Results: resources are ordered literally as in the CIB
upstream patch: https://github.com/ClusterLabs/pcs/commit/6b5ca37f78d1d45c3554278137fcf7192bbd2761
Hello, there is the same bug in "pcs resource relations"; these are ordered alphabetically instead of the actual order as they are started/stopped by the cluster. Should I open a new bug or can you take care of this here? Thanks, Luca
Luca, the "pcs resource relations" issue is most likely unrelated to this one. Could you open a new bug and provide a reproducer with expected and actual results? Thank you.
Thank you Tomas, opened https://bugzilla.redhat.com/show_bug.cgi?id=2477435
FEDORA-2026-c0f7d885ee (pcs-0.12.2-2.fc43) has been submitted as an update to Fedora 43. https://bodhi.fedoraproject.org/updates/FEDORA-2026-c0f7d885ee
FEDORA-2026-d420bebe72 (pcs-0.12.2-2.fc44) has been submitted as an update to Fedora 44. https://bodhi.fedoraproject.org/updates/FEDORA-2026-d420bebe72
FEDORA-2026-a5176717a9 (pcs-0.12.2-2.fc45) has been submitted as an update to Fedora 45. https://bodhi.fedoraproject.org/updates/FEDORA-2026-a5176717a9
FEDORA-2026-d420bebe72 has been pushed to the Fedora 44 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-d420bebe72` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-d420bebe72 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2026-c0f7d885ee has been pushed to the Fedora 43 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-c0f7d885ee` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-c0f7d885ee See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2026-d420bebe72 (pcs-0.12.2-2.fc44) has been pushed to the Fedora 44 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-2026-c0f7d885ee (pcs-0.12.2-2.fc43) has been pushed to the Fedora 43 stable repository. If problem still persists, please make note of it in this bug report.