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: Mapping of service endpoint -> protocol. Typically set
33 via parameter_defaults in the resource registry.
39 type: ./containers-common.yaml
42 type: ../../puppet/services/nova-libvirt.yaml
44 EndpointMap: {get_param: EndpointMap}
45 ServiceNetMap: {get_param: ServiceNetMap}
46 DefaultPasswords: {get_param: DefaultPasswords}
50 description: Role data for the Libvirt service.
52 service_name: {get_attr: [NovaLibvirtBase, role_data, service_name]}
55 - get_attr: [NovaLibvirtBase, role_data, config_settings]
56 # FIXME: we need to disable migration for now as the
57 # hieradata is common for all services, and this means nova
58 # and nova_placement puppet runs also try to configure
59 # libvirt, and they fail. We can remove this override when
60 # we have hieradata separation between containers.
61 - tripleo::profile::base::nova::manage_migration: false
62 step_config: &step_config
63 get_attr: [NovaLibvirtBase, role_data, step_config]
65 config_volume: nova_libvirt
66 puppet_tags: nova_config
67 step_config: *step_config
71 - [ {get_param: DockerNamespace}, {get_param: DockerNovaConfigImage} ]
73 /var/lib/kolla/config_files/nova-libvirt.json:
74 command: /usr/sbin/libvirtd --config /etc/libvirt/libvirtd.conf
81 - [ {get_param: DockerNamespace}, {get_param: DockerLibvirtImage} ]
88 - {get_attr: [ContainersCommon, volumes]}
90 - /var/lib/kolla/config_files/nova-libvirt.json:/var/lib/kolla/config_files/config.json:ro
91 - /var/lib/config-data/nova_libvirt/etc/libvirt/:/etc/libvirt/:ro
92 - /lib/modules:/lib/modules:ro
95 - /sys/fs/cgroup:/sys/fs/cgroup
96 - /var/lib/nova:/var/lib/nova
97 # Needed to use host's virtlogd
98 - /var/run/libvirt:/var/run/libvirt
99 - /var/lib/libvirt:/var/lib/libvirt
100 - /etc/libvirt/qemu:/etc/libvirt/qemu
102 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
104 - name: create libvirt persistent data directories
112 - name: Stop and disable libvirtd service
114 service: name=libvirtd state=stopped enabled=no