2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 09:32:21 +00:00
Commit Graph

26 Commits

Author SHA1 Message Date
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
Jarrod Johnson
dccf2bae7d Fix problem where changes made during a bg cfg sync could be lost
If a bg sync thread is in progress, a key could be marked dirty before the desired change is actually made.
This causes the running thread to pick up the change to 'dirty' keys and save off the as-yet unchanged key.
Reorganize things to have the keys marked dirty only after they have been assigned so that an in-progress
commit to disk only picks up a key after the relevant values have changed.
2014-06-02 10:32:28 -04:00
Jarrod Johnson
a7398198d4 Fix shell execution on node removal 2014-05-29 10:28:04 -04:00
Jarrod Johnson
4dfcc8103f Assure that TL value read is complete
There is no hard guarantee that all 4 bytes will come.  In practice,
I've never seen this occur, but to be complete, should make sure recv gets everything it was supposed to.
2014-05-19 10:12:16 -04:00
Jarrod Johnson
5bcde84e14 Fix cpu churn when web sessions open and idle
It turns out that eventlet.green.threading.Event() doesn't behave very efficiently in this context for whatever reason.
Use eventlet.event.Event() instead.  It was not used before due to lack of timeout and clear, but that is overcome by
disposing of it rather than reusing and using with eventlet.Timeout() to add timeout to wait that doesn't have built in timeout.
2014-05-15 16:22:28 -04:00
Jarrod Johnson
4911de81e6 Have confluent automatically set up /var/run/confluent if permitted
If wanting to run as non-root, mkdir -p /var/run/confluent /var/log/confluent /etc/confluent
and chown those to be owned by confluent user.  That is probably path for deb and rpm packaging.
2014-05-13 10:59:41 -04:00
Jarrod Johnson
542da958db Have 'bad request' errors be more informative 2014-05-09 16:38:55 -04:00
Jarrod Johnson
2863c58264 Fix core to return invalidargument exception on bad input data 2014-05-08 14:39:44 -04:00
Jarrod Johnson
c5cb5649d5 Begin reorganizing content for packaging 2014-05-06 13:37:31 -04:00
Jarrod Johnson
4ef60d3106 Have persistent ipmi command objects break selves on reconfig
When any reconfiguration happens, break a command object (and the session that lies beneath).
This does cause needless churn in response to some changes that wouldn't matter, but it's a
small price to pay for the simplicity of not bothering to be fancier.
2014-05-06 10:06:33 -04:00
Jarrod Johnson
23aac5dab7 Rework error reporting for errors.
For now, the only live path is the one that
gets struck by exception.  However, the exception
only happens on 'strip_node', meaning for
multi-node resources, things should be sane when
the time comes.
2014-05-05 19:53:57 -04:00
Jarrod Johnson
811ee5eeda Change ipmi console closure to only close SOL
Previously, was pulling the cord on a perfectly servicable IPMI
session object.  Change to just deactivating the SOL portion
of an IPMI connection if the console closes.
2014-05-05 18:40:28 -04:00
Jarrod Johnson
4db53fd00e Implement honoring of console.logging=none and fix reuse of broken ipmi command objects 2014-05-03 11:59:35 -04:00
jbjohnso
c514c2c121 Implement offload of compute-intensive authentication.
With this change, an instance under pressure from new or bad authentication attempts
will continue to be viable to authenticated sessions and clients with tokens (e.g. any
http client that honors cookies).
2014-04-24 13:00:07 -04:00
jbjohnso
eacf28db69 Manager to get more traces into trace log instead of the stderr log 2014-04-23 11:14:17 -04:00
jbjohnso
a93c14df4c Add some notes about security related design 2014-04-21 16:01:14 -04:00
Jarrod Johnson
db456dd9e5 Have consoles meaningfully retried to see if the target is reconfigured
Previously, if a username or password was bad, retry would not occur.
Correct this such that every so often or right when someone connects,
the target is checked to see if the user/password is now considered good.
2014-04-16 10:18:59 -04:00
Jarrod Johnson
ca2a4ed775 Add health/hardware resource to nodes and wire up for IPMI 2014-04-15 14:59:36 -04:00
Jarrod Johnson
1ff7283dbb Jot down notes about things to work in the future 2014-04-11 10:03:02 -04:00
Jarrod Johnson
a5504ec62f Refactor/rename code
confetty had a lot of stuff in it.  Factor out bits to a common library for
constructing purpose oriented commands.
2014-03-04 17:12:19 -05:00
Jarrod Johnson
9617d1f4a4 Implement dbm style backing for the configuration persistence
The pickling would get horrendously slow as total node count increased.  This meant very long time to sync
to disk for just one change out of 65,000.  This strategy changes things to more selective and only
do things for the dirty keys rather than everything.  Large changes to small amounts of nodes will take
more time (because more calls to dump pickle), but small changes to a small subset of nodes will take much
less time.
2014-03-03 20:01:13 -05:00
Jarrod Johnson
79fc5faaf6 Fix problem where reordering groups did not affect inheritence
There was an optimization to skip examination of groups if it was determined
that the group membership had not changed.  However, this erroneously
masked the examination in the case of reordered groups.  Skip the
optimization to cover that case at the expense of at least some needless churn.
This only happens when something goes to change group membership in some way, so
this shouldn't be too expensive.
2014-03-03 15:35:08 -05:00
Jarrod Johnson
811ca61747 Fix problem where broken expressions were not gracefully handled
Now when expressions can not be completed, the reason is presented as 'broken'.
Additionally, when unsetting a value that would affect expressions,
perform appropriate changes.
2014-03-03 14:48:46 -05:00
Jarrod Johnson
c56d0ac5a1 Jot down notes about things to do 2014-03-02 13:05:19 -05:00