6335 Commits

Author SHA1 Message Date
Matt Riedemann
2f63da9e0e Ensure yum-utils is installed before using yum-config-manager
yum-utils provides yum-config-manager but the check for yum-utils is
currently being done after the first usage of yum-config-manager, which
fails if you don't have yum-utils already installed, so move it up
before the first usage of yum-config-manager.

Putting yum-utils in files/rpms/general doesn't help since
yum-config-manager is used in stack.sh before tools/install_prereqs.sh
is called.

Closes-Bug: #1467270

Change-Id: I74996c76838b7dc50d847e3bedb2d04dc55b4431
2015-06-21 09:02:59 -07:00
Brant Knudson
e123830c15 Add devstack-admin cloud to clouds.yaml
A lot of commands developers use require admin by default, so add a
"devstack-admin" cloud to clouds.yaml that has admin authority.

 $ openstack --os-cloud devstack-admin user list

Change-Id: Ie0f1979c50901004418f8622d4ca79dc4bdadd8d
2015-06-21 10:17:36 -05:00
Brant Knudson
e1fa0701b3 Update clouds.yaml
If the user already has a clouds.yaml, update it with the "devstack"
entry.

Change-Id: Id02378b6f3a86f9fee201d91688205705202c0a8
2015-06-21 10:16:23 -05:00
Jenkins
c342243cf8 Merge "Add ability to specify cinder lvm_type option" 2015-06-20 17:17:52 +00:00
Jerry Zhao
d3d78cc528 use pip_install_gr for ceilometermiddleware
Since this patch https://review.openstack.org/#/c/171685 has been
merged in global requirements, better to switch to pip_install_gr.

Change-Id: Ibe708d4f523c32ade3c6a273f80b9c38bb03e382
2015-06-19 19:01:28 -07:00
Jenkins
4ff5e2bf73 Merge "refresh the devstack plugin docs, add plugin registry" 2015-06-19 21:02:39 +00:00
Jordan Pittier
23bf045c18 Check if cinder is enabled before doing anything lvm2 related
On some system Cinder is not enabled so we can't assume LVM is installed. So
do not try to `sed` /etc/lvm/lvm.conf or clean LVM VG if cinder is not enabled

Change-Id: I09b1a7bee0785e5e1bb7dc96158a654bd3f15c83
2015-06-19 14:34:59 +00:00
Sean Dague
0124e08ede refresh the devstack plugin docs, add plugin registry
The devstack plugin docs mostly referred to in tree plugins, which is
honestly something we don't want people doing. Instead restructure the
whole document to talk about external plugins as the only kinds of
plugins, and focus on a workflow to make that easy for people to work
through.

This also adds a plugin-registry page to start listing known plugins
somewhere centrally. Some sample content was added, hopefully people
will submit patches to include their plugins.

This does drop the section on hypervisor plugins. That's not currently
something that we expect a ton of people to work on, so diving into
the code for this should be fine.

Change-Id: Ifc0b831c90a1a45daa507a009d1dcffcd6e2deca
2015-06-19 08:48:16 -04:00
Jordan Pittier
ceca15db4d Glance: move connection_url from DEFAULT section to DB section
To get rid of Oslo_config deprecation warning.

Change-Id: I9de475f4dea4a4496cc8b5e93aa6928235d4cb29
2015-06-19 11:46:36 +02:00
Jenkins
ee12f5f886 Merge "Save stackenv values more often" 2015-06-19 05:29:39 +00:00
Jenkins
0ad0bf4eff Merge "Enable deactivate image tests in tempest" 2015-06-19 05:28:12 +00:00
Jenkins
6704027c6e Merge "Remove hardcoded http in URL in sahara exercise script" 2015-06-19 05:11:34 +00:00
Jenkins
128d113418 Merge "Make sure iptables-services is installed" 2015-06-19 05:10:48 +00:00
Jamie Lennox
f4f01c6397 Use swift store config files in glance
Using the swift_store_auth_address, swift_store_user and swift_store_key are
marked as deprecated in glance in favour of using a standalone config file that
provides multiple auth options.

Create and use a standalone authentication file for communicating with swift.

Change-Id: I9b5361ce6e1771781d7ae7226974604a7f9e5d00
2015-06-19 11:10:23 +08:00
Jenkins
c7415ba7f9 Merge "Fixup pbr in LIBS_FROM_GIT" 2015-06-19 01:03:04 +00:00
Jenkins
e3f683829d Merge "Put requirements repo in a venv." 2015-06-19 00:11:43 +00:00
Robert Collins
86923559a4 Fixup pbr in LIBS_FROM_GIT
Change-Id: I32594f30a13c0757cc918c8a5e54ae182e985693
2015-06-19 11:17:04 +12:00
Sean M. Collins
d72b839b7f Docs: Use RFC5737 for Provider Networking
That'll make things more clear that with the provider networking
feature in DevStack, FIXED_RANGE will be a routed IPv4 subnet that gives
routed IPv4 addresses to instances without using floating IPs.

Change-Id: Ie26d75ac5ff285a25762c4f61fd9800b0382886b
2015-06-18 17:13:08 -04:00
Clint Byrum
d16bfa48ee Tune mysql a bit better for concurrent operations
With PyMySQL in the projects we can expect things to happen more
concurrently now. The query cache is a hinderance to concurrency, and
more connections will be required.

Change-Id: Icfb8cdbb9ed39cfd7732ad05fe740e01c767af7b
2015-06-18 13:22:35 -07:00
Robert Collins
40f3e33f73 Put requirements repo in a venv.
This is to prevent any possible contamination of test results from its
presence.

Change-Id: I5a929854745650cc6a182ffc4d15c50caabdd727
2015-06-19 08:04:00 +12:00
Davanum Srinivas
18d1cca6cb Add oslo.service to devstack
Add the ability to switch on oslo.service master using
LIBS_FROM_GIT

Change-Id: I00fe7776aea005b6d4e0a84fce54f33a862b57e3
2015-06-18 06:32:04 -04:00
Jenkins
810dc1d6f4 Merge "Actually install the requirements repo." 2015-06-18 03:21:12 +00:00
Jenkins
98d9651038 Merge "Add note on openrc and zsh" 2015-06-18 02:27:02 +00:00
Robert Collins
f553ce24ea Actually install the requirements repo.
The requirements repo has had a setup.cfg etc for a long time but only
recently started using it. As it now has dependencies, we need to pip
install it. To preserve compat with older requirements repos I haven't
changed the call to invoke update-requirements yet, as we still have
the update.py symlink.

The pbr install is moved before requirements to ensure we don't
trigger easy-install.

Change-Id: I7d7e91694c9145fac0ddab8a9de5f789d723c641
2015-06-18 11:21:42 +12:00
Chris Dent
ccd4c2e177 Install python-libvirt for ceilometer only if n-cpu enabled
Nova is responsible for installing the libvirt package (if it is being
used). It is required by python-libvirt but python-libvirt only required
in ceilometer if nova compute is being used. There are some usage
scenarios where nova compute is not being used so in that case don't
install python-libvirt.

Change-Id: I0db66f1c0526e24ade98de85989a5ed8d37f0c4f
2015-06-17 16:45:42 +00:00
Chris Dent
40fc66324c Remove debugging artifacts
The change in 027e2ea741bdbcb6e1afc3fe527c3fdf045825c3 included some
debugging code that should have been removed before being added. This
removes it.

Change-Id: Ia56e1eb7305683b6c00b27a727fc8e094c65a963
2015-06-17 16:39:37 +00:00
Rob Crittenden
1987fcc8a3 Replace pip-installed requests CA bundle with link
If the version of python-requests required is higher than
that provided by the operating system, pip will install
it from upstream.

The upstream version provides its own CA certificate bundle
based on the Mozilla bundle, and defaults to that in case
a CA certificate file is not specified for a request.

The distribution-specific packages point to the system-wide
CA bundle that can be managed by tools such as
update-ca-trust (Fedora/RHEL) and update-ca-certificates
(Debian/Ubuntu).

When installing in SSL/TLS mode, either with SSL=True or by
adding tls-proxy to ENABLED_SERVICES, if a non-systemwide
CA bundle is used, then the CA generated by devstack will
not be used causing the installation to fail.

Replace the upstream-provided bundle with a link to the
system bundle when possible.

Change-Id: I651aec93398d583dcdc8323503792df7ca05a7e7
Closes-Bug: #1459789
2015-06-16 17:57:09 -04:00
Jenkins
598f2effed Merge "Add futurist to lib/oslo and stackrc" 2015-06-16 20:22:12 +00:00
Jenkins
78797238d9 Merge "Add automaton to lib/oslo and stackrc" 2015-06-16 20:22:07 +00:00
Jenkins
5fbae1b34c Merge "Remove Fedora 20 as supported distribution" 2015-06-16 19:59:45 +00:00
Jenkins
5af3f124c5 Merge "VMware: add support for simple DVS" 2015-06-16 19:50:06 +00:00
Jenkins
3f6f666ae0 Merge "Allow ceilometer to run in virtualenv if USE_VENV" 2015-06-16 19:44:53 +00:00
Jenkins
ba9f43e3cc Merge "Set datapath to $OVS_DATAPATH_TYPE for bridges" 2015-06-16 19:44:32 +00:00
Jenkins
be5d9b7dfa Merge "SUSE: Add dependencies for L3 agent" 2015-06-16 19:44:24 +00:00
Jenkins
6937fd153b Merge "Cinder: On SUSE, avoid restarting tgt" 2015-06-16 19:44:20 +00:00
Jenkins
7f48f7b3e3 Merge "Move FAQ to a section-based format" 2015-06-16 19:44:15 +00:00
Jenkins
ca0411540b Merge "Small fixes for running Nova services under Apache2" 2015-06-16 18:02:03 +00:00
Jenkins
0a2b95c4a0 Merge "Add vmware_nsx_v3 support" 2015-06-16 16:58:16 +00:00
Sean Dague
37eca48970 remove non RabbitMQ messaging
Part of what was decided at summit is devstack needs to return to a
more opinionated stance, the following removes support for non
RabbitMQ messaging. RabbitMQ is used by over 95% of our community
(statistically all of it), so it's a pretty clear line to draw that
this shouldn't be in tree.

iniset_rpc_backend will be our stable hook for other projects that
want to implement this out of tree. The burden on creating those out
of tree plugins will be on those that wish to support those
alternative stacks.

Change-Id: I8073a895c03ec927a2598eff6c2f01e5c82606fc
2015-06-16 08:28:52 -04:00
Jenkins
8cd5576a17 Merge "Revert "Revert "change the default to PyMYSQL""" 2015-06-16 11:31:55 +00:00
Jamie Lennox
9d7e776b70 Use Keystone v3 API for user creation
This includes requiring a domain when creating a user. This will allow us to
control where users are created in a later patch.

Adding the token to the user creation call is required because of a bad
interaction between OpenStackClient, os-client-config and keystoneclient
when dealing with v2 authentication but v3 API calls. It will be cleaned
up when we switch to v3 credentials.

Change-Id: I6ef50fd384d423bc0f13ee1016a8bdbb0650ecd9
Implements: bp keystonev3
2015-06-16 10:06:39 +08:00
Jamie Lennox
b632c9ef81 Use keystone v3 API for projects
Always use the keystone v3 API for project creation. Make domain a
required argument. Whilst we could simply default this value within the
function I think it's better to make this explicit as these are things
deployers and services need to consider.

In future we will want to figure out how we want devstack to organize domains
however I don't believe that it belongs in this patch.

Change-Id: Ib9587193c5c8419dc4b5a608246709baaddd2a52
Implements: bp keystonev3
2015-06-16 08:38:09 +08:00
Jenkins
97c77b90e2 Merge "Set Neutron api_workers to $API_WORKERS" 2015-06-14 14:23:10 +00:00
Dirk Mueller
6bc089fce0 Cinder: On SUSE, avoid restarting tgt
There is a known bug that restart tgtd fails, so go the
workaround way and stopping/starting it instead.

In addition, remove the else case since unstack also
uses cleanup_cinder, which already unconditionally supports
all distros.

Change-Id: Ib70917a95f001ef36a51815f08416fa30084aad6
2015-06-13 22:49:30 +02:00
Marian Horban
13f655720d Small fixes for running Nova services under Apache2
Following fixed were done:
1. Cleanup fixed.
2. API_WORKERS config option was added to nova config templates.
3. Nova API screen tabs were named as nova-api and nova-ec2-api.

Change-Id: I68dc6fd6c8aeffcec7f9039afd63bd1599c65682
2015-06-13 13:47:12 -04:00
armando-migliaccio
e155b894c8 Set Neutron api_workers to $API_WORKERS
Change [1] brings back this feature in Neutron, so we want to have
the ability to set the number of API workers the same way other
projects do.

However, this cause some instability, so we need to be careful on
how we bring it back.

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

Closes-Bug: #1432189
Related-bug: #1432065

Change-Id: Id4986a49d33fa4b8a7291150488665e200525dac
Co-authored-by: Russell Bryant <rbryant@redhat.com>
2015-06-12 18:47:38 +00:00
Jenkins
aadcde06a2 Merge "Install PyMySQL if used" 2015-06-12 18:36:50 +00:00
armando-migliaccio
b3d8822ec8 Revert "Revert "change the default to PyMYSQL""
Some projects (Neutron) seem to be affected more than others, so we should revert this
to allow for a more selective choice of the DB driver on a per project basis.

We can re-enable the use MySQL-python just for Neutron.

This reverts commit de8d29ed8ce4a26b61cbee48f9fe5418d5416a06.

Related-Bug: #1464612

Change-Id: I889f4f8b116c413b300ab9eecc7b428a9a4afb1a
2015-06-12 16:42:32 +00:00
Jenkins
008f42a24c Merge "Revert "change the default to PyMYSQL"" 2015-06-12 14:02:00 +00:00
Dirk Mueller
987f83da5a SUSE: Add dependencies for L3 agent
Change-Id: If3f4f5ab9a3072273d2f440718ce0c75fd71fdf1
2015-06-12 13:32:39 +02:00