If you specify a CUSTOM_PROJECTS_LIST_URL that doesn't exist you get a
message but the script continues. Since you clearly meant to specify
something we should bail so the user can correct the problem.
Additionally, add some documentation to the build-image.sh script to
describe how to use this to cut down build times considerably for
initial testing purposes.
Change-Id: I02d1cd341f793471b1ad4374e98031ea53db7f49
We currently re-run all the grub setup in 99-fix-grub-timeout which
shouldn't really be necessary (actually a little problematic; although
this is dib's fault, see Ibaaa81124098f3c6febe48e455d3e1cd0a5f1761)
Use the new timeout flag to set this in the bootloader element
directly.
I think it is also an advantage that if you build a testing image with
./tools/build_image.sh this is configurable now ... having to fiddle
the bootloader for debugging is something that happens more than you'd
like.
This is supported since dib 1.26.0
Change-Id: Iafc660a9a8c072af6bf1fd5e51c419abccef4d54
Mainly I always forget to set the nameservers; the corporate firewall
disallows outbound DNS queries so this breaks image build after the
values are written into /etc/resolv.conf
Update with a few other options & clarifications too. All should be
self-explanatory.
Change-Id: I359f10f2d80cbc8997580870cf3de88903c5f507
We have added and moved elements around and that needs to be reflected
in tools/build-image.sh so that local image builds result in functional
images.
Change-Id: Iaba5eac8ff65b10d608c7d5aa84f083ee00a8319
Here we fully remove node-devstack from nodepool. I've changed
refrences to it to be cache-devstack as that is the only function the
now defunct node-devstack element was providing. I did not do this to
openstack-repos as it has already moved to the prepare-node element.
Change-Id: I1dacd9e1af5ebb6056998f6f2705317eddc87714
Signed-off-by: Matthew Thode <mthode@mthode.org>
This changes the base element for build-image.sh to ubuntu-minimal, and
adds the simple-init element, to make this match the images used in the
gate.
It also adds an EXTRA_ELEMENTS environment variable that users can use
to add elements to the image. For example, local-config is useful to put
the current user's ssh keys in the image.
Last, it documents the things I needed to install to get it to run
correctly on Ubuntu; this is likely not an exhaustive list.
Change-Id: I2506c6722b77bb2f861d08e7a6da453dc2bbbfc2
We are renaming the openstack-infra/config repo to
openstack-infra/system-config. This patch edits scripts in the
tools directory.
Change-Id: I81ff50b18cefa51d2b97e923bedc96cb123a229a
dib already picks DIB_RELEASE out of the env, and us setting a default
subverts its ability to do the right thing in elements. Similarly,
the DIB_IMAGE_NAME is both not a dib env var and was not being used, nor
was DIB_IMAGE_FILENAME.
Change-Id: I0522bad3a4be6d81d225fec37a08c7c71a65fe4d
Port the build-image.sh script, build-dib-in-docker.sh, mount-image.sh
and umount-image.sh into the new repo, adjusting the paths for the new
layout
Change-Id: I087a2396581bf4415c9676f70b4c739a62c84b23