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
39 description: Mapping of service endpoint -> protocol. Typically set
40 via parameter_defaults in the resource registry.
46 type: ./containers-common.yaml
49 type: ../../puppet/services/nova-libvirt.yaml
51 EndpointMap: {get_param: EndpointMap}
52 ServiceNetMap: {get_param: ServiceNetMap}
53 DefaultPasswords: {get_param: DefaultPasswords}
54 RoleName: {get_param: RoleName}
55 RoleParameters: {get_param: RoleParameters}
59 description: Role data for the Libvirt service.
61 service_name: {get_attr: [NovaLibvirtBase, role_data, service_name]}
64 - get_attr: [NovaLibvirtBase, role_data, config_settings]
65 # FIXME: we need to disable migration for now as the
66 # hieradata is common for all services, and this means nova
67 # and nova_placement puppet runs also try to configure
68 # libvirt, and they fail. We can remove this override when
69 # we have hieradata separation between containers.
70 - tripleo::profile::base::nova::manage_migration: false
71 step_config: &step_config
72 get_attr: [NovaLibvirtBase, role_data, step_config]
74 config_volume: nova_libvirt
75 puppet_tags: nova_config
76 step_config: *step_config
80 - [ {get_param: DockerNamespace}, {get_param: DockerNovaConfigImage} ]
82 /var/lib/kolla/config_files/nova-libvirt.json:
83 command: /usr/sbin/libvirtd --config /etc/libvirt/libvirtd.conf
94 - [ {get_param: DockerNamespace}, {get_param: DockerLibvirtImage} ]
101 - {get_attr: [ContainersCommon, volumes]}
103 - /var/lib/kolla/config_files/nova-libvirt.json:/var/lib/kolla/config_files/config.json:ro
104 - /var/lib/config-data/nova_libvirt/etc/libvirt/:/etc/libvirt/:ro
105 - /lib/modules:/lib/modules:ro
108 - /sys/fs/cgroup:/sys/fs/cgroup
109 - /var/lib/nova:/var/lib/nova
110 # Needed to use host's virtlogd
111 - /var/run/libvirt:/var/run/libvirt
112 - /var/lib/libvirt:/var/lib/libvirt
113 - /etc/libvirt/qemu:/etc/libvirt/qemu
114 - /var/log/containers/nova:/var/log/nova
116 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
118 - name: create libvirt persistent data directories
125 - /var/log/containers/nova
127 - name: Stop and disable libvirtd service
129 service: name=libvirtd state=stopped enabled=no