pcs constraint colocation add does not use correct score in constraint ID

Solution In Progress - Updated -

Issue

  • When creating a colocation constraint with a score specified, the specified score is used correctly in the resulting constraint's score attribute 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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content