Jarrod Johnson
d2d7f04f49
Further simplify ipmi plugin
...
With the threading complications removed from worry,
continue making the ipmi plugin more straightforward
to read, maintain, and evolve.
2014-02-06 11:08:55 -05:00
Jarrod Johnson
80d4518a49
Remove more vestiges of the thread support
...
Also, remove a required function from console interface. Now a plugin
is only responsible for their thread behavior and never responsible
for the consoleserver mechanism requirement for helping user session
do polling IO. This is additionally great because it means the
coordination is contained to each session object and many client connections
are not causing multiple calls to iterate the wait loop.
2014-02-06 09:27:38 -05:00
Jarrod Johnson
fd27835424
Remove thread aspect of ipmi.py
...
This is a work in progress, trying to make ipmi.py theoretically look better.
2014-02-05 09:20:39 -05:00
Jarrod Johnson
131e64ef0e
Fix cval assignment exception
...
For SOL sessions, the queue could be touched without anything in ipmiq.
Have cval be set to something benign in those cases to avoid a trace in
debug.
2014-02-01 19:43:28 -05:00
Jarrod Johnson
9749c173ac
Have command errors raised in the context of the calling code
...
Errors were not being raised in a manner to actually affect the request
threads. Address it by having the exceptions raise in the correct context.
2014-02-01 19:41:15 -05:00
Jarrod Johnson
170e7934ca
Restructure ipmi plugin logon errors
...
Make it so that logon errors are raised in the context
of the request(s) that actually care.
2014-02-01 19:28:31 -05:00
Jarrod Johnson
50891f235e
Implement session loss recovery
...
When a console object reports disconnect, have mechanism to get back in.
2014-02-01 18:49:36 -05:00
Jarrod Johnson
dae131d40f
Fix race condition on console connect
...
When data was coming in during logon, it was possible for
the handler to be called before rcpts member was initialized.
Correct by initializing rcpts prior to taking any other action.
2014-02-01 09:39:57 -05:00
Jarrod Johnson
086c18c641
Have ipmi plugin print out traceback data when exceptions would be encountered
...
For now, see the errors even as they are tolerated. This allows problems to be fixed
as best as possible. Ultimately, this will be logged.
2014-01-30 09:47:06 -05:00
Jarrod Johnson
b944677f85
Fix ipmi events if pyghmi spins in an eventloop
...
If circumstances inside pyghmi cause it to be looping in
an event loop, confluent was getting work done, but
the code to wake up the eventlet greenthreads wouldn't get tickled.
Address this by also waking up waiters in the function that is
invited to the pyghmi event loop party.
2014-01-29 22:08:48 -05:00
Jarrod Johnson
55ef78fc64
Correct issues in trying to keep ipmi worker alive
2014-01-29 12:52:57 -05:00
Jarrod Johnson
1b6c258934
Last change made exit fail badly, correct that
2014-01-28 17:48:59 -05:00
Jarrod Johnson
7709a52eda
Better isolate faults in the ipmi plugin
...
Previously, one ipmi failure would tank all consoles and commands.
Now, at least console failures are isolated.
Next stop is to isolate command failures, then fix up session recovery.
2014-01-28 17:41:01 -05:00
Jarrod Johnson
343600c2aa
Rework the 'update' button for clearer use alongside other buttons
2013-11-22 18:27:15 -05:00
Jarrod Johnson
7752bbbc27
Enumerate nodegroups
2013-11-13 15:12:57 -05:00
Jarrod Johnson
5e406d6fa1
Have attribute set return some data
...
Handle html form arrays with blanks, removing blank values
(more complex usage requires JSON)
2013-11-13 14:52:32 -05:00
Jarrod Johnson
ecc7c21fc4
Support list style attributes (notably groups) in the api explorer
2013-11-13 10:36:43 -05:00
Jarrod Johnson
6947f98d62
Rework some messages details, make boot device work
2013-11-07 16:33:48 -05:00
Jarrod Johnson
215acdf4a7
Have rest explorer actually mostly work as expected
2013-11-07 14:39:34 -05:00
Jarrod Johnson
659f85eaa0
Add support for showing all as well as current attributes
2013-11-03 10:36:03 -05:00
Jarrod Johnson
58482c6090
Implement ability to change settings for an existing node
2013-11-03 10:21:54 -05:00
Jarrod Johnson
ada6302c2d
Provide common entry point for input processing
2013-11-03 09:52:43 -05:00
Jarrod Johnson
51c80cdd74
Include some feedback in rest explorer on input data
2013-11-03 09:05:50 -05:00
Jarrod Johnson
3fa61dc8f9
Wire up input to plugins for create/read
2013-11-02 19:45:10 -04:00
Jarrod Johnson
04d2cd4ba3
Add attribute retrieval facility
2013-11-02 18:24:04 -04:00
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