5646 Commits

Author SHA1 Message Date
Jenkins
481d50d80c Merge "Switch on curl retry options for fetching get-pip.py" 2015-01-29 06:51:52 +00:00
Jenkins
36b13f58cf Merge "Deprecate SCREEN_LOGDIR in favor of LOGDIR" 2015-01-29 05:57:19 +00:00
Jenkins
d31b05cc7c Merge "Make elements for heat test image configurable" 2015-01-29 05:56:39 +00:00
Jenkins
61cb01a8a2 Merge "Check dib is available before building heat test image" 2015-01-29 05:56:30 +00:00
Jenkins
51ceb0da0a Merge "Remove rhel6 and py26 support" 2015-01-29 05:54:15 +00:00
Jenkins
48d24e6784 Merge "Do not install wsgiref for glance" 2015-01-29 04:49:48 +00:00
Jenkins
ea8fb0c246 Merge "Use LVMVolumeDriver instead of LVMISCSIDriver" 2015-01-29 04:44:04 +00:00
Jamie Lennox
18f39bfb1f Remove the default project from all users
The default project means that a user gains token scoping information
for a project if they don't specify another. This is something we want
to discourage for user creation. User's should specify there own
authentication scope when they authenticate.

Change-Id: I42c3060d59edfcd44d04cd166bad500419dd99bc
2015-01-28 13:38:32 +10:00
Jenkins
c2999d190a Merge "Auto add a cinder lvm.conf file" 2015-01-27 21:52:47 +00:00
Maru Newby
c070a3dbb5 Init default lvm volume group only if required
A recent patch [1] added support for lvm ephemeral storage for nova,
but at the cost of initializing a default lvm volume group even if it
was not required.  This change ensures that init of the default volume
group is only performed when nova and/or cinder are configured to use
lvm.

1: https://review.openstack.org/#/c/132333

Change-Id: I7634ca0ed0ffe1b13464e4d66744918f85149f2e
Closes-Bug: #1414820
2015-01-27 19:09:02 +00:00
Kyle Mestery
c906bb3885 Make neutron the default in devstack
This changes the default devstack configuration to use Neutron instead of
nova-network.

Change-Id: Ia161695a8414cad751c3e66b985a78384a76890d
2015-01-27 10:32:10 +00:00
Eric Harney
a27b74cdf7 Ceph: wait for services to shutdown during cleanup
It can take ceph-osd and ceph-mon a few seconds to complete when
they are killed.  This races against the umount command in cleaup
and can often result in $CEPH_DATA_DIR failing to unmount since
it is still in use.

Wait for these processes to stop to ensure the mount point is
umounted successfully.

Change-Id: I1a635e75a68be6b14fbee52ff981b5f5a3a8eb0e
2015-01-27 09:59:59 +01:00
Attila Fazekas
1f316beb20 Remove rhel6 and py26 support
el6 is shipped with Python 2.6.x which is not expected
to be supported with the openstack kilo release.

For el6 support we need to do lot of thing differently,
which makes the code more complicated.

This change removes el6 and py26 support from devstack.

This change also removed a discontinued (1 year ago)
openSUSE 12.2 code path, which used a similar codepath as el6.

Several comment related to el6 also removed or modified.

Change-Id: Iea0b0c98a5e11fd85bb5e93c099f740fe05d2f3a
2015-01-27 09:22:52 +01:00
Steve Baker
8874115668 Define extra_elements inside disk_image_create_upload
This avoids the need to define a global variable,
and tolerates extra_elements not being set when bash
flag -u is set.

Change-Id: I343951a678bed9ca3cda347a9c902e60c7b70e2d
2015-01-27 09:32:23 +13:00
Attila Fazekas
55383f1a9b Do not install wsgiref for glance
wsgiref is not used by glance.

Change-Id: I5085e6418ca3cea2549b1b5d8a5877445b10c4a7
Related-Bug: #1255826
2015-01-26 18:06:33 +01:00
Jenkins
4764cffd5a Merge "Create initial network when using Cisco N1k plugin" 2015-01-26 16:41:29 +00:00
Bob Ball
f35e95706c XenAPI: Replace remaining instances of 'devstack.succeeded'
Commit I05990c7154366350b0f9cc3e6c70d6f34238486f was incomplete
and left two references to the, now replaced, devstack.succeeded.

The impact of this is that the XVA always claims that devstack failed
to run when actually the run may have been successful

Change-Id: Ie4ac673011d77a9edc8923db94d914efe9f45d5d
2015-01-26 14:13:02 +00:00
Jenkins
1631af891a Merge "Configure auth_token middleware by auth plugin" 2015-01-26 14:06:15 +00:00
Davanum Srinivas
905275ec9f Bump up the count of workers for heat
Looks like the workers is set to 0 which in heat is used
mainly for profiling/debugging and not really useful in
the devstack scenarios.
https://github.com/openstack/heat/blob/master/heat/common/wsgi.py#L286

Partial-Bug: #1412923
Change-Id: Iccf6aeffd461fdc1f78022cbda370be4b9573267
2015-01-24 19:21:37 -05:00
Steven Hardy
3163c17170 Make elements for heat test image configurable
Allow the elements built into the heat functional test image to
be overridden via the localrc, allows easier testing of local
images with different/additional elements.

Change-Id: Ibaf2322e0572d25461579bbb2dc8a18858f4e09c
2015-01-23 13:26:29 +00:00
Li Ma
529f8113c2 Fix oslo_messaging package and related object names
Use the latest oslo_messaging package and the related driver names.

Change-Id: I20d4c9286cd2216aa238705f00d8f4537ed91234
2015-01-23 03:10:49 -08:00
Mike Perez
a0126b642c Use LVMVolumeDriver instead of LVMISCSIDriver
The Cinder LVMISCSIDriver is now deprecated. As a result, default
settings in devstack are giving warnings in the Cinder volume serivce.
The LVMVolumeDriver now handles all cases, by looking at the
iscsi_helper. This will use that driver instead, which will stop the
deprecation warnings.

Closes-bug: #1413761
Change-Id: Ifbb9ce45694095ff9e30f3ca4c3859a07de8df73
2015-01-22 16:01:11 -08:00
John Griffith
0b9e76f280 Auto add a cinder lvm.conf file
We have a number of issues where LVM scan commands hang during
test runs.  Looking closer at this with strace it turns out
that what seems to be happening is that we're scanning all of the
devices on the node, this includes the loop devices for swift and
other projects as well as the Cinder devices that are being attached
to the system during the test.

This is particularly messy for example when we issue a VG or LV scan
on a device like /dev/vdb and at the same time issue a detach.  The
result is LVM scan commands hanging waiting for timeout.

This patch adds a function to the cinder_backend/lvm module which
is called as the last part of cinder init.  If Cinder LVM is in use
as per cinder.conf this function will copy the default
/etc/lvm/lvm.conf to /etc/cinder/lvm.conf and use the cinder.conf file
and PVS to create filters so that ONLY the devices actually being used
by Cinder are included in scans.

There are two pieces to this fix; the first is to properly setup an
lvm.conf file with filters.  The second step is to merge the Cinder
change that modifies the Cinder LVM commands to specify the lvm.conf
file usage.

The Cinder part of this fix can be found here:
    https://review.openstack.org/#/c/148747/

Change-Id: I962b6e21cbfb6f5612b6c973053d86828ca8071a
Partial-Bug: #1373513
2015-01-22 12:27:58 -07:00
Steven Hardy
1f3f4b0a69 Check dib is available before building heat test image
When running with HEAT_CREATE_TEST_IMAGE=True, it's necessary
to add dib to ENABLED_SERVICES, or the image building will fail
so check for is_service_enabled dib before we start and error
with a helpful message if it's not.

Change-Id: Ia7ee64f6f8dd628267e485a1dc67581d8896d19c
2015-01-22 17:06:39 +00:00
Daniel P. Berrange
2d7c346f0c Exit when printing error about database config
When finding no configured database, devstack prints
a suitable error in the logs

   "No database enabled"

but then just carries on running, as a result the developer
is very unlikely to ever see the original error message.
Change the 'echo' to a 'die' so that it stop immediately
making the error message clearly visible.

Change-Id: Ibd86bfcb5d4a3b90a1ee7a5bd637b01124e3a6ba
2015-01-22 15:11:18 +00:00
Daniel P. Berrange
c1dbf10562 Exit after printing error about RPC config
When finding an invalid RPC configuration, devstack prints
a suitable error in the logs

    ERROR: only one rpc backend may be enabled,
           set only one of 'rabbit', 'qpid', 'zeromq'
           via ENABLED_SERVICES.

but then just carries on running, as a result the developer
is very unlikely to ever see the original error message.
Change the 'echo' to a 'die' so that it stop immediately
making the error message clearly visible.

Change-Id: If108f314e1ad2ecc79f41cbca47d08c4024a23cd
2015-01-22 15:10:56 +00:00
Davanum Srinivas
f5b4154251 Switch on curl retry options for fetching get-pip.py
Let's retry a few times before giving up.

Related-Bug: #1413034

Change-Id: I7c5c1a3936b5c08c5de43edc569b5a53d11b55a7
2015-01-22 07:57:42 -05:00
Jenkins
cc9d7330e9 Merge "Use openstackclient>=1.0.2" 2015-01-22 10:44:24 +00:00
Zhongyue Luo
2548e6f290 Provider network subnets based on IP version
Subnets for both IP version 4 and 6 are created even if IP_VERSION is set to 4.
Added two if statements to only create subnets that are nessesary.

Change-Id: I87c97741808726a260c846db48c10931e8991a74
2015-01-22 02:22:05 +00:00
Ed Cranford
ff72c5050e Fixes SCREEN_HARDSTATUS default value
If SCREEN_HARDSTATUS is null, default it to "", not ":".

Change-Id: I52d4eb6bb494cca995e33971d5f1eec953d484fd
2015-01-21 17:03:58 -06:00
Jenkins
1acfc028a6 Merge "Setup notification properly for Zaqar" 2015-01-21 17:51:27 +00:00
Jenkins
40b24278fa Merge "Fix doc: API_RATE_LIMIT has been removed" 2015-01-21 17:51:16 +00:00
Jakub Libosvar
e9a96ea885 Use openstackclient>=1.0.2
After changing usage of "openstack role" [1] python-openstackclient
stoppped working with 1.0.1 and less. This patch bumps version to use at
least 1.0.2v.

[1] https://review.openstack.org/#/c/148361

Change-Id: I2fdca28ae97a215cff5e2a6dd7cab2d3321caa6c
Closes-bug: 1413252
2015-01-21 15:18:34 +00:00
Jenkins
8467cd3faa Merge "Allow swift keystoneauth reseller_prefix in sample file" 2015-01-21 08:26:10 +00:00
Jenkins
b2d1bc5b92 Merge "ironic scripts should support $Q_USE_NAMESPACE" 2015-01-21 08:12:43 +00:00
Jenkins
a6d567fae0 Merge "Update osc server create to have type as positional arg" 2015-01-21 08:12:34 +00:00
Jenkins
b3e38cf295 Merge "Avoid VM configuration with Ironic hardware mode." 2015-01-21 08:12:25 +00:00
Jenkins
7fba9c9912 Merge "XenAPI: Use SCREEN_LOGDIR rather than assuming a static value" 2015-01-21 08:12:15 +00:00
Jenkins
77aca755b1 Merge "XenAPI: Fix another race condition" 2015-01-21 08:12:06 +00:00
Jenkins
d961416f87 Merge "neutron should log user_name and project_name by default like in nova" 2015-01-21 05:41:20 +00:00
Dean Troyer
dde41d0797 Deprecate SCREEN_LOGDIR in favor of LOGDIR
This is the first step in the log file cleanup.  If SCREEN_LOGDIR
is still set, symlinks will be created in the old screen log directory
so things like the devstack-gate log collector continues to work.

bp:logging-and-service-names
Change-Id: I3ac796e322a18dbd0b8b2310a08310ca159d7613
2015-01-20 16:08:22 -06:00
Jenkins
9e84d095f2 Merge "Remove locals that were not inside functions" 2015-01-20 21:21:34 +00:00
Jenkins
222ff80869 Merge "Register heat image in sahara image registry for fake plugin" 2015-01-20 18:36:08 +00:00
Jenkins
4f154070e4 Merge "Disable shallow cloning with GIT_DEPTH=0" 2015-01-20 17:55:50 +00:00
Mikhail S Medvedev
fc9cc96514 Remove locals that were not inside functions
Using 'local' keyword outside a function is invalid.

Also uppercase the variables to adhere to the style.

Related: I02aba9ca82c117a1186dafc1d3c07aa04ecd1dde
Change-Id: I76d358f8ebf5145cd3c65f9a470c83d4af67fd32
2015-01-20 11:11:05 -06:00
Jenkins
46d4769f8c Merge "Use os role list instead of os user role list" 2015-01-20 16:10:40 +00:00
Jenkins
b73f1c1592 Merge "Remove unneeded word" 2015-01-20 16:10:21 +00:00
Jenkins
0f6122fb3e Merge "[Sahara] Set use_floating_ips=false for nova network" 2015-01-20 15:46:34 +00:00
Jenkins
955f80a7ef Merge "Enforce UTF-8 encoding when creating databases" 2015-01-20 15:44:07 +00:00
Jenkins
d4a81a895e Merge "Gracefully add provider network port" 2015-01-20 15:16:02 +00:00