From b07fd0b2dc65b00923f3abf70dddeb08351212b3 Mon Sep 17 00:00:00 2001 From: Nobuto Murata Date: Sun, 4 Sep 2022 09:48:42 +0900 Subject: [PATCH] Support LTS_IMAGE_NAME(jammy) in guest.launch_instance Follow-up of #860 and #791 to fix: File "./zaza/openstack/charm_tests/test_utils.py", line 798, in launch_guest return configure_guest.launch_instance( File "./zaza/openstack/configure/guest.py", line 128, in launch_instance image_name = image_name or boot_tests[instance_key]['image_name'] KeyError: 'jammy' --- zaza/openstack/configure/guest.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/zaza/openstack/configure/guest.py b/zaza/openstack/configure/guest.py index 9ceeaf8..1c1e929 100644 --- a/zaza/openstack/configure/guest.py +++ b/zaza/openstack/configure/guest.py @@ -47,7 +47,13 @@ boot_tests = { 'image_name': 'focal', 'flavor_name': 'm1.small', 'username': 'ubuntu', - 'bootstring': 'finished at'}} + 'bootstring': 'finished at'}, + 'jammy': { + 'image_name': 'jammy', + 'flavor_name': 'm1.small', + 'username': 'ubuntu', + 'bootstring': 'finished at'} +} def launch_instance_retryer(instance_key, **kwargs):