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

Daniel P. Berrange berrange at redhat.com
Mon Dec 16 15:39:22 UTC 2013


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.

Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|



More information about the OpenStack-dev mailing list