aboutsummaryrefslogtreecommitdiffstats
path: root/puppet/services/database/mysql-client.yaml
blob: 4b0201f3129f81b49f1aee84076e315166b8d3c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
heat_template_version: ocata

description: >
  Mysql client settings

parameters:
  ServiceNetMap:
    default: {}
    description: Mapping of service_name -> network name. Typically set
                 via parameter_defaults in the resource registry.  This
                 mapping overrides those in ServiceNetMapDefaults.
    type: json
  DefaultPasswords:
    default: {}
    type: json
  RoleName:
    default: ''
    description: Role name on which the service is applied
    type: string
  RoleParameters:
    default: {}
    description: Parameters specific to the role
    type: json
  EndpointMap:
    default: {}
    description: Mapping of service endpoint -> protocol. Typically set
                 via parameter_defaults in the resource registry.
    type: json
  EnableInternalTLS:
    type: boolean
    default: false
  InternalTLSCAFile:
    default: '/etc/ipa/ca.crt'
    type: string
    description: Specifies the default CA cert to use if TLS is used for
                 services in the internal network.

outputs:
  role_data:
    description: Role for setting mysql client parameters
    value:
      service_name: mysql_client
      config_settings:
        tripleo::profile::base::database::mysql::client::mysql_client_bind_address: {get_param: [ServiceNetMap, MysqlNetwork]}
        tripleo::profile::base::database::mysql::client::enable_ssl: {get_param: EnableInternalTLS}
        tripleo::profile::base::database::mysql::client::ssl_ca: {get_param: InternalTLSCAFile}
      step_config: |
        include ::tripleo::profile::base::database::mysql::client
aa0000 } /* Generic.Error */ .highlight .gh { color: #333333 } /* Generic.Heading */ .highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */ .highlight .go { color: #888888 } /* Generic.Output */ .highlight .gp { color: #555555 } /* Generic.Prompt */ .highlight .gs { font-weight: bold } /* Generic.Strong */ .highlight .gu { color: #666666 } /* Generic.Subheading */ .highlight .gt { color: #aa0000 } /* Generic.Traceback */ .highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ .highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ .highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ .highlight .kp { color: #008800 } /* Keyword.Pseudo */ .highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ .highlight .kt { color: #888888; font-weight: bold } /* Keyword.Type */ .highlight .m { color: #0000DD; font-weight: bold } /* Literal.Number */ .highlight .s { color: #dd2200; background-color: #fff0f0 } /* Literal.String */ .highlight .na { color: #336699 } /* Name.Attribute */ .highlight .nb { color: #003388 } /* Name.Builtin */ .highlight .nc { color: #bb0066; font-weight: bold } /* Name.Class */ .highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ .highlight .nd { color: #555555 } /* Name.Decorator */ .highlight .ne { color: #bb0066; font-weight: bold } /* Name.Exception */ .highlight .nf { color: #0066bb; font-weight: bold } /* Name.Function */ .highlight .nl { color: #336699; font-style: italic } /* Name.Label */ .highlight .nn { color: #bb0066; font-weight: bold } /* Name.Namespace */ .highlight .py { color: #336699; font-weight: bold } /* Name.Property */ .highlight .nt { color: #bb0066; font-weight: bold } /* Name.Tag */ .highlight .nv { color: #336699 } /* Name.Variable */ .highlight .ow { color: #008800 } /* Operator.Word */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */ .highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ }
.. This work is licensed under a Creative Commons Attribution 4.0 International
.. License.
.. http://creativecommons.org/licenses/by/4.0
.. (c) OPNFV, Intel Corporation and others.

SampleVNF - Config files
========================

The configuration files are created based on the DUT test scenarios.
The example reference files are provided as part of the VNFs in the
config folder.

Following parameters will define the config files.

1. Load balancing type: Hardware or Software
2. Traffic type: IPv4 or IPv6
3. Number of Port Pairs: Single or Multi

Following are the example configuration files for sampleVNFs.

vCGNAPT Config files
--------------------




vFW Config files
----------------

The reference configuration files explained here are for Software and Hardware
loadbalancing with IPv4 traffic type and single port pair.
For other configurations liek IPv6 and Multi-port, refer to example config
files provided as part of the source code in config(VNFs/vFW/config) folder
of the VNFs.

1. SWLB, IPv4, Single Port Pair, 4WT:

  ::

    [PIPELINE0]
    type = MASTER
    core = 0

    [PIPELINE1]
    type =  ARPICMP
    core = 0

    pktq_in  = SWQ2
    pktq_out = TXQ0.0 TXQ1.0

    ; IPv4 ARP route table entries (dst_ip, mask, if_port, nh) hex values with no 0x
    ; arp_route_tbl = (ac102814,ff000000,1,ac102814) (ca106414,ff000000,0,ca106414)

    ; IPv6 ARP route table entries (dst_ip, mask, if_port, nh) hex values with no 0x
    ;nd_route_tbl =  (fec0::6a05:caff:fe30:21b0,64,0,fec0::6a05:caff:fe30:21b0)
    ;nd_route_tbl =  (2012::6a05:caff:fe30:2081,64,1,2012::6a05:caff:fe30:2081)

    ; egress (private interface) info
    pktq_in_prv =  RXQ0.0

    ;for pub port <-> prv port mapping (prv, pub)
    prv_to_pub_map = (0,1)
    prv_que_handler = (0)

    [PIPELINE2]
    type = TXRX
    core = 1
    pktq_in  = RXQ0.0 RXQ1.0
    pktq_out = SWQ0 SWQ1 SWQ2
    pipeline_txrx_type = RXRX

    [PIPELINE3]
    type = LOADB
    core = 2
    pktq_in  = SWQ0 SWQ1
    pktq_out = SWQ3 SWQ4 SWQ5 SWQ6 SWQ7 SWQ8 SWQ9 SWQ10
    outport_offset = 136
    n_vnf_threads = 4 ; Number of worker threads
    prv_que_handler = (0)
    n_lb_tuples = 5 ; tuple(src_ip,dst_ip, src_port, dst_port, protocol)
    ;loadb_debug = 0

    [PIPELINE4]
    type = VFW
    core = 3
    pktq_in  = SWQ3 SWQ4
    pktq_out = SWQ11 SWQ12;TXQ0.0 TXQ1.0

    n_rules = 4096 ; Max number of ACL rules
    ;n_flows gets round up to power of 2
    n_flows = 1048576 ; Max number of connections/flows per vFW WT
    traffic_type = 4 ; IPv4 Traffic
    ;traffic_type = 6 ; IPv6 Traffic
    ; tcp_time_wait controls timeout for closed connection, normally 120
    tcp_time_wait = 10	; TCP Connection WAIT timeout
    tcp_be_liberal = 0
    ;udp_unreplied and udp_replied controls udp "connection" timeouts, normally 30/180
    udp_unreplied = 180 ; UDP timeouts for unreplied traffic
    udp_replied = 180 ; UDP timeout for replied traffic

    [PIPELINE5]
    type = VFW
    core = 4
    pktq_in  = SWQ5 SWQ6
    pktq_out = SWQ13 SWQ14;TXQ0.0 TXQ1.0

    n_rules = 4096
    ;n_flows gets round up to power of 2
    n_flows = 1048576
    traffic_type = 4 ; IPv4 Traffic
    ;traffic_type = 6 ; IPv6 Traffic
    ; tcp_time_wait controls timeout for closed connection, normally 120
    tcp_time_wait = 10
    tcp_be_liberal = 0
    ;udp_unreplied and udp_replied controls udp "connection" timeouts, normally 30/180
    udp_unreplied = 180
    udp_replied = 180

    [PIPELINE6]
    type = VFW
    core = 5
    pktq_in  = SWQ7 SWQ8
    pktq_out = SWQ15 SWQ16

    n_rules = 4096
    ;n_flows gets round up to power of 2
    n_flows = 1048576
    traffic_type = 4 ; IPv4 Traffic
    ;traffic_type = 6 ; IPv6 Traffic
    ; tcp_time_wait controls timeout for closed connection, normally 120
    tcp_time_wait = 10
    tcp_be_liberal = 0
    ;udp_unreplied and udp_replied controls udp "connection" timeouts, normally 30/180
    udp_unreplied = 180
    udp_replied = 180

    [PIPELINE7]
    type = VFW
    core = 6
    pktq_in  = SWQ9 SWQ10
    pktq_out = SWQ17 SWQ18

    n_rules = 4096
    ;n_flows gets round up to power of 2
    n_flows = 1048576
    traffic_type = 4 ; IPv4 Traffic
    ;traffic_type = 6 ; IPv6 Traffic
    ; tcp_time_wait controls timeout for closed connection, normally 120
    tcp_time_wait = 10
    tcp_be_liberal = 0
    udp_unreplied = 180
    udp_replied = 180

    [PIPELINE8]
    type = TXRX
    core = 1h
    pktq_in  = SWQ11 SWQ12 SWQ13 SWQ14 SWQ15 SWQ16 SWQ17 SWQ18
    pktq_out = TXQ0.1 TXQ1.1 TXQ0.2 TXQ1.2 TXQ0.3 TXQ1.3 TXQ0.4 TXQ1.4
    pipeline_txrx_type = TXTX


2. HWLB, IPv4, Single Port Pair, 4 WT:

This configuration doesn't require LOADB and TXRX pipelines

  ::

    [PIPELINE0]
    type = MASTER
    core = 0

    [PIPELINE1]
    type =  ARPICMP
    core = 0
    pktq_in  = SWQ0 SWQ1 SWQ2 SWQ3
    pktq_out = TXQ0.0 TXQ1.0

    ; egress (private interface) info
    pktq_in_prv =  RXQ0.0

    ;for pub port <-> prv port mapping (prv, pub)
    prv_to_pub_map = (0,1)
    prv_que_handler = (0)

    [PIPELINE2]
    type = VFW
    core = 1
    pktq_in  = RXQ0.0 RXQ1.0
    pktq_out = TXQ0.1 TXQ1.1 SWQ0

    n_rules = 4096
    ;n_flows gets round up to power of 2
    n_flows = 1048576

    traffic_type = 4 ; IPv4 Traffic
    ;traffic_type = 6 ; IPv6 Traffic
    ; tcp_time_wait controls timeout for closed connection, normally 120
    tcp_time_wait = 10
    tcp_be_liberal = 0
    ;udp_unreplied and udp_replied controls udp "connection" timeouts, normally 30/180
    udp_unreplied = 180
    udp_replied = 180

    [PIPELINE3]
    type = VFW
    core = 2
    pktq_in  = RXQ0.1 RXQ1.1
    pktq_out = TXQ0.2 TXQ1.2 SWQ1

    n_rules = 4096
    ;n_flows gets round up to power of 2
    n_flows = 1048576

    traffic_type = 4 ; IPv4 Traffic
    ;traffic_type = 6 ; IPv6 Traffic
    ; tcp_time_wait controls timeout for closed connection, normally 120
    tcp_time_wait = 10
    tcp_be_liberal = 0
    ;udp_unreplied and udp_replied controls udp "connection" timeouts, normally 30/180
    udp_unreplied = 180
    udp_replied = 180

    [PIPELINE4]
    type = VFW
    core = 3
    pktq_in  = RXQ0.2 RXQ1.2
    pktq_out = TXQ0.3 TXQ1.3 SWQ2

    n_rules = 4096
    ;n_flows gets round up to power of 2
    n_flows = 1048576

    traffic_type = 4 ; IPv4 Traffic
    ;traffic_type = 6 ; IPv6 Traffic
    ; tcp_time_wait controls timeout for closed connection, normally 120
    tcp_time_wait = 10
    tcp_be_liberal = 0
    ;udp_unreplied and udp_replied controls udp "connection" timeouts, normally 30/180
    udp_unreplied = 180
    udp_replied = 180

    [PIPELINE5]
    type = VFW
    core = 4
    pktq_in  = RXQ0.3 RXQ1.3
    pktq_out = TXQ0.4 TXQ1.4 SWQ3

    n_rules = 4096
    ;n_flows gets round up to power of 2
    n_flows = 1048576

    traffic_type = 4 ; IPv4 Traffic
    ;traffic_type = 6 ; IPv6 Traffic
    ; tcp_time_wait controls timeout for closed connection, normally 120
    tcp_time_wait = 10
    tcp_be_liberal = 0
    ;udp_unreplied and udp_replied controls udp "connection" timeouts, normally 30/180
    udp_unreplied = 180
    udp_replied = 180


vACL Config files
----------------

The reference configuration files explained here are for Software and Hardware
loadbalancing with IPv4 traffic type and single port pair.
For other configurations liek IPv6 and Multi-port, refer to example config
files provided as part of the source code in config(VNFs/vACL/config) folder
of the VNFs.

1. SWLB, IPv4, Single Port Pair, 1 WT:

 ::

    [EAL]
    # add pci whitelist eg below
    w = 05:00.0  ; Network Ports binded to dpdk
    w = 05:00.1  ; Network Ports binded to dpdk

    [PIPELINE0]
    type = MASTER
    core = 0

    [PIPELINE1]
    type = ARPICMP
    core = 0
    pktq_in  = SWQ2
    pktq_out = SWQ7
    pktq_in_prv =  RXQ0.0
    prv_to_pub_map = (0,1)
    prv_que_handler = (0)

    [PIPELINE2]
    type = TXRX
    core = 1
    pktq_in  = RXQ0.0 RXQ1.0
    pktq_out = SWQ0 SWQ1 SWQ2
    pipeline_txrx_type = RXRX
    dest_if_offset = 176

    [PIPELINE3]
    type = LOADB
    core = 2
    pktq_in  = SWQ0 SWQ1
    pktq_out = SWQ3 SWQ4
    outport_offset = 136
    phyport_offset = 204
    n_vnf_threads = 1
    prv_que_handler = (0)

    [PIPELINE4]
    type = ACL
    core = 3
    pktq_in  = SWQ3 SWQ4
    pktq_out = SWQ5 SWQ6
    n_flows = 1000000
    pkt_type = ipv4
    traffic_type = 4

    [PIPELINE5]
    type = TXRX
    core = 1h
    pktq_in  = SWQ5 SWQ6 SWQ7
    pktq_out = TXQ0.0 TXQ1.0
    pipeline_txrx_type = TXTX


2. SWLB, IPv4, Single Port Pair, 1 WT:

 ::

    [EAL]
    # add pci whitelist eg below
    w = 05:00.0
    w = 05:00.1

    [PIPELINE0]
    type = MASTER
    core = 0

    [PIPELINE1]
    type = ARPICMP
    core = 0
    pktq_in  = SWQ0
    pktq_out = TXQ0.0 TXQ1.0
    pktq_in_prv =  RXQ0.0
    prv_to_pub_map = (0,1)
    prv_que_handler = (0)

    [PIPELINE2]
    type = ACL
    core = 1
    pktq_in  = RXQ0.0 RXQ1.0
    pktq_out = TXQ0.1 TXQ1.1 SWQ0
    n_flows = 1000000
    pkt_type = ipv4
    traffic_type = 4