4 Commits

Author SHA1 Message Date
Adam Gandelman
0f72625fba Enable DIB service to build with minimal net access
Adds two new options to lib/dib that will help devstack slaves
use cached content and content local to cloud provides:

 * DIB_BUILD_OFFLINE: This will enable DIB to rely entirely on
   cached images without making any additional calls to cloud-images.ubuntu.com
   to validate hashes/freshness.

 * DIB_APT_SOURCES: Used to specify alternatve sources.list for image builds.
   Setting this enables the addition of the apt-sources element during image
   builds and is only supported for ubuntu/debian builds.

Change-Id: I9b9ca72ec551565d454610aacb86c585f0384f13
Partial-bug: #1375488
2014-10-08 12:08:34 -07:00
Monty Taylor
50495b0163 Install dib from pip
diskimage-builder makes releases to PyPI and is not part of the
integrated release. Since it's not, we don't need to consume its
master branch - rather, we can consume its releases.

Change-Id: If9297a28604612140c39dfe44e77107d1372f0bb
2014-09-30 09:54:36 -07:00
Steve Baker
da786b2fd9 Utility functions for building test images
These functions allow images to be built using diskimage-builder which
contain packages built from local project checkouts:
build_dib_pip_repo() - Builds a local pip repo from local projects and configures
                       apache to serve it
disk_image_create_upload() - Creates and uploads a diskimage-builder built image

The unused function lib/heat disk_image_create has been deleted.

Change-Id: Ia75c7c35bfd48dbe6ae3cb9c3241de0b598cbf84
2014-08-22 15:02:26 +12:00
Steve Baker
122ab70330 A service to install diskimage-builder
Enabling service 'dib' will install the following repos:
* diskimage-builder
* tripleo-image-elements
* os-collect-config
* os-refresh-config
* os-apply-config

These repos are already pre-fetched in devstack-gate.

This will facilitate gating on changes in these projects by building
a custom image then running the heat-slow job against that image.

diskimage_builder is pip installed from the current git checkout
if the dib service is enabled. This allows devstack gating on
diskimage-builder changes while also allowing diskimage-builder to
be installed from releases for other scenarios (for example, ironic).

Change-Id: Ia911cdee86f5b2e2ba1557e5aa8bf392b92ef555
2014-08-20 09:06:34 +12:00