chenglch
d4329ab0f1
Merge pull request #69 from jjohnson42/unbufferedlogs
...
Change the stdout/stderr/trace logs to not buffer things over time
2017-04-12 10:38:19 +08:00
Jarrod Johnson
e230f803ce
Correct missing argument
...
__new__ was missed in the last commit.
2017-04-11 15:42:16 -04:00
Jarrod Johnson
3cae3ed983
Merge remote-tracking branch 'upstream/master' into unbufferedlogs
2017-04-11 14:42:03 -04:00
Jarrod Johnson
563a2b11c3
Change the stdout/stderr/trace logs to not buffer things over time
...
If something went completely off the rails, it could easily fill up lots of memory with log entries in the 2 seconds it
would buffer. For now disable the buffering on key debug logs, as the main purpose was reducing IOPs in the per-node
console logs anyway. A future behavior may be to also limit the size and/or number of outstanding log entries before
committing to disk.
2017-04-11 14:40:05 -04:00
Jarrod Johnson
cff2c22fda
Merge pull request #68 from alin37/master
...
refactoring nodelist and nodeattrib to use common code
2017-04-07 09:34:15 -04:00
Allen Lin37
cfd8ac4c75
refactoring nodelist and nodeattrib to use common code
2017-04-06 11:30:08 -04:00
Jarrod Johnson
236d889d5d
Fix error on 'isset' data
...
isset data is to be redacted. This handles that
situation, and also provides a repr if all else fails.
2017-03-05 09:20:50 -05:00
Jarrod Johnson
919dab9b55
Create auth multiprocessing pool on demand
...
Most of the time, we don't need this pool. Create when needed,
and clean up after 30 seconds of inactivity. This avoids a slow
shutdown that was due to core python hanging in help_finish_stuff,
and as a bonus means most of the time, one only sees one confluent
process, which has been a source of questions already.
2017-03-05 08:28:35 -05:00
Jarrod Johnson
eb18796d94
Merge pull request #67 from alin37/master
...
Fix nodelist and nodeattrib to read attributes in groups
2017-03-03 13:22:14 -05:00
Allen Lin37
fd64a2e68c
Fix nodelist and nodeattrib to read attributes in groups
2017-03-03 13:10:29 -05:00
Jarrod Johnson
43b51eec20
Be more friendly about shlex parsing errors
...
If user provides bad input, be more helpful and
less fatalistic.
2017-03-01 10:31:00 -05:00
Jarrod Johnson
011ba66314
Add a -u option for symmetry with rsetboot
...
If people want to alias xCAT commands, then this
is required for compatibility.
2017-03-01 10:24:23 -05:00
Jarrod Johnson
49b3ca7381
Merge pull request #66 from alin37/master
...
Adding nodeattrib
2017-02-28 14:06:38 -05:00
Allen Lin37
16f2a2b1eb
Updated for broken expressions
2017-02-28 13:51:36 -05:00
Allen Lin37
f2bbb7c355
Merge branch 'master' of https://github.com/alin37/confluent
2017-02-28 13:43:08 -05:00
Allen Lin37
c78b7fa146
Adding nodeattrib to change and update node attributes
2017-02-28 13:42:39 -05:00
Allen Lin37
1b44d2d781
Setting nodeattrib default to show current
2017-02-28 13:42:39 -05:00
Allen Lin37
2d8004000d
Adding nodeattrib to list and update attributes
2017-02-28 13:42:39 -05:00
Allen Lin37
b714cfdf0f
Adding nodeattrib to change and update node attributes
2017-02-28 13:27:22 -05:00
Allen Lin37
60a1ba77b7
Setting nodeattrib default to show current
2017-02-17 10:46:57 -05:00
Allen Lin37
bbfed443fc
Adding nodeattrib to list and update attributes
2017-02-17 10:44:25 -05:00
Jarrod Johnson
f3cfe4ee26
Change strategy for stale data protection
...
Rather than assuming a global state, have the generator react to
GeneratorExit and clean itself up.
2017-02-15 10:58:08 -05:00
Jarrod Johnson
2dcdfe58c3
Merge remote-tracking branch 'upstream/master'
2017-02-15 10:47:04 -05:00
Jarrod Johnson
2e547129d1
Merge branch 'master' of github.com:jjohnson42/confluent
2017-02-15 10:46:34 -05:00
Jarrod Johnson
b39ae42955
Add debug of broken expression to nodelist
...
If an expression is invalid, have nodelist give the error data
allowing the user to see and potentially take action.
2017-02-15 10:46:27 -05:00
Jarrod Johnson
9e593f0554
Clean up nodepower
...
nodepower boot and reset output was misleading.
2017-02-15 10:46:27 -05:00
Jarrod Johnson
ecc6bcf96c
Add the util to the setup.py
...
Previously packaging was missing the new utility
2017-02-15 10:46:27 -05:00
Jarrod Johnson
6ad383c6ad
Assure deterministic enumeration of areas
...
nodegroup must be restored first.
2017-02-15 10:46:27 -05:00
Jarrod Johnson
446d2270c9
Give a friendlier message on restore of redact DB
...
A redacted dump will not have a keys.json file, which
is natural. Replace 'file not found' with a message
indicating the possibility of a redacted dump.
2017-02-15 10:46:27 -05:00
Jarrod Johnson
5395f97a21
Do not write out keys when redacting
...
It's silly to store keys when redact is requested
2017-02-15 10:46:27 -05:00
Jarrod Johnson
04781e0ece
Actually hook up the redact feature
2017-02-15 10:46:27 -05:00
Jarrod Johnson
9bd0b7af9d
Make confluentdbutil executable
2017-02-15 10:46:27 -05:00
Jarrod Johnson
ae806e55b0
Add a utility to frontend DB dump/restore
...
This exposes the library functions as a utility
2017-02-15 10:46:26 -05:00
Jarrod Johnson
393ea41696
Implement restore from db
...
This provides at least restore for the primary tenant (the only tenant currently used by anyone)
2017-02-15 10:46:26 -05:00
Jarrod Johnson
b87cb87c2a
Flesh out the restoration of the master keys
...
With this commit, the key portion of import should be complete.
2017-02-15 10:46:26 -05:00
Jarrod Johnson
a91d7047b2
Start work on a db restore
...
Start by parsing the previously dumped key data, since the key data requires special handling.
2017-02-15 10:46:26 -05:00
Jarrod Johnson
638842beec
Fix no password backup
...
If password=None was supplied, it would fail. Now accomodate unprotected keys.
2017-02-15 10:46:26 -05:00
chenglch
5678942186
Merge pull request #65 from jjohnson42/handleinflight
...
Protect against stale data in new requests
2017-02-14 15:03:32 +08:00
Jarrod Johnson
f46269a6f2
Add debug of broken expression to nodelist
...
If an expression is invalid, have nodelist give the error data
allowing the user to see and potentially take action.
2017-02-10 16:41:47 -05:00
Jarrod Johnson
583e3474ac
Do not yield data to discard
2017-02-10 11:37:56 -05:00
Jarrod Johnson
ffbe1ab156
Protect against stale data in new requests
...
If a caller (reasonably) broke out of a loop, a subsequent call would get old data.
Protect against this by discarding data not consumed if previously called.
2017-02-10 11:20:39 -05:00
Jarrod Johnson
9e4bb84932
Merge branch 'master' into dbbackrestore
2017-02-07 13:02:48 -05:00
Jarrod Johnson
ffd1bdfae3
Clean up nodepower
...
nodepower boot and reset output was misleading.
2017-02-02 17:00:09 -05:00
Jarrod Johnson
02dd29b027
Add the util to the setup.py
...
Previously packaging was missing the new utility
2017-01-31 15:38:54 -05:00
Jarrod Johnson
3b38d8ac43
Assure deterministic enumeration of areas
...
nodegroup must be restored first.
2017-01-30 16:38:43 -05:00
Jarrod Johnson
c381fefc49
Give a friendlier message on restore of redact DB
...
A redacted dump will not have a keys.json file, which
is natural. Replace 'file not found' with a message
indicating the possibility of a redacted dump.
2017-01-30 16:27:49 -05:00
Jarrod Johnson
a288136a80
Do not write out keys when redacting
...
It's silly to store keys when redact is requested
2017-01-30 16:13:49 -05:00
Jarrod Johnson
cbc0ffbc1c
Actually hook up the redact feature
2017-01-30 16:12:49 -05:00
Jarrod Johnson
cfc6fd04fc
Make confluentdbutil executable
2017-01-30 16:10:01 -05:00
Jarrod Johnson
4a4b1a623f
Add a utility to frontend DB dump/restore
...
This exposes the library functions as a utility
2017-01-30 16:08:28 -05:00