11 Commits

Author SHA1 Message Date
Ian Wienand
101c43dbd3 Add notes on devuser when building images
Add notes on using devuser to create a local user when building test
images.

Change-Id: I9893cd949dd20f5c9fc93bf35b28de2cbac8b4bb
2017-03-10 13:50:41 +11:00
Ian Wienand
ce0a039508 openstack-repos: fail on missing project list
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
2017-03-01 17:17:56 +11:00
Ian Wienand
e5aa03b98a Use DIB_GRUB_TIMEOUT to set boot timeout
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
2016-12-22 14:15:04 +11:00
Ian Wienand
4d2b556c33 Update tools/build-image.sh with some useful options
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
2016-12-16 14:33:19 +11:00
John L. Villalovos
2b5479e412 Fail build-image if public key is not present
User must have a public key setup for build-image.sh to succeed. Fail
early if it is missing.

Change-Id: Ib02cf3d4101fa93fc8ee234650658176d390b611
2016-10-14 14:25:24 -07:00
Clark Boylan
c0fd48390f Update build-image.sh to reflect nodepool config
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
2016-07-11 12:34:20 -07:00
Matthew Thode
710a9b49c1
Remove node-devstack from nodepool
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>
2016-05-26 12:51:22 -05:00
Jim Rollenhagen
26641b6561 Update build-image.sh for new images, add EXTRA_ELEMENTS
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
2016-03-28 16:19:59 -07:00
Anita Kuno
5710d6d61d Rename config => system-config in tools/
We are renaming the openstack-infra/config repo to
openstack-infra/system-config. This patch edits scripts in the
tools directory.

Change-Id: I81ff50b18cefa51d2b97e923bedc96cb123a229a
2014-10-17 21:28:44 +00:00
Monty Taylor
81291bd00c Stop supplying DIB_RELEASE
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
2014-10-07 10:20:55 -07:00
Ian Wienand
a86586a998 Port build-image.sh from old config repo
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
2014-09-30 15:06:19 -07:00