[Openstack-devel] Bug#732547: Bug#732547: Does not preserve modifications to /etc/default/cinder-common

Gaudenz Steinlin gaudenz at debian.org
Thu Dec 19 09:09:47 UTC 2013


Hi Thomas

Thomas Goirand <zigo at debian.org> writes:

> On 12/19/2013 03:43 AM, Gaudenz Steinlin wrote:
>>> This is some remaining from before I restarted working on the packaging
>>> of OpenStack, and a feature which I just didn't touch. Each time I see
>>> it, I think I should kill this functionality. Would you agree (and the
>>> rest of the packaging team) that it's useless, since Debian has all the
>>> needed tools to do that?
>>>
>>> If nobody complains about it, I'll kill this thing completely, and will
>>> do the same for Nova.
>> 
>> I'm not exactly sure what you are refering here with "this thing". If
>> you mean the part that you can enable service in /etc/default/* files,
>> then I completely agree. I just did not mention this because it's not
>> really part of the bug, but IMO this is a bad way to control if a
>> service is started or not, there are much better ways to not start a
>> service (ie runlevels) and at the same time keeping the possiblity of
>> starting it from the command line with the normal init script.
>> 
>> So I'm very much in favor of this. But this does only work around this
>> instance of the bug and not solve the deeper issue which is somewhere
>> inside the pile of shell code in openstack-pkg-tools.
>
> The problem doesn't lie at all in openstack-pkg-tools, which in itself
> is policy compliant. Read what it does if you aren't convinced.

Nowhere did I say that openstack-pkg-tools is not policy compliant. The
part that concerns openstack-pkg-tools is not about policy compliance,
but just a simple bug. As I already wrote in the first mail, I read the
code. The code currently in cinder-common.config.in (which will be
removed) tries to do the right thing by useing pkgos_read_config, but
inside this function (which uses pkgos_inifile for the low level work) it
files to correctly read the value from the file. That's the underlying
bug that should also be fixed. I just went back and made a small test
case. The script is attached to this mail:

gaudenz at meteor:~/tmp$ ./test.sh 
Testing pkgos_inifile WITHOUT section
Return value:          NOT_FOUND
Expected return value: false

Testing pkgos_inifile WITH section
Return value:          false
Expected return value: false

I guess the bug is somewhere in the handling of the NO_SECTION parameter
to pkgos_inifile.

Gaudenz

-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.sh
Type: text/x-sh
Size: 1107 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/openstack-devel/attachments/20131219/0fc24ed7/attachment.sh>
-------------- next part --------------

-- 
Ever tried. Ever failed. No matter.
Try again. Fail again. Fail better.
~ Samuel Beckett ~


More information about the Openstack-devel mailing list