Grenade upgrade verification changes
From the earlier patch on grenade, following have been updated. 1. OVSDB from base run of neutron is upgraded to the new vswitch schema that OVN installation builds. 2. Stop, configure and restart the neutron server and it's agents after ovn installation. 3. Since the OVN installation removes the kernel module, the datapath gets impacted and the br-ex will have to reconfigured. 4. Add a test network instance in the create phase and verify, if it is present in the OVN NB DB in the verify phase. Change-Id: If2f31867078f626899258a61168042cafd5593fcchanges/91/343591/42
parent
86caa921b4
commit
c84e4d593b
@ -0,0 +1,61 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -o errexit
|
||||
|
||||
source $GRENADE_DIR/grenaderc
|
||||
source $GRENADE_DIR/functions
|
||||
|
||||
source $TOP_DIR/openrc admin admin
|
||||
|
||||
OVN_TEST_NETWORK=ovn-test-net
|
||||
|
||||
function early_create {
|
||||
:
|
||||
}
|
||||
|
||||
function create {
|
||||
local net_id
|
||||
net_id=$(openstack network create $OVN_TEST_NETWORK -f value -c id)
|
||||
resource_save ovn net_id $net_id
|
||||
}
|
||||
|
||||
function verify_noapi {
|
||||
:
|
||||
}
|
||||
|
||||
function verify {
|
||||
local net_id
|
||||
net_id=$(resource_get ovn net_id)
|
||||
# verifiy will be called in base stage as well. But ovn-nbctl will be
|
||||
# installed only during the target stage.
|
||||
[ -z $(which ovn-nbctl || true) ] || ovn-nbctl list Logical_Switch neutron-$net_id
|
||||
}
|
||||
|
||||
function destroy {
|
||||
local net_id
|
||||
net_id=$(resource_get ovn net_id)
|
||||
|
||||
openstack network delete $net_id
|
||||
}
|
||||
|
||||
case $1 in
|
||||
"early_create")
|
||||
early_create
|
||||
;;
|
||||
"create")
|
||||
create
|
||||
;;
|
||||
"verify_noapi")
|
||||
verify_noapi
|
||||
;;
|
||||
"verify")
|
||||
verify
|
||||
;;
|
||||
"destroy")
|
||||
destroy
|
||||
;;
|
||||
"force_destroy")
|
||||
set +o errexit
|
||||
destroy
|
||||
;;
|
||||
esac
|
@ -1,5 +1,8 @@
|
||||
register_project_for_upgrade networking-ovn
|
||||
|
||||
devstack_localrc base disable_service ovn-northd ovn-controller
|
||||
devstack_localrc base enable_service q-agt q-meta q-metering s-account s-container s-object s-proxy
|
||||
devstack_localrc target enable_plugin networking-ovn http://git.openstack.org/openstack/networking-ovn
|
||||
devstack_localrc target enable_service ovn-northd ovn-controller
|
||||
devstack_localrc target disable_service q-l3 q-agt
|
||||
devstack_localrc target PUBLIC_BRIDGE=br-ex
|
||||
devstack_localrc target enable_service s-account s-container s-object s-proxy
|
||||
devstack_localrc target disable_service q-agt
|
||||
|
Loading…
Reference in New Issue