Oracle Openstack 4.0.1: Deploy Reports Error "the field 'args' has an invalid value" when Choosing container-registry.oracle.com or Docker Hub

(Doc ID 2353367.1)

Last updated on FEBRUARY 08, 2018

Applies to:

Oracle OpenStack for Oracle Linux - Version OpenStack 4.0.1 and later
Linux x86-64

Symptoms

Deploy fails with below error on control nodes when choose container-registry.oracle.com or Docker Hub:


$ kollacli deploy
(snip)
PLAY RECAP *********************************************************************
o3lr2ctlr1.cn.oracle.com : ok=11 changed=0 unreachable=0 failed=1 ignored=0
o3lr2ovs1.cn.oracle.com : ok=1 changed=0 unreachable=0 failed=0 ignored=0
o3lr2kvm1.cn.oracle.com : ok=1 changed=0 unreachable=0 failed=0 ignored=0
o3lr2net1.cn.oracle.com : ok=11 changed=0 unreachable=0 failed=1 ignored=0
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/kollacli/commands/deploy.py", line 103, in take_action
.format(msg=job.get_error_message()))
CommandError: ERROR: Job failed:
Host: o3lr2net1.cn.oracle.com, Task: common : Check common containers, Status: failed, Message: the field 'args' has an invalid value, which appears to include a variable that is undefined. The error was: {u'auth_email': u'{{ docker_registry_email }}', u'restart_policy': u'{{ docker_restart_policy }}', u'environment': {u'KOLLA_CONFIG_STRATEGY': u'{{ config_strategy }}'}, u'auth_registry': u'{{ docker_registry }}', u'restart_retries': u'{{ docker_restart_policy_retry }}', u'auth_password': u'{{ docker_registry_password }}', u'auth_username': u'{{ docker_registry_username }}'}: 'docker_registry_password' is undefined

The error appears to have been in '/usr/share/kolla/ansible/roles/common/tasks/config.yml': line 150, column 3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

- name: Check common containers
^ here

Host: o3lr2ctlr1.cn.oracle.com, Task: common : Check common containers, Status: failed, Message: the field 'args' has an invalid value, which appears to include a variable that is undefined. The error was: {u'auth_email': u'{{ docker_registry_email }}', u'restart_policy': u'{{ docker_restart_policy }}', u'environment': {u'KOLLA_CONFIG_STRATEGY': u'{{ config_strategy }}'}, u'auth_registry': u'{{ docker_registry }}', u'restart_retries': u'{{ docker_restart_policy_retry }}', u'auth_password': u'{{ docker_registry_password }}', u'auth_username': u'{{ docker_registry_username }}'}: 'docker_registry_password' is undefined

The error appears to have been in '/usr/share/kolla/ansible/roles/common/tasks/config.yml': line 150, column 3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

- name: Check common containers
^ here

 

Changes

If before deployment, CLI kollacli password clear docker_registry_password had been executed, or any other reasons that in /etc/kolla/passwords.yml the docker_registry_password argument is missing, as below, then we would encounter this error:

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms