Remove Docker Logical Volume in CGTS-VG.

Do not add Docker Logical Volume in CGTS-VG at all if --kubernetes
option not specified for config_controller.  Will prevent hw lab
installs from failing.  VBox installs with --kubernetes will be
fine if disk size is appropriate, hw lab installs with --kubernetes
still need work.

Change-Id: I6f3f3620dd06bfa5fbc751f5ca84191c4195ced4
This commit is contained in:
Kevin Smith 2018-06-01 11:19:17 -04:00 committed by Jack Ding
parent dafa02b84d
commit a691d3f9bb
2 changed files with 20 additions and 18 deletions

View File

@ -138,6 +138,9 @@ class platform::filesystem::docker::params (
class platform::filesystem::docker
inherits ::platform::filesystem::docker::params {
include ::platform::kubernetes::params
if $::platform::kubernetes::params::enabled {
platform::filesystem { $lv_name:
lv_name => $lv_name,
lv_size => $lv_size,
@ -145,6 +148,7 @@ class platform::filesystem::docker
fs_type => $fs_type,
fs_options => $fs_options
}
}
}
class platform::filesystem::img_conversions::params (

View File

@ -6368,8 +6368,6 @@ class ConductorManager(service.PeriodicService):
if kubernetes_config:
docker_lv_size = constants.KUBERNETES_DOCKER_STOR_SIZE
else:
docker_lv_size = constants.DEFAULT_DOCKER_STOR_SIZE
data = {
'name': constants.FILESYSTEM_NAME_DOCKER,