Пример #1
0
    def setUpClass(cls):
        BaseTestCase.setUpClass()

        # reload/reset configuration of VSM
        local('sudo apt-get install -y expect')
        cmd_reload = "{script} {vsm_ip} {login} {password}".format(
            script=os.path.join(PARENT_FOLDER_PATH,
                                'files/n1kv/telnet_vsm_reload.exp'),
            vsm_ip = cls.vsm_ip, login=cls.vsm_login,
            password=cls.vsm_password)
        local(cmd_reload)
        time.sleep(60*1)

        local_conf = LOCAL_CONF.format(
            neutron_repo=cls.neutron_repo,
            neutron_branch=cls.neutron_ref,
            net_cisco_repo=cls.net_cisco_repo,
            net_cisco_ref=cls.net_cisco_ref,
            Q_PLUGIN_EXTRA_CONF_PATH=Q_PLUGIN_EXTRA_CONF_PATH,
            Q_PLUGIN_EXTRA_CONF_FILES=Q_PLUGIN_EXTRA_CONF_FILES,
            VSM_IP=cls.vsm_ip,
            VSM_LOGIN=cls.vsm_login,
            VSM_PASSWORD=cls.vsm_password,
            UVEM_DEB=os.path.join(WORKSPACE, UVEM_DEB))

        cls.devstack.local_conf = local_conf
        cls.devstack.clone()
Пример #2
0
    def setUpClass(cls):
        BaseTestCase.setUpClass()

        cls.devstack.local_conf = LOCAL_CONF
        cls.devstack.clone()
        cls.devstack.download_gerrit_change('refs/changes/87/87987/14')

        my_path = os.path.join(WORKSPACE, 'my')
        run_cmd_line('git clone https://github.com/kshileev/my.git {d}'
                     ''.format(d=my_path))
        cls.devstack.patch(os.path.join(my_path, 'netns.diff'))
    def setUpClass(cls):
        BaseTestCase.setUpClass()

        local_conf = LOCAL_CONF.format(
            neutron_repo=urlparse.urljoin(ZUUL_URL, ZUUL_PROJECT),
            neutron_branch=ZUUL_REF)

        cls.devstack.local_conf = local_conf
        cls.devstack.clone()
        cls.devstack.patch(os.path.join(
            PARENT_FOLDER_PATH, 'cisco_vpnaas_enabled.devstack.patch'))
Пример #4
0
    def setUpClass(cls):
        BaseTestCase.setUpClass()

        cls.devstack.local_conf = LOCAL_CONF
        cls.devstack.clone()
        cls.devstack.download_gerrit_change('refs/changes/87/87987/14')

        my_path = os.path.join(WORKSPACE, 'my')
        run_cmd_line('git clone https://github.com/kshileev/my.git {d}'
                     ''.format(d=my_path))
        cls.devstack.patch(os.path.join(my_path, 'netns.diff'))
Пример #5
0
    def setUpClass(cls):
        BaseTestCase.setUpClass()

        local_conf = LOCAL_CONF.format(neutron_repo=urlparse.urljoin(
            ZUUL_URL, ZUUL_PROJECT),
                                       neutron_branch=ZUUL_REF)

        cls.devstack.local_conf = local_conf
        cls.devstack.clone()
        cls.devstack.patch(
            os.path.join(PARENT_FOLDER_PATH,
                         'cisco_vpnaas_enabled.devstack.patch'))
Пример #6
0
    def setUpClass(cls):
        BaseTestCase.setUpClass()

        local_conf = LOCAL_CONF.format(
            neutron_repo=cls.neutron_repo,
            neutron_branch=cls.neutron_ref,
            net_cisco_repo=cls.net_cisco_repo,
            net_cisco_ref=cls.net_cisco_ref,
            Q_PLUGIN_EXTRA_CONF_PATH=WORKSPACE,
            Q_PLUGIN_EXTRA_CONF_FILES=Q_PLUGIN_EXTRA_CONF_FILES)

        cls.devstack.local_conf = local_conf
        cls.devstack.clone()
Пример #7
0
    def setUpClass(cls):
        BaseTestCase.setUpClass()

        localrc = LOCALRC.format(
            neutron_repo=cls.neutron_repo,
            neutron_branch=cls.neutron_ref,
            net_cisco_repo=cls.net_cisco_repo,
            net_cisco_ref=cls.net_cisco_ref,
            tempest_repo=cls.tempest_repo,
            tempest_ref=cls.tempest_ref)

        cls.devstack.localrc = localrc
        cls.devstack._git_url = cls.devstack_repo
        cls.devstack._git_branch = cls.devstack_ref
Пример #8
0
    def setUpClass(cls):
        BaseTestCase.setUpClass()

        clear_apic_config(cls.APIC_HOST, cls.APIC_PORT, cls.APIC_USER,
                          cls.APIC_PASSWORD, ssl=True)

        cls.create_ml2_conf_ini()
        cls.devstack.local_conf = LOCAL_CONF.format(
            neutron_repo=urlparse.urljoin(ZUUL_URL, ZUUL_PROJECT),
            neutron_branch=ZUUL_REF,
            Q_PLUGIN_EXTRA_CONF_PATH=WORKSPACE,
            Q_PLUGIN_EXTRA_CONF_FILES=APIC_CONF_FILES,
            vlan_start=NEXUS_VLAN_START, vlan_end=NEXUS_VLAN_END)
        cls.devstack.clone()
Пример #9
0
    def setUpClass(cls):
        BaseTestCase.setUpClass()

        clear_apic_config(cls.APIC_HOST, cls.APIC_PORT, cls.APIC_USER,
                          cls.APIC_PASSWORD, ssl=True)

        cls.create_ml2_conf_ini()
        cls.devstack.local_conf = LOCAL_CONF.format(
            neutron_repo=urlparse.urljoin(ZUUL_URL, ZUUL_PROJECT),
            neutron_branch=ZUUL_REF,
            Q_PLUGIN_EXTRA_CONF_PATH=WORKSPACE,
            Q_PLUGIN_EXTRA_CONF_FILES=APIC_CONF_FILES,
            vlan_start=NEXUS_VLAN_START, vlan_end=NEXUS_VLAN_END)
        # Next commit '1631af891af32eaa9af609398a88252ab437b0b4' forces
        # all openstack components to use keystone middleware but the APIC
        # does not support it
        cls.devstack.clone(commit='3163c17170b0b2bd7775e5e0d50040504b559ea1')
Пример #10
0
    def setUpClass(cls):
        BaseTestCase.setUpClass()

        clear_apic_config(cls.APIC_HOST, cls.APIC_PORT, cls.APIC_USER,
                          cls.APIC_PASSWORD, ssl=True)

        cls.create_ml2_conf_ini()
        cls.devstack.local_conf = LOCAL_CONF.format(
            neutron_repo=urlparse.urljoin(ZUUL_URL, ZUUL_PROJECT),
            neutron_branch=ZUUL_REF,
            Q_PLUGIN_EXTRA_CONF_PATH=WORKSPACE,
            Q_PLUGIN_EXTRA_CONF_FILES=APIC_CONF_FILES,
            vlan_start=NEXUS_VLAN_START, vlan_end=NEXUS_VLAN_END)
        # Next commit '1631af891af32eaa9af609398a88252ab437b0b4' forces
        # all openstack components to use keystone middleware but the APIC
        # does not support it
        cls.devstack.clone(commit='3163c17170b0b2bd7775e5e0d50040504b559ea1')
Пример #11
0
    def setUpClass(cls):
        BaseTestCase.setUpClass()

        clear_apic_config(cls.APIC_HOST, cls.APIC_PORT, cls.APIC_USER,
                          cls.APIC_PASSWORD, ssl=True)

        cls.devstack.local_conf = LOCAL_CONF.format(
            neutron_repo=cls.neutron_repo,
            neutron_branch=cls.neutron_ref,
            net_cisco_repo=cls.net_cisco_repo,
            net_cisco_ref=cls.net_cisco_ref,
            Q_PLUGIN_EXTRA_CONF_PATH=Q_PLUGIN_EXTRA_CONF_PATH,
            Q_PLUGIN_EXTRA_CONF_FILES=Q_PLUGIN_EXTRA_CONF_FILES,
            APIC_HOST=cls.APIC_HOST, APIC_PORT=cls.APIC_PORT,
            APIC_USER=cls.APIC_USER, APIC_PASSWORD=cls.APIC_PASSWORD,
            HOSTNAME=socket.gethostname(), NEXUS_INTF_NUM=NEXUS_INTF_NUM)
        # Next commit '1631af891af32eaa9af609398a88252ab437b0b4' forces
        # all openstack components to use keystone middleware but the APIC
        # does not support it
        cls.devstack.clone()
Пример #12
0
    def setUpClass(cls):
        BaseTestCase.setUpClass()

        # Install NGINX
        nginx_conf = os.path.join(PARENT_FOLDER_PATH,
                                  'files/ncs/nginx-ncs.conf')
        local('sudo apt-get install -y nginx')
        local('sudo cp {0} /etc/nginx/sites-available/default'.format(nginx_conf))
        local('sudo service nginx restart')

        # Create ml2 config for NCS
        path = os.path.join(WORKSPACE, Q_PLUGIN_EXTRA_CONF_FILES)
        with open(path, 'w') as f:
            f.write(ML2_CONF_NCS_INI)

        local_conf = LOCAL_CONF.format(
            neutron_repo=urlparse.urljoin(ZUUL_URL, ZUUL_PROJECT),
            neutron_branch=ZUUL_REF,
            Q_PLUGIN_EXTRA_CONF_PATH=WORKSPACE,
            Q_PLUGIN_EXTRA_CONF_FILES=Q_PLUGIN_EXTRA_CONF_FILES)

        cls.devstack.local_conf = local_conf
        cls.devstack.clone()
Пример #13
0
    def setUpClass(cls):
        BaseTestCase.setUpClass()

        # Install NGINX
        nginx_conf = os.path.join(PARENT_FOLDER_PATH,
                                  'files/ncs/nginx-ncs.conf')
        local('sudo apt-get install -y nginx')
        local('sudo cp {0} /etc/nginx/sites-available/default'.format(
            nginx_conf))
        local('sudo service nginx restart')

        # Create ml2 config for NCS
        path = os.path.join(WORKSPACE, Q_PLUGIN_EXTRA_CONF_FILES)
        with open(path, 'w') as f:
            f.write(ML2_CONF_NCS_INI)

        local_conf = LOCAL_CONF.format(
            neutron_repo=urlparse.urljoin(ZUUL_URL, ZUUL_PROJECT),
            neutron_branch=ZUUL_REF,
            Q_PLUGIN_EXTRA_CONF_PATH=WORKSPACE,
            Q_PLUGIN_EXTRA_CONF_FILES=Q_PLUGIN_EXTRA_CONF_FILES)

        cls.devstack.local_conf = local_conf
        cls.devstack.clone()