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

Thomas Goirand zigo at debian.org
Thu Jan 8 14:20:33 UTC 2015


On 01/07/2015 11:42 PM, Benedikt Trefzer wrote:
> 
> 
> On 07.01.2015 22:40, Thomas Goirand wrote:
>> On 01/07/2015 05:43 PM, Benedikt Trefzer wrote:
>>> Package: neutron-metadata-agent
>>> Version: 2014.1.3-8
>>> Severity: serious
>>>
>>> Hi
>>> Upgrade of neutron-metadata-agent overwrites the parameter
>>> auth_url in /etc/neutron/metadata_agent.ini
>>
>> Hi Benedict,
>>
>> What happens is that the auth_url in neutron.conf is first read, and
>> then what's in there is used to alter the auth_url of metadata_agent.ini
>> to match that. I don't think it's normal that you don't have matching
>> pairs, and therefore, I don't believe this is a bug, as the postinst
>> just repairs a broken config.
>>
>> I'm not closing this bug to give you the opportunity to let me know your
>> thoughts here.
>>
>> Cheers,
>>
>> Thomas Goirand (zigo)
>>
>>
> Hi Thomas
> 
> I'm using the openstack puppet modules to handle the config files in
> out production environment.
> Since neutron-server is not running on the same host as the metadata
> agent, neutron.conf does not have an auth_url entry at all (which for
> that case is not necessar).
> 
> That's probably why it's then overwritten with the default, (from the
> templates file) which makes the neutron-metadata-agent unusable until
> the next puppet run.
> 
> To conclude, yes it's happening in a working, not broken environment.
> Setting the auth_url value in neutron.conf to avoid a change in
> metadata_agent.ini seems to be a workaround (did not yet test this), but
> I don't think this should be the solution.
> 
> Cheers,
> 
> Benedikt

Hi Benedikt,

Mi intend here was to have the debconf prompt happen only once when
installing the metadata server. So I was simply re-using the same
debconf variable. Obviously, this was a bad idea.

This last commit should be fixing your issue when using puppet:
http://anonscm.debian.org/cgit/openstack/neutron.git/commit/?id=5c17e246c7e1ed00a7f58ba1be98ab0185d25b81

Please give me your comments about it, then I'll upload it if you all
think it's ok.

Cheers,

Thomas Goirand (zigo)



More information about the Openstack-devel mailing list