diff options
author | Oliver Walsh <owalsh@redhat.com> | 2017-06-08 00:17:53 +0100 |
---|---|---|
committer | Oliver Walsh <owalsh@redhat.com> | 2017-07-23 02:26:55 +0100 |
commit | 4a7f3398f115a4eaab6993b0aad9c16fa7f55afa (patch) | |
tree | b028d396c6cb80c85181c001c1680c265abc5530 /docker/services/nova-compute.yaml | |
parent | fdd4352375c24c189d028f34cc66b3b1f2d474ee (diff) |
Add support for nova live/cold-migration with containers
Updates hieradata for changes in https://review.openstack.org/471950.
Creates a new service - NovaMigrationTarget. On baremetal this just configures
live/cold-migration. On docker is includes a container running a second sshd
services on an alternative port.
Configures /var/lib/nova/.ssh/config and mounts in nova-compute and libvirtd
containers.
Change-Id: Ic4b810ff71085b73ccd08c66a3739f94e6c0c427
Implements: blueprint tripleo-cold-migration
Depends-On: I6c04cebd1cf066c79c5b4335011733d32ac208dc
Depends-On: I063a84a8e6da64ae3b09125cfa42e48df69adc12
Diffstat (limited to 'docker/services/nova-compute.yaml')
-rw-r--r-- | docker/services/nova-compute.yaml | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/docker/services/nova-compute.yaml b/docker/services/nova-compute.yaml index d8e76925..2fb517e8 100644 --- a/docker/services/nova-compute.yaml +++ b/docker/services/nova-compute.yaml @@ -36,6 +36,11 @@ parameters: description: Mapping of service endpoint -> protocol. Typically set via parameter_defaults in the resource registry. type: json + DockerNovaMigrationSshdPort: + default: 2022 + description: Port that dockerized nova migration target sshd service + binds to. + type: number resources: @@ -51,6 +56,7 @@ resources: DefaultPasswords: {get_param: DefaultPasswords} RoleName: {get_param: RoleName} RoleParameters: {get_param: RoleParameters} + MigrationSshPort: {get_param: DockerNovaMigrationSshdPort} outputs: role_data: @@ -58,14 +64,7 @@ outputs: value: service_name: {get_attr: [NovaComputeBase, role_data, service_name]} config_settings: - map_merge: - - get_attr: [NovaComputeBase, role_data, config_settings] - # FIXME: we need to disable migration for now as the - # hieradata is common for all services, and this means nova - # and nova_placement puppet runs also try to configure - # libvirt, and they fail. We can remove this override when - # we have hieradata separation between containers. - - tripleo::profile::base::nova::manage_migration: false + get_attr: [NovaComputeBase, role_data, config_settings] step_config: &step_config get_attr: [NovaComputeBase, role_data, step_config] puppet_config: |