Bug 1228322 - systemd kills dhclient when supervdsm is stopped
Summary: systemd kills dhclient when supervdsm is stopped
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: oVirt
Classification: Retired
Component: vdsm
Version: 3.5
Hardware: Unspecified
OS: Unspecified
medium
high
Target Milestone: ---
: 3.5.5
Assignee: Ido Barkan
QA Contact: Michael Burman
URL:
Whiteboard: network
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-06-04 15:27 UTC by Max Kovgan
Modified: 2016-02-10 19:36 UTC (History)
15 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
rhel7.1 [most probably any systemd based OS] Discovered on: vdsm-4.17.0.4-1.el7ev.noarch Seems to be valid for master too.
Last Closed: 2015-11-11 10:06:24 UTC
oVirt Team: Network
Embargoed:


Attachments (Terms of Use)
sosreport (7.14 MB, application/octet-stream)
2015-06-04 15:27 UTC, Max Kovgan
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 43005 0 master NEW net: run dhclient in its own process group. Never
oVirt gerrit 43852 0 ovirt-3.5 MERGED net: backport cmdutils.systemd_run Never
oVirt gerrit 43853 0 ovirt-3.5 MERGED net: run dhclient in its own process group. Never

Description Max Kovgan 2015-06-04 15:27:43 UTC
Created attachment 1034781 [details]
sosreport

Description of problem:
hosts running affected code with DHCP configured interfaces, upon supervdsmd death will not renew the lease after its expiry
i.e. disconnect from the management network


Version-Release number of selected component (if applicable):
discovered on vdsm-4.17.0.4-1.el7ev.noarch and 4.16.x vdsm hosts,
master is affected too.

How reproducible:
It was discovered upon host reinstallation in d/s jenkins jobs that did
yum remove vdsm*,
and then install the 

Steps to Reproduce:
1.setup host with rhevm configured via dhcp [default config]
2.login into host and run:
systemctl stop supervdsm
3.wait for lease to expire

Actual results:
Upon supervdsm service stopped (or killed) dhclient is dead [killed on duty by systemd]

host disconnects after the lease expires.

Expected results:
network connectivity unaffected


Additional info:

Comment 1 Dan Kenigsberg 2015-06-05 11:23:29 UTC
Reproduction:

1. Use setupNetworks to define a network with dhcp. This creates a dhclient process that extends the lease when needed.
2. if supervdsmd is stopped (due to a bug or an upgrade or an admin decision) dhclient is killed (and the lease would not be extended).
3. even if vdsm is restarted, it does not re-create the dhclient process

Comment 2 Dan Kenigsberg 2015-06-07 09:16:31 UTC
This is awfully similar to bug 1201355, and a similart hack - of running ifup in a separate cgroup - may fix it.

Comment 3 Michael Burman 2015-09-21 07:44:40 UTC
Tested and Verified with - 

vdsm-4.17.7-1.el7ev.noarch
vdsm-4.16.27-1.el7ev.x86_64


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