Revision history [back]

click to hide/show revision 1
initial version

why start heka container twice?

Hi,
At kolla 2.0.2
ansible/roles/common/tasks/bootstap.yml

- name: Starting heka bootstrap container
  kolla_docker:
    action: "start_container"
    common_options: "{{ docker_common_options }}"
    detach: False
    environment:
      KOLLA_BOOTSTRAP:
      KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}"
    image: "{{ heka_image_full }}"
    labels:
      BOOTSTRAP:
    name: "bootstrap_heka"
    restart_policy: "never"
    volumes:
      - "{{ node_config_directory }}/heka/:{{ container_config_directory }}/:ro"
      - "/etc/localtime:/etc/localtime:ro"
      - "kolla_logs:/var/log/kolla/"
  when: kolla_logs_volume.changed

ansible/roles/common/tasks/start.yml

- name: Starting heka container
  kolla_docker:
    action: "start_container"
    common_options: "{{ docker_common_options }}"
    environment:
      KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}"
      SKIP_LOG_SETUP: "true"
    image: "{{ heka_image_full }}"
    name: "heka"
    volumes:
      - "{{ node_config_directory }}/heka/:{{ container_config_directory }}/:ro"
      - "/etc/localtime:/etc/localtime:ro"
      - "kolla_logs:/var/log/kolla/"
      - "heka:/var/cache/hekad"
      - "heka_socket:/var/lib/kolla/heka/"

I think that bootstrap_heka is useless.