summaryrefslogtreecommitdiffstats
path: root/__root__
Commit message (Collapse)AuthorAgeFilesLines
* README: expand ccs_flatten dependencies/requirementsJan Pokorný2015-07-021-2/+6
| | | | | | (merge build- and run-time deps) Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* README: Contact, a new top-level sectionJan Pokorný2015-07-021-0/+13
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* README: Demo, a new section under UsageJan Pokorný2015-07-021-0/+45
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* README: Installation -> Stable version + contentJan Pokorný2015-07-021-4/+12
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* README: ccs_flatten is now solely a local matterJan Pokorný2015-07-021-5/+2
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* commands/ccs2pcs: cosmetics/orderings (import/kwargs)Jan Pokorný2015-04-151-1/+1
| | | | | | | | 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>
* general: use python2 (sys.executable), not python (PEP 394)Jan Pokorný2015-04-084-5/+5
| | | | | | | | Hopefully there is no major roadblock making this change unreasonable at this point in time (checked commonly used RHEL, Fedora, Debian/Ubuntu -- the latter also for seamless integration with Travis CI). Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* ccs-flatten: (fwd-)port "resource-defaults section" supportJan Pokorný2015-04-083-0/+94
| | | | | | | | See, e.g., https://git.fedorahosted.org/cgit/cluster.git/commit/?h=STABLE32&id=5bddd1e21098a183560f64a569dd15fa8fdca1a8 https://bugzilla.redhat.com/show_bug.cgi?id=707118#c9 Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* ccs-flatten/restree: propagate also default param valuesJan Pokorný2015-04-081-0/+2
| | | | | | | ... as this is the most suitable moment (we will not be parsing resource rules/metadata later again). Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* ccs-flatten/restree: use shorter, memoized expressionJan Pokorný2015-04-081-10/+10
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* run-check: acknowledge distro differences even for ccs2cibJan Pokorný2015-04-081-2/+3
| | | | | | | | | | Hence hard-code the distro to the testing command to make sure it reproduces what the hardwired referential results where obtained with. Check, e.g., this commit to learn about what I mean: filters/ccsflat2cibprelude[clusternode]: conditional node id. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* run-tests: remove unnecessary command substitutionJan Pokorný2015-03-201-2/+2
| | | | | | (marked suspicious by ShellCheck tool) Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* run-sdist: fix popd being called too earlyJan Pokorný2015-03-201-1/+1
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* ccs-flatten/list.h: spare extra checks (per rgmanager upstream)Jan Pokorný2015-03-201-2/+2
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* ccs-flatten/list.h: list_do{,ne}: spare extra checkJan Pokorný2015-03-201-1/+4
| | | | | | | ... that also makes this wrapped iteration more-or-less compatible with list_remove (see the in-line comment, but discretion needed, untested!) Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* ccs-flatten/list.h: fix logical subtleties w/ list_do{,ne}Jan Pokorný2015-03-201-3/+3
| | | | | | | | | | | | list_do: do not check *list twice list_done: do not check curr, as we are quite sure it will never reach NULL value implicitly (using intended list manipulators incl. the wrapped iteration itself, not explicit redefinition that is broken anyway), otherwise we would have already observed either trivial infloops or segfaults caused by reliance on such an assumption (curr != NULL) Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* ccs-flatten/Makefile: standard builds w/ defined NDEBUGJan Pokorný2015-03-202-3/+4
| | | | | | Also drop unnecessary assert.h include from xmlconf.c Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* setup: s/copymode/copystat/ not to diverge in multilib *.py[co]Jan Pokorný2015-03-161-3/+3
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* ccs-flatten/res{list.h,rules.c}: drop unused functionJan Pokorný2015-03-162-24/+2
| | | | | | (code marked suspicious by static analysis) Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* ccs-flatten/reslist.c: avoid NULL pointer derefJan Pokorný2015-03-161-4/+4
| | | | | | (found by static analysis) Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* ccs-flatten/flatten.c: avoid fclose(NULL)Jan Pokorný2015-03-161-2/+2
| | | | | | (finding of static analysis) Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* ccs-flatten/resrules.c: fix recently introduced off-by-oneJan Pokorný2015-03-161-1/+1
| | | | | | Discovered thanks to Travis CI tests. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* run-check: "ln -r" is a recent addition, do not rely on thatJan Pokorný2015-03-161-1/+3
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* ccs-flatten/flatten.c: fix a memory leakJan Pokorný2015-03-161-1/+3
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* ccs-flatten/resrules.c: make sure raw metadata are handled lastJan Pokorný2015-03-161-10/+28
| | | | | | | | We need this sort of determinism (not needed generally as agents are supposed to be different, otherwise it would confuse cluster management, etc.). Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* ccs-flatten/resrules.c: track success of glob + cleanup afterwardsJan Pokorný2015-03-161-2/+6
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* ccs-flatten: avoid proper RA *.metadata confusion with own onesJan Pokorný2015-03-161-2/+6
| | | | | | | | | | | | | | | | Previously, running the CLI without proper installation on the machine with some /usr/share/cluster/*.metadata files present (typically RHEL 6 with resource-agents installed) meant that "onvenient fallback for local/test deployment" hadn't been activated, leading to various errors in the conversion due to most of the *.metadata files missing anyway (most notably for "script"). Now we take an advantage of own/embedded metadata files ending with ".sh.metadata", therefore we are not confused in this way (at least not so easily, but good enough for the time being). Reported-by: Chris Feist <cfeist@redhat.com> Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* ccs-flatten: minor fixes and simplificationsJan Pokorný2015-03-162-6/+11
| | | | | | | | | - add "#ifdef RA_METADATA_EXT" where also advisable - closedir before possibly returning, not the other way around - reflect the fact basename doesn't return NULL and work with its return value directly Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* run-check: fix "direct consumption" use-case (from repo root)Jan Pokorný2015-02-261-1/+2
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* run-check: fix "direct consumption" use-caseJan Pokorný2015-02-261-2/+3
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* ccs-flatten: update "cached" metadata of resource agentsJan Pokorný2015-02-265-0/+158
| | | | | | | - new: bind-mount, db2 - updated: nfsserver, postgres-8, vm Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* ccs-flatten/Makefile: fix missing trailing curly braceJan Pokorný2015-02-261-1/+1
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* run-{check,test}: remove bashisms (travis-friendly)Jan Pokorný2015-02-262-2/+2
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* setup: filelist.findall/setuptools8.0(#277)+symlink schema -> infloopJan Pokorný2015-02-261-0/+17
| | | | | | | ...hence monkey-patching monkey-patched (by setuptools against distutils' original implementation) Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* run-sdist-per-commit: ditto convenient pushed-code sdist'ingJan Pokorný2015-02-261-1/+2
| | | | | | Also include this file into the specfile as extra source if appropriate. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* run-sdist: script for convenient local-commit sdist'ingJan Pokorný2015-02-261-0/+9
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* Include and package GFDL (v1.3) itselfJan Pokorný2015-02-262-1/+452
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* README: mention newly discovered "long s" vs. name factJan Pokorný2015-01-201-0/+9
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* setup: fix formatting (a bit)Jan Pokorný2015-01-141-5/+5
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* setup: eliminate sources from which we prepared filesJan Pokorný2015-01-141-1/+12
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* run-dev/setup: fix not restoring the state when discoveringJan Pokorný2015-01-142-1/+4
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* setup: enable GH-backed inter-release archive downloadsJan Pokorný2015-01-141-4/+8
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* setup: do not allow other dirs to be looked forJan Pokorný2015-01-141-1/+3
| | | | | | ...when figuring out the "own identity" Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* setup: avoid linking executable with (unneded) -lpython*Jan Pokorný2015-01-141-2/+6
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* setup: handle case of local pkg aliasing w/ system-wideJan Pokorný2015-01-141-4/+10
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* run-dev: fix redundant (but harmless) basename applicationJan Pokorný2015-01-141-1/+1
| | | | | | (harmless since basename function is idempotent) Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* setup: dot-containing initial dir for discovery is OKJan Pokorný2015-01-091-2/+5
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* MANIFEST.in: do not include symlinked setup.py in rootJan Pokorný2015-01-091-0/+1
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* run-dev: handle case of local pkg aliasing w/ system-wideJan Pokorný2015-01-091-11/+22
| | | | Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
* {run_,}setup: subsequent tweak for "pip install from git"Jan Pokorný2015-01-093-11/+7
| | | | | | | | | Also delete run-setup as it has about the same meaning now as running "python setup.py" fixed part of the command directly. See also: https://github.com/pypa/pip/pull/2337 Signed-off-by: Jan Pokorný <jpokorny@redhat.com>