Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IP(v6) alias(es) support #911

Closed
OpenNebulaProject opened this issue Nov 20, 2017 · 9 comments
Closed

IP(v6) alias(es) support #911

OpenNebulaProject opened this issue Nov 20, 2017 · 9 comments

Comments

@OpenNebulaProject
Copy link


Author Name: Stefan Kooman (Stefan Kooman)
Original Redmine Issue: 3784, https://dev.opennebula.org/issues/3784
Original Date: 2015-04-30


This feature has been discussed before but somehow never made it to a feature request: http://lists.opennebula.org/pipermail/users-opennebula.org/2014-January/026313.html. The idea is to have the possibility to add IP(v6) alias(es) to a TEMPLATE and / or a running VM. This way it's possible to (still) have all addresses / leases managed by OpenNebula. Normally a "true" IP alias would get a subnet mask of "/32" (IPv4) or "/128" (IPv6). If the IP(v6) alias inherits the properties from the VNET / AR this subnet mask will not be correct. Ideally there would be an option to override the properties of the VNET / AR. To make this IP(v6) alias(es) work when "IP address hijack prevention" is active (openvswitch) a new OpenFlow rule needs to be added for every IP(v6) alias added (related issue #3181). If an alias would be added to a running VM a driver should be executed on the host the VM is running on to add this OpenFlow rule. Context scripts could be enhanced to automatically add the IP(v6) alias(es) (ip (-6) addr add ip/subnetmask dev interface). If it would be possible to override the mac-address in an AR reservation this could also solve the (virtual) ip-address / MAC (VRRP / CARP) problem.

@OpenNebulaProject
Copy link
Author


Original Redmine Comment
Author Name: Ruben S. Montero (@rsmontero)
Original Date: 2015-05-13T16:17:37Z


After some discussions in the forum, we've come out with the following design

NIC = [ NETWORK="public" NAME="main" ]
NIC = [ NETWORK="public" ALIAS="main" ]

Interface with ALIAS attribute will not be included in the deployment file for the hypervisor. But it would be included in context as an alias for the target NIC.

@OpenNebulaProject
Copy link
Author


Original Redmine Comment
Author Name: Stefan Kooman (Stefan Kooman)
Original Date: 2015-10-16T08:05:17Z


This feature does not (completely) solve the "(virtual) ip-address / MAC (VRRP / CARP)" problem. As it is currently not possible to request more than 1 "LEASE" from OpenNebula in a given AR / VNET. A special IP(6) could be introduced that has the ability to have > 1 LEASE (allow duplicates) and as such the VIP(6) be used in more than 1 VM.

@OpenNebulaProject
Copy link
Author


Original Redmine Comment
Author Name: Ruben S. Montero (@rsmontero)
Original Date: 2016-06-07T15:23:14Z


Stefan Kooman wrote:

This feature does not (completely) solve the "(virtual) ip-address / MAC (VRRP / CARP)" problem. As it is currently not possible to request more than 1 "LEASE" from OpenNebula in a given AR / VNET. A special IP(6) could be introduced that has the ability to have > 1 LEASE (allow duplicates) and as such the VIP(6) be used in more than 1 VM.

Stefan, looking back to this issue... I think this could be covered by the new Virtual Router component. Virtual router can be deployed in a HA configuration, with multiple VMs implementing the routing capabilities. The VR can request IP which are shared by all the VMs implementing the VR. IMHO this is very similar to VRRP and probably address this issue...

More here:

http://docs.opennebula.org/5.0/operation/network_management/vrouter.html

@OpenNebulaProject
Copy link
Author


Original Redmine Comment
Author Name: Ruben S. Montero (@rsmontero)
Original Date: 2016-06-07T15:29:17Z


Ruben S. Montero wrote:

Stefan Kooman wrote:

This feature does not (completely) solve the "(virtual) ip-address / MAC (VRRP / CARP)" problem. As it is currently not possible to request more than 1 "LEASE" from OpenNebula in a given AR / VNET. A special IP(6) could be introduced that has the ability to have > 1 LEASE (allow duplicates) and as such the VIP(6) be used in more than 1 VM.

Stefan, looking back to this issue... I think this could be covered by the new Virtual Router component. Virtual router can be deployed in a HA configuration, with multiple VMs implementing the routing capabilities. The VR can request IP which are shared by all the VMs implementing the VR. IMHO this is very similar to VRRP and probably address this issue...

More here:

http://docs.opennebula.org/5.0/operation/network_management/vrouter.html

In fact I think we are configuribg vrrp of keepalived for this

@rsmontero
Copy link
Member

OK, closing this because of the VR. We'll reopen if needed

@tinova
Copy link
Member

tinova commented May 17, 2018

Reopening to consider adding alias IPs to the same VM NIC

@al3xhh al3xhh self-assigned this Oct 29, 2018
al3xhh pushed a commit to al3xhh/one that referenced this issue Oct 31, 2018
   * Modify VM context generation.
   * Modify libvirt deployment file generation.
   * Modify detach nic functionality.
al3xhh pushed a commit that referenced this issue Nov 6, 2018
   * Modify VM context generation.
   * Modify libvirt deployment file generation.
   * Modify detach nic functionality.
al3xhh pushed a commit that referenced this issue Nov 6, 2018
   * Modify VM context generation.
   * Modify libvirt deployment file generation.
   * Modify detach nic functionality.
   * Modify attach nic functionality to do not allow attach alias.
al3xhh pushed a commit that referenced this issue Nov 14, 2018
   * Modify VM context generation.
   * Modify libvirt deployment file generation.
   * Modify detach nic functionality.
   * Modify attach nic functionality to do not allow attach alias.
al3xhh pushed a commit that referenced this issue Nov 15, 2018
   * Modify VM context generation.
   * Modify libvirt deployment file generation.
   * Modify detach nic functionality.
   * Modify attach nic functionality to do not allow attach alias.
al3xhh pushed a commit that referenced this issue Nov 15, 2018
   * Modify VM context generation.
   * Modify libvirt deployment file generation.
   * Modify detach nic functionality.
   * Modify atach nic to not call the driver.
   * Modify CLI nic-attach, so an alias can be attached.
al3xhh pushed a commit that referenced this issue Nov 15, 2018
   * Modify VM context generation.
   * Modify libvirt deployment file generation.
   * Modify detach nic functionality.
   * Modify atach nic to not call the driver.
   * Modify CLI nic-attach, so an alias can be attached.
al3xhh pushed a commit that referenced this issue Nov 15, 2018
   * Modify VM context generation.
   * Modify libvirt deployment file generation.
   * Modify detach nic functionality.
   * Modify atach nic to not call the driver.
   * Modify CLI nic-attach, so an alias can be attached.
al3xhh pushed a commit that referenced this issue Nov 19, 2018
   * Modify VM context generation.
   * Modify libvirt deployment file generation.
   * Modify detach nic functionality.
   * Modify atach nic to not call the driver.
   * Modify CLI nic-attach, so an alias can be attached.
al3xhh pushed a commit that referenced this issue Nov 19, 2018
   * Modify VM context generation.
   * Modify libvirt deployment file generation.
   * Modify detach nic functionality.
   * Modify atach nic to not call the driver.
   * Modify CLI nic-attach, so an alias can be attached.
al3xhh pushed a commit that referenced this issue Nov 19, 2018
   * Modify VM context generation.
   * Modify libvirt deployment file generation.
   * Modify detach nic functionality.
   * Modify atach nic to not call the driver.
   * Modify CLI nic-attach, so an alias can be attached.
al3xhh pushed a commit to al3xhh/one that referenced this issue Dec 14, 2018
    * Made changes in info tab.
    * Made changes in network tab, to attach/detach alias.
    * Made changes in VM template update/instantiate.
al3xhh pushed a commit to al3xhh/one that referenced this issue Dec 17, 2018
    * Made changes in info tab.
    * Made changes in network tab, to attach/detach alias.
    * Made changes in VM template update/instantiate.
al3xhh pushed a commit that referenced this issue Dec 17, 2018
    * Made changes in info tab.
    * Made changes in network tab, to attach/detach alias.
    * Made changes in VM template update/instantiate.
al3xhh pushed a commit to al3xhh/one that referenced this issue Dec 17, 2018
    * Made changes in info tab.
    * Made changes in network tab, to attach/detach alias.
    * Made changes in VM template update/instantiate.
al3xhh pushed a commit to al3xhh/one that referenced this issue Dec 17, 2018
    * Made changes in info tab.
    * Made changes in network tab, to attach/detach alias.
    * Made changes in VM template update/instantiate.
al3xhh pushed a commit that referenced this issue Dec 17, 2018
    * Made changes in info tab.
    * Made changes in network tab, to attach/detach alias.
    * Made changes in VM template update/instantiate.
al3xhh pushed a commit that referenced this issue Dec 19, 2018
    * Made changes in info tab.
    * Made changes in network tab, to attach/detach alias.
    * Made changes in VM template update/instantiate.
al3xhh pushed a commit that referenced this issue Dec 19, 2018
    * Made changes in info tab.
    * Made changes in network tab, to attach/detach alias.
    * Made changes in VM template update/instantiate.
rsmontero pushed a commit that referenced this issue Dec 20, 2018
* Made changes in info tab.
    * Made changes in network tab, to attach/detach alias.
    * Made changes in VM template update/instantiate.
al3xhh pushed a commit to al3xhh/one that referenced this issue Dec 20, 2018
rsmontero pushed a commit that referenced this issue Dec 21, 2018
@rsmontero rsmontero added this to the Release 5.8 milestone Jan 3, 2019
al3xhh pushed a commit to al3xhh/one that referenced this issue Jan 3, 2019
rsmontero pushed a commit that referenced this issue Jan 4, 2019
al3xhh pushed a commit to al3xhh/one that referenced this issue Jan 8, 2019
rsmontero pushed a commit that referenced this issue Jan 8, 2019
@tinova
Copy link
Member

tinova commented Feb 5, 2019

needs vcenter testing

@tinova tinova reopened this Feb 5, 2019
@tinova tinova assigned Semedi and unassigned al3xhh Feb 5, 2019
@tinova
Copy link
Member

tinova commented Feb 5, 2019

The section for CONTEXT support for vCenter needs validate & update

https://github.com/OpenNebula/docs/blob/master/source/operation/references/template.rst#context-section

@tinova
Copy link
Member

tinova commented Feb 8, 2019

vcenter validates

@tinova tinova closed this as completed Feb 8, 2019
rsmontero pushed a commit that referenced this issue Mar 11, 2021
Signed-off-by: Jorge Lobo <jlobo@opennebula.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants