summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* formats/command: _escape: be more smart about what & howJan Pokorný2015-12-171-4/+9
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/cmd_wrap: cmd_args_cutter: avoid empty tuple clutterJan Pokorný2015-12-171-1/+3
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/cmd_wrap: cmd_args_cutter: erase acc upon promoteJan Pokorný2015-12-171-0/+1
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* formats/command[separated]: generalize option + X args w/ magic_splitJan Pokorný2015-12-171-5/+8
| | | | | | Moreover, make testMagicBytestringToDict test passing again. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* formats/command[separated]: option + 1 arg as a general assumptionJan Pokorný2015-12-171-4/+8
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* run-tests: fix a bug in logic and case statementsJan Pokorný2015-12-171-3/+6
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/coro2pcscmd[corosync]: fix unresolved cluster nameJan Pokorný2015-12-172-6/+8
| | | | | | | | | | It is in /corosync/totem/@cluster_name for corosync.conf XML representation, not at the location expected in cluster.conf (/cluster/@name). Also fix the (still failing) ccs2pcscmd test run in run-check. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* README: add Coveralls badgesJan Pokorný2015-12-171-0/+6
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* run-tests: coverage.py under Travis CI doesn't recognize unit2 cmdJan Pokorný2015-12-171-1/+1
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* travis: further tweak to make coveralls send actual dataJan Pokorný2015-12-171-1/+2
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* travis: add forgotten coveralls pip installationJan Pokorný2015-12-171-2/+4
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* run-tests: account also for cases when there is no "[["Jan Pokorný2015-12-171-1/+1
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* run-tests: account for cases when there is no coverage2Jan Pokorný2015-12-171-1/+2
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* run-{check,tests}: fix "."/passed params dash incompatibilityJan Pokorný2015-12-172-2/+3
| | | | | | (this one was affecting Travis CI runs) Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* travis: integrate with coverage.py + CoverallsJan Pokorný2015-12-171-3/+6
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* run-tests: add support for running under coverage.pyJan Pokorný2015-12-173-2/+16
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/ccsflat2cibprelude[_fs]: netfs/@fstype defaults to nfsJan Pokorný2015-12-171-2/+10
| | | | | | | Unfortunately not directly/via metadata, but via in-code handling: https://bugzilla.redhat.com/show_bug.cgi?id=1286291 Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/ccs_revitalize[rm]: omit resources w/ repeated primary attrJan Pokorný2015-12-171-0/+46
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filter: XMLFilter: preserve "descent-mix" in both casesJan Pokorný2015-12-171-2/+3
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* format: CompositeFormat should also implement hash propertyJan Pokorný2015-12-171-0/+8
| | | | | | | ...which is (currently) defined as XORed hashes of the designated format instances. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* Experimental Landscape configuration fileJan Pokorný2015-12-171-0/+17
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/ccs_revitalize[failoverdomain]: omit FODNs w/ repeated nameJan Pokorný2015-12-171-0/+18
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/ccs_revitalize[failoverdomains]: omit FODs w/ repeated nameJan Pokorný2015-12-171-0/+22
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filter: make XML validation recovery suggest an inspection stepJan Pokorný2015-12-171-2/+4
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filter: make XML validation recovery preoccupied users friendlyJan Pokorný2015-12-171-5/+14
| | | | | | | | | | | Two subsequent attempts without a modification now lead to immediate termination, preventing indefinite looping if the user was confused enough (understandable). This also prevents any sort of infloop when editor is specified as something like "touch" for some mysterious reasons. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/ccsflat2cibprelude[cluster]: fix "fenceinst" XML ID issueJan Pokorný2015-12-171-1/+8
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* formats/corosync.rng: log destinations can also be on/offJan Pokorný2015-12-171-0/+12
| | | | | | ... in addition to yes/no. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* KNOWN-ISSUES: finally start tracking themJan Pokorný2015-12-171-1/+6
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/ccsflat2cibprelude[rm]: fix XML ID issue w/ new helperJan Pokorný2015-12-171-7/+11
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* utils_xslt: xslt_id_friendly: new helperJan Pokorný2015-12-171-0/+15
| | | | | | | Some offending ASCII characters are translated to '_', the remaining ones (all or almost) are simply removed. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/ccsflat2cibprelude[cluster]: //method[not(device)] possibleJan Pokorný2015-12-171-1/+1
| | | | | | | Previously, the production could contain //fencing-level[@devices = ""] that is (intentionally) invalid. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* formats/corosync.rng: fix/extend *_{facility,priority} valuesJan Pokorný2015-12-171-0/+26
| | | | | | | | Based on: - facility: libqb/lib/log_format.c:facilitynames - priority: corosync/exec/logsys.c:prioritynames Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filter: XMLFilter: tweak further terminating xsl:message outputJan Pokorný2015-12-171-1/+3
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filter: XMLFilter: handle terminating xsl:message correctlyJan Pokorný2015-12-171-10/+17
| | | | | | | I.e., handle etree.XSLTApplyError being raised while executing the XSL transformation and terminate (as this is fatal) without a traceback. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filter: XMLFilter: memoize if message is "urgent"Jan Pokorný2015-12-171-2/+3
| | | | | | To make it apparent that the decision is the same at multiple places. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filter: XMLFilter: avoid re-emitting fatal errorsJan Pokorný2015-12-171-1/+1
| | | | | | Show (also repeatedly, but good for clarity) the failed filter instead. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filter: XMLFilter: avoid emitting bogus errorsJan Pokorný2015-12-171-0/+3
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/ccs_obfuscate_identifiers[cluster]: also altname/@nameJan Pokorný2015-12-171-2/+18
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/ccs_obfuscate_identifiers[cluster]: nodename@all device attrsJan Pokorný2015-12-171-5/+4
| | | | | | | | | | Finally get off the headache of which attributes are eligible (nodename, port, ipaddr, domain, ...), even more so when legacy agent versions considered -- simply substitute anything that matches except for "name" that has a function of discriminator and is handled separately (see FENCE-DEVICE section that follows). Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/ccs_obfuscate_identifiers[cluster]: also unfence deviceJan Pokorný2015-12-171-2/+2
| | | | | | | Originally, unfence stanza was ignored while it should be treated the same. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/ccs_obfuscate_identifiers[cluster]: cluster/@alias (pre-el6)Jan Pokorný2015-12-171-1/+8
| | | | | | | | We use it in a loose mode, anyway. This may be temporary until we figure out some sort of "auto-update when not compatible with schema" mechanism. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/ccs_obfuscate_identifiers[cluster]: unfence/device/@nameJan Pokorný2015-12-171-1/+2
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/ccs_obfuscate_credentials[fencedevice]: add "vmpasswd"Jan Pokorný2015-12-171-0/+2
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filter: proceed_xslt: fix emitting NOOP xsl:templateJan Pokorný2015-12-171-2/+1
| | | | | | | | | | | | | | | | | | | This was the case with ccs-obfuscate-ids filter that could emit something like <xsl:template match="rm"> <xsl:variable name="failoverdomain" select="..."/> <xsl:variable name="service" select="..."/> </xsl:template> as part of the resulting XSL template while explicit <clufter:descent-mix preserve-rest="true"/> at the top-level would lead to "identity transform" by default (modulo targeted transformations explicitly requested) also for this erroneously shadowed <rm> tag, just because of this bug stripping <rm> completely as a result. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/cmd-wrap: deal better with commands specifics (pcs)Jan Pokorný2015-12-172-3/+39
| | | | | | Fairly unfinished, to be tweaked over time... Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* formats/command: fix issue 'a=b' coercing to "separated"Jan Pokorný2015-12-172-3/+12
| | | | | | Also add a unit test targeting this issue. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* command_manager: help2man compat. alternative invocationJan Pokorný2015-12-171-1/+2
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* clufter.spec: generate man pages also for built-in commandsJan Pokorný2015-12-171-0/+9
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* Set pre-release versionJan Pokorný2015-12-172-2/+5
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* Bump version to 0.50.5v0.50.5Jan Pokorný2015-10-082-3/+3
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>