From dbe7b30748c3c92f630c1323dd482d87b4dfccc9 Mon Sep 17 00:00:00 2001 From: Dylan Murphy Date: Mon, 4 Jul 2022 13:49:49 -0400 Subject: [PATCH] upgrading an OSH subchart config only impacts subchart This verifies that making a configuration change to one of Umbrella's subcharts results in only the application (DaemonSet, Deployment or StatefulSet) for that subchart being updated. No other subchart's application should be updated. This only validates subcharts from openstack-helm. Validating the remaining subcharts from openstack-helm-infra has been done in another commit. Change-Id: I649dde64313dfaaa7440c86fd50c3882874bf122 --- ...-config-changes-do-not-update-other-components.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/tools/gate/tests/validate-umbrella-upgrade-config-changes-do-not-update-other-components.sh b/tools/gate/tests/validate-umbrella-upgrade-config-changes-do-not-update-other-components.sh index c3beeffb65..9aeef6eaff 100755 --- a/tools/gate/tests/validate-umbrella-upgrade-config-changes-do-not-update-other-components.sh +++ b/tools/gate/tests/validate-umbrella-upgrade-config-changes-do-not-update-other-components.sh @@ -26,6 +26,11 @@ validate_only_expected_application_changes () { --output custom-columns=Kind:.kind,Name:.metadata.name,Generation:.status.observedGeneration \ > "$before_apps_list" + kubectl delete jobs \ + --namespace openstack \ + -l "application=$app_name" \ + --wait + helm upgrade openstack ./openstack \ --namespace openstack \ --reuse-values \ @@ -56,9 +61,14 @@ validate_only_expected_application_changes () { fi } - +validate_only_expected_application_changes "glance" "--set glance.conf.logging.logger_glance.level=WARN" +validate_only_expected_application_changes "heat" "--set heat.conf.logging.logger_heat.level=WARN" +validate_only_expected_application_changes "keystone" "--set keystone.conf.logging.logger_keystone.level=WARN" validate_only_expected_application_changes "libvirt" "--set libvirt.conf.libvirt.log_level=2" validate_only_expected_application_changes "mariadb" "--set mariadb.conf.database.config_override=[mysqld]\nlog_warnings=3" validate_only_expected_application_changes "memcached" "--set memcached.conf.memcached.stats_cachedump.enabled=false" +validate_only_expected_application_changes "neutron" "--set neutron.conf.logging.logger_neutron.level=WARN" +validate_only_expected_application_changes "nova" "--set nova.conf.logging.logger_nova.level=WARN" validate_only_expected_application_changes "openvswitch" "--set openvswitch.pod.user.nova.uid=42425" +validate_only_expected_application_changes "placement" "--set placement.conf.logging.logger_placement.level=WARN" validate_only_expected_application_changes "rabbitmq" "--set rabbitmq.conf.rabbitmq.log.file.level=info"