<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<font size="2" face="Courier 10 Pitch">Hi guys.<br>
<br>
With these:<br>
<br>
-> $ pcs resource status REDIS-6381-clone<br>
* Clone Set: REDIS-6381-clone [REDIS-6381] (promotable):<br>
* Promoted: [ ubusrv2 ]<br>
* Unpromoted: [ ubusrv1 ubusrv3 ]<br>
<br>
-> $ pcs resource status PGSQL-PAF-5433-clone<br>
* Clone Set: PGSQL-PAF-5433-clone [PGSQL-PAF-5433] (promotable):<br>
* Promoted: [ ubusrv1 ]<br>
* Unpromoted: [ ubusrv2 ubusrv3 ]<br>
<br>
-> $ pcs constraint ref REDIS-6381-clone<br>
Resource: REDIS-6381-clone<br>
colocation-REDIS-6381-clone-PGSQL-PAF-5433-clone-INFINITY<br>
<br>
basically promoted Redis should follow promoted pgSQL but it's not
happening, usually it does.<br>
I presume pcs/cluster does something internally which results in
disobeying/ignoring that _colocation_ constraint for these
resources.<br>
I presume scoring might play a role:<br>
REDIS-6385-clone with PGSQL-PAF-5435-clone (score:1001)
(rsc-role:Master) (with-rsc-role:Master)<br>
but usually, that scoring works, only "now" it does not.<br>
Any comments I appreciate much.<br>
thanks, L.<br>
<br>
I looked at pamaker log - snippet below after REDIS-6381-clone
re-enabled - but cannot see explanation for this.<br>
...<br>
notice: Calculated transition 110, saving inputs in
/var/lib/pacemaker/pengine/pe-input-3729.bz2<br>
notice: Transition 110 (Complete=0, Pending=0, Fired=0,
Skipped=0, Incomplete=0,
Source=/var/lib/pacemaker/pengine/pe-input-3729.bz2): Complete<br>
notice: State transition S_TRANSITION_ENGINE -> S_IDLE<br>
notice: State transition S_IDLE -> S_POLICY_ENGINE<br>
notice: Actions: Start REDIS-6381:0
( ubusrv2 )<br>
notice: Actions: Start REDIS-6381:1
( ubusrv3 )<br>
notice: Actions: Start REDIS-6381:2
( ubusrv1 )<br>
notice: Calculated transition 111, saving inputs in
/var/lib/pacemaker/pengine/pe-input-3730.bz2<br>
notice: Initiating start operation REDIS-6381_start_0 locally on
ubusrv2<br>
notice: Requesting local execution of start operation for
REDIS-6381 on ubusrv2<br>
(to redis) root on none<br>
pam_unix(su:session): session opened for user redis(uid=127) by
(uid=0)<br>
pam_sss(su:session): Request to sssd failed. Connection refused<br>
pam_unix(su:session): session closed for user redis<br>
pam_sss(su:session): Request to sssd failed. Connection refused<br>
notice: Setting master-REDIS-6381[ubusrv2]: (unset) -> 1000<br>
notice: Transition 111 aborted by status-2-master-REDIS-6381
doing create master-REDIS-6381=1000: Transient attribute change<br>
INFO: demote: Setting master to 'no-such-master'<br>
notice: Result of start operation for REDIS-6381 on ubusrv2: ok<br>
notice: Transition 111 (Complete=4, Pending=0, Fired=0,
Skipped=1, Incomplete=14,
Source=/var/lib/pacemaker/pengine/pe-input-3730.bz2): Stopped<br>
notice: Actions: Promote REDIS-6381:0 ( Unpromoted
-> Promoted ubusrv2 )<br>
notice: Actions: Start REDIS-6381:1
( ubusrv1 )<br>
notice: Actions: Start REDIS-6381:2
( ubusrv3 )<br>
notice: Calculated transition 112, saving inputs in
/var/lib/pacemaker/pengine/pe-input-3731.bz2<br>
notice: Initiating notify operation REDIS-6381_pre_notify_start_0
locally on ubusrv2<br>
notice: Requesting local execution of notify operation for
REDIS-6381 on ubusrv2<br>
notice: Result of notify operation for REDIS-6381 on ubusrv2: ok<br>
notice: Initiating start operation REDIS-6381_start_0 on ubusrv1<br>
notice: Initiating start operation REDIS-6381:2_start_0 on
ubusrv3<br>
notice: Initiating notify operation
REDIS-6381_post_notify_start_0 locally on ubusrv2<br>
notice: Requesting local execution of notify operation for
REDIS-6381 on ubusrv2<br>
notice: Initiating notify operation
REDIS-6381_post_notify_start_0 on ubusrv1<br>
notice: Initiating notify operation
REDIS-6381:2_post_notify_start_0 on ubusrv3<br>
notice: Result of notify operation for REDIS-6381 on ubusrv2: ok<br>
notice: Initiating notify operation
REDIS-6381_pre_notify_promote_0 locally on ubusrv2<br>
notice: Requesting local execution of notify operation for
REDIS-6381 on ubusrv2<br>
notice: Initiating notify operation
REDIS-6381_pre_notify_promote_0 on ubusrv1<br>
notice: Initiating notify operation
REDIS-6381:2_pre_notify_promote_0 on ubusrv3<br>
notice: Result of notify operation for REDIS-6381 on ubusrv2: ok<br>
notice: Initiating promote operation REDIS-6381_promote_0 locally
on ubusrv2<br>
notice: Requesting local execution of promote operation for
REDIS-6381 on ubusrv2<br>
notice: Result of promote operation for REDIS-6381 on ubusrv2: ok<br>
notice: Initiating notify operation
REDIS-6381_post_notify_promote_0 locally on ubusrv2<br>
notice: Requesting local execution of notify operation for
REDIS-6381 on ubusrv2<br>
notice: Initiating notify operation
REDIS-6381_post_notify_promote_0 on ubusrv1<br>
notice: Initiating notify operation
REDIS-6381:2_post_notify_promote_0 on ubusrv3<br>
notice: Result of notify operation for REDIS-6381 on ubusrv2: ok<br>
notice: Setting master-REDIS-6381[ubusrv3]: (unset) -> 1<br>
notice: Transition 112 aborted by status-3-master-REDIS-6381
doing create master-REDIS-6381=1: Transient attribute change<br>
notice: Setting master-REDIS-6381[ubusrv1]: (unset) -> 1<br>
notice: Transition 112 (Complete=25, Pending=0, Fired=0,
Skipped=5, Incomplete=5,
Source=/var/lib/pacemaker/pengine/pe-input-3731.bz2): Stopped<br>
notice: Calculated transition 113, saving inputs in
/var/lib/pacemaker/pengine/pe-input-3732.bz2<br>
notice: Initiating monitor operation REDIS-6381_monitor_20000
locally on ubusrv2<br>
notice: Requesting local execution of monitor operation for
REDIS-6381 on ubusrv2<br>
notice: Initiating monitor operation REDIS-6381_monitor_60000 on
ubusrv3<br>
notice: Initiating monitor operation REDIS-6381_monitor_45000 on
ubusrv3<br>
notice: Initiating monitor operation REDIS-6381_monitor_60000 on
ubusrv1<br>
notice: Initiating monitor operation REDIS-6381_monitor_45000 on
ubusrv1<br>
notice: Result of monitor operation for REDIS-6381 on ubusrv2:
promoted<br>
notice: Transition 113 (Complete=5, Pending=0, Fired=0,
Skipped=0, Incomplete=0,
Source=/var/lib/pacemaker/pengine/pe-input-3732.bz2): Complete<br>
notice: State transition S_TRANSITION_ENGINE -> S_IDLE<br>
<br>
<br>
</font>
</body>
</html>