Skip to content

Error when install Maximo Predict #2064

@nogayama

Description

@nogayama

MAS CLI version

18.15.3

CLI function used

install

What happened?

Reproduce

  1. mas install Maximo Predict
  2. select catalog v9-260129-amd64

I guess the variable cpd_product_version is empty.

Relevant log output

TASK [ibm.mas_devops.suite_app_config : Debug information] *********************
[ERROR]: Task failed: Finalization of task args for 'ansible.builtin.debug' failed: Error while resolving value for 'msg': object of type 'list' has no attribute 1

Task failed.
Origin: /opt/app-root/lib64/python3.12/site-packages/ansible_collections/ibm/mas_devops/roles/suite_app_config/tasks/main.yml:92:3

90     mas_app_namespace: "mas-{{ mas_instance_id }}-{{ mas_app_id }}"
91
92 - name: "Debug information"
     ^ column 3

<<< caused by >>>

Finalization of task args for 'ansible.builtin.debug' failed.
Origin: /opt/app-root/lib64/python3.12/site-packages/ansible_collections/ibm/mas_devops/roles/suite_app_config/tasks/main.yml:93:3

91
92 - name: "Debug information"
93   debug:
     ^ column 3

<<< caused by >>>

Error while resolving value for 'msg'.
Origin: /opt/app-root/lib64/python3.12/site-packages/ansible_collections/ibm/mas_devops/roles/suite_app_config/tasks/main.yml:95:7

93   debug:
94     msg:
95       - "Instance ID ............................ {{ mas_instance_id }}"
         ^ column 7

<<< caused by >>>

object of type 'list' has no attribute 1
Origin: /opt/app-root/lib64/python3.12/site-packages/ansible_collections/ibm/mas_devops/roles/suite_app_config/vars/defaultspecs/predict.yml:13:16

11       instance_id: "{{ cpd_wml_instance_id }}"
12       url: "{{ cpd_wml_url }}"
13       version: "{{ cpd_product_version.split('.')[0] }}.{{ cpd_product_version.split('.')[1] }}"
                  ^ column 16

fatal: [localhost]: FAILED! => {"msg": "Task failed: Finalization of task args for 'ansible.builtin.debug' failed: Error while resolving value for 'msg': object of type 'list' has no attribute 1"}

PLAY RECAP *********************************************************************
localhost                  : ok=16   changed=0    unreachable=0    failed=1    skipped=6    rescued=0    ignored=0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bug ReportSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions