openstack-config doesn't support multi valued option

Bug #1269271 reported by ZhiQiang Fan
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
openstack-manuals
Fix Released
Medium
Unassigned

Bug Description

openstack-config is used heavily in redhat and suse OS for openstack configuration. However

openstack-config just a simple wrapper of curdini:
https://github.com/redhat-openstack/openstack-utils/blob/master/utils/openstack-config#L21

and crudini doesn't support multi valued option:
https://github.com/pixelb/crudini/blob/master/TODO

crudini actually uses ConfigParser to modify config files, but ConfigParser uses dict to store options, which means it cannot support duplicated options:
https://bitbucket.org/ambv/configparser/src/4bf6a6d8ebdf6eec068750a2b940944a9b1b2938/configparser.py?at=default

So all multi valued option which is set by openstack-config will only get the last setting, for i.e., in section_ceilometer-nova.xml, the notification_driver only get the last one.

This bug only affects redhat and suse OS, and will continue util crudini package supports multi valued option.

-----------------------------------
Built: 2014-01-14T23:28:36 00:00
git SHA: 70de4963935c7394bd4377ffa8acef163e425074
URL: http://docs.openstack.org/havana/install-guide/install/zypper/content/ceilometer-install-nova.html
source File: file:/home/jenkins/workspace/openstack-install-deploy-guide-opensuse/doc/install-guide/section_ceilometer-nova.xml
xml:id: ceilometer-install-nova

Revision history for this message
Andreas Jaeger (jaegerandi) wrote :

Could you have a look at this, please? This might be a result of your last change!

Changed in openstack-manuals:
assignee: nobody → ZhiQiang Fan (aji-zqfan)
status: New → Confirmed
importance: Undecided → Medium
assignee: ZhiQiang Fan (aji-zqfan) → nobody
Revision history for this message
Andreas Jaeger (jaegerandi) wrote :

Comments made to the wrong bug - sorry

Changed in openstack-manuals:
status: Confirmed → Fix Released
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.