summaryrefslogtreecommitdiffstats
path: root/src/sbin/bcfg2
Commit message (Collapse)AuthorAgeFilesLines
* bcfg2: Catch tracebacks (Tickets #1016 and #1017)Sol Jerome2011-06-211-0/+8
| | | | | | | This also moves the exception handling added in #1012 to the bcfg2 code for consistency (as per Holger Weiß's suggestion). Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* added -t option to set client timeoutChris St. Pierre2011-06-011-4/+6
|
* Revert "bcfg2: Write cached config using encoding from Options.py"Holger Weiß2011-05-191-1/+1
| | | | | | | | | | | This reverts commit 5d69ff7e966c4ffa911c78d11a6879b48e90aef8. As the "rawconfig" variable now holds a UTF-8 encoded string, it would have to be decoded before re-encoding it using a different encoding. However, the cached configuration shouldn't be written using a non-UTF-8 encoding anyway, as "bcfg2 -f <configuration>" currently doesn't accept any other encodings. (If this is to be changed, the XML encoding declaration of the configuration would have to be adjusted accordingly.)
* bcfg2: Convert specification from Unicode to UTF-8Holger Weiß2011-05-111-1/+1
| | | | | | | | | The client receives the configuration specification as a Unicode string and then hands it over to the XML() function, which expects a UTF-8 encoded string. Therefore, the configuration specification is now converted to UTF-8. Resolves ticket #1009.
* bcfg2: Fix typosSol Jerome2011-04-291-2/+2
| | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com> (cherry picked from commit beb08649193f2c799017024bb738dc31b3420cb2)
* src/sbin: Add full PY3K compatibilitySol Jerome2011-04-271-7/+15
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Fix the bcfg2 client -r optionJonathan Billings2011-04-251-1/+6
| | | | | | | The man page for 'bcfg2' says to use -r 'all', 'Service' or 'Package', but the code only responded to -r 'all', 'service' or 'package'. Update the client to allow 'all', 'service', 'Service', 'package' and 'Package'.
* Bcfg2: handle server strings that don't start with https:// (Resolves Ticket ↵Narayan Desai2011-01-121-0/+2
| | | | #975)
* bcfg2 client: implement bundle-quick modeNarayan Desai2010-12-081-2/+15
|
* 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
* 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
* 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
* 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
* Updated files to match PEP 257 Fabian Affolter2010-06-211-4/+4
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5952 ce84e21b-d406-0410-9b95-82705330c041
* Updated files to match PEP 257Fabian Affolter2010-06-071-5/+5
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5895 ce84e21b-d406-0410-9b95-82705330c041
* Options.py: Add configurable lockfile option (Resolves Ticket #850)Sol Jerome2010-02-201-3/+3
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5734 ce84e21b-d406-0410-9b95-82705330c041
* Code cleanupsSol Jerome2009-12-301-5/+5
| | | | | | | 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
* bcfg2: Write cached config using encoding from Options.pySol Jerome2009-08-031-1/+1
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5399 ce84e21b-d406-0410-9b95-82705330c041
* bcfg2: handle errors in lockfile unlockingNarayan Desai2009-07-231-2/+5
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5377 ce84e21b-d406-0410-9b95-82705330c041
* Implement -z (for Independent entries only, a la -b) (Resolves Ticket #616)Narayan Desai2009-06-141-0/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5281 ce84e21b-d406-0410-9b95-82705330c041
* SSL: Implememt client-side server cN verificationNarayan Desai2009-05-191-2/+3
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5244 ce84e21b-d406-0410-9b95-82705330c041
* Cleaned up agent mode options and added cmd line options for SSL reworkSol Jerome2009-05-121-20/+11
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5222 ce84e21b-d406-0410-9b95-82705330c041
* remove dependence on old daemonize codeNarayan Desai2009-05-071-15/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5212 ce84e21b-d406-0410-9b95-82705330c041
* SSL: build appropriate client optionsNarayan Desai2009-05-061-1/+6
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5196 ce84e21b-d406-0410-9b95-82705330c041
* bcfg2 client: remove agent supportNarayan Desai2009-05-061-98/+0
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5186 ce84e21b-d406-0410-9b95-82705330c041
* Implement basic proxy based on 2.6 sslNarayan Desai2009-05-061-48/+4
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5182 ce84e21b-d406-0410-9b95-82705330c041
* Fix some simple python 2to3 changesSol Jerome2009-04-231-9/+9
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5170 ce84e21b-d406-0410-9b95-82705330c041
* Use safer alternatives to mktemp (Patch from adeason)Sol Jerome2009-01-291-1/+3
| | | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5049 ce84e21b-d406-0410-9b95-82705330c041
* Simplify service configuration; make all services use common restart frameworkNarayan Desai2009-01-231-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5040 ce84e21b-d406-0410-9b95-82705330c041
* fix the rest of lockfile bypassingNarayan Desai2008-10-101-2/+4
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4939 ce84e21b-d406-0410-9b95-82705330c041
* Improve error checking for lockfilesNarayan Desai2008-10-101-7/+9
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4938 ce84e21b-d406-0410-9b95-82705330c041
* Implement the balance of decision mode support (tested and working)Narayan Desai2008-10-081-0/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4933 ce84e21b-d406-0410-9b95-82705330c041
* Simplify GetDecisionLisk commandNarayan Desai2008-10-081-1/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4930 ce84e21b-d406-0410-9b95-82705330c041
* Implement client side of server-delegated decision supportNarayan Desai2008-09-241-0/+11
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4919 ce84e21b-d406-0410-9b95-82705330c041
* fixed minor issues involving -e and -b in bcfg2-reportsJames Yang2008-08-061-1/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4864 ce84e21b-d406-0410-9b95-82705330c041
* applied logging->logger patchJames Yang2008-08-051-2/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4852 ce84e21b-d406-0410-9b95-82705330c041
* Commit client locking patch (From stousignant) (Resolves Ticket #575)Narayan Desai2008-07-101-0/+19
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4770 ce84e21b-d406-0410-9b95-82705330c041
* Unicode support (from stousignant) (Resolves Ticket #549)Narayan Desai2008-06-301-2/+3
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4731 ce84e21b-d406-0410-9b95-82705330c041
* Fix and simplify fingerprint verification codeNarayan Desai2008-04-011-8/+6
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4468 ce84e21b-d406-0410-9b95-82705330c041
* Remove dead codeNarayan Desai2008-04-011-27/+0
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4466 ce84e21b-d406-0410-9b95-82705330c041
* multi-fingerprint support (mainly from Ben Ritcey)Narayan Desai2008-04-011-13/+84
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4464 ce84e21b-d406-0410-9b95-82705330c041
* fingerprint fix from ritceyNarayan Desai2008-03-271-1/+7
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4457 ce84e21b-d406-0410-9b95-82705330c041
* Frame updates (and start of unit-testing)Narayan Desai2008-01-181-1/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4266 ce84e21b-d406-0410-9b95-82705330c041
* Simplify proxy code. We don't need a multi-component infrastructure or local ↵Narayan Desai2008-01-091-1/+1
| | | | | | instantiation for bcfg2 git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4229 ce84e21b-d406-0410-9b95-82705330c041
* Replace bcfg2 proxy code with simplified code from CobaltNarayan Desai2008-01-091-8/+6
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4226 ce84e21b-d406-0410-9b95-82705330c041
* ensure bcfg2 isnt passed arguments (only options)Narayan Desai2008-01-081-1/+4
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4197 ce84e21b-d406-0410-9b95-82705330c041
* Fix client optargsNarayan Desai2007-12-311-2/+4
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4149 ce84e21b-d406-0410-9b95-82705330c041
* Fix option parser usageNarayan Desai2007-12-311-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4148 ce84e21b-d406-0410-9b95-82705330c041
* Clean up pylint warningsNarayan Desai2007-12-311-75/+73
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4147 ce84e21b-d406-0410-9b95-82705330c041
* fixup bcfg2 client to use new option parserNarayan Desai2007-12-311-60/+26
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4146 ce84e21b-d406-0410-9b95-82705330c041