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
49 stars 88 forks source link

PR 205 has broken MAS install #209

Closed durera closed 2 years ago

durera commented 2 years ago
  1. The code fails:
    
    TASK [ibm.mas_devops.suite_install : Lookup and wait for Operator subscription to exist] **************************Tuesday 22 March 2022  23:20:36 +0000 (0:00:00.569)       4:02:01.925 *********
    FAILED - RETRYING: [localhost]: Lookup and wait for Operator subscription to exist (20 retries left).
    FAILED - RETRYING: [localhost]: Lookup and wait for Operator subscription to exist (19 retries left).
    FAILED - RETRYING: [localhost]: Lookup and wait for Operator subscription to exist (18 retries left).
    FAILED - RETRYING: [localhost]: Lookup and wait for Operator subscription to exist (17 retries left).
    FAILED - RETRYING: [localhost]: Lookup and wait for Operator subscription to exist (16 retries left).
    FAILED - RETRYING: [localhost]: Lookup and wait for Operator subscription to exist (15 retries left).
    FAILED - RETRYING: [localhost]: Lookup and wait for Operator subscription to exist (14 retries left).
    FAILED - RETRYING: [localhost]: Lookup and wait for Operator subscription to exist (13 retries left).
    ok: [localhost]

TASK [ibm.mas_devops.suite_install : Lookup Operator install plan] ****Tuesday 22 March 2022 23:28:42 +0000 (0:08:05.753) 4:10:07.679 ***** fatal: [localhost]: FAILED! => {"msg": "The conditional check '_item_subscription_result.resources[0].status.state != \"AtLatestKnown\"' failed. The error was: error while evaluating conditional (_item_subscription_result.resources[0].status.state != \"AtLatestKnown\"): 'dict object' has no attribute 'state'\n\nThe error appears to be in '/home/david/.ansible/collections/ansible_collections/ibm/mas_devops/roles/suite_install/tasks/ibm-common-services.yml': line 30, column 7, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n - name: Lookup Operator install plan\n ^ here\n"}


2. The upgrade strategy is not defaulting to automatic:

spec: channel: m1dev88 installPlanApproval: Manual name: ibm-mas source: ibm-mas-operators sourceNamespace: openshift-marketplace

durera commented 2 years ago

Resolved in PR #212