edit-glance-manage-command-for-recreate-db

As per https://bugs.launchpad.net/glance/+bug/1213197, and subsequent
review at https://review.openstack.org/#/c/47161/ Glance-manage commands
are proposed to be subcommands of 'db'. This would require change to the
script to recreate_db which calls the db_sync command.

Implements blueprint edit-glance-manage-command-for-recreate-db
Change-Id: I9470709ec34896dba7a37fdff4791206bb5ef5ed
xenapi: enable user interaction with stack.sh

In XenServer, devstack runs inside a virtual machine. This makes it hard
for the user to interact with stack.sh should a parameter be missing.
This change will create an upstart job (devstack) that runs
stack.sh with console enabled so user can interact with it by running
vncviewer or using XenCenter.

Logging the output is also disabled, stamp files are used instead to
detect the script run status in case install_os_domU.sh is used.

As run.sh.log is removed, standard devstack logging should be used.

The change also removes the environment settings from run.sh, as they
are not needed, they should be specified in localrc. This way user
cannot get different experiences by using unstack.sh/stack.sh or run.sh

Also a proper unstack.sh is called instead of killing screen in run.sh

Change-Id: I7eb12bd74746cc7a1db3aa9fd68ece645a50001d
xenapi: display IP and DevStack result on console

The devstack setup service can update /etc/issue, displaying the status
of the installation and the VM's management IP. With this change, after
the devstack service finsihed, the login prompt will look like this:

OpenStack VM - Installed by DevStack
  Management IP:   10.219.3.108
  Devstack run:    SUCCEEDED

DevStackOSDomU login:

This helps people to log in to their system.

Change-Id: Idd6bbd5faf9ced5618cd3e95191bfc3b89473fa2
Add MIDONET settings to dhcp.ini

The midonet specific settings were not being added to the dhcp
specific config file. This change adds those settings.

Closes-bug: #1233941
Change-Id: I4155135528c6ba77cf57d30ac256580c7239794f
Signed-off-by: Joe Mills <joe@midokura.com>
Fix bugs for installing docker, bug #1237581.
  -The change in install_docker.sh corrects a typo ('=' should be '-').
   This typo resutls in 'unable to locate the packet' error when executing apt-get.

  -The second change is in hypervisor-docker fix the error for reporting
   docker is not installed when docker is actually set up. The original line
   missed the version part of the package name.

Change-Id: Ic48f45158cf84f89080f095d53c355e9f6969bfd
XenAPI: Get pool default SR rather than "Local storage"

Match the nova default of using the Pool default SR as the storage for
VMs

Change-Id: I3b681ae7062ba0db3d9eab70b410b7d9658e37c9
Enable keystone authentication in Ironic

Currently Ironic installation script leaves authenticaiton
strategy in its default value which is noauth. This is not
relevant for the most of development and testing environments.

This patch sets authentication strategy for Ironic to keystone
and specifies the path to the policy file.

Closes-bug: #1233612
Change-Id: Idacbda05663e7ef949cbce0dbdf28eaa36b6a1a9
Install Ironic client

Since python-ironicclient was published to github it's
reasonable to include it to the default Ironic set up.

Change-Id: Id1d0209959a3b482977b5e710c0885c714ad7e10
exercices: aggregates needs to be more flexible

The actual regex checks a result in python format and
because of the change in the bug 1132961, Jekins failed.

I have update the regex to work with the old result
and the new result.

Change-Id: I393e1358f99be5f20d9ac8b3e214355a453ecfcb
Closes-Bug: 1239726
Default to Cinder REST API v2

Set OS_VOLUME_API_VERSION environment variable to 2 so we use
specifically Cinder REST API v2. v1 is still enabled in the catalog, but
we want more exposure to v2 for testing.

Change-Id: I6c2f29edf44a0f58a7830fe4dd2db35f2db3658c
Just reset the repo instead of trying to co files

We can just reset the repo instead of trying to checkout specific files.
This fix external repos which doesn't not have requirements.txt or
test-requirements.txt.

Closes-Bug: 1231334
Change-Id: Iab898f5e8a422cc0cbfe44839c938f22c7525fd8
Do not install pip when OFFLINE=True

install_pip.sh trys to fetch pip from the internet even if
OFFLINE=True. It causes stack.sh to fail if the environment
is actually disconnected from the internet. With this patch,
stack.sh skips install_pip.sh if OFFLINE=True.

Change-Id: Ica9e5cfa0a4ee684c05393896c2fd6ddbd9ccd06
Closes-Bug: 1240956
Use nova.conf for auth_token configs.

Updates lib/nova so that we use the application config file (nova.conf)
instead of the Nova api-paste.ini config file.

Related-Bug #1240753

Change-Id: I393a67f1f005e775928130c9241aa7e25c391ae3
Use cinder.conf for auth_token configs.

Updates lib/cinder so that we use the application config file (cinder.conf)
instead of the Cinder api-paste.ini config file.

Related-Bug #1240753

Change-Id: I6636d33ee522757145ac97fc354324a8b9379700
Don't kill sar prematurally in devstack-gate

This change ensure that 'sar' is not killed by stack.sh when USE_SCREEN=False

Fixes bug #1238482

Change-Id: Id354619a43c27eabbc57f61ba33be2a9493244aa
Don't kill nova-bm-deploy-helper prematurally

This change ensure that 'nova-baremetal-deploy-helper' process is
not killed by stack.sh when USE_SCREEN=False

Change-Id: I84f6f3c3d09bf0cd0d4c5d94eb486a1f7d0b1d0f
Decrease tempest BUILD_TIMEOUT

The BUILD_TIMEOUT is the generally used timeout option in tempest.

Almost never expected to any operation takes more than 60 sec,
the 400 sec is too match for timeout.
Changing the BUILD_TIMEOUT to 196 sec, it is still expected to be safe.

It can make faster the failing test jobs.

Change-Id: I7e7c767400ca448cb86d27b60a1229a2afa69726
Merge "Use cinder.conf for auth_token configs."
Merge "Use nova.conf for auth_token configs."
./stack.sh complain no /etc/nova/nova.conf

If nova.conf doesn't exist, mute error generated by grep.

Closes-Bug: #1239044

Change-Id: Ia497e2a9d8395cc11850fb16fd4075af9855b2a5