5798 Commits

Author SHA1 Message Date
Sergey Reshetnyak
435cd4dc6e Add support running sahara in distributed mode
Sahara supports running in distributed mode. Need to add this ability in
devstack.

Changes:
* configure rpc backend for sahara by default
* added sahara-api service for running api side
* added sahara-eng service for running engine side

Change-Id: I4fb9d5746b08c9b1fee0d283bcf448e47a87089b
2015-03-23 14:15:20 +03:00
Jenkins
404d3afa5c Merge "Fix typo in devstack/stack.sh" 2015-03-23 02:07:54 +00:00
Jenkins
743d03bf7d Merge "iniset_rpc_backend default section" 2015-03-22 02:41:03 +00:00
Jenkins
d5532b5255 Merge "Set compute-feature-enabled.preserve_ports=True in tempest.conf" 2015-03-21 19:21:58 +00:00
Mitsuhiro SHIGEMATSU
10ba751a78 Fix typo in devstack/stack.sh
Change-Id: Ie13f1ae7fb5a46bb654aa3ab526933107c485b0b
2015-03-21 06:59:51 +09:00
Jenkins
2dc61b2a63 Merge "Move contributing into HACKING" 2015-03-20 15:38:45 +00:00
Jenkins
2949f4bffe Merge "Remove packaged rpm python libraries" 2015-03-20 15:27:29 +00:00
Jenkins
05163d66ac Merge "Use install(1) where possible" 2015-03-20 14:30:06 +00:00
Jenkins
597fd75f41 Merge "Add defaults for yum proxy variables" 2015-03-20 14:29:54 +00:00
Jenkins
889d76b4cf Merge "Stop using deprecated oslo_concurrency and sql_connection config options" 2015-03-20 14:29:44 +00:00
Jenkins
e64bd629b4 Merge "Swift use v3 auth_token credentials" 2015-03-20 14:29:36 +00:00
Jenkins
8e71fabb57 Merge "Keystone stop using config refs" 2015-03-20 14:29:25 +00:00
Jenkins
a4904128ff Merge "Change datastore version for Mysql datastore" 2015-03-20 14:28:29 +00:00
Ian Wienand
6f6e2fd2cc Move contributing into HACKING
contributing.rst doesn't add very much over the extant HACKING.rst, so
move some of the unique bits into HACKING.rst and then link that into
the documentation.

Change-Id: I0530f38eda92f8dd374c0ec224556ace6e679f54
2015-03-20 12:17:27 +11:00
Ryan Hsu
6f3f310848 Fix packages not getting installed if service name in base path
Currently, if devstack base path includes the name of a given
service (e.g. nova), then the service's prereq packages will
not be installed. This fix changes the checking the match
against the full path of the package list file rather than the
name of a given service.

Closes-Bug: #1434314
Change-Id: Ie81352ebd5691afc6d0019f71d5b62370e8bb95f
2015-03-19 16:32:24 -07:00
Jenkins
d4c95233d6 Merge "create install_default_policy" 2015-03-19 18:22:51 +00:00
Jenkins
948970928c Merge "Set heat stack role in tempest config to _member_" 2015-03-19 15:27:54 +00:00
yuntongjin
f26deea6b1 create install_default_policy
Recent versions of oslo policy allow the use of a policy.d to break up
policy in a more user understandable way. Nova is going to use this in
Kilo to break out v2 and v2.1 API policy definitions.

This provides a unified helper for installing sample policies. It
makes some assumptions on project directory structure. Porting other
projects to use this can happen in the future.

Change-Id: Iec23b095176332414faf76a9c329f8bb5f3aa6c3
2015-03-19 09:10:37 -04:00
Matthew Treinish
886cbb2a86 Set heat stack role in tempest config to _member_
In kilo heat started to use keystone delegations to perform the needed
operations, as part of this the need to set the explicit role in
devstack for stack management disappeared. However, in tempest as part
of the effort to make credentials configuration more explicit an option
was added to ensure that the users created by tempest have the proper
role set for stack management in the heat tests. This commit sets the
value of this config option in tempest to be the default role _member_
to reflect that there is no separate heat_stack_owner role created
anymore. (which is the tempest default value)

Change-Id: Id98a83f0a716de0fdb5f36d03407364830e8fa5f
2015-03-18 22:03:01 -04:00
Jenkins
d9a7ae8056 Merge "Allow devstack plugins to specify prereq packages" 2015-03-19 00:35:34 +00:00
Jenkins
aea87e2dc2 Merge "Create global_filter to avoid scan of missing devs" 2015-03-18 23:43:27 +00:00
Jenkins
852bacc7df Merge "Add Ironic cleaning network" 2015-03-18 19:14:30 +00:00
Jenkins
ecd26036e5 Merge "Make ironic ssh check timeout configurable" 2015-03-18 17:54:04 +00:00
Jenkins
392f23f68d Merge "Set INSTALL_TEMPEST to default true" 2015-03-18 17:52:20 +00:00
Jenkins
28c5a9ba06 Merge "Fix pip install error" 2015-03-18 17:48:33 +00:00
Jenkins
6ec715ea67 Merge "[SAHARA] Remove copying sahara.conf from base config file" 2015-03-18 17:48:22 +00:00
Jenkins
e634a96997 Merge "Support detection of interfaces with non-word chars in the name" 2015-03-18 17:44:58 +00:00
John Griffith
4bf861c76c Create global_filter to avoid scan of missing devs
A while back I added an lvm.conf file with a device filter setting
to try and clean up the LVM hangs in the gate:
  (commit 0b9e76f280208b5b5ad54bb6fbc4133e63037286)

It turns out this wasn't the real problem, the real problem
is that on an LVS/VGS command LVM  will attempt to open and read
all potential block devices in /dev to see if they have LVM data
on them.  I initially thought the local filter would keep that
from happening, as it turns out the local filter only limits what's
returned AFTER the actual scan process.  In order to keep the scan
from happening at all, either a global_filter needs to be used or
lvmetad needs to be running and enabled.

There are situations in gate tests where /dev/sdX devices are created and
deleted and the result is that we hit situations where LVM tries
to open up devices to check them even if they've been removed.  The
result is we have a blocking open call from LVM that takes approx
60 seconds to time out and fail.

Ubuntu won't have a version of lvmetad until Vivid, so for now
that just leaves the global_filter as an option.

This patch adds the filter routine to the end of stack.sh.  We don't
want to put the routine in lib/cinder_backend/lvm like we had it because
now we have to set the global filter for all LVM commands on the system.
So we put this as one of the last steps in stack.sh and run it if Cinder
is enabled.  This way we can query PV's on the system regardless of what
other services may be running and using LVM and make sure that all of
their devices are added to the filter as well.

Also, make sure we only set this for Ubuntu as Fedora/RHEL variants
utilize lvmetad.

This patch also removes the old change that set the local filter.

DocImpact
Should add this to recommended config for Cinder on systems
that don't have lvmetad, and recommend lvmetad for those that do.

Change-Id: I5d5c48e188cbb9b4208096736807f082bce524e8
Closes-Bug: #1373513
2015-03-18 10:29:29 -06:00
Jenkins
7b2ee1c6d8 Merge "Adds documentation for devstack unit tests enablement" 2015-03-18 07:46:46 +00:00
Dean Troyer
8421c2b9ab Use install(1) where possible
This eliminated a number of sudo calls by doing the copy/chown/chmod in
a single step and sets a common pattern.

Change-Id: I9c8f48854d5bc443cc187df0948c28b82c4d2838
2015-03-18 13:30:59 +11:00
Josh Gachnang
ee78c9e2f6 Add Ironic cleaning network
The cleaning network is where ramdisks will be booted during
the cleaning process. We want to ensure nodes are being properly
cleaned on tear down.

Change-Id: Ic38de10668c97648d073fdf9a3afc59712057849
Implements: bp/implement-cleaning-states
2015-03-17 19:15:10 -07:00
Ian Wienand
fdf00f27db Add defaults for yum proxy variables
Without these defaults, sourcing functions-common with -u turned on
(as say ./tools/build_wheels.sh does) will bail out with unset
variable errors.  Also fix up quoting, and add no_proxy for zypper run

Change-Id: Ideb441634243c1c5ce7db3a375c2d98617e9d1dc
2015-03-18 09:26:15 +11:00
Steve Baker
744c2afd6f Allow heat-standalone to work with keystone v3
Heat can now run in standalone mode with the default v3 keystone
backend.

This change removes the installation of the v2 contrib backend.
It also configures saner defaults when HEAT_STANDALONE is True.
Using trusts and a stack-domain will never work in standalone mode
since they both require a service user which doesn't exist in
standalone mode.

Finally, this change prevents heat.conf being populated with service user options
not required by standalone mode.

Configuring the v2 backend may be reintroduced later with a dedicated
flag variable.

Change-Id: I88403e359e5e59e776b25ba1b65fae6fa8a3548e
2015-03-18 11:12:37 +13:00
Jenkins
5e159edab3 Merge "switch to use ceilometermiddleware" 2015-03-17 19:29:45 +00:00
Jenkins
436a5c9cba Merge "Fix Traceback exceptions in g-api and g-reg" 2015-03-17 18:34:16 +00:00
Jenkins
e41690d868 Merge "Keystone RPC backend config consistency" 2015-03-17 18:27:06 +00:00
Jenkins
706996da7d Merge "Adding tempest_roles when auth_version is v3" 2015-03-17 16:57:04 +00:00
Jenkins
411c2a7d06 Merge "Add rootwrap daemon mode support for Neutron" 2015-03-17 16:51:57 +00:00
Thanassis Parathyras
a03ed37626 Adds documentation for devstack unit tests enablement
Closes Bug: 1283214
Closes Bug: 1203723

Change-Id: Iac25185c7cc92ddebd3a22b602f7c8885d009807
2015-03-17 16:27:29 +02:00
Sean Dague
d66bac3f70 remove horizon exercises
The horizon team keeps changing how the UI is exposed. This exercise
keeps lagging and doesn't really test anything useful any more. Just
delete it.

Change-Id: Id62904868f1d4b39e33d2ad63340b5ee2177fb56
2015-03-17 09:16:00 -04:00
Vitaly Gridnev
302389bf8d [SAHARA] Remove copying sahara.conf from base config file
Sahara is going to remove sahara.conf.sample because it
is not gated anymore and therefore it gets out of date.
So, we need to remove copying sahara.conf from base config file
sahara.conf.sample

Change-Id: I0ddf36cfc15694dfe41fe695d577199da75ce7f1
2015-03-17 11:54:12 +00:00
Eli Qiao
6a83c423fc Fix pip install error
If we set mutiple proxy (ip or url), pip install will
treat the second proxy as a command.
Add quotation marks around proxy.
expecially for no_proxy

Change-Id: I38ad3f083ba5155cda0e5e2b8f5df64492b7fecd
2015-03-17 17:03:29 +08:00
Yuriy Taraday
2662395fac Add rootwrap daemon mode support for Neutron
Daemon mode is turned on by default.

Implements: blueprint rootwrap-daemon-mode
Change-Id: I632df4149e9d7f78cb5a7091dfe4ea8f8ca3ddfa
2015-03-17 04:12:13 +03:00
Brant Knudson
ad13c0a8da Keystone stop using config refs
- Rather than using config refs, deployments should be using a tool
   such as chef or puppet to set the options correctly.

 - Config refs have a bug where you can only reference an option in
   the DEFAULT group, which limits the usefulness, and with this
   feature it's impossible to move any config options out of the
   DEFAULT group, luckily this has been ignored anyways since I think
   everyone realizes how broken it is.

Change-Id: I74cae09f9d75177f8efea69e7ae981ed8f14039f
2015-03-16 20:25:14 +00:00
Morgan Jones
45e7db0e7a Change datastore version for Mysql datastore
The Replication V2 change to Trove moves the test
datastore from Mysql 5.5 to Mysql 5.6.  This change
reflects that in devstack.

Change-Id: Ibdf32b46c200d3061975d390c872be77d19bc361
Implements: blueprint bp/replication-v2
Closes-bug: #1432686
Depends-On: I8eec708f41e791e3db04a2c7b7c12855118b64ac
2015-03-16 12:25:23 -04:00
Andreas Scheuring
a3430270f3 Support detection of interfaces with non-word chars in the name
The current regex only matches host interface names that consits
of "word characters" (regex \w). Intefaces having other special
chars like "-" or "." are not parsed. Examples that are not yet
matched are br-ex (ovs bridge) or enccw0.0.1234 (s390 eth device
name).

In addition it's hard to understand the the regex.

This fix is replacing the regex by a simple awk statement also
matching those names.

In addition the determination of the host_ip_iface was moved
down into the if clause, as it is only used inside.

Change-Id: I3d1b1afa32956e4e8c55c7e68cbafaf8e03e7da2
Closes-Bug: #1429903
2015-03-16 17:00:03 +01:00
Matthew Treinish
cb3ceceda2 Set INSTALL_TEMPEST to default true
This commit switches the default value for INSTALL_TEMPEST on master
devstack to be true. Not installing tempest by default on devstack is
confusing for devs and people working with tempest in devstack. The
venv isolation is only really required on stable branches because of
conflicting requirements, however it is not really necessary on master.

Change-Id: I368cb56fd9e0cbf59cefe24a46507d3f58b9a8e3
2015-03-16 10:37:51 -04:00
Jordan Pittier
1331a828da Add \n at the end of samples/local.conf
Currently if you `cat` the file, the bash prompt will be at a weird
position. And if you programmaticaly add a new line to this file,
the line will be, in fact, appended to the previous line.

Change-Id: I19ba018d9a934f8fdc07cc9bec50a0105f2710f9
2015-03-16 10:27:47 +01:00
Jenkins
5c619b43db Merge "Install rsync-daemon on f22" 2015-03-16 05:08:37 +00:00
Zhenzan Zhou
80cdbc4231 Make ironic ssh check timeout configurable
On some environments, the current 10s timeout waiting for server
ssh-able is not enough. SSH session was killed before the command
executed by server and then break the whole stack.sh.

Change-Id: I4d842744793455d44a633dee8920a60552e8075e
2015-03-16 12:35:45 +08:00