Bug 745541 - rpcbind and nfslock services should be started after network setup
Summary: rpcbind and nfslock services should be started after network setup
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: ovirt-node
Version: 6.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Alan Pevec
QA Contact: Virtualization Bugs
URL:
Whiteboard:
: 738120 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-12 16:15 UTC by Andrew Cathrow
Modified: 2014-09-07 22:54 UTC (History)
14 users (show)

Fixed In Version: ovirt-node-2.0.2-0.11.2.gitd5468d8.el6.src.rpm
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-12-06 19:29:21 UTC
Target Upstream Version:


Attachments (Terms of Use)
Proposed patch (1.08 KB, patch)
2011-10-12 16:40 UTC, Alan Pevec
jboggs: review+
Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:1783 0 normal SHIPPED_LIVE rhev-hypervisor6 bug fix and enhancement update 2011-12-06 15:10:54 UTC

Description Andrew Cathrow 2011-10-12 16:15:53 UTC
NETWORKING is set to no in /etc/sysconfig/network until networking has been configured at which point it's set to yes.
This means that the rpcbind and nfslock services are not started on bootup.

After network configuration is competed and NETWORKING is set to yes we should start these services.

Comment 1 Alan Pevec 2011-10-12 16:29:28 UTC
Here are all services checking if network is configured before starting up, we should start them all:

# grep NETWORKING /etc/rc3.d/S*
/etc/rc3.d/S10network:[ "${NETWORKING}" = "no" ] && exit 6
/etc/rc3.d/S13rpcbind:	[ "$NETWORKING" = "yes" ] || exit 6
/etc/rc3.d/S14nfslock:	[ "${NETWORKING}" = "no" ] && exit 6
/etc/rc3.d/S18rpcidmapd:	[ "${NETWORKING}" != "yes" ] && exit 6
/etc/rc3.d/S19rpcgssd:	[ "${NETWORKING}" != "yes" ] && exit 6
/etc/rc3.d/S57ntpdate:	[ "$NETWORKING" = "no" ] && exit 1
/etc/rc3.d/S58ntpd:	[ "$NETWORKING" = "no" ] && exit 1

Comment 2 Alan Pevec 2011-10-12 16:32:12 UTC
We actually do that for ntp* services already (in network.py):
            log("\nStarting Network service")
            os.system("service network start &> /dev/null")
            os.system("service ntpdate start &> /dev/null")
            os.system("service ntpd start &> /dev/null")

Comment 3 Alan Pevec 2011-10-12 16:40:32 UTC
Created attachment 527738 [details]
Proposed patch

Comment 4 Dan Kenigsberg 2011-10-12 20:36:18 UTC
*** Bug 738120 has been marked as a duplicate of this bug. ***

Comment 8 Guohua Ouyang 2011-10-13 03:10:24 UTC
Verified on 6.2-20111010.2:
1. before network setup, rpcbind & nfslock services are stopped.
2. then setup the network, rpcbind & nfslock services' are running.
3. register to rhevm and add nfs storage successfully.

so set bug status to be verified.

Comment 9 Alan Pevec 2011-10-14 13:14:25 UTC
Missed /etc/init.d/iscsid

    # if the network isn't up yet exit cleanly, NetworkManager will call us
    # again when the network is up
    [ ! -f /var/lock/subsys/network -a ! -f /var/lock/subsys/NetworkManager ] &&
 exit 0

Comment 10 Mike Burns 2011-10-14 13:51:12 UTC
(In reply to comment #9)
> Missed /etc/init.d/iscsid
> 
>     # if the network isn't up yet exit cleanly, NetworkManager will call us
>     # again when the network is up
>     [ ! -f /var/lock/subsys/network -a ! -f /var/lock/subsys/NetworkManager ]
> &&
>  exit 0

This is not really needed.  vdsm runs iscsiadm which should start iscsi daemon as needed.

Comment 11 errata-xmlrpc 2011-12-06 19:29:21 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2011-1783.html


Note You need to log in before you can comment on or make changes to this bug.