UnboundLocalError: local variable 'dw' referenced before assignment

Bug #1828817 reported by Pride Njukia
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla-ansible
New
Undecided
Unassigned

Bug Description

An exception occurred during task execution. To see the full traceback, use -vvv. The error was: UnboundLocalError: local variable 'dw' referenced before assignment
failed: [localhost] (item={'value': {u'environment': {u'DUMMY_ENVIRONMENT': u'kolla_useless_env'}, u'dimensions': {}, u'volumes': [u'/etc/kolla//cron/:/var/lib/kolla/config_files/:ro', u'/etc/localtime:/etc/localtime:ro', u'kolla_logs:/var/log/kolla/'], u'container_name': u'cron', u'image': u'kolla/centos-binary-cron:7.1.0', u'enabled': True}, 'key': u'cron'}) => {"changed": false, "item": {"key": "cron", "value": {"container_name": "cron", "dimensions": {}, "enabled": true, "environment": {"DUMMY_ENVIRONMENT": "kolla_useless_env"}, "image": "kolla/centos-binary-cron:7.1.0", "volumes": ["/etc/kolla//cron/:/var/lib/kolla/config_files/:ro", "/etc/localtime:/etc/localtime:ro", "kolla_logs:/var/log/kolla/"]}}, "module_stderr": "Traceback (most recent call last):\n File \"/root/.ansible/tmp/ansible-tmp-1557748808.07-58126811578467/AnsiballZ_kolla_docker.py\", line 113, in <module>\n _ansiballz_main()\n File \"/root/.ansible/tmp/ansible-tmp-1557748808.07-58126811578467/AnsiballZ_kolla_docker.py\", line 105, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File \"/root/.ansible/tmp/ansible-tmp-1557748808.07-58126811578467/AnsiballZ_kolla_docker.py\", line 48, in invoke_module\n imp.load_module('__main__', mod, module, MOD_DESC)\n File \"/tmp/ansible_kolla_docker_payload_wZ0dOe/__main__.py\", line 918, in <module>\n File \"/tmp/ansible_kolla_docker_payload_wZ0dOe/__main__.py\", line 913, in main\nUnboundLocalError: local variable 'dw' referenced before assignment\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: UnboundLocalError: local variable 'dw' referenced before assignment
failed: [localhost] (item={'value': {u'environment': {u'KOLLA_CONFIG_STRATEGY': u'COPY_ALWAYS'}, u'dimensions': {}, u'volumes': [u'/etc/kolla//fluentd/:/var/lib/kolla/config_files/:ro', u'/etc/localtime:/etc/localtime:ro', u'kolla_logs:/var/log/kolla/'], u'container_name': u'fluentd', u'image': u'kolla/centos-binary-fluentd:7.1.0', u'enabled': True}, 'key': u'fluentd'}) => {"changed": false, "item": {"key": "fluentd", "value": {"container_name": "fluentd", "dimensions": {}, "enabled": true, "environment": {"KOLLA_CONFIG_STRATEGY": "COPY_ALWAYS"}, "image": "kolla/centos-binary-fluentd:7.1.0", "volumes": ["/etc/kolla//fluentd/:/var/lib/kolla/config_files/:ro", "/etc/localtime:/etc/localtime:ro", "kolla_logs:/var/log/kolla/"]}}, "module_stderr": "Traceback (most recent call last):\n File \"/root/.ansible/tmp/ansible-tmp-1557748808.45-58983047661481/AnsiballZ_kolla_docker.py\", line 113, in <module>\n _ansiballz_main()\n File \"/root/.ansible/tmp/ansible-tmp-1557748808.45-58983047661481/AnsiballZ_kolla_docker.py\", line 105, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File \"/root/.ansible/tmp/ansible-tmp-1557748808.45-58983047661481/AnsiballZ_kolla_docker.py\", line 48, in invoke_module\n imp.load_module('__main__', mod, module, MOD_DESC)\n File \"/tmp/ansible_kolla_docker_payload_URmp8U/__main__.py\", line 918, in <module>\n File \"/tmp/ansible_kolla_docker_payload_URmp8U/__main__.py\", line 913, in main\nUnboundLocalError: local variable 'dw' referenced before assignment\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: UnboundLocalError: local variable 'dw' referenced before assignment
failed: [localhost] (item={'value': {u'environment': {u'ANSIBLE_LIBRARY': u'/usr/share/ansible', u'ANSIBLE_NOCOLOR': u'1'}, u'dimensions': {}, u'volumes': [u'/etc/kolla//kolla-toolbox/:/var/lib/kolla/config_files/:ro', u'/etc/localtime:/etc/localtime:ro', u'/dev/:/dev/', u'/run/:/run/:shared', u'kolla_logs:/var/log/kolla/'], u'container_name': u'kolla_toolbox', u'image': u'kolla/centos-binary-kolla-toolbox:7.1.0', u'enabled': True, u'privileged': True}, 'key': u'kolla-toolbox'}) => {"changed": false, "item": {"key": "kolla-toolbox", "value": {"container_name": "kolla_toolbox", "dimensions": {}, "enabled": true, "environment": {"ANSIBLE_LIBRARY": "/usr/share/ansible", "ANSIBLE_NOCOLOR": "1"}, "image": "kolla/centos-binary-kolla-toolbox:7.1.0", "privileged": true, "volumes": ["/etc/kolla//kolla-toolbox/:/var/lib/kolla/config_files/:ro", "/etc/localtime:/etc/localtime:ro", "/dev/:/dev/", "/run/:/run/:shared", "kolla_logs:/var/log/kolla/"]}}, "module_stderr": "Traceback (most recent call last):\n File \"/root/.ansible/tmp/ansible-tmp-1557748808.7-277970285092193/AnsiballZ_kolla_docker.py\", line 113, in <module>\n _ansiballz_main()\n File \"/root/.ansible/tmp/ansible-tmp-1557748808.7-277970285092193/AnsiballZ_kolla_docker.py\", line 105, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File \"/root/.ansible/tmp/ansible-tmp-1557748808.7-277970285092193/AnsiballZ_kolla_docker.py\", line 48, in invoke_module\n imp.load_module('__main__', mod, module, MOD_DESC)\n File \"/tmp/ansible_kolla_docker_payload_7bWsRG/__main__.py\", line 918, in <module>\n File \"/tmp/ansible_kolla_docker_payload_7bWsRG/__main__.py\", line 913, in main\nUnboundLocalError: local variable 'dw' referenced before assignment\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}
 to retry, use: --limit @/usr/share/kolla-ansible/ansible/site.retry

PLAY RECAP ***************************************************************************************************************************************************************
localhost : ok=5 changed=0 unreachable=0 failed=1

Revision history for this message
Mark Goddard (mgoddard) wrote :

Marked as a duplicate of 1819361. That bug will be fixed in the Stein release. I have backported the fix to Queens and Rocky.

summary: - he error was: UnboundLocalError: local variable 'dw' referenced before
- assignment
+ UnboundLocalError: local variable 'dw' referenced before assignment
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.