Make wait_for a separate shell script

wait_for() function is used in both init-keystone and devtest_seed.sh,
but the latter doesn't import its definition, so running of this script
leads to "wait_for: command not found" error.

wait_for() can actually be made a separate shell script to make it possible
to use it from any other script (because we add the scripts/ dir to PATH).

Fixes bug 1234704

Change-Id: Id5017e1d4b660a58a9dd75e6e18450744d3399a7
Force link client tools.

If something fails in setup-clienttools you may want to re-run it
at a later time. It seems reasonable to just overwrite pre-existing
softlinks with new ones.

Change-Id: I6690c21632644d72a6f973addd1007a4d98b1221
Clarify what overcloud is controlling in devtest.

KVM was specified as what overcloud controls, but this can actually
be a variety of virtualization options, including QEMU (as used in
testing) and Xen.

This hopefully clarifies that the documentation refers to what the
overcloud controls, not what it is.

Change-Id: Ib83a135f1a2376207ad5aafe96ae33584f52ae8d
Add setup-env script

Setup-env is an independent script to source that will make sure your
environment is up to date on your undercloud.

Change-Id: I6527f27a48f0d12c22e5bf4e5234e2199668ed81
Document the joy of bringing up a real undercloud.

Change-Id: Iced79309ee6b4b160c4662428638575750fd9cdf
Merge "Add setup-env script"
Split setup-passwords into undercloud and overcloud

Don't assume overcloud and undercloud can access the same file to get
the passwords from. Split up setup-passwords so
setup-undercloud-passwords is used in devtest_undercloud and
setup-overcloud-passwords is used in devtest_overcloud.

Change-Id: I47de68d081ab3d8e83d014d416e229c055b42ec8
Use load-image -d in overcloud for now.

To facilitate CD of the overcloud use the -d flag in load-images.

Change-Id: Icea39faf1cab513700c234ebc3257e9d3edd2cc1
Merge "Use load-image -d in overcloud for now."
Merge "Split setup-passwords into undercloud and overcloud"
Make pull-tools avoid offering to merge

In OpenStack we don't allow merge commits, and it probably isn't what
we would want even if we did allow them. Also, if we are on a branch,
we are going to assume the user does not want to even attempt a pull.

If the user is on master, and has diverged, we want to offer them a
likely next step, which is to rebase on origin/master.

Change-Id: I446394505d82bc30af6ead0d7dd1a6e11fe1e7b7
Overwrite passwords in devtest_*

If we don't use this flag, running devtest twice results in an unusable
cloud and a stalled build. Using --overwrite just makes sense for
iterating on devtest.

Change-Id: If1c4f73cd5cb1d2888505bf3d1eba855ee6b5a94
Merge "Force link client tools."
Record the current tripleo-cd-admins.

We need a repository somewhere; I think this will want to be split
into tooling and our-specific-cloud at some point, but crawl-walk-run.

Change-Id: I8bc1396fffeab7f4f5ac967d515cba7d3ea16218
Show what happens when timing out in wait_for.

We had devtest_overcloud.sh timing out and couldn't see why.

Change-Id: I7a862832789bf4460e1bda4fd2f54c431d8be072
Finish migrating wait_for into a shell script.

A function version was left behind by the earlier commit.

Change-Id: I3afbf0e22fc8c30dfeddc2293713a7a8bfe36663
Wait 14 minutes for the overcloud to deploy.

It takes 8 minutes in the CD cloud for heat to do it's job, so we're
then timing out during sql patch application etc.

Change-Id: I13773527ed70bafe91ee6f09abafc877c08b5ae7
Merge "Make pull-tools avoid offering to merge"
Merge "Overwrite passwords in devtest_*"
Merge "Record the current tripleo-cd-admins."