Remove support for nova-local lvm backend for compute hosts

This story tracks the removal of the nova-local lvm backend for compute
hosts. The lvm backend is no longer required; nova-local storage will
continue to support settings of "image" or "remote" backends.

This story will remove custom code related to lvm nova-local storage:
- the InstanceStorageType constant local_lvm is removed

DocImpact
Story: 2004427
Task: 28086
Depends-On: https://review.openstack.org/620179

Change-Id: I3c77124407b6d77a34a180f485142ff281648c85
Signed-off-by: Jim Gauld <james.gauld@windriver.com>
This commit is contained in:
Jim Gauld 2018-11-26 16:42:01 -05:00
parent 4b378543a0
commit d74a0f3896
5 changed files with 1 additions and 9 deletions

View File

@ -41,9 +41,7 @@ max_cold_migrate_wait_in_secs=900
max_resize_wait_in_secs=900
max_evacuate_wait_in_secs=900
max_cold_migrate_local_image_disk_gb=60
max_cold_migrate_local_lvm_disk_gb=20
max_evacuate_local_image_disk_gb=60
max_evacuate_local_lvm_disk_gb=20
[sw-mgmt-configuration]

View File

@ -1553,7 +1553,7 @@ class InstanceDirector(object):
nfvi.objects.v1.InstanceTypeAttributes(
vcpus, mem_mb, disk_gb, ephemeral_gb, swap_gb, None, auto_recovery,
live_migration_timeout, live_migration_max_downtime,
nfvi.objects.v1.STORAGE_TYPE.LOCAL_LVM_BACKED)
nfvi.objects.v1.STORAGE_TYPE.LOCAL_IMAGE_BACKED)
nfvi.nfvi_create_instance_type(instance_type_uuid, instance_type_name,
instance_type_attributes,
instance_type_create_callback)

View File

@ -17,7 +17,6 @@ class InstanceTypeStorage(Constants):
"""
UNKNOWN = Constant('unknown')
REMOTE_BACKED = Constant('remote')
LOCAL_LVM_BACKED = Constant('local_lvm')
LOCAL_IMAGE_BACKED = Constant('local_image')

View File

@ -1473,8 +1473,6 @@ class Instance(ObjectData):
config_option = None
if STORAGE_TYPE.LOCAL_IMAGE_BACKED == storage_type:
config_option = 'max_cold_migrate_local_image_disk_gb'
elif STORAGE_TYPE.LOCAL_LVM_BACKED == storage_type:
config_option = 'max_cold_migrate_local_lvm_disk_gb'
if (config_option is not None and
config.section_exists('instance-configuration')):
@ -1511,8 +1509,6 @@ class Instance(ObjectData):
config_option = None
if STORAGE_TYPE.LOCAL_IMAGE_BACKED == storage_type:
config_option = 'max_evacuate_local_image_disk_gb'
elif STORAGE_TYPE.LOCAL_LVM_BACKED == storage_type:
config_option = 'max_evacuate_local_lvm_disk_gb'
if (config_option is not None and
config.section_exists('instance-configuration')):

View File

@ -21,7 +21,6 @@ class InstanceTypeStorage(Constants):
"""
UNKNOWN = Constant('unknown')
REMOTE_BACKED = Constant('remote')
LOCAL_LVM_BACKED = Constant('local_lvm')
LOCAL_IMAGE_BACKED = Constant('local_image')