1 heat_template_version: pike
4 OpenStack Libvirt Service
9 default: 'tripleoupstream'
13 default: 'centos-binary-nova-libvirt:latest'
15 # we configure libvirt via the nova-compute container due to coupling
16 # in the puppet modules
17 DockerNovaConfigImage:
19 default: 'centos-binary-nova-compute:latest'
23 description: Mapping of service_name -> network name. Typically set
24 via parameter_defaults in the resource registry. This
25 mapping overrides those in ServiceNetMapDefaults.
32 description: Role name on which the service is applied
36 description: Parameters specific to the role
40 description: Mapping of service endpoint -> protocol. Typically set
41 via parameter_defaults in the resource registry.
47 type: ./containers-common.yaml
50 type: ../../puppet/services/nova-libvirt.yaml
52 EndpointMap: {get_param: EndpointMap}
53 ServiceNetMap: {get_param: ServiceNetMap}
54 DefaultPasswords: {get_param: DefaultPasswords}
55 RoleName: {get_param: RoleName}
56 RoleParameters: {get_param: RoleParameters}
60 description: Role data for the Libvirt service.
62 service_name: {get_attr: [NovaLibvirtBase, role_data, service_name]}
65 - get_attr: [NovaLibvirtBase, role_data, config_settings]
66 # FIXME: we need to disable migration for now as the
67 # hieradata is common for all services, and this means nova
68 # and nova_placement puppet runs also try to configure
69 # libvirt, and they fail. We can remove this override when
70 # we have hieradata separation between containers.
71 - tripleo::profile::base::nova::manage_migration: false
72 step_config: &step_config
73 get_attr: [NovaLibvirtBase, role_data, step_config]
75 config_volume: nova_libvirt
76 puppet_tags: nova_config
77 step_config: *step_config
81 - [ {get_param: DockerNamespace}, {get_param: DockerNovaConfigImage} ]
83 /var/lib/kolla/config_files/nova-libvirt.json:
84 command: /usr/sbin/libvirtd --config /etc/libvirt/libvirtd.conf
95 - [ {get_param: DockerNamespace}, {get_param: DockerLibvirtImage} ]
102 - {get_attr: [ContainersCommon, volumes]}
104 - /var/lib/kolla/config_files/nova-libvirt.json:/var/lib/kolla/config_files/config.json:ro
105 - /var/lib/config-data/nova_libvirt/etc/libvirt/:/etc/libvirt/:ro
106 - /lib/modules:/lib/modules:ro
109 - /sys/fs/cgroup:/sys/fs/cgroup
110 - /var/lib/nova:/var/lib/nova
111 # Needed to use host's virtlogd
112 - /var/run/libvirt:/var/run/libvirt
113 - /var/lib/libvirt:/var/lib/libvirt
114 - /etc/libvirt/qemu:/etc/libvirt/qemu
115 - /var/log/containers/nova:/var/log/nova
117 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
119 - name: create libvirt persistent data directories
126 - /var/log/containers/nova
128 - name: Stop and disable libvirtd service
130 service: name=libvirtd state=stopped enabled=no