<div dir="ltr"><div><div><div>Adding more details on the fact that I was unable to chkconfig OFF network.service<br><br>[root@rhsdev1 multi-user.target.wants]# systemctl status network.service <br>network.service - LSB: Bring up/down networking<br> Loaded: loaded (/etc/rc.d/init.d/network)<br> Active: failed (Result: exit-code) since Tue 2014-12-30 17:13:10 IST; 17min ago<br><br>Dec 30 17:13:08 <a href="http://rhsdev1.lab.eng.blr.redhat.com">rhsdev1.lab.eng.blr.redhat.com</a> dhclient[2169]: DHCPDISCOVER on em1 to 255.255.255.255 port 67 interval 11 (xid=0x35011ab0)<br>Dec 30 17:13:08 <a href="http://rhsdev1.lab.eng.blr.redhat.com">rhsdev1.lab.eng.blr.redhat.com</a> dhclient[2169]: DHCPREQUEST on em1 to 255.255.255.255 port 67 (xid=0x35011ab0)<br>Dec 30 17:13:08 <a href="http://rhsdev1.lab.eng.blr.redhat.com">rhsdev1.lab.eng.blr.redhat.com</a> dhclient[2169]: DHCPOFFER from 10.70.47.254<br>Dec 30 17:13:08 <a href="http://rhsdev1.lab.eng.blr.redhat.com">rhsdev1.lab.eng.blr.redhat.com</a> dhclient[2169]: DHCPACK from 10.70.47.254 (xid=0x35011ab0)<br>Dec 30 17:13:10 <a href="http://rhsdev1.lab.eng.blr.redhat.com">rhsdev1.lab.eng.blr.redhat.com</a> dhclient[2169]: bound to 10.70.45.1 -- renewal in 38250 seconds.<br>Dec 30 17:13:10 <a href="http://rhsdev1.lab.eng.blr.redhat.com">rhsdev1.lab.eng.blr.redhat.com</a> network[1964]: Determining IP information for em1... done.<br>Dec 30 17:13:10 <a href="http://rhsdev1.lab.eng.blr.redhat.com">rhsdev1.lab.eng.blr.redhat.com</a> network[1964]: [ OK ]<br>Dec 30 17:13:10 <a href="http://rhsdev1.lab.eng.blr.redhat.com">rhsdev1.lab.eng.blr.redhat.com</a> systemd[1]: network.service: control process exited, code=exited status=1<br>Dec 30 17:13:10 <a href="http://rhsdev1.lab.eng.blr.redhat.com">rhsdev1.lab.eng.blr.redhat.com</a> systemd[1]: Failed to start LSB: Bring up/down networking.<br>Dec 30 17:13:10 <a href="http://rhsdev1.lab.eng.blr.redhat.com">rhsdev1.lab.eng.blr.redhat.com</a> systemd[1]: Unit network.service entered failed state.<br><br>[root@rhsdev1 multi-user.target.wants]# chkconfig network on<br><br>[root@rhsdev1 multi-user.target.wants]# chkconfig network<br><br>[root@rhsdev1 multi-user.target.wants]# service network status<br>Configured devices:<br>lo br-ex em1 em2<br>Currently active devices:<br>lo em1 virbr0<br><br>[root@rhsdev1 multi-user.target.wants]# systemctl disable network.service<br>network.service is not a native service, redirecting to /sbin/chkconfig.<br>Executing /sbin/chkconfig network off<br><br>[root@rhsdev1 multi-user.target.wants]# systemctl enable network.service<br>network.service is not a native service, redirecting to /sbin/chkconfig.<br>Executing /sbin/chkconfig network on<br>The unit files have no [Install] section. They are not meant to be enabled<br>using systemctl.<br>Possible reasons for having this kind of units are:<br>1) A unit may be statically enabled by being symlinked from another unit's<br> .wants/ or .requires/ directory.<br>2) A unit's purpose may be to act as a helper for some other unit which has<br> a requirement dependency on it.<br>3) A unit may be started when needed via activation (socket, path, timer,<br> D-Bus, udev, scripted systemctl call, ...).<br><br><br></div><b>But the interesting news is that, post system reboot:<br><br></b></div> I have NM disabled, network service failed state, but still networking works for my server<br>I am able to ping it, ssh into it, both inbound and outbound networking are working fine<br><br>If both NM and network service are down, whats managing the networking here ? <br></div>Is there some other systemd target/unit file that I need to enable instead of network.service ?<br><div><br>thanx,<br>deepak<br><div><div><br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 30, 2014 at 11:41 AM, Deepak Shetty <span dir="ltr"><<a href="mailto:dpkshetty@gmail.com" target="_blank">dpkshetty@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Mon, Dec 29, 2014 at 9:04 PM, Patrick Laimbock <span dir="ltr"><<a href="mailto:patrick@laimbock.com" target="_blank">patrick@laimbock.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span>On 29-12-14 15:39, Deepak Shetty wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
> You need to disable NetworkManager and enable network service. Before<br>
you run Packstack you will also need to setup the ifcfg-XXXX network<br>
interfaces on all nodes and activate them.<br>
<br>
Why can't packstack handle this itself if it doesn't support NM? I m<br>
</blockquote>
<br></span>
Ask the developers. Patches welcome.<span><br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
concerned about the manual steps involved and losing on my n/w<br>
connections in case i do anything wrong.<br>
</blockquote>
<br></span>
Yes that's a risk so make sure to have the steps figured out before doing anything. Having direct access to a (serial) console comes in handy if things fall apart.<span><br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Is there any reference on how<br>
to do this, i couldn't find anything specific on the quickstart page.<br>
</blockquote>
<br></span>
I'm not aware of an RDO guide on this subject. The steps on each node are:<br>
- create appropriate ifcfg-XXX files<br>
- stop NetworkManager<br>
- disable NetworkManager<br>
- enable network<br>
- start network<br>
<br>
You probably want to do the last 4 steps in one long command or else you will loose connectivity after stopping NetworkManager if you are not using a console.</blockquote></span><div><br>My current ifcfg-em1 is :<br><br>[root@rhsdev1 network-scripts]# cat ifcfg-em1<br># Generated by dracut initrd<br>DEVICE="em1"<br>ONBOOT=yes<br>NETBOOT=yes<br>UUID="fd67c34e-9aad-44b7-a980-b5288ad3c442"<br>IPV6INIT=yes<br>BOOTPROTO=dhcp<br>HWADDR="c8:1f:66:c6:d5:fc"<br>TYPE=Ethernet<br>NAME="em1"<br><br></div><div>I did this:<br><br># systemctl stop NetworkManager.service ; chkconfig NetworkManager off; systemctl restart network.service ; chkconfig network on<br><br>Note: Forwarding request to 'systemctl disable NetworkManager.service'.<br>rm '/etc/systemd/system/multi-user.target.wants/NetworkManager.service'<br>rm '/etc/systemd/system/dbus-org.freedesktop.NetworkManager.service'<br>rm '/etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service'<br>Job for network.service failed. See 'systemctl status network.service' and 'journalctl -xn' for details.<br><br>[root@rhsdev1 network-scripts]# systemctl status network.service <br><span class="">network.service - LSB: Bring up/down networking<br> Loaded: loaded (/etc/rc.d/init.d/network)<br></span> Active: failed (Result: exit-code) since Tue 2014-12-30 17:01:00 IST; 30s ago<br><br>Dec 30 17:01:00 <a href="http://rhsdev1.lab.eng.blr.redhat.com" target="_blank">rhsdev1.lab.eng.blr.redhat.com</a> network[24948]: RTNETLINK answers: File exists<br>Dec 30 17:01:00 <a href="http://rhsdev1.lab.eng.blr.redhat.com" target="_blank">rhsdev1.lab.eng.blr.redhat.com</a> network[24948]: RTNETLINK answers: File exists<br>Dec 30 17:01:00 <a href="http://rhsdev1.lab.eng.blr.redhat.com" target="_blank">rhsdev1.lab.eng.blr.redhat.com</a> network[24948]: RTNETLINK answers: File exists<br>Dec 30 17:01:00 <a href="http://rhsdev1.lab.eng.blr.redhat.com" target="_blank">rhsdev1.lab.eng.blr.redhat.com</a> network[24948]: RTNETLINK answers: File exists<br>Dec 30 17:01:00 <a href="http://rhsdev1.lab.eng.blr.redhat.com" target="_blank">rhsdev1.lab.eng.blr.redhat.com</a> network[24948]: RTNETLINK answers: File exists<br>Dec 30 17:01:00 <a href="http://rhsdev1.lab.eng.blr.redhat.com" target="_blank">rhsdev1.lab.eng.blr.redhat.com</a> network[24948]: RTNETLINK answers: File exists<br>Dec 30 17:01:00 <a href="http://rhsdev1.lab.eng.blr.redhat.com" target="_blank">rhsdev1.lab.eng.blr.redhat.com</a> network[24948]: RTNETLINK answers: File exists<br>Dec 30 17:01:00 <a href="http://rhsdev1.lab.eng.blr.redhat.com" target="_blank">rhsdev1.lab.eng.blr.redhat.com</a> systemd[1]: network.service: control process exited, code=exited status=1<br>Dec 30 17:01:00 <a href="http://rhsdev1.lab.eng.blr.redhat.com" target="_blank">rhsdev1.lab.eng.blr.redhat.com</a> systemd[1]: Failed to start LSB: Bring up/down networking.<br>Dec 30 17:01:00 <a href="http://rhsdev1.lab.eng.blr.redhat.com" target="_blank">rhsdev1.lab.eng.blr.redhat.com</a> systemd[1]: Unit network.service entered failed state.<br><br></div><div>I modified em1 to:<br><br>[root@rhsdev1 network-scripts]# cat ifcfg-em1<br># Generated by dracut initrd<br>DEVICE="em1"<br>ONBOOT=yes<br>NETBOOT=yes<br>UUID="fd67c34e-9aad-44b7-a980-b5288ad3c442"<br>IPV6INIT=yes<br>BOOTPROTO=dhcp<br>#HWADDR="c8:1f:66:c6:d5:fc"<br>NM_CONTROLLED=no<br>TYPE=Ethernet<br>NAME="em1"<br><br>[root@rhsdev1 network-scripts]# service network restart <br>Restarting network (via systemctl): Job for network.service failed. See 'systemctl status network.service' and 'journalctl -xn' for details.<br> [FAILED]<br>[root@rhsdev1 network-scripts]# systemctl restart network.service <br>Job for network.service failed. See 'systemctl status network.service' and 'journalctl -xn' for details.<br>[root@rhsdev1 network-scripts]# systemctl status network.service <br><span class="">network.service - LSB: Bring up/down networking<br> Loaded: loaded (/etc/rc.d/init.d/network)<br></span> Active: failed (Result: exit-code) since Tue 2014-12-30 17:07:34 IST; 6s ago<br> Process: 26318 ExecStart=/etc/rc.d/init.d/network start (code=exited, status=1/FAILURE)<br><br>Dec 30 17:07:34 <a href="http://rhsdev1.lab.eng.blr.redhat.com" target="_blank">rhsdev1.lab.eng.blr.redhat.com</a> network[26318]: RTNETLINK answers: File exists<br>Dec 30 17:07:34 <a href="http://rhsdev1.lab.eng.blr.redhat.com" target="_blank">rhsdev1.lab.eng.blr.redhat.com</a> network[26318]: RTNETLINK answers: File exists<br>Dec 30 17:07:34 <a href="http://rhsdev1.lab.eng.blr.redhat.com" target="_blank">rhsdev1.lab.eng.blr.redhat.com</a> network[26318]: RTNETLINK answers: File exists<br>Dec 30 17:07:34 <a href="http://rhsdev1.lab.eng.blr.redhat.com" target="_blank">rhsdev1.lab.eng.blr.redhat.com</a> network[26318]: RTNETLINK answers: File exists<br>Dec 30 17:07:34 <a href="http://rhsdev1.lab.eng.blr.redhat.com" target="_blank">rhsdev1.lab.eng.blr.redhat.com</a> network[26318]: RTNETLINK answers: File exists<br>Dec 30 17:07:34 <a href="http://rhsdev1.lab.eng.blr.redhat.com" target="_blank">rhsdev1.lab.eng.blr.redhat.com</a> network[26318]: RTNETLINK answers: File exists<br>Dec 30 17:07:34 <a href="http://rhsdev1.lab.eng.blr.redhat.com" target="_blank">rhsdev1.lab.eng.blr.redhat.com</a> network[26318]: RTNETLINK answers: File exists<br>Dec 30 17:07:34 <a href="http://rhsdev1.lab.eng.blr.redhat.com" target="_blank">rhsdev1.lab.eng.blr.redhat.com</a> systemd[1]: network.service: control process exited, code=exited status=1<br>Dec 30 17:07:34 <a href="http://rhsdev1.lab.eng.blr.redhat.com" target="_blank">rhsdev1.lab.eng.blr.redhat.com</a> systemd[1]: Failed to start LSB: Bring up/down networking.<br>Dec 30 17:07:34 <a href="http://rhsdev1.lab.eng.blr.redhat.com" target="_blank">rhsdev1.lab.eng.blr.redhat.com</a> systemd[1]: Unit network.service entered failed state.<br><br></div><div><b>So in short, disabling NM and enabling/restarting network isn't working as my network service is getting into error state<br><br></b>thanx,<br>deepak<b><br></b></div><span class=""><div><br><br><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div><br>
<br>
HTH,<br>
Patrick<br>
<br>
______________________________<u></u>_________________<br>
Rdo-list mailing list<br>
<a href="mailto:Rdo-list@redhat.com" target="_blank">Rdo-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/rdo-list" target="_blank">https://www.redhat.com/<u></u>mailman/listinfo/rdo-list</a><br>
</div></div></blockquote></span></div><br></div></div>
</blockquote></div><br></div>