summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* filters/ccs-disable-rg: refactor into separate filterJan Pokorný2015-06-193-0/+51
| | | | | | Should be stand-alone for easier reusability in the future... Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/ccs-version-bump: refactor into separate filterJan Pokorný2015-06-193-0/+52
| | | | | | Should be stand-alone for easier reusability in the future... Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* commands/ccs2pcscmd-flatiron: fix another "guidance" corner-caseJan Pokorný2015-06-191-2/+2
| | | | | | | | This time when no common pair is found -- this also indicates an issue. Solve it by putting artificial out-of-domain "sentinel" value to be iterated over and possibly trigger the failure-case logic. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* commands/ccs2pcscmd-flatiron: fix a "guidance"/shell thinkoJan Pokorný2015-06-191-1/+2
| | | | | | | | | | Original code would not work for more occurrences of common pairs -- only the status of last evaluation would then be considered for general failure case. Instead, short-circuit in case of OK case and end the loop with failure (false) otherwise -- which will then be propagated as a general loop status upon the end of non-short-circuited loop. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* commands/ccs2pcscmd-flatiron: introduce "guidance" ensuring sanityJan Pokorný2015-06-194-1/+33
| | | | | | | ... first check being that pcs commands after "auth" are run from actual intended cluster node. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* main: s/(expert)/(Advanced)/ per Pacemaker's exampleJan Pokorný2015-06-191-1/+1
| | | | | | See, e.g., "cibadmin -?". Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* commands/ccs2pcscmd-flatiron: add "--start-wait" switchJan Pokorný2015-06-194-8/+23
| | | | | | Also adjust the test case. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/ccspcmk2pcscmd: fix unused importJan Pokorný2015-06-191-1/+0
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* commands/ccs2pcscmd-flatiron: add "--enable" switchJan Pokorný2015-06-194-3/+18
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/ccspcmk2pcscmd[cluster]: actually start the clusterJan Pokorný2015-06-191-1/+1
| | | | | | | Otherwise any further resource-related configuration changes will fall apart. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* main: prepend "(expert) " to options of that sortJan Pokorný2015-06-191-0/+2
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* Set pre-release versionJan Pokorný2015-06-192-2/+5
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* Bump version to 0.11.2v0.11.2Jan Pokorný2015-05-292-3/+4
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* clufter.spec: move completion module to clufter-cli sub-packageJan Pokorný2015-05-291-1/+3
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/ccs_revitalize[fencedevice]: fix several issuesJan Pokorný2015-05-291-7/+13
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/ccs_revitalize[cluster]: simplify using xslt_is_memberJan Pokorný2015-05-291-5/+14
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* commands/ccs2pcscmd_flatiron: expose recent new options to userJan Pokorný2015-05-291-0/+17
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/cib2pcscmd: support for "enforcing pcs" (non-default)Jan Pokorný2015-05-292-0/+4
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/ccspcmk2pcscmd: support for "enforcing pcs" (non-default)Jan Pokorný2015-05-292-0/+4
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/cib2pcscmd: support for dry-run (non-default)Jan Pokorný2015-05-292-2/+6
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/ccspcmk2pcscmd: support for dry-run (non-default)Jan Pokorný2015-05-292-15/+18
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/cib2pcscmd: support for accumulate-and-push (default)Jan Pokorný2015-05-2910-11/+41
| | | | | | | | | | | Configurable via pcscmd_tmpcib value in command/filter context, feature disabled when passing empty string. Uses "pcs -f tmp-cib.xml ..." (per pcscmd_tmpcib value, this filename is default) for various CIB manipulations, then it is pushed using "pcs cluster cib-push tmp-cib.xml --config". Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/ccspcmk2pcscmd: support for "pcs cluster auth" (default)Jan Pokorný2015-05-293-1/+14
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/cib2pcscmd: support for verbose output (default)Jan Pokorný2015-05-299-12/+75
| | | | | | | | Also: - turn off verbose output for the purpose of a unit test - normalize commas in string interpolations for the snippets Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/ccspcmk2pcscmd: support for verbose output (default)Jan Pokorný2015-05-293-8/+32
| | | | | | | | Also: - output a new-line (as appropriate) + reflect it in the unit test - turn off verbose output for the purpose of a unit test Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/_2pcscmd: "verbose" shared helpers for 2pcscmd filtersJan Pokorný2015-05-291-0/+42
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* utils_xslt: new helpers xslt_{boolean,params}Jan Pokorný2015-05-291-1/+14
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filter: _xslt_preprocess: ensure params from def_first propagatedJan Pokorný2015-05-291-1/+2
| | | | | | | | ...into root (~first) template (or more generally, any top-level XSLT instruction from def_first as prescribed by the respective filter definition). Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filter: XSLT: clufter:descent-mix vs. repeated referencesJan Pokorný2015-05-291-4/+5
| | | | | | | | | | | | ...for the same tag from previous commit: > ... should be only for clufter:descent-mix (seems really a bad idea > for clufter:descent) -> turn the exception just into info log message for clufter:descent-mix Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filter: XSLT: support repeated references for the same tagJan Pokorný2015-05-291-13/+19
| | | | | | | ... should be only for clufter:descent-mix (seems really a bad idea for clufter:descent). Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filter: do_proceed: consider <xsl:if><xsl:template> et al.Jan Pokorný2015-05-291-4/+14
| | | | | | | | | | IOW, shallow/flat examination is not enough in that case. Some other specialities, like xsl:variable, has to be taken into account as well. For "to XSLT" experimental output (_xslt_template), at least, add a comment explaining that situation is a little bit more complicated. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* utils_xml: xmltag_get_{localname,namespace}: make more robustJan Pokorný2015-05-291-2/+7
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filter: allow passing extra arguments to filtersJan Pokorný2015-05-291-1/+7
| | | | | | | | ...standard way is to rely fully on flt_ctxt -- this is an injection vector for convenient unit-testing (only) as also indicated by a warning emitted when their presence is witnessed. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* command: _figure_parser_desc_opts: adjust log levelJan Pokorný2015-05-291-1/+1
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* command: do not eval short options for common (tail) optsJan Pokorný2015-05-291-5/+10
| | | | | | | | | Simply because they are, by conventions, put last (lower priority as these are quite generic -- as opposed to dedicated per-commands ones), and we want them to be consistent, hence we drop support for short options with them, which solves the problem. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filter: XMLFilter/command_common: use a symbolic stringJan Pokorný2015-05-291-1/+5
| | | | | | (leverage previously defined docformat decorator) Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* utils_prog: docformat: decorator to "format" __doc__ per paramsJan Pokorný2015-05-291-1/+13
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* command: _figure_parser_desc_opts: use a symbolic stringJan Pokorný2015-05-291-1/+4
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* command et al.: consider common (short)opts (avoid them)Jan Pokorný2015-05-293-10/+15
| | | | | | | Because we need to pass extra piece of information to the responsible function, it cannot be arranged as a property any longer. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filter/cib2pcscmd[group]: s/pcs group/pcs resource group/Jan Pokorný2015-05-292-2/+2
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filter: proceed: do not interleave def_first + systemJan Pokorný2015-05-291-3/+4
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filter: _xslt_preprocess drop unused codeJan Pokorný2015-05-291-10/+1
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filter: fix issue possibly workarounded with text-only descentJan Pokorný2015-05-292-7/+7
| | | | | | | | | | | IIRC, this is related to "filters/cib2pcscmd[group]" case where usage of a parameter (presumably propagated from def_first) was attempted but did not really worked with original descent-mix (hence text-only descent was deemed a quick fix). This patch should be a much better solution to that very problem ... so flip these "clufter:descent" instructions as well. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/cib2pcscmd[fencing-topology]: learn the pcs commandJan Pokorný2015-05-292-0/+17
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/cib2pcscmd[constraints]: refactor handling outJan Pokorný2015-05-294-255/+273
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/cib2pcscmd[resources]: refactor group handling outJan Pokorný2015-05-292-7/+18
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/cib2pcscmd[resources]: simplify string-quotingJan Pokorný2015-05-291-12/+12
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/cib2pcscmd[constraints]: "pcs c l rule" not idempotentJan Pokorný2015-05-291-7/+20
| | | | | | (see https://bugzilla.redhat.com/1223404) Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/cib2pcscmd[constraints]: memoize unsupported caseJan Pokorný2015-05-291-89/+86
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/cib2pcscmd[constraints]: consider type in expressionsJan Pokorný2015-05-291-2/+8
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>