ibm-mas / ansible-devops

Ansible collection supporting devops for IBM Maximo Application Suite
https://ibm-mas.github.io/ansible-devops/
Eclipse Public License 2.0
48 stars 80 forks source link

Error while running `db2` role with `DB2_ACTION=upgrade` #1290

Closed andrercm closed 2 months ago

andrercm commented 2 months ago

Support ticket: TS016107303

Error while running db2 role with DB2_ACTION=upgrade

TASK [ibm.mas_devops.db2 : Update db2 subscription to the new channel in db2u namespace] ***
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: If you are using a module and expect the file to exist on the remote, see the remote_src option
fatal: [localhost]: FAILED! => changed=false 
  msg: |-
    Could not find or access 'templates/db2u_subscription.yml.j2'
    Searched in:
            /opt/app-root/lib64/python3.9/site-packages/ansible_collections/ibm/mas_devops/roles/db2/templates/templates/db2u_subscription.yml.j2
            /opt/app-root/lib64/python3.9/site-packages/ansible_collections/ibm/mas_devops/roles/db2/templates/db2u_subscription.yml.j2
            /opt/app-root/lib64/python3.9/site-packages/ansible_collections/ibm/mas_devops/roles/db2/tasks/upgrade/templates/templates/db2u_subscription.yml.j2
            /opt/app-root/lib64/python3.9/site-packages/ansible_collections/ibm/mas_devops/roles/db2/tasks/upgrade/templates/db2u_subscription.yml.j2
            /opt/app-root/lib64/python3.9/site-packages/ansible_collections/ibm/mas_devops/playbooks/templates/templates/db2u_subscription.yml.j2
            /opt/app-root/lib64/python3.9/site-packages/ansible_collections/ibm/mas_devops/playbooks/templates/db2u_subscription.yml.j2 on the Ansible Controller.
    If you are using a module and expect the file to exist on the remote, see the remote_src option
using latest cli doesn't give error with grafana but assuming customer's grafana error might be able to be passed by exporting variables. 

The following PR addresses the problem:

https://github.com/ibm-mas/ansible-devops/pull/1286