Oracle Openstack 4.0.1: kollacli reconfigure Fails ""...return self.error_invalid_assignment(line)...""

(Doc ID 2359622.1)

Last updated on MARCH 01, 2018

Applies to:

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

Symptoms

After adding below line in /etc/kolla/config/cinder.conf [DEFAULT] section, reconfigure fails:
block_device_allocate_retries 180

$ cat /etc/kolla/config/cinder.conf
[DEFAULT]
enabled_backends = MYdriver-1
block_device_allocate_retries 180

[MYdriver-1]
volume_backend_name = LVM
volume_driver = cinder.volume.drivers.lvm.LVMVolumeDriver

$ kollacli reconfigure
TASK [cinder : Copying over cinder.conf] ***************************************
fatal: [o3lr2net1.test.local.localdomain]: FAILED! => {"msg": "Unexpected failure during module execution.", "failed": true, "exception": "Traceback (most recent call last):\n File \"/usr/lib/python2.7/site-packages/ansible/executor/task_executor.py\", line 97, in run\n item_results = self._run_loop(items)\n File \"/usr/lib/python2.7/site-packages/ansible/executor/task_executor.py\", line 290, in _run_loop\n res = self._execute(variables=task_vars)\n File \"/usr/lib/python2.7/site-packages/ansible/executor/task_executor.py\", line 522, in _execute\n result = self._handler.run(task_vars=variables)\n File \"/usr/share/kolla/ansible/action_plugins/merge_configs.py\", line 122, in run\n self.read_config(source, config)\n File \"/usr/share/kolla/ansible/action_plugins/merge_configs.py\", line 96, in read_config\n config.parse(fakefile)\n File \"/usr/share/kolla/ansible/action_plugins/merge_configs.py\", line 47, in parse\n super(OverrideConfigParser, self).parse(lineiter)\n File \"/usr/lib/python2.7/site-packages/oslo_config/iniparser.py\", line 91, in parse\n key, value = self._split_key_value(line)\n File \"/usr/lib/python2.7/site-packages/oslo_config/iniparser.py\", line 46, in _split_key_value\n return self.error_invalid_assignment(line)\n File \"/usr/lib/python2.7/site-packages/oslo_config/iniparser.py\", line 113, in error_invalid_assignment\n self.lineno, line)\nParseError: at line 88, No ':' or '=' found in assignment: 'block_device_allocate_retries 180'\n", "stdout": ""}
fatal: [o3lr2ctlr1.test.local.localdomain]: FAILED! => {"msg": "Unexpected failure during module execution.", "failed": true, "exception": "Traceback (most recent call last):\n File \"/usr/lib/python2.7/site-packages/ansible/executor/task_executor.py\", line 97, in run\n item_results = self._run_loop(items)\n File \"/usr/lib/python2.7/site-packages/ansible/executor/task_executor.py\", line 290, in _run_loop\n res = self._execute(variables=task_vars)\n File \"/usr/lib/python2.7/site-packages/ansible/executor/task_executor.py\", line 522, in _execute\n result = self._handler.run(task_vars=variables)\n File \"/usr/share/kolla/ansible/action_plugins/merge_configs.py\", line 122, in run\n self.read_config(source, config)\n File \"/usr/share/kolla/ansible/action_plugins/merge_configs.py\", line 96, in read_config\n config.parse(fakefile)\n File \"/usr/share/kolla/ansible/action_plugins/merge_configs.py\", line 47, in parse\n super(OverrideConfigParser, self).parse(lineiter)\n File \"/usr/lib/python2.7/site-packages/oslo_config/iniparser.py\", line 91, in parse\n key, value = self._split_key_value(line)\n File \"/usr/lib/python2.7/site-packages/oslo_config/iniparser.py\", line 46, in _split_key_value\n return self.error_invalid_assignment(line)\n File \"/usr/lib/python2.7/site-packages/oslo_config/iniparser.py\", line 113, in error_invalid_assignment\n self.lineno, line)\nParseError: at line 88, No ':' or '=' found in assignment: 'block_device_allocate_retries 180'\n", "stdout": ""}

PLAY RECAP *********************************************************************
o3lr2ctlr1.test.local.localdomain : ok=124 changed=0 unreachable=0 failed=1 ignored=0
o3lr2ovs1.test.local.localdomain : ok=25 changed=0 unreachable=0 failed=0 ignored=0
o3lr2kvm1.test.local.localdomain : ok=25 changed=0 unreachable=0 failed=0 ignored=0
o3lr2net1.test.local.localdomain : ok=131 changed=0 unreachable=0 failed=1 ignored=0
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/kollacli/commands/reconfigure.py", line 49, in take_action
.format(msg=job.get_error_message()))
CommandError: ERROR: Job failed:
Host: o3lr2net1.test.local.localdomain, Task: cinder : Copying over cinder.conf, Status: failed, Message: Unexpected failure during module execution.
Host: o3lr2ctlr1.test.local.localdomain, Task: cinder : Copying over cinder.conf, Status: failed, Message: Unexpected failure during module execution.

 

Changes

 

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