2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 17:43:14 +00:00
Commit Graph

138 Commits

Author SHA1 Message Date
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
285b1df3a5 Fix problem where plugins could be called twice for same data
If a plugin has a default and is also explicitly defined,
the pluginapi would call the code twice.  Correct this by avoiding
calling the default if specific info not specified already
2014-01-29 17:44:41 -05:00
Jarrod Johnson
55ef78fc64 Correct issues in trying to keep ipmi worker alive 2014-01-29 12:52:57 -05:00
Jarrod Johnson
0e84935876 Report on bad session ids
If an authorized user tries to use a session id that isn't recognized
(for example, a laptop coming out of suspend), cleanly return error
rather than traceback.
2014-01-29 09:12:06 -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
c537a124cf Rework get_next_output
Use try/except to catch nonetype case.  For whatever reason, databuffer
could still be None, this should take care of that.
2014-01-28 17:11:55 -05:00
Jarrod Johnson
892b6b53dd Merge branch 'master' of /gsa/pokgsa/projects/x/xcat/git/confluent
Conflicts:
	confluent/httpapi.py
2014-01-28 12:41:29 -05:00
Jarrod Johnson
9608e782d0 Merge branch 'master' of /gsa/pokgsa/projects/x/xcat/git/confluent
Conflicts:
	confluent/config/attributes.py
	confluent/httpapi.py
	confluent/pluginapi.py
2014-01-28 11:23:36 -05:00
Jarrod Johnson
fe63b1421e Trim as-yet unused attributes.
Have RESTful access to creating nodes work
2014-01-28 11:18:00 -05:00
Jarrod Johnson
b35144e282 Clean up assemble html to be less odd looking 2013-11-26 09:13:22 -05:00
Jarrod Johnson
d8efb18034 Comment out as-yet unused attributes, bring them in as they become relevant 2013-11-25 13:14:41 -05:00
Jarrod Johnson
51f6a6995b Wire up delete buttons to actually work 2013-11-22 19:36:32 -05:00
Jarrod Johnson
7151797402 Have REST explorer provide delete controls where such a function would be supported 2013-11-22 19:19:28 -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
163f96177a Fix problem where root collection crashed after previous change 2013-11-22 17:58:38 -05:00
Jarrod Johnson
8913254191 Suppress 'put' for collections in api explorer 2013-11-22 17:57:02 -05:00
Jarrod Johnson
67642b7e19 Rework http json in the following ways:
-defer to document completion (all at once) for more straightforward code
-data only gets into arrays when there is a multitude
-at least for now, 'pretty print' the dumps in http interface
2013-11-22 17:15:46 -05:00
Jarrod Johnson
74da3d64e8 Change the html explorer to defer status code until end to allow for error code 500
to work
2013-11-19 10:22:36 -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
57fe5cfcce Switch 'groups' to list from set. Ordering matters from an inheritance perspective. 2013-11-11 13:00:51 -05:00
Jarrod Johnson
47ab508a01 Cleanup disused code and exploratory output 2013-11-11 09:15:17 -05:00
Jarrod Johnson
e7f2557c18 Add nodegroup inheritence handling 2013-11-10 11:03:23 -05:00
Jarrod Johnson
a95476563f Another note on where to do some inheritence things 2013-11-09 12:02:26 -05:00
Jarrod Johnson
90f7de25b2 Document places to flesh out for inheritence 2013-11-09 11:58:16 -05:00
Jarrod Johnson
24996d3159 -Document design thoughts on clustered mode 2013-11-09 11:36:30 -05:00
Jarrod Johnson
6947f98d62 Rework some messages details, make boot device work 2013-11-07 16:33:48 -05:00
Jarrod Johnson
6fbdbcde82 Fix http relations for .. in the case of root collection, which has no containing collection 2013-11-07 14:49:16 -05:00
Jarrod Johnson
215acdf4a7 Have rest explorer actually mostly work as expected 2013-11-07 14:39:34 -05:00
Jarrod Johnson
836ea16603 Add links for self and collection as appropriate 2013-11-04 10:20:51 -05:00
Jarrod Johnson
73fba431ae Fix json output mistakes.
I may wish to change http api to a single json dumps.  At that point the
socket api would be the only consumer of the piecewise json messages.
Merging the json data is a non-trivial problem and httpapi is doing too much
hand assembly of the data.

http api would lose any hope of one request, staggered response behavior as a result,
but http is a terrible protocol for that anyway and there is always the socket api
2013-11-04 09:53:16 -05:00
Jarrod Johnson
559b00b8e8 Add relation information to json output 2013-11-03 17:07:17 -05:00
Jarrod Johnson
09bd9b3131 Better not found warnings 2013-11-03 14:57:58 -05:00
Jarrod Johnson
78bc2e8338 Start rendering parts of the links required for api exploring 2013-11-03 13:16:28 -05:00
Jarrod Johnson
4ee6f2bdb3 Have rest explorer provide for the ability of enumerated values be a dropdown selection 2013-11-03 12:30:22 -05:00
Jarrod Johnson
c60add3474 Clarify explorer text, have secret values present managed in password inputs 2013-11-03 10:39:37 -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
4ba42558b1 Add the attributes interface to messages for input checking 2013-11-03 10:12:50 -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
ef3c8cd0c8 Add some header to the rest explorer interface 2013-11-03 08:50:03 -05:00
Jarrod Johnson
37f0c64c65 Factor out json and html renderings into distinct functions 2013-11-03 08:44:28 -05:00
Jarrod Johnson
6588a15174 Back off on the table attempt in the rest explorer interface 2013-11-03 08:18:44 -05:00
Jarrod Johnson
17a75d96ab Make use of the rest explorer html modifications 2013-11-03 01:11:19 -04:00