Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Customer]Makes xCAT support NetworkManager in CentOS7 #104

Closed
onimsha opened this issue Aug 20, 2015 · 11 comments
Closed

[Customer]Makes xCAT support NetworkManager in CentOS7 #104

onimsha opened this issue Aug 20, 2015 · 11 comments

Comments

@onimsha
Copy link

onimsha commented Aug 20, 2015

From RHEL/CENTOS 7, NetworkManager was default, hence it makes some problems with xCAT:

  1. setroute won't work if we add a routenames with net=0.0.0.0 (for setup default gw via setroute)
  2. /etc/sysconfig/static-routes wont apply on boot

Workaround is disable NetworkManager, but is there any possibilities xCAT configure routes via Network Manager?

@daniceexi
Copy link
Contributor

  1. We considered that using networkManager to manage all the network configuration. But from some customers that networkManager is not stable too. So we are looking that if there issues that cannot be handled without NetworkManager, we will migrate to NetworkManager.
  2. The NetworkManager is disabled by xCAT after node deployment. Could you check the status of it, and how about reboot your node?

@whowutwut
Copy link
Member

Are you only trying to configure the default gateway for the machines OR trying to set up routing to different networks provided by multiple network interfaces?
i.e eth0 -> 10.X network, eth1 -> 20.X network.. etc...

@onimsha
Copy link
Author

onimsha commented Aug 21, 2015

@daniceexi : Actually i wrote a postscript for disabling NetworkManager
@whowutwut : Both, i manage default gateway and static routes via setroute and noderes.routenames

@daniceexi
Copy link
Contributor

@immarvin
Could you check why the NetworManager did not stop for CentOS7?

@whowutwut whowutwut self-assigned this Nov 5, 2015
@whowutwut whowutwut added this to the 2.12 milestone Nov 19, 2015
@whowutwut
Copy link
Member

We are looking at NetworkManager in the next release.

@tingtli tingtli changed the title Makes xCAT support NetworkManager in CentOS7 [Customer]Makes xCAT support NetworkManager in CentOS7 Mar 23, 2016
@daniceexi
Copy link
Contributor

We are working in the NetworkManager support for rh7. It will be ready in next release.

@daniceexi daniceexi modified the milestones: 2.12.1, 2.12 Apr 26, 2016
@daniceexi daniceexi modified the milestones: 2.12.2, 2.12.1 Jul 6, 2016
@immarvin
Copy link
Contributor

immarvin commented Aug 14, 2016

NetworkManager should have been disabledin the following commit:

commit 52061dd6623a8bf81dd9145653759428c1b89fd5
Author: ertaozh <ertaozh@cn.ibm.com>
Date:   Mon Apr 25 03:08:59 2016 -0400

    Fix issue 942:[PCM] CN IP loss after 12 hours due to the dhcp.lease timeout value 43200

diff --git a/xCAT-server/share/xcat/install/scripts/post.rhels7 b/xCAT-server/share/xcat/install/scripts/post.rhels7
index b34d7d0..3b36dfe 100644
--- a/xCAT-server/share/xcat/install/scripts/post.rhels7
+++ b/xCAT-server/share/xcat/install/scripts/post.rhels7
@@ -20,3 +20,11 @@ do
   #nic name change during the install and first_reboot
   sed -i '/HWADDR/d' $i
 done
+
+# NetworkManager will conflict with the configuring xcat do later in postboot script, so disable it in postscript 
+
+# There are 2 other service related to NetworkManager: NetworkManager-dispatcher and NetworkManager-wait-online
+# Both of them are triggered by NetworkManager, so just disable NetworkManager here
+if [ -f "/usr/lib/systemd/system/NetworkManager.service" ]; then
+    systemctl disable NetworkManager
+fi
diff --git a/xCAT/postscripts/xcatinstallpost b/xCAT/postscripts/xcatinstallpost
index 0eee2be..83d9a8e 100755
--- a/xCAT/postscripts/xcatinstallpost

hi @onimsha , would you please try the latest xcat build?

@immarvin immarvin modified the milestones: 2.12.3, 2.12.2 Aug 14, 2016
@whowutwut
Copy link
Member

@immarvin i think @onimsha is asking for xCAT team to support using NetworkManager to configure the network settings, instead of disabling it.

@immarvin
Copy link
Contributor

Disabling NetworkManager introduced some problem in rh7 diskless(see #1972), we should give this issue a higher priority

ping @whowutwut

@whowutwut whowutwut removed their assignment Mar 7, 2017
@samveen
Copy link
Member

samveen commented May 18, 2017

@immarvin What are the issues caused by NetworkManager with xCAT that it needs to be disabled? I ask this as I have a some supermicro servers with ixgbe driven cards, that fail to work with the legacy network service, but work fine with NetworkManager.

@immarvin
Copy link
Contributor

hi @samveen , seems this issue #942

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants