## add local environment changes post scripts
./jenkins-init-script-local-env.sh
+
+# Create a swap file
+dd if=/dev/zero of=/swap count=1024 bs=1MiB
+chmod 600 /swap
+mkswap /swap
+swapon /swap
project: unimgr
- usc:
project: usc
+ - vtn:
+ project: vtn
---
- project:
- name: genius-csit-genius
+ name: genius-csit-genius-oxygen
jobs:
- inttest-csit-1node
- inttest-csit-3node
- - inttest-csit-verify-1node
- - inttest-csit-verify-3node
-
# The project name
project: 'genius'
stream:
- oxygen:
branch: 'master'
+ install:
+ - all:
+ scope: 'all'
+
+ # Mininet configuration
+ tools_system_count: 3
+ tools_system_image: ZZCI - Ubuntu 16.04 - mininet-ovs-25 - 20171208-1847
+
+ # Features to install
+ install-features: 'odl-genius-rest'
+
+ # Robot custom options
+ robot-options: ' '
+
+- project:
+ name: genius-csit-genius-{stream}
+ jobs:
+ - inttest-csit-1node
+ - inttest-csit-3node
+ - inttest-csit-verify-1node
+ - inttest-csit-verify-3node
+
+
+ # The project name
+ project: 'genius'
+
+ # The functionality under test
+ functionality:
+ - 'upstream'
+ - 'gate'
+
+ # Project branches
+ stream:
- nitrogen:
branch: 'stable/nitrogen'
- carbon:
"
}
+function fix_tinyrpc_version() {
+ local ip=$1
+ ${SSH} ${ip} "
+ cd /opt/stack;
+ git clone https://git.openstack.org/openstack/requirements;
+ cd requirements;
+ sed -i s/tinyrpc===0.7/tinyrpc===0.6/ upper-constraints.txt
+ "
+}
+
# Add enable_services and disable_services to the local.conf
function add_os_services() {
local core_services=$1
if [ "${ODL_ML2_BRANCH}" == "master" ]; then
ssh ${!CONTROLIP} "sed -i 's/flat_networks public/flat_networks public,physnet1/' /opt/stack/devstack/lib/neutron"
ssh ${!CONTROLIP} "sed -i '186i iniset \$NEUTRON_CORE_PLUGIN_CONF ml2_type_vlan network_vlan_ranges public:1:4094,physnet1:1:4094' /opt/stack/devstack/lib/neutron"
+ echo "Modify uppper-constraints to use tinyrpc 0.6"
+ fix_tinyrpc_version ${!CONTROLIP}
fi
if [[ "${ODL_ML2_BRANCH}" == "stable/ocata" && "$(is_openstack_feature_enabled n-cpu)" == "1" ]]; then
echo "Updating requirements for ${ODL_ML2_BRANCH}"
echo "Modify upper-constraints to use libvirt-python 3.2.0"
fix_libvirt_version_n_cpu_ocata ${!COMPUTEIP}
fi
+ if [ "${ODL_ML2_BRANCH}" == "master" ]; then
+ echo "Modify uppper-constraints to use tinyrpc 0.6"
+ fix_tinyrpc_version ${!CONTROLIP}
+ fi
create_compute_node_local_conf ${!COMPUTEIP} ${!CONTROLIP} ${ODLMGRIP[$SITE_INDEX]} "${ODL_OVS_MGRS[$SITE_INDEX]}"
scp ${WORKSPACE}/local.conf_compute_${!COMPUTEIP} ${!COMPUTEIP}:/opt/stack/devstack/local.conf
echo "Stack the compute node ${i} of ${NUM_OPENSTACK_COMPUTE_NODES}: ${COMPUTEIP}"
sudo ip netns exec pnf_ns ifconfig pnf_veth1 up ${EXTNET_PNF_IP}/24;
sudo ovs-vsctl add-port ${PUBLIC_BRIDGE} pnf_veth0;
"
- # Control Node - set VXLAN TEP IP for Genius Auto TZ
- ${SSH} ${!CONTROLIP} "
- sudo ovs-vsctl set O . external_ids:tep-ip=${!CONTROLIP};
- "
# Control Node - external net internet address simulation
${SSH} ${!CONTROLIP} "
odl-ml2-driver-version: 'v2'
enable-openstack-services: 'placement-api,l2gw-plugin'
enable-openstack-compute-services: 'placement-client'
- security-group-mode: '{sg-mode}'
- odl_system_flavor: v1-performance-8
- openstack_system_flavor: v1-performance-8
- openstack_system2_flavor: v1-performance-4
+ security-group-mode: 'stateful'
+ odl_system_flavor: v2-standard-8
+ openstack_system_flavor: v2-standard-8
+ openstack_system2_flavor: v2-standard-4
tools_system_count: 2
tools_system_image: ZZCI - Ubuntu 16.04 - mininet-ovs-26 - 20171208-1847
topology:
- 1node:
- openstack_system1_count: 1
openstack_system2_count: 1
odl_system_count: 1
enable-haproxy: 'no'
install-features: 'odl-netvirt-openstack'
- 3node:
- openstack_system1_count: 1
openstack_system2_count: 1
odl_system_count: 3
enable-haproxy: 'yes'
install-features: 'odl-jolokia,odl-netvirt-openstack'
functionality:
- - upstream-stateful:
- sg-mode: 'stateful'
- - gate-stateful:
- sg-mode: 'stateful'
+ - upstream-stateful
+ - gate-stateful
openstack:
- ocata:
odl-ml2-driver-version: 'v2'
enable-openstack-services: 'placement-api,l2gw-plugin'
enable-openstack-compute-services: 'placement-client'
- security-group-mode: '{sg-mode}'
- odl_system_flavor: v1-performance-8
- openstack_system_flavor: v1-performance-8
- openstack_system2_flavor: v1-performance-4
+ security-group-mode: 'stateful'
+ odl_system_flavor: v2-standard-8
+ openstack_system_flavor: v2-standard-8
+ openstack_system2_flavor: v2-standard-4
tools_system_count: 2
tools_system_image: ZZCI - Ubuntu 16.04 - mininet-ovs-26 - 20171208-1847
topology:
- 1node:
- openstack_system1_count: 1
openstack_system2_count: 1
odl_system_count: 1
enable-haproxy: 'no'
install-features: 'odl-netvirt-openstack'
- 3node:
- openstack_system1_count: 1
openstack_system2_count: 1
odl_system_count: 3
enable-haproxy: 'yes'
install-features: 'odl-jolokia,odl-netvirt-openstack'
functionality:
- - upstream-stateful:
- sg-mode: 'stateful'
- - gate-stateful:
- schedule: ''
- sg-mode: 'stateful'
+ - upstream-stateful
+ - gate-stateful
openstack:
- ocata:
- inttest-csit-hwvtep-openstack
project: 'netvirt'
-
stream: 'carbon'
branch: 'stable/carbon'
karaf-version: karaf3
odl-ml2-driver-version: 'v2'
enable-openstack-services: 'placement-api,l2gw-plugin'
enable-openstack-compute-services: 'placement-client'
- security-group-mode: '{sg-mode}'
- odl_system_flavor: v1-performance-8
- openstack_system_flavor: v1-performance-8
- openstack_system2_flavor: v1-performance-4
+ security-group-mode: 'stateful'
+ odl_system_flavor: v2-standard-8
+ openstack_system_flavor: v2-standard-8
+ openstack_system2_flavor: v2-standard-4
tools_system_count: 2
tools_system_image: ZZCI - Ubuntu 16.04 - mininet-ovs-26 - 20171208-1847
topology:
- 1node:
- openstack_system1_count: 1
openstack_system2_count: 1
odl_system_count: 1
enable-haproxy: 'no'
install-features: 'odl-netvirt-openstack'
- 3node:
- openstack_system1_count: 1
openstack_system2_count: 1
odl_system_count: 3
enable-haproxy: 'yes'
install-features: 'odl-jolokia,odl-netvirt-openstack'
functionality:
- - upstream-stateful:
- sg-mode: 'stateful'
- - gate-stateful:
- schedule: ''
- sg-mode: 'stateful'
+ - upstream-stateful
+ - gate-stateful
openstack:
- ocata:
- shell: !include-raw: start-odl.sh
- shell: !include-raw: test-ports-nofeature.sh
- shell: !include-raw: test-karaf.expect
- - shell: !include-raw: test-rest-ok.sh
+ # Disable this test until ODLPARENT-139 is fixed
+ # - shell: !include-raw: test-rest-ok.sh
- shell: !include-raw: stop-odl.sh
- shell: !include-raw: uninstall-rpm.sh
- shell: |
}}
}}
+# Disable this test until ODLPARENT-139 is fixed
# Install feature
-expect "$prompt"
-send "feature:install odl-netvirt-openstack\r"
-expect {{
- "Error executing command: Can't install feature" {{
- send_user "\nFailed to install test feature\n"
- exit 1
- }}
-}}
+# expect "$prompt"
+# send "feature:install odl-netvirt-openstack\r"
+# expect {{
+# "Error executing command: Can't install feature" {{
+# send_user "\nFailed to install test feature\n"
+# exit 1
+# }}
+# }}
# Verify installed feature is actually installed
-expect "$prompt"
+# expect "$prompt"
# The -i flag will only show installed features
-send "feature:list -i | grep odl-netvirt-openstack\r"
-expect {{
- timeout {{
- send_user "\nTest feature not installed\n"
- exit 1
- }}
- "OpenDaylight :: NetVirt :: OpenStack" {{
- send_user "\nTest feature installed successfully\n"
- }}
-}}
+# send "feature:list -i | grep odl-netvirt-openstack\r"
+# expect {{
+# timeout {{
+# send_user "\nTest feature not installed\n"
+# exit 1
+# }}
+# "OpenDaylight :: NetVirt :: OpenStack" {{
+# send_user "\nTest feature installed successfully\n"
+# }}
+# }}