Jarrod Johnson
3caafa063b
Change to plugin subdirectories to better organize plugins
2013-11-02 17:45:55 -04:00
Jarrod Johnson
ec58c47bff
Restore console functionality
2013-11-02 13:40:53 -04:00
Jarrod Johnson
3a3dbf9f41
Progress toward more strictly defined objects
...
messages and consoles get classes to guide developers toward consistency.
2013-11-02 13:06:48 -04:00
Jarrod Johnson
3d1e398977
Convert wsgi function to be generator
...
Since wsgi function returns iterable, it turns out to be easy to do it this way.
For now, hardcode json dumps, two things:
1: call out to module supporting HTML and JSON interpretation
2: in both cases, a header and footer must sandwich the responses in http
In socketapi, responses will come back without a container, but http
does not afford us such luxury. Create a containing json structure.
On first iteration, do not prepend with ,. prepend with , all other times.
2013-10-13 20:51:30 -04:00
Jarrod Johnson
17603a59fd
Revert the strategy to manually track sessions for pyghmi
...
Since pyghmi now handles this automatically and in fact removes
the facility used to manually track this and it is much more
robust than this strategy.
2013-10-13 19:59:30 -04:00
Jarrod Johnson
8a35f9a9e0
Actually make ipmi work for console and get_power
...
Note that currently, console must go first, then command. Otherwise
panic ensues.
2013-10-12 18:03:51 -04:00
Jarrod Johnson
5e80407bc5
Refactor plugin code to better assure all things happen in one greenthread
...
Additionally, begin work to make ipmi.py start doing non-console things
2013-10-12 15:13:34 -04:00
Jarrod Johnson
8fa9c10784
Make ipmi plugin resiliant to traffic bursts to avoid a hang
2013-10-10 14:06:02 -04:00
Jarrod Johnson
eafdef413c
Fix problem where wait for next data would only work every other time
...
Also fix busy wait behavior
2013-09-15 11:06:34 -04:00
Jarrod Johnson
9ecc1aae44
Move all ipmi activity into it's dedicated eventlet greenthread.
...
There is still a problem where only every other output comes over the httpapi
but in general, it behaves much much better.
2013-09-14 21:32:52 -04:00
Jarrod Johnson
1cbc16b22e
Actually implement enough to get some console traffic going.
...
This implements a protocol that should be compatible with shellinabox's
javascript client code.
2013-09-12 17:14:09 -04:00
Jarrod Johnson
39cd741845
Correct various issues and IPMI console session actually go through now
2013-09-12 15:52:34 -04:00
Jarrod Johnson
996e19752b
Remove kwargs to provide forward compatibility, it doesn't seem to be workable in python
2013-09-09 15:42:00 -04:00
Jarrod Johnson
91c0f01b61
Correct typo in ipmi plugin causing parse error
2013-09-09 15:30:24 -04:00
Jarrod Johnson
b185d50f87
Add ipmi plugin to repository
2013-09-09 13:29:36 -04:00