Skip to content
Snippets Groups Projects
Commit b96ade3c authored by Eduardo Gonzalez's avatar Eduardo Gonzalez Committed by Radosław Piliszek
Browse files

[train] Add required Tacker Conductor config and docs


Tacker requires config for storing CSAR vnf packages.
This patch adds it as well as relevant docs.
Only one Tacker Conductor is deployed by default due to
lack of a shared filesystem.

Change-Id: Iad391f35105e79fa9319502256528990915df9b7
Co-authored-by: default avatarRadosław Piliszek <radoslaw.piliszek@gmail.com>
Closes-Bug: #1845142
parent 25857889
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,7 @@ tacker_services:
tacker-server:
container_name: "tacker_server"
group: "tacker-server"
host_in_groups: "{{ inventory_hostname in groups['tacker-server'] }}"
enabled: true
image: "{{ tacker_server_image_full }}"
volumes: "{{ tacker_server_default_volumes + tacker_server_extra_volumes }}"
......@@ -23,6 +24,7 @@ tacker_services:
tacker-conductor:
container_name: "tacker_conductor"
group: "tacker-conductor"
host_in_groups: "{{ inventory_hostname in tacker_conductor_hosts }}"
enabled: true
image: "{{ tacker_conductor_image_full }}"
volumes: "{{ tacker_conductor_default_volumes + tacker_conductor_extra_volumes }}"
......@@ -62,11 +64,15 @@ tacker_conductor_default_volumes:
- "{{ kolla_dev_repos_directory ~ '/tacker/tacker:/var/lib/kolla/venv/lib/python2.7/site-packages/tacker' if tacker_dev_mode | bool else '' }}"
- "/etc/localtime:/etc/localtime:ro"
- "kolla_logs:/var/log/kolla/"
- "kolla_tacker_vnfpackages:/var/lib/tacker/vnfpackages/"
- "kolla_tacker_csar_files:/var/lib/tacker/csar_files/"
tacker_extra_volumes: "{{ default_extra_volumes }}"
tacker_server_extra_volumes: "{{ tacker_extra_volumes }}"
tacker_conductor_extra_volumes: "{{ tacker_extra_volumes }}"
tacker_conductor_hosts: "{{ [groups['tacker-conductor']|first] }}"
####################
# OpenStack
####################
......
......@@ -8,7 +8,7 @@
volumes: "{{ item.value.volumes|reject('equalto', '')|list }}"
dimensions: "{{ item.value.dimensions }}"
when:
- inventory_hostname in groups[item.value.group]
- item.value.host_in_groups | bool
- item.value.enabled | bool
with_dict: "{{ tacker_services }}"
notify:
......
......@@ -8,7 +8,7 @@
mode: "0770"
become: true
when:
- inventory_hostname in groups[item.value.group]
- item.value.host_in_groups | bool
- item.value.enabled | bool
with_dict: "{{ tacker_services }}"
......@@ -37,7 +37,7 @@
become: true
with_dict: "{{ tacker_services }}"
when:
- inventory_hostname in groups[item.value.group]
- item.value.host_in_groups | bool
- item.value.enabled
notify:
- Restart {{ item.key }} container
......@@ -57,7 +57,7 @@
become: true
with_dict: "{{ tacker_services }}"
when:
- inventory_hostname in groups[item.value.group]
- item.value.host_in_groups | bool
- item.value.enabled | bool
notify:
- Restart {{ item.key }} container
......@@ -69,7 +69,7 @@
mode: "0660"
become: true
when:
- inventory_hostname in groups[item.value.group]
- item.value.host_in_groups | bool
- item.value.enabled | bool
- tacker_policy_file is defined
with_dict: "{{ tacker_services }}"
......
......@@ -6,6 +6,6 @@
common_options: "{{ docker_common_options }}"
image: "{{ item.value.image }}"
when:
- inventory_hostname in groups[item.value.group]
- item.value.host_in_groups | bool
- item.value.enabled | bool
with_dict: "{{ tacker_services }}"
......@@ -19,6 +19,16 @@
"path": "/var/log/kolla/tacker",
"owner": "tacker:tacker",
"recurse": true
},
{
"path": "/var/lib/tacker/vnfpackages",
"owner": "tacker:tacker",
"recurse": true
},
{
"path": "/var/lib/tacker/csar_files",
"owner": "tacker:tacker",
"recurse": true
}
]
}
......@@ -62,6 +62,13 @@ In order to enable them, you need to edit the file
and any request made to a different tacker-server will fail with a
similar error as ``No such file or directory /etc/tacker/vim/fernet_keys``
.. warning::
In Train, Tacker Conductor started using local filesystem to store VNF
packages and CSAR files.
Kolla Ansible provides no shared filesystem capabilities, hence only
one instance of Tacker Conductor is deployed.
Deploy tacker and related services.
.. code-block:: console
......
---
upgrade:
- |
In Train, Tacker Conductor started using local filesystem to store VNF
packages and CSAR files.
Kolla Ansible provides no shared filesystem capabilities, hence only
one instance of Tacker Conductor is deployed.
Previous multinode deployments must manually remove all Tacker Conductors
before proceeding with upgrade.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment