diff --git a/client/allocrunner/alloc_runner_hooks.go b/client/allocrunner/alloc_runner_hooks.go index 2517ee3ae..7f3c536fe 100644 --- a/client/allocrunner/alloc_runner_hooks.go +++ b/client/allocrunner/alloc_runner_hooks.go @@ -4,6 +4,7 @@ import ( "fmt" "time" + "github.com/davecgh/go-spew/spew" multierror "github.com/hashicorp/go-multierror" "github.com/hashicorp/nomad/client/allocrunner/interfaces" clientconfig "github.com/hashicorp/nomad/client/config" @@ -112,6 +113,8 @@ func (ar *allocRunner) initRunnerHooks(config *clientconfig.Config) error { // create network configurator nc := newNetworkConfigurator(ar.Alloc(), config) + spew.Dump(config.BridgeNetworkName) + spew.Dump(config.BridgeNetworkAllocSubnet) // Create the alloc directory hook. This is run first to ensure the // directory path exists for other hooks. diff --git a/client/allocrunner/networking_bridge_linux.go b/client/allocrunner/networking_bridge_linux.go index ea3e69c1c..05126314b 100644 --- a/client/allocrunner/networking_bridge_linux.go +++ b/client/allocrunner/networking_bridge_linux.go @@ -7,6 +7,7 @@ import ( "path/filepath" "github.com/containernetworking/cni/libcni" + "github.com/davecgh/go-spew/spew" "github.com/hashicorp/nomad/nomad/structs" "github.com/hashicorp/nomad/plugins/drivers" ) @@ -74,6 +75,8 @@ func (b *bridgeNetworkConfigurator) Setup(alloc *structs.Allocation, spec *drive return err } + spew.Dump(netconf) + result, err := b.cniConfig.AddNetworkList(b.ctx, netconf, b.runtimeConf(alloc, spec)) if result != nil { result.Print()