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

Russell Bryant rbryant at redhat.com
Mon Dec 16 15:42:35 UTC 2013

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 what you imagine?
>> nova --env SQL_URL=postgres://user:password --image ....
>> Regarding the discussion you mentioned. Are there any public resources
>> to read. I kind of missed it. Most likely it was before I was part of
>> this community :)
> With glance images we have a way to associate arbitrary metadata
> attributes with the image. I could see using this mechanism to
> associate some default set of environment variables.
> 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
> Rather than invent new extensions for each, I think we should
> have a way to pass arbitrary attributes alon with the boot
> API call, that a driver would handle in much  the same way as
> they do for glance image properties. Basically think of it as
> a way to custom any image property per instance created.

That's a pretty nice idea.  I like it.

Russell Bryant

More information about the OpenStack-dev mailing list