Bug 1665153

Summary: [host-deploy] static ipv6 is not kept after deploy and change to autoconf
Product: [oVirt] ovirt-engine Reporter: Roni <reliezer>
Component: BLL.NetworkAssignee: Dan Kenigsberg <danken>
Status: CLOSED NOTABUG QA Contact: Michael Burman <mburman>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.3.0CC: bugs, dholler, reliezer
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-01-14 11:46:16 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:
Bug Depends On: 1683597    
Bug Blocks: 1403675    
Description Flags
add static ipv6 host logs none

Description Roni 2019-01-10 15:19:24 UTC
Created attachment 1519853 [details]
add static ipv6 host logs

Description of problem:
After adding a static IPv6 host to Engine, its ipv6 setting is changed to AutoConf

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Install RHVH product
2. Disable IPv4 and enable static IPv6
   BOOTPROTO="none"     <- disable IPv4, default was ‘dhcp’ 
   IPV6_AUTOCONF="no"   <- disable autoconf, default was ‘yes’
   IPV6ADDR=2620:52:0:2380:225:90ff:fec6:d982/64  <- add IPv6 static address
3. Restart network: “systemctl restart network“
4. At the Engine, go to Compute | Hosts and click the New button
5. Choose the right Cluster, set name & password
6. Enter the host IPv6 address at the ‘hostname’ field
7. Go to  the Hosted Engine tab and choose Deploy
8. Click Ok to start adding the host

Actual results:
Host IPv6 setting is configured as 'AutoConf'

Expected results:
Host IPv6 setting is configured as 'Static'

Additional info:

Comment 1 Dominik Holler 2019-01-11 17:24:38 UTC
Now I recognize that the return value of the first call of getCapabilities contains
'enp1s0f0': {u'ipv6autoconf': True
This means VDSM did not see the static config, even if the config file looks like this.
We have to check if “systemctl restart network“ applied the IPV6_AUTOCONF="no".
The content of
has to be 0.

Comment 3 Roni 2019-01-14 11:06:16 UTC
Hi Dominik

After restarting the network service through systemctl, and also after reboot,
The content of the above keys is '1' and not '0' as you expected!

It seems that NM_CONTROLLED="no" should be also added to the ifcfg-* file
and as suggested at https://access.redhat.com/solutions/44839 
HWADDR=<NIC MAC> should be added as well.
After adding those two keys and restart network then the content of 
the above keys were changed to '0'