From 7207b9ee6cff002c02b8cd46ce4088d86de8afdc Mon Sep 17 00:00:00 2001 From: Lee Yarwood Date: Mon, 6 Jul 2020 22:17:01 +0100 Subject: [PATCH] Fix os_CODENAME detection and repo refresh during ceph tests This is a partial backport of Iea6288fe6d341ee92f87a35e0b0a59fe564ab96c a change introduced in Stein that fixed OS detection in the nova-live-migration job while installing Ceph. This is required after the devstack-plugin-ceph job was recently refactored by I51c90e592070b99422e692d5e9e97083d93146e8 and in doing so introduced various OS specific conditionals that require os_CODENAME to be set. Change-Id: Iea6288fe6d341ee92f87a35e0b0a59fe564ab96c (cherry picked from commit 9b2a7f9e7c9c24ad5b698f78681a1de1593b4a53) --- nova/tests/live_migration/hooks/run_tests.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/nova/tests/live_migration/hooks/run_tests.sh b/nova/tests/live_migration/hooks/run_tests.sh index 90136866589d..a84b92978c8c 100755 --- a/nova/tests/live_migration/hooks/run_tests.sh +++ b/nova/tests/live_migration/hooks/run_tests.sh @@ -42,6 +42,7 @@ echo '2. NFS testing is skipped due to setup failures with Ubuntu 16.04' #nfs_teardown echo '3. test with Ceph for root + ephemeral disks' +GetOSVersion prepare_ceph GLANCE_API_CONF=${GLANCE_API_CONF:-/etc/glance/glance-api.conf} configure_and_start_glance