pcs constraint colocation add does not use correct score in constraint ID
Issue
- When creating a colocation constraint with a score specified, the specified score is used correctly in the resulting constraint's
scoreattribute but not in the constraint ID string.
# # The resulting constraint ID is colocation-dummy2-dummy1-INFINITY
# # instead of colocation-dummy2-dummy1-1
[root@fastvm-rhel-7-6-22 ~]# pcs constraint colocation add dummy2 with dummy1 score=1
[root@fastvm-rhel-7-6-22 ~]# pcs constraint --full
Location Constraints:
Ordering Constraints:
Colocation Constraints:
dummy2 with dummy1 (score:1) (id:colocation-dummy2-dummy1-INFINITY)
Environment
- Red Hat Enterprise Linux 7 (with the High Availability Add-on)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.