Jarrod Johnson
da400b11d0
Temporarily back out check_power_state
...
It blocks ctrl-e mysteriously.
2017-06-14 09:21:08 -04:00
Jarrod Johnson
d9042e5d4c
Support newer pyte
...
pyte changed the buffer format, adjust strategy to be compatible both with new and old.
2017-06-13 09:06:43 -04:00
Jarrod Johnson
e443aa6530
Fix line wrap in nodeattrib man page
2017-06-12 17:20:32 -04:00
Jarrod Johnson
8993f80b13
Update synopsis of the nodeattrib man page
2017-06-12 16:50:06 -04:00
Jarrod Johnson
8e00f3a795
Fix up nodeattrib usage message
2017-06-12 16:45:53 -04:00
Jarrod Johnson
1f6fa7636b
Fix synopsis for nodeattrib -c
2017-06-12 16:10:02 -04:00
Jarrod Johnson
d86bacf4d8
Add man pages for confluent and confluentdbutil
2017-06-12 14:58:34 -04:00
Jarrod Johnson
7230ec1306
Change nodelist usage message per test request
2017-06-12 14:40:04 -04:00
Jarrod Johnson
00d5416737
Merge branch 'discovery' of hpcgitlab.labs.lenovo.com:jjohnson2/confluent into discovery
2017-06-08 10:08:03 -04:00
Jarrod Johnson
b22073e106
Limit children of noderun/nodeshell
...
Implement throttling of concurrent processes. While 64 might be a bit conservative in this day and
age, we were exceeding FD_SETSIZE, and maybe we were also lucky. Throttle to 168 for the moment.
2017-06-08 10:05:24 -04:00
Jarrod Johnson
03369c5d5e
Fix handling of prefix length calculation
...
It was too naive about the mask, endiannes swaps bytes, not bits.
Fix by converting everytihng to big endian, where the mask is
guaranteed to be contiguous set of bits.
2017-06-05 09:21:58 -04:00
Jarrod Johnson
0b30b92bc9
Use default PIPE handling
...
Python overrides PIPE handling with silly behaviors, have the confluent commands restore
system defaults rather than Python behavior.
2017-06-01 09:03:15 -04:00
Jarrod Johnson
dd90af1414
Revert "Implement Windows compatibility for slp, maybe ssdp"
...
This reverts commit 9e13724037 .
2017-06-01 08:55:28 -04:00
Jarrod Johnson
9e13724037
Implement Windows compatibility for slp, maybe ssdp
...
Windows was unable to execute slp. The use of inet_pton makes 'snoop'
impossible still, but perhaps not needed in a windows utility form...
2017-05-31 16:57:55 -04:00
Jarrod Johnson
bbe839ea5d
Fix noderun and nodeshell on long commands
...
Before it required 'rdy' to come back, and give up if empty. Really we care about
all exclusively.
2017-05-31 16:26:55 -04:00
Jarrod Johnson
ff7bdcc16e
Avoid corrupting the terminal session on out of band issues
...
For out of band issues, keep the terminal state active.
2017-05-31 13:19:19 -04:00
Jarrod Johnson
6cd961786d
Handle a blank result for bridge to ifindex
...
If blank, ignore and continue, rather than generating a trace.
2017-05-31 11:55:30 -04:00
Jarrod Johnson
18fa8f0b41
Do not generate trace on bridge without interface
...
Bridge ports can exist without a physical port. Skip over such a port rather than error.
2017-05-31 11:52:46 -04:00
Jarrod Johnson
6e5375918d
Fix unexpected error on node deletion
...
Node deletion was incorrectly trying to react to '_attrgrobs'. Fix the
behavior to ignore it.
2017-05-31 08:53:54 -04:00
Jarrod Johnson
046c1e8ec4
Clean up periodic recheck scheduling
...
Observed that a number of concurrent rechecks were happening. Do some clean
up in the hopes of straightening out the situation.
2017-05-30 14:06:31 -04:00
Jarrod Johnson
eb48f2c1f7
Apply fingerprint match logic on recheck
...
On scan/snoop, we were ignoring if certificate already matched up.
Bring this logic to the recheck logic, so that things behave consistently.
2017-05-30 10:50:31 -04:00
Jarrod Johnson
d25ac000f4
Have by-node get natural sorted
2017-05-30 09:18:11 -04:00
Jarrod Johnson
a47bdf4181
Put discovery in order
...
Provide alphabetic ordering for most elements. A TODO would be natural
sort at least for nodenames
2017-05-30 09:07:47 -04:00
Jarrod Johnson
caf41345a1
Add 'by-state' to discovery
...
Provides a convenient method to focus on unidentified nodes.
Also, alphabatize the mac addresses on return.
2017-05-30 08:55:22 -04:00
Jarrod Johnson
3d6a1881c8
Fix [] inside regex
...
Regex uses [], support it in a normal way
2017-05-26 15:23:43 -04:00
Jarrod Johnson
5083977664
Rework node range evaluation priority
...
= and ~ operatiors would work incorrectly with '-', move filter and name regex up in priority
2017-05-26 15:06:52 -04:00
Jarrod Johnson
53821d98e6
Fix errors when switch and/or switchport are not set
...
It was nagging about conflicts, when not actually set. Treat ''
as being the same as not setting at all.
2017-05-26 13:55:54 -04:00
Jarrod Johnson
fdb8ef6919
Fix typoes in man page for nodeconsole
2017-05-26 13:20:34 -04:00
Jarrod Johnson
b08bf6ae97
Be less aggressive about scanning interval
...
If there are slow switches in the mix, do our best to ensure solid
30 second interval of peace and quiet between scans, rather than a
scanning window per 30 seconds.
2017-05-26 12:52:42 -04:00
Jarrod Johnson
3318b3cda7
Ignore certificate check when manual
...
When doing manual discovery, repeat the process regardless of
certificate fingerprint state, since manual process is supposed
to do that.
2017-05-26 08:32:28 -04:00
Jarrod Johnson
e97f768170
Fix format string of log message
...
The message was missing a close parenthesis.
2017-05-25 16:30:09 -04:00
Jarrod Johnson
9eacb4e3f0
Prioritize community if set
...
If the community is set, ignore user/password. This fits expectations
a bit more.
2017-05-25 15:02:08 -04:00
Jarrod Johnson
77bce756cd
Support secret.snmpcommunity
...
Also fix error where stale by-port data was left on a rescan.
2017-05-25 14:33:50 -04:00
Jarrod Johnson
2decaac8ea
Be more tolerant on auto user deletion
...
Life is not perfect, we may not be able to really clean unexpected
accounts.
2017-05-23 16:14:32 -04:00
Jarrod Johnson
e0a62a2533
Provide cleaner log when config fails
...
For now, provide a catch all to get some indication of problem,
rather than silent failure.
2017-05-23 10:53:54 -04:00
Jarrod Johnson
f8d2fd8f46
Move up 'known_nodes' assignment
...
known_nodes is not some structure that was meant to be protected.
When an unexpected situation comes up (such as config failing), we
were losing track of the discovery info.
2017-05-23 10:44:15 -04:00
Jarrod Johnson
7f18f5fde0
Fix attrib based rediscovery
...
The wrong dictionary was offered up for manipulation.
2017-05-23 10:15:04 -04:00
Jarrod Johnson
f07371c756
Add a python dbg cli, to use the dbg.sock without nc and with up arrow
2017-05-22 16:55:25 -04:00
Jarrod Johnson
179fcd9dcf
Fix incorrect message in the login process failure message.
2017-05-22 14:28:52 -04:00
Jarrod Johnson
e79a5ecd12
Merge branch 'discovery' of hpcgitlab.labs.lenovo.com:jjohnson2/confluent into discovery
2017-05-22 14:17:55 -04:00
Jarrod Johnson
2faf187d2d
Use standard nodepawer usage on bad argument
2017-05-22 14:17:35 -04:00
Jarrod Johnson
703d8f273f
Provide a script to summarize hangtraces files
2017-05-22 09:24:58 -04:00
Jarrod Johnson
db0bc41441
Sort port entries in a show mac info
...
This means that the most interesting entry is probably the last.
2017-05-20 18:46:33 -04:00
Jarrod Johnson
97effaae01
Modify networking macs api to be more extendable and consistent
...
When we get down to a switch, make the macs 'by-mac', since 'by-vlan' is a likely future extension.
2017-05-20 18:07:35 -04:00
Jarrod Johnson
0a5424fbb2
Fix scope of module global dictionaries
...
In the refactoring, accidentally kept the map information
incorrectly scoped to be disposed of.
2017-05-20 17:41:59 -04:00
Jarrod Johnson
3571947332
Change names of portions of the API
2017-05-20 17:39:30 -04:00
Jarrod Johnson
72289f89cb
Make sure switch update sweep completes in background
...
Switch scan was interrupted in the event of a successful scan.
Change to background execution on generatorexit.
2017-05-20 11:04:47 -04:00
Jarrod Johnson
bf90431101
Implement no-qbridge mode and workaround for switch mistake
...
Sometimes switches erroneously use interface index instead of bridge index
in the bridge mib. Workaround by assuming this is probably the case if
none of the macs seem to map to an interface. Note that it's still important
to accept that a bridge port might not have an interface (internal mac address)
so only make the assumption if *none* of the mac addresses mapped to an interface.
2017-05-20 10:11:44 -04:00
Jarrod Johnson
784758fa25
Tweak documentation
...
For synopsis, remove optional indication.
For usage, change to common terminology with synopsis.
2017-05-17 15:19:22 -04:00
Jarrod Johnson
6c5536c840
Implement manual discovery
...
/discovery/by-mac/ -> set 40-f2-e9-af-45-a4 node=r1
Allow manual assignment as if it were detected through switch or chassis
2017-05-17 14:25:46 -04:00