Configure DPDK options to isolate PMD cores and ovs process cores
[apex-tripleo-heat-templates.git] / docker / services / nova-compute.yaml
1 heat_template_version: 2015-04-30
2
3 description: >
4   OpenStack containerized Nova Compute service
5
6 parameters:
7   DockerNamespace:
8     description: namespace
9     default: 'tripleoupstream'
10     type: string
11   DockerNovaComputeImage:
12     description: image
13     default: 'centos-binary-nova-compute'
14     type: string
15   ServiceNetMap:
16     default: {}
17     description: Mapping of service_name -> network name. Typically set
18                  via parameter_defaults in the resource registry.  This
19                  mapping overrides those in ServiceNetMapDefaults.
20     type: json
21   DefaultPasswords:
22     default: {}
23     type: json
24   EndpointMap:
25     default: {}
26     description: Mapping of service endpoint -> protocol. Typically set
27                  via parameter_defaults in the resource registry.
28     type: json
29
30 resources:
31
32   NovaComputeBase:
33     type: ../../puppet/services/nova-compute.yaml
34     properties:
35       EndpointMap: {get_param: EndpointMap}
36
37 outputs:
38   role_data:
39     description: Role data for the Nova Compute service.
40     value:
41       config_settings: {get_attr: [NovaComputeBase, role_data, config_settings]}
42       step_config: {get_attr: [NovaComputeBase, role_data, step_config]}
43       puppet_tags: nova_config,nova_paste_api_ini
44       docker_config:
45         step_1:
46           novacompute:
47             image:
48               list_join:
49               - '/'
50               - [ {get_param: DockerNamespace}, {get_param: DockerNovaComputeImage} ]
51             net: host
52             privileged: true
53             user: root
54             restart: always
55             volumes:
56               - /var/lib/etc-data/json-config/nova-compute.json:/var/lib/kolla/config_files/config.json
57               - /var/lib/etc-data/nova/nova.conf:/var/lib/kolla/config_files/nova.conf:ro
58               - /var/lib/etc-data/nova/rootwrap.conf:/var/lib/kolla/config_files/rootwrap.conf:ro
59               - /etc/localtime:/etc/localtime:ro
60               - /lib/modules:/lib/modules:ro
61               - /run:/run
62               - /dev:/dev
63               - logs:/var/log/kolla/
64               - /etc/iscsi:/etc/iscsi
65               - libvirtd:/var/lib/libvirt
66               - nova_compute:/var/lib/nova/
67             environment:
68              - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
69         step_2: {}