Guillaume Coré
2019-05-04 9638d9e42027b4fcf0bcb210cd1a46fdc387ccd4
Agile Integration enterprise workload: add missing namespace

TASK [ocp4-workload-agile-integration-enterprise : Deploy PostgreSQL Seed job] ***
Saturday 04 May 2019 08:28:58 +0000 (0:00:01.869) 0:45:16.640 **********
fatal: [clientvm.28f3.internal]: FAILED! => {"changed": true, "cmd": "oc process -f /tmp/agile-integration-enterprise/files/postgresql-seed.yaml | oc apply -n enterprise-services -f-", "delta": "0:00:00.472366", "end": "2019-05-04 08:28:59.829010", "msg": "non-zero return code", "rc": 1, "start": "2019-05-04 08:28:59.356644", "stderr": "error: unable to process template\n namespaces \"postflightcheck\" not found\nerror: no objects passed to apply", "stderr_lines": ["error: unable to process template", " namespaces \"postflightcheck\" not found", "error: no objects passed to apply"], "stdout": "", "stdout_lines": []}
1 files modified
4 ■■■■ changed files
ansible/roles/ocp4-workload-agile-integration-enterprise/tasks/workload.yml 4 ●●●● patch | view | raw | blame | history
ansible/roles/ocp4-workload-agile-integration-enterprise/tasks/workload.yml
@@ -67,7 +67,7 @@
  shell: "oc new-app -n {{ enterprise_services_project_name }} -p POSTGRESQL_USER={{ postgresql_user }} -p POSTGRESQL_PASSWORD={{ postgresql_password }} -p POSTGRESQL_DATABASE={{ postgresql_database }} {{ postgresql_template }}"
- name: Deploy PostgreSQL Seed job
  shell: "oc process -f {{ transfer_dir }}/files/postgresql-seed.yaml | oc apply -n {{ enterprise_services_project_name }} -f-"
  shell: "oc process -n {{ enterprise_services_project_name }} -f {{ transfer_dir }}/files/postgresql-seed.yaml | oc apply -n {{ enterprise_services_project_name }} -f-"
- name: Change to Fuse Online Project
  shell: "oc project {{ fuse_online_project_name }}"
@@ -128,4 +128,4 @@
- name: Delete Tranfer Directory
  file:
    path: "{{ transfer_dir }}"
    state: absent
    state: absent