summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Don't assume python2.5 is being used on successful hashlib importSol Jerome2010-08-113-11/+14
| | | | | | | | | | | | The hashlib module has been backported to earlier versions of python. If we assume that 2.5 is in use, then python will go crazy looking for stuff that doesn't exist in earlier versions. This patch will allow older versions of python installed alongside a standalone hashlib module to work properly. Signed-off-by: Sol Jerome <sol.jerome@gmail.com> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6004 ce84e21b-d406-0410-9b95-82705330c041
* Probes: Fix name collapse in case of group specific probes (arch.G20_foo -> ↵Narayan Desai2010-08-111-1/+1
| | | | | | arch) (Resolves Ticket #904) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6003 ce84e21b-d406-0410-9b95-82705330c041
* TGenshi/TCheetah: Add base64 encoding support for files handled by non-Cfg ↵Sol Jerome2010-08-052-2/+12
| | | | | | | | | | | | | | plugins Reported by Chris Brinker in IRC. We should now have the ability to use encoding=base64 in info/info.xml files for paths that are handled by the TGenshi and TCheetah plugins. I think this common code for the three plugins can be merged once we implement Kisielk's idea for having a single Cfg/TGenshi/TCheetah tree. Signed-off-by: Sol Jerome <sol.jerome@gmail.com> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6002 ce84e21b-d406-0410-9b95-82705330c041
* bcfg2-server: logger.error doesn't work when bcfg2.conf doesn't existSol Jerome2010-08-041-2/+4
| | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6001 ce84e21b-d406-0410-9b95-82705330c041
* Packages: Move knobs to config.xmlTim Laszlo2010-08-041-26/+12
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5999 ce84e21b-d406-0410-9b95-82705330c041
* Packages: Resolver/Metadata optionsTim Laszlo2010-08-041-1/+32
| | | | | | | Patch from Jack Neely to add enable/disable options to the resolver and metadata pareser. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5998 ce84e21b-d406-0410-9b95-82705330c041
* Packages: Allow soft relaods and use a checksum for cache file.Tim Laszlo2010-08-041-41/+41
| | | | | | | | Use checksum for cache file. Allow reloads of config.xml and sources without downloading everything. Merged config.xml and source processing into a single function. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5997 ce84e21b-d406-0410-9b95-82705330c041
* Packages: Expose repo data as a ConnectorTim Laszlo2010-08-041-4/+24
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5996 ce84e21b-d406-0410-9b95-82705330c041
* IPS: Fix argument ordering for PkgTool.__init__ as wellTim Laszlo2010-08-041-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5995 ce84e21b-d406-0410-9b95-82705330c041
* IPS: init args ordering patch from Rick BradshawSol Jerome2010-07-301-1/+1
| | | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5994 ce84e21b-d406-0410-9b95-82705330c041
* YUMng: Better error handling for installsTim Laszlo2010-07-301-2/+8
| | | | | | | Currently a missing package throws an exception during the install. This traps it and gracefully logs an error. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5993 ce84e21b-d406-0410-9b95-82705330c041
* DBStats: Fix random mysql errorsTim Laszlo2010-07-302-18/+26
| | | | | | | | | Occasionally importing ping data would fail with "Commands out of sync; you can't run this command now". Improved logging and error handling for imports. Fixed indentation error in GetCurrentEntry git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5992 ce84e21b-d406-0410-9b95-82705330c041