[PKG-Openstack-devel] Bug#774788: Bug#774788: neutron-metadata-agent overwrites config on update

Benedikt Trefzer benedikt.trefzer at cirrax.com
Fri Jan 9 14:13:22 UTC 2015


Hi Thomas

Well the commit
http://anonscm.debian.org/cgit/openstack/neutron.git/commit/?id=5c17e246c7e1ed00a7f58ba1be98ab0185d25b81

mentioned does definitly not solve the bug.

>> Though if I understand it correctly, this patch also means, that if
>> installation is made interactivly, the user is twice asked for the
>> values for neutron-metadata-agent/*.
> 
> Correct. That's annoying, but I don't see any other way to fix it. Do you?

no I don't have better idea. Actually the question was more for me to
check my understanding of you're fix.

Another issue: I realized, that the old debconf values are still present
after upgrade. Do we not need to delete them ?
(I do not know package policy well  enough to have a qualified opinien
about that, but it would make sense to remove them I think.)

So I did some upgrade testing on my testing system (fresh install of
jessie, install neutron-metadata-agent, upgrade to you're new version.
Everything with
export DEBIAN_FRONTEND=noninteractive;
set.

The lines in the pkgos_write_admin_creds() function
in the neutron-metadata-agent.postinst script are guilty for the
troubles (as far as I see).

In 489 line you lookup the port in the config file. This one is
correctly taken. The protocol is switched to http hardcoded, as far as I
understand the code. And the hostname is taken from debconf value,
without respecting the value in the config file.

I currently not able to imagine where it reads the config file. (Sorry
;(). Especially I cannot understand why it does eg not change the region
which seems to me like equivalent configured.

So at the moment im sort of blocked for further investigation.

Cheers

Benedikt Trefzer



More information about the Openstack-devel mailing list