Skip to content

Commit 03ab23c

Browse files
author
Bob Ball
committed
Merge pull request #3 from citrix-openstack/for-neutron-osci
Add support for xenserver neutron external CI
2 parents 143370d + a9fd161 commit 03ab23c

2 files changed

Lines changed: 11 additions & 6 deletions

File tree

devstack-vm-gate-wrap.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ fi
416416
if ! function_exists "gate_hook"; then
417417
# the command we use to run the gate
418418
function gate_hook {
419-
$BASE/new/devstack-gate/devstack-vm-gate.sh
419+
$WORKSPACE/devstack-gate/devstack-vm-gate.sh
420420
}
421421
export -f gate_hook
422422
fi

devstack-vm-gate.sh

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -375,9 +375,6 @@ XENAPI_CONNECTION_URL=http://${DEVSTACK_GATE_XENAPI_DOM0_IP}
375375
VNCSERVER_PROXYCLIENT_ADDRESS=${DEVSTACK_GATE_XENAPI_DOM0_IP}
376376
VIRT_DRIVER=xenserver
377377
378-
# A separate xapi network is created with this name-label
379-
FLAT_NETWORK_BRIDGE=vmnet
380-
381378
# A separate xapi network on eth4 serves the purpose of the public network.
382379
# This interface is added in Citrix's XenServer environment as an internal
383380
# interface
@@ -406,6 +403,14 @@ VOLUME_BACKING_DEVICE=/dev/xvdb
406403
# Set multi-host config
407404
MULTI_HOST=1
408405
EOF
406+
407+
# neutron network will set FLAT_NETWORK_BRIDGE in pre_test_hook
408+
if [[ $DEVSTACK_GATE_NEUTRON -ne "1" ]]; then
409+
cat >> "$localrc_file" << EOF
410+
# A separate xapi network is created with this name-label
411+
FLAT_NETWORK_BRIDGE=vmnet
412+
EOF
413+
fi
409414
fi
410415

411416
if [[ "$DEVSTACK_GATE_TEMPEST" -eq "1" ]]; then
@@ -609,13 +614,13 @@ else
609614
echo "... this takes 10 - 15 minutes (logs in logs/devstacklog.txt.gz)"
610615
start=$(date +%s)
611616
$ANSIBLE primary -f 5 -i "$WORKSPACE/inventory" -m shell \
612-
-a "cd '$BASE/new/devstack' && sudo -H -u stack FORCE=yes stdbuf -oL -eL ./stack.sh executable=/bin/bash" \
617+
-a "cd '$BASE/new/devstack' && sudo -H -u stack stdbuf -oL -eL ./stack.sh executable=/bin/bash" \
613618
&> "$WORKSPACE/logs/devstack-early.txt"
614619
# Run non controller setup after controller is up. This is necessary
615620
# because services like nova apparently expect to have the controller in
616621
# place before anything else.
617622
$ANSIBLE subnodes -f 5 -i "$WORKSPACE/inventory" -m shell \
618-
-a "cd '$BASE/new/devstack' && sudo -H -u stack FORCE=yes stdbuf -oL -eL ./stack.sh executable=/bin/bash" \
623+
-a "cd '$BASE/new/devstack' && sudo -H -u stack stdbuf -oL -eL ./stack.sh executable=/bin/bash" \
619624
&> "$WORKSPACE/logs/devstack-subnodes-early.txt"
620625
end=$(date +%s)
621626
took=$((($end - $start) / 60))

0 commit comments

Comments
 (0)