Cannot specify custom iptables rules for VIP in network role

Bug #1502922 reported by Andrey Shestakov
This bug report is a duplicate of:  Bug #1517497: Unhardcode iptables rules for VIPs. Edit Remove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
In Progress
Medium
Stanislav Makar

Bug Description

When custom network role defined with VIP
Is not possible to specify custom firewall rules for that VIP in namespace

I see needed parameters are hardcoded:
https://github.com/stackforge/fuel-library/blob/master/deployment/puppet/osnailyfacter/lib/puppet/parser/functions/generate_vips.rb#L100

Tags: area-mos
Changed in fuel:
assignee: nobody → Fuel Python Team (fuel-python)
milestone: none → 8.0
importance: Undecided → Medium
Revision history for this message
Dmitry Klenov (dklenov) wrote :

Andrey, can you please specify:
* Detailed steps to reproduce.
* At which step(s) you see the discrepancy with expected results.

Changed in fuel:
status: New → Incomplete
assignee: Fuel Python Team (fuel-python) → Andrey Shestakov (ashestakov)
Revision history for this message
Sergey Vasilenko (xenolog) wrote :

For unhardcode this parameters from generate_vip function, I propose move it to VIP declaration yaml.

For this we should add hash, that will not parsed by nailgun and will be passed to astute.yaml as is.
I.e VIP declaration may be look following:

    vip:
       - name: "baremetal"
         namespace: "haproxy"
         node_roles: [.......]
         vendor_specific:
             firewall_start: rule1
             firewall_stop: rule2

This 'vendor_specific' field may be used for transfer all plugin-specific information to puppet manifests.

Dmitry Pyzhov (dpyzhov)
tags: added: area-mos
Changed in fuel:
status: Incomplete → In Progress
Changed in fuel:
assignee: Andrey Shestakov (ashestakov) → Stanislav Makar (smakar)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-web (master)

Reviewed: https://review.openstack.org/243045
Committed: https://git.openstack.org/cgit/openstack/fuel-web/commit/?id=1fd1ca52b3c4abee2cd40a4e8eb463867209278f
Submitter: Jenkins
Branch: master

commit 1fd1ca52b3c4abee2cd40a4e8eb463867209278f
Author: Andrey Shestakov <email address hidden>
Date: Fri Nov 13 16:25:13 2015 +0200

    Add vendor_specific parameter to VIPs meta

    This parameter allows specify plugin specific informaton in VIPs
    declaration.
    Add default iptables rules for vrouter_pub VIP

    DocImpact:
    Change-Id: I4fce3411d36f6d9e6257230f76178fd39ffd70c2
    Partial-bug: #1502922

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.