summaryrefslogtreecommitdiffstats
path: root/src/lib/Server
Commit message (Collapse)AuthorAgeFilesLines
* SSHbase: Use shutil as per Lee's suggestion in Ticket #866Sol Jerome2010-03-251-2/+3
| | | | | | | | | | | | | | | | | | | | | From the ticket: --- From what I can tell, there is an os.system call (line #214 of Bcfg2/Server/Plugins/SSHbase.py) that is supposed to fire off ssh-keygen to generate the keys in a temporary directory. It seems that this call isn't generating the keys correctly. Adding in some debug os.listdir(tempdir) calls before and after the os.system call, shows that there are no files before and after the os.system call. Running the command manually generates valid key pairs. --- So, while this commit won't fix the os.system call, it should at least prevent the plugin from generating empty ssh keys. Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5794 ce84e21b-d406-0410-9b95-82705330c041
* SSHbase: Generate known_hosts file in consistent order (Patch from Lee Loucks)Sol Jerome2010-03-251-31/+32
| | | | | | | | | | | | | | | | From Ticket #869: Because the order of a python set is dependent on the order of the hash of entries of that set, the get_skn method generates a entries in the ssh_known_hosts with the names ordered according to their has instead of a consistent (from the user point of view) order. Some entries are IP, hostname and other entries are hostname, IP. This patch corrects that. Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5793 ce84e21b-d406-0410-9b95-82705330c041
* Viz: Include xincluded files from groups.xml (Resolves Ticket #867)Sol Jerome2010-03-251-0/+4
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5790 ce84e21b-d406-0410-9b95-82705330c041
* Automatically add additional host aliases to ssh_known_hosts.root2010-03-131-1/+34
|
* Packages: Add 'fedora' os group to the list of basegroupsSol Jerome2010-03-091-1/+1
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5759 ce84e21b-d406-0410-9b95-82705330c041
* importscript.py: Add support for -C option (Patch from euth in Ticket #852)Sol Jerome2010-03-071-1/+1
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5756 ce84e21b-d406-0410-9b95-82705330c041
* Ohai: Handle case where client returns nothingSol Jerome2010-03-061-0/+3
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5752 ce84e21b-d406-0410-9b95-82705330c041
* Ohai: Add support for pre-2.6 versions of pythonSol Jerome2010-03-041-2/+19
| | | | | | | | | The Ohai plugin now works with servers using python 2.4-2.5 alongside the python-simplejson python module. Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5748 ce84e21b-d406-0410-9b95-82705330c041
* Reports/settings.py: Fix outdated link to time zone choicesSol Jerome2010-03-011-1/+1
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5743 ce84e21b-d406-0410-9b95-82705330c041
* Packages: fix minor thinko in error path [bugfix]Narayan Desai2010-02-151-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5726 ce84e21b-d406-0410-9b95-82705330c041
* Packages: get rid of spurious whitespace in choice pkg namesNarayan Desai2010-02-141-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5725 ce84e21b-d406-0410-9b95-82705330c041
* Packages: fix dep issue on apt sources [bugfix]Narayan Desai2010-02-141-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5724 ce84e21b-d406-0410-9b95-82705330c041
* Packages: add pre-depends requirements for apt package sources (Resolves ↵Narayan Desai2010-02-141-1/+1
| | | | | | Ticket #832) [bugfix] git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5723 ce84e21b-d406-0410-9b95-82705330c041
* Packages: [bugfix]Narayan Desai2010-02-141-37/+24
| | | | | | | - fix cache file name creation - process dependencies for packages that have the same name as a multi-choice dependency (Resolves Ticket #847) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5722 ce84e21b-d406-0410-9b95-82705330c041
* Properties: Remove experimental tagSol Jerome2010-02-101-1/+0
| | | | | | | | | The Properties plugin has been working flawlessly for me for some time now. I would say it's pretty solid. Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5718 ce84e21b-d406-0410-9b95-82705330c041
* Snapshots: Use custom bcfg2.conf when specified (Fix for #839)Sol Jerome2010-02-084-8/+11
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5716 ce84e21b-d406-0410-9b95-82705330c041
* Git: pylint code cleanupsSol Jerome2010-02-071-2/+7
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5715 ce84e21b-d406-0410-9b95-82705330c041
* POSIXCompat: Clean up FIXMESol Jerome2010-02-071-10/+9
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5714 ce84e21b-d406-0410-9b95-82705330c041
* Fix traceback in bcfg2-admin init by using os.makedirs()Sol Jerome2010-02-053-13/+3
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5713 ce84e21b-d406-0410-9b95-82705330c041
* Fix call to os.rename()Sol Jerome2010-01-241-3/+2
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5702 ce84e21b-d406-0410-9b95-82705330c041
* Metadata: Write out proper file when clients.xml is a symlinkSol Jerome2010-01-231-1/+7
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5701 ce84e21b-d406-0410-9b95-82705330c041
* Packages: process apt-source choices correctly with multi-package version ↵Narayan Desai2010-01-201-4/+4
| | | | | | requirements (Reported by gregcoit) [bugfix] git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5687 ce84e21b-d406-0410-9b95-82705330c041
* Packages: handle architecture changes in Yum configs [bugfix]Narayan Desai2010-01-151-0/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5684 ce84e21b-d406-0410-9b95-82705330c041
* Metadata: build session cache properly for uuid clients [bugfix]Narayan Desai2010-01-121-2/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5671 ce84e21b-d406-0410-9b95-82705330c041
* Plugin.py: Fix docstring for GroupSpoolSol Jerome2010-01-081-1/+1
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5667 ce84e21b-d406-0410-9b95-82705330c041
* Metadata: use normalized hostnames for comparison (reported by gregcoit) ↵Narayan Desai2010-01-081-1/+1
| | | | | | [bugfix] git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5662 ce84e21b-d406-0410-9b95-82705330c041
* Code cleanupsSol Jerome2009-12-301-1/+1
| | | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5648 ce84e21b-d406-0410-9b95-82705330c041
* Metadata: handle errors more robustly, and perform clients.xml wranging in ↵Narayan Desai2009-12-231-8/+24
| | | | | | new file git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5632 ce84e21b-d406-0410-9b95-82705330c041
* Core: Uniformly handle Metadata resolution errorsNarayan Desai2009-12-231-0/+4
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5631 ce84e21b-d406-0410-9b95-82705330c041
* Info: Fix regex for paranoid options in info files [bugfix]Sol Jerome2009-12-211-1/+1
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5629 ce84e21b-d406-0410-9b95-82705330c041
* Reports: Fix html validation errors for #798 (Patch from Thorsten Lockert)Sol Jerome2009-12-1912-57/+68
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5625 ce84e21b-d406-0410-9b95-82705330c041
* Init: Increase RSA key size to 2048 for use past 2010Sol Jerome2009-12-181-1/+1
| | | | | | | | See http://www.rsa.com/blog/blog_entry.aspx?id=1192 for more information. Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5623 ce84e21b-d406-0410-9b95-82705330c041
* Snapshots: Revert changes from [5582] so that old client compatibility is ↵Sol Jerome2009-12-101-4/+15
| | | | | | | | | | | | maintained Older clients (used via POSIXCompat) still have old-style posix entries. This commits allows for old or new client statistics to be uploaded to the snapshots database. Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5619 ce84e21b-d406-0410-9b95-82705330c041
* Metadata: fix use of session cache for cert-recognized clientsNarayan Desai2009-12-091-3/+4
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5615 ce84e21b-d406-0410-9b95-82705330c041
* Git: Migrate git plugin to DulwichSol Jerome2009-12-021-12/+5
| | | | | | | | | | Using Dulwich gives us a native python implementation of the git file formats and protocols. This gives us more flexibility when we want to extend the plugin to perform other tasks (e.g. automated commits). Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5608 ce84e21b-d406-0410-9b95-82705330c041
* Fix accidental revert in [5604]Sol Jerome2009-12-021-1/+1
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5606 ce84e21b-d406-0410-9b95-82705330c041
* Revert "Metadata: cache session information for all clients that aren't ↵Sol Jerome2009-12-021-3/+2
| | | | | | | | | | | address resolved" This reverts commit [5592]. This broke Metadata resolution by causing tracebacks which resulted in communication failure. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5605 ce84e21b-d406-0410-9b95-82705330c041
* Revert "Metadata: fix address validation issue with hard-wired addresses"Sol Jerome2009-12-021-1/+1
| | | | | | | | | This reverts commit [5592]. This broke Metadata resolution by causing tracebacks which resulted in communication failure. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5604 ce84e21b-d406-0410-9b95-82705330c041
* Metadata: cache session information for all clients that aren't address resolvedNarayan Desai2009-11-231-2/+3
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5592 ce84e21b-d406-0410-9b95-82705330c041
* xcmd: remove redundant constructor definitionNarayan Desai2009-11-211-3/+0
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5590 ce84e21b-d406-0410-9b95-82705330c041
* Xcmd: improve error handling for authentication failures [bugfix]Narayan Desai2009-11-211-0/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5589 ce84e21b-d406-0410-9b95-82705330c041
* Metadata: fix address validation issue with hard-wired addressesNarayan Desai2009-11-211-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5588 ce84e21b-d406-0410-9b95-82705330c041
* Packages; use new debugging infrastructureNarayan Desai2009-11-211-3/+3
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5587 ce84e21b-d406-0410-9b95-82705330c041
* Metadata: implement full debugging for client metadata authenticationNarayan Desai2009-11-211-21/+29
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5586 ce84e21b-d406-0410-9b95-82705330c041
* Plugin: add a per-plugin runtime debugging infrastructureNarayan Desai2009-11-201-1/+9
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5585 ce84e21b-d406-0410-9b95-82705330c041
* POSIX: Remove support for old-style posix entriesSol Jerome2009-11-196-52/+54
| | | | | | | | | | | This commit forces the user to specify <Path> entries on the server side while still maintaining compatibility with old clients via the POSIXCompat plugin. Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5582 ce84e21b-d406-0410-9b95-82705330c041
* Plugin.py: Fix Cfg conflicts (Reported by Thorsten Lockert on irc)Sol Jerome2009-11-191-1/+1
| | | | | | | | | Since a Path can now be a file/directory/other type, we need to make sure that we only bind files for Cfg entries. Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5581 ce84e21b-d406-0410-9b95-82705330c041
* Reports: Fix traceback in Summary/System views (ticket #793 Reported by ↵Sol Jerome2009-11-121-3/+5
| | | | | | | | | | | | Thorsten Lockert) This commit actually fixes two issues: * Check for unicode strings * We were trying to modify an immutable tuple Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5577 ce84e21b-d406-0410-9b95-82705330c041
* Packages: create urls that work with old urllib2 (Resolves ticket #796) [bugfix]Narayan Desai2009-11-111-1/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5572 ce84e21b-d406-0410-9b95-82705330c041
* Reports: Fix incorrect error message (reported by Thorsten Lockert) [bugfix]Sol Jerome2009-11-101-1/+4
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5567 ce84e21b-d406-0410-9b95-82705330c041