Jarrod Johnson
074a8debf4
Setup user on generic bmc case
2017-02-24 15:38:27 -05:00
Jarrod Johnson
a4d66cdbc9
Protect the protocols from exceptions
...
Consolidate unexpected error handling in a safe_detected flow.
2017-02-23 14:53:12 -05:00
Jarrod Johnson
2270e64148
Have PXE return services in a consistent fashion
2017-02-23 14:48:15 -05:00
Jarrod Johnson
0e99d99051
On an XCC, probe to get uuid and enclosure info as possible.
2017-02-23 14:45:38 -05:00
Jarrod Johnson
b0ddc66e06
Move SMM notes to smm.py for future
...
Don't clutter the bmc.py with the SMM notes
2017-02-22 16:23:01 -05:00
Jarrod Johnson
364a17f31a
Implement IPv4 addr/netmask config apply
...
Also start getting ready for user/password code tomorrow.
2017-02-21 16:58:07 -05:00
Jarrod Johnson
04d18c4b22
Complete module rename in xcc
2017-02-21 14:19:17 -05:00
Jarrod Johnson
44330f2351
Add new subdirectory to setup.py
2017-02-21 14:13:14 -05:00
Jarrod Johnson
117cf71065
Rearrange the protocols into a subdirectory
...
It's a little less cluttered this way.
2017-02-21 13:38:24 -05:00
Jarrod Johnson
44b58d58ae
Fix message on BMC user creation
2017-02-21 11:02:20 -05:00
Jarrod Johnson
b5a924bdb6
Handle null fingerprint
...
If no existing fingerprint, then a cert can't possibly match, return
False.
2017-02-21 09:37:31 -05:00
Jarrod Johnson
d1fd17200f
Fix spelling mistake in cert_matches
2017-02-21 09:29:46 -05:00
Jarrod Johnson
b035bd6c1e
Add hooks to recheck on reconfigure
...
This will allow us to be responsive to changes in configuration.
2017-02-21 09:17:57 -05:00
Jarrod Johnson
02e2cb1673
Further advance discovery
...
This commit starts to lay the groundwork for
handling the security policy differences with
respect to TLS keys on port 443. This requires
that the discovered entitity support https for now,
which is a given (even if the web service is not enabled,
it does provide a cert).
IMMv2 may never be able to follow the 'secure' path due
to uncertainty of whether there's a licensed web ui or not).
2017-02-18 09:23:34 -05:00
Jarrod Johnson
53954426a1
Begin working on xcc interrogation/preconfig
2017-02-17 17:01:11 -05:00
Jarrod Johnson
d02c4e51f9
Fix mistakes in the discovery code to date
2017-02-15 17:11:59 -05:00
Jarrod Johnson
26e9db263d
Add discovery and networking bits to packaging
2017-02-15 16:53:42 -05:00
Jarrod Johnson
ae56085f95
Fix typo in the command
2017-02-15 15:36:23 -05:00
Jarrod Johnson
125160e0f5
Add attribute to control discovery policy
2017-02-15 15:23:26 -05:00
Jarrod Johnson
2f251dd05a
Continue work on mac search capability
2017-02-15 14:03:28 -05:00
Jarrod Johnson
88b2b49d3b
Merge branch 'master' into discovery
2017-02-15 11:53:12 -05:00
Jarrod Johnson
1fb5c0c177
Begin work on node handlers
...
The handler framework will be the key for supporting multiple node types.
Each handler is supposed to support a variety of stages through the
process.
First a unicast interrogation to get some data (ideally without
logging in, or by logging in with default credentials).
Second upon identification, preconfig will be called, if and only if the endpoint would become a node,
but should not yet do anything big, just paving the way for verification or dependent discovery configuration.
Finally, config will be called to deploy configuration according to the node and referenced
config manager.
2017-02-15 11:47:05 -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
Jarrod Johnson
9fdccf8371
Begin working on xcc interrogation/preconfig
2017-02-14 17:07:49 -05:00
Jarrod Johnson
f5d7fdcb58
Update design commentary in discovery
...
Note the preconfigure stage
2017-02-14 16:34:47 -05:00
Jarrod Johnson
b639720190
Tweak available attributes.
2017-02-14 16:34:19 -05:00
Jarrod Johnson
347dbd8cd1
Move neighutil up to a more general location
...
It isn't necessarily discovery specific
2017-02-14 16:26:45 -05:00
Jarrod Johnson
204b47d174
Add function to get the prefix length
...
When we get to configuration of a system,
we currently will have the ip address, but
not the prefix length. Use this as a way
to divine the information automatically.
2017-02-14 16:24:21 -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
d738a4c61f
Do not repr twice
...
Data in the initial scan stage was repeated twice in
unit test. Fix the extra output
2017-02-13 17:00:27 -05:00
Jarrod Johnson
6ebbd91592
Fix handling of certain scenarios
...
One issue is that SLP data can have bad data in the bytes. Present
a decode error. So far, the raw value was erroneously '\xff\xff....'
Another is that a network with aliases will reject IP_ADD_MEMBERSHIP, due
to the ambiguity.
2017-02-13 16:52:44 -05:00
Jarrod Johnson
17f587252e
Merge branch 'master' into discovery
2017-02-10 16:42:15 -05: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
5f1a2ed69c
Add some helpful output delimiters to unit test
2017-02-10 15:47:13 -05:00
Jarrod Johnson
0668b90ba9
Improve the unit test for mac map
...
Actually get to using the config manager.
2017-02-10 15:45:58 -05:00