Skip to main content

Installer fails with AnsibleUnsafeText object has no attribute 'addons'

Issue

  • The installer fails with this error message:
TASK [microk8s : convert from list to dict] ***************************************************************************************************************************************************************************************
task path: /home/user/element-enterprise-installer-2022-05.06/ansible/roles/microk8s/tasks/addons.yml:12
fatal: [localhost]: FAILED! => {
    "msg": "'ansible.utils.unsafe_proxy.AnsibleUnsafeText object' has no attribute 'addons'"
}

Environment

  • Element Enterprise On-Premise Installer 2022-05.06

Resolution

Run:

microk8s.start

and then restart the installer.

Root Cause

Situations exist where the installer can get in a state that microk8s has not started but the installer thinks microk8s is running.