Skip to content

Commit

Permalink
Fix: testcases: adapt to pacemaker updates
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasyang2022 committed Sep 29, 2024
1 parent c9a80d0 commit 73358b9
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 28 deletions.
62 changes: 35 additions & 27 deletions test/testcases/resource.exp
Original file line number Diff line number Diff line change
Expand Up @@ -1147,36 +1147,44 @@ INFO: "rm" is accepted as "delete"
.EXT crm_simulate -sUL
2 of 6 resource instances DISABLED and 0 BLOCKED from further action due to failure

Node node1: UNCLEAN (offline)
Current cluster status:
* Node List:
* Node node1: UNCLEAN (offline)

st (stonith:null): Stopped
Stopped: [ node1 ]
Stopped: [ node1 ]
p3 (ocf:heartbeat:Dummy): Stopped (disabled)
Stopped: [ node1 ]
* Full List of Resources:
* st (stonith:null): Stopped
* Clone Set: c1 [p1] (unmanaged):
* Stopped: [ node1 ]
* Clone Set: m1 [p2] (promotable):
* Stopped: [ node1 ]
* p3 (ocf:heartbeat:Dummy): Stopped (disabled)
* Clone Set: msg [g] (promotable):
* Stopped: [ node1 ]

Original: node1 capacity:
pcmk__primitive_assign: st allocation score on node1: 0
pcmk__clone_assign: c1 allocation score on node1: 0
pcmk__clone_assign: p1:0 allocation score on node1: 0
pcmk__primitive_assign: p1:0 allocation score on node1: -INFINITY
pcmk__clone_assign: m1 allocation score on node1: 0
pcmk__clone_assign: p2:0 allocation score on node1: 0
pcmk__primitive_assign: p2:0 allocation score on node1: -INFINITY
p2:0 promotion score on none: 0
pcmk__primitive_assign: p3 allocation score on node1: -INFINITY
pcmk__clone_assign: msg allocation score on node1: 0
pcmk__clone_assign: g:0 allocation score on node1: 0
pcmk__clone_assign: p0:0 allocation score on node1: 0
pcmk__clone_assign: p4:0 allocation score on node1: 0
pcmk__group_assign: g:0 allocation score on node1: -INFINITY
pcmk__group_assign: p0:0 allocation score on node1: -INFINITY
pcmk__group_assign: p4:0 allocation score on node1: -INFINITY
pcmk__primitive_assign: p0:0 allocation score on node1: -INFINITY
pcmk__primitive_assign: p4:0 allocation score on node1: -INFINITY
g:0 promotion score on none: 0
Remaining: node1 capacity:
Assignment Scores and Utilization Information:
* Original: node1 capacity:
* pcmk__primitive_assign: st allocation score on node1: 0
* pcmk__clone_assign: c1 allocation score on node1: 0
* pcmk__clone_assign: p1:0 allocation score on node1: 0
* pcmk__primitive_assign: p1:0 allocation score on node1: -INFINITY
* pcmk__clone_assign: m1 allocation score on node1: 0
* pcmk__clone_assign: p2:0 allocation score on node1: 0
* pcmk__primitive_assign: p2:0 allocation score on node1: -INFINITY
* p2:0 promotion score (inactive): -INFINITY
* pcmk__primitive_assign: p3 allocation score on node1: -INFINITY
* pcmk__clone_assign: msg allocation score on node1: 0
* pcmk__clone_assign: g:0 allocation score on node1: 0
* pcmk__clone_assign: p0:0 allocation score on node1: 0
* pcmk__clone_assign: p4:0 allocation score on node1: 0
* pcmk__group_assign: g:0 allocation score on node1: -INFINITY
* pcmk__group_assign: p0:0 allocation score on node1: -INFINITY
* pcmk__group_assign: p4:0 allocation score on node1: -INFINITY
* pcmk__primitive_assign: p0:0 allocation score on node1: -INFINITY
* pcmk__primitive_assign: p4:0 allocation score on node1: -INFINITY
* g:0 promotion score (inactive): -INFINITY
* Remaining: node1 capacity:

Transition Summary:
.SETENV showobj=
.TRY configure primitive p5 Dummy
.EXT crm_resource --show-metadata ocf:heartbeat:Dummy
Expand Down
2 changes: 1 addition & 1 deletion test_container/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM opensuse/tumbleweed
FROM docker.io/opensuse/tumbleweed
MAINTAINER Xin Liang <[email protected]>

CMD ["/usr/lib/systemd/systemd", "--system"]
Expand Down

0 comments on commit 73358b9

Please sign in to comment.