Small updates: create raw images, change tempest config
Related-PROD: PROD-37187
Change-Id: I3fb259b7a16753fcaad009b8138e909fd66e1774
diff --git a/k8s/workspace/update-openstack-resources.sh b/k8s/workspace/update-openstack-resources.sh
index 75d1216..e292bda 100644
--- a/k8s/workspace/update-openstack-resources.sh
+++ b/k8s/workspace/update-openstack-resources.sh
@@ -50,6 +50,17 @@
sed -i "s/volume_type_name/${TEMPEST_CUSTOM_VOLUME_TYPE}/g" $MY_PROJFOLDER/yamls/tempest_custom.yaml
echo " "
+echo "# Checking Neutron global physnet mtu value"
+global_physnet_mtu=""
+global_physnet_mtu=$(kubectl get osdpl -A -o wide -o yaml | grep global_physnet_mtu | tail -n1 | cut -d':' -f2 | tr -d ' ')
+if [ -n "$global_physnet_mtu" ]; then
+ echo "global_physnet_mtu is set to: $global_physnet_mtu"
+ cat <<EOF >> $MY_PROJFOLDER/yamls/tempest_custom.yaml
+neutron_plugin_options:
+ max_mtu: $global_physnet_mtu
+EOF
+fi
+
echo "# Updating SPT global_config.yaml"
cp -v /opt/res-files/k8s/yamls/spt_global_config.yaml.clean $MY_PROJFOLDER/yamls/global_config.yaml
echo "# image_ref_name -> ${ubuntu20_name}"
diff --git a/k8s/yamls/tempest_custom.yaml.clean b/k8s/yamls/tempest_custom.yaml.clean
index 5db71af..6a65e4f 100644
--- a/k8s/yamls/tempest_custom.yaml.clean
+++ b/k8s/yamls/tempest_custom.yaml.clean
@@ -7,7 +7,6 @@
disable_ssl_certificate_validation: true
compute:
volume_device_name: vdb
- compute_volume_common_az: nova
heat_plugin:
floating_network_name: public_net_name
network_for_ssh: public_net_name
@@ -18,5 +17,4 @@
network-feature-enabled:
floating_ips: true
volume:
- volume_type: volume_type_name
- volume_type_multiattach: volume_type_name
\ No newline at end of file
+ volume_type: volume_type_name
\ No newline at end of file