summaryrefslogtreecommitdiffstats
path: root/func/overlord/client.py
Commit message (Collapse)AuthorAgeFilesLines
* Just some permissions clean up on source files, mostlyAdrian Likins2009-01-191-0/+0
| | | | removing 'x' bits on source code and makefiles
* For some reason, Client is getting init'ed with async=NoneAdrian Likins2008-11-111-3/+6
| | | | | | | which is wrong. So workaround that. The real problem seems to be somewhere in base_command, but this will prevent it from defaulting to async for now.
* Fix a bug with "func-transmit --yaml" send bools as strings and causingAdrian Likins2008-10-311-1/+14
| | | | | | | | | | | | | weird things to happen to async. Add a "smart_bool" method to client.py that will take the string and/or bool it gets and make a bool of it. test_func_transmit.py: add option to specify async/nfork params for the non async test calls for testing add a couple test cases that call methods with "async=True, nforks=1" to make sure they do the right thing
* better fix for ticket #53 (trailing slashes break cert matching)Adrian Likins2008-09-021-1/+1
|
* remove any unneeded /'s from the cert path to fix ticket #53Adrian Likins2008-09-011-1/+4
| | | | "Trailing slash in certmaster.conf confuses glob function"
* Make exception more verbose.Krzysztof A. Adamski2008-08-161-1/+1
|
* Pass reference to the parrent class to modules loaded by load_methods().Krzysztof A. Adamski2008-08-071-2/+2
|
* Adding overlord modules support.Krzysztof A. Adamski2008-08-071-1/+11
|
* some changes into Minions class to work properly with Group classmakkalot2008-08-011-5/+11
| | | | (cherry picked from commit e24c78c1b6915dc30acefb9d68c83635cb3812ba)
* merge from new_layout to mastermakkalot2008-07-281-1/+12
|\
| * adding the open_ids part to the overlord classmakkalot2008-07-171-1/+12
| |
* | Merge branch 'master' of ssh://alikins@git.fedoraproject.org/git/hosted/funcAdrian Likins2008-07-241-10/+76
|\ \
| * \ Merge kadamski@git.fedorahosted.org:/git/funcKrzysztof A. Adamski2008-07-241-1/+1
| |\ \
| * | | Raise exception when no minions match server_spec.Krzysztof A. Adamski2008-07-241-0/+2
| | | |
| * | | Merge branch 'ssalevan-delegation'Krzysztof A. Adamski2008-07-241-10/+74
| |\ \ \
| | * | | Adding delegation capabilities for asynchronous calls, fixing ↵Steve Salevan2008-07-231-9/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | jobthing/forkbomb to exit with an exit command that won't cause a SystemExit exception to be fired during delegated async calls, adding list_minions() function to Overlord object that works with delegation
| | * | | Adding delegation call grouping to reduce the amount of necessary delegated ↵Steve Salevan2008-07-161-5/+13
| | | |/ | | |/| | | | | | | | | calls to perform an action
* | | | change this call to hostname to emulate the way the old func.minion.utilsAdrian Likins2008-07-241-1/+1
| |_|/ |/| | | | | | | | | | | | | | did it. Probably need to figure out if this is needed or not later.
* | | aiee. missed some uses of "func.config". Fix those to use certmaster.configAdrian Likins2008-07-241-1/+1
|/ / | | | | | | | | | | | | also missed a use of SSLCommon. darn grep, must be broken. Yeah, thats it, grep screw up. Nope, not me. Not me at all.
* / gut most of func/utils.pyAdrian Likins2008-07-241-1/+1
|/ | | | update code to use existing code from certmaster/utils.py
* Removing stray print messageMichael DeHaan2008-07-111-25/+4
|
* Merge branch 'ssalevan_delegation'Michael DeHaan2008-07-111-13/+90
|\ | | | | | | | | | | | | | | Conflicts: func.spec func/minion/modules/certmastermod.py setup.py
| * Adding in some code to make CLI access available for delegationSteve Salevan2008-07-101-5/+7
| |
| * Removing superfluous print statementsSteve Salevan2008-07-091-2/+0
| |
| * Committing fixes to delegation/overlord client codeSteve Salevan2008-07-091-1/+6
| |
| * Adding potentially-working delegation code to overlord clientSteve Salevan2008-07-091-16/+53
| |
| * Adding in tree manipulation tools and minion-side delegation module.Steve Salevan2008-07-081-4/+27
| |
| * Adding in arguments for calling func with delegationSteve Salevan2008-07-011-1/+13
| |
* | Print userfriendly error messages instead of tracebacks in case of ↵Krzysztof A. Adamski2008-07-081-1/+2
| | | | | | | | permissions errors.
* | Using config.cert_extension instead of hardcoded cert file extension '.cert'TANABE Ken-ichi2008-06-281-2/+2
|/
* Remove unneeded print statement.Krzysztof A. Adamski2008-05-311-1/+1
|
* Changing func/func/overlord/client.py:Client() to Overlord(). Client() stillAdrian Likins2008-03-281-6/+16
| | | | | | | works but will dive a deprecation warning. First pass at this refactor. I think just about everything has been updated, but some questions remain. Like if client.py needs a name change.
* use certmaster.commonconfig.CMConfig here instead of the one that used to be ↵Adrian Likins2008-02-251-1/+1
| | | | in func
* fix up some paths.Adrian Likins2008-02-251-5/+7
| | | | | Note: these paths probably shouldn't be as hardcoded as they are now...
* Fixing func "*" ping functionality, which had an earlier reference to ↵Michael DeHaan2008-02-211-0/+7
| | | | expand_servers that is no longer supported. To do this, I've exposed an additional method in the client.minions() API. Also some more work done on func "check" command to diagnose setup problems.
* Refactor the minion/server list and group stuff. Still not ideal, butAdrian Likins2008-02-121-52/+61
| | | | | | | a touch more OO. Also update unittests/etc. Did some s/servers/minions/ renaming while I was at it as well. Need to go back and finish that up.
* move some methods into the Groups class.Adrian Likins2008-02-121-18/+18
|
* fix that methodSeth Vidal2008-02-051-6/+7
|
* new Func_Client_Exception and allow the the caller to specify the ↵Seth Vidal2008-02-051-8/+35
| | | | | | cert/key/ca to use for connecting
* typo found when a unittest hit that sectionAdrian Likins2008-02-041-1/+1
|
* Merge branch 'master' of ssh://git.fedoraproject.org/git/hosted/funcMichael DeHaan2008-01-291-11/+21
|\
| * clean up expand servers a little bitAdrian Likins2008-01-291-11/+21
| |
* | All exceptions, async or otherwise, now come back as easily detectable ↵Michael DeHaan2008-01-291-6/+4
|/ | | | | | | signatures. Use utils.is_error(result) to determine if something is an error or isn't. Example scripts as well as func-inventory have been updated. See async_test.py for examples.
* Fixup to client noglobs invocation.Michael DeHaan2008-01-241-3/+2
|
* Merge branch 'master' of ssh://git.fedoraproject.org/git/hosted/funcAdrian Likins2008-01-231-3/+12
|\ | | | | | | | | | | Conflicts: func/overlord/client.py
| * Double-barrel asynchronous calls. Async can now occur on both sides ↵Michael DeHaan2008-01-231-1/+10
| | | | | | | | | | | | | | | | simultaneously and still appears as if there is only one "global" job id to the API caller, the minion job id's are managed in the background, complete with partial result response as things come in which should be very nice for ajaxy implication. job_status API does still need to be modified to list active jobs as well as to store the job name.
| * Moving the async and multiprocess stuff to top level so we can use themMichael DeHaan2008-01-231-2/+2
| | | | | | | | on the minion for minion side async funness.
* | first pass at allowing "groups" to be specified.Adrian Likins2008-01-231-2/+24
|/ | | | | Currently a ini style file in /etc/func/groups and they can be specified on the commandline as "@group"
* Merge branch 'master' of ssh://git.fedoraproject.org/git/hosted/funcMichael DeHaan2008-01-171-2/+0
|\
| * oops, need that import afterallAdrian Likins2008-01-161-0/+1
| |