summaryrefslogtreecommitdiffstats
path: root/commands
Commit message (Collapse)AuthorAgeFilesLines
* commands/*2pcscmd: avoid --tmp-cib '' (empty string)Jan Pokorný2016-02-013-5/+5
| | | | | | | It is "strongly discouraged" as detailed in <http://oss.clusterlabs.org/pipermail/users/2016-January/002197.html>. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* commands/*: rather not abbreviate "config."Jan Pokorný2016-02-015-11/+11
| | | | | | At least not the first occurrences at the help screen. 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>
* 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>
* 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>
* 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>
* 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-171-2/+2
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* commands/cmd-wrap: expose eponymous filter on its ownJan Pokorný2015-12-171-0/+30
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* commands/cib2pcscmd: apply cib-meld-templates filterJan Pokorný2015-12-171-3/+7
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* commands/ccs2pcscmd*: apply cib-meld-templates filterJan Pokorný2015-12-171-8/+16
| | | | | | ...with a chance it will not be required in the future. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* commands/cib2pcscmd: deploy (forgotten) cmd-wrap filterJan Pokorný2015-10-081-2/+5
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* commands/pcs2pcscmd: fix a (dire) filter swapJan Pokorný2015-07-141-2/+2
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* commands/cib2pcscmd: deserves dedicated exposure as a commandJan Pokorný2015-07-021-0/+51
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* commands/pcs2pcscmd-needle: finalize using new filtersJan Pokorný2015-07-021-12/+39
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* commands/ccs2pcscmd-needle: make it finally workingJan Pokorný2015-07-021-4/+31
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* commands/ccs2pcscmd-flatiron: cosmetics (newlines)Jan Pokorný2015-07-021-1/+1
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* commands/pcs2pcscmd-flatiron: make aware of filter optionsJan Pokorný2015-07-021-3/+30
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* commands/ccs2pcscmd-flatiron: reflect -1/negative for text_widthJan Pokorný2015-07-021-1/+1
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* commands: ccs2pcscmd(-flatiron:): deploy cmd-wrap filterJan Pokorný2015-07-021-8/+23
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* commands/ccs2pcscmd: use unified filter defaults interfaceJan Pokorný2015-06-191-4/+2
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* commands/ccs-disable-rg: substitute for pcmk's disable_rgmanagerJan Pokorný2015-06-191-0/+34
| | | | | | | Combine ccs-disable-rg and ccs-version-bump filters. That was the other reason for factoring those filters out. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* commands/ccs2pcs{,cmd}: use disable-rg&version-bump filtersJan Pokorný2015-06-192-6/+18
| | | | | | That was one of the reasons for factoring those filters out. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* commands/ccs2pcscmd-flatiron: introduce "guidance" ensuring sanityJan Pokorný2015-06-191-0/+3
| | | | | | | ... first check being that pcs commands after "auth" are run from actual intended cluster node. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* commands/ccs2pcscmd-flatiron: add "--start-wait" switchJan Pokorný2015-06-191-8/+11
| | | | | | Also adjust the test case. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* commands/ccs2pcscmd-flatiron: add "--enable" switchJan Pokorný2015-06-191-0/+3
| | | | 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>
* commands/ccs2pcscmd: ccs2pcscmd{,-flatiron,-needle} cmdsJan Pokorný2015-04-151-0/+111
| | | | | | | Note that ccs2pcscmd_needle is currently not available (not fully implemented). Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* commands/pcs2pcscmd: pcs2pcscmd{,-flatiron,-needle} cmdsJan Pokorný2015-04-151-0/+91
| | | | | | | Note that pcs2pcscmd_needle is currently not available (not fully implemented). Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* commands/ccs2pcs+utils_cman: symbolic PATH_CLUSTERCONFJan Pokorný2015-04-151-2/+3
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* commands/ccs2pcs: cosmetics/orderings (import/kwargs)Jan Pokorný2015-04-151-2/+2
| | | | | | | | Unfortunately changing the order of ccs2pcs_needle kwargs also changed the order in which the arguments (when parsed in a terse/option-less notation) are expected --> fix that in run-check script as well. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* commands/ccs2pcs: refactor out "ccsflat2cibfinal_chain"Jan Pokorný2015-04-081-10/+7
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* refactor: pcs (not in command names) -> cibJan Pokorný2015-04-081-9/+9
| | | | | | "pcs" should be reserved for actual pcs CLI tool commands. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* Rename utils_cluster -> facts (more generic, really)Jan Pokorný2015-01-091-1/+1
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* commands/ccs2pcs: reword messages, CIB unified to be last in rowJan Pokorný2014-12-111-22/+22
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* Integrate FancyOutput helper classJan Pokorný2014-12-111-4/+9
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* commands/ccs2pcs-needle: employ ccs-propagate-cman filterJan Pokorný2014-12-081-3/+6
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* commands/ccs2pcs: fix module docstringJan Pokorný2014-11-141-1/+1
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* commands/ccs2pcs: use cluster_pcs_1_2 to produce a warningJan Pokorný2014-11-141-1/+16
| | | | | | ... if suitable Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* commands/ccs2pcs: new extra finalizing pcs2pcsfinal passJan Pokorný2014-10-211-4/+10
| | | | | | | Meant to be easily omissible/suppressable with "--noop=pcs2pcsfinal" provided on command-line or an equivalent. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* commands/ccs2pcs: apparently at least one more pass neededJan Pokorný2014-10-211-4/+10
| | | | | | | | | | | | | | | So the progress for ccs-to-pcs (in isolation) currently is: - ccs2ccsflat - ccs-revitalize - ccsflat2pcsprelude - pcsprelude2pcscompact . TODO: service arrangement(?) - pcscompact2pcs . TODO: stonith-enabled=false if no fencing present and other finalizations Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* ccs2pcs: big renaming (ccsflat2pcsprelude + pcsprelude2pcs)Jan Pokorný2014-10-211-4/+4
| | | | | | | | | Also make distinguishing more restricted internal variants of the formats more explicit (ccsflat, pcsprelude) -- this is known to cause a little regression (format checking too strict to cope with this) and the fix for that is forthcoming. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* commands/cluster_artefacts: new command/cluster.conf analysisJan Pokorný2014-10-081-0/+27
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* commands: make outputs partly reflect input(s) by defaultJan Pokorný2014-10-083-6/+7
| | | | | | | | Useful anytime one is lazy to redefine the defaults, but want to semi-unique output files for different inputs (e.g., when processing plenty of configs like when testing clufter's logic itself). Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* commands/ccs2pcs: use cluster_pcs_flatiron instead in aliasJan Pokorný2014-09-291-9/+4
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>