Bug 1122477

Summary: vdsm kills dhclient and fail to restart a persistent new dhclient
Product: [Retired] oVirt Reporter: Meni Yakove <myakove>
Component: vdsmAssignee: Antoni Segura Puimedon <asegurap>
Status: CLOSED CURRENTRELEASE QA Contact: Martin Pavlik <mpavlik>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.5CC: bazulay, danken, ecohen, gklein, iheim, mgoldboi, mpavlik, rbalakri, yeylon
Target Milestone: ---Keywords: Triaged
Target Release: 3.5.0   
Hardware: x86_64   
OS: Linux   
Whiteboard: network
Fixed In Version: 4.16.2 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-10-17 12:35:42 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Network RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Meni Yakove 2014-07-23 11:15:29 UTC
Description of problem:
getVdsCaps report 'bootproto4': 'none' when ifcfg-ovirtmgmt have BOOTPROTO=dhcp 

ifcfg-ovirtmgmt:
# Generated by VDSM version 4.16.0-27.git00146ed.el6
DEVICE=ovirtmgmt
ONBOOT=no
TYPE=Bridge
DELAY=0
STP=off
BOOTPROTO=dhcp
MTU=1500
DEFROUTE=yes
NM_CONTROLLED=no
HOTPLUG=no



getVdsCaps:
'ovirtmgmt': {'addr': '10.35.128.17',
                                  'bootproto4': 'none',
                                  'bridged': True,
                                  'cfg': {'BOOTPROTO': 'none',
                                          'DEFROUTE': 'yes',
                                          'DELAY': '0',
                                          'DEVICE': 'ovirtmgmt',
                                          'HOTPLUG': 'no',
                                          'MTU': '1500',
                                          'NM_CONTROLLED': 'no',
                                          'ONBOOT': 'no',
                                          'STP': 'off',
                                          'TYPE': 'Bridge'},
                                  'gateway': '10.35.128.254',
                                  'iface': 'ovirtmgmt',
                                  'ipv4addrs': ['10.35.128.17/24'],
                                  'ipv6addrs': ['fe80::216:36ff:fe84:745e/64'],
                                  'ipv6gateway': '::',
                                  'mtu': '1500',
                                  'netmask': '255.255.255.0',
                                  'ports': ['eth0'],
                                  'stp': 'off'}}


happen when lease has expired on ovirtmgmt network:
cat /var/lib/dhclient/dhclient-ovirtmgmt.leases 
lease {
  interface "ovirtmgmt";
  fixed-address 10.35.128.17;
  filename "pxelinux.0";
  option subnet-mask 255.255.255.0;
  option time-offset 1;
  option dhcp-lease-time 43200;
  option routers 10.35.128.254;
  option dhcp-message-type 5;
  option dhcp-server-identifier 10.35.28.1;
  option domain-name-servers 10.35.64.1;
  option broadcast-address 10.35.128.255;
  option ntp-servers 10.35.28.1,10.35.255.6;
  option domain-name "qa.lab.tlv.redhat.com lab.tlv.redhat.com tlv.redhat.com redhat.com";
  renew 3 2014/07/09 11:54:28;
  rebind 3 2014/07/09 17:13:38;
  expire 3 2014/07/09 18:43:38;
}
lease {
  interface "ovirtmgmt";
  fixed-address 10.35.128.17;
  filename "pxelinux.0";
  option subnet-mask 255.255.255.0;
  option time-offset 1;
  option routers 10.35.128.254;
  option dhcp-lease-time 43200;
  option dhcp-message-type 5;
  option domain-name-servers 10.35.64.1;
  option dhcp-server-identifier 10.35.28.1;
  option ntp-servers 10.35.28.1,10.35.255.6;
  option broadcast-address 10.35.128.255;
  option domain-name "qa.lab.tlv.redhat.com lab.tlv.redhat.com tlv.redhat.com redhat.com";
  renew 0 2014/07/20 15:47:09;
  rebind 0 2014/07/20 20:26:55;
  expire 0 2014/07/20 21:56:55;
}



Version-Release number of selected component (if applicable):
vdsm-4.16.0-27.git00146ed.el6.x86_64

How reproducible:
100%

Steps to Reproduce:
1.run vdsClient getVdsCaps

Comment 1 Martin Pavlik 2014-10-08 06:20:55 UTC
works ok in vt5 (vdsm-4.16.6-1.el6ev.x86_64)

bridges = {'rhevm': {'addr': '10.34.66.51',
	                     'cfg': {'BOOTPROTO': 'dhcp',
	                             'DEFROUTE': 'yes',
	                             'DELAY': '0',
	                             'DEVICE': 'rhevm',
	                             'HOTPLUG': 'no',
	                             'MTU': '1500',
	                             'NM_CONTROLLED': 'no',
	                             'ONBOOT': 'yes',
	                             'STP': 'off',
	                             'TYPE': 'Bridge'},


[root@dell-r210ii-05 ~]# cat /var/lib/dhclient/dhclient-rhevm.leases 
lease {
  interface "rhevm";
  fixed-address 10.34.66.51;
  filename "/pxelinux.0";
  option subnet-mask 255.255.255.0;
  option routers 10.34.66.254;
  option dhcp-lease-time 21600;
  option dhcp-message-type 5;
  option domain-name-servers 10.34.63.228,10.34.63.229;
  option dhcp-server-identifier 10.34.63.227;
  option ntp-servers 10.34.32.125;
  option domain-name "rhev.lab.eng.brq.redhat.com";
  renew 2 2014/10/07 17:00:21;
  rebind 2 2014/10/07 19:58:14;
  expire 2 2014/10/07 20:43:14;
}
lease {
  interface "rhevm";
  fixed-address 10.34.66.51;
  filename "/pxelinux.0";
  option subnet-mask 255.255.255.0;
  option routers 10.34.66.254;
  option dhcp-lease-time 21600;
  option dhcp-message-type 5;
  option domain-name-servers 10.34.63.228,10.34.63.229;
  option dhcp-server-identifier 10.34.63.227;
  option ntp-servers 10.34.32.125;
  option domain-name "rhev.lab.eng.brq.redhat.com";
  renew 2 2014/10/07 19:51:18;
  rebind 2 2014/10/07 22:15:23;
  expire 2 2014/10/07 23:00:23;
}
lease {
  interface "rhevm";
  fixed-address 10.34.66.51;
  filename "/pxelinux.0";
  option subnet-mask 255.255.255.0;
  option routers 10.34.66.254;
  option dhcp-lease-time 21600;
  option dhcp-message-type 5;
  option domain-name-servers 10.34.63.228,10.34.63.229;
  option dhcp-server-identifier 10.34.63.227;
  option ntp-servers 10.34.32.125;
  option domain-name "rhev.lab.eng.brq.redhat.com";
  renew 2 2014/10/07 22:16:09;
  rebind 3 2014/10/08 01:06:18;
  expire 3 2014/10/08 01:51:18;
}
lease {
  interface "rhevm";
  fixed-address 10.34.66.51;
  filename "/pxelinux.0";
  option subnet-mask 255.255.255.0;
  option routers 10.34.66.254;
  option dhcp-lease-time 21600;
  option dhcp-message-type 5;
  option domain-name-servers 10.34.63.228,10.34.63.229;
  option dhcp-server-identifier 10.34.63.227;
  option ntp-servers 10.34.32.125;
  option domain-name "rhev.lab.eng.brq.redhat.com";
  renew 3 2014/10/08 01:01:23;
  rebind 3 2014/10/08 03:31:09;
  expire 3 2014/10/08 04:16:09;

Comment 2 Sandro Bonazzola 2014-10-17 12:35:42 UTC
oVirt 3.5 has been released and should include the fix for this issue.