Skip to content

Commit ef12081

Browse files
author
Ken Gaillot
authored
Merge pull request #2010 from kgaillot/fixes
"Best practices" for more internal API
2 parents 30230a7 + 0d74141 commit ef12081

83 files changed

Lines changed: 1041 additions & 837 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

cts/cli/regression.validity.exp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ update_validation debug: Testing 'pacemaker-3.2' validation (16 of X)
101101
element rsc_order: Relax-NG validity error : Invalid attribute first-action for element rsc_order
102102
element rsc_order: Relax-NG validity error : Element constraints has extra content: rsc_order
103103
update_validation trace: pacemaker-3.2 validation failed
104-
Your current configuration pacemaker-1.2 could not validate with any schema in range [pacemaker-1.2, pacemaker-3.2], cannot upgrade to pacemaker-3.0.
104+
Cannot upgrade configuration (claiming schema pacemaker-1.2) to at least pacemaker-3.0 because it does not validate with any schema from pacemaker-1.2 to pacemaker-3.2
105105
=#=#=#= End test: Run crm_simulate with invalid CIB (enum violation) - Invalid configuration (78) =#=#=#=
106106
* Passed: crm_simulate - Run crm_simulate with invalid CIB (enum violation)
107107
=#=#=#= Begin test: Try to make resulting CIB invalid (unrecognized validate-with) =#=#=#=
@@ -191,7 +191,7 @@ update_validation trace: pacemaker-3.1 validation failed
191191
update_validation debug: Testing 'pacemaker-3.2' validation (16 of X)
192192
element cib: Relax-NG validity error : Invalid attribute validate-with for element cib
193193
update_validation trace: pacemaker-3.2 validation failed
194-
Your current configuration pacemaker-9999.0 could not validate with any schema in range [unknown, pacemaker-3.2], cannot upgrade to pacemaker-3.0.
194+
Cannot upgrade configuration (claiming schema pacemaker-9999.0) to at least pacemaker-3.0 because it does not validate with any schema from unknown to pacemaker-3.2
195195
=#=#=#= End test: Run crm_simulate with invalid CIB (unrecognized validate-with) - Invalid configuration (78) =#=#=#=
196196
* Passed: crm_simulate - Run crm_simulate with invalid CIB (unrecognized validate-with)
197197
=#=#=#= Begin test: Try to make resulting CIB invalid, but possibly recoverable (valid with X.Y+1) =#=#=#=
@@ -320,7 +320,7 @@ Revised cluster status:
320320
=#=#=#= End test: Make resulting CIB valid, although without validate-with attribute - OK (0) =#=#=#=
321321
* Passed: cibadmin - Make resulting CIB valid, although without validate-with attribute
322322
=#=#=#= Begin test: Run crm_simulate with valid CIB, but without validate-with attribute =#=#=#=
323-
Configuration validation is currently disabled. It is highly encouraged and prevents many common cluster issues.
323+
Schema validation of configuration is disabled (enabling is encouraged and prevents common misconfigurations)
324324
unpack_resources error: Resource start-up disabled since no STONITH resources have been defined
325325
unpack_resources error: Either configure some or disable STONITH with the stonith-enabled option
326326
unpack_resources error: NOTE: Clusters with shared data need STONITH to ensure data integrity
@@ -399,7 +399,7 @@ element rsc_order: Relax-NG validity error : Element constraints has extra conte
399399
=#=#=#= End test: Make resulting CIB invalid, and without validate-with attribute - OK (0) =#=#=#=
400400
* Passed: cibadmin - Make resulting CIB invalid, and without validate-with attribute
401401
=#=#=#= Begin test: Run crm_simulate with invalid CIB, also without validate-with attribute =#=#=#=
402-
Configuration validation is currently disabled. It is highly encouraged and prevents many common cluster issues.
402+
Schema validation of configuration is disabled (enabling is encouraged and prevents common misconfigurations)
403403
validity.bad.xml:10: element rsc_order: Relax-NG validity error : Invalid attribute first-action for element rsc_order
404404
validity.bad.xml:10: element rsc_order: Relax-NG validity error : Element constraints has extra content: rsc_order
405405
validity.bad.xml:10: element rsc_order: Relax-NG validity error : Invalid attribute first-action for element rsc_order
@@ -439,7 +439,7 @@ validity.bad.xml:10: element rsc_order: Relax-NG validity error : Element constr
439439
unpack_resources error: Resource start-up disabled since no STONITH resources have been defined
440440
unpack_resources error: Either configure some or disable STONITH with the stonith-enabled option
441441
unpack_resources error: NOTE: Clusters with shared data need STONITH to ensure data integrity
442-
unpack_simple_rsc_order error: Cannot invert rsc_order constraint ord_1-2. Please specify the inverse manually.
442+
unpack_simple_rsc_order error: Cannot invert constraint 'ord_1-2' (please specify inverse manually)
443443

444444
Current cluster status:
445445

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Configuration validation is currently disabled. It is highly encouraged and prevents many common cluster issues.
1+
Schema validation of configuration is disabled (enabling is encouraged and prevents common misconfigurations)

cts/scheduler/order-wrong-kind.summary

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Configuration validation is currently disabled. It is highly encouraged and prevents many common cluster issues.
1+
Schema validation of configuration is disabled (enabling is encouraged and prevents common misconfigurations)
22

33
Current cluster status:
44
Online: [ node1 ]

0 commit comments

Comments
 (0)