This update contains several changes
- Used a more recent commit of envoy specifically the one right before
they broke it until the envoy team fixes the issue.
- Exposed envoy's admin interfacet to enable the gathering of NBI
activity stats from the cluster.
- Removed some unncessary filters from Envoy to reduce the size of the
config file and make it easier to understand.
- Removed the envoy directory and the mount thereof because everything
now comes packaged in the containter.
- Fixed a bug int the cluster VM Vagrantfile that was causing kernel
panics on some architectures.
- Added a log collection script to facilitate problem reporting.
- Removed the nginx directory from the install since nginx isn't being
used in production.
Change-Id: Ifc73a4e177d0a2ac9c9d373d936988fa17d586d2
diff --git a/install/ansible/roles/installer/tasks/main.yml b/install/ansible/roles/installer/tasks/main.yml
index b5b7afa..cbf2206 100644
--- a/install/ansible/roles/installer/tasks/main.yml
+++ b/install/ansible/roles/installer/tasks/main.yml
@@ -2,25 +2,14 @@
apt_repository:
repo: 'ppa:ansible/ansible'
tags: [installer]
+
- name: Debian ansible is present
apt:
name: ansible
state: latest
force: yes
tags: [installer]
-#- name: Installer files and directories are copied
-# copy:
-# src: "{{ cord_home }}/incubator/voltha/{{ item }}"
-# dest: /home/vinstall
-# owner: vinstall
-# group: vinstall
-# follow: no
-# with_items:
-# - install/installer.sh
-# - install/install.cfg
-# - install/ansible
-# - compose
-# - nginx_config
+
- name: Installer files and directories are copied
synchronize:
src: "{{ cord_home }}/incubator/voltha/{{ item }}"
@@ -35,10 +24,9 @@
- install/install.cfg
- install/voltha-swarm-start.sh
- install/voltha-swarm-stop.sh
+ - install/get-logs.sh
- install/ansible
- compose
- - nginx_config
- - envoy
tags: [installer]
- name: Determine if test mode is active
@@ -46,33 +34,41 @@
local_action: stat path="{{ cord_home }}/incubator/voltha/install/.test"
register: file
ignore_errors: true
+
- name: Test mode file is copied
copy:
src: "{{ cord_home }}/incubator/voltha/install/.test"
dest: /home/vinstall
when: file.stat.exists
+
- name: The installer is made executable
file:
path: /home/vinstall/installer.sh
mode: 0744
tags: [installer]
+
- name: Python docker-py {{ docker_py_version }} package source is available
command: pip download -d /home/vinstall/docker-py "docker-py=={{ docker_py_version }}"
tags: [installer]
+
- name: Python netifaces {{ netifaces_version }} package source is available
command: pip download -d /home/vinstall/netifaces "netifaces=={{ netifaces_version }}"
tags: [installer]
+
- name: Deb file directory doesn't exist
file:
path: /home/vinstall/deb_files
state: absent
tags: [installer]
+
- name: Deb files are saved.
command: cp -r /var/cache/apt/archives /home/vinstall
tags: [installer]
+
- name: Deb file directory is renamed
command: mv /home/vinstall/archives /home/vinstall/deb_files
tags: [installer]
+
- name: Installer directories are owned by vinstall
file:
path: /home/vinstall/{{ item }}
@@ -83,13 +79,12 @@
with_items:
- ansible
- compose
- - nginx_config
- .ansible
- deb_files
- docker-py
- netifaces
- - envoy
tags: [installer]
+
- name: Installer files are owned by vinstall
file:
path: /home/vinstall/{{ item }}
@@ -101,5 +96,6 @@
- install.cfg
- voltha-swarm-start.sh
- voltha-swarm-stop.sh
+ - get-logs.sh
- docker-compose-Linux-x86_64
tags: [installer]