From cc10bd492affb033b68d3b8f4cb1d8c9d554f995 Mon Sep 17 00:00:00 2001 From: Periyasamy Palanisamy Date: Mon, 12 Mar 2018 15:12:44 +0100 Subject: remove extra specs for the flavor It has problem in booting up VMs which are with custom flavor configured. So removing extra specs from the flavor which anyway is not needed. Change-Id: I38fe1449ea585a3a6db95a7f21fd1d3fca0f528e Signed-off-by: Periyasamy Palanisamy --- sdnvpn/lib/openstack_utils.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/sdnvpn/lib/openstack_utils.py b/sdnvpn/lib/openstack_utils.py index fd29c87..8089137 100644 --- a/sdnvpn/lib/openstack_utils.py +++ b/sdnvpn/lib/openstack_utils.py @@ -360,13 +360,6 @@ def create_flavor(nova_client, flavor_name, ram, disk, vcpus, public=True): try: flavor = nova_client.flavors.create( flavor_name, ram, vcpus, disk, is_public=public) - try: - extra_specs = {'hw:mem_page_size':'large'} - flavor.set_keys(extra_specs) - except ValueError: - # flavor extra specs are not configured, therefore skip the update - pass - except Exception as e: logger.error("Error [create_flavor(nova_client, '%s', '%s', '%s', " "'%s')]: %s" % (flavor_name, ram, disk, vcpus, e)) -- cgit 1.2.3-korg