[ClusterLabs] pcs testsuite status

Valentin Vidic Valentin.Vidic at CARNet.hr
Tue Jun 28 12:06:31 UTC 2016


I'm trying to run pcs tests on Debian unstable, but there
are some strange failures like diffs failing due to an
additional space at the end of the line or just with
"Error: cannot load cluster status, xml does not conform to the schema"

Any idea what could be the issue here?  I assume the tests
work on RHEL7 so the problem might be with the package
versions I'm using:

pacemaker: 1.1.15~rc3-2
corosync: 2.3.6-1
pcs: 0.9.152-1

FAIL: testNodeStandby (pcs.test.test_cluster.ClusterTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pcs/test/test_cluster.py", line 45, in testNodeStandby
    ac(output, "")
  File "/usr/lib/python2.7/dist-packages/pcs/test/tools/misc.py", line 31, in ac
    "strings not equal:\n{0}".format(prepare_diff(b, a))
AssertionError: strings not equal:
+ Error: cannot load cluster status, xml does not conform to the schema


======================================================================
FAIL: testFenceLevels (pcs.test.test_stonith.StonithTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pcs/test/test_stonith.py", line 374, in testFenceLevels
    assert returnVal == 0
AssertionError

======================================================================
FAIL: testStonithCreation (pcs.test.test_stonith.StonithTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pcs/test/test_stonith.py", line 161, in testStonithCreation
    """)
  File "/usr/lib/python2.7/dist-packages/pcs/test/tools/misc.py", line 31, in ac
    "strings not equal:\n{0}".format(prepare_diff(b, a))
AssertionError: strings not equal:
+ Error: cannot load cluster status, xml does not conform to the schema
  Cluster Name: test99
- Corosync Nodes:
-  rh7-1 rh7-2
- Pacemaker Nodes:
- 
- Resources:
- 
- Stonith Devices:
-  Resource: test1 (class=stonith type=fence_noxist)
-   Operations: monitor interval=60s (test1-monitor-interval-60s)
-  Resource: test2 (class=stonith type=fence_ilo)
-   Operations: monitor interval=60s (test2-monitor-interval-60s)
-  Resource: test3 (class=stonith type=fence_ilo)
-   Attributes: ipaddr=test login=testA
-   Operations: monitor interval=60s (test3-monitor-interval-60s)
-  Resource: test-fencing (class=stonith type=fence_apc)
-   Attributes: pcmk_host_list="rhel7-node1
-   Operations: monitor interval=61s (test-fencing-monitor-interval-61s)
- Fencing Levels:
- 
- Location Constraints:
- Ordering Constraints:
- Colocation Constraints:
- Ticket Constraints:
- 
- Resources Defaults:
-  No defaults set
- Operations Defaults:
-  No defaults set
- 
- Cluster Properties:
- 
- Quorum:
-   Options:


======================================================================
FAIL: testStonithDeleteRemovesLevel (pcs.test.test_stonith.StonithTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pcs/test/test_stonith.py", line 665, in testStonithDeleteRemovesLevel
    self.assertEqual(returnVal, 0)
AssertionError: 1 != 0

======================================================================
FAIL: test_stonith_create_provides_unfencing (pcs.test.test_stonith.StonithTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pcs/test/test_stonith.py", line 193, in test_stonith_create_provides_unfencing
    ac(output, "")
  File "/usr/lib/python2.7/dist-packages/pcs/test/tools/misc.py", line 31, in ac
    "strings not equal:\n{0}".format(prepare_diff(b, a))
AssertionError: strings not equal:
+ Error: Agent 'fence_xvm' not found, use --force to override


======================================================================
FAIL: test_node_maintenance (pcs.test.test_node.NodeTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pcs/test/test_node.py", line 31, in test_node_maintenance
    ac("", output)
  File "/usr/lib/python2.7/dist-packages/pcs/test/tools/misc.py", line 31, in ac
    "strings not equal:\n{0}".format(prepare_diff(b, a))
AssertionError: strings not equal:
- Error: cannot load cluster status, xml does not conform to the schema


======================================================================
FAIL: test_node_standby (pcs.test.test_node.NodeTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pcs/test/test_node.py", line 145, in test_node_standby
    ac(output, "")
  File "/usr/lib/python2.7/dist-packages/pcs/test/tools/misc.py", line 31, in ac
    "strings not equal:\n{0}".format(prepare_diff(b, a))
AssertionError: strings not equal:
+ Error: cannot load cluster status, xml does not conform to the schema


======================================================================
FAIL: testAddResources (pcs.test.test_resource.ResourceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pcs/test/test_resource.py", line 214, in testAddResources
    """)
  File "/usr/lib/python2.7/dist-packages/pcs/test/tools/misc.py", line 31, in ac
    "strings not equal:\n{0}".format(prepare_diff(b, a))
AssertionError: strings not equal:
-  ClusterIP	(ocf::heartbeat:IPaddr2):	Stopped
+  ClusterIP	(ocf::heartbeat:IPaddr2):	Stopped 
?                                             +
-  ClusterIP2	(ocf::heartbeat:IPaddr2):	Stopped
+  ClusterIP2	(ocf::heartbeat:IPaddr2):	Stopped 
?                                              +
-  ClusterIP3	(ocf::heartbeat:IPaddr2):	Stopped
+  ClusterIP3	(ocf::heartbeat:IPaddr2):	Stopped 
?                                              +
-  ClusterIP4	(ocf::heartbeat:IPaddr2):	Stopped
+  ClusterIP4	(ocf::heartbeat:IPaddr2):	Stopped 
?                                              +
-  ClusterIP5	(ocf::heartbeat:IPaddr2):	Stopped
+  ClusterIP5	(ocf::heartbeat:IPaddr2):	Stopped 
?                                              +
-  ClusterIP6	(ocf::heartbeat:IPaddr2):	Stopped
+  ClusterIP6	(ocf::heartbeat:IPaddr2):	Stopped 
?                                              +
-  ClusterIP7	(ocf::heartbeat:IPaddr2):	Stopped (disabled)
+  ClusterIP7	(ocf::heartbeat:IPaddr2):	Stopped ( disabled ) 
?                                                +        + +


======================================================================
FAIL: testCloneGroupMember (pcs.test.test_resource.ResourceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pcs/test/test_resource.py", line 2529, in testCloneGroupMember
    """)
  File "/usr/lib/python2.7/dist-packages/pcs/test/tools/misc.py", line 31, in ac
    "strings not equal:\n{0}".format(prepare_diff(b, a))
AssertionError: strings not equal:
   Resource Group: AG
-      D1	(ocf::heartbeat:Dummy):	Stopped
+      D1	(ocf::heartbeat:Dummy):	Stopped 
?                                        +
   Clone Set: D0-clone [D0]


======================================================================
FAIL: testClonedMasteredGroup (pcs.test.test_resource.ResourceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pcs/test/test_resource.py", line 4071, in testClonedMasteredGroup
    """)
  File "/usr/lib/python2.7/dist-packages/pcs/test/tools/misc.py", line 31, in ac
    "strings not equal:\n{0}".format(prepare_diff(b, a))
AssertionError: strings not equal:
   Resource Group: dummies
-      dummy1	(ocf::heartbeat:Dummy):	Stopped
+      dummy1	(ocf::heartbeat:Dummy):	Stopped 
?                                            +
-      dummy2	(ocf::heartbeat:Dummy):	Stopped
+      dummy2	(ocf::heartbeat:Dummy):	Stopped 
?                                            +
-      dummy3	(ocf::heartbeat:Dummy):	Stopped
+      dummy3	(ocf::heartbeat:Dummy):	Stopped 
?                                            +


======================================================================
FAIL: testClusterConfig (pcs.test.test_resource.ResourceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pcs/test/test_resource.py", line 1506, in testClusterConfig
    assert returnVal == 0
AssertionError

======================================================================
FAIL: testGroupAdd (pcs.test.test_resource.ResourceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pcs/test/test_resource.py", line 1114, in testGroupAdd
    """)
  File "/usr/lib/python2.7/dist-packages/pcs/test/tools/misc.py", line 31, in ac
    "strings not equal:\n{0}".format(prepare_diff(b, a))
AssertionError: strings not equal:
-  A1	(ocf::heartbeat:Dummy):	Stopped
+  A1	(ocf::heartbeat:Dummy):	Stopped 
?                                    +
-  A2	(ocf::heartbeat:Dummy):	Stopped
+  A2	(ocf::heartbeat:Dummy):	Stopped 
?                                    +
-  A3	(ocf::heartbeat:Dummy):	Stopped
+  A3	(ocf::heartbeat:Dummy):	Stopped 
?                                    +
-  A4	(ocf::heartbeat:Dummy):	Stopped
+  A4	(ocf::heartbeat:Dummy):	Stopped 
?                                    +
-  A5	(ocf::heartbeat:Dummy):	Stopped
+  A5	(ocf::heartbeat:Dummy):	Stopped 
?                                    +
   Resource Group: Dgroup
-      A6	(ocf::heartbeat:Dummy):	Stopped
+      A6	(ocf::heartbeat:Dummy):	Stopped 
?                                        +
-      A7	(ocf::heartbeat:Dummy):	Stopped
+      A7	(ocf::heartbeat:Dummy):	Stopped 
?                                        +


======================================================================
FAIL: testGroupDeleteTest (pcs.test.test_resource.ResourceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pcs/test/test_resource.py", line 983, in testGroupDeleteTest
    """)
  File "/usr/lib/python2.7/dist-packages/pcs/test/tools/misc.py", line 31, in ac
    "strings not equal:\n{0}".format(prepare_diff(b, a))
AssertionError: strings not equal:
   Resource Group: AGroup
-      A1	(ocf::heartbeat:Dummy):	Stopped
+      A1	(ocf::heartbeat:Dummy):	Stopped 
?                                        +
-      A2	(ocf::heartbeat:Dummy):	Stopped
+      A2	(ocf::heartbeat:Dummy):	Stopped 
?                                        +
-      A3	(ocf::heartbeat:Dummy):	Stopped
+      A3	(ocf::heartbeat:Dummy):	Stopped 
?                                        +


======================================================================
FAIL: testGroupOrder (pcs.test.test_resource.ResourceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pcs/test/test_resource.py", line 1388, in testGroupOrder
    """)
  File "/usr/lib/python2.7/dist-packages/pcs/test/tools/misc.py", line 31, in ac
    "strings not equal:\n{0}".format(prepare_diff(b, a))
AssertionError: strings not equal:
-  F	(ocf::heartbeat:Dummy):	Stopped
+  F	(ocf::heartbeat:Dummy):	Stopped 
?                                   +
-  G	(ocf::heartbeat:Dummy):	Stopped
+  G	(ocf::heartbeat:Dummy):	Stopped 
?                                   +
-  H	(ocf::heartbeat:Dummy):	Stopped
+  H	(ocf::heartbeat:Dummy):	Stopped 
?                                   +
   Resource Group: RGA
-      A	(ocf::heartbeat:Dummy):	Stopped
+      A	(ocf::heartbeat:Dummy):	Stopped 
?                                       +
-      B	(ocf::heartbeat:Dummy):	Stopped
+      B	(ocf::heartbeat:Dummy):	Stopped 
?                                       +
-      C	(ocf::heartbeat:Dummy):	Stopped
+      C	(ocf::heartbeat:Dummy):	Stopped 
?                                       +
-      E	(ocf::heartbeat:Dummy):	Stopped
+      E	(ocf::heartbeat:Dummy):	Stopped 
?                                       +
-      D	(ocf::heartbeat:Dummy):	Stopped
+      D	(ocf::heartbeat:Dummy):	Stopped 
?                                       +
-      K	(ocf::heartbeat:Dummy):	Stopped
+      K	(ocf::heartbeat:Dummy):	Stopped 
?                                       +
-      J	(ocf::heartbeat:Dummy):	Stopped
+      J	(ocf::heartbeat:Dummy):	Stopped 
?                                       +
-      I	(ocf::heartbeat:Dummy):	Stopped
+      I	(ocf::heartbeat:Dummy):	Stopped 
?                                       +


======================================================================
FAIL: testGroupRemoveTest (pcs.test.test_resource.ResourceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pcs/test/test_resource.py", line 1048, in testGroupRemoveTest
    """)
  File "/usr/lib/python2.7/dist-packages/pcs/test/tools/misc.py", line 31, in ac
    "strings not equal:\n{0}".format(prepare_diff(b, a))
AssertionError: strings not equal:
-  ClusterIP6	(ocf::heartbeat:IPaddr2):	Stopped
+  ClusterIP6	(ocf::heartbeat:IPaddr2):	Stopped 
?                                              +
   Resource Group: TestGroup1
-      ClusterIP	(ocf::heartbeat:IPaddr2):	Stopped
+      ClusterIP	(ocf::heartbeat:IPaddr2):	Stopped 
?                                                 +
   Clone Set: ClusterIP4-clone [ClusterIP4]
   Master/Slave Set: Master [ClusterIP5]
   Resource Group: AGroup
-      A2	(ocf::heartbeat:Dummy):	Stopped
+      A2	(ocf::heartbeat:Dummy):	Stopped 
?                                        +
-      A4	(ocf::heartbeat:Dummy):	Stopped
+      A4	(ocf::heartbeat:Dummy):	Stopped 
?                                        +
-      A5	(ocf::heartbeat:Dummy):	Stopped
+      A5	(ocf::heartbeat:Dummy):	Stopped 
?                                        +
-  A1	(ocf::heartbeat:Dummy):	Stopped
+  A1	(ocf::heartbeat:Dummy):	Stopped 
?                                    +
-  A3	(ocf::heartbeat:Dummy):	Stopped
+  A3	(ocf::heartbeat:Dummy):	Stopped 
?                                    +


======================================================================
FAIL: testGroupRemoveWithConstraints1 (pcs.test.test_resource.ResourceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pcs/test/test_resource.py", line 3002, in testGroupRemoveWithConstraints1
    """)
  File "/usr/lib/python2.7/dist-packages/pcs/test/tools/misc.py", line 31, in ac
    "strings not equal:\n{0}".format(prepare_diff(b, a))
AssertionError: strings not equal:
   Resource Group: DGroup
-      D1	(ocf::heartbeat:Dummy):	Stopped
+      D1	(ocf::heartbeat:Dummy):	Stopped 
?                                        +
-      D2	(ocf::heartbeat:Dummy):	Stopped
+      D2	(ocf::heartbeat:Dummy):	Stopped 
?                                        +


======================================================================
FAIL: testLSBResource (pcs.test.test_resource.ResourceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pcs/test/test_resource.py", line 2639, in testLSBResource
    assert returnVal == 0
AssertionError

======================================================================
FAIL: testMasterSlaveRemove (pcs.test.test_resource.ResourceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pcs/test/test_resource.py", line 1667, in testMasterSlaveRemove
    assert returnVal == 0
AssertionError

======================================================================
FAIL: testRemoveLastResourceFromClonedGroup (pcs.test.test_resource.ResourceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pcs/test/test_resource.py", line 1450, in testRemoveLastResourceFromClonedGroup
    """)
  File "/usr/lib/python2.7/dist-packages/pcs/test/tools/misc.py", line 31, in ac
    "strings not equal:\n{0}".format(prepare_diff(b, a))
AssertionError: strings not equal:
   Resource Group: gr1
-      d1	(ocf::heartbeat:Dummy):	Stopped
+      d1	(ocf::heartbeat:Dummy):	Stopped 
?                                        +
   Clone Set: gr2-clone [gr2]


======================================================================
FAIL: testRemoveLastResourceFromGroup (pcs.test.test_resource.ResourceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pcs/test/test_resource.py", line 1413, in testRemoveLastResourceFromGroup
    """)
  File "/usr/lib/python2.7/dist-packages/pcs/test/tools/misc.py", line 31, in ac
    "strings not equal:\n{0}".format(prepare_diff(b, a))
AssertionError: strings not equal:
   Resource Group: gr1
-      d1	(ocf::heartbeat:Dummy):	Stopped
+      d1	(ocf::heartbeat:Dummy):	Stopped 
?                                        +
   Resource Group: gr2
-      d2	(ocf::heartbeat:Dummy):	Stopped
+      d2	(ocf::heartbeat:Dummy):	Stopped 
?                                        +


======================================================================
FAIL: testRemoveLastResourceFromMasteredGroup (pcs.test.test_resource.ResourceTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pcs/test/test_resource.py", line 1487, in testRemoveLastResourceFromMasteredGroup
    """)
  File "/usr/lib/python2.7/dist-packages/pcs/test/tools/misc.py", line 31, in ac
    "strings not equal:\n{0}".format(prepare_diff(b, a))
AssertionError: strings not equal:
   Resource Group: gr1
-      d1	(ocf::heartbeat:Dummy):	Stopped
+      d1	(ocf::heartbeat:Dummy):	Stopped 
?                                        +
   Master/Slave Set: gr2-master [gr2]


----------------------------------------------------------------------
Ran 899 tests in 283.566s

FAILED (failures=21)

-- 
Valentin




More information about the Users mailing list