summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeriyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>2018-03-12 15:12:44 +0100
committerPeriyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>2018-03-12 15:12:44 +0100
commitcc10bd492affb033b68d3b8f4cb1d8c9d554f995 (patch)
tree48115af7fd61e7005c56557420c05da23a28563b
parent90204b0850c38e2c9eeb2cbb4dfccc2053beafb4 (diff)
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 <periyasamy.palanisamy@ericsson.com>
-rw-r--r--sdnvpn/lib/openstack_utils.py7
1 files changed, 0 insertions, 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))