scissor-project / open-scissor

OpenSCISSOR provisioning and orchestration
Apache License 2.0
2 stars 0 forks source link

NetworkManager does not run the dispatcher.d scripts for DHCP network interfaces on the first up event #33

Closed ferrarimarco closed 6 years ago

ferrarimarco commented 6 years ago

Prerequisites

Description

During provisioning we create scripts for NetworkManager to run, but we don't restart NetworkManager.service after such scripts are put in place. For this reason those scripts are not executed when a network interface is configured via DHCP.

Host Environment

Output

Dec 01 14:48:50 localhost.localdomain nm-dispatcher[2278]: Received event: up, interface: enp0s8
Dec 01 14:48:50 localhost.localdomain root[2635]: NetworkManager Script up triggered
Dec 01 14:48:50 localhost.localdomain nm-dispatcher[2278]: <13>Dec  1 14:48:50 root: NetworkManager Script up triggered
Dec 01 14:48:50 localhost.localdomain nm-dispatcher[2278]: Removing default routes from enp0s8 interface
Dec 01 14:48:50 localhost.localdomain nm-dispatcher[2278]: Removing default via 10.0.2.2 dev enp0s3 proto static metric 100
Dec 01 14:48:50 localhost.localdomain nm-dispatcher[2278]: default via 10.10.0.1 dev enp0s8 proto static metric 101
Dec 01 14:48:50 prelude-manager-oss nm-dispatcher[2278]: req:13 'hostname': new request (6 scripts)
Dec 01 14:48:50 prelude-manager-oss nm-dispatcher[2278]: Removing default via 10.10.0.1 dev enp0s8 proto static metric 101
Dec 01 14:48:50 localhost.localdomain nm-dispatcher[2278]: req:14 'connectivity-change': new request (6 scripts)
Dec 01 14:48:50 localhost.localdomain nm-dispatcher[2278]: req:15 'hostname': new request (6 scripts)
Dec 01 14:48:50 localhost.localdomain nm-dispatcher[2278]: Configuring the default route for enp0s8 interface via 10.10.0.1 gateway
Dec 01 14:48:50 prelude-manager-oss nm-dispatcher[2278]: req:16 'connectivity-change': new request (6 scripts)
Dec 01 14:48:50 localhost.localdomain nm-dispatcher[2278]: req:17 'connectivity-change': new request (6 scripts)
Dec 01 14:48:50 localhost.localdomain nm-dispatcher[2278]: req:18 'hostname': new request (6 scripts)
Dec 01 14:48:50 localhost.localdomain nm-dispatcher[2278]: req:19 'hostname': new request (6 scripts)

Steps to Reproduce

  1. vagrant up gateway
  2. vagrant up kafka
  3. vagrant ssh kafka
  4. sudo journalctl -u NetworkManager-dispatcher

Expected behavior: see evidence of dispatcher.d scripts running

Actual behavior: scripts are not executed

Reproduces how often: always

Additional Information

N/A

References

N/A