Set pre-release version

Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
tests: fix a chained typo

Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
filters: start recognizing /cluster/rm/script of ccs

Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
filters: fix up {,cluster,net}fs arrangement incl. _fs.py fixes

Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
filters: ex-post sanitize "new command/cluster.conf analysis" commit

Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
filters/ccsflat2pcs[cluster]: guard against string split

Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
filters/ccsflat2pcs: encode services into valid, yet uncomplete CIB

IOW, there will have to be another pass that will use the data we have
prepared by known, massage them, and finally (and hopefully) spit out
the desired full-fledged cib, incl. reasonable constraints arrangement.

Apparently, ./run-check doesn't work as of this commit, but it's
worthless to edit it just to keep temporarily passing, as the final
result is different anyway.

Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
filter (XSLT): make nested comments survive repeated "XSLT"

This is imporant is case of "<descent-mix> - <descent>" structural
pattern, in which the original xsl:comment gets dissolved into
<!-- comment --> with the first XSLT run, which then disappear
completely upon subsequent runs.

Now it is preserved up the last point possible -- gets translated
upon postprocess that is (only) applied on the final product.
Btw. we utilize the fact in DOM (at least as seen with lxml),
text content of element node is handled the same in case of comment
node, so there no more magic needed.

Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
misc/ns-clusfter: document clufter:comment (just added, internal)

Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
misc/ns-clufter: mark clufter:message as not in use

Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
filters/ccsflat2pcs[script]: be verbose about using a hack

(first preserving/protecting the comment as such was needed)

Also drop an unused import.

Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
utils_xml: have the namespaces represented as symbols, too

+ propagate actually use these symbols

Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
utils_xml: drop an import no longer in use

Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
filter: drop an import no longer in use

Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
ccs2pcs: big renaming (ccsflat2pcsprelude + pcsprelude2pcs)

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>
format (+utils): make format compatibility check more liberal

... so as to fix a regression introduced with more explicit format
declarations in the filter "signatures".

Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
commands/ccs2pcs: apparently at least one more pass needed

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>
run-check: swap the diff inputs to get a desired output

Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
run-check: pass provided switches down to clufter invocation

Based on only a very approximate decision, but should be OK, most of the
time one want to add "-d" when running the script.

Point of non-switch $1 is when using the script sourced or for similar
experimental uses.

Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
filter: when running editor, make sure that stdin=/dev/tty

... as this is easily not true, e.g., when piping input (one of ~)
directly, as children subprocess normally inherits the filedescriptor
map.

Signed-off-by: Jan Pokorný <jpokorny@redhat.com>