[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Packages default config


Thanks for your replies.
I am not saying that debconf is overwriting what I configured with ansible.
I am just surprised that, by default, the configuration that is shipped with the Debian package (e.g. for glance) is having "regionOne" hardcoded at some places, while the default for OpenStack is "RegionOne".

Also, the doc on OpenStack side (again, for glance, see [1]) is saying that we should configure the service with RegionOne.
So, of you strictly follow the doc, you will end up with a *not* working glance API.

Also, as there are multiple places where the region_name parameter can be set (e.g. in nova, we have to set it at least in neutron and cinder sections), we cannot forget one, because some of them are set by Debian packages with regionOne, while some others are *not* and are using the default RegionOne.
The result is very confusing IMHO, and that's why I proposed to completely rename it back to RegionOne.
For people that just want to configure there OS from scratch (without puppet or ansible) they will have to "vim" over all config file to set region_name manually (debconf won't help because some of them are not managed if I am correct - that's maybe a bug).

Anyway, I managed to configure my infra, so don't worry.

Again, great work.

[1] https://docs.openstack.org/glance/latest/install/install-debian.html

Le 20 décembre 2020 10:57:42 GMT+01:00, Michal Arbet <michal.arbet@ultimum.io> a écrit :

Zigo, i would like to just correct you

What you are saying about the default region thing, well, the Debian
packages are setting-up a default "RegionOne", when the OpenStack
standard is more "regionOne", that's truth.

Debconf default is not RegionOne but regionOne :) , not as you said above ..
But, I agree this is not big problem, because region name is configurable via debconf (didn't check ...but maybe it is needed to dpkg-reconfigure debconf and set more sensitive user input to be able set region_name in debconf questions)

Kolla (and probably other solutions using deb packages) is not using debconf, not using postinst in the way how it is implemented ..they just set DEBIAN_FRONTEND=noninteractive and setting all configurations from ansible.

Kind regards,
Michal Arbet ( kevko )

čt 17. 12. 2020 v 11:31 odesílatel Arnaud Morin <arnaud.morin@gmail.com> napsal:
Hey team,

First, thanks for all the work you did on packaging OpenStack in debian.
This is amazing work.

I have been playing with the packages in the past few days, and saw some
eventual issues that I'd like to discuss with you.

First, I am *not* using OCI, mostly because I dont need it and I already
had some ansible playbooks to manage the configuration / installation of

As far as I can see, the packages are setting some params in the config
files, such as region_name or service_name.

If I am correct, this is done thanks to openstack-pkg-tools during
The thing is, for example in glance, the region_name was set to
regionOne insead of RegionOne (which is the default name in OS code).
The result is that glance was not working correctly.

Of course I can overwrite this params through my ansible playbooks.
My question behind this is why are you setting some params from

Also, I did this patch [1], in order to set region_name correctly.
Would you mind checking if this is the right place to do it?


[1] https://salsa.debian.org/openstack-team/debian/openstack-pkg-tools/-/merge_requests/1

Arnaud Morin

Reply to: