open-nomad/client
Seth Hoenig 9960f96446 client/fingerprint: detect unloaded dynamic bridge kernel module
In Nomad v0.12.0, the client added additional fingerprinting around the
presense of the bridge kernel module. The fingerprinter only checked in
`/proc/modules` which is a list of loaded modules. In some cases, the
bridge kernel module is builtin rather than dynamically loaded. The fix
for that case is in #8721. However we were still missing the case where
the bridge module is dynamically loaded, but not yet loaded during the
startup of the Nomad agent. In this case the fingerprinter would believe
the bridge module was unavailable when really it gets loaded on demand.

This PR now has the fingerprinter scan the kernel module dependency file,
which will contain an entry for the bridge module even if it is not yet
loaded.

In summary, the client now looks for the bridge kernel module in
 - /proc/modules
 - /lib/modules/<kernel>/modules.builtin
 - /lib/modules/<kernel>/modules.dep

Closes #8423
2020-11-09 13:56:14 -06:00
..
allocdir
allochealth
allocrunner ar/groupservice: remove drivernetwork (#9233) 2020-11-05 15:00:22 -05:00
allocwatcher
config removed backwards-compatible/untagged metrics deprecated in 0.7 2020-10-13 20:18:39 +00:00
consul consul/connect: dynamically select envoy sidecar at runtime 2020-10-13 09:14:12 -05:00
devicemanager
dynamicplugins
fingerprint client/fingerprint: detect unloaded dynamic bridge kernel module 2020-11-09 13:56:14 -06:00
interfaces
lib
logmon
pluginmanager
servers
state Implement 'batch mode' for persisting allocations on the client. (#9093) 2020-10-20 16:15:37 -04:00
stats
structs
taskenv Add NOMAD_JOB_ID and NOMAD_JOB_PAERENT_ID env variables (#8967) 2020-10-23 10:49:58 -04:00
testutil
vaultclient
acl.go
acl_test.go
agent_endpoint.go
agent_endpoint_test.go
alloc_endpoint.go
alloc_endpoint_test.go
alloc_watcher_e2e_test.go
client.go s/0.13/1.0/g 2020-10-14 15:17:47 -07:00
client_stats_endpoint.go
client_stats_endpoint_test.go
client_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
csi_endpoint.go
csi_endpoint_test.go
driver_manager_test.go
enterprise_client_oss.go
fingerprint_manager.go s/0.13/1.0/g 2020-10-14 15:17:47 -07:00
fingerprint_manager_test.go use allow/deny instead of the colored alternatives (#9019) 2020-10-12 08:47:05 -04:00
fs_endpoint.go
fs_endpoint_test.go
gc.go
gc_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
heartbeatstop.go
heartbeatstop_test.go
node_updater.go
rpc.go
rpc_test.go
testing.go consul/connect: dynamically select envoy sidecar at runtime 2020-10-13 09:14:12 -05:00
util.go
util_test.go