Salt: CentOS 8 and networking state

Created on 27 Sep 2019  路  10Comments  路  Source: saltstack/salt

network.txt

Description of Issue

With latest salstack 2019 i can't find a way to manage networking on CentOS 8 with state.network, maybe because of CentOS8 rely on networkmanager

Setup

sls file attached, but with centos6 and centos7 it work without any issue.

Steps to Reproduce Issue

try to configure networking on CentOS8, no ifcfg-ifname is generated, and network dosen't work after reboot

Versions Report

Salt Version:
Salt: 2019.2.1

Dependency Versions:
cffi: 1.11.5
cherrypy: unknown
dateutil: 2.6.1
docker-py: Not Installed
gitdb: 2.0.3
gitpython: 2.1.11
ioflo: Not Installed
Jinja2: 2.10.1
libgit2: Not Installed
libnacl: Not Installed
M2Crypto: 0.33.0
Mako: Not Installed
msgpack-pure: Not Installed
msgpack-python: 0.6.1
mysql-python: Not Installed
pycparser: 2.14
pycrypto: Not Installed
pycryptodome: Not Installed
pygit2: Not Installed
Python: 3.6.8 (default, Jul 1 2019, 16:43:04)
python-gnupg: Not Installed
PyYAML: 3.12
PyZMQ: 17.0.0
RAET: Not Installed
smmap: 2.0.3
timelib: Not Installed
Tornado: 4.5.2
ZMQ: 4.3.1

System Versions:
dist: centos 8.0.1905 Core
locale: UTF-8
machine: x86_64
release: 4.18.0-80.7.1.el8_0.x86_64
system: Linux
version: CentOS Linux 8.0.1905 Core

Aluminium Bug CS-R1 CS-S2 ZD phase-execute severity-high status-to-do

All 10 comments

Debian 10 probably faces this issue as well.

Network scripts are deprecated in Red Hat Enterprise Linux 8 and they are no longer provided by default. The basic installation provides a new version of the ifup and ifdown scripts which call the NetworkManager service through the nmcli tool. In Red Hat Enterprise Linux 8, to run the ifup and the ifdown scripts, NetworkManager must be running.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.

馃

Thank you for updating this issue. It is no longer marked as stale.

While ifcfg style files are still available, to apply the changes, the network state will need to invoke NM. See https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/configuring_and_managing_networking/getting-started-with-managing-networking-with-networkmanager_configuring-and-managing-networking#Using-NetworkManager-with-sysconfig-files_getting-started-with-networking-devices-with-NetworkManager

ZD-5548.

de-scoping this for Magnesium as it will be a very large change and needs some specific planning, likewise we talked about an Epic around this broader topic and I will attempt to make that happen in the next week for all of the deprecated net-tools

Was this page helpful?
0 / 5 - 0 ratings