Bug 1330217

Summary: [RFE] Enable configuring IPv6 in VM cloud-init
Product: [oVirt] ovirt-engine Reporter: Yevgeny Zaspitsky <yzaspits>
Component: BLL.VirtAssignee: eraviv
Status: CLOSED CURRENTRELEASE QA Contact: Vladimir <vshypygu>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.0.0CC: bugs, danken, eraviv, ipinto, mavital, mburman, michal.skrivanek, s.kieske, tjelinek, ylavi
Target Milestone: ovirt-4.2.1Keywords: FutureFeature
Target Release: ---Flags: rule-engine: ovirt-4.2+
mavital: testing_plan_complete+
ylavi: planning_ack+
danken: devel_ack+
mavital: testing_ack+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Cloud-Init supports IPv6 properties for initializing a virtual machine's network interfaces.
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-03-29 10:46:36 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:
Bug Depends On: 1497954, 1519271    
Bug Blocks: 1080725, 1424786    

Description Yevgeny Zaspitsky 2016-04-25 16:18:18 UTC
Enable configuring IPv6 properties for VM cloud-init in the similar way that is done in host setup network flow.
Here are the fields to be added:
* IPv6 address
* IPv6 prefix (0-128)
* IPv6 gateway
* IPv6 boot protocol (all IPv4 values + autoconf)

Comment 1 Michal Skrivanek 2016-05-24 07:45:41 UTC
as discussed offline, moving to networking.
Note: we don't want to reimplement a full cloud-init provisioning tool, rather we want to provide the most common things to configure. Your call which they are in context of network provisioning.
Detailed/obscure/uncommon things are handled by a passthrough of custom configuration file

Comment 2 Dan Kenigsberg 2017-02-26 12:40:10 UTC
doc change for this featurelet: https://github.com/oVirt/ovirt-site/pull/820

Comment 3 Israel Pinto 2017-06-19 10:10:38 UTC
Check with:
oVirt Engine Version: 4.2.0-0.0.master.20170609091031.gitc86d08a.el7.centos
cloud-init: cloud-init-0.7.2-3.el7.noarch

found problem with Static IPv6 address with subnet prefix and gateway
Fill BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1462654

Comment 4 Dan Kenigsberg 2017-09-05 10:54:45 UTC
Apparently, Fedora and CentOS's cloud-init does not handle our meta_data.json properly. We need to render it differently so it works well.

Comment 5 Red Hat Bugzilla Rules Engine 2017-09-05 10:54:50 UTC
Target release should be placed once a package build is known to fix a issue. Since this bug is not modified, the target version has been reset. Please use target milestone to plan a fix for a oVirt release.

Comment 8 eraviv 2017-11-12 07:02:51 UTC
the existing documentation for network interfaces is very limited.

https://access.redhat.com/documentation/en-us/red_hat_virtualization/4.1/html-single/virtual_machine_management_guide/#sect-Using_Cloud-Init_to_Automate_the_Configuration_of_Virtual_Machines
"""
11. Select the Network check box and use the + and - buttons to add or remove network interfaces to or from the virtual machine. 
"""
is all we have.

Before documenting IPv6 support, we need to document how in-guest networking is configured at all.

Most important bit to add is that when selecting "+" the user must specify the in-guest name of the network interface card he or she would like to configure (e.g. eth0). Then, it may be worthwhile adding that IPv4 and IPv6 boot protocol and addresses for the guest may be specified.

Comment 9 eraviv 2017-12-03 06:56:52 UTC
moving this back to development as cloud-init team requests that we align with openstack protocol on the dhcp names in network_data.json (should be ipv4_dhcp and ipv6_dhcp). see notes in BZ1519271.

Comment 10 eraviv 2017-12-20 08:34:04 UTC
aligned with ipvX_dhcp notation of openstack.
added blocker: 1519271

Comment 11 eraviv 2017-12-20 12:22:19 UTC
return to status 'modified' because there is not d/s for this for now.

Comment 12 Vladimir 2018-03-05 14:00:07 UTC
Verified on 
RHEV 4.2.2.1-0.1.el7
using cloud-init 0.7.9-23
Run full test plan

Comment 14 Sandro Bonazzola 2018-03-29 10:46:36 UTC
This bugzilla is included in oVirt 4.2.1 release, published on Feb 12th 2018.

Since the problem described in this bug report should be
resolved in oVirt 4.2.1 release, it has been closed with a resolution of CURRENT RELEASE.

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