summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* APT: Install missing configuration files (Fixes Ticket #622)Sol Jerome2010-10-121-1/+3
| | | | | | | | | We used to not do this because the user may have removed the configuration file in question on purpose. However, now that we have support for nonexistent entries, we can afford to add this option without any consequences. Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Pull: Fix help message formattingSol Jerome2010-10-111-1/+1
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* bcfg2-admin: explicitly shutdown the core at exit. fixes thread hangs.Tim Laszlo2010-10-071-0/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6084 ce84e21b-d406-0410-9b95-82705330c041
* Packages: fix is_pkg breakageNarayan Desai2010-09-271-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6077 ce84e21b-d406-0410-9b95-82705330c041
* Group paths to prune as an elementTim Laszlo2010-09-261-1/+4
| | | | | | | Avoids a potential problem where paths with a : in the name are not removed. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6071 ce84e21b-d406-0410-9b95-82705330c041
* DBStats: Purge historic data and expired clientsTim Laszlo2010-09-262-1/+199
| | | | | | | Adds a purge command to bcfg2-admin reports to permanently remove interactions and clients. Extends bcfg2-admin scrub to remove orphaned Reason and Entries objects. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6070 ce84e21b-d406-0410-9b95-82705330c041
* bcfg2-repo-validate: Remove non-required attributes (Reported by fearitself ↵Sol Jerome2010-09-261-3/+3
| | | | | | | | on IRC) Signed-off-by: Sol Jerome <sol.jerome@gmail.com> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6068 ce84e21b-d406-0410-9b95-82705330c041
* YUMng: correct the __req__Jack Neely2010-09-261-14/+6
| | | | | | | | Catch possible traceback if we are handed an instance not in our list. (This seems to be a bug with duplicate instances.) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6065 ce84e21b-d406-0410-9b95-82705330c041
* Packages: restore whitelist functionality (patch from Richard Connon) ↵Narayan Desai2010-09-261-22/+20
| | | | | | (Resolves #944) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6064 ce84e21b-d406-0410-9b95-82705330c041
* Init: fix cosmetic display for hostname prompt (fix from m4z) (Resolves ↵Narayan Desai2010-09-261-1/+1
| | | | | | Ticket #906) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6063 ce84e21b-d406-0410-9b95-82705330c041
* bcfg2: fix fatal_error on 2.5+ (approach from ↵Narayan Desai2010-09-261-1/+1
| | | | | | https://me.yahoo.com/a/2SlxL.p_rsQD.KxOt3q32tWWsQ--#39bec) (Resolves #915) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6061 ce84e21b-d406-0410-9b95-82705330c041
* DebInit: implement support for dependency-based boot in Squeeze and beyondNarayan Desai2010-09-261-2/+18
| | | | | | (patch from https://www.google.com/accounts/o8/id?id=AItOawlG5aiZZ6D7CrCtcInFhXmj7TC9AOKTyb8) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6060 ce84e21b-d406-0410-9b95-82705330c041
* bcfg2-repo-validate: Patch from Joe Digilio to fix tb in Ticket #939Sol Jerome2010-09-131-1/+2
| | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6055 ce84e21b-d406-0410-9b95-82705330c041
* YUMng: Deal with any possible Yum verify exceptionsJack Neely2010-09-131-1/+8
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6054 ce84e21b-d406-0410-9b95-82705330c041
* Client/Tools: Remove debsums.py client tool (accidentally committed)Sol Jerome2010-09-121-11/+0
| | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6053 ce84e21b-d406-0410-9b95-82705330c041
* Metadata: Add error message when file monitor failsSol Jerome2010-09-121-0/+1
| | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6052 ce84e21b-d406-0410-9b95-82705330c041
* YUMng: patch from Tim Laszlo to handle verifying broken symlinksJack Neely2010-09-041-0/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6049 ce84e21b-d406-0410-9b95-82705330c041
* Packages: Assign the deps variable before resolution.Tim Laszlo2010-09-041-0/+1
| | | | | | If no dependencies are found a trace is thrown in the validation phase. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6048 ce84e21b-d406-0410-9b95-82705330c041
* YUMng: fix bug #931Jack Neely2010-09-041-1/+0
| | | | | | | getinstalledgpg() is an RPMng method and is no longer needed in YUMng. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6047 ce84e21b-d406-0410-9b95-82705330c041
* YUMng: Fix Path type='ignore' traceback (Reported by Thomas Ackermann)Sol Jerome2010-08-301-3/+8
| | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6046 ce84e21b-d406-0410-9b95-82705330c041
* YUMng: speed improvements, multilib verify bug fixes, configuration knobsJack Neely2010-08-301-43/+97
| | | | | | | | | | | The pkg_checks, pkg_verify, installed_action, version_fail_action, and verify_fail_action configuration knobs are all wired back up. Caching implemented to help speed up the package verify routine. Work arounds for Yum bug: http://yum.baseurl.org/ticket/573 git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6045 ce84e21b-d406-0410-9b95-82705330c041
* Packages: fix type conflictNarayan Desai2010-08-301-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6044 ce84e21b-d406-0410-9b95-82705330c041
* Packages: fix type conflictNarayan Desai2010-08-301-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6043 ce84e21b-d406-0410-9b95-82705330c041
* Packages: invalidate virt_pkgs cache when source data is reloadedNarayan Desai2010-08-281-0/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6041 ce84e21b-d406-0410-9b95-82705330c041
* Packages: dep resolver rewriteNarayan Desai2010-08-271-154/+150
| | | | | | | | | Fix dep resolver to take all providers of a dependency into consideration. Rewrite resolver to be simpler at the same time. Added support for "apt" and "yum" as non-distro specific magic groups git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6040 ce84e21b-d406-0410-9b95-82705330c041
* Tools/__init__.py: Pylint/PEP8 fixesSol Jerome2010-08-271-5/+15
| | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6038 ce84e21b-d406-0410-9b95-82705330c041
* Tools/__init__.py: Autoload client tools present in the Tools directorySol Jerome2010-08-271-26/+9
| | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6037 ce84e21b-d406-0410-9b95-82705330c041
* YUMng: Speed improvements, Enable reinstallsJack Neely2010-08-271-17/+107
| | | | | | | | | | | | We no longer use RPMng in YUMng. This improves speed by not calling prelink as yum takes care of that for us. Yum can do reinstalls on package verify fail so lets wire that up. Not all the knobs in /etc/bcfg2.conf are hooked up yet. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6035 ce84e21b-d406-0410-9b95-82705330c041
* bcfg2-info: Add IPython support (Patch from Jeff Strunk) for Ticket #921Sol Jerome2010-08-271-1/+6
| | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6034 ce84e21b-d406-0410-9b95-82705330c041
* repo-validate: Validate two levels of Group nesting (Fixes Ticket #805)Sol Jerome2010-08-271-2/+6
| | | | | | | | | | This change forces the validator to check two levels of group nesting so that we don't assume two packages are the same based only on their parent groups. Signed-off-by: Sol Jerome <sol.jerome@gmail.com> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6033 ce84e21b-d406-0410-9b95-82705330c041
* BB: Deprecate BB plugin (Resolves Ticket #923)Sol Jerome2010-08-231-1/+1
| | | | | | | | | | The BB plugin is no longer in use. It has been replaced at Argonne by Heckle (https://trac.mcs.anl.gov/projects/Heckle). More information about Heckle should be available soon. Signed-off-by: Sol Jerome <sol.jerome@gmail.com> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6032 ce84e21b-d406-0410-9b95-82705330c041
* YUMng: All gpg-pubkey must be in the proper work queue to be installed.Jack Neely2010-08-181-7/+10
| | | | | | | | | | gpg-pubkeys are not packages, yet we treat them as so. They require special handling for all install/upgrades/etc. This corrects a condition where gpg-pubkeys were "upgraded" rather than "installed." git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6027 ce84e21b-d406-0410-9b95-82705330c041
* YUMng.py: correct undefined variableJack Neely2010-08-181-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6026 ce84e21b-d406-0410-9b95-82705330c041
* YUMng display classes, always compare string versions of packages.Jack Neely2010-08-181-2/+2
| | | | | | | | The package object here can be either a yum PO or a string. Comparing strings to POs tracebacks. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6025 ce84e21b-d406-0410-9b95-82705330c041
* Some minor changes on the comments to match PEP 8.Fabian Affolter2010-08-181-29/+36
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6022 ce84e21b-d406-0410-9b95-82705330c041
* bcfg2: Add back the new SSL key options (Fixes Ticket #916)Sol Jerome2010-08-141-3/+4
| | | | | | | | | | The man page no longer contains the -K option mentioned in Ticket #908. This has been removed since [6013]. We still need the key option available in the client to prevent Ticket #916. Signed-off-by: Sol Jerome <sol.jerome@gmail.com> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6021 ce84e21b-d406-0410-9b95-82705330c041
* Revert "Quick hack to fix #910"Sol Jerome2010-08-141-19/+12
| | | | | | | We can achieve this behavior by setting the prefix in bcfg2.conf under the [server] section. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6019 ce84e21b-d406-0410-9b95-82705330c041
* Display classes for the YUMng driverJack Neely2010-08-141-3/+57
| | | | | | | | | These callback classes pipe Yum's and RPM's logging output into our own logger, cut down on verbosity, and allow us to fine tune what logging goes where. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6018 ce84e21b-d406-0410-9b95-82705330c041
* Quick hack to fix #910Fabian Affolter2010-08-141-12/+19
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6017 ce84e21b-d406-0410-9b95-82705330c041
* CommentsFabian Affolter2010-08-141-2/+4
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6016 ce84e21b-d406-0410-9b95-82705330c041
* Added some more comments.Fabian Affolter2010-08-141-8/+11
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6015 ce84e21b-d406-0410-9b95-82705330c041
* Fix typosSol Jerome2010-08-142-2/+2
| | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6014 ce84e21b-d406-0410-9b95-82705330c041
* Use for both, the server and the client, '--ssl-key' Fabian Affolter2010-08-141-41/+42
| | | | | | Options membered git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6012 ce84e21b-d406-0410-9b95-82705330c041
* SSLServer: handle socket errors on shutdown gracefully (Resolves #907 and #909)Narayan Desai2010-08-111-2/+8
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6011 ce84e21b-d406-0410-9b95-82705330c041
* bcfg2: fix option parsing for ssl key (Resolves Ticket #908)Narayan Desai2010-08-111-1/+0
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6010 ce84e21b-d406-0410-9b95-82705330c041
* Init: Fix traceback from ticket #906Sol Jerome2010-08-111-4/+7
| | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6009 ce84e21b-d406-0410-9b95-82705330c041
* YUMng re-implementation of VerifyPackage using the Yum API.Jack Neely2010-08-111-89/+318
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6008 ce84e21b-d406-0410-9b95-82705330c041
* Minor layout changesFabian Affolter2010-08-111-7/+7
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6007 ce84e21b-d406-0410-9b95-82705330c041
* Harmonised log messagesFabian Affolter2010-08-111-10/+10
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6006 ce84e21b-d406-0410-9b95-82705330c041
* debian: Merge in changes from Arto JantunenSol Jerome2010-08-111-1/+2
| | | | | | | | | bcfg2.init: Remove agent mode (no longer exists) POSIX.py: Fix hardcoded errno value Signed-off-by: Sol Jerome <sol.jerome@gmail.com> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6005 ce84e21b-d406-0410-9b95-82705330c041