summaryrefslogtreecommitdiffstats
path: root/filters
Commit message (Collapse)AuthorAgeFilesLines
* filters/cib2pcscmd[resources]: drop op options "spam"Jan Pokorný2016-02-011-1/+5
| | | | | | Also reflect the changes in the tests. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/*: propagate and utilize __independent_subtree infoJan Pokorný2016-02-012-11/+140
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/cibcompact2cib[resources]: cond. use of $MonitorJan Pokorný2016-02-011-4/+12
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* Haziness: 'monitor' and 'status' are synonymousJan Pokorný2016-02-011-3/+15
| | | | | | | Former is preferred, per: <http://www.linux-ha.org/doc/dev-guides/_actions.html> Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/ccsflat2cibprelude[rm]: status failures not tolerableJan Pokorný2016-02-011-0/+13
| | | | | | ... in Pacemaker, unlike in RGManager. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/ccsflat2cibprelude[rm]: Prefix' suffix separated as SpecJan Pokorný2016-02-011-12/+13
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/ccs-revitalize[rm]: omit "failure" params when noopJan Pokorný2016-02-011-0/+31
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/ccs-revitalize[rm]: make it capture all that should beJan Pokorný2016-02-011-2/+2
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/ccs-revitalize[rm]: move comment + state the limitationJan Pokorný2016-02-011-5/+7
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/ccsflat2cibprelude[vm]: propagate stop timeoutJan Pokorný2016-02-011-1/+18
| | | | | | | As this is to be applied regardless the __enforce_timeouts flag in this particular case. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters: handle empty restricted failover domains correctlyJan Pokorný2016-02-012-10/+44
| | | | | | | | | - raise a warning in ccs-revitalize filter - do a proper job in cibcompact2cib filter (during conversion) See <http://oss.clusterlabs.org/pipermail/users/2016-January/002176.html>. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/cibprelude2cibcompact[resources]: account for recover policyJan Pokorný2016-02-011-0/+68
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/cibprelude2cibcompact[resources]: fix indentation/formattingJan Pokorný2016-02-011-1/+1
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/cib2pcscmd[...]: simplify using new attrset_xmlJan Pokorný2016-02-014-88/+27
| | | | | | Fix a run-check test regression along. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/cib2pcscmd: generalize attrset_xslJan Pokorný2016-02-011-18/+31
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/cib2pcscmd[group]: fix not handling group meta attrsJan Pokorný2016-02-011-1/+17
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/cibcompact2cib[resources]: refer to reliable id-prefixJan Pokorný2016-02-011-2/+4
| | | | | | Resolves: rhbz#1300050 Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/cib2pcscmd[configuration]: add support for utilizationJan Pokorný2015-12-172-0/+40
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/ccsflat2cibprelude[vm]: do not propage empty snapshotJan Pokorný2015-12-171-1/+1
| | | | | | ... as it is a default in ocf:heartbeat:VirtualDomain anyway. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/ccsflat2cibprelude[rm]: only track "service group" parentJan Pokorný2015-12-171-11/+17
| | | | | | | Resolves: <https://bugzilla.redhat.com/1272592>. Reported-by: Miroslav Lisik <mlisik@redhat.com> Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/ccsflat2cibprelude[rm]: forget about undeployed resourcesJan Pokorný2015-12-171-6/+2
| | | | | | | | | | | | | This was actually a conversion bug in that these unused (just declared) resources were promoted into ones effectively executed under new stack. Alternative solution would be to keep them included as it used to be plus set "is-managed" meta-attribute for them to "false", but there is at least one deeper underlying issue: ccs_flatten is not interested in these unemployed items in the "resources" stanza at all (they are not validated, nor they are paired with metadata-provided defaults, etc.). Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/cibprelude2cibcompact[resources]: exclusive RGs unsupportedJan Pokorný2015-12-171-0/+27
| | | | | | | | (RG = resource group) Interim resolution for <https://bugzilla.redhat.com/1206640>. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/cib2pcscmd[configuration/*]: deploy attrset_xsl "macro"Jan Pokorný2015-12-173-15/+12
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters~ccs2pcs: propagate "monitor" op for primitivesJan Pokorný2015-12-172-1/+79
| | | | | | | | | | | | | | For this monitor operation, either use the interval as designated in the original rgmanager agent (sticking with the most basic=lowest depth only), or use the default of 60 seconds (the same is automatically injected as a default by pcs). Resolves: <https://bugzilla.redhat.com/1272570>. Also adjust the (unit) tests respectively. Reported-by: Miroslav Lisik <mlisik@redhat.com> Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/cibprelude2cibcompact[resources]: fix conditionJan Pokorný2015-12-171-1/+1
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/ccsflat2cibprelude[rm]: "action" cannot be a resourceJan Pokorný2015-12-171-1/+1
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/cib-revitalize[crm_config]: fix logic errorJan Pokorný2015-12-171-2/+2
| | | | | | | ... that used to drop non-deprecated cluster properties like stonith-enabled to be dropped. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/cib2pcscmd[resources]: handle clone/master explicitlyJan Pokorný2015-12-174-17/+88
| | | | | | | Explicit commands are definitely easier to grasp than, e.g., "--clone foo=bar" hidden at the tail of a "resource add" command. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/cib2pcscmd[resources]: fix a conditionJan Pokorný2015-12-171-1/+1
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/cib2pcscmd[resources]: consider clone/master resourcesJan Pokorný2015-12-171-3/+30
| | | | | | | | | Resolves <https://bugzilla.redhat.com/1270740>. Also extend one of the unit tests to cover clone resource (borrowed from the reported issue). Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/cib-revitalize: new filter akin to ccs-revitalizeJan Pokorný2015-12-173-0/+190
| | | | | | | | | | Currently, it translates deprecated default-resource-stickiness, is-managed-default and default-action-timeout cluster properties (options) to resource/operation default properties respectively. More can arrive later. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/cib2pcscmd[{op,rsc}_defaults]: handle defaults as wellJan Pokorný2015-12-173-0/+64
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/cib2pcscmd[node]: --force mutually excl. w/ --nodeJan Pokorný2015-12-171-3/+0
| | | | | | See <https://bugzilla.redhat.com/1225946#c7>. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* commands + filters: fix minor discrepancies (comments, ...)Jan Pokorný2015-12-175-9/+9
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/cib2pcscmd[crm_config]: be picky about the propertiesJan Pokorný2015-12-171-9/+58
| | | | | | | E.g., do not propagate the "implicit" ones like dc-version or cluster-infrastructure. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/cib2pcscmd: make it handle node propertiesJan Pokorný2015-12-173-0/+35
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/cib2pcscmd[crm_config]: better verbose progress labelJan Pokorný2015-12-171-1/+1
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/cmd_wrap: cmd_args_cutter: property (un)set firm groupJan Pokorný2015-12-171-0/+8
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/cmd_wrap: cmd_args_cutter: use a scalable patternJan Pokorný2015-12-171-4/+6
| | | | | | | ...for both "SOMETHING non-option [non-option...]" (tail of unknown length) and fixed-length "firm" group cases. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/cmd_wrap: cmd_args_cutter: better documentationJan Pokorný2015-12-171-0/+3
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/cmd_wrap: cmd_args_cutter: longest match firstJan Pokorný2015-12-171-5/+5
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/cmd_wrap: fix line continuation caseJan Pokorný2015-12-171-1/+9
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/*: apply `highlight` syntax where suitableJan Pokorný2015-12-176-13/+14
| | | | | | Also reflect that in the unit test. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/cib-meld-templates[resources]: filter futile in future?Jan Pokorný2015-12-171-0/+4
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/cib-meld-templates: compensate pcs template incompat.Jan Pokorný2015-12-172-0/+108
| | | | | | See <https://bugzilla.redhat.com/1281359>. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/cib2pcscmd[resources]: terminate if "template" observedJan Pokorný2015-12-171-0/+6
| | | | | | | | | | | | | + point the user to the root cause. It makes no sense and could be pretty misleading when we cannot produce templates via pcs while these are vital for the dependent resources to work properly. True to be told, template + resource(s) can always be expressed as fully-fledged resource (with parameters transferred down to resource following the same [intuitive] logic) but that would defeat why this provision was introduced in the first place, wouldn't it? Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/ccsflat2cibprelude[lvm]: point to the exact issueJan Pokorný2015-12-171-1/+1
| | | | | | User deserves to be fully informed about a fatal conversion obstacle. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/ccs_propagate_cman[cluster]: cman/@{two_node,expected_votes}Jan Pokorný2015-12-171-2/+2
| | | | | Reported-by: Miroslav Lisik <mlisik@redhat.com> Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/ccs2needlexml[logging_daemon]: convert also log. subsysJan Pokorný2015-12-171-4/+60
| | | | | | | | | | | | | | Based on tri-state whitelist denoting positive propagation: - 1:1 - 1:1 but emit a warning (the meaning was changing in time) - rename the subsys Opened questions: - should CMAN also be renamed to PCMK? Also fix affected (but not directly related) unit test. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/ccs2needlexml[logging_daemon]: attrs from logging + subsysJan Pokorný2015-12-171-13/+14
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>