summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* run-tests: add nosetests support (also as a fallback)Jan Pokorný2016-02-011-9/+37
| | | | | | (fix tabs/spaces issue along the way) Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filter: _try_edit: make "was file modified" test more robustJan Pokorný2016-02-011-26/+30
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* tests/ccs2needle_xslt: make test relocatableJan Pokorný2016-02-011-6/+3
| | | | | | | | Previously, it there was a hard-wired dependency making assumptions about the project vs tests file tree layout. This made tests fail when different layout was used. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filter: get along without /dev/tty that may not existJan Pokorný2016-02-011-4/+6
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* run-sdist: be more careful about tarball with testsJan Pokorný2016-02-011-3/+7
| | | | | | | | Previously, the fact that --transform applies also to the symlink content was missed and resulted in an archive that wasn't directly usable. Also drop maintenance-specific "vim local rc" file. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* tests: drop unused filesJan Pokorný2016-02-013-159/+0
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* Set pre-release versionJan Pokorný2016-02-012-2/+5
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* Bump version to 0.55.0v0.55.0Jan Pokorný2015-12-182-4/+4
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* run-sdist/clufter.spec: fix tests archive arangementJan Pokorný2015-12-182-5/+4
| | | | 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>
* facts: cluster_map: update with pcs versions/featuresJan Pokorný2015-12-171-0/+21
| | | | 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>
* utils_cib: rg2hb_xsl: cover "propage if non-empty" caseJan Pokorný2015-12-171-3/+6
| | | | 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>
* tests/filters/ccsflat2cibprelude: fix (now) deployed resource testsJan Pokorný2015-12-171-78/+148
| | | | | | | | | | | | | | | | | | | Note that there was a subtle, broken assumption behind how these tests should work, but this was masked thanks to the result from XSLT always being a standalone tree (not a set/forest) since the resources were previously undeployed (passively defined in <resources> of cluster.conf and not referenced from the active parts). After putting "activating" the resources by putting them under <service> stanza, the XSLT results were actually sets of element nodes and while only the first one was exposed externally, mysterious kabooms around RNG validation emerged. Proper fix is to rely on a single wrapping level of processing (following the same rules of root element transformations, notably this "single result tree only" one) that will make the result of the actual level of XSLT under test be wrapped with <clufter:snippet> that is then removed upon attachment to the parent level, which is OK even if such result contained more trees modulo the wrapping. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* tests/_com: rewrite_root: propagate walk post-processingJan Pokorný2015-12-171-3/+7
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filter: XMLFilter: proceed: allow walk post-processingJan Pokorný2015-12-171-1/+3
| | | | 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-174-2/+90
| | | | | | | | | | | | | | 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>
* commands: fix inner logic of chains wrt. singular tailJan Pokorný2015-12-171-3/+3
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* commands/cib2pcscmd: fix incorrect output proto nestingJan Pokorný2015-12-171-2/+4
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* ccs-flatten: inject also resource-specific action stanzasJan Pokorný2015-12-171-1/+32
| | | | 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>
* clufter.spec: fix "run-dev" leakage when generating man pagesJan Pokorný2015-12-171-2/+2
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* clufter.spec: conditionally add pcs/cluster.conf+ccs to SEE ALSOJan Pokorný2015-12-171-0/+11
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* clufter.spec: full-blown tests in %check w/ regular releasesJan Pokorný2015-12-171-1/+13
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* run-sdist: make it create additional "tests" tarballJan Pokorný2015-12-171-5/+12
| | | | 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>
* commands: memoize/refactor filter in chainsJan Pokorný2015-12-174-71/+65
| | | | | | | | | | | | | | | | | | | | | | | | | Note that previosly, there was an unintended behavior of filter chain definition containing a single named block like in: (ccsflat2cibfinal_chain, ('cib-revitalize', ('cib-meld-templates', ('cib2pcscmd', ('stringiter-combine2' # , ('cmd-wrap' ... ))))) worked, despite this accidentally led to the expected behavior, i.e., the same as if the explicit tail sequence (starting with 'cib-revitalize') was appended directly as a sibling of the last item within ccsflat2cibfinal_chain. Note that abusing this "feature" is highly discouraged, it's really a bug and, moreover, it will stop working when you try to apply such nesting recursively more than once. Just of a curiosity of when something behaves a bit better than ever thought of (while making things proportionally worse later on). Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/cib2pcscmd[resources]: handle clone/master explicitlyJan Pokorný2015-12-175-18/+90
| | | | | | | 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-173-3/+43
| | | | | | | | | 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>
* clufter.spec: add hints for help2man about SEE ALSO referencesJan Pokorný2015-12-171-10/+21
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* __init__: add (C) to exposed copyright info (hint for help2man)Jan Pokorný2015-12-171-1/+1
| | | | | | | Older versions of help2man (like 1.36) requires it (sadly, as it most likely has no value added legal-wise). Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* commands/cib-revitalize: expose eponymous filter on its ownJan Pokorný2015-12-171-0/+27
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* commands:*2pcs*: adjust (+fix) "cib" parameter descriptionJan Pokorný2015-12-173-5/+5
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* commands:ccs-*: use symbolic name for default cluster.conf pathJan Pokorný2015-12-174-6/+10
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* commands/*2pcscmd: deploy cib-revitalize filterJan Pokorný2015-12-173-27/+42
| | | | 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>
* filter: XMLFilter: commented out code actually helpfulJan Pokorný2015-12-171-2/+2
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* commands/pcs2pcscmd: deploy (forgotten) cmd-wrap filterJan Pokorný2015-12-171-20/+28
| | | | | | Also fix indentation where not per the convention. 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/pcs2pcscmd: cib-meld-templates not required in future?Jan Pokorný2015-12-171-0/+2
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* commands/pcs2pcscmd: apply cib-meld-templates filterJan Pokorný2015-12-171-7/+13
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* commands + filters: fix minor discrepancies (comments, ...)Jan Pokorný2015-12-176-11/+11
| | | | 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>