From 3f0925bdfe32063a6820cbb6ea2248033f503d2a Mon Sep 17 00:00:00 2001 From: George Andreou Date: Tue, 16 Apr 2019 01:24:38 +0100 Subject: [PATCH 1/2] creating planner's db for the existing gtk_db_user (related with https://github.com/sonata-nfv/tng-devops/issues/186, https://github.com/sonata-nfv/tng-vnv-planner/issues/35) --- roles/vnv/tasks/tng-vnv-planner.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/vnv/tasks/tng-vnv-planner.yml b/roles/vnv/tasks/tng-vnv-planner.yml index 90b4238..11b06e2 100644 --- a/roles/vnv/tasks/tng-vnv-planner.yml +++ b/roles/vnv/tasks/tng-vnv-planner.yml @@ -3,7 +3,7 @@ - debug: msg="##### VnV Planner Deployment {{ lookup('pipe', 'date +%Y%m%d-%H%M%S') }}" - name: create planner's database for {{ gtk_db_user }} - shell: /usr/bin/docker run --net={{ docker_network_name }} -i -e DATABASE_HOST=son-postgres -e DATABASE_PORT=5432 -e POSTGRES_PASSWORD={{ gtk_db_pass }} -e POSTGRES_USER={{ gtk_db_user }} -e POSTGRES_DB={{ gtk_db_name }} --rm=true {{ repository }}/tng-gtk-usr:{{ version }} createdb -O {{ gtk_db_user }} {{ planner_db_name }} + shell: /usr/bin/docker exec -it son-postgres psql -U {{ gtk_db_user }} -W {{ gtk_db_pass }} -c 'createdb -O {{ gtk_db_user }} {{ planner_db_name }};' # Running the 5GTANGO VnV Planner (Docker container) From e2f42e33f575ba5431f56b8ff91d774dbc05839a Mon Sep 17 00:00:00 2001 From: George Andreou Date: Tue, 16 Apr 2019 02:32:26 +0100 Subject: [PATCH 2/2] comment the request. we want a planner_db inside postgres server before the deployment of the Planner. --- roles/vnv/tasks/tng-vnv-planner.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/vnv/tasks/tng-vnv-planner.yml b/roles/vnv/tasks/tng-vnv-planner.yml index 11b06e2..141fd0a 100644 --- a/roles/vnv/tasks/tng-vnv-planner.yml +++ b/roles/vnv/tasks/tng-vnv-planner.yml @@ -2,8 +2,8 @@ - debug: msg="##### VnV Planner Deployment {{ lookup('pipe', 'date +%Y%m%d-%H%M%S') }}" -- name: create planner's database for {{ gtk_db_user }} - shell: /usr/bin/docker exec -it son-postgres psql -U {{ gtk_db_user }} -W {{ gtk_db_pass }} -c 'createdb -O {{ gtk_db_user }} {{ planner_db_name }};' +#- name: create planner's database for {{ gtk_db_user }} +# shell: /usr/bin/docker run -it son-postgres psql -U {{ gtk_db_user }} -W {{ gtk_db_pass }} -c 'createdb -O {{ gtk_db_user }} {{ planner_db_name }};' # Running the 5GTANGO VnV Planner (Docker container)