Add volume for /var/log/kolla

Since Heka was introduced, /var/log/kolla has to be a volume
due to changes in the most of start scripts.

TrivialFix

Change-Id: Ib19cfa43a8a156ef8db2d23e0fb94ed03e308bc9
This commit is contained in:
Michal Rostecki
2016-02-23 17:12:45 +01:00
parent ca6327981e
commit be49549b8e
30 changed files with 85 additions and 0 deletions

View File

@@ -10,6 +10,8 @@ container:
value: "/run/netns:/run/netns:shared"
- key: volume
value: "neutron_metadata_socket:/var/lib/neutron/kolla/"
- key: volume
value: "kolla_logs_{{ deployment_id }}:/var/log/kolla"
service:
daemon:
dependencies: [neutron_ansible_tasks/create_user, rabbitmq/daemon]

View File

@@ -10,6 +10,8 @@ container:
value: "/run/netns:/run/netns:shared"
- key: volume
value: "neutron_metadata_socket:/var/lib/neutron/kolla/"
- key: volume
value: "kolla_logs_{{ deployment_id }}:/var/log/kolla"
service:
daemon:
dependencies: [neutron_ansible_tasks/create_user, rabbitmq/daemon]

View File

@@ -3,6 +3,9 @@ enabled: {{ enable_neutron | bool and neutron_plugin_agent == 'linuxbridge' }}
container:
image: "{{ neutron_linuxbridge_agent_image }}:{{ neutron_linuxbridge_agent_tag }}"
privileged: true
parameters:
- key: volume
value: "kolla_logs_{{ deployment_id }}:/var/log/kolla"
volumes:
- containerPath: "/run"
hostPath: "/run"

View File

@@ -8,6 +8,8 @@ container:
value: "/run/netns:/run/netns:shared"
- key: volume
value: "neutron_metadata_socket:/var/lib/neutron/kolla/"
- key: volume
value: "kolla_logs_{{ deployment_id }}:/var/log/kolla"
service:
daemon:
dependencies: [neutron_ansible_tasks/create_user, rabbitmq/daemon]

View File

@@ -3,6 +3,9 @@ enabled: {{ enable_neutron | bool and neutron_plugin_agent == 'openvswitch' }}
container:
image: "{{ neutron_openvswitch_agent_image }}:{{ neutron_openvswitch_agent_tag }}"
privileged: true
parameters:
- key: volume
value: "kolla_logs_{{ deployment_id }}:/var/log/kolla"
volumes:
- containerPath: "/run"
hostPath: "/run"

View File

@@ -2,6 +2,9 @@ name: openstack/neutron/neutron-server
enabled: {{ enable_neutron | bool }}
container:
image: "{{ neutron_server_image }}:{{ neutron_server_tag }}"
parameters:
- key: volume
value: "kolla_logs_{{ deployment_id }}:/var/log/kolla"
service:
daemon:
dependencies: [neutron-server/db_sync, neutron_ansible_tasks/create_user, rabbitmq/daemon]

View File

@@ -5,6 +5,8 @@ container:
parameters:
- key: volume
value: "openvswitch_db:/var/lib/openvswitch/"
- key: volume
value: "kolla_logs_{{ deployment_id }}:/var/log/kolla"
volumes:
- containerPath: "/run"
hostPath: "/run"

View File

@@ -2,6 +2,9 @@ name: infra/openvswitch/openvswitch-tasks
enabled: {{ enable_neutron | bool and neutron_plugin_agent == 'openvswitch' }}
container:
image: "{{ openvswitch_db_image }}:{{ openvswitch_db_tag }}"
parameters:
- key: volume
value: "kolla_logs_{{ deployment_id }}:/var/log/kolla"
volumes:
- containerPath: "/run"
hostPath: "/run"

View File

@@ -3,6 +3,9 @@ enabled: {{ enable_neutron | bool and neutron_plugin_agent == 'openvswitch' }}
container:
image: "{{ openvswitch_vswitchd_image }}:{{ openvswitch_vswitchd_tag }}"
privileged: true
parameters:
- key: volume
value: "kolla_logs_{{ deployment_id }}:/var/log/kolla"
volumes:
- containerPath: "/run"
hostPath: "/run"