summaryrefslogtreecommitdiffstats
path: root/src/lib/Server
Commit message (Collapse)AuthorAgeFilesLines
* Version bump to 1.0.0Narayan Desai2009-11-051-1/+0
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5553 ce84e21b-d406-0410-9b95-82705330c041
* bcfg2-admin init: autogenerate self-signed cert for the serverNarayan Desai2009-11-051-11/+25
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5549 ce84e21b-d406-0410-9b95-82705330c041
* Packages: only log explicit packages that are unsatisfiedNarayan Desai2009-11-051-2/+3
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5544 ce84e21b-d406-0410-9b95-82705330c041
* Snapshots: handle client traceback when called with bad optionsNarayan Desai2009-11-051-0/+3
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5542 ce84e21b-d406-0410-9b95-82705330c041
* Bzr: Use faster method to detect changes in the working tree. Also, look for ↵David Strauss2009-11-051-1/+1
| | | | | | unknown items. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5541 ce84e21b-d406-0410-9b95-82705330c041
* Bzr: Finally use the bzrlib API for real. This is much cleaner, and it ↵David Strauss2009-11-051-21/+11
| | | | | | should end any interprocess communication issues. Because it's easy, also append a plus sign if there are local changes to the working tree. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5540 ce84e21b-d406-0410-9b95-82705330c041
* Bzr: Fix hang on second and susequent calls.David Strauss2009-11-051-2/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5539 ce84e21b-d406-0410-9b95-82705330c041
* Use proper logging for snapshot storage time.David Strauss2009-11-051-1/+5
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5538 ce84e21b-d406-0410-9b95-82705330c041
* Bzr: Strip newline from end of revision number.David Strauss2009-11-051-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5537 ce84e21b-d406-0410-9b95-82705330c041
* Snapshots: Add missing datafields for Directory and SymLink to match listed ↵David Strauss2009-11-051-2/+3
| | | | | | ftypes. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5536 ce84e21b-d406-0410-9b95-82705330c041
* Core: Fix typoNarayan Desai2009-11-051-0/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5531 ce84e21b-d406-0410-9b95-82705330c041
* DBStats: Fix data eating / Core: revert copy changeNarayan Desai2009-11-052-3/+4
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5530 ce84e21b-d406-0410-9b95-82705330c041
* Core: Only pass copies of statistics objects to stats plugins (Reported by ↵Narayan Desai2009-11-051-1/+2
| | | | | | davidstrauss) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5529 ce84e21b-d406-0410-9b95-82705330c041
* bcfg2-admin init: prompt in case of pre-existing bcfg2.conf (Resolves Ticket ↵Narayan Desai2009-11-051-11/+13
| | | | | | #777) (patch from cory lueninghoener) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5528 ce84e21b-d406-0410-9b95-82705330c041
* Metadata: fix lxml api use to work with older versionsNarayan Desai2009-11-051-3/+7
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5525 ce84e21b-d406-0410-9b95-82705330c041
* 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