summaryrefslogtreecommitdiffstats
path: root/func/overlord/client.py
Commit message (Collapse)AuthorAgeFilesLines
* mostly merges of stuff I thought I had already committed and pushedAdrian Likins2008-02-291-6/+8
| | | | various s/func/certmaster changes
* 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
| |
| * pychecker/pyflakesAdrian Likins2008-01-161-3/+0
| | | | | | | | remove unused imports
* | Fix docstring.Michael DeHaan2008-01-171-1/+1
|/
* Merge branch 'master' of ssh://git.fedoraproject.org/git/hosted/funcMichael DeHaan2008-01-131-9/+8
|\ | | | | | | | | | | Conflicts: func/overlord/client.py
| * Merge branch 'master' of ssh://git.fedorahosted.org/git/funcScott Henson2008-01-131-7/+3
| |\
| | * more deletions of shebangs.Steve 'Ashcrow' Milner2008-01-131-7/+3
| | |
| * | Give people the ability to get exceptions back from the other side of the clientScott Henson2008-01-131-1/+4
| |/
* / Add jobthing, which is our async job engine. It's still in progressMichael DeHaan2008-01-131-7/+16
|/ | | | | and very much a prototype that isn't expected to work yet, but you get the idea.
* Make func-inventory work again, although more needs to be done to tolerate ↵Michael DeHaan2007-12-171-1/+1
| | | | systems that can't be connected to.
* Fix the noglob handling, fixing things like func-inventory after the MultiplexerMichael DeHaan2007-12-111-4/+5
| | | | patches were applied.
* Integrating the multiplexer feature (forkbomb.py) with func's Client module. ↵Michael DeHaan2007-11-301-3/+12
| | | | This can be wired up to other modules as well, but I've only added it to "call" for now. To use it, pass in the option --forks=N, ex --forks=3 on the command line as an option to "call". The default is forks==1 which completely bypasses the fork code, just to ensure we don't break anything using the Func API that might not like it. (However I'm pretty sure it would be fine).
* Working on integrating the multiplexer code with funcMichael DeHaan2007-11-301-9/+23
|
* Slight changes to make it easier to establish seperate client handles to all ↵Michael DeHaan2007-10-251-3/+9
| | | | | | | | | | servers and walk them, rather than using the Client as a multiplexer object. In most cases things won't care, but since ping is an interactive command that is not intended to ever be parsed, this gives the impression that things are more speedy for that one command. Syntax is still "func '*' ping"
* Merge branch 'master' of ssh://git.fedoraproject.org/git/hosted/funcMichael DeHaan2007-10-231-1/+0
|\ | | | | | | | | | | Conflicts: func/overlord/client.py
| * remove unused func_command importAdrian Likins2007-10-231-1/+1
| | | | | | | | (was causing circular imports)
* | Initial go at the func inventory app (includes git integration). Docs TBA ↵Michael DeHaan2007-10-231-1/+1
|/ | | | shortly.
* Slight docs cleanup, make usage print the proper name of the app.Michael DeHaan2007-10-231-1/+0
|
* make func_command use the new handleArguments method fromAdrian Likins2007-10-091-33/+43
| | | | | | | | | | | | | | | | command.Command. Use this to fetch the hostnamegoo client.py: pull out expand_servers to module scope, and isServer(). This method basically tries to see if what we think is hostnamegoo is actually hostnamegoo. Kind of a guess atm. cmd_modules/call.py: change this so it doesn't do it's own parsing out of the hostname goo, instead using that from func_command (aka, the top level command parser) cmd_modules/show.py: just a cmd line module in early development
* er, merge?Adrian Likins2007-10-081-73/+4
| | | | wtf, I already committed and pushed these changes
* Moved code under the func namespace.Devan Goodwin2007-10-021-0/+295
Previously we had overlord, minion, modules, and func all at the root of the source tree. After install these would all be shuffled below func. Relocated them in the source tree to reflect this.