crmsh icon indicating copy to clipboard operation
crmsh copied to clipboard

Multiple " target-role=Stopped"

Open liangxin1300 opened this issue 4 years ago • 2 comments

When resource has multiple meta entries, multiple target-role=Stopped will be added while stopping the resource:

primitive d Dummy \
        meta priority=123 target-role=Stopped \
        meta resource-stickiness=0 allow-migrate=true target-role=Stopped \
        op monitor interval=10s

@zzhou1 @gao-yan Do you think this is a bug?

liangxin1300 avatar Jan 11 '21 03:01 liangxin1300

From the conceptual level, I do read it as a cusmetic issue. I found another cusmetic one as below very recently. No sure if the root cause is same, at least it is similiar.

sle15sp2-2:~ # crm config show p_fs
primitive p_fs Filesystem \
        op monitor interval=30s \
        op_params OCF_CHECK_LEVEL=20 \
        params device="/dev/vg1/lv1" directory="/srv/nfs" fstype=xfs
sle15sp2-2:~ # crm resource trace p_fs
INFO: Trace for p_fs is written to /var/lib/heartbeat/trace_ra/
INFO: Trace set, restart p_fs to trace non-monitor operations
sle15sp2-2:~ # crm config show p_fs
primitive p_fs Filesystem \
        op start interval=0 \
        op_params trace_ra=1 \
        op stop interval=0 \
        op_params trace_ra=1 \
        op monitor interval=30s \
        op_params OCF_CHECK_LEVEL=20 trace_ra=1 \
        params device="/dev/vg1/lv1" directory="/srv/nfs" fstype=xfs
sle15sp2-2:~ # crm resource untrace p_fs
sle15sp2-2:~ # crm config show p_fs
primitive p_fs Filesystem \
        op monitor interval=30s \
        op_params OCF_CHECK_LEVEL=20 \
        params device="/dev/vg1/lv1" directory="/srv/nfs" fstype=xfs

zzhou1 avatar Jan 11 '21 03:01 zzhou1

From the conceptual level, I do read it as a cusmetic issue. I found another cusmetic one as below very recently. No sure if the root cause is same, at least it is similiar.

sle15sp2-2:~ # crm config show p_fs
primitive p_fs Filesystem \
        op monitor interval=30s \
        op_params OCF_CHECK_LEVEL=20 \
        params device="/dev/vg1/lv1" directory="/srv/nfs" fstype=xfs
sle15sp2-2:~ # crm resource trace p_fs
INFO: Trace for p_fs is written to /var/lib/heartbeat/trace_ra/
INFO: Trace set, restart p_fs to trace non-monitor operations
sle15sp2-2:~ # crm config show p_fs
primitive p_fs Filesystem \
        op start interval=0 \
        op_params trace_ra=1 \
        op stop interval=0 \
        op_params trace_ra=1 \
        op monitor interval=30s \
        op_params OCF_CHECK_LEVEL=20 trace_ra=1 \
        params device="/dev/vg1/lv1" directory="/srv/nfs" fstype=xfs
sle15sp2-2:~ # crm resource untrace p_fs
sle15sp2-2:~ # crm config show p_fs
primitive p_fs Filesystem \
        op monitor interval=30s \
        op_params OCF_CHECK_LEVEL=20 \
        params device="/dev/vg1/lv1" directory="/srv/nfs" fstype=xfs

This is the expected behavior by design, please see crm resource help trace

liangxin1300 avatar Aug 15 '22 08:08 liangxin1300

See discussion in https://github.com/ClusterLabs/crmsh/pull/1008#discussion_r1039410607

liangxin1300 avatar Dec 05 '22 13:12 liangxin1300