Re: [openstack-dev] [packaging][all] Sample Config Files in setup.cfg

2017-10-12 Thread Jeremy Stanley
On 2017-10-12 09:06:28 + (+), Jesse Pretorius wrote: > On 10/12/17, 8:55 AM, "Thomas Goirand" wrote: [...] > > Also, in the packaging process, there's a few tweaks that are > > necessary for the distro integration. A quick example: in the > > nova package, I've set

Re: [openstack-dev] [packaging][all] Sample Config Files in setup.cfg

2017-10-12 Thread Jesse Pretorius
On 10/12/17, 8:55 AM, "Thomas Goirand" wrote: > Now, there's something which I still am not completely sure. Are you > willing to push for *samples*, or real configuration files which we can > actually use? Depending on your answer, the destination location will be > different,

Re: [openstack-dev] [packaging][all] Sample Config Files in setup.cfg

2017-10-12 Thread Thomas Goirand
On 10/11/2017 01:17 PM, Jesse Pretorius wrote: > On 10/10/17, 9:26 PM, "Doug Hellmann" wrote: > >> I still think we should just be looking at these files as sample >> data and not active configuration files when we put them into the sdist >> or wheel. > > There is

Re: [openstack-dev] [packaging][all] Sample Config Files in setup.cfg

2017-10-11 Thread Jesse Pretorius
On 10/10/17, 9:26 PM, "Doug Hellmann" wrote: > I still think we should just be looking at these files as sample > data and not active configuration files when we put them into the sdist > or wheel. There is agreement from all distributions bar one on this approach so far,

Re: [openstack-dev] [packaging][all] Sample Config Files in setup.cfg

2017-10-11 Thread Thomas Bechtold
Hi, On 10.10.2017 13:04, Jesse Pretorius wrote: On 9/29/17, 7:18 AM, "Thomas Bechtold" wrote: This will still install the files into usr/etc : $ python setup.py install --skip-build --root /tmp/sahara-install > /dev/null $ ls /tmp/sahara-install/usr/

Re: [openstack-dev] [packaging][all] Sample Config Files in setup.cfg

2017-10-10 Thread Doug Hellmann
Excerpts from Thomas Goirand's message of 2017-10-10 22:03:44 +0200: > On 10/10/2017 01:16 PM, Jesse Pretorius wrote: > > Regardless, given that this is not functionality currently> available for > > setuptools, distutils or pbr it would seem > > that this functionality (or another applicable

Re: [openstack-dev] [packaging][all] Sample Config Files in setup.cfg

2017-10-10 Thread Thomas Goirand
On 10/10/2017 01:16 PM, Jesse Pretorius wrote: > Regardless, given that this is not functionality currently> available for > setuptools, distutils or pbr it would seem > that this functionality (or another applicable workaround) > would have to be carried by Debian packaging until such > time

Re: [openstack-dev] [packaging][all] Sample Config Files in setup.cfg

2017-10-10 Thread Doug Hellmann
Excerpts from Thomas Goirand's message of 2017-10-10 21:28:35 +0200: > On 10/10/2017 01:21 PM, Jesse Pretorius wrote: > > > > > > On 10/10/17, 12:08 PM, "Jesse Pretorius" > > wrote: > > > >>$ python setup.py install --skip-build --root /tmp/keystone > >>

Re: [openstack-dev] [packaging][all] Sample Config Files in setup.cfg

2017-10-10 Thread Thomas Goirand
On 10/09/2017 12:36 PM, Jesse Pretorius wrote: > There has been an objection from the OpenStack package maintainer for > Debian, but that objection has been to the use of the relative path of > /etc. Thomas Goirand, could you please indicate whether you support the > use of the relative path of

Re: [openstack-dev] [packaging][all] Sample Config Files in setup.cfg

2017-10-10 Thread Thomas Goirand
On 10/10/2017 01:21 PM, Jesse Pretorius wrote: > > > On 10/10/17, 12:08 PM, "Jesse Pretorius" > wrote: > >>$ python setup.py install --skip-build --root /tmp/keystone >> --install-data / > > Apologies – I copied the wrong command, it should have been: >

Re: [openstack-dev] [packaging][all] Sample Config Files in setup.cfg

2017-10-10 Thread Thomas Goirand
On 10/09/2017 11:20 AM, Luigi Toscano wrote: > On Saturday, 7 October 2017 12:30:54 CEST Thomas Goirand wrote: >> Though people doing the packaging will suffer. Please don't throw the >> baby over the wall, and let's fix the issue. > > This is an overstatement. Pardon me if I'm wrong, but if you

Re: [openstack-dev] [packaging][all] Sample Config Files in setup.cfg

2017-10-10 Thread Thomas Goirand
On 10/09/2017 08:44 AM, Jean-Philippe Evrard wrote: > If you want to include the fix for PBR, or refresh it, don't hesitate > to propose a follow-up patch. That's the issue. I would very much like to propose a follow-up patch, but Robert has disagreed on its very principle, so I don't see a route

Re: [openstack-dev] [packaging][all] Sample Config Files in setup.cfg

2017-10-10 Thread Jesse Pretorius
On 10/10/17, 12:08 PM, "Jesse Pretorius" wrote: >$ python setup.py install --skip-build --root /tmp/keystone --install-data > / Apologies – I copied the wrong command, it should have been: $ python setup.py install --root /tmp/keystone --install-data /

Re: [openstack-dev] [packaging][all] Sample Config Files in setup.cfg

2017-10-10 Thread Jesse Pretorius
On 10/9/17, 4:08 PM, "Thomas Goirand" wrote: >So yeah, you can push files in /usr/share/nova, but then we'll have to >actually *delete* them in the packaging, because it doesn't fit our use >case. So in fact, best would be if this could be overridden, for example >

Re: [openstack-dev] [packaging][all] Sample Config Files in setup.cfg

2017-10-10 Thread Jesse Pretorius
On 9/29/17, 7:18 AM, "Thomas Bechtold" wrote: >This will still install the files into usr/etc : >$ python setup.py install --skip-build --root /tmp/sahara-install > > /dev/null >$ ls /tmp/sahara-install/usr/ >bin etc lib >It's not nice but packagers

Re: [openstack-dev] [packaging][all] Sample Config Files in setup.cfg

2017-10-09 Thread Thomas Goirand
On 10/06/2017 10:23 AM, James Page wrote: > On Tue, 3 Oct 2017 at 18:15 Doug Hellmann > wrote: > > Excerpts from Jesse Pretorius's message of 2017-10-03 15:57:17 +: > > On 10/3/17, 3:01 PM, "Doug Hellmann"

Re: [openstack-dev] [packaging][all] Sample Config Files in setup.cfg

2017-10-09 Thread Thomas Bechtold
Hi, On 09.10.2017 12:36, Jesse Pretorius wrote: [...] We have agreement from packagers for Ubuntu [1] and RDO [2] to include the files in the relative path /share. This seems to be the least offensive. OpenStack-Ansible supports the inclusion of the files, regardless of path [3]. There was

Re: [openstack-dev] [packaging][all] Sample Config Files in setup.cfg

2017-10-09 Thread Jesse Pretorius
> From: James Page > 1) +1 for a consistent approach across projects - /usr/share/ sounds > like a sensible location - avoiding any complexity with managing changes made > by users in /etc/ for deploy from source use-cases, and allowing > packagers to know where to

Re: [openstack-dev] [packaging][all] Sample Config Files in setup.cfg

2017-10-09 Thread Luigi Toscano
On Saturday, 7 October 2017 12:30:54 CEST Thomas Goirand wrote: > On 10/03/2017 03:07 PM, Luigi Toscano wrote: > >> Why not? Simply because installing config files in /usr/etc is silly. > >> The question would rather be: why not accepting the PBR patch... > > > > It is silly, but again, people

Re: [openstack-dev] [packaging][all] Sample Config Files in setup.cfg

2017-10-09 Thread Jean-Philippe Evrard
On Sat, Oct 7, 2017 at 11:30 AM, Thomas Goirand wrote: > On 10/03/2017 03:07 PM, Luigi Toscano wrote: >>> Why not? Simply because installing config files in /usr/etc is silly. >>> The question would rather be: why not accepting the PBR patch... >> >> It is silly, but again,

Re: [openstack-dev] [packaging][all] Sample Config Files in setup.cfg

2017-10-07 Thread Thomas Goirand
On 10/03/2017 03:07 PM, Luigi Toscano wrote: >> Why not? Simply because installing config files in /usr/etc is silly. >> The question would rather be: why not accepting the PBR patch... > > It is silly, but again, people consuming from deb or RPM won't notice it. Though people doing the

Re: [openstack-dev] [packaging][all] Sample Config Files in setup.cfg

2017-10-06 Thread James Page
On Tue, 3 Oct 2017 at 18:15 Doug Hellmann wrote: > Excerpts from Jesse Pretorius's message of 2017-10-03 15:57:17 +: > > On 10/3/17, 3:01 PM, "Doug Hellmann" wrote: > > > > >> Given that this topic has gone through several cycles of discussion >

Re: [openstack-dev] [packaging][all] Sample Config Files in setup.cfg

2017-10-03 Thread Doug Hellmann
Excerpts from Jesse Pretorius's message of 2017-10-03 15:57:17 +: > On 10/3/17, 3:01 PM, "Doug Hellmann" wrote: > > >> Given that this topic has gone through several cycles of discussion and > >> has never gone anywhere, does it perhaps merit definition as a project

Re: [openstack-dev] [packaging][all] Sample Config Files in setup.cfg

2017-10-03 Thread Jesse Pretorius
On 10/3/17, 3:01 PM, "Doug Hellmann" wrote: >> Given that this topic has gone through several cycles of discussion and has >> never gone anywhere, does it perhaps merit definition as a project interface >> so that we can define the problem this is trying to solve and set

Re: [openstack-dev] [packaging][all] Sample Config Files in setup.cfg

2017-10-03 Thread Doug Hellmann
Excerpts from Jesse Pretorius's message of 2017-10-03 09:02:19 +: > On 10/2/17, 1:45 PM, "Doug Hellmann" wrote: > > >etc implies they should be edited, though, and we're trying to move away > >from that at least for the paste.ini files in most projects. So we

Re: [openstack-dev] [packaging][all] Sample Config Files in setup.cfg

2017-10-03 Thread Jean-Philippe Evrard
On Tue, Oct 3, 2017 at 2:07 PM, Luigi Toscano wrote: > On Tuesday, 3 October 2017 14:31:05 CEST Thomas Goirand wrote: >> On 10/02/2017 02:04 PM, Luigi Toscano wrote: >> > Why not? Even if it does not fix the issue for proper installations, >> > - it does not provent people

Re: [openstack-dev] [packaging][all] Sample Config Files in setup.cfg

2017-10-03 Thread Luigi Toscano
On Tuesday, 3 October 2017 14:31:05 CEST Thomas Goirand wrote: > On 10/02/2017 02:04 PM, Luigi Toscano wrote: > > Why not? Even if it does not fix the issue for proper installations, > > - it does not provent people from copying the files somewhere else (it > > happened in sahara for how long I

Re: [openstack-dev] [packaging][all] Sample Config Files in setup.cfg

2017-10-03 Thread Thomas Goirand
On 10/02/2017 02:04 PM, Luigi Toscano wrote: > Why not? Even if it does not fix the issue for proper installations, > - it does not provent people from copying the files somewhere else (it > happened in sahara for how long I can remember, we have been using data_files) > - it fixes the deployment

Re: [openstack-dev] [packaging][all] Sample Config Files in setup.cfg

2017-10-03 Thread Jesse Pretorius
On 10/2/17, 1:45 PM, "Doug Hellmann" wrote: >etc implies they should be edited, though, and we're trying to move away >from that at least for the paste.ini files in most projects. So we may >need to decide on a case-by-case basis, unless we declare all of these

Re: [openstack-dev] [packaging][all] Sample Config Files in setup.cfg

2017-10-02 Thread Doug Hellmann
Excerpts from Jesse Pretorius's message of 2017-10-02 08:38:06 +: > On 9/29/17, 6:26 PM, "Jeremy Stanley" wrote: > > On 2017-09-29 18:39:18 +0200 (+0200), Thomas Bechtold wrote: > > There is /etc [1] > [...] > > >Not really, no, because the system-context

Re: [openstack-dev] [packaging][all] Sample Config Files in setup.cfg

2017-10-02 Thread Luigi Toscano
On Monday, 2 October 2017 13:28:17 CEST Thomas Goirand wrote: > On 09/28/2017 04:50 PM, Jesse Pretorius wrote: > > There’s some history around this discussion [1], but times have changed > > and the purpose of the patches I’m submitting is slightly different [2] > > as far as I can see – it’s a

Re: [openstack-dev] [packaging][all] Sample Config Files in setup.cfg

2017-10-02 Thread Thomas Goirand
On 09/28/2017 04:50 PM, Jesse Pretorius wrote: > There’s some history around this discussion [1], but times have changed > and the purpose of the patches I’m submitting is slightly different [2] > as far as I can see – it’s a little more focused and less intrusive. > >   > > The projects which

Re: [openstack-dev] [packaging][all] Sample Config Files in setup.cfg

2017-10-02 Thread Jesse Pretorius
On 9/29/17, 6:26 PM, "Jeremy Stanley" wrote: On 2017-09-29 18:39:18 +0200 (+0200), Thomas Bechtold wrote: > There is /etc [1] [...] >Not really, no, because the system-context data_files path has to be >relative to /usr or /usr/local unless we want to have

Re: [openstack-dev] [packaging][all] Sample Config Files in setup.cfg

2017-09-29 Thread Jeremy Stanley
On 2017-09-29 18:39:18 +0200 (+0200), Thomas Bechtold wrote: > On 29.09.2017 12:56, Jesse Pretorius wrote: > > On 9/29/17, 7:18 AM, "Thomas Bechtold" wrote: > > > > This will still install the files into usr/etc : > > It's not nice but packagers can workaround that. >

Re: [openstack-dev] [packaging][all] Sample Config Files in setup.cfg

2017-09-29 Thread Thomas Bechtold
hi, On 29.09.2017 12:56, Jesse Pretorius wrote: On 9/29/17, 7:18 AM, "Thomas Bechtold" wrote: This will still install the files into usr/etc : It's not nice but packagers can workaround that. Yes, that is true. Is there a ‘better’ location to have them? I

Re: [openstack-dev] [packaging][all] Sample Config Files in setup.cfg

2017-09-29 Thread Jesse Pretorius
On 9/29/17, 7:18 AM, "Thomas Bechtold" wrote: This will still install the files into usr/etc : It's not nice but packagers can workaround that. Yes, that is true. Is there a ‘better’ location to have them? I noticed that Sahara was placing the files into share,

Re: [openstack-dev] [packaging][all] Sample Config Files in setup.cfg

2017-09-29 Thread Thomas Bechtold
Hi, On 28.09.2017 16:50, Jesse Pretorius wrote: [...] Do any packagers or deployment projects have issues with this implementation? If there are any issues, what’re your suggestions to resolve them? This will still install the files into usr/etc : $ python setup.py install --skip-build

Re: [openstack-dev] [packaging][all] Sample Config Files in setup.cfg

2017-09-28 Thread Doug Hellmann
Excerpts from Jesse Pretorius's message of 2017-09-28 17:17:55 +: > On 9/28/17, 5:11 PM, "Doug Hellmann" wrote: > > > In the past we had trouble checking those files into git and gating > > against the results being "up to date" or not changing in any way > > because

Re: [openstack-dev] [packaging][all] Sample Config Files in setup.cfg

2017-09-28 Thread Jesse Pretorius
On 9/28/17, 5:11 PM, "Doug Hellmann" wrote: > In the past we had trouble checking those files into git and gating > against the results being "up to date" or not changing in any way > because configuration options that end up in the file are defined in > libraries used by

Re: [openstack-dev] [packaging][all] Sample Config Files in setup.cfg

2017-09-28 Thread Doug Hellmann
Excerpts from Jesse Pretorius's message of 2017-09-28 14:50:24 +: > There’s some history around this discussion [1], but times have changed and > the purpose of the patches I’m submitting is slightly different [2] as far as > I can see – it’s a little more focused and less intrusive. > >