Enable StarlingX in QEMU/KVM VM

To support StarlingX running in Openstack Nova VM (QEMU/KVM
environment), there is a new user parameter added in ansible
playbook to indicate if the system is running in an Openstack VM.
A corresponding service parameter is created in service parameter
and to be used to generate a puppet hieradata "virtual_system".

A couple of changes required for "virtual system" only:
- disable kubelet cpu manager to use full set of cpu and
  memory resources
- set registry.central to system controller's mgmt IP on
  subcloud to be able to pull images from central cloud
  registry in DC mode
- explicitly set registry.local to subcloud's mgmt IP on
  subcloud as dcorch synchronizes the dns server with
  system controller's dns server which cannot be reached
  on subcloud

Change-Id: I3b21b76cc58a71319a32d2ca2e11d35306ba2292
Story: 2007858
Task: 40720
Depends-On: https://review.opendev.org/747478
Signed-off-by: Angie Wang <angie.wang@windriver.com>
This commit is contained in:
Angie Wang
2020-08-19 17:54:49 -04:00
parent 8f68f93b7a
commit 499ac5899c
4 changed files with 49 additions and 18 deletions

View File

@@ -25,6 +25,8 @@ class platform::params (
$security_feature = undef,
$stx_openstack_applied = false,
$system_controller_addr = undef,
$system_controller_mgmt_addr = undef,
$virtual_system = false,
) {
$ipv4 = 4
$ipv6 = 6