remove extra specs for the flavor 69/53569/1
authorPeriyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
Mon, 12 Mar 2018 14:12:44 +0000 (15:12 +0100)
committerPeriyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
Mon, 12 Mar 2018 14:12:44 +0000 (15:12 +0100)
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 <periyasamy.palanisamy@ericsson.com>
sdnvpn/lib/openstack_utils.py

index fd29c87..8089137 100644 (file)
@@ -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))