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

395 Commits

Author SHA1 Message Date
jjohnson2
8a92450abc Bump version to 1.0
Release candidate.  If no further issues reported in test, this will be 1.0
2014-11-21 15:35:53 -05:00
jjohnson2
394d51a49e Update term.js to current upstream 2014-11-20 15:44:01 -05:00
jjohnson2
c4fcbd960e Remove jquery dependency for console demo
jquery is needless burden for this sort of application
2014-11-20 15:42:22 -05:00
jjohnson2
f6b68d8efe Remove jquery requirement from consolewindow widget 2014-11-20 14:43:10 -05:00
Jarrod Johnon
059b448932 Cleanly handle stop/restart when not running
Previously some rather uncomfortable looking output would be emitted at someone trying to restart
confluent if not running.  Be nicer and recognize when service is not running and a stop attempt is made.
2014-11-18 17:02:54 -05:00
Jarrod Johnon
bf15f12a1c Manage the bootmode of nextdevice
Plugins may implement bootmode as appropriate.  Currently, the only
example usage is how IPMI can indicate BIOS style versus UEFI style
boot.

Additionally, limitations of the ChoiceMessage base object around
handling multi-parameter pieces of data are addressed.
2014-11-14 16:41:47 -05:00
Jarrod Johnon
7e2b6b6a85 More easily recognize application/json input in request data for POST
Browsers may include more data.  Tolerate by doing a substring search as is the case for form data.
2014-11-07 11:03:44 -05:00
Jarrod Johnon
6289e3ebfa Correct typo in httpapi
Consoles would not work due to a type of dictionary name, correct the mistake
2014-11-04 13:51:23 -05:00
Jarrod Johnon
af9a5c13c1 Modify to work better in a RHEL6/RHEL7 agnostic way 2014-11-04 13:34:26 -05:00
Jarrod Johnon
74a83a4502 Init script modifications for SLES 2014-11-04 12:49:31 -05:00
Jarrod Johnon
1e8aca1c26 Fix confetty exit on server stop/restart
When the behavior fix for exiting on error was put in, it caused it to fail
exiting when remote disconnects.  Address by showing that the console
is definitely not active as well as exit being required now.
2014-11-04 10:50:37 -05:00
jjohnson2
3f5903ee3d Apply rpm conflict fix to client 2014-11-04 10:41:22 -05:00
Jarrod Johnon
f2c7c8ace3 Increase version numbers for pre-RC testing 2014-11-04 10:13:09 -05:00
Jarrod Johnon
9dab77e93c Correct confetty displaying stale error information
After implementing timestamps, error data was erroneously persisted.  Address
by deleting the state once consumed in constructing the relevant status string.
2014-11-04 10:12:37 -05:00
jjohnson2
185e94703b Modify build to avoid conflicting files
Multiple rpms want to own '__init__.py' files.  Suppress it in some
places.
2014-11-04 09:16:01 -05:00
Jarrod Johnon
d7f26efa3b Fix HTTP access to console sessions
A mistake was made in the coding of the timestamp capability.  Correct the mistake to restore console function.
2014-10-29 13:13:51 -04:00
Jarrod Johnon
e0e6e36a82 Reference correct dictionary during confetty status update 2014-10-28 16:52:59 -04:00
Jarrod Johnon
87ed69265a Add missing time import
consoleserver.py failed to import time to support new
buffer age functionality
2014-10-28 16:49:25 -04:00
Jarrod Johnon
522280d6be Fix numerous issues with recent enhancements
The buffer age was not working as intended
The fix to exit on error exited overly eagerly
The log replay failed to report a third value if file did not exist.
2014-10-28 16:45:55 -04:00
Jarrod Johnon
f7fb9d6af2 Fixes around the confluent shutdown facility 2014-10-28 13:42:21 -04:00
Jarrod Johnon
9d7aa2c51f Prevent control thread from blocking exit
If a control socket was created, exit() would block due to the non-daemon thread.
 Mark the thread as daemon to allow for unclean shutdown.
2014-10-07 15:30:29 -04:00
Jarrod Johnson
b2102bae30 Add facility for confetty to interact with external controller
For certain scenarios (e.g. wcons), having a path to get in and communicate data from the outside.
For starters, have a 'GETWINID' directive for wcons to use to fetch the unambiguous window id
to use for xwininfo tricks.  TODO includes concepts from xtcd.pl that enabled things like warr
2014-10-07 14:51:58 -04:00
Jarrod Johnon
57d0997d62 Have init script use previously added confluent capability 2014-10-07 11:19:13 -04:00
Jarrod Johnon
5012c9e401 For skipauth clients, allow a 'shutdown' verb
To facilitate a clean coordinated shutdown, create a verb so that a termination can be done
and know when it is completed.  Only allow for the 'special' case of 'skipauth', where unix domain
socket connection is in hand and only root or the service owner can access.
2014-10-07 11:14:22 -04:00
Jarrod Johnon
a907da0532 Avoid trying to set title on incapable terminals
If running on a VC, for example, without benefit of tmux or anything, must suppress escape sequences.
2014-10-06 16:51:56 -04:00
Jarrod Johnon
cf6c32b055 Exit on console-only execution if an error is encountered
If console can not be established (e.g. the node doesn't exist), confetty would drop to interactive.
Address by exiting if the path falls that way.
2014-10-06 15:52:06 -04:00
Jarrod Johnon
4443d67da6 Implement timestamp reporting
Have confetty include the vintage of incoming data so that user may know how likely the
data is relevant to now.
2014-10-06 15:13:09 -04:00
Jarrod Johnon
afb6f4296c Bump 'VERSION' file.
As it heads into RC, will start using the tags and
overly simplifying things in the same way xCAT
revs versions even without changes for the sake
of consistency
2014-09-30 11:35:33 -04:00
Jarrod Johnon
d4b8294ec9 Correct syntax error
Somehow a stray colon from an attempt to try locking persisted.  Remove that colon.
2014-09-30 11:35:11 -04:00
Jarrod Johnon
37549481b6 Fix double connect on logging change
When logging was changed from none to full, it would always
start and immediately abort connecting to start again.
Change this by deciding which connection liveness strategy
to use based on how many settings changed.  If just logging
changes, then connect only if not connected or connecting.
If more changes, then skip that kinder strategy and go straight
to reconnecting.
2014-09-30 11:21:01 -04:00
Jarrod Johnon
8728007d1e Fix DB corruption potential
Make sure that the dbm object is closed before another thread might come along.  Out of an overabundance of caution,
also join() existing cfgwriter thread to make sure that only one thread touches it at a time.  In theory, it should only possibly
be after the db is closed, but take no chances.
2014-09-23 12:08:13 -04:00
Jarrod Johnon
89ca5b412b Fix race condition on configuration writeback
If the sync thread had moved beyond the point of checking _writepending, but had not quite managed to trigger
isAlive() to be false, the sync cfg to file would transition to never work.  Address this by adding one lock and one boolean.
Inside the lock, the two booleans are manipulated to atomically mark the end of thread sync activity linked with
check for pending data to write.
2014-09-19 08:57:17 -04:00
Jarrod Johnson
e9ac1617a8 Add a 'reopen' capability to client
If client wants to force a reconnection, they can send ctrl-e, c, o, just as in conserver.
2014-08-28 13:58:31 -04:00
Jarrod Johnson
cb631ee40f Fix issue with client state corruption on errored console start
Previously, the console start path would bail out without consuming the '_requestdone' message.
Correct this by reading until requestdone is seen as required by protocol.
2014-08-27 14:29:53 -04:00
Jarrod Johnson
276ba4abd7 Correct behavior of various paths when node does not exist 2014-08-26 14:03:15 -04:00
Jarrod Johnson
6fc75d8394 Implement dump of cfg to JSON
Restoring data is not yet implemented, after restore backend implemented than a
utility can be furnished.
2014-08-19 15:06:28 -04:00
Jarrod Johnson
a0ae523768 Fix timeout on persistent IPMI session
If there is a persistent IPMI session and the first to notice was a user request
it would fail with unexpected error.  Correct the situation to expect the error
and report more precisely as to the cause.
2014-07-29 09:49:52 -04:00
Jarrod Johnson
230397c2a3 Fix unexpected error on bad authentication
When bad credentials were caught by pyghmi, the ipmi plugin was not specifically
characterizing it.  Address this shortcoming.
2014-07-29 09:24:02 -04:00
Jarrod Johnson
9b7d1d6c5b Change from 'passphrase' to 'password'. 2014-07-27 19:23:32 -04:00
Jarrod Johnson
bc00d71d96 Modify web to work as an rpm package 2014-07-27 19:19:27 -04:00
Jarrod Johnson
291e90afcf Fix 500 instead of 401 on bad HTTP authentication
Code optimistically assumed that authentication would fill out data to
pass to authorization, which does not get filled out if authentication fails.
2014-07-25 15:40:26 -04:00
Jarrod Johnson
1fb8b33c06 Correct some incorrectly renamed entries 2014-07-25 14:45:02 -04:00
Jarrod Johnson
19451d69fb Fix some overlooked 'groups' lines in configmanager 2014-07-25 14:38:44 -04:00
Jarrod Johnson
c0c6332a97 Add VERSION to repository 2014-07-25 14:32:43 -04:00
Jarrod Johnson
360bcc395c Rename 'groups' to 'nodegroups'
As usergroups come to exist, make it obvious whether a group is user or node
bound. The attribute names stay the same (since the 'groups' of a 'node' is
clearly 'nodegroup')
2014-07-25 14:32:04 -04:00
Jarrod Johnson
12f939a533 Extend HTTP token to work correctly with PAM authentication 2014-07-14 15:03:34 -04:00
Jarrod Johnson
c70f365cd2 Add support for RPM builds
add supportfor pam authentication
2014-07-14 14:54:12 -04:00
Jarrod Johnson
426eeb209f Fix incorrect output on disconnect for cli mode
The '.' command would fail to exit the function, causing the 'help' output to occur.
Fix this by having the '.' command processed in the same manner as the rest.
2014-07-01 12:57:14 -04:00
Jarrod Johnson
1d635add9e Fix traces when trailing slashes are omitted from node resource collections
When a url that could have been a valid resource collection with a trailing
slash hits the daemon without a trailing slash, it would fail.  Correct by
recognizing this scenario and properly handling it.
2014-06-16 16:44:05 -04:00
Jarrod Johnson
87700d6d3d Fix filehandles leaking on shell modules
When shell module plugins failed and exited,
confluent was failing to release the filehandle.  This
would ultimately lead to unreasonable exhaustion of
filehandles.
2014-06-12 14:42:09 -04:00