2016-04-19 11:13:34 |
Paul Bourke |
description |
Can be observed manually by executing by hand on a control node:
# docker exec -t keystone kolla_keystone_bootstrap admin zgh6CqSoWMxnoacQVkWyRivkVRnyWiDhEO6YlC9j admin admin http://192.168.7.99:35357/v3 http://192.168.7.99:5000/v3 http://192.168.7.99:5000/v3 RegionOne
(relevant args would need to be subbed for your own system)
Results in the following unintelligible failure to the operator:
TASK: [keystone | Creating admin project, user, role, service, and endpoint] ***
<control01> REMOTE_MODULE command docker exec -t keystone kolla_keystone_bootstrap admin zgh6CqSoWMxnoacQVkWyRivkVRnyWiDhEO6YlC9j admin admin http://192.168.7.99:35357/v3 http://192.168.7.99:5000/v3 http://192.168.7.99:5000/v3 RegionOne
fatal: [control01] => Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/ansible/runner/__init__.py", line 589, in _executor
exec_rc = self._executor_internal(host, new_stdin)
File "/usr/lib/python2.7/site-packages/ansible/runner/__init__.py", line 793, in _executor_internal
return self._executor_internal_inner(host, self.module_name, self.module_args, inject, port, complex_args=complex_args)
File "/usr/lib/python2.7/site-packages/ansible/runner/__init__.py", line 1105, in _executor_internal_inner
data['changed'] = utils.check_conditional(changed_when, self.basedir, inject, fail_on_undefined=self.error_on_undefined_vars)
File "/usr/lib/python2.7/site-packages/ansible/utils/__init__.py", line 276, in check_conditional
conditional = template.template(basedir, conditional, inject, fail_on_undefined=fail_on_undefined)
File "/usr/lib/python2.7/site-packages/ansible/utils/template.py", line 124, in template
varname = template_from_string(basedir, varname, templatevars, fail_on_undefined)
File "/usr/lib/python2.7/site-packages/ansible/utils/template.py", line 382, in template_from_string
res = jinja2.utils.concat(rf)
File "<template>", line 9, in root
File "/usr/lib64/python2.7/json/__init__.py", line 338, in loads
return _default_decoder.decode(s)
File "/usr/lib64/python2.7/json/decoder.py", line 365, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib64/python2.7/json/decoder.py", line 383, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded |
Can be observed manually by executing by hand on a control node:
# docker exec -t keystone kolla_keystone_bootstrap admin zgh6CqSoWMxnoacQVkWyRivkVRnyWiDhEO6YlC9j admin admin http://192.168.7.99:35357/v3 http://192.168.7.99:5000/v3 http://192.168.7.99:5000/v3 RegionOne
(relevant args would need to be subbed for your own system)
Strangely running again returns the expected:
{"failed": false, "changed": false}
It seems to fail about every one in two times for me.
Results in the following unintelligible failure to the operator:
TASK: [keystone | Creating admin project, user, role, service, and endpoint] ***
<control01> REMOTE_MODULE command docker exec -t keystone kolla_keystone_bootstrap admin zgh6CqSoWMxnoacQVkWyRivkVRnyWiDhEO6YlC9j admin admin http://192.168.7.99:35357/v3 http://192.168.7.99:5000/v3 http://192.168.7.99:5000/v3 RegionOne
fatal: [control01] => Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/ansible/runner/__init__.py", line 589, in _executor
exec_rc = self._executor_internal(host, new_stdin)
File "/usr/lib/python2.7/site-packages/ansible/runner/__init__.py", line 793, in _executor_internal
return self._executor_internal_inner(host, self.module_name, self.module_args, inject, port, complex_args=complex_args)
File "/usr/lib/python2.7/site-packages/ansible/runner/__init__.py", line 1105, in _executor_internal_inner
data['changed'] = utils.check_conditional(changed_when, self.basedir, inject, fail_on_undefined=self.error_on_undefined_vars)
File "/usr/lib/python2.7/site-packages/ansible/utils/__init__.py", line 276, in check_conditional
conditional = template.template(basedir, conditional, inject, fail_on_undefined=fail_on_undefined)
File "/usr/lib/python2.7/site-packages/ansible/utils/template.py", line 124, in template
varname = template_from_string(basedir, varname, templatevars, fail_on_undefined)
File "/usr/lib/python2.7/site-packages/ansible/utils/template.py", line 382, in template_from_string
res = jinja2.utils.concat(rf)
File "<template>", line 9, in root
File "/usr/lib64/python2.7/json/__init__.py", line 338, in loads
return _default_decoder.decode(s)
File "/usr/lib64/python2.7/json/decoder.py", line 365, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib64/python2.7/json/decoder.py", line 383, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded |
|