86 Commits

Author SHA1 Message Date
Isaku Yamahata
8c43809ef6 package: consolidate get_packages logic
Refactor get_package logic.
With this refactoring, code like
"if is_ubuntu; then install_package xxx elif is_fedora..."
can be simplified later.

Change-Id: I489bfd4cc12cc6b0b8201837f2bfb78c6881c82c
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
2013-02-26 17:39:05 +09:00
Jenkins
3bfc90df4c Merge "Upload XenServer style ovf directly to glance" 2013-02-22 12:30:37 +00:00
Jenkins
d0b1c37816 Merge "Deprecate DATABASE_TYPE and use_database" 2013-02-22 12:26:03 +00:00
Dean Troyer
afc29fe5f2 Deprecate DATABASE_TYPE and use_database
Select a database by adding it to ENABLED_SERVICE like the other
services.  This greatly simplifies using the lib/* functions in
places other than stack.sh

Backward-compatibility is maintained or now (into havana at least).

Change-Id: I967e44603b4d69d5d70e1a75a9938172ca434025
2013-02-21 17:32:04 -06:00
Davanum Srinivas
316ed6cc6e Upload XenServer style ovf directly to glance
Don't decompress images ending with .vhd.tgz, just send them
to glance

Fixes LP# 1117256

Change-Id: I201debc2e34808703c717276d192169b1ed24c05
2013-02-20 23:57:47 +00:00
Jeremy Stanley
25ebbcd1a7 Bring back screen logs for noninteractive runs.
* functions(screen_it): Prior to 58e2134 screen logs were generated
even when run without $SCREEN_DEV. We want to be able to capture
these with devstack-gate for later inspection, so this patch
reintroduces that capability.

Change-Id: Ife127b47d7700878e02285281854595bc6585972
2013-02-17 15:49:55 +00:00
Vishvananda Ishaya
58e2134964 Add option to make screen starting more robust.
We have seen a number of failures in ci where a host is overloaded
and the 1.5 second sleep before stuffing data into screen is not
long enough. This means the service doesn't start and tests fail.

This change adds a config option to allow us to turn off the developer
friendly option to stuff text into the screen. When SCREEN_DEV is
set to False it will use a simple exec in screen instead of stuff.
This should be far more reliable because we don't have to wait
for bash to start.

Change-Id: I7f1b5dbf5329b23507cb767d54a2795be0d73e01
2013-02-12 09:12:45 -08:00
Dean Troyer
48352ee7c0 Create tools/install_prereqs.sh
* Factor system package prereq installs out to tools/install_prereqs.sh
* Set minimum time between runs with PREREQ_RERUN_HOURS
  default = 2 hours
* Create export_proxy_variables
* Force an update with install_prereqs.sh -f or by setting
  FORCE_PREREQ=true

Fixed an issue with exit/return in tools/install_prereqs.sh

Change-Id: I9a62090ad2f900b9b150cacb9cb02b326cb46972
2013-02-08 10:35:43 -06:00
Jakub Ruzicka
4196d5565e Introduce get_python_exec_prefix function.
get_python_exec_prefix returns the path to the direcotry where python
executables are installed, that is /usr/bin on Fedora and /usr/local/bin
everywhere else.

It is used to properly locate OpenStack executables.

Fixes: bug #1068386

Change-Id: I228498ebe2762568d00757d065e37377ee2c8fb3
2013-01-30 16:33:43 +01:00
Jenkins
1b3a97c684 Merge "Refactor rpc backend configuration logic" 2013-01-15 11:43:01 +00:00
Akihiro MOTOKI
b0f1c38bdc Refactor rpc backend configuration logic
This commit also changes the following:
- Fixes Nova QPID module path
- Fixes a bug Cinder ZeroMQ RPC points to nova module
- Adds ZeroMQ setting for Heat RPC

qpid_is_supported is moved from functions to lib/rpc_backend.

This work is based on the work by Isaku Yamahata <yamahata@valinux.co.jp>
in https://review.openstack.org/#/c/19074/.

Change-Id: I45e21b1fb85e539213f5243764132a37906d7455
2013-01-14 16:12:06 +09:00
Attila Fazekas
af988fd1d2 Support RHEL with lsb_release
Consider all distributor as "Red Hat" which id matches to the Red.*Hat regexp.

Example Distributor ID: "RedHatEnterpriseServer"

Change-Id: I29cc2e83cccaafa3e1e056e506fda5c9771764a1
2013-01-13 14:25:26 +01:00
Jenkins
9f67bd692c Merge "Fix iniset and his friends" 2013-01-11 01:18:27 +00:00
Jenkins
4159e6066d Merge "Remove unnecessary returns" 2013-01-08 05:17:22 +00:00
Jenkins
5d8ae5bb6b Merge "Use 'which pip' rather than /usr/bin/pip" 2013-01-04 22:26:01 +00:00
Nikhil Manchanda
35138ed673 Use 'which pip' rather than /usr/bin/pip
Bug 1095472: Bugfix to use 'which pip' rather than assume pip always lives in /usr/bin

Change-Id: I0cc8a5e35306372653c3c27da9504c64e39d56dd
2013-01-04 10:15:55 -08:00
Sean Dague
b73e247ad4 Revert "Create tools/install_prereqs.sh"
This reverts commit 7be0b04

This work breaks the ability to do multi database installs,
revert until there is a working solution here, as this is going
to make fixing postgresql in tempest impossible.

Change-Id: I39a2b78542fe60233806d1005186ce1b31d4be17
2013-01-02 14:00:58 -05:00
Jenkins
3a30b06daf Merge "Create tools/install_prereqs.sh" 2013-01-02 13:25:22 +00:00
Dean Troyer
3a3a2bac67 Set up Nova for TLS
* Start n-api proxy if 'tls-proxy' is enabled
* Configure nova service catalog for TLS

Change-Id: If031eb315f76c5c441a25fe3582b626bbee73c6e
2012-12-20 14:46:57 -06:00
Attila Fazekas
588eb4129d Fix iniset and his friends
* In python the white spaces are part of the section name
* Handle options with empty value
* Support paths with white spaces

Change-Id: I69a584608853cfdb8b7dce1e24d929216ef2fc41
2012-12-20 11:00:42 +01:00
Dean Troyer
7be0b047dc Create tools/install_prereqs.sh
* Factor system package prereq installs out to tools/install_prereqs.sh
* Set minimum time between runs with PREREQ_RERUN_HOURS
  default = 2 hours
* Create re_export_proxy_variables

Change-Id: I4a182b1da685f403d6abdd8540d2114796c01682
2012-12-19 12:30:35 -06:00
Attila Fazekas
251d3b5fbc Remove unnecessary returns
* remove duplicated xtrace
* remove some unnecessary return

Change-Id: If9e0a979e0bd5a334e82d42572ac0b149de341d7
2012-12-17 17:27:28 +01:00
Jenkins
dd0bed5dd0 Merge "Add a service_check function" 2012-12-12 18:20:01 +00:00
jiajun xu
a9414249af Add a service_check function
There is no function to check if the services invoked by devstack are
running well or not. We could use the function to check their status
and print them at the end of devstack running.

Change-Id: I845f6b5dddce5cffa7165ec58517f9ae5d8632a6
2012-12-08 00:04:34 +08:00
Vincent Untz
00011c0847 Add is_fedora and exit_distro_not_supported functions
Between is_fedora, is_ubuntu and is_suse, we can make the code a bit
simpler to read. We also use exit_distro_not_supported to identify
places where we need implementation details for new distros.

As "/sbin/service --skip-redirect" is Fedora-specific, guard this with a
is_fedora test too.

Change-Id: Ic77c0697ed9be0dbb5df8e73da93463e76025f0c
2012-12-07 09:06:07 +01:00
Vincent Untz
c18b965152 Add is_ubuntu function
This replaces all of the [[ "$os_PACKAGE" = "deb" ]] tests, except when
those tests are before straight calls to dpkg.

Change-Id: I8a3ebf1b1bc5a55d736f9258d5ba1d24dabf04ea
2012-12-04 18:30:13 +01:00
Jenkins
22d6799d73 Merge "Add a get_pip_command function" 2012-12-03 17:05:04 +00:00
Vincent Untz
8ec27220c5 Add a get_pip_command function
There are two places where we need to find the right command for pip, so
instead of having one version we fix and a buggy version we forget,
simply use a function :-)

Change-Id: I728c17ad7be5c86690c4d7907f77f1f98ec2b815
2012-12-03 17:00:39 +01:00
Russell Bryant
c2d2f52bbd Fix qpid support on Fedora.
The new qpid_is_supported function returned the opposite value from what
it was supposed to.  It returned success for the platforms where qpid is
not supported.

Change-Id: I0ceaae1dddaa6192657926834c6eb8006925f0cf
2012-12-03 10:05:18 -05:00
Steve Baker
1a7bbd255f is_suse false positives on Fedora
Also, uses of is_suse were also always evaluating to true
on Fedora.

Change-Id: I068f3179edbfb295163a4e4faa4998f2f7b2c124
2012-12-03 17:04:02 +13:00
Dean Troyer
afd472cb30 Don't combine sed options
Combining '-i -e' into '-ie' changes behaviour, don't do that

Change-Id: Ice46c6b4f899b4c76f355cc88241dd33bc60f459
2012-11-28 11:54:47 -06:00
Jenkins
e509d9cde7 Merge "Also pickup quantum distro dependencies (bug 1080886)." 2012-11-28 16:56:43 +00:00
Jenkins
518f1f5c6f Merge "Fix ini functions to handle spaces in section names" 2012-11-28 16:54:17 +00:00
Vincent Untz
856a11e0e4 Add partial openSUSE/SLE support
Note that this is the first part of the support. A second part involves
dealing with the package names.

Among the changes:
 - add several functions to determine some distro-specific behavior (how
   to call usermod, if some features are available on the distro, etc.)
 - correctly detect openSUSE and SLE in GetOSVersion, and set DISTRO
   accordingly
 - new is_suse() function to check if running on a SUSE-based distro
 - use zypper to install packages
 - adapt apache virtual host configuration for openSUSE
 - some simple fixes (path to pip, mysql service name)

Change-Id: Id2f7c9e18a1c4a7b7cea262ea7959d183e4b0cf0
2012-11-28 16:22:12 +01:00
Dean Troyer
e83356217b Fix ini functions to handle spaces in section names
This allows section names to look like:

[ default ]

OpenSSL is the primary offender for this usage.

Change-Id: If5c711107e73cebab9d4a26ca02a7ce572224377
2012-11-27 17:00:16 -06:00
Robert Collins
0a9954f2c2 Also pickup quantum distro dependencies (bug 1080886).
Change-Id: Ic0fc0b03dc01782d0d85d98de765f04fcbcacd74
2012-11-27 10:49:11 +13:00
Dean Troyer
c1b486a520 Simplify database selection
Do not require every script that sources stackrc to also
source lib/databases.

* Move use_databases() to functions
* Set DATABASE_TYPE in stackrc
* Allow setting DATABASE_TYPE in localrc to work
  (use_database() essentially just sets DATABASE_TYPE at this stage
  so continuing to use it is equivalent)
* Validate DATABASE_TYPE in stack.sh.
* Change sudo to postgresql user to go through root to eliminate
  password prompt
* fix use_database error condition

Change-Id: Ibb080c76e6cd7c6eebbb641a894d54b1dde78ca6
2012-11-15 11:48:18 -05:00
Jenkins
7a51891cb4 Merge "Remove support for nova-volume" 2012-11-14 21:58:47 +00:00
Joe Gordon
6fd2811726 Remove support for nova-volume
* nova-volume has been removed in Grizzly
* part of delete-nova-volume

Change-Id: Iba91d69950767823d77aaaa93243b0f476dbb04d
2012-11-14 13:21:58 -08:00
Jenkins
b459d0e3ba Merge "Make exercise.sh with quantum work" 2012-11-14 16:30:55 +00:00
Nachi Ueno
5db5bfa28f Make exercise.sh with quantum work
- added support for quantum-debug command
- added ping and ssh method for quantum

Change-Id: Iebf8a0e9e2ed2bb56bee6533e69827e6caa2bc82
2012-11-13 10:40:59 -08:00
Jenkins
3189611d2e Merge "Added options to improve offline usage." 2012-11-08 03:35:57 +00:00
Dean Troyer
6931c137b9 Fix spacing issue in ssh_check()
Change-Id: Ia5bd7b678b86f2e3e3b1fa04e628096feb1ace81
2012-11-07 16:51:21 -06:00
Maru Newby
3a87eddc7f Added options to improve offline usage.
* NOVA_ZIPBALL_URL can be set for a XS/XCP install to point to a
   non-standard zipball location.
 * PIP_USE_MIRRORS (default True) can be set to False to stop pip
   from attempting to use mirrors (useful for when using an offline
   eggproxy).

Change-Id: I01a9944fe4c13c8cc8323a703f598bc498491b73
2012-11-07 19:49:12 +00:00
Jenkins
308beccc24 Merge "Add PostgreSQL support to devstack" 2012-11-04 12:34:31 +00:00
Terry Wilson
428af5a257 Add PostgreSQL support to devstack
This patch adds an interface for supporting multiple database backend
types and implemnts support for PostgreSQL. It also adds a function,
use_exclusive_service, which serves as a base for enabling a service
that conflicts with other services. The use_database function uses it,
and it might also be useful for selecting messaging backends.

MySQL is still selected by default. Tested on Fedora 17 and Ubuntu
12.04 with MySQL and PostgreSQL. Implements blueprint postgresql-support

Change-Id: I4b1373e25676fd9a9809fe70cb4a6450a2479174
2012-11-03 18:19:21 -04:00
Dean Troyer
e88c0a2036 Fix errors when commands return error text rather than data
I'm looking at you euca2ools

Change-Id: I82bfb8a3ee58fdc54ead6a285c9415593e741892
2012-11-02 17:05:35 -05:00
Nachi Ueno
fda946e3eb Added ping_check and ssh_check functions and use it in exercise.sh
Change-Id: I69d41c9db527f60f250b6af36b2d8e9d0dd39684
2012-10-25 21:52:31 -07:00
Vincent Untz
855c5875c7 Directly use GetDistro instead of failing if $DISTRO is not set
Change-Id: I81d73a767e1c7f5e83eb535b2e1645e6ab29f347
2012-10-04 13:55:54 +02:00
Dean Troyer
1a3c9fe41b Fix setup_develop
Change-Id: I64324436eebebfb05ad724335eece10cba107d91
2012-09-29 17:25:02 -05:00