2801 Commits

Author SHA1 Message Date
Jenkins
79e11ed7ca Merge "cleanup potentially installed older oslo.config" 2013-08-10 01:14:08 +00:00
Jenkins
2dd5cc500d Merge "Remove unused keystone params from neutron agents' config files" 2013-08-09 18:27:11 +00:00
Sean Dague
db5fadb5cb cleanup potentially installed older oslo.config
If the user had oslo.config installed prior to us setting up the
oslo.config out of git they can get themselves into this very funny
situation where pip doesn't see oslo.config 1.1.x, however some
packages might. This manifests itself as a user error trying to
start nova-api which uses DeprecatedOption, not in oslo.config 1.1.x

Because of the funny state pip is in, you can't uninstall oslo.config.

So in these situations, if we see old oslo.config in the filesystem,
pip install / uninstall it to ensure that everyone ends up using the
git version instead.

To reduce the amount of user confusion, do this on every
install_oslo for a while, which we can purge after Havana ships.

Change-Id: If92073be5a431840701c952a194e63a7c452c9ca
2013-08-09 14:05:36 -04:00
Jenkins
334c3a71bd Merge "misleading source filename in error message" 2013-08-09 01:30:50 +00:00
Jenkins
b690a8f00e Merge "Add tools/install_pip.sh" 2013-08-08 21:23:27 +00:00
Jenkins
dedc4617a7 Merge "Add call trace in error message" 2013-08-08 15:45:49 +00:00
Dean Troyer
62d1d698a0 Add tools/install_pip.sh
Install a known working recent version of pip that handles installation
dependencies more correctly than before.  Extract to a separate script
so it can be used apart from stack.sh.

* Install distro setuptools if it not already present
* Install pip from source tarball as get-pip.py proved to be unreliable
* Remove python-distribute and python-pip from all prereq files,
  move python-setuptools to 'general'
* Remove the earlier unfubar_setuptppls() call that attenpted to fix this
* Only update requirements.txt when no changes in repo

Tested on Precise, F18 and CentOS6.
* Fedora and RHEL allow pip to install packages ON TOP OF RPM-installed
  packages.  THIS IS BROKEN.  And is one reason we have to be so picky
  about order and so forth.

Change-Id: Ibb4b42119dc2e51577c77bbbbffb110863e5324d
2013-08-07 20:28:56 -05:00
Jenkins
d11ce17aa1 Merge "Correctly setup ML2 mechanism_drivers" 2013-08-07 17:22:30 +00:00
Jenkins
e7f72c4375 Merge "Update baremetal to work with the latest DIB" 2013-08-07 17:08:50 +00:00
Jenkins
ed3d034298 Merge "Add keystoneclient support for cinder." 2013-08-07 17:06:32 +00:00
Jenkins
73930276bb Merge "Show ip address before associating address" 2013-08-07 11:35:55 +00:00
Jenkins
48ceda667d Merge "Don't uninstall packages when on xenserver" 2013-08-06 20:11:27 +00:00
Jenkins
206a2ac312 Merge "Some bash versions don't support negative lengths" 2013-08-06 19:36:00 +00:00
Jenkins
aa9274fe08 Merge "Run Neutron migrations after creating schema" 2013-08-06 17:14:10 +00:00
Jenkins
daa40dbcbb Merge "Update tempest test sample in devstack/README.md" 2013-08-06 17:00:30 +00:00
Jenkins
1b11fa58f5 Merge "Re-enble pip -e in setup_develop" 2013-08-06 15:56:28 +00:00
Monty Taylor
985debe5ce Don't uninstall packages when on xenserver
It turns out our fix for package madness breaks when running on
xenserver. Put in a simple exclusion for that case until we figure out a
more total and systemic solution to everyone's problems.

Change-Id: I491917015337f83206937c53949a62aa63f4679f
2013-08-06 11:45:07 -03:00
Jenkins
48e4a2b9f2 Merge "Ensures cross compatibility for zsh and bash." 2013-08-06 13:59:39 +00:00
Jenkins
2ac6870830 Merge "Don't add bulk middleware." 2013-08-06 13:59:31 +00:00
Monty Taylor
b5bbaac09a Re-enble pip -e in setup_develop
We had a bad merge somewhere along the way which reverted the pip -e
part of things. Replace it.

Change-Id: I620bea80eac7ad53b5bfb79dd2b21c29ad1b2267
2013-08-06 10:35:02 -03:00
Attila Fazekas
1a794a3d9e Show ip address before associating address
In order to see is the instance has a fixed ip at the moment.

Change-Id: I506f2f099a03e8b63f1f2daeb564ed72f1322a68
2013-08-06 15:34:04 +02:00
Bob Ball
46287d8d71 Some bash versions don't support negative lengths
Fix to make the service string work on these versions of bash too

Change-Id: Ibb9868ea7bf44480be76a8ea9d7d9fbc278a8ef3
2013-08-06 14:32:53 +01:00
Salvatore Orlando
dd64988ff4 Run Neutron migrations after creating schema
Partial-Bug 1207402

This patch executes Neutron DB migrations (based on alembic)
before starting the Neutron services, similar to what happens
for most of other openstack projects managed by devstack.
This will ensure devstack always creates correctly version-stamped
Neutron databases.

Change-Id: Ia941c426a1563bcc4cb5eae64ea30c0bf7677220
2013-08-06 02:42:08 -07:00
stack
cf2d0d3db9 Add keystoneclient support for cinder.
Add an ability to ask keystone about users and groups
through keystoneclient in cinder.

blueprint volume-acl

Change-Id: Ice261e9709833d057722b4f13c404df54e10b204
2013-08-05 17:50:45 -04:00
Sean Dague
6c84463071 Update projects to global requirements before setup
We've agreed that we should be using global requirements, so
force projects to be updated to global requirements before we
test them.

Co-Authored-With: Monty Taylor <mordred@inaugust.com>

Change-Id: I0652f639673e600fd7508a9869ec85f8d5ce4518
2013-08-05 16:22:32 -04:00
Jenkins
f3d5045ebd Merge "Add support for running multiple n-cpus for performance testing" 2013-08-05 19:55:16 +00:00
James Kyle
3f1d0e2688 Ensures cross compatibility for zsh and bash.
Fixes bug #1207853

Change-Id: I8ab3959ac8dbb5bb199e325bfdfdc513b4327410
2013-08-05 09:31:04 -07:00
Kyle Mestery
3ea28ece4a Correctly setup ML2 mechanism_drivers
The ML2 code in devstack was not correctly configuring the mechanism_drivers
when asked to do so. This corrects the typo in the variable assignment, and
also actually sets these in the plugin configuration file.

Fixes bug 1208557

Change-Id: I3746ca099f45d44dcf1cc2ca1c3726745b8e8a1d
2013-08-05 12:25:26 +00:00
Jenkins
e024bee3ed Merge "Update to PLUMgrid plugin configuration" 2013-08-04 16:13:32 +00:00
Monty Taylor
60aba9cb6a Remove installation of python-netaddr
System and pip installation of this conflit and cause breakages.

Change-Id: I87a03f88a134683310d6ec0bd62d86c5007fcd72
2013-08-02 23:52:38 +00:00
Monty Taylor
408a4a7d1c Install things in setup_develop with pip -e
We have some complex logic in here to try to do the right things with
the requirements before doing the install of the package which still
winds up being wrong in some cases. Since having written this code,
we've learned that the logic we're trying to achieve is actually what
pip install -e does. So just use that. We have to follow up with a chown
of the resulting egg-info directory, because the sudo command will cause
it to be written by root, which prevents subsequent commands from
operating without privilege in the directory.
Change-Id: Iffd068c94ef84475ebb30758bcf612075d225bea
2013-08-02 18:40:02 -04:00
Arata Notsu
d3a18ae1ec Update baremetal to work with the latest DIB
Adjust DevStack to the current DIB's naming to kernel/ramdisk.

BM_HOST_CURRENT_KERNEL is removed since the kernel is extracted from
a diskimage with the ramdisk and the host's kernel is not used.

BM_BUILD_DEPLOY_RAMDISK is added to control whether use DIB or not.

If you set BM_BUILD_DEPLOY_RAMDISK=False, you must BM_DEPLOY_KERNEL
and BM_DEPLOY_RAMDISK to point existing deploy kernel/ramdisk.

Fixes bug 1207719

Change-Id: I62af0b1942b07ac12665c0ed3619d64c1cccbe1f
2013-08-02 21:36:11 +09:00
Jenkins
74af8ed00f Merge "enable apache2 server as front end for swift" 2013-08-02 12:24:11 +00:00
Kui Shi
17df0775ed misleading source filename in error message
when ./stack.sh encounters error, the output may look like this:
[ERROR] ./stack.sh:698 nova-api did not start

The source filename is wrong. Actually, it should be like this:
[ERROR] /<path_of_devstack>/lib/nova:698 nova-api did not start

stack.sh uses bash as interpreter, which define "Shell Variables"
BASH_SOURCE:
    An array variable whose members are the source filenames where
    the corresponding shell function names  in  the  FUNCNAME  array
    variable  are  defined.   The  shell  function
    ${FUNCNAME[$i]}  is  defined  in  the  file ${BASH_SOURCE[$i]}
    and called from ${BASH_SOURCE[$i+1]}.

The function "err" is called by function "die" ( and "err_if_not_set",
and "err_if_not_set" is not used at all). ${BASH_SOURCE[2]} will
ignore the deepest two call entries, which corresponding to the shell
functions: "err" and "die".

In one sentence, this change will print the source filename where the
function is defined and exits via function "die".

Fixes bug #1207658

Change-Id: I2aa6642c5cf4cfe781afe278b3dec3e7cba277fa
2013-08-02 17:55:41 +08:00
Kui Shi
5e28a3e2d2 Add call trace in error message
Call trace can help user to locate problem quickly.

stack.sh uses bash as interpreter, which defines a series of
"Shell Variables":
BASH_SOURCE:
An array variable whose members are the source filenames

BASH_LINENO:
An array variable whose members are the line numbers in source
files where each corresponding member of FUNCNAME  was  invoked.

FUNCNAME:
An array variable containing the names of all shell functions
currently in the execution call stack.

run "man bash" and search the variable name to get detailed info.

In function backtrace, it gets the call deepth from
${#BASH_SOURCE[@]}, then print the call stack from top to down.

In function die, backtrace is called with parameter "2" to ignore
the call trace of function "die" and "backtrace".

I add a broken function in lib/database, and call it in stack.sh,
the output looks like this:

[Call Trace]
./stack.sh:104:broken
/home/kui/osd/devstack/lib/database:24:die
[ERROR] ./stack.sh:24 It is broken

Fixes bug # 1207660

Change-Id: I04d0b3ccf783c769e41582c20f48694c19917334
2013-08-02 17:47:03 +08:00
Jenkins
9cdc0a17ce Merge "Fix get_pip_command()" 2013-08-02 03:45:27 +00:00
Joe Gordon
2c94ee5237 Add support for running multiple n-cpus for performance testing
When using the fake VIRT_DRIVER, we can launch an arbitrary number of
instances, the next step for performance testing is running an arbitrary
number of n-cpus. This can be done with the following settings in your localrc

 VIRT_DRIVER=fake
 NUMBER_FAKE_NOVA_COMPUTE=50

This can be used for things like measuring load from n-cpu's periodic tasks.

Change-Id: I40e0f05374e2c10c48ea6b8816ef6e7609b3dc80
2013-08-02 02:02:01 +00:00
Jenkins
da535eec10 Merge "Add support for vmdk files as glance images" 2013-08-01 22:51:35 +00:00
Chmouel Boudjnah
1fba1aa6bc Don't add bulk middleware.
- The bulk middleware is already in the sample.
- Fixes bug 1207108

Change-Id: I569ecb734ac2e59716e5f24fa96e97d216cdc1a3
2013-08-02 00:40:05 +02:00
Kui Shi
f9b4738d59 Update tempest test sample in devstack/README.md
As part of bp:tempest-repo-restructure, the scenario directory is added and
scenario tests are moved there. The tempest test sample should be updated
in README.md.

Fixes bug #1207109

Change-Id: I25067e4b42697985e8f4b808fad5eb801c805f9f
2013-08-02 06:24:01 +08:00
Jenkins
ffc7fab1a0 Merge "Add Midonet plugin support to devstack." 2013-08-01 20:20:37 +00:00
Dean Troyer
d2cfcaa576 Fix get_pip_command()
Be more flexible in finding pip, especially after we start replacing it

Change-Id: I14b0ac1584aab99c2fe58a78e3a43196ae8130ca
2013-08-01 14:17:30 -05:00
armando-migliaccio
05901f46f7 Remove unused keystone params from neutron agents' config files
DHCP, L3 and Metadata agents' config files no longer need to
duplicate this info; it's available in neutron.conf

Change-Id: I7bea25d1c2b9249ddacce3f4638f7a8ed4f43197
2013-08-01 10:46:36 -07:00
Jenkins
bc522d87f8 Merge "Launch ceilometer-alarm-* services." 2013-08-01 11:51:45 +00:00
Sreeram Yerrapragada
cbaff86b02 Add support for vmdk files as glance images
* Adds support for vmdk files as glance images in upload_image function
* Set default image url to use for vsphere driver in stackrc
* Now using a more stable url

Change-Id: If6d45bc8dfd3c812ded5e1bcf69ad7ebd9b64f34
2013-07-31 18:55:10 -07:00
Jenkins
851665bb59 Merge "Fix tempest logging configuration" 2013-07-31 23:29:20 +00:00
Matthew Treinish
4ee4a0182e Fix tempest logging configuration
This commit will correctly set the tempest output logging to dump
all of tempest logs into a tempest.log file in
$DEST/tempest/tempest.log. This will also fix the logging for
tempest in the gate so it will no longer print every log message on
the console.

Fixes bug 1207066

Change-Id: I91f2ee781c4a7a18c561ea3e3b26832b97431464
2013-07-31 17:06:19 -04:00
Jenkins
f9a767b175 Merge "add lib/infra" 2013-07-31 20:47:22 +00:00
Sean Dague
0392a10a63 add lib/infra
move the infrastructure projects to a dedicated lib/infra, which
gives us access to this during grenade upgrade tests.

Change-Id: I1e832792b61d41ad290b4b2ab26fe664e710cebd
2013-07-31 15:48:47 -04:00
Monty Taylor
a8ca815b85 Fix a typo error in the openvz image link
It's a -, not a ..

Change-Id: I05a39e20234d89c08cff66b57f6b350ad0fe4a98
2013-07-31 13:12:30 -04:00