6074 Commits

Author SHA1 Message Date
Jenkins
0479bc101c Merge "Infer rootwrap arguments from project" 2015-05-19 20:24:33 +00:00
Jenkins
c9e842871b Merge "Don't set tempest fixed_network_name with neutron" 2015-05-18 02:34:04 +00:00
Jenkins
db7809880b Merge "Use stevedore for keystone backends" 2015-05-15 22:59:18 +00:00
Matthew Treinish
4b684aed31
Don't set tempest fixed_network_name with neutron
If neutron is enabled then there isn't a shared private network
between all tenants which is what is required for the
fixed_network_name config option. This commit adds a conditional
to not set that option when neutron is enabled. While not necessarily
fatal to tempest it does emit a warning on almost every server create
call if it is set with a non-existent network name.

Change-Id: I1a42fa6b0b5a93b411c08ec35df043d6ea69d453
2015-05-15 14:24:47 -04:00
Ian Wienand
c678241308 Infer rootwrap arguments from project
We can infer the binary and configuration paths just from the project
name and expanding this to the known *_DIR & *_BIN_DIR variables.  A
similar thing is done for policyd settings

Change-Id: I7c6a9fa106948ae5cbcf52555ade6154623798f1
2015-05-15 14:01:20 +10:00
James E. Blair
9e220b9b2b Move trove into in-tree plugin
Once the trove code is copied into the trove repo and it is used
as a devstack-plugin, we can remove trove-specific code from
devstack.

Change-Id: I8f9f1a015edb7ec1033e2eaf0b29ab15d89384ce
Depends-On: I3506dec0e6097f9c2e9267110fdfb768faa23c85
2015-05-14 07:57:23 -07:00
Jenkins
bf5de0aee4 Merge "Prevent setting tempest fixed_network_name for cells" 2015-05-14 03:23:17 +00:00
Jenkins
589bef2d09 Merge "Cinder: Set os_privileged_user credentials (for os-assisted-snapshots)" 2015-05-14 02:24:49 +00:00
Jenkins
632b83d2f3 Merge "dump compute consoles on fail as well" 2015-05-14 00:55:55 +00:00
Jenkins
a79de45497 Merge "glance: remove deprecated store options" 2015-05-13 16:30:52 +00:00
Jenkins
92619ddb61 Merge "Add python_version function to functions-common" 2015-05-13 11:41:06 +00:00
Sean Dague
737e94202f dump compute consoles on fail as well
This provides a dump of the compute consoles as well on failure.

Change-Id: Ib253537a54a1b9d83a930bbefa4512e039575fd1
2015-05-13 05:58:41 -04:00
Jordan Pittier
38bee18a2c Cinder: Set os_privileged_user credentials (for os-assisted-snapshots)
When calling os-assisted-snapshots APIs, Cinder often (by default) needs
 to pass an admin token to Nova. Currently it uses the credentials of
 the current user.

This will cause calls to Nova APIs for assisted volume snapshots to fail.

Configuration options should be added to specify different credentials
for talking to Nova.

Change-Id: I9e3ed53f4e1349d57a0c33518445f54ac63e36ec
Related-Bug: #1308736
2015-05-13 07:15:40 +00:00
Joe Gordon
1fa82aab66 Install g-r version of OSC in configure_tempest
configure_tempest uses python-openstackclient (OSC) and we call
configure_tempest in grenade on the new side. So we need to make sure
the version of OSC is installed matches global-requirements on new.

Change-Id: I6fae9b8b081355b45e7c8d622d8db2482d41b464
Closes-Bug: #1454467
2015-05-12 20:07:10 -07:00
Jenkins
c5caff6776 Merge "Fix function and test for 'trueorfalse'." 2015-05-12 21:34:29 +00:00
Jenkins
a51db5503e Merge "add network info to the worlddump" 2015-05-12 18:48:31 +00:00
Chris Dent
3a2c86aabf Add python_version function to functions-common
This makes it possible to list virtual site-package directories
without statically stating the python version, which is a bit ugly.

Change-Id: I3e7ac39eb43cdc4f656e0c90f3bfb23545722aef
2015-05-12 18:30:31 +00:00
Louis Taylor
cbe12eb72e glance: remove deprecated store options
glance_store has now been fully migrated, so we can remove these from the
config files.

Change-Id: I987ab6338b235f0beeed7c7fe74b0f5b6526f70d
2015-05-12 16:49:49 +00:00
Jenkins
d5bcc42a71 Merge "lib/swift: the s3_token middleware should be provided by keystonemiddleware" 2015-05-12 11:07:13 +00:00
Jenkins
041fd16521 Merge "Use an actual existing nova scheduler in README.md" 2015-05-11 21:36:38 +00:00
Sean Dague
60a140571e add network info to the worlddump
This adds potentially helpful networking info to the world dump.

It also refactors some of the output mechanisms into reusable
functions for cleanliness in the code.

Change-Id: I39f95bd487c152925f8fadd1799149db35cffd52
2015-05-11 14:56:49 -04:00
Jenkins
75bae7076a Merge "nova: remove allow_migrate_to_same_host config usage" 2015-05-11 15:43:23 +00:00
Brant Knudson
331a64f9d0 Use stevedore for keystone backends
With bp stevedore, keystone will load backend drivers using
stevedore entrypoints. Using the qualified class name is
deprecated.

Since stevedore is going to validate that the entrypoint is
found, there's no need to list the valid backends, so backend
validation was removed. This change will cause the server to fail
to start if the backends are misconfigured rather than using the
default one.

The names of the stevedore endpoints are "sql", "ldap", etc.,
rather than the qualified class name, so the way that these
are specified in KEYSTONE_IDENTITY_BACKEND, etc., is the same as
the stevedore entrypoint and there's no need to translate.

Change-Id: I81e4e3a6c97b0057610e6b256aff5df4da884e33
2015-05-11 10:34:08 -05:00
Mahito OGURA
98f59aafaf Fix function and test for 'trueorfalse'.
The function's comment is written as follow, however the function accepts
other values (ex. "e", "t", "T", "f", "F", etc...).

---
Accepts as False: 0 no No NO false False FALSE
Accepts as True: 1 yes Yes YES true True TRUE
---

Moreover if testval mach True or False, the function exits without resetting
xtrace.

This patch fixes the issue and add test patterns.

Change-Id: Ie48a859476faff22a4dfef466516e2d7d62ef0c0
Closes-bug: #1453687
2015-05-11 18:23:07 +09:00
Jenkins
e3fcc54b9b Merge "Add toggle to run Nova API and EC2-API under Apache2" 2015-05-10 22:29:38 +00:00
Jenkins
0884c25b1b Merge "Fix wrong sudo ceph -c command in lib/ceph" 2015-05-10 22:28:36 +00:00
Jenkins
f9b80e2dd2 Merge "Stop installing nose and pylint from distros" 2015-05-08 21:06:14 +00:00
Jenkins
db8898c495 Merge "Update default cirros version" 2015-05-08 18:43:38 +00:00
Jeremy Stanley
091b42b7da Stop installing nose and pylint from distros
The distro packages of nose and pylint depend on python-setuptools
on some platforms, and on some of those platforms (at least CentOS
6.x) you can't resolve dependencies on python-setuptools properly if
you've forcibly removed it already (as we do on our CI workers). It
appears that any current upstream use of these tools in relation to
DevStack-based testing is now relying on tox and pip to obtain them
instead.

Change-Id: Ibd16ac550c90364115caf57fae4f5f4cb5d5f238
2015-05-08 17:43:08 +00:00
Accela Zhao
99de7cc178 Fix wrong sudo ceph -c command in lib/ceph
The `sudo -c ${CEPH_CONF_FILE} ceph ...` in lib/ceph misplaced
`ceph`. The correct syntax is `sudo ceph -c ${CEPH_CONF_FILE} ...`,
see lib/ceph:308.

While installing ./stack.sh with ceph enabled, the above malformed
command raises a `usage: sudo -h | -K | -k | -V ...` error and stops
the installation.

This patch fixes `sudo -c ${CEPH_CONF_FILE} ceph ...` by moving
`ceph` to the right place.

Change-Id: I3da943d5a353d99b09787f804b79c1d006a09d96
Closes-bug: #1453055
2015-05-09 01:17:55 +08:00
Accela Zhao
ad0a518ca9 Use an actual existing nova scheduler in README.md
The Multi-Node Setup guide in README.md

    https://github.com/openstack-dev/devstack/tree/master#multi-node-setup

guides users to use

    SCHEDULER=nova.scheduler.simple.SimpleScheduler

where the SimpleScheduler doesn't actually exist in nova. Even
though this is just an example, it is misleading enough for a
beginner to put SimpleScheduler into local.conf. The resulting
error message where n-sch fails to start

    ImportError: No module named simple

Isn't intuitive enough and may takes the beginner long time to
locate what's wrong.

This patch replaces SimpleScheduler with a real existing
FilterScheduler in nova.

Change-Id: I14a2a5c0604ce08a498accfc3a795c1c9aa3e642
Closes-bug: #1453186
2015-05-09 01:04:27 +08:00
Matt Riedemann
b3a8f6032a nova: remove allow_migrate_to_same_host config usage
Nova commit 9b224641295af3763d011816d6399565ac7b98de removed the option
in Liberty so we can remove it's usage in devstack.

Related-Bug: #1364851

Change-Id: If051f43fb75d57c118db4e8e97895ff06fbb54e2
2015-05-08 06:59:39 -07:00
Yuki Nishiwaki
0a9d03d505 Move install_infra before execute build_wheels.sh
The pip_install_gr function in build_wheels.sh use requirements project.
So requirements project must exist before execute build_wheels.sh.
Then we moved install_infra function which install requirements project.

Change-Id: I8f80ecafff0f7e1942731379b70bccac338ea3b3
Closes-Bug: 1453012
2015-05-08 16:36:06 +09:00
Jenkins
55f063a106 Merge "create a more generic work around for cffi & wheels" 2015-05-08 01:44:57 +00:00
Jenkins
f9cca57ea0 Merge "Set live_migrate_paused_instances=True in tempest.conf" 2015-05-07 21:41:30 +00:00
Matthew Gilliard
1b5a49829e Set live_migrate_paused_instances=True in tempest.conf
Live migration of paused instances is a new Nova feature in Kilo, and will not
be backported.  The compute_feature_enabled.live_migrate_paused_instances flag
defaults to False for this reason, but can be set to True here. The tempest
config option and this change can both be removed at Juno-EOL.

The related Tempest change: I5c6fd3de7ea45d1851bb40037c64ad7fb5e6dc48

Change-Id: I3a83e43d252b88c234438a224e2fbebc0a81eaff
Related-Bug: #1305062
2015-05-07 19:54:39 +00:00
Jens Rosenboom
9fd75f57fd Update default cirros version
Update the default CIRROS_VERSION to 0.3.4, which has better support
for IPv6 and some other bugfixes.

Co-Authored-By: Scott Moser <smoser@ubuntu.com>
Change-Id: I03ee6e1403680fb6c421225a7cadaf8a82edf702
Depends-On: Iac9f108d947ff4a51f99c6e8ad9d1ac5b32c000a
2015-05-07 16:06:02 +02:00
Sean Dague
168b7c226c dump iptables in the worlddump
If we fail during devstack / grenade runs, it would be nice to have
the map of iptables that are currently active as well. This makes it
handy to start figuring out what's going on when test servers don't
ping.

Change-Id: Ia31736ef2cb0221586d30c089473dfdc1db90e23
2015-05-07 08:57:28 -04:00
Jenkins
641dd9ff23 Merge "Fix negated services with common prefix" 2015-05-07 02:48:20 +00:00
Jenkins
5ed2ba896f Merge "cinder setup now refers to CINDER_VOLUME_CLEAR and volume_clear" 2015-05-06 17:45:22 +00:00
Jenkins
872cdf62ce Merge "Set local_ip only when TENANT_TUNNELS are enabled" 2015-05-06 17:34:53 +00:00
Sean Dague
5a59ac7d43 create a more generic work around for cffi & wheels
This is an attempt to fix the cffi vs. wheels bug in a more generic
way by just ensuring that pip has installed cffi with a pip understood
version into the venv before we try to do any builds.

Related-Bug: #1451992

Change-Id: Ibc58668c53933033405b40f79b0e9ffc73a01a6f
2015-05-06 15:58:24 +00:00
Cyril Roelandt
e8a2fa431b lib/swift: the s3_token middleware should be provided by keystonemiddleware
Recently, keystoneclient.middleware has been moved from keystoneclient to
keystonemiddleware. The latter should be used.

Change-Id: Ib9489a21b988b32fc17399c08eeb60862efae034
Closes-Bug: #1452315
2015-05-06 17:34:35 +02:00
Gregory Haynes
ee3d2a8ece Import xattr with sudo early on
xattr fails to import due to being unable to build cffi bindings unless
it is imported as root beforehand.

Depends-On: I6a9d64277974933ae9b7bbe2a40b8a0eb0fa8c6a

Change-Id: I835e55bbafc7e0640987e6f3c8ee0c873f875ee0
Closes-Bug: #1451992
2015-05-06 00:08:15 +00:00
Davanum Srinivas
d5537c1dc8 Add toggle to run Nova API and EC2-API under Apache2
Inspired by keystone and rcbops-cookbooks's nova scripts,
this review adds apache2 templates for two of the Nova
services. Also add code in lib/nova to switch between
the old and new ways to these two services. The patch
depends on the Nova review mentioned below as the two
scripts that are needed will be in Nova's repository.

TODO for later would be to switch on NOVA_USE_MOD_WSGI
when ENABLE_HTTPD_MOD_WSGI_SERVICES is switched on.

Related Nova blueprint:
https://blueprints.launchpad.net/nova/+spec/run-nova-services-under-apache2

Depends-On: Idd7d3d1b3cc5770cdecea7afe6db3c89d5b2c0d0
Change-Id: I9fc0c601db2776d3e9084be84065e728e3f5d414
2015-05-05 01:36:01 +00:00
Jenkins
e210d26a19 Merge "clean up logging around run_process" 2015-05-04 19:18:50 +00:00
Joe D'Andrea
dfcc3871c0 cinder setup now refers to CINDER_VOLUME_CLEAR and volume_clear
CINDER_SECURE_DELETE previously iniset volume_clear to none as a
side effect, however secure_delete is not documented in cinder.
Now using CINDER_VOLUME_CLEAR outright. CINDER_SECURE_DELETE is
supported but now deprecated.

Change-Id: Ic8694cf16654c23b27d23853a9f06ddf1050fa93
Closes-Bug: #1450159
2015-05-04 14:15:41 -04:00
sridhargaddam
8d558c8c27 Set local_ip only when TENANT_TUNNELS are enabled
In an installation with VLAN tenant networks, devstack should
not configure the local_ip (which is applicable only when
tenant_tunnels are used). This is causing failures in Neutron
for an IPv6 only setup. This patch addresses this issue, but
configuring the local_ip only when TENANT_TUNNELS are enabled.

Related-Bug: #1447693
Change-Id: I0e2a2d8b6ce0ad87f6c0d318ac522dbab50d44ee
2015-05-04 14:07:21 +00:00
Jenkins
4e41fd83b6 Merge "Add /usr/local/bin to exec_dirs in rootwrap.conf" 2015-05-04 03:28:38 +00:00
Sean Dague
6e137abbfe clean up logging around run_process
We do a bunch of exec magic unwind in run_process that leads to a lot
of confusing lines in the logs under xtrace. Instead, disable xtrace
through these parts to ensure that the flow at the end of the day
makes more sense.

Change-Id: I91e02465240e704a1a0c0036f5073c0295be018e
2015-05-04 12:15:14 +10:00