From 72f0edffb0ecb899e278137102915e58b7ddbe23 Mon Sep 17 00:00:00 2001 From: Chandan Kumar Date: Tue, 19 Feb 2019 10:12:24 +0530 Subject: [PATCH] Update image flavor to have some disk It seems nova has changed defaults on who can create zero-sized disk instances [1] and now os_tempest jobs failed with Only volume-backed servers are allowed for flavors with zero disk. Changing the disk to 1 fixes the same. [1] https://review.openstack.org/#/c/603910/ Change-Id: Id7467d037a7b0b4cb46add587395b21f28fb9df7 --- config_tempest/flavors.py | 2 +- roles/generate-tempestconf-file/tasks/test-demo-user.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config_tempest/flavors.py b/config_tempest/flavors.py index 8411aed8..912e5b13 100644 --- a/config_tempest/flavors.py +++ b/config_tempest/flavors.py @@ -56,7 +56,7 @@ class Flavors(object): flavor_id = self.create_flavor(pref['name'], ram=pref['ram']) self._conf.set('compute', pref['key'], flavor_id) - def create_flavor(self, flavor_name, ram=64, vcpus=1, disk=0): + def create_flavor(self, flavor_name, ram=64, vcpus=1, disk=1): """Create flavors or try to discover two smallest ones available. :param flavor_name: flavor name to be created (usually m1.nano or diff --git a/roles/generate-tempestconf-file/tasks/test-demo-user.yaml b/roles/generate-tempestconf-file/tasks/test-demo-user.yaml index a9fd50b4..e05090c2 100644 --- a/roles/generate-tempestconf-file/tasks/test-demo-user.yaml +++ b/roles/generate-tempestconf-file/tasks/test-demo-user.yaml @@ -12,7 +12,7 @@ --public \ --ram {{ item.ram }} \ --vcpus 1 \ - --disk 0 \ + --disk 1 \ {{ item.name }} with_items: - { name: "m1.nano", ram: 64 }