Jarrod Johnson
f525f054ba
Add support for shell based plugins
...
A plugin that ends in '.sh' is currently assumed to be a console plugin and is executed once.
2014-05-27 15:02:53 -04:00
Jarrod Johnson
7e2494c8e9
Add missing copyright/license information to perl pieces
2014-05-20 13:42:15 -04:00
Jarrod Johnson
36edb24b56
Add perl client library for confluent
...
For applications wishing to use perl to script to confluent,
this library facilitates that.
2014-05-20 13:37:27 -04:00
Jarrod Johnson
38f07252f8
Defer ssl wrap until after accept()
...
ssl wrap prior to accept causes accept() to be too complicated to stay in the
persistent thread and makes key changes require restart to pickup. Call
the wrap_socket within the dedicated client thread so that it gets up to date
at the right time and picks up certificate changes in a timely fashion.
2014-05-20 09:41:55 -04:00
Jarrod Johnson
b78830c403
Fix tlvdata socket infinite loop condition
...
A client could spin the confluent server endlessly by bailing out of connection
at wrong time.
2014-05-19 16:53:55 -04:00
Jarrod Johnson
3a456ca45d
Bump client and server versions
2014-05-19 15:52:39 -04:00
Jarrod Johnson
950ca5e4c9
Add IPv6 support
...
Python defaults to IPv4-only, but IPv6 is cooler
2014-05-19 15:41:38 -04:00
Jarrod Johnson
51442e0180
Move to port 13001 for the TLS socket
...
While 6001 was not taken, it is well within reach of likely VNC ports
2014-05-19 15:23:52 -04:00
Jarrod Johnson
0dea8e0772
Move to port 6001 for the TLS socket
...
4001 is taken, so move to 6001 which is not taken by the registry.
2014-05-19 14:43:38 -04:00
Jarrod Johnson
93aa6e3955
Switch to using fingerprint of cert for knownhosts
...
Some clients have their lives made more convenient by having the
sha512 hash rather than the actual certificate. Prepend with 'sha512$'
to allow for a future where different formats could be specified.
2014-05-19 14:34:13 -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
724557b998
Bump version so that next build will be possible.
2014-05-15 16:22:56 -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
5acf49c9fe
Correct change that broke the html explorer
...
In reorganizing the code, I made a mistake with the
indentation, resulting in the http interface not
working at all.
2014-05-10 11:59:47 -04:00
Jarrod Johnson
4c0b6c29dd
Bump version numbers for client and server packages
2014-05-09 17:19:11 -04:00
Jarrod Johnson
2d0fde3f42
Provide more detail in invalidargument
...
invalidargument was not particularly helpful by itself
improve things by adding more helpful information in the error strings.
2014-05-09 17:18:17 -04:00
Jarrod Johnson
3443a73558
Refresh package data to assure better pyghmi and confetty
2014-05-09 16:45:55 -04:00
Jarrod Johnson
9c441df050
Refresh package data to assure better pyghmi and confetty
2014-05-09 16:43:44 -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
6c7aaf8bc3
Refine packaging issues
2014-05-06 16:45:51 -04:00
Jarrod Johnson
2f5dede1b4
Add bits and pieces to facilitate pypi packaging
2014-05-06 15:01:35 -04:00
Jarrod Johnson
c5cb5649d5
Begin reorganizing content for packaging
2014-05-06 13:37:31 -04:00
Jarrod Johnson
785148ad07
Rename pluginapi module to be more indicative of what the module represents
2014-05-06 10:48:29 -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
Jarrod Johnson
ecd12c6c0f
Extend extension coverage to include the 'self' relation in html case
2014-04-30 15:58:31 -04:00
Jarrod Johnson
934ea4bd5f
Preserve file extensions when client requests data by extension
...
Previously, following links in the output would not work correctly. Have caller preference
for extension denoted type propogate into link targets.
2014-04-30 15:54:22 -04:00
Jarrod Johnson
6069eceb23
Provide better trace capture for AttributeErrors under ipmi
...
The ipmi plugin would erroneously treat all AttributeErrors following from
'next()' as indicating the top level was not a generator/iterator.
2014-04-30 13:07:31 -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
7d9b355bed
Allow passing server, user, passphrase via environment variables and comand via argv
2014-04-23 16:19:22 -04:00
jbjohnso
5067ea7110
Rework output format in confetty to accomodate non-optimal health nodes
2014-04-23 16:11:26 -04:00
jbjohnso
5e8b8b31d7
Implement server certificate validation.
...
Use CA if available, else use a 'known_hosts' type scheme.
2014-04-23 15:12:26 -04:00
jbjohnso
ecbf2e95f9
Provide more specific details to client about reason for being unconnected
2014-04-23 14:04:26 -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
e41140e24f
Fix problem where only one notifier would fire when many nodes would be hooked for the information.
2014-04-23 10:59:22 -04:00
jbjohnso
02243958d2
Avoid blank entries when acting like a file object and something does 'write('\n')'
2014-04-23 10:38:11 -04:00
jbjohnso
bd3f6a2f42
Check correct value for a line terminator
2014-04-23 10:22:12 -04:00
jbjohnso
dc401d6c3a
Fix mistake in trying to log stdout and stderr and clean up formatting
2014-04-23 10:18:45 -04:00
jbjohnso
0cb5b4370b
Start logging what would be stdout and stderr if not daemonized
2014-04-23 10:06:31 -04:00
jbjohnso
2db5004c54
Fix clearing of a group attribute not clearing inherited values
2014-04-23 09:38:42 -04:00
jbjohnso
fb87555776
Remove redundant key deletion and gracefully tolerate deletion of non-existant key
2014-04-22 17:11:44 -04:00
jbjohnso
371262a2f3
Fix group attribute clear persistence
2014-04-22 17:05:20 -04:00
jbjohnso
a5bc50017e
Do not claim to be in 'connecting' state until certain an attempt will actually be made
2014-04-22 17:03:24 -04:00
jbjohnso
71a0e63800
Fix configmanager to tolerate string/unicode argument instead of list/tuple/whatever
2014-04-22 16:38:09 -04:00
jbjohnso
d269be6f8b
Implement 'unset' on group attributes
2014-04-22 16:23:33 -04:00
jbjohnso
d854383be5
Provide a clear_group_attributes so that code may 'unset' attributes on a group
2014-04-22 16:17:47 -04:00