Closed halcyondude closed 8 years ago
WIP: https://review.gerrithub.io/#/c/273340/ feedback heartily welcomed
Now that we have tripleo-common support merged (vs. thin DIB wrapper), work here is proceeding.
After having fingers in this a bit, I'm headed in the following direction:
Current implementation The yaml format describing the images that tripleo-common expects is presently something we generate from jinja templates (hard coded) that ref a gaggle of env variables (artibdib*). We hard code the templates (one for IPA, one for overcloud). This allows us to run the image builds (using tripleo-common mechanism via python library) in parallel as ansible async tasks. This...
Working on this now
After discussion with @bcrochet going to look at adding an env dict to the yaml we pass to tripleo-common. There are a set of ENV variables that DIB uses to override (vs. command line args). In practice we need these. The corresponding change to upstream tripleo-common will allow for specifying env variables in the yaml, but will still allow for overriding via env (to remain consistent...ENV block wins all fights). Specifically we need the following:
FYI: @trown @weshayutin @bcrochet
tripleo-common change to have env variables as part of yaml input just merged.
https://github.com/openstack/tripleo-common/commit/b98590791c060928cbe43ee59082ad3cb684531e
proceeding...
https://review.gerrithub.io/#/c/276629/ is no longer WIP, waiting on gates to merge.
The current implementation has 2 disk-image-create passes, both hard coded (ironic python agent and overcloud-full). Older (and future) versions will require differences (e.g. discovery ramdisk for Kilo).
This issue tracks migrating these 2 hard coded passes (IPA, overcloud) to a declarative, data-driven idiom.
We will specify via YML a list of images to build. For each image the following shall be declarable:
Generating disk images will merely be a traversal of this list, and will maintain ability to rundisk-image-create tasks async, to leverage multi-core HW and nice disk subsystems/arrays.