Jarrod Johnson
7c1bbe1618
Fix error in the usage text of nodeinventory
2017-08-08 15:45:53 -04:00
Jarrod Johnson
76e6f2dd17
Update online usage message for nodeinventory
2017-08-08 11:56:06 -04:00
Jarrod Johnson
67f2282cc4
Update nodeinventory page with new usage info
2017-08-08 11:55:31 -04:00
Jarrod Johnson
b98eea81ad
Add filtering to nodeinventory
...
Allow filtering output by various parameters.
2017-08-08 11:49:50 -04:00
Jarrod Johnson
3bf84ee1e7
Merge branch 'master' of github.com:jjohnson42/confluent
2017-08-08 10:39:49 -04:00
Jarrod Johnson
498803f70a
Fix line wrap in nodebmcreset example
...
Again, the curious behavior of markdown for line break
to be two spaces at the end bites some documentation.
2017-08-08 08:36:21 -04:00
Jarrod Johnson
9ac7158bdd
Fix SMM enablement on XCC in SD530
...
The form factor is, at least in one test, an array, not a string. Just in case, tolerate
either way.
2017-08-07 13:46:14 -04:00
Jarrod Johnson
4110d18f43
Fix exitcode init in noderun
...
The order was incorrect in the code.
2017-08-07 11:42:58 -04:00
Jarrod Johnson
efe3db11ce
Add trigger for restarting on pyghmi updates
...
Often times, a pyghmi update carries the substance of
a patch. Instead of a person having to remember to
manually restart, try to trigger an update to restart
confluent automatically.
2017-08-07 09:51:04 -04:00
Jarrod Johnson
c8fbb58ae9
Correct overzealous deletion
...
Selection error caused if statement to have syntax error.
2017-08-03 09:41:21 -04:00
Jarrod Johnson
05715c6826
Fix noderun in same way as nodeshell
...
noderun had a similar issue about error handling.
2017-08-03 08:40:58 -04:00
Jarrod Johnson
5d7df6dceb
Fix error handling in nodeshell
...
nodeshell needed to process errors correctly, and not assume databynode would be there.
2017-08-03 08:39:04 -04:00
Jarrod Johnson
dbcc33629a
Fix nodeshell overeager parsing
...
In the case of execing to ssh, preserve literal argumants since
ssh is going to parse them. Pre-parsing will cause ssh to strip out spaces, for example.
2017-08-03 08:33:29 -04:00
Jarrod Johnson
085a9fed37
Do not error if debug or usr1 handling is impossible
...
Windows is a limited platform, let it run regardless.
2017-08-02 16:43:08 -04:00
Jarrod Johnson
659c4e4217
Avoid trace on deleted node
...
If a node is deleted, act similar to if it were defined with no console.method, to avoid
superfluous trace output. In the future, it may make sense to filter out nodes with no
console.method earlier, since a fair amount of startup work is done that is ultimately ignored
for situations where console is not enabled.
2017-08-02 10:00:16 -04:00
Jarrod Johnson
28ba40ccfa
Replace SOL locknig with NullLock
...
Again, eventlet monkeypatching of pyghmi seems to be messing up
use of RLocks...
2017-07-31 10:05:50 -04:00
Jarrod Johnson
e2b7440a5c
Put id of thread in the trace
...
When looking at the traces, handy to have ids for each thread for various
purposes.
2017-07-31 10:02:05 -04:00
Jarrod Johnson
a55ba02d11
Merge remote-tracking branch 'upstream/master'
2017-07-28 16:05:45 -04:00
Jarrod Johnson
2ef549c2ae
Correct the NullLock
...
NullLock was not what util.protect was expecting, provide more function calls, all of which do nothing.
2017-07-28 16:05:10 -04:00
Jarrod Johnson
8123a77451
Merge branch 'master' of github.com:jjohnson42/confluent
2017-07-28 15:53:25 -04:00
Jarrod Johnson
9e44087047
Breakup logentries exceeding 65k
...
The data length of a log entry must not exceed 65k. If an attempt is
made to log that much, break it up and duplicate the records. It may make
sense to indicate a continuation explicitly, but for now just extend.
2017-07-28 15:53:07 -04:00
Jarrod Johnson
6e51e02e1b
Merge pull request #81 from aduffy19/nodebmcreset
...
Nodebmcreset
2017-07-27 15:03:08 -04:00
Amanda Duffy
3e90dd6462
Pass sys.exit() an argument
...
Change sys.exit() to sys.exit(success)
2017-07-27 14:31:37 -04:00
Jarrod Johnson
4a929eb9b5
Merge branch 'master' of github.com:jjohnson42/confluent
2017-07-27 09:03:53 -04:00
Jarrod Johnson
858647bb6d
Change to str for exception message
...
str will tend to present a more normal looking error string. Use
that so that a user does not have the impression there is a code
issue on expected errors.
2017-07-27 09:03:36 -04:00
Jarrod Johnson
8a416ccc5e
Correct mistake in core formatting
2017-07-26 16:57:06 -04:00
Jarrod Johnson
12d0fe21cd
Only show error message when errors exist
2017-07-26 16:37:09 -04:00
Jarrod Johnson
7a88a2825d
Add 'update' to nodefirmware
...
nodefirmware can now execute updates on a file by file basis.
2017-07-26 15:54:21 -04:00
Jarrod Johnson
bc9a498683
Provide a library for compact text node data
...
Some processes (e.g. nodefirmware update) warrant a different sort of
strategy to try to abbreviate, where collation falls short. For this,
provide a columnar output that changes to line by line if stdout is not
a terminal.
2017-07-26 15:09:56 -04:00
Jarrod Johnson
b5f016ad50
Provide support for removing update
...
This allows for cancelling and cleanup after reporting.
2017-07-26 14:10:04 -04:00
Jarrod Johnson
eb3f5a8bbc
Provide update status through API
...
Give visibility into the process.
2017-07-26 11:39:27 -04:00
Amanda Duffy
1d0b78267d
Add nodebmcreset command and man page
2017-07-25 17:10:52 -04:00
Jarrod Johnson
a40f015076
Phase 1 of firmware update support
...
Provide ability to launch firmware updates.
Next will be ability to enumerate, monitor, and
delete.
2017-07-25 17:01:32 -04:00
Amanda Duffy
4574d1bcc7
Merge remote-tracking branch 'upstream/master'
2017-07-25 15:40:06 -04:00
Jarrod Johnson
0bf21238aa
Add bay number to IMM and XCC
...
The bay number can be opportunisticly grabbed, provide
that info in the discovery api. In future, should add 'by-bay'
once we have enclosure data as well.
2017-07-25 12:07:18 -04:00
Jarrod Johnson
577456d999
Merge branch 'master' of github.com:jjohnson42/confluent
2017-07-20 11:05:19 -04:00
Jarrod Johnson
1dd40d36a1
Breakup logentries exceeding 65k
...
The data length of a log entry must not exceed 65k. If an attempt is
made to log that much, break it up and duplicate the records. It may make
sense to indicate a continuation explicitly, but for now just extend.
2017-07-20 11:05:06 -04:00
Jarrod Johnson
ba9ea1acd8
Treat empty string same as undefined
...
If an administrator clears the cert fingerprint, they will
likely set it to ''. In such a case, go down the 'no fingerprint'
path rather than reject it.
2017-07-20 10:20:22 -04:00
Jarrod Johnson
60756d9b41
Fix handling of numeric enclosure.bay
...
enclosure.bay is integer rather than string now. Fix the filter
to use format, which is more robust in numeric versus string anyway.
Also, consistently make the underlying data integer rather than
sometimes string.
2017-07-20 10:12:53 -04:00
Jarrod Johnson
2795dfe7b9
Only mod noderange if bad nodes detected
...
This was triggering a defect in noderange. The
defect should be fixed, but in the meantime,
avoid tripping over it and looking weird anyway.
2017-07-18 15:37:37 -04:00
Jarrod Johnson
a922de2ed6
Have nodeboot continue on non-failed nodes
...
If even one of a noderange failed to complete the
set boot device step, none would progress. Change
the behavior so that exit code still happens and
processing does stop on timed out nodes, but go
ahead and reboot those that were fine.
2017-07-18 14:17:46 -04:00
Jarrod Johnson
5a2e4a669b
Add a library for confluent version of 'xcoll'
...
Add a diff function with colorized intra-line diff info
2017-06-29 16:58:02 -04:00
Jarrod Johnson
c2115f4df9
Fix get/set global with the stateless mode change
...
Since supporting stateless made the init() optional, the *_global functions
would not work if called first. Correct this oversight.
2017-06-29 13:08:23 -04:00
Jarrod Johnson
fa6650a072
Non-linux fallback for list_interface_indexes()
...
When errors suggest we are not in linux, make a best
effort using netifaces.
2017-06-29 10:33:10 -04:00
Jarrod Johnson
1116fed1e7
Minor style fix
2017-06-29 10:24:13 -04:00
Jarrod Johnson
0745ab0fdf
Auto-encode unicode if needed
...
If unicode comes in to be crypted and fails, be explicit about utf-8 encoding.
2017-06-29 10:20:24 -04:00
Jarrod Johnson
aeb3bd2444
Add a stateless configmanager mode
...
Certain embodiments of confluent may not
want to persist configuration. Enable
an opt-in full-volatile config mode.
2017-06-29 10:17:17 -04:00
Jarrod Johnson
5dc2d8c8be
Prefer SLP data on probe if available
...
Avoid attempting login on probe if at all possible.
2017-06-28 16:21:57 -04:00
Jarrod Johnson
dc23793d32
Reorder SLP services
...
Make the most important one likely to be first, so that the
attributes filled out later to fixate on the most relevant.
2017-06-28 16:20:58 -04:00
Jarrod Johnson
3bcf236744
Fix serial numbers with leading spaces
...
Sometimes the string may have leading spaces, remove those for sane presentation.
2017-06-28 10:13:50 -04:00