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_app_uninstall : Fail if mas_instance_id is not provided] ***
ok: [localhost] => changed=false
msg: All assertions passed
TASK [ibm.mas_devops.suite_app_uninstall : Fail if mas_app_id is not provided] ***
ok: [localhost] => changed=false
msg: All assertions passed
TASK [ibm.mas_devops.suite_app_uninstall : Fail if mas_app_id is not known] ****
ok: [localhost] => changed=false
msg: All assertions passed
TASK [ibm.mas_devops.suite_app_uninstall : Run application specific pre-uninstall tasks] ***
skipping: [localhost] => changed=false
false_condition: app_pre_uninstall_tasks_absolute_file is file
skip_reason: Conditional result was False
TASK [ibm.mas_devops.suite_app_uninstall : Get all manage Workspaces] **
ok: [localhost] => changed=false
api_found: true
resources: []
TASK [ibm.mas_devops.suite_app_uninstall : Delete all manage Workspaces] ***
skipping: [localhost] => changed=false
skipped_reason: No items in the list
TASK [ibm.mas_devops.suite_app_uninstall : Get the manage Custom Resource] *****
ok: [localhost] => changed=false
api_found: true
resources:
Worked with IBM Support who informed me to remove the 'finalizers' section of the yaml. This allowed the resource to finish being deleted. I then reran the pipeline to success
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_app_uninstall : Fail if mas_instance_id is not provided] *** ok: [localhost] => changed=false msg: All assertions passed
TASK [ibm.mas_devops.suite_app_uninstall : Fail if mas_app_id is not provided] *** ok: [localhost] => changed=false msg: All assertions passed
TASK [ibm.mas_devops.suite_app_uninstall : Fail if mas_app_id is not known] **** ok: [localhost] => changed=false msg: All assertions passed
TASK [ibm.mas_devops.suite_app_uninstall : Load Application Workspace variables] *** ok: [localhost] => changed=false ansible_facts: mas_app_bindings: '{{ mas_app_bindings_jdbc_wsl if mas_appws_bindings_health_wsl_flag else mas_app_bindings_jdbc }}' mas_app_bindings_jdbc: jdbc: '{{ mas_appws_bindings_jdbc | default( ''system'' , true) }}' mas_app_bindings_jdbc_wsl: jdbc: '{{ mas_appws_bindings_jdbc | default( ''system'' , true) }}' watsonstudio: system mas_app_cfg_delay: '{{ lookup(''env'', ''MAS_APP_CFG_DELAY'') | default(480, true)}}' mas_app_cfg_retries: '{{ lookup(''env'', ''MAS_APP_CFG_RETRIES'') | default(60, true)}}' mas_app_settings_aio_flag: '{{ lookup(''env'', ''MAS_APP_SETTINGS_AIO_FLAG'') | default(''true'', true) | bool }}' mas_app_settings_base_language: '{{ lookup(''env'', ''MAS_APP_SETTINGS_BASE_LANG'') | default( ''EN'', true) }}' mas_app_settings_bim_mount_path: '{{ lookup(''env'', ''MAS_APP_SETTINGS_BIM_MOUNT_PATH'') | default(''/bim'', true) }}' mas_app_settings_bim_pvc_accessmode: '{{ lookup(''env'', ''MAS_APP_SETTINGS_BIM_PVC_ACCESSMODE'') | default(mas_app_settings_persistent_volumes_default_accessmode, true) }}' mas_app_settings_bim_pvc_name: '{{ lookup(''env'', ''MAS_APP_SETTINGS_BIM_PVC_NAME'') | default(''manage-bim'', true) }}' mas_app_settings_bim_pvc_size: '{{ lookup(''env'', ''MAS_APP_SETTINGS_BIM_PVC_SIZE'') | default(''20Gi'', true) }}' mas_app_settings_bim_pvc_storage_class: '{{ lookup(''env'', ''MAS_APP_SETTINGS_BIM_PVC_STORAGE_CLASS'') }}' mas_app_settings_crypto_key: '{{ lookup(''env'', ''MAS_APP_SETTINGS_CRYPTO_KEY'') }}' mas_app_settings_cryptox_key: '{{ lookup(''env'', ''MAS_APP_SETTINGS_CRYPTOX_KEY'') }}' mas_app_settings_customization_archive_name: '{{ lookup(''env'', ''MAS_APP_SETTINGS_CUSTOMIZATION_ARCHIVE_NAME'') | default(''manage-custom-archive'', true) }}' mas_app_settings_customization_archive_password: '{{ lookup(''env'', ''MAS_APP_SETTINGS_CUSTOMIZATION_ARCHIVE_PASSWORD'') }}' mas_app_settings_customization_archive_url: '{{ lookup(''env'', ''MAS_APP_SETTINGS_CUSTOMIZATION_ARCHIVE_URL'') }}' mas_app_settings_customization_archive_username: '{{ lookup(''env'', ''MAS_APP_SETTINGS_CUSTOMIZATION_ARCHIVE_USERNAME'') }}' mas_app_settings_customization_credentials: customizationArchiveCredentials: secretName: '{{ mas_app_settings_customization_credentials_secret_name }}' mas_app_settings_customization_credentials_secret_name: '{{ mas_workspace_id }}-{{ mas_app_id }}-cl0--cac--sn' mas_app_settings_customization_list:
TASK [ibm.mas_devops.suite_app_uninstall : Load Application variables] ***** ok: [localhost] => changed=false ansible_facts: mas_app_api_version: apps.mas.ibm.com/v1 mas_app_fqn: manageapps.apps.mas.ibm.com mas_app_install_delay: 120 mas_app_install_retries: 30 mas_app_kind: ManageApp ansible_included_var_files:
TASK [ibm.mas_devops.suite_app_uninstall : Configure namespace] **** ok: [localhost] => changed=false ansible_facts: mas_app_namespace: mas-maxstg-manage
TASK [ibm.mas_devops.suite_app_uninstall : Debug information] ** ok: [localhost] => msg:
TASK [ibm.mas_devops.suite_app_uninstall : Run application specific pre-uninstall tasks] *** skipping: [localhost] => changed=false false_condition: app_pre_uninstall_tasks_absolute_file is file skip_reason: Conditional result was False
TASK [ibm.mas_devops.suite_app_uninstall : Get all manage Workspaces] ** ok: [localhost] => changed=false api_found: true resources: []
TASK [ibm.mas_devops.suite_app_uninstall : Delete all manage Workspaces] *** skipping: [localhost] => changed=false skipped_reason: No items in the list
TASK [ibm.mas_devops.suite_app_uninstall : Get the manage Custom Resource] ***** ok: [localhost] => changed=false api_found: true resources:
TASK [ibm.mas_devops.suite_app_uninstall : Delete the manage Custom Resource] *** failed: [localhost] (item={'apiVersion': 'apps.mas.ibm.com/v1', 'kind': 'ManageApp', 'metadata': {'creationTimestamp': '2024-04-03T20:15:14Z', 'deletionGracePeriodSeconds': 0, 'deletionTimestamp': '2024-04-03T22:32:27Z', 'finalizers': ['manageapp.apps.mas.ibm.com/finalizer'], 'generation': 2, 'labels': {'mas.ibm.com/applicationId': 'manage', 'mas.ibm.com/instanceId': 'maxstg'}, 'managedFields': [{'apiVersion': 'apps.mas.ibm.com/v1', 'fieldsType': 'FieldsV1', 'fieldsV1': {'f:metadata': {'f:labels': {'.': {}, 'f:mas.ibm.com/applicationId': {}, 'f:mas.ibm.com/instanceId': {}}}, 'f:spec': {}}, 'manager': 'OpenAPI-Generator', 'operation': 'Update', 'time': '2024-04-03T20:15:14Z'}, {'apiVersion': 'apps.mas.ibm.com/v1', 'fieldsType': 'FieldsV1', 'fieldsV1': {'f:metadata': {'f:finalizers': {'.': {}, 'v:"manageapp.apps.mas.ibm.com/finalizer"': {}}}}, 'manager': 'ansible-operator', 'operation': 'Update', 'time': '2024-04-03T20:15:38Z'}, {'apiVersion': 'apps.mas.ibm.com/v1', 'fieldsType': 'FieldsV1', 'fieldsV1': {'f:status': {'f:components': {'.': {}, 'f:manage': {'.': {}, 'f:enabled': {}, 'f:version': {}}}, 'f:milestones': {'.': {}, 'f:installed': {'.': {}, 'f:anonymousId': {}, 'f:timestamp': {}, 'f:transactionId': {}}}, 'f:version': {'.': {}, 'f:reconciled': {}}, 'f:versions': {'.': {}, 'f:controller': {}, 'f:isRollbackRunning': {}, 'f:reconciled': {}, 'f:supported': {}}}}, 'manager': 'OpenAPI-Generator', 'operation': 'Update', 'subresource': 'status', 'time': '2024-04-03T22:33:43Z'}, {'apiVersion': 'apps.mas.ibm.com/v1', 'fieldsType': 'FieldsV1', 'fieldsV1': {'f:status': {'.': {}, 'f:conditions': {}}}, 'manager': 'ansible-operator', 'operation': 'Update', 'subresource': 'status', 'time': '2024-04-08T15:32:48Z'}], 'name': 'maxstg', 'namespace': 'mas-maxstg-manage', 'resourceVersion': '89367492', 'uid': '9d9f18d7-9067-4326-81fb-9f2b2c1d376d'}, 'spec': {}, 'status': {'components': {'manage': {'enabled': True, 'version': '8.7.5'}}, 'conditions': [{'lastTransitionTime': '2024-04-03T20:16:13Z', 'message': 'Controller updated primary entity manager to supported version (8.7.5)', 'reason': 'VersionUpdateCompleted', 'status': 'True', 'type': 'ControllerHealth'}, {'lastTransitionTime': '2024-04-03T22:33:50Z', 'message': 'unknown playbook failure', 'reason': 'manageAppNotReady, ', 'status': 'False', 'type': 'Ready'}, {'lastTransitionTime': '2024-04-03T22:33:25Z', 'message': '', 'reason': '', 'status': 'False', 'type': 'Successful'}, {'lastTransitionTime': '2024-04-08T15:32:37Z', 'message': 'Running reconciliation', 'reason': 'Running', 'status': 'False', 'type': 'Running'}, {'ansibleResult': {'changed': 0, 'completion': '2024-04-08T15:32:48.699303', 'failures': 1, 'ok': 33, 'skipped': 12}, 'lastTransitionTime': '2024-04-08T15:32:48Z', 'message': 'unknown playbook failure', 'reason': 'Failed', 'status': 'True', 'type': 'Failure'}], 'milestones': {'installed': {'anonymousId': '04c1f63a-ce3d-43fc-a315-5b9925bbb61f', 'timestamp': '2024-04-03T20:16:09.883487+00:00', 'transactionId': 'a698b0fa-34a2-4df5-856e-6d6a57fdc1c6'}}, 'version': {'reconciled': ''}, 'versions': {'controller': '8.7.5', 'isRollbackRunning': False, 'reconciled': '8.7.5', 'supported': ['8.7.0', '8.7.1', '8.7.2', '8.7.3', '8.7.4', '8.7.5']}}}) => changed=true ansible_loop_var: item duration: 600 item: apiVersion: apps.mas.ibm.com/v1 kind: ManageApp metadata: creationTimestamp: '2024-04-03T20:15:14Z' deletionGracePeriodSeconds: 0 deletionTimestamp: '2024-04-03T22:32:27Z' finalizers:
NO MORE HOSTS LEFT *****
PLAY RECAP ***** localhost : ok=11 changed=0 unreachable=0 failed=1 skipped=2 rescued=0 ignored=0