summaryrefslogtreecommitdiffstats
path: root/lrm/test/testcases/rscmgmt.exp
blob: 3a5c4bf8f90cdd03a700c4f1a69a34e7eaf294a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
.TRY List resources
Currently no resources are managed by LRM.
.TRY Add resource r1 class=ocf type=lrmregtest provider=heartbeat args=
Succeeded in adding this resource.
.TRY Show info r1

Resource ID:r1
Resource agent class:ocf
Resource agent type:lrmregtest
Resource agent provider:heartbeat
.TRY List resources

Resource ID:r1
Resource agent class:ocf
Resource agent type:lrmregtest
Resource agent provider:heartbeat
.TRY Delete resource r1
Succeeded in deleting this resource.
.SETENV dflt_class=lsb dflt_type=lrmregtest
.TRY List resources
Currently no resources are managed by LRM.
.TRY Add resource r1 class=lsb type=lrmregtest provider=heartbeat args=
Succeeded in adding this resource.
.TRY List resources

Resource ID:r1
Resource agent class:lsb
Resource agent type:lrmregtest
Resource agent provider:heartbeat
.TRY Delete resource r1
Succeeded in deleting this resource.
.TRY List resources
Currently no resources are managed by LRM.
.SETENV dflt_class=ocf
.TRY Add resource r1 class=ocf type=lrmregtest provider=heartbeat args=
Succeeded in adding this resource.
.TRY Add resource r1 class=lsb type=lrmregtest provider=heartbeat args=
ERROR: lrm_add_rsc(): got a return code HA_FAIL from a reply message of addrsc with function get_ret_from_msg.
Failed to add this resource.
.TRY Add resource r1 class=ocf type=lrmregtest provider=heartbeat args=
ERROR: lrm_add_rsc(): got a return code HA_FAIL from a reply message of addrsc with function get_ret_from_msg.
Failed to add this resource.
.TRY Delete resource r1
Succeeded in deleting this resource.
.TRY Add resource r1 class=lsb type=lrmregtest provider=heartbeat args=
Succeeded in adding this resource.
.TRY List resources

Resource ID:r1
Resource agent class:lsb
Resource agent type:lrmregtest
Resource agent provider:heartbeat
.TRY Add resource r2 class=ocf type=lrmregtest provider=heartbeat args=
Succeeded in adding this resource.
.TRY List resources

Resource ID:r2
Resource agent class:ocf
Resource agent type:lrmregtest
Resource agent provider:heartbeat

Resource ID:r1
Resource agent class:lsb
Resource agent type:lrmregtest
Resource agent provider:heartbeat
.TRY Delete resource r1
Succeeded in deleting this resource.
.TRY Delete resource r2
Succeeded in deleting this resource.
.TRY List resources
Currently no resources are managed by LRM.
.TRY Delete resource r1
ERROR: lrm_delete_rsc(): got a return code HA_FAIL from a reply message of delrsc with function get_ret_from_msg.
Failed to delete this resource.