cae4740ee2
This patch adds a new configure_safe_defaults function that is called on EXIT. If the exit code is non-zero the function executes code to configure DHCP on all active interfaces. Since DHCP is used to initially bootstrap all TripleO instances via the provisioning network this should always be a safe default and allow communication with Heat to persist if an invalid (breaking) network configuration change is pushed out. This would facilitate immediate Heat notification of the failure and subsequent Heat updates to potentially help correct the invalid network configuration. Change-Id: Ibccba1ee77aa13c85a78a75d2e6cd179f87d7d16 Depends-on: Ibe0e32bc09979bc68b92a722b2bfa383e77502a9 |
||
---|---|---|
.. | ||
environment.d | ||
install.d/os-net-config-source-install | ||
os-apply-config/etc/os-net-config | ||
os-refresh-config/configure.d | ||
README.md | ||
element-deps | ||
package-installs.yaml | ||
pkg-map |
README.md
Install, configure, and (optionally) run os-net-config.
Installs os-net-config and configures a JSON formatted config file at /etc/os-net-config/config.json. The os-net-config command is only executed if configuration metadata is provided.
Configuration
os_net_config: JSON (or YAML) metadata in the os-net-config format.
Config Examples:
{ "os_net_config":
{ "network_config": [
{
"type": "ovs_bridge",
"name": "br-ctlplane",
"use_dhcp": "true",
"primary": "true",
"members": [
{
"type": "interface",
"name": "em1"
}
]
}
]}
}