Merge "Remove support for nova-local lvm backend for compute hosts"

This commit is contained in:
Zuul 2018-11-29 15:42:22 +00:00 committed by Gerrit Code Review
commit 8d69d4bb78
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')