Assign floating IP to the vdu using TOSCA template.

Bug #1537636 reported by Aqsa Malik
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
tacker
Fix Released
Wishlist
sajuptpm

Bug Description

Tacker should assign floating ip directly from the tosca template. This will help in automating the configuration of VNFs and ease of access through SSH.

More details from sridhar_ram:

Users need the option of providing floating-ip (or Elastic IP in AWS term) in ConnectionPoint node_type of TOSCA VNF template. This setting is used to specify the externally reachable IP address for any given ConnectionPoint.

Current behavior:
There is no support to specify floating-up for VNF VM's vNICs in TOSCA templates

Todo:

Implement the 'floating_ip' parameter in templates by adding the new property to tacker_nfv_defs.yaml [1]. Note, TOSCA Simple Profile has an open jira item to add this in its future release. The 'name' of the parameter might need to evolve to support the one from TOSCA standard (and deprecate the current one).

[1] https://github.com/openstack/tacker/blob/master/tacker/vm/tosca/lib/tacker_nfv_defs.yaml#L61

Tags: rfe
zeih (zeih)
tags: added: rfe
Revision history for this message
Sridhar Ramaswamy (srics-r) wrote :

Quite a valid ask.

Changed in tacker:
importance: Undecided → Medium
Changed in tacker:
assignee: nobody → bharaththiruveedula (bharath-ves)
Revision history for this message
Sridhar Ramaswamy (srics-r) wrote :

Are you actively working on this ? If not can you please un-assign as another community member is interested in working on this.

description: updated
Changed in tacker:
assignee: bharaththiruveedula (bharath-ves) → Tin Lam (tl3438)
sajuptpm (sajuptpm)
Changed in tacker:
assignee: Tin Lam (tl3438) → sajuptpm (sajuptpm)
Revision history for this message
sajuptpm (sajuptpm) wrote :

http://docs.openstack.org/developer/heat/template_guide/openstack.html#OS::Nova::Server
Heat doc says that, property 'network' of OS::Nova::Server has option 'floating_ip'.
I have tried that, but getting following error

Error: ERROR: One of the properties "network", "port" or "subnet" should be set for the specified network of server "VDU1".

heat_template_version: 2016-10-14
description: 'Demo example'
parameters: {}
resources:
  VDU1:
    type: OS::Nova::Server
    properties:
      availability_zone: nova
      config_drive: false
      flavor: {get_resource: VDU1_flavor}
      image: cirros-0.3.4-x86_64-uec
      networks:
      - port:
          get_resource: CP1
      - floating_ip: <=========
          get_resource: FIP1
      user_data_format: SOFTWARE_CONFIG
  CP1:
    type: OS::Neutron::Port
    properties:
      network: net1
      port_security_enabled: false
  FIP1:
    type: OS::Neutron::FloatingIP
    properties:
      floating_ip_address: 192.168.56.246
      floating_network: public
  VDU1_flavor:
    properties: {disk: 1, ram: 512, vcpus: 2}
    type: OS::Nova::Flavor
outputs:
  mgmt_ip-VDU1:
    value:
      get_attr: [CP1, fixed_ips, 0, ip_address]

sajuptpm (sajuptpm)
Changed in tacker:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tacker (master)

Fix proposed to branch: master
Review: https://review.openstack.org/352123

Revision history for this message
sajuptpm (sajuptpm) wrote :

@Sridhar Ramaswamy
Could you please share the link of jira item which opend to floating_ip in tosca.nodes.network.Port

Changed in tacker:
importance: Medium → Wishlist
Revision history for this message
Amit Bhardwaj (bhardwajamit23) wrote :

Hi. Can anyone please comment if we can assign a floating IP address to VDU from an existing pool?
I am unable to find any useful link online to achieve the same.

Revision history for this message
Ashish (ashish235) wrote :

Yes, can anyone please give some pointers to allow assign floating IPs using TOSCA template for NFV.

Changed in tacker:
milestone: none → pike-1
Revision history for this message
sajuptpm (sajuptpm) wrote :
Revision history for this message
Sridhar Ramaswamy (srics-r) wrote :

Added some suggestion on the TOSCA template changes for floating ip in the above blueprint.

Changed in tacker:
milestone: pike-1 → pike-2
Changed in tacker:
milestone: pike-2 → pike-3
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tacker (master)

Reviewed: https://review.openstack.org/352123
Committed: https://git.openstack.org/cgit/openstack/tacker/commit/?id=52bdf321c4d0682375ac3e02f13d2c4f192e08ce
Submitter: Jenkins
Branch: master

commit 52bdf321c4d0682375ac3e02f13d2c4f192e08ce
Author: Saju Madhavan <email address hidden>
Date: Sat Mar 4 21:59:59 2017 +0530

    Assign floating IP to the vdu

    Assign floating IP to the vdu using TOSCA template

    Change-Id: I53a89397c1ef676f1a21bc1378c91aece65a3d91
    Closes-Bug: 1537636

Changed in tacker:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tacker 0.8.0

This issue was fixed in the openstack/tacker 0.8.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers