summaryrefslogtreecommitdiff
path: root/roles/configure_functional_tests/tasks/main.yaml
blob: 11debfb77362215d4e5962acaedd9ac11f89bca7 (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
- shell:
    cmd: |
        set -e
        set -x
        GATE_STACK_USER={{ ansible_user }}
        IS_GATE=True

        BASE_DIR={{ base_dir }}
        GATE_DEST={{ gate_dest_dir }}
        PROJECT_NAME={{ project_name }}
        NEUTRON_DIR={{ neutron_dir }}
        DEVSTACK_PATH={{ devstack_dir }}
        TOP_DIR={{ devstack_dir }}
        VENV={{ tests_venv }}
        STACK_USER=stack
        OVS_BRANCH={{ OVS_BRANCH }}
        OVN_BRANCH={{ OVN_BRANCH }}
        Q_BUILD_OVS_FROM_GIT={{ Q_BUILD_OVS_FROM_GIT }}
        INSTALL_OVN={{ INSTALL_OVN }}
        # This is DB USER used in e.g. pgsql db
        DATABASE_USER=openstack_citest

        source $DEVSTACK_PATH/functions
        source $DEVSTACK_PATH/lib/neutron_plugins/ovn_agent
        source $NEUTRON_DIR/tools/configure_for_func_testing.sh

        if is_fedora; then
            # NOTE(slqweq) Running functional job e.g. on Centos requires to
            # have repo with rabbitmq-server and some other packages available
            install_package centos-release-openstack-victoria
            install_package iproute-tc haproxy keepalived

            # NOTE(slaweq) On Fedora/CentOS systems make sure that SELinux is
            # not in enforcing mode
            sudo setenforce 0
        fi

        configure_host_for_func_testing

    executable: /bin/bash