<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<br>
<br>
<div class="moz-cite-prefix">On 19/12/2023 19:13, lejeczek via Users
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:c087e577-ed8b-43c1-a107-1a287fdc97ac@yahoo.co.uk">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<font size="2" face="Courier 10 Pitch">hi guys,<br>
<br>
Is this below not the weirdest thing?<br>
<br>
-> $ pcs constraint ref PGSQL-PAF-5435<br>
Resource: PGSQL-PAF-5435<br>
colocation-HA-10-1-1-84-PGSQL-PAF-5435-clone-INFINITY<br>
colocation-REDIS-6385-clone-PGSQL-PAF-5435-clone-INFINITY<br>
order-PGSQL-PAF-5435-clone-HA-10-1-1-84-Mandatory<br>
order-PGSQL-PAF-5435-clone-HA-10-1-1-84-Mandatory-1<br>
colocation_set_PePePe<br>
<br>
Here Redis master should folow pgSQL master.<br>
Which such constraint:<br>
<br>
-> $ pcs resource status PGSQL-PAF-5435<br>
* Clone Set: PGSQL-PAF-5435-clone [PGSQL-PAF-5435]
(promotable):<br>
* Promoted: [ ubusrv1 ]<br>
* Unpromoted: [ ubusrv2 ubusrv3 ]<br>
-> $ pcs resource status REDIS-6385-clone<br>
* Clone Set: REDIS-6385-clone [REDIS-6385] (promotable):<br>
* Unpromoted: [ ubusrv1 ubusrv2 ubusrv3 ]<br>
<br>
If I remove that constrain:<br>
-> $ pcs constraint delete
colocation-REDIS-6385-clone-PGSQL-PAF-5435-clone-INFINITY<br>
-> $ pcs resource status REDIS-6385-clone<br>
* Clone Set: REDIS-6385-clone [REDIS-6385] (promotable):<br>
* Promoted: [ ubusrv1 ]<br>
* Unpromoted: [ ubusrv2 ubusrv3 ]<br>
<br>
and ! I can manually move Redis master around, master moves to
each server just fine.<br>
I again, add that constraint:<br>
<br>
-> $ pcs constraint colocation add master REDIS-6385-clone
with master PGSQL-PAF-5435-clone<br>
<br>
and the same...<br>
<br>
<br>
</font> </blockquote>
What there might be about that one node - resource removed, created
anew and cluster insists on keeping master there.<br>
I can manually move the master anywhere but if I _clear_ the
resource, no constraints then cluster move it back to the same node.<br>
<br>
I wonder about: a) "transient" node attrs & b) if this cluster
is somewhat broken.<br>
On a) - can we read more about those somewhere?(not the
code/internals)<br>
thanks, L.<br>
</body>
</html>