summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* format: ccs: split out ccs-needle, capable of being validatedJan Pokorný2014-05-302-1/+8
| | | | | | ... using already present corosync.rng Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* format: implement XML validation based on Relax NG schemasJan Pokorný2014-05-304-3/+63
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* format: implement validator infrastructureJan Pokorný2014-05-301-8/+39
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* format: allow implicit "produce" generic->specific chainingJan Pokorný2014-05-301-10/+21
| | | | | | | | | | | | | ... which is also applied on XML's get_bytestring, i.e.,: thanks to "chained" flag in the decorator of the producing method, the responsibility is first generated upwards, to Format, if the respective implementation is able to cope with the request on this general level (like fetching string from file), the product is then the final product, otherwise (product is None), more specific implementation is used instead (like getting string from existing ElementTree object), and this goes on and forth. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* format: refactor out some tuplist-realated normalizationsJan Pokorný2014-05-302-8/+11
| | | | | | ...to utils.py Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* format: native_protocol as raising classproperty, no rng_schemaJan Pokorný2014-05-301-10/+8
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* utils_xml: XML helpers incl. rng_pivot to be used for validationJan Pokorný2014-05-284-0/+2332
| | | | | | + unittest Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* utils_prog: new func dirname_x (iterated dirname)Jan Pokorný2014-05-282-2/+5
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* command: more precise standalone arg to opt param matchingJan Pokorný2014-05-261-12/+27
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* Add "quiet" general parameter and make XMLFilter honor itJan Pokorný2014-05-263-1/+7
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filter: XMLFilter: use the "atom" hook to handle error_logJan Pokorný2014-05-261-1/+20
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filter: XMLFilter: add a mountpoint for "atom" hookJan Pokorný2014-05-261-7/+9
| | | | | | | | This is to be called each time a XSLT template is executed (depending on the arrangment, can be once per filter, or repeatedly for particular decomposed pieces). Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* commands/ccs2pcs_flatiron: drop generating (static) corosync.confJan Pokorný2014-05-263-31/+3
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* command: pass forgotten param when figuring parser optsJan Pokorný2014-05-231-2/+2
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/flatccs2pcs: samba RA -> native initscript/unitfileJan Pokorný2014-05-221-0/+46
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* Local vimrc: simplify + (perhaps) speed up regex matchJan Pokorný2014-05-221-6/+6
| | | | | | | The problem was with XSLT snippets internally interleaved with Python code (see ResourceSpec). Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filter: XMLFilter/XSLT: expose system knowledge as paramsJan Pokorný2014-05-223-7/+32
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filter: XMLFilter: pass common params (raw) rather via contextJan Pokorný2014-05-227-7/+15
| | | | | | | | ...bringing also "single point of authority/modification" in this matter + also switch the naming order wrt. proceed_xslt identifiers (because of similarity with imposed "ctxt_" prefix Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* command_context: avoid early-closure trap, defer to ad-hocJan Pokorný2014-05-221-2/+2
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* Introduce an explicit notion about target system+distroJan Pokorný2014-05-225-17/+44
| | | | | | | ...which is, in an unified way, used for both deciding alias targets and for decisions within commands/filters. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/flatccs2pcs: ocf:heartbeat is not a certaintyJan Pokorný2014-05-229-20/+42
| | | | | | | (e.g., in the new cluster order, samba does have a dedicated agent, native system/distro ways to manage the service has to be used instead) Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* utils_cib: unit for CIB-related stuff + test counterpartJan Pokorný2014-05-222-0/+80
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* main: make style/PEP-8 checker happyJan Pokorný2014-05-191-2/+2
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* Refactor: separate set_logging func in utils_progJan Pokorný2014-05-193-19/+23
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* utils_prog: new program-specific unit incl. some moves from utilsJan Pokorný2014-05-199-82/+103
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* doc/cib-ids.txt: mostly internal referenceJan Pokorný2014-05-191-0/+21
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/flatccs2pcs: unify {,cluster,net}fs -> FilesystemJan Pokorný2014-05-192-88/+158
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/flatccs2pcs: 1st round of simple RAs conversionJan Pokorný2014-05-159-1/+368
| | | | | | | | | | | | | _fs_clusterfs.py | Filesystem ~ (fs|clusterfs) apache.py | apache ~ apache ip.py | IPAddr2 ~ ip lvm.py | LVM ~ lvm mysql.py | mysql ~ mysql nfsserver.py | nfsserver ~ nfserver postgres-8.py | pgsql ~ postgres-8 vm.py | VirtualDomain ~ vm Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filter: new purposeful group of top-level XSL tagsJan Pokorný2014-05-151-1/+7
| | | | | | ... to be (desirably) treated just like standard group. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/flatccs2pcs: start basic RAs processingJan Pokorný2014-05-152-0/+30
| | | | | | Ask for "divide et impera" mechanism (forthcoming). Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/pcs2simplepcs: fix missing fencedev's instance_attributes/@idJan Pokorný2014-05-151-0/+3
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* Revert "ccs_flatten: preserve intended rgmanager-meta-agent w/ metadata"Jan Pokorný2014-05-091-5/+1
| | | | | | | It's actually better to be able to distinguish live data from prepacked metadata. This reverts commit 4615e2fb7f9ca05b23024249003fa2456e950c1c.
* ccs_flatten: preserve intended rgmanager-meta-agent w/ metadataJan Pokorný2014-05-091-1/+5
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* ccs-flatten: code both removed-stale and added-neededJan Pokorný2014-05-072-12/+9
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* ccs-flatten: DEBUG flag to make with apparent meaningJan Pokorný2014-05-071-2/+3
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* ccs-flatten: add "cached" metadata of resource agentsJan Pokorný2014-05-0725-0/+2936
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* ccs-flatten: allow "cached" metadata usage instead of proper RAsJan Pokorný2014-05-074-28/+101
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/ccs_revitalize: treat domain equally with fence_{virt,xvm}Jan Pokorný2014-05-061-2/+6
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/flatccs2pcs: "unspecified port" XML-thinko + formatJan Pokorný2014-04-291-3/+7
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/pcs2simplepcs: think of "no fencedev instance attributes"Jan Pokorný2014-04-291-2/+5
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* commands/ccs2pcs: ccs-revitalize <- simplify cornercases down the lineJan Pokorný2014-04-292-7/+15
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* command: fix chain analysis failing on 3+ items linear chainJan Pokorný2014-04-291-2/+9
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* commands/ccs_revitalize: new single filter commandJan Pokorný2014-04-254-0/+88
| | | | | | | | | Currently @domain -> @port for fence_xvm FA: idea is to simplify processing in downstream filters which would otherwise have to be encumbered with the additional complexity, not distant from the one of this new filter. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* ccs-flatten: sanitize header inclusion (cont'd)Jan Pokorný2014-04-252-4/+0
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* ccs-flatten: sanitize header inclusionJan Pokorný2014-04-256-20/+18
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* Embed ccs_flatten utility and make (almost) directly usableJan Pokorný2014-04-2515-0/+3047
| | | | | | (prerequisite is the previous commit) Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/ccs2flatccs: pardir -> curdir (CWD of current process)Jan Pokorný2014-04-251-2/+2
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* Relicence GPLv2 -> GPLv2+Jan Pokorný2014-04-2557-57/+57
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/pcs2simplepcs: strip fencing-topology if emptyJan Pokorný2014-04-171-0/+12
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* filters/flatccs2pcs: handle fencing topologyJan Pokorný2014-04-171-1/+37
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>