Re: [openstack-dev] [Nova][Docker] Environment variables

2013-12-19 Thread John Garbutt
On 17 December 2013 12:53, Daniel P. Berrange wrote: > On Mon, Dec 16, 2013 at 01:04:33PM -0800, Dan Smith wrote: >> > eg use a 'env_' prefix for glance image attributes >> > >> > We've got a couple of cases now where we want to overrides these >> > same things on a per-instance basis. Kernel comm

Re: [openstack-dev] [Nova][Docker] Environment variables

2013-12-17 Thread Daniel P. Berrange
On Mon, Dec 16, 2013 at 01:04:33PM -0800, Dan Smith wrote: > > eg use a 'env_' prefix for glance image attributes > > > > We've got a couple of cases now where we want to overrides these > > same things on a per-instance basis. Kernel command line args > > is one other example. Other hardware over

Re: [openstack-dev] [Nova][Docker] Environment variables

2013-12-17 Thread Daniel Kuffner
Actually Daniel P. Barrange comment is interesting. He states that a configuration per instance would also be beneficial for Cinder. The configuration is essentially needed to change the bootstrap of the image. If you look at a docker image in abstract way then that is the same thing - a configurat

Re: [openstack-dev] [Nova][Docker] Environment variables

2013-12-16 Thread Dan Smith
> eg use a 'env_' prefix for glance image attributes > > We've got a couple of cases now where we want to overrides these > same things on a per-instance basis. Kernel command line args > is one other example. Other hardware overrides like disk/net device > types are another possibility > > Rathe

Re: [openstack-dev] [Nova][Docker] Environment variables

2013-12-16 Thread Russell Bryant
On 12/16/2013 10:39 AM, Daniel P. Berrange wrote: > On Mon, Dec 16, 2013 at 04:18:52PM +0100, Daniel Kuffner wrote: >> Hi Russell, >> >> You actually propose to extend the whole nova stack to support >> environment variables. Would any other driver benefit from this API >> extension? >> >> Is that

Re: [openstack-dev] [Nova][Docker] Environment variables

2013-12-16 Thread Daniel P. Berrange
On Mon, Dec 16, 2013 at 04:18:52PM +0100, Daniel Kuffner wrote: > Hi Russell, > > You actually propose to extend the whole nova stack to support > environment variables. Would any other driver benefit from this API > extension? > > Is that what you imagine? > nova --env SQL_URL=postgres://user:pa

Re: [openstack-dev] [Nova][Docker] Environment variables

2013-12-16 Thread Russell Bryant
On 12/16/2013 10:18 AM, Daniel Kuffner wrote: > Hi Russell, > > You actually propose to extend the whole nova stack to support > environment variables. Would any other driver benefit from this API > extension? > > Is that what you imagine? > nova --env SQL_URL=postgres://user:password --image ...

Re: [openstack-dev] [Nova][Docker] Environment variables

2013-12-16 Thread Daniel Kuffner
That would be great, I have also a couple of change request waiting for approval. Would be good to know if it has any relevance in the future. https://review.openstack.org/#/c/59824/ https://review.openstack.org/#/c/62182/ https://review.openstack.org/#/c/62183/ https://review.openstack.org/#/c/62

Re: [openstack-dev] [Nova][Docker] Environment variables

2013-12-16 Thread Daniel Kuffner
Hi Chuck, yes please, I'm eager to see what you have. :) Daniel On Mon, Dec 16, 2013 at 4:12 PM, Chuck Short wrote: > Hi Russel, > > I have something that is pushing it for to stay in nova (at least the > compute drivers). I should have a gerrit branch for people to review soon. > > Regards > c

Re: [openstack-dev] [Nova][Docker] Environment variables

2013-12-16 Thread Daniel Kuffner
Hi Russell, You actually propose to extend the whole nova stack to support environment variables. Would any other driver benefit from this API extension? Is that what you imagine? nova --env SQL_URL=postgres://user:password --image Regarding the discussion you mentioned. Are there any publi

Re: [openstack-dev] [Nova][Docker] Environment variables

2013-12-16 Thread Russell Bryant
On 12/16/2013 10:12 AM, Chuck Short wrote: > I have something that is pushing it for to stay in nova (at least the > compute drivers). I should have a gerrit branch for people to review soon. OK. Do you have any design notes for whatever you're proposing? That would probably be easier to review

Re: [openstack-dev] [Nova][Docker] Environment variables

2013-12-16 Thread Chuck Short
Hi Russel, I have something that is pushing it for to stay in nova (at least the compute drivers). I should have a gerrit branch for people to review soon. Regards chuck On Mon, Dec 16, 2013 at 10:07 AM, Russell Bryant wrote: > On 12/16/2013 09:27 AM, Daniel Kuffner wrote: > > Hi All, > > > >

Re: [openstack-dev] [Nova][Docker] Environment variables

2013-12-16 Thread Russell Bryant
On 12/16/2013 09:27 AM, Daniel Kuffner wrote: > Hi All, > > I have submitted a new blueprint which addresses the a common pattern > in the docker world. A usual pattern in the docker world is to use > environment variables to configure a container. > > docker run -e "SQL_URL=postgres://user:passw

[openstack-dev] [Nova][Docker] Environment variables

2013-12-16 Thread Daniel Kuffner
Hi All, I have submitted a new blueprint which addresses the a common pattern in the docker world. A usual pattern in the docker world is to use environment variables to configure a container. docker run -e "SQL_URL=postgres://user:password@/db" my-app The nova docker driver doesn't support to s