On 11/15/2013 12:14 PM, Clint Byrum wrote:
Excerpts from Erik Bergenholtz's message of 2013-11-15 08:20:36 -0800:
Team -

We’d like to move our disk creation mechanism over to using DiskBuilder so that 
users can build (and modify) their own VM images. We’d like to piggy back off 
of the existing mechanism that the vanilla plugin uses. It looks like I should 
be able to add image-elements to savanna-image-elements/elements directory for 
the HDP specific setup. Any concerns with this approach? From an organizational 
standpoint, it would make sense to separate elements from various plugins by 
creating a directory hierarchy under the elements directory; i.e. a directory 
for each plugin to keep them separated.


I don't know how exactly Savanna calls diskimage-builder, but it
would indeed make sense for there to be directories for each set of
concerns. One just needs to add each directory that should be searched
to ELEMENTS_PATH (colon separated).  This also makes it possible to
override an element by putting a directory earlier in ELEMENTS_PATH,
as the first found element for each name wins.

Clint, Savanna doesn't directly interact with DIB. Instead it uses images that are output from DIB w/ savanna-image-elements elements.

Erik, you can think of DIB elements like packages. Each has a set of scripts that handle installation and configuration of something. For instance, you might create an ambari-agent element that makes sure the ambari-agent is installed and configured so when the image starts up there's no need to install & configure before using the instance.

Feel free to start throwing reviews at the savanna-image-elements repo and I'll catch them.

Best,


matt


_______________________________________________
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

Reply via email to