Jarrod Johnson
199a948b33
Fix ordering without custom field list
...
The order argument only had any meaning when used in custom fields.
Add a loop in the custom field agnostic section of the code to correct
the behavior.
2018-11-09 08:32:28 -05:00
Jarrod Johnson
6fc305d6a0
Add ordering by field to nodediscover list
...
This provides single column sort for more managable listing of
nodediscover items.
2018-11-06 16:34:22 -05:00
Jarrod Johnson
75b6221dcf
Allow requesting custom columns
...
This allows for more data to be presented and some useless data
to be pruned.
2018-11-06 15:52:20 -05:00
Jarrod Johnson
bd5032268e
Fix csv output mode of nodediscover list
...
The changes made for tabulator broke csv output, fix that back.
2018-11-06 15:33:04 -05:00
Jarrod Johnson
0aa0289b06
Clean out dead code
...
There is some dead and commented code to be cleaned out.
2018-11-06 15:30:18 -05:00
Jarrod Johnson
96df7871cb
Convert nodediscover to use Tabulator
...
This opens the path to more customized output and have the appropriate
formatting. Also revise the Tabulator code to more closely match
the original nodediscover list output.
2018-11-06 15:28:27 -05:00
Jarrod Johnson
82ee69b56c
Age out macmap on node database changes
...
This mitigates problems where automation fails to quickly
react to changes/fixes in the net attributes.
2018-11-06 08:18:37 -05:00
Jarrod Johnson
37899ad39e
Do not inject 'None' into builddesc
...
If such data came from remote system, do not cause a stack trace.
2018-11-05 10:43:36 -05:00
Jarrod Johnson
43fb4467b7
Add error if chain goes off into non-existent nodes
...
Various behaviors break if the administrator declares a chain goes
to nowhere, throw up an error and hopefully see it caught to detect
this misconfiguration.
2018-11-02 15:56:34 -04:00
Jarrod Johnson
f5f9403eff
Fix incorrect variable name in nodediscover
...
The field name was incorrectly referencing the last field
rather than the current.
2018-11-02 15:50:02 -04:00
Jarrod Johnson
78e7381442
Add implicit rescan on unmatched csv data
...
If the csv file contains criteria we can't match, implicitly
try a rescan automatically to try to catch it.
2018-11-02 15:18:55 -04:00
Jarrod Johnson
005cefc914
Add volume creation and deletion to nodestorage
2018-11-01 16:59:42 -04:00
Jarrod Johnson
5f38cce51e
Finish nodestorage show
...
It now shows the pertinent details of storage on a node.
2018-11-01 10:43:28 -04:00
Jarrod Johnson
5d358eaeb0
Switch to output format more like nodeinventory
...
Other confluent commands (apart from nodediscovery) set a particular
convention. Go by that convention (at least by default)
2018-10-30 16:28:59 -04:00
Jarrod Johnson
115a6e9dd1
Add helper for tabular output
...
Provide a quick class for auto-sizing tabular output.
2018-10-30 16:23:34 -04:00
Jarrod Johnson
a034d05cc8
Draft tabular output of disk information
...
Print out roughly the data that will be desired in the storage show.
2018-10-30 16:10:37 -04:00
Jarrod Johnson
6378f823f3
Add resource name to the storage messages
...
The storage messages need to have the references preserved
for CLI consumption.
2018-10-30 15:46:54 -04:00
Jarrod Johnson
079dfed11e
Add type to storage messages
...
Storage messages are likely to be grouped together and need
more to disambiguate them.
2018-10-30 15:28:03 -04:00
Jarrod Johnson
d836bf7298
Map health to nagios compatible codes
...
nodehealth adds granularity and health to the return code.
Rather than only reflecting failure running command, also
have nodehealth assign exit code according to the expectations
of nagios.
2018-10-30 13:56:09 -04:00
Jarrod Johnson
25b969a4db
Add 'all' element to configuration/storage
...
Provide a way to provide all the data about storage configuration
in a single call.
2018-10-30 10:25:41 -04:00
Jarrod Johnson
950abde20e
Remove 'all' from storage subelements
...
This concept is potentially problematic, as a volume named 'all' is
valid. Additionally, if really wanting all, the caller probably wants
the full storage configuration, better provide that up a level to
avoid requiring many calls to do that.
2018-10-30 10:05:48 -04:00
Jarrod Johnson
37be696f23
Merge branch 'master' of github.com:jjohnson42/confluent
2018-10-29 14:56:37 -04:00
Jarrod Johnson
73cab3774d
Add support for volume creation
2018-10-26 14:31:28 -04:00
Jarrod Johnson
c2d52d4f83
Add functionality to delete volumes
...
Further enriching the storage api by adding the ability to delete
a volume.
2018-10-25 16:31:32 -04:00
Jarrod Johnson
fd17559a73
Show result of changing disk state.
...
When changing disk state, let the caller know the result explicitly.
2018-10-25 16:11:54 -04:00
Jarrod Johnson
3945ccd5c3
Advance storage configuration API
...
Enumerate disks in an array in disks list.
Add array associated with disk to disk data.
Show detailed data on arrays and volumes.
2018-10-25 16:07:07 -04:00
Jarrod Johnson
7c006b33bc
Implement functionality to configure disks
...
Disks may now have their state changed between hotspare, unconfigured,
and jbod.
2018-10-25 14:48:58 -04:00
Jarrod Johnson
c96b5f0270
Fix spurious trace on immediate exit confetty
...
When confetty exits without doing anything, it causes
sockapi to reference an empty request. Check for that before
checking if it is a collective request.
2018-10-25 14:12:15 -04:00
Jarrod Johnson
7e72240d98
Add protection against duplicate import data
...
nodediscover assign from csv will now guard against human error
in putting the same data in multiple times.
2018-10-25 11:07:56 -04:00
Jarrod Johnson
c150a848fd
Normalize drive state
...
Since drive state is a key api feature, make sure it is normalized
to a set vocabulary.
2018-10-24 16:36:38 -04:00
Jarrod Johnson
bc7a197a8c
Merge branch '18csi'
2018-10-23 09:16:32 -04:00
Jarrod Johnson
6973736c6a
Set password before setting username
...
The BMC is at much higher risk for rejecting the password
(e.g. the password does not pass complexity requirements). If the
username changes, but the password is still default, it is very
confusing. Give the password change the chance to break the
configuration process first.
2018-10-23 09:16:15 -04:00
Jarrod Johnson
d70c3dcad7
Merge branch '18csi'
2018-10-23 09:10:01 -04:00
Jarrod Johnson
f9055a258e
Provide specific completion behavior for noderun/nodeshell
2018-10-23 09:09:03 -04:00
Jarrod Johnson
76a96fa054
Merge branch '18csi'
2018-10-18 15:44:13 -04:00
Jarrod Johnson
c784a4ec9b
Fix noderun output of continuing commands
...
noderun always only output at the end, fix the
mistake in the select statement.
2018-10-18 15:43:57 -04:00
Jarrod Johnson
2ff47b886d
Fix noderun output of continuing commands
...
noderun always only output at the end, fix the
mistake in the select statement.
2018-10-18 15:43:36 -04:00
Jarrod Johnson
51037e2487
Change 'status' to 'state'
...
This is more consistent with several other confluent messages.
2018-10-17 09:37:31 -04:00
Jarrod Johnson
614b916ca4
Merge branch '18csi'
2018-10-16 09:39:00 -04:00
Jarrod Johnson
4077346d30
Rename api from drives to disks
...
It just feels more appropriate to use disks rather than drives.
2018-10-16 09:00:25 -04:00
Jarrod Johnson
8a4bf22a7e
Further flesh out the storage api support
...
Add ability to list arrays and volumes.
2018-10-15 16:27:12 -04:00
Jarrod Johnson
f2dd501de9
Do not proceed to try to upload if file doesn't exist
...
After relaying the error, it went ahead and
attempted the update, contrary to any reasonable expectation.
2018-10-15 11:15:13 -04:00
Jarrod Johnson
f835057ae4
Do not proceed to try to upload if file doesn't exist
...
After relaying the error, it went ahead and
attempted the update, contrary to any reasonable expectation.
2018-10-15 11:14:59 -04:00
Jarrod Johnson
48913218a6
Merge branch 'master' of github.com:jjohnson42/confluent
2018-10-12 15:47:44 -04:00
Jarrod Johnson
a11e4b71ce
Merge branch '18csi'
2018-10-12 15:47:38 -04:00
Jarrod Johnson
e9ba49a4aa
Intercept another 'unexpected error'
...
During a particularly hectic init, Invalid Session ID
may occur if a command is ran particularly early. Intercept
and replace a more clean message.
2018-10-12 15:46:54 -04:00
Jarrod Johnson
deb90fbca9
Fix trace on early console connect
...
If the trace happens before tracelog is ready, just print the output
to the stdout log for now.
2018-10-12 14:56:54 -04:00
Jarrod Johnson
8cae5ea101
Fix trace on early console connect
...
If the trace happens before tracelog is ready, just print the output
to the stdout log for now.
2018-10-12 14:28:21 -04:00
Jarrod Johnson
f830658818
Merge branch '18csi'
2018-10-12 13:33:09 -04:00
Jarrod Johnson
3105b9b1f9
Significantly rework the collective startup behavior
...
One, make the tracking bools enforce a lock to reduce confusion
Treat an initializing peer as failed, to avoid getting too fixated
on an uncertain target.
Make sure that no more than one follower is tried at a time by
killing before starting a new one, and syncing up the configmanager
state
Decline to act on an assimilation request if we are trying to connect
and also if the current leader asks us to connect and we already are.
Avoid calling get_leader while connecting, as that can cause a member
to decide to become a leader while trying to connect, by swapping
the reactions to the connect request.
Avoid trying to assimilate existing followers.
Fix some logging.
2018-10-12 11:45:23 -04:00