summaryrefslogtreecommitdiffstats
path: root/src/lib/Server
Commit message (Collapse)AuthorAgeFilesLines
* Cfg: Fix diff deltas (Patch from Thomas Schoenl)Narayan Desai2009-10-291-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5510 ce84e21b-d406-0410-9b95-82705330c041
* TGenshi/TCheetah: Set type to 'file' for Path entriesSol Jerome2009-10-272-0/+4
| | | | | | | | | Similar to r5475, we need to set the entry type of templated ConfigFiles so that they are mapped properly by the POSIXCompat plugin. Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5509 ce84e21b-d406-0410-9b95-82705330c041
* Reports: Fix django templates so that they work with 1.0Sol Jerome2009-10-243-5/+5
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5503 ce84e21b-d406-0410-9b95-82705330c041
* Reports: Fix order of client listingSol Jerome2009-10-241-4/+4
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5502 ce84e21b-d406-0410-9b95-82705330c041
* Metadata: force pretty-printing of clients file (Resolves Ticket #644)Narayan Desai2009-10-241-1/+5
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5500 ce84e21b-d406-0410-9b95-82705330c041
* Metadata: refuse to add dynamic group membership in explicitly private ↵Narayan Desai2009-10-241-1/+8
| | | | | | groups (Resolves Ticket #529) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5496 ce84e21b-d406-0410-9b95-82705330c041
* Fix function name in Metadata baseclassNarayan Desai2009-10-221-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5492 ce84e21b-d406-0410-9b95-82705330c041
* Packages: Defer handling of virtual requirements provided by multipleNarayan Desai2009-10-221-2/+17
| | | | | | packages until last possible time (now with 100% less wtf ;) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5491 ce84e21b-d406-0410-9b95-82705330c041
* Packages: simplify package resolution logic (should resolve outstanding ↵Narayan Desai2009-10-211-95/+105
| | | | | | issues with prereq resolution) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5490 ce84e21b-d406-0410-9b95-82705330c041
* bcfg2-info: simplify codepaths for debug modeNarayan Desai2009-10-211-0/+4
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5489 ce84e21b-d406-0410-9b95-82705330c041
* Packages: Remove debug printNarayan Desai2009-10-191-1/+0
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5488 ce84e21b-d406-0410-9b95-82705330c041
* Packages: Add virtual packages properlyNarayan Desai2009-10-191-2/+3
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5487 ce84e21b-d406-0410-9b95-82705330c041
* Fix incorrect mappings and change configfile type to fileSol Jerome2009-10-162-4/+2
| | | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5484 ce84e21b-d406-0410-9b95-82705330c041
* Perf: Fix syntax errorSol Jerome2009-10-071-1/+1
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5478 ce84e21b-d406-0410-9b95-82705330c041
* Pylint/PEP 8 Code cleanupsSol Jerome2009-10-0743-189/+272
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5477 ce84e21b-d406-0410-9b95-82705330c041
* Remove GBundler plugin (this functionality already exists in Bundler)Sol Jerome2009-10-072-40/+0
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5476 ce84e21b-d406-0410-9b95-82705330c041
* Cfg: Set type to 'configfile' for Path entriesSol Jerome2009-10-061-2/+4
| | | | | | | | | | When binding Path entries using Cfg, we need to set the entry type to 'configfile' so that the POSIXCompat plugin can properly map it to an old-style entry. Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5475 ce84e21b-d406-0410-9b95-82705330c041
* Admin-modes: Implement plugin whitelists/blacklists for modes that don't requireNarayan Desai2009-10-022-2/+11
| | | | | | | a full server Viz : Use the new blacklist option to speed up viz performance git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5474 ce84e21b-d406-0410-9b95-82705330c041
* Viz: remove spurious raise SystemExitNarayan Desai2009-10-021-1/+0
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5473 ce84e21b-d406-0410-9b95-82705330c041
* Fix nasty core hang, which would manifest itself as a lockup upon shutdown ↵Narayan Desai2009-10-024-3/+16
| | | | | | | | | | | | | | | | | | | for bcfg2-{server,info,admin} The root cause of this issue was our use of external threads. Without a channel for data requesting plugin (and hence thread) shutdown, plugin threads would continue, unabated, forever. This would cause the python interpreter to hang forever waiting for a futex. Added a new shutdown method to Bcfg2.Server.Plugin.Plugin which sets a state flag upon shutdown request. Plugin threads must cycle periodically, even if no work is available, to ensure that the shutdown flag is honored in a reasonable amount of time. Also, the shutdown method is triggered using atexit. This means that scripts may need to explicitly sys.exit or raise SystemExit, depending on circumstances. This addresses at least one, but probably more tickets, however I am currently offline. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5472 ce84e21b-d406-0410-9b95-82705330c041
* POSIX: Add block/character/fifo devices (ticket #477)Sol Jerome2009-10-011-7/+9
| | | | | | | | | | This commit adds support for posix device types via Path entries in Bundler. The 'type' attribute for Path entries is now all lowercase. Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5470 ce84e21b-d406-0410-9b95-82705330c041
* Changed name and implementation to "bcfg2-server" so that the serverMike McCallister2009-09-261-2/+2
| | | | | | | logs to syslog as "bcfg2-server". git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5465 ce84e21b-d406-0410-9b95-82705330c041
* POSIX: Add support for nonexistent Path entry typesSol Jerome2009-09-261-1/+1
| | | | | | | | | | Allow specification of Path entries which should not exist on the client. This gives the user the ability to explicitly remove Path entries if they exist on the client. Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5464 ce84e21b-d406-0410-9b95-82705330c041
* Added Fossil to Plugins init and Fossil and Bzr to man 5 bcfg2.confDaniel Joseph Barnhart Clark2009-09-251-0/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5462 ce84e21b-d406-0410-9b95-82705330c041
* Packages: pylint fixesNarayan Desai2009-09-241-41/+63
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5460 ce84e21b-d406-0410-9b95-82705330c041
* Packages: immediately add dependencies for packages added as single-choice ↵Narayan Desai2009-09-241-1/+10
| | | | | | virtual deps (Resolves Ticket #745) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5459 ce84e21b-d406-0410-9b95-82705330c041
* Add better debug logging to Fossil plugin, like Bzr.py hasDaniel Joseph Barnhart Clark2009-09-241-2/+3
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5458 ce84e21b-d406-0410-9b95-82705330c041
* Support for [http://fossil-scm.org Fossil] SCM Distributed Version Control ↵Daniel Joseph Barnhart Clark2009-09-241-0/+50
| | | | | | System (DVCS) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5457 ce84e21b-d406-0410-9b95-82705330c041
* Decisions: Catch initialization error for non-existent Decisions directorySol Jerome2009-09-241-2/+10
| | | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5456 ce84e21b-d406-0410-9b95-82705330c041
* Packages: rework apt dependency choicesNarayan Desai2009-09-231-4/+9
| | | | | | | | | | | | Don't force use of a particular prereq choice. This causes additional unknown entries in package dep resolution, but removes incorrect dependency choice hardwiring. This effect can be mitigated by listing package prereq choices explicitly. Eventually, we should implement apt's choice of last resort algorithm for Packages. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5454 ce84e21b-d406-0410-9b95-82705330c041
* Packages: Fix infinite loop problem with cyclic deps (Reported by david strauss)Narayan Desai2009-09-231-0/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5453 ce84e21b-d406-0410-9b95-82705330c041
* Revision returned by Bzr should be a scalar value.David Strauss2009-09-231-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5452 ce84e21b-d406-0410-9b95-82705330c041
* Initial Bazaar VCS support.David Strauss2009-09-232-0/+46
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5451 ce84e21b-d406-0410-9b95-82705330c041
* Packages: Fix case where item is completely unknown (hence pset is unset) ↵Narayan Desai2009-09-231-2/+3
| | | | | | (Resolves #743) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5450 ce84e21b-d406-0410-9b95-82705330c041
* Packages: make package alternatives work properly when specified (Resolves ↵Narayan Desai2009-09-221-17/+48
| | | | | | Ticket #738) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5449 ce84e21b-d406-0410-9b95-82705330c041
* TGenshi: Ensure backward/forward api compatibility for genshiNarayan Desai2009-09-221-2/+8
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5448 ce84e21b-d406-0410-9b95-82705330c041
* Packages: sort auto-added package entriesNarayan Desai2009-09-221-1/+3
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5447 ce84e21b-d406-0410-9b95-82705330c041
* Packages: Fix extra / inclusion in repomd urls (Resolves Ticket #740)Narayan Desai2009-09-221-1/+3
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5446 ce84e21b-d406-0410-9b95-82705330c041
* Packages: implement config file reloadsNarayan Desai2009-09-181-8/+27
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5444 ce84e21b-d406-0410-9b95-82705330c041
* Xcmd: Improve error handling for unknown rmi methodsNarayan Desai2009-09-181-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5443 ce84e21b-d406-0410-9b95-82705330c041
* bcfg2-admin xcmd: improve error handling (Resolves Ticket #734)Narayan Desai2009-09-181-1/+15
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5441 ce84e21b-d406-0410-9b95-82705330c041
* bcfg2-admin: implement xcmd modeNarayan Desai2009-09-152-1/+37
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5438 ce84e21b-d406-0410-9b95-82705330c041
* Packages: Implement remote cache update callNarayan Desai2009-09-151-0/+9
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5437 ce84e21b-d406-0410-9b95-82705330c041
* Packages: Add list of packages and dependencies on clientSol Jerome2009-09-151-2/+2
| | | | | | | | | | | Now that we have Packages, it is useful to be able to determine whether your package was specified directly in your configuration or was added by Packages. This commit allows you to view this information in debug mode on the client. Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5434 ce84e21b-d406-0410-9b95-82705330c041
* Pull.py: Fix traceback for ticket #731Sol Jerome2009-09-141-1/+6
| | | | | | | | | | While the pull mode of bcfg2-admin will not work unless a statistics plugin is enabled, we should not allow it to traceback in the case a user tries to call it without having one enabled. Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5432 ce84e21b-d406-0410-9b95-82705330c041
* *Genshi: Don't strip whitespace (Resolves Ticket #730)Narayan Desai2009-09-112-3/+3
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5429 ce84e21b-d406-0410-9b95-82705330c041
* Packages: Improve clarity of debug messages (Resolves Ticket #728)Narayan Desai2009-09-101-2/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5427 ce84e21b-d406-0410-9b95-82705330c041
* Packages: fix typo (Resolves Ticket #726)Narayan Desai2009-09-101-2/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5426 ce84e21b-d406-0410-9b95-82705330c041
* POSIXCompat: Change name of Compat plugin to POSIXCompatSol Jerome2009-09-092-8/+32
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5425 ce84e21b-d406-0410-9b95-82705330c041
* Packages: Add error message when clients do not match any Packages sources ↵Narayan Desai2009-09-091-0/+3
| | | | | | (Resolves Ticket #723) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5424 ce84e21b-d406-0410-9b95-82705330c041