ibm-mas / cli

Maximo Application Suite command line interface
https://ibm-mas.github.io/cli/
Eclipse Public License 2.0
24 stars 18 forks source link

FAILED - RETRYING: [localhost]: Wait for Suite Components to be ready (60s delay). #1314

Closed DavidMecalco closed 1 week ago

DavidMecalco commented 3 weeks ago

MAS CLI version

11.4.0

CLI function used

install

What happened?

I'm encountering an issue while installing Maximo Application Suite using the CLI version 11.4.0. The installation pipeline progresses without problems through the earlier steps, but it consistently fails when it reaches the suite-verify step. Specifically, it fails with the error:

imagen

imagen

Relevant log output

Export all env vars defined in /workspace/settings
Using /opt/app-root/src/ansible.cfg as config file
[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that
the implicit localhost does not match 'all'
running playbook inside collection ibm.mas_devops

PLAY [localhost] ***************************************************************

TASK [Gathering Facts] *********************************************************
ok: [localhost]

TASK [ibm.mas_devops.ansible_version_check : Verify minimum Ansible version is 2.10.3] ***
ok: [localhost] => changed=false 
  msg: All assertions passed

TASK [ibm.mas_devops.suite_verify : Fail if mas_instance_id is not provided] ***
ok: [localhost] => changed=false 
  msg: All assertions passed

TASK [ibm.mas_devops.suite_verify : Configure namespace] ***********************
ok: [localhost] => changed=false 
  ansible_facts:
    mas_namespace: mas-maximo-core

TASK [ibm.mas_devops.suite_verify : Wait for Suite Components to be ready (60s delay)] ***
FAILED - RETRYING: [localhost]: Wait for Suite Components to be ready (60s delay) (50 retries left).
FAILED - RETRYING: [localhost]: Wait for Suite Components to be ready (60s delay) (49 retries left).
FAILED - RETRYING: [localhost]: Wait for Suite Components to be ready (60s delay) (48 retries left).
FAILED - RETRYING: [localhost]: Wait for Suite Components to be ready (60s delay) (47 retries left).
FAILED - RETRYING: [localhost]: Wait for Suite Components to be ready (60s delay) (46 retries left).
FAILED - RETRYING: [localhost]: Wait for Suite Components to be ready (60s delay) (45 retries left).
FAILED - RETRYING: [localhost]: Wait for Suite Components to be ready (60s delay) (44 retries left).
FAILED - RETRYING: [localhost]: Wait for Suite Components to be ready (60s delay) (43 retries left).
FAILED - RETRYING: [localhost]: Wait for Suite Components to be ready (60s delay) (42 retries left).
FAILED - RETRYING: [localhost]: Wait for Suite Components to be ready (60s delay) (41 retries left).
FAILED - RETRYING: [localhost]: Wait for Suite Components to be ready (60s delay) (40 retries left).
FAILED - RETRYING: [localhost]: Wait for Suite Components to be ready (60s delay) (39 retries left).
FAILED - RETRYING: [localhost]: Wait for Suite Components to be ready (60s delay) (38 retries left).
FAILED - RETRYING: [localhost]: Wait for Suite Components to be ready (60s delay) (37 retries left).
FAILED - RETRYING: [localhost]: Wait for Suite Components to be ready (60s delay) (36 retries left).
FAILED - RETRYING: [localhost]: Wait for Suite Components to be ready (60s delay) (35 retries left).
FAILED - RETRYING: [localhost]: Wait for Suite Components to be ready (60s delay) (34 retries left).
FAILED - RETRYING: [localhost]: Wait for Suite Components to be ready (60s delay) (33 retries left).
FAILED - RETRYING: [localhost]: Wait for Suite Components to be ready (60s delay) (32 retries left).
FAILED - RETRYING: [localhost]: Wait for Suite Components to be ready (60s delay) (31 retries left).
FAILED - RETRYING: [localhost]: Wait for Suite Components to be ready (60s delay) (30 retries left).
FAILED - RETRYING: [localhost]: Wait for Suite Components to be ready (60s delay) (29 retries left).
FAILED - RETRYING: [localhost]: Wait for Suite Components to be ready (60s delay) (28 retries left).
FAILED - RETRYING: [localhost]: Wait for Suite Components to be ready (60s delay) (27 retries left).
FAILED - RETRYING: [localhost]: Wait for Suite Components to be ready (60s delay) (26 retries left).
FAILED - RETRYING: [localhost]: Wait for Suite Components to be ready (60s delay) (25 retries left).
FAILED - RETRYING: [localhost]: Wait for Suite Components to be ready (60s delay) (24 retries left).
FAILED - RETRYING: [localhost]: Wait for Suite Components to be ready (60s delay) (23 retries left).
FAILED - RETRYING: [localhost]: Wait for Suite Components to be ready (60s delay) (22 retries left).
FAILED - RETRYING: [localhost]: Wait for Suite Components to be ready (60s delay) (21 retries left).
FAILED - RETRYING: [localhost]: Wait for Suite Components to be ready (60s delay) (20 retries left).
FAILED - RETRYING: [localhost]: Wait for Suite Components to be ready (60s delay) (19 retries left).
FAILED - RETRYING: [localhost]: Wait for Suite Components to be ready (60s delay) (18 retries left).
FAILED - RETRYING: [localhost]: Wait for Suite Components to be ready (60s delay) (17 retries left).
FAILED - RETRYING: [localhost]: Wait for Suite Components to be ready (60s delay) (16 retries left).
FAILED - RETRYING: [localhost]: Wait for Suite Components to be ready (60s delay) (15 retries left).
FAILED - RETRYING: [localhost]: Wait for Suite Components to be ready (60s delay) (14 retries left).
FAILED - RETRYING: [localhost]: Wait for Suite Components to be ready (60s delay) (13 retries left).
FAILED - RETRYING: [localhost]: Wait for Suite Components to be ready (60s delay) (12 retries left).
FAILED - RETRYING: [localhost]: Wait for Suite Components to be ready (60s delay) (11 retries left).
FAILED - RETRYING: [localhost]: Wait for Suite Components to be ready (60s delay) (10 retries left).
FAILED - RETRYING: [localhost]: Wait for Suite Components to be ready (60s delay) (9 retries left).
FAILED - RETRYING: [localhost]: Wait for Suite Components to be ready (60s delay) (8 retries left).
FAILED - RETRYING: [localhost]: Wait for Suite Components to be ready (60s delay) (7 retries left).
FAILED - RETRYING: [localhost]: Wait for Suite Components to be ready (60s delay) (6 retries left).
FAILED - RETRYING: [localhost]: Wait for Suite Components to be ready (60s delay) (5 retries left).
FAILED - RETRYING: [localhost]: Wait for Suite Components to be ready (60s delay) (4 retries left).
FAILED - RETRYING: [localhost]: Wait for Suite Components to be ready (60s delay) (3 retries left).
FAILED - RETRYING: [localhost]: Wait for Suite Components to be ready (60s delay) (2 retries left).
FAILED - RETRYING: [localhost]: Wait for Suite Components to be ready (60s delay) (1 retries left).
fatal: [localhost]: FAILED! => changed=false 
  api_found: true
  attempts: 50
  resources:
  - apiVersion: core.mas.ibm.com/v1
    kind: Suite
    metadata:
      annotations:
        mas.ibm.com/operationalMode: nonproduction
      creationTimestamp: '2024-10-22T17:06:49Z'
      finalizers:
      - core.mas.ibm.com/finalizer
      generation: 1
      labels:
        mas.ibm.com/instanceId: maximo
      managedFields:
      - apiVersion: core.mas.ibm.com/v1
        fieldsType: FieldsV1
        fieldsV1:
          f:metadata:
            f:annotations:
              .: {}
              f:mas.ibm.com/operationalMode: {}
            f:labels:
              .: {}
              f:mas.ibm.com/instanceId: {}
          f:spec:
            .: {}
            f:certManagerNamespace: {}
            f:certificateIssuer:
              .: {}
              f:duration: {}
              f:name: {}
              f:renewBefore: {}
            f:domain: {}
            f:license:
              .: {}
              f:accept: {}
            f:podTemplates: {}
            f:settings:
              .: {}
              f:dataDictionary:
                .: {}
                f:catalog: {}
              f:icr:
                .: {}
                f:cp: {}
                f:cpopen: {}
              f:manualCertMgmt: {}
              f:trustDefaultCAs: {}
              f:userDataValidation:
                .: {}
                f:allowSpecialChars: {}
        manager: OpenAPI-Generator
        operation: Update
        time: '2024-10-22T17:06:49Z'
      - apiVersion: core.mas.ibm.com/v1
        fieldsType: FieldsV1
        fieldsV1:
          f:metadata:
            f:finalizers:
              .: {}
              v:"core.mas.ibm.com/finalizer": {}
        manager: ansible-operator
        operation: Update
        time: '2024-10-22T17:07:05Z'
      - apiVersion: core.mas.ibm.com/v1
        fieldsType: FieldsV1
        fieldsV1:
          f:status:
            f:cert-manager:
              .: {}
              f:external:
                .: {}
                f:duration: {}
                f:name: {}
                f:renewBefore: {}
              f:internal:
                .: {}
                f:duration: {}
                f:name: {}
                f:renewBefore: {}
            f:podTemplates: {}
            f:versions:
              .: {}
              f:controller: {}
              f:supported: {}
        manager: OpenAPI-Generator
        operation: Update
        subresource: status
        time: '2024-10-22T17:07:41Z'
      - apiVersion: core.mas.ibm.com/v1
        fieldsType: FieldsV1
        fieldsV1:
          f:status:
            .: {}
            f:conditions: {}
        manager: ansible-operator
        operation: Update
        subresource: status
        time: '2024-10-22T17:58:36Z'
      name: maximo
      namespace: mas-maximo-core
      resourceVersion: '143818'
      uid: 7069f8c4-2ab2-4e34-aee3-429584df3d44
    spec:
      certManagerNamespace: cert-manager
      certificateIssuer:
        duration: 8760h0m0s
        name: maximo-cis-le-prod
        renewBefore: 720h0m0s
      domain: maximo.defalliance.com
      license:
        accept: true
      podTemplates: []
      settings:
        dataDictionary:
          catalog: ibm-operator-catalog
        icr:
          cp: cp.icr.io/cp
          cpopen: icr.io/cpopen
        manualCertMgmt: false
        trustDefaultCAs: true
        userDataValidation:
          allowSpecialChars: true
    status:
      cert-manager:
        external:
          duration: 8760h0m0s
          name: maximo-cis-le-prod
          renewBefore: 720h0m0s
        internal:
          duration: 175200h0m0s
          name: mas-maximo-core-internal-issuer
          renewBefore: 2160h0m0s
      conditions:
      - lastTransitionTime: '2024-10-22T17:07:18Z'
        message: Controller updated primary entity manager to supported version (9.0.2)
        reason: VersionUpdateCompleted
        status: 'True'
        type: ControllerHealth
      - lastTransitionTime: '2024-10-22T17:07:35Z'
        message: No components are currently installed
        reason: InstallPending
        status: 'False'
        type: Ready
      - ansibleResult:
          changed: 5
          completion: '2024-10-22T17:10:44.241704'
          failures: 1
          ok: 36
          skipped: 19
        lastTransitionTime: '2024-10-22T17:10:44Z'
        message: '"Certificate" "maximo-cert-public": Timed out waiting on resource'
        reason: Failed
        status: 'True'
        type: Failure
      - lastTransitionTime: '2024-10-22T17:10:44Z'
        message: ''
        reason: ''
        status: 'False'
        type: Successful
      - lastTransitionTime: '2024-10-22T17:58:36Z'
        message: Running reconciliation
        reason: Running
        status: 'True'
        type: Running
      podTemplates: []
      versions:
        controller: 9.0.2
        supported:
        - 8.11.1
        - 8.11.10
        - 8.11.11
        - 8.11.12
        - 8.11.13
        - 8.11.2
        - 8.11.3
        - 8.11.4
        - 8.11.5
        - 8.11.6
        - 8.11.7
        - 8.11.8
        - 8.11.9
        - 9.0.0
        - 9.0.1
        - 9.0.2

NO MORE HOSTS LEFT *************************************************************

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

step-suite-post-verify
2024/10/22 17:58:53 Skipping step because a previous step failed
whitfiea commented 1 week ago

@DavidMecalco the error here is the public certificate creation. You can see the message '"Certificate" "maximo-cert-public": Timed out waiting on resource', and I can see you are using your own certificate issuer:

      certificateIssuer:
        duration: 8760h0m0s
        name: maximo-cis-le-prod

The automation and cli is just reporting the issue and it doesn't appear to be a problem with the automation. Please check the certificate resources, and the certificaterequest and order to see why the certificates can't be issuer by your issuer.