Troubleshooting
Problem
When Upgrading to a new version of IBM Maximo Application Suite (MAS), the installation fails with error "'defaults' is undefined".
Symptom
The complete error is:
message: >- AnsibleUndefinedVariable: {'registry': '{{icr.cp}}', 'pullPolicy': '{{ settings.imagePullPolicy is defined | ternary(settings.imagePullPolicy, defaultPullPolicy)}}', 'pullSecretName': 'ibm-entitlement', 'suite': {'name': 'mas/ibm-mas-suite', 'tag': '{{ defaultTags.suite }}', 'replicas': 1, 'resources': {'requests': {'cpu': 0.5, 'memory': '64Mi'}, 'limits': {'cpu': 1.5, 'memory': '512Mi'}}}}: {{ (settings.icr is defined) | ternary(settings.icr, defaults.icr) }}: 'defaults' is undefined. 'defaults' is undefined. {{ (settings.icr is defined) | ternary(settings.icr, defaults.icr) }}: 'defaults' is undefined. 'defaults' is undefined. {'registry': '{{icr.cp}}', 'pullPolicy': '{{ settings.imagePullPolicy is defined | ternary(settings.imagePullPolicy, defaultPullPolicy)}}', 'pullSecretName': 'ibm-entitlement', 'suite': {'name': 'mas/ibm-mas-suite', 'tag': '{{ defaultTags.suite }}', 'replicas': 1, 'resources': {'requests': {'cpu': 0.5, 'memory': '64Mi'}, 'limits': {'cpu': 1.5, 'memory': '512Mi'}}}}: {{ (settings.icr is defined) | ternary(settings.icr, defaults.icr) }}: 'defaults' is undefined. 'defaults' is undefined. {{ (settings.icr is defined) | ternary(settings.icr, defaults.icr) }}: 'defaults' is undefined. 'defaults' is undefined
Cause
The custom resource of type "Suite" is missing the section settings.ics. This error is the result of installing the previous version of MAS manually.
Resolving The Problem
In order to resolve the problem, edit the custom resource of type "Suite" and add the settings.icr section under the spec as follow:
spec:
settings:
icr:
cp: cp.icr.io/cp
cpopen: icr.io/cpopen
Save the custom resource and wait for the reconciliation to happen.
Document Location
Worldwide
[{"Type":"MASTER","Line of Business":{"code":"LOB59","label":"Sustainability Software"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSRHPA","label":"IBM Maximo Application Suite"},"ARM Category":[{"code":"a8m50000000CbKNAA0","label":"Install"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Versions"}]
Was this topic helpful?
Document Information
Modified date:
16 October 2023
UID
ibm17049177