1 heat_template_version: pike
4 OpenStack containerized Nova Migration Target service
7 DockerNovaComputeImage:
10 DockerNovaLibvirtConfigImage:
11 description: The container image to use for the nova_libvirt config_volume
15 description: Dictionary packing service data
19 description: Mapping of service_name -> network name. Typically set
20 via parameter_defaults in the resource registry. This
21 mapping overrides those in ServiceNetMapDefaults.
28 description: Role name on which the service is applied
32 description: Parameters specific to the role
36 description: Mapping of service endpoint -> protocol. Typically set
37 via parameter_defaults in the resource registry.
39 DockerNovaMigrationSshdPort:
41 description: Port that dockerized nova migration target sshd service
47 SSH key for migration.
48 Expects a dictionary with keys 'public_key' and 'private_key'.
49 Values should be identical to SSH public/private key files.
55 description: Target port for migration over ssh
60 # During Ocata->Pike upgrade initially configure the ssh service on port 22
61 # to proxy migration commands to the containerized sshd on port 2022.
62 # When the upgrade converges we can switch migrations over to port 2022.
63 enable_migration_proxy:
65 - {get_param: MigrationSshPort}
71 type: ./containers-common.yaml
74 type: ../../puppet/services/sshd.yaml
76 EndpointMap: {get_param: EndpointMap}
77 ServiceNetMap: {get_param: ServiceNetMap}
78 DefaultPasswords: {get_param: DefaultPasswords}
79 RoleName: {get_param: RoleName}
80 RoleParameters: {get_param: RoleParameters}
82 NovaMigrationTargetBase:
83 type: ../../puppet/services/nova-migration-target.yaml
85 EndpointMap: {get_param: EndpointMap}
86 ServiceNetMap: {get_param: ServiceNetMap}
87 DefaultPasswords: {get_param: DefaultPasswords}
88 RoleName: {get_param: RoleName}
89 RoleParameters: {get_param: RoleParameters}
93 description: Role data for the Nova Migration Target service.
95 service_name: nova_migration_target
98 - get_attr: [SshdBase, role_data, config_settings]
99 - get_attr: [NovaMigrationTargetBase, role_data, config_settings]
100 # NB this prevents the baremetal ssh from listening on port 2022
101 # It doesn't affect the sshd port in the container as we override it below on the sshd cli
102 - tripleo::profile::base::sshd::port: 22
104 - enable_migration_proxy
105 - tripleo::profile::base::nova::migration::proxy::ssh_private_key: {get_param: [ MigrationSshKey, private_key ]}
106 tripleo::profile::base::nova::migration::proxy::target_port: {get_param: DockerNovaMigrationSshdPort}
107 tripleo::profile::base::nova::migration::proxy::target_host: "%{hiera('live_migration_ssh_inbound_addr')}"
109 logging_source: {get_attr: [NovaMigrationTargetBase, role_data, logging_source]}
110 logging_groups: {get_attr: [NovaMigrationTargetBase, role_data, logging_groups]}
111 step_config: &step_config
114 - - get_attr: [SshdBase, role_data, step_config]
115 - get_attr: [NovaMigrationTargetBase, role_data, step_config]
117 config_volume: nova_libvirt
118 step_config: *step_config
119 config_image: {get_param: DockerNovaLibvirtConfigImage}
121 /var/lib/kolla/config_files/nova-migration-target.json:
124 template: "/usr/sbin/sshd -D -p SSHDPORT"
126 SSHDPORT: {get_param: DockerNovaMigrationSshdPort}
128 - source: "/var/lib/kolla/config_files/src/*"
131 preserve_properties: true
132 - source: /host-ssh/ssh_host_*_key
138 nova_migration_target:
139 image: {get_param: DockerNovaComputeImage}
146 - {get_attr: [ContainersCommon, volumes]}
148 - /var/lib/kolla/config_files/nova-migration-target.json:/var/lib/kolla/config_files/config.json:ro
149 - /var/lib/config-data/puppet-generated/nova_libvirt/:/var/lib/kolla/config_files/src:ro
150 - /etc/ssh/:/host-ssh/:ro
152 - /var/lib/nova:/var/lib/nova:shared
154 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS