aboutsummaryrefslogtreecommitdiffstats
path: root/environments/net-single-nic-with-vlans.yaml
blob: a61bc6e18737baee1a0d44519a57a121eb286cdd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# This template configures each role to use Vlans on a single nic for
# each isolated network.
# This template assumes use of network-isolation.yaml.
#
# FIXME: if/when we add functionality to heatclient to include heat
# environment files we should think about using it here to automatically
# include network-isolation.yaml.
resource_registry:
  OS::TripleO::BlockStorage::Net::SoftwareConfig: ../network/config/single-nic-vlans/cinder-storage.yaml
  OS::TripleO::Compute::Net::SoftwareConfig: ../network/config/single-nic-vlans/compute.yaml
  OS::TripleO::Controller::Net::SoftwareConfig: ../network/config/single-nic-vlans/controller.yaml
  OS::TripleO::ObjectStorage::Net::SoftwareConfig: ../network/config/single-nic-vlans/swift-storage.yaml
  OS::TripleO::CephStorage::Net::SoftwareConfig: ../network/config/single-nic-vlans/ceph-storage.yaml

parameter_defaults:
  # This sets 'external_network_bridge' in l3_agent.ini to an empty string
  # so that external networks act like provider bridge networks (they
  # will plug into br-int instead of br-ex)
  NeutronExternalNetworkBridge: "''"
highlight .ch { color: #888888 } /* Comment.Hashbang */ .highlight .cm { color: #888888 } /* Comment.Multiline */ .highlight .cp { color: #cc0000; font-weight: bold } /* Comment.Preproc */ .highlight .cpf { color: #888888 } /* Comment.PreprocFile */ .highlight .c1 { color: #888888 } /* Comment.Single */ .highlight .cs { color: #cc0000; font-weight: bold; background-color: #fff0f0 } /* Comment.Special */ .highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */ .highlight .ge { font-style: italic } /* Generic.Emph */ .highlight .gr { color: #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 */ }
# jenkins job templates for Fuel
- project:

    name: 'fuel'

    project: '{name}'

    installer: '{name}'

#--------------------------------
# BRANCH ANCHORS
#--------------------------------
    master: &master
        stream: master
        branch: '{stream}'
        gs-pathname: ''
    brahmaputra: &brahmaputra
        stream: brahmaputra
        branch: 'stable/{stream}'
        gs-pathname: '/{stream}'
#--------------------------------
# POD, INSTALLER, AND BRANCH MAPPING
#--------------------------------
#        brahmaputra
#--------------------------------
    pod:
        - opnfv-jump-2:
            <<: *brahmaputra
        - ericsson-pod1:
            <<: *brahmaputra
        - virtual:
            <<: *brahmaputra
#--------------------------------
#        master
#--------------------------------
        - ericsson-pod1:
            <<: *master
        - ericsson-pod2:
            <<: *master
        - virtual:
            <<: *master
#--------------------------------
#       scenarios
#--------------------------------
    scenario:
        # HA scenarios
        - 'os-onos-nofeature-ha':
#            auto-trigger-name: 'fuel-{scenario}-{pod}-trigger'
            auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
        - 'os-odl_l2-nofeature-ha':
            auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
        - 'os-odl_l3-nofeature-ha':
            auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
        - 'os-odl_l2-bgpvpn-ha':
            auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
        - 'os-nosdn-nofeature-ha':
            auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
        - 'os-nosdn-kvm-ha':
            auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
        - 'os-nosdn-kvm_ovs-ha':
            auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
        - 'os-nosdn-ovs-ha':
            auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
        - 'os-nosdn-vlan-ha':
            auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
        # NOHA scenarios
        - 'os-odl_l2-nofeature-noha':
            auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
        - 'os-odl_l3-nofeature-noha':
            auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
        - 'os-onos-nofeature-noha':
            auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
        - 'os-nosdn-nofeature-noha':
            auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
        - 'os-nosdn-kvm-noha':
            auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
        - 'os-nosdn-kvm_ovs-noha':
            auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
        - 'os-nosdn-ovs-noha':
            auto-trigger-name: 'brahmaputra-trigger-daily-disabled'
        - 'os-odl_l2-bgpvpn-noha':
            auto-trigger-name: 'brahmaputra-trigger-daily-disabled'

    jobs:
        - 'fuel-{scenario}-{pod}-daily-{stream}'
        - 'fuel-deploy-{pod}-daily-{stream}'

########################
# job templates
########################
- job-template:
    name: 'fuel-{scenario}-{pod}-daily-{stream}'

    concurrent: false

    properties:
        - throttle:
            enabled: true
            max-total: 1
            max-per-node: 1
        - build-blocker:
            use-build-blocker: true
            blocking-jobs:
                - 'fuel-os-.*?-{pod}-daily-{stream}'

    wrappers:
        - build-name:
            name: '$BUILD_NUMBER - Scenario: $DEPLOY_SCENARIO'

    triggers:
        - '{auto-trigger-name}'

    parameters:
        - project-parameter:
            project: '{project}'
        - '{installer}-defaults'
        - '{pod}-defaults':
            installer: '{installer}'
        - string:
            name: DEPLOY_SCENARIO
            default: '{scenario}'
        - fuel-ci-parameter:
            gs-pathname: '{gs-pathname}'

    builders:
        - trigger-builds:
            - project: 'fuel-deploy-{pod}-daily-{stream}'
              current-parameters: false
              predefined-parameters:
                DEPLOY_SCENARIO={scenario}
              same-node: true
              block: true
        - trigger-builds:
            - project: 'functest-fuel-{pod}-daily-{stream}'
              current-parameters: false
              predefined-parameters:
                DEPLOY_SCENARIO={scenario}
              same-node: true
              block: true
              block-thresholds:
                build-step-failure-threshold: 'never'
                failure-threshold: 'never'
                unstable-threshold: 'FAILURE'
        - trigger-builds:
            - project: 'yardstick-fuel-{pod}-daily-{stream}'
              current-parameters: false
              predefined-parameters:
                DEPLOY_SCENARIO={scenario}
              block: true
              same-node: true
              block-thresholds:
                build-step-failure-threshold: 'never'
                failure-threshold: 'never'
                unstable-threshold: 'FAILURE'

- job-template:
    name: 'fuel-deploy-{pod}-daily-{stream}'

    concurrent: false

    properties:
        - throttle:
            enabled: true
            max-total: 1
            max-per-node: 1
        - build-blocker:
            use-build-blocker: true
            blocking-jobs:
                - 'fuel-deploy-{pod}-daily-{stream}'

    parameters:
        - project-parameter:
            project: '{project}'
        - '{installer}-defaults'
        - '{pod}-defaults':
            installer: '{installer}'
        - string:
            name: DEPLOY_SCENARIO
            default: 'os-odl_l2-nofeature-ha'
        - fuel-ci-parameter:
            gs-pathname: '{gs-pathname}'

    scm:
        - git-scm:
            credentials-id: '{ssh-credentials}'
            refspec: ''
            branch: '{branch}'

    wrappers:
        - build-name:
            name: '$BUILD_NUMBER - Scenario: $DEPLOY_SCENARIO'

    builders:
        - shell:
            !include-raw-escape: ./fuel-download-artifact.sh
        - shell:
            !include-raw-escape: ./fuel-deploy.sh

    publishers:
        - email:
            recipients: jonas.bjurel@ericsson.com stefan.k.berg@ericsson.com

########################
# parameter macros
########################
- parameter:
    name: fuel-ci-parameter
    parameters:
        - string:
            name: BUILD_DIRECTORY
            default: $WORKSPACE/build_output
            description: "Directory where the build artifact will be located upon the completion of the build."
        - string:
            name: CACHE_DIRECTORY
            default: $HOME/opnfv/cache/$INSTALLER_TYPE
            description: "Directory where the cache to be used during the build is located."
        - string:
            name: GS_URL
            default: artifacts.opnfv.org/$PROJECT{gs-pathname}
            description: "URL to Google Storage."
########################
# trigger macros
########################
# os-onos3-nofeature-ha trigger
- trigger:
    name: 'fuel-os-onos-nofeature-ha-opnfv-jump-2-trigger'
    triggers:
        - timed: '0 20 * * *'
- trigger:
    name: 'fuel-os-onos-nofeature-ha-ericsson-pod1-trigger'
    triggers:
        - timed: ''
- trigger:
    name: 'fuel-os-onos-nofeature-ha-ericsson-pod2-trigger'
    triggers:
        - timed: ''
- trigger:
    name: 'fuel-os-onos-nofeature-ha-virtual-trigger'
    triggers:
        - timed: ''

# os-odl_l2-nofeature-ha trigger
- trigger:
    name: 'fuel-os-odl_l2-nofeature-ha-opnfv-jump-2-trigger'
    triggers:
        - timed: '0 0 * * *'
- trigger:
    name: 'fuel-os-odl_l2-nofeature-ha-ericsson-pod1-trigger'
    triggers:
        - timed: ''
- trigger:
    name: 'fuel-os-odl_l2-nofeature-ha-ericsson-pod2-trigger'
    triggers:
        - timed: ''
- trigger:
    name: 'fuel-os-odl_l2-nofeature-ha-virtual-trigger'
    triggers:
        - timed: ''

# os-odl_l3-nofeature-ha trigger
- trigger:
    name: 'fuel-os-odl_l3-nofeature-ha-opnfv-jump-2-trigger'
    triggers:
        - timed: '0 4 * * *'
- trigger:
    name: 'fuel-os-odl_l3-nofeature-ha-ericsson-pod1-trigger'
    triggers:
        - timed: ''
- trigger:
    name: 'fuel-os-odl_l3-nofeature-ha-ericsson-pod2-trigger'
    triggers:
        - timed: ''
- trigger:
    name: 'fuel-os-odl_l3-nofeature-ha-virtual-trigger'
    triggers:
        - timed: ''

# os-odl_l2-bgpvpn-ha trigger
- trigger:
    name: 'fuel-os-odl_l2-bgpvpn-ha-opnfv-jump-2-trigger'
    triggers:
        - timed: '0 8 * * *'
- trigger:
    name: 'fuel-os-odl_l2-bgpvpn-ha-ericsson-pod1-trigger'
    triggers:
        - timed: ''
- trigger:
    name: 'fuel-os-odl_l2-bgpvpn-ha-ericsson-pod2-trigger'
    triggers:
        - timed: ''
- trigger:
    name: 'fuel-os-odl_l2-bgpvpn-ha-virtual-trigger'
    triggers:
        - timed: ''