Compare commits

...

1818 Commits

Author SHA1 Message Date
Ian Wienand 4da98ee6d4 Mark our source trees as safe for git to use as other users
git commit [1] introduced a new behaviour to work around a CVE that
disallows any git operations in directories not owned by the current
user.

This may seem unrelated to installation, but it plays havoc with PBR,
which calls out to git to get to get revision history.  So if you are
"pip install"-ing from a source tree you don't own, the PBR git calls
in that tree now fail and the install blows up.

This plays havoc with our model.  Firstly, we checkout all code as
"stack" then install it globally with "sudo" (i.e. root) -- which
breaks.  We also have cases of essentially the opposite -- checkouts
we have installed as root, but then run tox in them as a regular user;
tox wants to install the source in its venv but now we have another
user conflict.

This uses the only available configuration option to avoid that by
globally setting the source directories we clone as safe.  This is an
encroachment of the global system for sure, but is about the only
switch available at the moment.  For discussion of other approaches,
see [2].

Also, squashing the below backport which is needed for bionic
- https://review.opendev.org/q/I941ef5ea90970a0901236afe81c551aaf24ac1d8

Related-Bug: https://bugs.launchpad.net/devstack/+bug/1968798

[1] https://github.com/git/git/commit/8959555cee7ec045958f9b6dd62e541affb7e7d9
[2] https://review.opendev.org/c/openstack/devstack/+/837636

Change-Id: Ib9896a99b6d6c4d359ee412743ce30512b3c4fb7
(cherry picked from commit 676dcaf944)
(cherry picked from commit a9852abfc5)
(cherry picked from commit 16c57c51a0)
(cherry picked from commit c67e7d3bbd)
(cherry picked from commit 7f1025e932)
2022-04-20 12:17:20 +02:00
Elod Illes e80f0802e0 [stable-only] Use queens-eol for horizon
This patch is needed as tempest-full-py3 zuul job started to fail on
stable/queens branch due to the following:
Horizon's stable/queens transitioned to End of Life and its
stable/queens branch was deleted. This fix uses the queens-eol tag to
be able to check out horizon's latest state from queens.

Change-Id: I845f53de2d29ab7642ebb04e8bd0ce6c09ff12e8
2021-08-17 20:11:47 +02:00
Elod Illes 1b9ca1751a [stable-only] Preinstall pbr for devstack-tools and unblock gate
Due to "Deprecation of non-SNI compatible clients" [1], when
devstack-tools is installed in early phase (in neutron-grenade job for
example) and pbr is not yet installed, the pip command fails with the
following error in xenial based environments:

File "/usr/lib/python3/dist-packages/setuptools/command/easy_install.py", line 657, in easy_install
  raise DistutilsError(msg)
distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('pbr>=1.8')

This is because setuptools' easy_install is used, which is non-SNI
compatible in xenial base image (and python 3.5). With this patch the
issue can be avoided by preinstalling pbr just before the installation
of devstack-tools.

NOTE(elod.illes): neutron-grenade is still part of the gate for
multiple projects in stable/queens (nova, neutron, cinder, keystone),
so set it back to voting in devstack, too.

Patch I01408f2f2959b0788fe712ac268a526502226ee9 also needed to be
squashed into this patch, to fix the gate:

Pin nodeset as xenial for devstack unit test job

devstack-unit-tests job running on devstack stable/rocky
branch had no nodeset and use default one which is now xenial.

This commit explicitly pin the xenial nodeset on stable/rocky.
(cherry picked from commit 77561e7e17)

[1] https://github.com/pypa/pypi-support/issues/978

Change-Id: I0edd4734df8ac7976d3090b75ca4c033b8ff0f2c
(cherry picked from commit 052d7f2442)
2021-05-27 09:21:47 +02:00
Zuul 3fe8887113 Merge "Fix for downloading uwsgi on centos in lib/apache" into stable/queens 2021-04-28 09:57:02 +00:00
Ghanshyam Mann 775e8f22da Make stackviz tasks not to fail jobs
Due to issue on stckviz side, job start
failing with POST_FAILURE. If we fix the
issue still we need to wait for periodic job
periodic-package-stackviz-element to publish
the latest tarball on https://tarballs.openstack.org/stackviz/dist/.

Let's not fail the job for any issue occur during
stackviz processing.

Closes-Bug: 1863161

Change-Id: Ifee04f28ecee52e74803f1623aba5cfe5ee5ec90
(cherry picked from commit 580fec54c3)
(cherry picked from commit 800eb4dd44)
(cherry picked from commit 3b2feba2ef)
(cherry picked from commit 4f9c1e084c)
(cherry picked from commit 2873b5530d)
(cherry picked from commit a464979916)
(cherry picked from commit bfd3d9cd0d)
2021-04-08 20:30:08 -05:00
Dan Smith e6070e3f21 Fix get-pip URL for py27
This has been failing to install with this message, which I think
means we need to change our URL for getting pip:

 The URL you are using to fetch this script has changed, and this one
 will no longer work. Please use get-pip.py from the following URL
 instead:
    https://bootstrap.pypa.io/pip/2.7/get-pip.py
 Sorry if this change causes any inconvenience for you!

Change-Id: Id62e91b1609db4b1d2fa425010bac1ce77e9fc51
(cherry picked from commit fc7f929597)
(cherry picked from commit 1400e6f1c3)
(cherry picked from commit 302ede617a)
2021-03-08 13:13:27 +01:00
Akihiro Motoki 8f368650d0 Use a dedicated version of get-pip.py for python 2.7
get-pip.py dropped python 2.7 support, so we cannot use the default
get-pip.py for python 2.7 now. get-pip.py for python 2.7 is available
at https://bootstrap.pypa.io/2.7/get-pip.py.
This commit tries to use python 2.7 version of get-pip.py
for python 2.7 environment.

get-pip.py fails with in tempest-full-py3 job, too, as that job uses
python 3.5 which is also not supported by the new get-pip.py. For py35
the supported get-pip.py link is:
https://bootstrap.pypa.io/3.5/get-pip.py (which contains pip 20.3.4).
Also, we have to invalidate the CI cache which serves py36 pip.
This patch simply renames the file to fail the match.

Change-Id: I88ba370de8887a05c473fe7c19a61a319e8812d2
(cherry picked from commit 1382e933c5)
(cherry picked from commit 469b26f742)
(cherry picked from commit 910f00eeeb)
2021-01-26 16:52:59 +00:00
Ghanshyam Mann bc5e1eba8f Install swift keystone extras requirements
Since the introduction of I8f24b839bf42e2fb9803dc7df3a30ae20cf264
s-proxy is no longer able to launch as keystonemiddleware (listed under
test-requirements.txt) has not been installed.

keystonemiddleware is listed as extras requirements in swift
- https://github.com/openstack/swift/blob/e0d46d77fa740768f1dd5b989a63be85ff1fec20/setup.cfg#L79

Let's install swift keystone extra requirements also.

Closes-Bug: #1909018
Change-Id: I02c692e95d70017eea03d82d75ae6c5e87bde8b1
(cherry picked from commit 04b0b61557)
(cherry picked from commit 90651cb1a9)
(cherry picked from commit 10fdf258ba)
(cherry picked from commit a7c4377c17)
(cherry picked from commit d3016a20ac)
(cherry picked from commit 0b25592182)
2020-12-23 14:09:05 -06:00
Monty Taylor 293c97d6ca Stop installing test-requirements with projects
This is a test of installing openstack and then seeing if it works.
OpenStack components do not need test-requirements to operate,
that's why they are test-requirements.

Additionally, as we look forward to depsolver pip, this is going
to screw us because we don't apply constraints to linters, which
are expressed in - you guessed it, test-requirements.

Change-Id: I8f24b839bf42e2fb9803dc7df3a30ae20cf264eb
(cherry picked from commit 09b5b05c47)
(cherry picked from commit d3ab04bcb1)
(cherry picked from commit 6a500ad269)
(cherry picked from commit 671fa2b94f)
2020-12-10 21:49:09 +00:00
iosetek 10877d79d6 Fix for downloading uwsgi on centos in lib/apache
On Centos the lib/apache script in devstack downloads and compiles
uwsgi package. It uses pip-download to pull uwsgi tar file.
However, it does not return the full name of downloaded file so
right now the script looks for filename that starts with prefix
"uwsgi".
This method is case sensitive so after downloading file with name
uWSGI-2.0.19.tar.gz the script was unable to locate this file.

This change downloads the file to an empty directory and expect
it to be the only file there so there is no name vulnerability.

Change-Id: I57e6219d675c951880808ced4e26c2344ef15cee
Closes-Bug: #1883897
2020-07-30 10:47:38 +02:00
Ghanshyam Mann f4b063b207 Fix gate, squashing multiple fixes
This commit includes multiple fixes to
make gate happy:

1. Use packaged uwsgi on Fedora and Ubuntu
- https://review.opendev.org/#/c/735615/7

2. Move process-stackviz role from Tempest to Devstack
- https://review.opendev.org/#/c/737078/4

3. Add ensure-pip to pre.yaml
- https://review.opendev.org/#/c/738495/2

4. Use uwsgi binary from path
- https://review.opendev.org/#/c/739072/

5. Temporarily disable the grenade jobs

Conflicts:
	.zuul.yaml
	lib/neutron
	lib/neutron-legacy

Change-Id: I82f539bfa533349293dd5a8ce309c9cc0ffb0393
(cherry picked from commit 2d903568ed)
(cherry picked from commit ad6cc52c74)
2020-07-03 21:50:52 +02:00
Ghanshyam Mann 12634ba6e2 Fix Tempest installtion on system wide for stable branch
INSTALL_TEMPEST flag enable to install Tempest by default on
devstack env which is meant for using on master gate only and has
to be false for stable branch. On stable branch master Tempest
on system wide can fail to install for various reason like constraint
etc. That is why we install Tempest on venv always.

This started failing tempest-full on stein gate[1] where
devstack try to install Tempest on system wide also which try to
use py2 env because jobs is py2 and fail.
- https://zuul.opendev.org/t/openstack/build/f05569c475f44327bff7b7ec58faef8c/log/controller/logs/devstacklog.txt#30654

We need to set INSTALL_TEMPEST flag to false on all stable branch to
avoid such issue which we did not do since pike.
(I will make note of this in Devstack branch cut TODO list)
- https://github.com/openstack/devstack/blob/6067e41a5cc44164e34faab2fd9741dbb788f42f/lib/tempest#L60

[1] https://zuul.opendev.org/t/openstack/build/f05569c475f44327bff7b7ec58faef8c

Change-Id: I60949fb735c82959fb2cfcb6aeef9e33fb0445b6
Closes-Bug: #1871327
2020-04-07 14:37:37 +00:00
Dr. Jens Harbott a05fc211ed Override virtualenv to a version < 20
There are errors with the recently released virtualenv 20.0.1 which
comes preinstalled on gate images prepared by infra. As a hotfix
override to some previous version until we can find the real fix.

Change-Id: I3b447557f013934719aa357efeffb093c7f6bd95
2020-02-11 13:02:21 +00:00
Ghanshyam 7d43b099c5 Use stable constraint for Tempest pinned stable branches
Stable branches till stable/rocky is using python
version <py3.6. Tempest test those branch in venv
but Tempest tox use the master upper-constraint[1]
which block installation due to dependencies
require >=py3.6. For exmaple, oslo.concurrency 4.0.0
is not compatible for <py3.6.

As we pin Tempest for EM stable brach, we should be
able to use stable constraint for Tempest installation
as well as while running during run-tempest playbook.

tox.ini is hard coded to use master constraint[1] which force
run-tempest to recreate the tox env and use the master constraint.
Fix for that- https://review.opendev.org/#/c/705870/

Devstack can set stable u-c to use via env var so that
Tempest installation in venv will use stable
branch constraint.

Depends-On: https://review.opendev.org/#/c/706426/

[1] https://opendev.org/openstack/tempest/src/commit/bc9fe8eca801f54915ff3eafa418e6e18ac2df63/tox.ini#L14

Change-Id: I5ab1130582354c33d52afafc9720146e174e40e5
2020-02-08 17:14:49 +00:00
Ghanshyam 21c448b4cb Support TEMPEST_BRANCH with tag name
TEMPEST_BRANCH which is mostly set as master so
that Tempest master is run to test the env. With
stable branch going to EM state and Tempest master
might not work due to incompatibility of code or
requirements. In that case we pin the Tempest so that
older Tempest can be used for their testing.

Till now for ocata, pike and, queens we used the gerrit style
ref to pin the Tempest which is not preferred way. We should be
able to use the tag name on TEMPEST_BRANCH.

This commit explicitly checkout the tag set in TEMPEST_BRANCH
as git_clone does not checkout the tag directly until RECLONE
is true or tempest dir does not exist.

After this stable branch or job can set the tag directly with name.
For exmaple: TEMPEST_BRANCH=23.0.0.

Also replace gerrit style Tempest ref to tag to make
this change working.

Change-Id: Ic777e4b56c4932dde135ac909cb5c6f4a7d5cc78
2020-01-30 15:31:51 -06:00
Zuul 5ad31be67a Merge "Use Tempest v21.0.0 for Queens testing instead of master" into stable/queens 2020-01-24 16:59:09 +00:00
Ghanshyam 4014fb8c52 Use Tempest v21.0.0 for Queens testing instead of master
Tempest and master and neutron-tempest-plugin queens tag is not
compatible for stable/queens testing.
More details on https://bugs.launchpad.net/tempest/+bug/1859988

Also py2 drop will start required the python 3.6 version for Tempest
master tests.

Because stable/queens is EM, let's pin the Tempest for its tesing
instead of putting more effort to make Tempest master run-able.

Tempest 21.0.0 is supported Tag for Queens so let's use that for Queens
testing instead of Tempest master.

Closes-Bug: 1859988

[1] https://docs.openstack.org/tempest/latest/stable_branch_support_policy.html

Change-Id: Id4861830c46867b313a5a705fc4722ac13471777
2020-01-23 16:54:53 -06:00
Zuul ba3e77b5ef Merge "do not gzip legacy service logs" into stable/queens 2020-01-23 15:39:34 +00:00
Zuul cff43f463d Merge "Add capability of adding additional network API extensions" into stable/queens 2020-01-23 15:05:41 +00:00
Zuul f58ecb3e75 Merge "Add Zuul v3 native unit-tests" into stable/queens 2020-01-23 11:03:18 +00:00
Sean Mooney ef37d5742a do not gzip legacy service logs
This change removes the .gz extension from the
service and syslog logs exported via journalctl.
This change nolonger gzip compresses the exported
logs so that they can be rendered in the browser
directly when served from swift.

Conflicts:
    roles/export-devstack-journal/tasks/main.yaml

Change-Id: I4557a737cb13b9c2406056be08ab8a32ddd45162
(cherry picked from commit d02fa6f856)
2020-01-22 01:27:21 +00:00
Andreas Jaeger 6591be1c2b Add Zuul v3 native unit-tests
Add new job to replace legacy-devstack-unit-tests.

Conflicts:
        .zuul.yaml

Change-Id: I4fe59b1954514a7146a4412e3103a0a05a9250f2
(cherry picked from commit 838b833b63)
2019-10-25 22:35:18 +00:00
Zuul 786c485cf6 Merge "Fix quoting for devstack_localrc arguments" into stable/queens 2019-10-23 07:41:00 +00:00
Ghanshyam Mann ab75fc6557 Add capability of adding additional network API extensions
Currently, devstack has NETWORK_API_EXTENSIONS var to define
the network API extensions. NETWORK_API_EXTENSIONS is defaulted
to 'all' for master and hard coded list of extensions per release.
Zuul jobs of network extensions (for example neutron-fwaas) need
add the some extra extensions in the default list. To do so, they
need to duplicate all the defaults extensions and then add the extra
extensions. Much difficult situation is when defaults extensions list
vary from release to release so they have to keep updating the
NETWORK_API_EXTENSIONS per release.

This commit defines a new var ADDITIONAL_NETWORK_API_EXTENSIONS which
will take extra extensions and append into the default list. This way
Zuul jobs do not need to duplicate the default extensions.

Change-Id: I7270c9b9e047a851970439522c0356c9089a5b74
(cherry picked from commit 52c2886f7e)
2019-10-07 18:17:59 +00:00
Daniel Mellado 46cd5ef70b Fix RedHat entry in apache_config_path
With CentOS 7, ansible is expecting to have RedHat as an attribute for
the dict so Discover configurations task fails with an undefined
variable error.

Closes-Bug: #1750573
Change-Id: I5bf9c4057ca9f75d730add9e429d0ef050c6d900
(cherry picked from commit 2e9e90b9a8)
2019-08-22 06:52:12 +00:00
Ian Wienand a250a41678 Fix quoting for devstack_localrc arguments
This is a combination of the following commits:
- "Quote devstack_localrc arguments"
  https://review.opendev.org/636078
  Ia63a53d745dfea7262bcdb5d46425f431c3ccfe5
- "Fix double quoting issue when writing localconf"
  https://review.opendev.org/648951
  I92146e04731efc6dcc632ae6c3a7c374e783cdba

They have been merged together because the first commit introduces
a bug, and it looks a bit pointless to deliberately introduce
a potentially breaking change on the process of backporting a fix.

Co-Authored-By: Ian Wienand <iwienand@redhat.com>
Co-Authored-By: Jens Harbott <j.harbott@x-ion.de>

Change-Id: Ia703af54a7131843fc2b0ae34efcfe0f5507acbf
(cherry picked from commit 2e1393621a)
2019-08-05 13:39:35 +02:00
Luigi Toscano b3a817956a zuul: new variable to easily populate TEMPEST_PLUGINS
TEMPEST_PLUGINS contains the list of the tempest plugins installed
alongside tempest by lib/tempest.
If TEMPEST_PLUGINS is not explicitly set, the new tempest_plugins
variable is used to fill it by combining its items with
the base devstack path.

Change-Id: I9f1fa2755e16871ff9d6ba33fdeaf3023eedf8d4
(cherry picked from commit 70d043dd60)
2019-07-26 12:04:38 +02:00
Luigi Toscano 9219134cb0 zuul job: write the enable_plugin lines last
Plugins must be the last items in the local.conf file
otherwise the configuration set in the rest of the file
is not applied to them (for example a different value of DEST.)

Change-Id: Ia001badca179c3f3436d5ecd26b0755a3f3a3078
(cherry picked from commit 610927f425)
2019-07-26 12:04:38 +02:00
Jens Harbott b80c66e730 Allow plugin names to contain non-letter characters
There are already devstack plugins that contain a hyphen in the name,
like `networking-baremetal`. In order to allow ordering for these to
work properly, amend the regexes we are using to match any
non-whitespace characters instead of only alphanumerics.

Amend the test to cover this use case.

Change-Id: I91093a424f8d5e8007f140083e1ea36a81fe849f
Closes-Bug: 1809016
(cherry picked from commit 0b855007f8)
2019-07-26 12:04:38 +02:00
Jens Harbott 7b001f5d6c Fix testing for the write-devstack-local-conf role
The test_plugin_deps function in the test code for the
write-devstack-local-conf role was missing the import part of actually
executing the code under test and asserting the expected result.

Change-Id: I125870b13d2581cdec0dede11157b19b702565cd
(cherry picked from commit 6d103a7ff8)
2019-07-26 12:04:38 +02:00
Zuul 2281642c88 Merge "Fix rdo-release install" into stable/queens 2019-07-26 09:56:47 +00:00
Luigi Toscano 93a385c005 iniset: fix handling of keys with spaces
Ceph for example uses them. Creation already worked, but not
updates of existing keys.

Closes-Bug: 1774956

Change-Id: I20cb61c08079b9cd9ad56ac875525abf1442bff6
(cherry picked from commit c7c67658c1)
2019-07-21 16:28:08 +02:00
Carlos Goncalves 6f3696c168 Fix rdo-release install
The URL for rdo-release package is version-less and redirects to latest
stable version. This becomes problematic when stacking older stable
versions as dependencies might not be met or newer and incompatibile
ones might get installed.

Closes-Bug: #1833696

Change-Id: Icb07dcb4c9a3950a3c31a3a8dcb8d0b4c713fdb1
(cherry picked from commit 8b31dce38b)
(cherry picked from commit fb3b6e4baa)
(cherry picked from commit ed120e335f)
2019-07-09 13:33:13 +00:00
Vlad Gridin e3100794d1 Fix installing tempest plugins
When running stack.sh locally on stable branches
with tempest enabled and TEMPEST_PLUGINS set,
devstack will try to fetch master branch of requirements
and that fails if branch is not tracked.

Change-Id: Ia1ae6869a8fede2af5cd7c875e0946b6a75eb518
Closes-Bug: #1820051
(cherry picked from commit bcd8a50cc6)
2019-06-17 22:30:22 +00:00
Dean Troyer fb9d5c80c2 Update repo namespace search list
With the new namespaces we have to look around a bit more to find
repos top copy into the DevStack working directory. Add:

* opendev/
* starlingx/
* x/
* zuul/

Change-Id: I8a55522a5fee46f415f0c0ce580ded3476133460
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
2019-04-24 13:52:43 +00:00
OpenDev Sysadmins 1267eca36b OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:43:18 +00:00
Ian Wienand 72e80739bc Role apache-logs-conf: fix redhat matching
Ansible complains:

  The task includes an option with an undefined variable. The error
  was: 'dict object' has no attribute 'RedHat'

which is just a mismatch on the "Redhat" string

Change-Id: I447038256561740c224c68388fa5b6a068cc8fed
(cherry picked from commit a9e946471e)
2019-04-09 23:46:36 +02:00
whoami-rajat 3152bdf0d7 Fix : sort variables fetched from env list
In bionic, when exporting env variables, the env list displays
variables in unsorted format.
While fetching we are getting 'https_proxy' before 'http_proxy'
which is failing in comparison to our expected values[1].
This patch sorts the variables fetched from env.

[1] http://logs.openstack.org/30/643130/3/check/devstack-unit-tests/effbf7a/job-output.txt.gz#_2019-03-13_23_12_35_465026

Change-Id: Ie504eabf0d3fec1b97bc711e2702c06bcf75d158
(cherry picked from commit deadc7c439)
2019-03-22 11:38:07 +00:00
Ian Wienand f99fffb6d7 Replace openstack.org git:// URLs with https://
This is a mechanically generated change to replace openstack.org
git:// URLs with https:// equivalents.

This is in aid of a planned future move of the git hosting
infrastructure to a self-hosted instance of gitea (https://gitea.io),
which does not support the git wire protocol at this stage.

This update should result in no functional change.

For more information see the thread at

 http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003825.html

Change-Id: I64b3a317fdde1f2cabee071c7a26b0f2bf10cc5c
2019-03-22 01:35:39 +00:00
Lenny Verkhovsky e9cbcba53a Fixed git show for upper-constraints.txt in lib/tempest
Change-Id: Id133108e0436018be81fca74a15ff29a4fe2e796
Closes-Bug: #1789643
(cherry picked from commit 6465219ec3)
2019-03-14 18:12:02 +00:00
Zuul 4052350d9c Merge "Remove use of git -C option from tempest venv creation" into stable/queens 2019-03-14 15:09:06 +00:00
Zuul dd575f7f38 Merge "Use master upper-constraints when installing tempest plugins" into stable/queens 2019-03-13 20:03:48 +00:00
Sam Betts 6b7937bf20 Remove use of git -C option from tempest venv creation
The -C option is not available in git versions older than "1.8.5" which
are still shipped by several distributions including centos 7.

Due to this incompatibility the patch has broken third party CI for
Cisco on Ironic.

Change-Id: I09a6f83f8b2fee870e6e1c50cbfdf2da4d70dfb2
(cherry picked from commit db5a5b3c20)
2019-03-12 23:58:26 +00:00
Zuul 7a882a17f7 Merge "use master upper-constraints when building tempest venv" into stable/queens 2019-03-12 23:45:31 +00:00
ghanshyam e89179e82f Use master upper-constraints when installing tempest plugins
when tempst venv is build, it use the master upper_contraint[1]
but when we install tempest plugin, it use branch upper_contraint.

This leads to mismatch the dependency version between tempest and required
tempest plugins setup.

Current flow after this change is:

1. install tempest form master (until you explicitly change TEMPEST_BRANCH
   which is default to master in all stable branch). It applies the upper_constraint
   from the stable branch but that will be overridden in step2
2. configure tempest, here the created venv will install all dependency with
   master's upper_constraint.
3. install tempest plugins in same venv created above. Now tempest plugin
   will also use the master upper_constraint.

With this tempest venv which has all enabled plugin will be contsraint with
master.

[1] https://github.com/openstack-dev/devstack/blob/72f632222f6d90d3545b5d7ca48297da4218e2ea/lib/tempest#L590

Change-Id: I89314e8391e8f26c622fc090cbe27997b3cf049a
Closes-Bug: #1816022
(cherry picked from commit 0d83e09464)
2019-03-12 18:14:34 +00:00
Zuul e98e7d5ae3 Merge "Enable nova VNC configuration on the subnode" into stable/queens 2019-02-27 14:00:34 +00:00
Claudiu Belu e06cc1558b use master upper-constraints when building tempest venv
The local requirements repo can be checked out to a stable branch,
in which case, the requirements might conflict with tempest's master
requirements.

Master branch's upper-constraints should be used when building tempest's
venv.

Closes-Bug: #1706009

Change-Id: Ifd64638cae2886671421149dbbff3a57f9c64257
(cherry picked from commit 34c1679f2e)
2019-02-27 05:44:49 +00:00
Andrea Frittoli (andreaf) 25daf8940f Enable nova VNC configuration on the subnode
The n-novnc service only runs on the controller node, however novnc
settings must be enabled on both nodes for vnc to work, since both
hosts are compute hosts.

Change-Id: Icc29441f507e6e4df9fd900eb7f35b0862f52043
(cherry picked from commit 05da9a9b1e)
2019-02-26 13:49:45 +00:00
Andrea Frittoli 82d7774555 Ensure passwordless ssh with stack between nodes
For compute migration to work, the stack user needs to be configured
with passwordless ssh between all hosts involved in the migration.

Reuse the build ssh-key for this, which is already distributed for
user root.

Depends-on: https://review.openstack.org/563584

Change-Id: Id07f55fea06509466add35315c135dbfba6aa714
(cherry picked from commit afe1414019)
2019-02-26 13:49:10 +00:00
Matt Riedemann c7114582c0 Restrict database access to nova-compute in singleconductor mode
Change I4820abe57a023050dd8d067c77e26028801ff288 removed access
to the database for the nova-compute process but only in
superconductor mode. Grenade runs in singleconductor mode though
so we are getting tracebacks in nova-compute logs during grenade
runs because nova-compute is running with nova.conf which is
configured with access to the nova API database.

This change handles removing database access for nova-compute
generically to cover both the singleconductor and superconductor
cases.

Conflicts:
      lib/nova

NOTE(mriedem): Conflict is due to not having change
I2a98795674183e2c05c29e15a3a3bad1a22c0891 in stable/queens.

Change-Id: I81301eeecc7669a169deeb1e2c5d298a595aab94
Closes-Bug: #1812398
(cherry picked from commit 8253787137)
(cherry picked from commit 1b2408b4f3)
2019-01-21 09:25:25 -05:00
Dan Smith ffb6cf7b4a Make sure nova-compute is not configured with database access
Apparently we're inheriting some database config from the main file,
which should not be set for nova-compute. If we're properly in superconductor
mode where we have a dedicated config for compute, remove those lines
if present.

Closes-Bug: #1797413

Change-Id: I4820abe57a023050dd8d067c77e26028801ff288
(cherry picked from commit 7d0003ef7e)
2018-12-13 23:19:25 +00:00
Daniel P. Berrange fad20e605c nova: add support for TLS between novnc proxy & compute nodes
Nova is gaining the ability to run TLS over the connection between the
novnc proxy service and the QEMU/KVM compute node VNC server.

This adds a new config param - 'NOVA_CONSOLE_PROXY_COMPUTE_TLS=True' -
which instructs devstack to configure libvirt/QEMU to enable TLS for the
VNC server, and to configure the novncproxy to use TLS when connecting.
NB this use of TLS is distinct from use of TLS for the public facing API
controlled by USE_SSL, they can be enabled independently.

This is done in a generic manner so that it is easy to extend to cover
use of TLS with the SPICE and serial console proxy services too.

Change-Id: Ib29d3f5f18533115b9c51e27b373e92fc0a28d1a
Depends-on: I9cc9a380500715e60bd05aa5c29ee46bc6f8d6c2
Implements bp: websocket-proxy-to-host-security
(cherry picked from commit e9870eb18d)
2018-11-28 15:08:27 +00:00
James E. Blair 97f88fc4e2 Add the project under test to LIBS_FROM_GIT
This automatically always adds the project under test to LIBS_FROM_GIT
which effectively makes the normal "tempest full" job the same as the
"forward testing" job when it is applied to a library repo.

Change-Id: Ibbdd8a86e0ff55f67bef73e08e693b34a61b24df
(cherry picked from commit 8e5f8c29b2)
2018-09-18 17:06:03 +02:00
James E. Blair 27331589e2 Automatically set LIBS_FROM_GIT based on required projects
If a project shows up in zuul's required-projects list, add it
to LIBS_FROM_GIT automatically.  This way, when a user specifies
that a job requires a zuul-project, it gets used in testing, but
otherwise, it doesn't (pypi is used instead).

Also add information about what happens behind the scenes for both
LIBS_FROM_GIT and plugin dependencies.

This moves the check performed in check_libs_from_git to
a helper function which is installed for most kinds of
installations.  This means that if someone sets LIBS_FROM_GIT to
"foobar", devstack won't error anymore, as nothing is going to
try to install foobar, therefore the check won't run on that.
However, as we move to automated generation of the local config,
that error is not likely to happen.  This check was originally
added due to an error in the upper-constraints file (where a
constraint name did not match a package name).  This location of
the check would still catch that type of error.

Change-Id: Ifcf3ad008cf42d3d4762cfb3b6c31c93cfeb40db
(cherry picked from commit e1edde38ed)
2018-09-18 17:05:48 +02:00
James E. Blair b11da3f3cf Zuul: support plugin dependencies
Change-Id: I81302e8988fe6498fea9f08ed66f5d0cc1fce161
(cherry picked from commit 6f27fca4a7)
2018-09-18 17:05:42 +02:00
Andreas Jaeger cc3750013b Follow job renames
the swift and devstack-plugin-ceph jobs have been renamed, follow rename
and use in-repo jobs.

Depends-On: https://review.openstack.org/543048
Change-Id: Idccc21e47b2cc04e5eeab4db7f7fb7cf156f8049
2018-09-12 09:35:47 +00:00
Doug Hellmann 2ef1826db7 import zuul job settings from project-config
This is a mechanically generated patch to complete step 1 of moving
the zuul job settings out of project-config and into each project
repository.

Because there will be a separate patch on each branch, the branch
specifiers for branch-specific jobs have been removed.

Because this patch is generated by a script, there may be some
cosmetic changes to the layout of the YAML file(s) as the contents are
normalized.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: Id496c2eea5d761f2f8f42f33a5a6a862bd31c5f0
Story: #2002586
Task: #24327
2018-09-12 09:35:36 +00:00
Monty Taylor eee6524d09 Extract a devstack-minimal base job
For folks who are doing functional testing with less than the full set
of normal base services. Should be a no-op/ignorable for most people.

Change-Id: If14ee018c01995e0a5b6bcdaac9ddc8810c6d503
(cherry picked from commit 4d7e337576)
2018-09-08 15:31:35 +02:00
Zuul 935ae3f73a Merge "Fix TEMPEST_AUTH_VERSION comparision condition for identity v2" into stable/queens 2018-08-14 01:28:16 +00:00
Zuul a24e707724 Merge "Register versioned endpoint for block-storage service" into stable/queens 2018-08-13 02:57:34 +00:00
Paul Belanger 96aaeda08e Add fedora-28 support
This is needed for the barbican projects, which will now be running
fedora-28 images on stable/queens.

Change-Id: I9c500f7353a668f0ce15de45216ca1ba715b7900
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-08-10 14:46:32 +00:00
Ian Wienand cd517afc6d Switch to dnf when it exists
This has all been around for a *long* time, like when dnf was a weird
new thing.  Now it's the opposite and yum is a weird old thing :)
Choose it by default for platforms with it (Fedora, for now).

Change-Id: Id2bd7d145354b996de31944929fd0267ec24a08e
(cherry picked from commit 7f33552d34)
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-08-10 10:45:48 -04:00
Monty Taylor d60707e88d Register versioned endpoint for block-storage service
cinder does not yet support operations without project_id in the url.
The unversioned endpoint is not a usable endpoint for a user that
requests the block-storage service. Although it would be lovely to have
the block-storage service have the unversioned endpoint in the catalog,
we need to get project-id out of the urls first.

Change-Id: I4246708b6ea31496ba4d565ab422abc76f730ee7
Needed-By: https://review.openstack.org/564494
(cherry picked from commit 69057d4655)
2018-08-09 10:10:02 +08:00
ghanshyam 1089e96d04 Fix TEMPEST_AUTH_VERSION comparision condition for identity v2
TEMPEST_AUTH_VERSION should be 'v3' or 'v2' not 'v2.0'.
To disable the identity v2 admin tests TEMPEST_AUTH_VERSION is
being compared with 'v2.0' which is incorrect.

Change-Id: I5f7e3bcf733edbbee06016bcad4845dda552815e
2018-08-07 08:41:11 +00:00
ghanshyam c246367db0 Cap the api_extensions for tempest config
This commit cap the api_extensions config options
for cinder, neutron and swift.

api_extensions config option on tempest side is default to 'all' [1]
which means all extensions are enabled on gate. Tempest test are
skipped based on extensions availability in api_extensions config
options.

On master, each project keep updating(adding or removing) their
extensions lists which will not be present on stable branches, 
so we need to cap the api_extensions on devstack side
to configure the Tempest for stable branch.

This way we enable Tempest to run on stable branch gate with actual
extensions present on that branch not with 'all'

Currently cinder, swift and neutron have extensions concept.

[1] https://github.com/openstack/tempest/blob/25572c3b5512aa3ecc949b926af1e1fd64fddfd9/tempest/config.py#L646

Change-Id: I0705f551e684a202802cb87104ca186ed7fc1a3f
2018-08-06 08:04:53 +00:00
Paul Belanger f97a6c3d67 use fqdn for zuul projects
When setting up a 3pci zuul, there is an edge case where a downstream
zuul may already have openstack/foo projects, eg:
review.rdoproject.org/openstack/foo.  In this case, if openstack
projects are not namespaced to include the connection information zuul
gets confused and complains.  We can avoid this by using the fqdn for
git.o.o for devstack jobs and both upstream and downstream zuul will
properly use the correct connection.

Change-Id: I01419ea9f51ce7491aa319b6240aec9c0d4f2356
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
(cherry picked from commit ef3571338a)
2018-07-12 07:38:52 -04:00
Daniel Mellado fec37dada3 Apply contraints to tempest plugins
This commit applies the constraints for the tempest plugin installation
so they won't go over the upper reqs.

Closes-Bug: 1763436
Change-Id: I5cf91157bbdae79dec01d5b3db32efea21f1b2b7
(cherry picked from commit dc5d88bc0b)
2018-04-20 17:57:16 +02:00
Zuul 2b65fbd6b4 Merge "Fix devstack job: the dict name is devstack_local_conf" into stable/queens 2018-04-19 09:37:50 +00:00
Zuul 279aed2b40 Merge "Enforce linear strategy for orchestrate-devstack" into stable/queens 2018-04-18 10:38:37 +00:00
Zuul ba975bbb21 Merge "Fix multinode mode for devstack" into stable/queens 2018-04-18 10:31:37 +00:00
Hongbin Lu 6676f25a27 Do not use pip 10 or higher
It looks pip 10 failed the uninstallation of distutils installed
packages. This patch temporarily cap the version of pip to work-around. 

Closes-Bug: #1763966
Change-Id: I8bf80efc04883cd754c19bea0303064080112c6e
(cherry picked from commit f99d1771ba)
2018-04-15 18:17:39 +00:00
Luigi Toscano 3a19ac074f Fix devstack job: the dict name is devstack_local_conf
It looks like a typo.

Change-Id: Id017b169f25a7589da3eca509c28f5d867fd5962
2018-04-13 14:55:52 +01:00
Andrea Frittoli da5c918d73 Enforce linear strategy for orchestrate-devstack
Document that orchestrate-devstack requires a linear strategy in the
invoking play. Also enforce the strategy in devstack.yaml.

Change-Id: Ia081225ec2be959fc5a4ddfd491f526296a8ca10
2018-04-13 14:55:52 +01:00
Andrea Frittoli e1cda1ca59 Fix multinode mode for devstack
Extend the devstack job so that it can support both single and multinode
cases.  Multinode mode require extra settings in devstack configuration,
some of which as subnode specific, some controller specific.

Also keep a simple devstack-multinode job defined for now so we can run
a multinode job in devstack gate, until the full tempest multinode job
is ready to match the old
gate-tempest-dsvm-neutron-multinode-full-ubuntu-xenial-nv.

Fixing multinode also requires sharing the CA configuration between
controller and peers, overlay network configuration for communication
between virtual machines and running discover_hosts for nova after the
subnode has been setup.

The extra orchestration required for multinode is encoded in a
dedicated role to allow for jobs in other repos to re-use it.

This backport is slightly modified from the original, since master does
not use the test-matrix anymore, while on stable branches we still rely
on it.

Change-Id: I2dcbd9bdb401860820e655d97aa3c4775af2827f
2018-04-13 14:55:50 +01:00
Zuul fb65c9d3f9 Merge "neutron: Do no longer set "url" in nova.conf" into stable/queens 2018-04-13 12:34:46 +00:00
Zuul 61e3095615 Merge "Add project_tags identity feature flag" into stable/queens 2018-04-13 12:06:24 +00:00
Zuul 6c3606bd44 Merge "Stage .localrc.auto" into stable/queens 2018-04-13 11:08:05 +00:00
Zuul 904bb5620a Merge "Ensure that stack home is owned by stack" into stable/queens 2018-04-13 10:42:21 +00:00
Zuul 42a0613929 Merge "Define devstack-base abstract job" into stable/queens 2018-04-13 10:42:05 +00:00
Andrea Frittoli (andreaf) f0a7b22b56 Stage .localrc.auto
Change-Id: I9beb713a0b037e0229b13fd13d7d4de156ed0b59
Depends-on: https://review.openstack.org/544606
2018-04-10 09:27:48 +01:00
Andrea Frittoli c0e1d3b341 Ensure that stack home is owned by stack
The role that sets up the user and its home folder must ensure that
the home folder is owned by stack as well.

Change-Id: I2e72d7b9d68a2a14f8a148ef82cbb3f569bd1cea
2018-04-10 09:27:20 +01:00
Paul Belanger b543369a25 Only cache ETCD tarballs for amd64.
Multiarch versions of ETCD only exist for v3.2.x, this means when we
try to cache etcd-v3.1.10-linux-arm64.tar.gz for nodepool-builder, we
are not able to find it.  Breaking our image builds.

Change-Id: I61656cbd71173b1904c7fe70af91b3873acc4d50
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-04-02 12:22:11 -04:00
Zuul ca62e563f2 Merge "Allow public router external net to use a non-flat provider network." into stable/queens 2018-03-30 15:27:46 +00:00
Felipe Monteiro eaa29087df Add project_tags identity feature flag
This PS adds the project_tags identity feature flag which allows
identity v3 project tags API functionality to be enabled for
releases after Pike. Once Pike is no longer supported in Tempest
this feature flag can be removed.

This feature was implemented in Queens [0].

[0] https://docs.openstack.org/releasenotes/keystone/queens.html

Depends-On: Ibaec1df79c9ac69c65cf5075c3519092bc609546
Change-Id: Iec6b34c10ea1bd7103720c773b48ce130643115d
(cherry picked from commit 1ab9a2d144)
2018-03-22 20:42:18 +00:00
Tim Swanson f1fa7fc86b Allow public router external net to use a non-flat provider network.
Allow users to auto-create a neutron non-flat providernet public network
and use it for external router interfaces.  By default, keep the existing
flat network type behavior.

Change-Id: I64f71b0c9fcac97b9b84b7d30ee61659b2a690f1
(cherry picked from commit bb7d2f233b)
2018-03-21 16:55:20 +00:00
IWAMOTO Toshihiro 58f1f6d04e Break up fixup_stuff
Neutron functional tests want to use ubuntu cloud archive but it's
not possible to source the fixup_stuff.sh from a neutron CI setup
script. Break it up so that only the UCA portion can be executed
from neutron.

Change-Id: Ie18833bfa30f1789e63cbe9c86f5ece3453f43fb
(cherry picked from commit 4d835e33b6)
2018-03-21 10:57:40 +00:00
Thomas Bechtold 2f0858e25c neutron: Do no longer set "url" in nova.conf
Since[1], "url" in the [neutron] section in nova.conf should no
longer be set.

[1]
https://github.com/openstack/nova/commit/6cde77ebbab85bc8ccd2ab7ad977b1d4af4a13fa

Related-Bug: #1752289
Change-Id: Ied6c155da9d51a25ba7a524e69d018d39ed3442c
(cherry picked from commit ca61966f47)
2018-03-19 15:05:32 +00:00
Zuul bb0c101c0c Merge "Cap max microversions for queens" into stable/queens 2018-03-13 02:28:44 +00:00
Zuul 661b186554 Merge "Increse api_max_retries and api_retry_interval for ironic" into stable/queens 2018-03-08 22:17:00 +00:00
Josh 95ce0a2539 Restore NEUTRON_CREATE_INITIAL_NETWORKS flag
Somehow this feature was lost in the transition
from q-svc to neutron-api. This patch does not
modify the default behavior but allows specifying
the flag to false to prevent devstack from creating
the public and private networks.

Change-Id: I952672496d007552c0c4d83db0d0df9be50326fc
Signed-off-by: Josh <jhershbe@redhat.com>
(cherry picked from commit 8f7216290a)
2018-03-07 09:16:50 -06:00
Andrea Frittoli 473ce177a9 Define devstack-base abstract job
Define an abstract job devstack base that does not require any
project apart from devstack. This job defines basic devstack_localrc
settings that are common to any devstack job (mostly to work with
infra) and devstack_services to emit "disable_all_services" so to
cancel any devstack default.

The variables are defined as global ones as well as host-vars for
the controller and group-vars for peer nodes, so that any
descendent job may extend them, thanks for Zuul dict merging.

Change-Id: I2cdb723f6ee209683044fecec59ff7b510a2752b
2018-03-06 18:56:23 +00:00
ghanshyam abe9fd826a Cap max microversions for queens
This commit cap the max microversions for compute
and volume API for queens.

compute- https://docs.openstack.org/nova/latest/reference/api-microversion-history.html#maximum-in-queens
volume- https://docs.openstack.org/cinder/latest/contributor/api_microversion_history.html

Change-Id: I4a674fb621c69f035cec68cc6163eca5925e99d5
2018-03-06 13:30:55 +03:00
Zuul 0f65575b5f Merge "Update branches for stable/queens" into stable/queens 2018-03-01 09:11:56 +00:00
Vasyl Saienko 851bc53dfa Increse api_max_retries and api_retry_interval for ironic
There is no way to upgrade ironic before nova because of
grenade design. In multinode job we do not restart nova
as we test partial upgrade of ironic there.
On slow nodes upgrading ironic takes time and nova looses
ironic connectivity

This patch increases api_retry_interval and api_max_retries
to make sure we have a time to upgrade ironic before nova
compute stuck.

Change-Id: I3b1429d6561431a82edda04a0e574cac38771837
2018-02-28 08:36:54 +00:00
Jens Harbott 12a9f246ef Create NOVA_READY_TIMEOUT in is_nova_ready function
The function was introduced in [0] using a hardcoded timeout of 60
seconds which turns out to be too small on slow machines. Create a new
global variable NOVA_READY_TIMEOUT instead so that users can
override the timeout if necessary.

[0] I32eb59b9d6c225a3e93992be3a3b9f4b251d7189

Co-Authored-By: Mohammed Naser <mnaser@vexxhost.com>
Change-Id: I0cd7f193589a1a0776ae76dc30cecefe7ba9e5db
2018-02-23 21:53:28 +00:00
Sean McGinnis bf9a2a6c1a Update branches for stable/queens
Change-Id: I861068ae1a9902cef61c52c70dda7bb42f4371a0
2018-02-20 07:25:51 -06:00
Sean McGinnis fd9b8c31a2 Centralize setting default branch for stable branching
One of the steps when we create a new stable branch is to
branch devstack, then update the default branch for most
repos to use the new stable branch for each repo.

This requires making multiple updates throughout stackrc,
and to further complicate things, there are some repo
branch variables for branchless repos that should not be
updated along with the others.

This can be error prone if not fully aware of these
exceptions. To simplify this process a little, this
patch adds two common variables - one that can be set to
the new stable branch name for all of the repos that
should be branched, and one that can be used for all of
the branchless repos to make it explicit that those
values should be left alone. The cycle-trailing repos
have until two weeks after final release to branch, so
also adding another variable for those to make it easy
to update them at a later time, separately from the
other repos.

Change-Id: I82aa19e739eeda3721bac1cb5153ad0bf2d1125a
(cherry picked from commit a492206700)
2018-02-20 07:24:06 -06:00
OpenStack Release Bot 96f05a88dd Update .gitreview for stable/queens
Change-Id: Ie7dde41529a69ffa460d050c7d2835613725a9b0
2018-02-14 17:57:39 +00:00
Zuul 47467acf2f Merge "Move extensions_to_txt to the job defintion" 2018-02-09 12:29:21 +00:00
OpenStack Proposal Bot 34b4ff0bfd Updated from generate-devstack-plugins-list
Change-Id: I681735a1c29e4b41eb9fa71c2838df1a820f5f75
2018-02-08 06:15:13 +00:00
Zuul fbdefacc1d Merge "Drop django_openstack_auth related code" 2018-02-05 03:42:45 +00:00
Zuul b5683ea47d Merge "Add pcre-devel for opensuse" 2018-02-05 03:15:13 +00:00
Zuul a902037bb7 Merge "CentOS: Fix EPEL mirroring and RDO install on CI nodes" 2018-02-05 03:14:10 +00:00
Ian Wienand b355a9489f Add pcre-devel for opensuse
As a follow-on for I59fc688519341c90dc33b79d536f0625a6c4dd17 add to
suse as well.

Change-Id: I72a3cf33cb98ee2eca7f027c9e28f6fbf1404002
2018-02-05 10:54:48 +11:00
Andrea Frittoli (andreaf) 63171eeae2 Move extensions_to_txt to the job defintion
Move extensions_to_txt to the job defintion so that it may be
extended by descendant jobs.

Depends-on: https://review.openstack.org/540485/

Change-Id: I6e9009faa1451698ed781ce1ffdd9f22c97daa93
2018-02-02 18:45:40 +00:00
Zuul 34564fd616 Merge "Updated from generate-devstack-plugins-list" 2018-02-02 16:28:32 +00:00
Zuul 85f990b1f5 Merge "Zuul: Remove project name" 2018-02-02 16:28:30 +00:00
James E. Blair 6e316daf45 Zuul: Remove project name
Zuul no longer requires the project-name for in-repo configuration.
Omitting it makes forking or renaming projects easier.

Change-Id: I32868cec22149ec1c18fe2737a65e88d32bff531
2018-02-02 03:48:46 -08:00
Zuul 55e461b11c Merge "tempest: set compute-feature-enabled.volume_multiattach" 2018-02-02 03:41:17 +00:00
Zuul 83ed9ab128 Merge "Move zuul_copy_output to be a job variable" 2018-02-02 02:02:25 +00:00
OpenStack Proposal Bot bf1e6e7a34 Updated from generate-devstack-plugins-list
Change-Id: Idda642196d42d6ae930f4978c88c1b53124b7ead
2018-02-01 06:18:22 +00:00
Zuul 27ad349229 Merge "Remove libpcre3-dev&pcre-devel from horizon prerequisite" 2018-02-01 04:06:01 +00:00
Monty Taylor a904caded4 Move zuul_copy_output to be a job variable
The zuul_copy_output variable is designed to be able to be used as
a zuul job variable so that zuul dictionary merging will work. However,
it's currently being set in the playbook rather than as a job variable,
so it's not possible to supplement it in a child job.

Move it to be a job variable. Also remove the wrapping {} as they should
not be needed to make zuul_copy_output a dictionary.

Change-Id: I78c7fed47c2ab868384c74dbff7904d33d510dd9
2018-01-31 14:40:39 -06:00
Zuul 7916735cff Merge "Remove glance api_servers from nova config" 2018-01-31 12:44:43 +00:00
Zuul 632d87a17c Merge "Create block-storage endpoint for cinder" 2018-01-31 08:27:54 +00:00
Jianghua Wang 540141cc1c Remove libpcre3-dev&pcre-devel from horizon prerequisite
As libpcre3-dev&pcre-devel are now added as general prerequisite,
remove it from horizon prerequisite.

Change-Id: I872aec210028373c39baee0ab846469fd9920de9
2018-01-31 02:57:19 +00:00
Zuul 1af2bea823 Merge "Add the dependent package for python-pcre installation" 2018-01-31 01:48:10 +00:00
Zuul 4f32bff459 Merge "Updated from generate-devstack-plugins-list" 2018-01-31 01:48:07 +00:00
Zuul 640150683d Merge "use openstack command instead of nova command" 2018-01-29 16:35:56 +00:00
shutingm 744a829ce0 Add the dependent package for python-pcre installation
This patch add libpcre3-dev and pcre-devel package for python-pcre
installation.

Closes-Bug: #1745606

Change-Id: I59fc688519341c90dc33b79d536f0625a6c4dd17
2018-01-29 02:11:17 -08:00
Zuul 5fb35b4f2b Merge "Added the ability to specify checksum for etcd" 2018-01-26 12:47:48 +00:00
OpenStack Proposal Bot 7f3248229b Updated from generate-devstack-plugins-list
Change-Id: I0648e5cd08bb88d5972726241da3d396ad1d0129
2018-01-26 06:19:49 +00:00
Zuul 66c893f25c Merge "Bump the Cinder LVM backing file size to 24Gb." 2018-01-25 19:26:49 +00:00
Ryota MIBU 842d54a299 use openstack command instead of nova command
In function 'get_instance_ip', 'nova' client command is used to get
instance information in order to retrive IP address of the instance.

There is no need to use the nova command, since 'openstack' client
already supports such basic operation.

Moreover, 'openstack' client has an option to get value of specified
column. That brings more accurate way of retriving IP address.

This patch replaces nova command in 'get_instance_ip' by 'openstack'
command. Note, this nova command is the only one in devstack tree.

Change-Id: Iee0b81a994a4da5b3f4572c2e8eb30514cd43f89
Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
2018-01-24 23:52:56 +09:00
Zuul 614cab33c4 Merge "Remove hack for ubuntu cloud archive" 2018-01-21 22:08:24 +00:00
Monty Taylor 0b45e2f8e8 Remove hack for ubuntu cloud archive
There is a hack here to set up ubuntu cloud archive, pinning it to
mirror.dfw.rax.openstack.org. The mirror-info role seems to be doing
this correctly now though, so let's remove the hack and let things work
normally.

Change-Id: I283cb3452245b64e9492806f06404b484f21c358
2018-01-18 17:41:04 -06:00
Matt Riedemann ffe691ecd5 tempest: set compute-feature-enabled.volume_multiattach
This adds the ENABLE_VOLUME_MULTIATTACH flag and if True
configures Tempest to run volume multiattach tests.

Note that due to https://bugzilla.redhat.com/show_bug.cgi?id=1378242
we can't run multiattach tests with the Pike UCA packages since
those include qemu 2.10 and libvirt 3.6, and the valid versions for
multiattach support with libvirt is qemu<2.10 or libvirt>=3.10.

Depends-On: I80c20914c03d7371e798ca3567c37307a0d54aaa
Depends-On: I158c6f20e3e6a24bd2e5299abbeb3fc5208e5885

Part of nova blueprint multi-attach-volume

Change-Id: I46b7eabf6a28f230666f6933a087f73cb4408348
2018-01-18 18:00:04 +01:00
Zuul b5841fa5d6 Merge "Remove deprecated 'deactivate_image' feature flag setting" 2018-01-18 12:09:14 +00:00
Zuul 9db83628e6 Merge "Modified the subnet-range parameter to be optional" 2018-01-18 03:47:32 +00:00
Zuul c5c7d8f37e Merge "Switch to consolidated fetch-subunit-output role" 2018-01-17 20:31:33 +00:00
Peter Penchev 6bcd8cad16 Bump the Cinder LVM backing file size to 24Gb.
This follows a change made to devstack-gate in commit 841ebc3 to allow
tempest to succeed even if it happens to run several volume tests in
parallel.  Right now it's possible for a tempest-full test (run without
devstack-gate) to fail with an "Insufficient free virtual space" error in
the cinder-scheduler log.

Suggested by: Clark Boylan <clark.boylan@gmail.com>
Closes-Bug: 1743597
Change-Id: I16ccb9976d1bc7c9f56a6a4d73e35042a5867ef9
2018-01-16 18:05:06 +02:00
Zuul db0d40ebd5 Merge "Initialize newly added glance-image-import config file" 2018-01-16 10:53:07 +00:00
Zuul 67d26e2161 Merge "Fix Python3 get_python_exec_prefix on Fedora 27" 2018-01-15 13:48:07 +00:00
Zuul b1f632c3ab Merge "Updated from generate-devstack-plugins-list" 2018-01-15 11:04:28 +00:00
Ian Wienand dc04b5aa24 CentOS: Fix EPEL mirroring and RDO install on CI nodes
CentOS tests have reverted to using upstream for EPEL rather than
local mirrors, introducing some unnecessary instability.  The root of
the problem is that /etc/nodepool/provider disappeared with zuulv3, so
we now always re-install the EPEL repo and overwrite the local EPEL
.repos files that were made during test setup and point to local
mirrors.

The other change is that we stopped installing the RDO repositories on
the testing nodes too.  That we were incorrectly taking this path and
reinstalling EPEL has hidden the removal of these packages from the
base image in the test, since it ends up installing them too.

Split the install into two parts -- epel and RDO.  Check for
/etc/ci/mirror_info.sh (the sourcable mirror script provided by base
test setup) and if so, just enable EPEL so we get the CI-mirror
version correctly.  Install the RDO repositories (if not already
installed) unconditionally.

Change-Id: Iccb045a6695deb10da4d68a5694e1fa45ccbb810
2018-01-15 08:24:06 +11:00
Zuul e611c1568b Merge "Add Fedora 27 support" 2018-01-13 12:44:56 +00:00
Zuul e5b9755d79 Merge "Update supported Ubuntu releases" 2018-01-13 12:44:55 +00:00
OpenStack Proposal Bot 4eb998fd5a Updated from generate-devstack-plugins-list
Change-Id: I6b1214c9b080fbad43609548bf89be50c8191d87
2018-01-13 06:17:40 +00:00
Zuul b09e9b9b48 Merge "devstack job: Add irrelevant-files" 2018-01-12 09:58:48 +00:00
ghanshyam 23e87ef618 Remove deprecated 'deactivate_image' feature flag setting
'deactivate_image' feature flag was added long back during kilo
cycle. Tempest is going to remove this feature flag.

Depends-On: I843d4c64f24407d9d217005d5ea59d50d7ad62e7
Change-Id: I1ae8efc0e62acc5e05c1c00dc8970b74d8b16da0
2018-01-12 00:14:04 +00:00
Attila Fazekas 9fd38e7970 Add Fedora 27 support
Removing the (f23,)f24 support they are EOL.
The only non-trivial change is the apache-httpd default worker change,
however might not be bad idea to use `event` instead of `worker`
in the future, but for now keep it AS-IS and continue to use `worker`.

Change-Id: I96d414a30b58bc4b43da45066fdf310a6a830079
Closes-Bug: #1740194
2018-01-11 16:19:36 +01:00
Zuul 63ed03cc59 Merge "Gzip openstack service logs" 2018-01-09 21:22:50 +00:00
Victor Stinner b9891eea1f Fix Python3 get_python_exec_prefix on Fedora 27
On Fedora 27, the default Pytho 3 install prefix changed from /usr
to /usr/local:
https://fedoraproject.org/wiki/Changes/Making_sudo_pip_safe

Closes-Bug: #1741901
Change-Id: Id40620efdf173189df053b5d380a801092933f83
2018-01-09 11:22:39 +01:00
Zuul a2a7e94f97 Merge "Configure nova_cell1.conf to use placement for reschedules" 2018-01-09 04:58:54 +00:00
Zuul 11896a523b Merge "Fix "Centos" to official notation "CentOS"." 2018-01-09 04:41:33 +00:00
Shachar Snapiri fe4c3cfcf5 Modified the subnet-range parameter to be optional
The subnet-range parameter is only sent now if a valid value exists so
the command will not fail

Change-Id: I5296f5b59bc6d3d3db90a685a8678db9a156eece
Closes-Bug: #1718111
2018-01-08 12:27:19 +00:00
Shachar Snapiri fabaa991ca Added the ability to specify checksum for etcd
It is possibe for the user to override te etcd version, thus download a
different etcd file, but the checksum is constant, so the checksum
verification will fail in that case.
Added the ability to specify a different checksum, so the user would be
able to specify the new version checksum

Change-Id: I85af3af841ae957964f18d4e37a86ab0703882bc
Closes-Bug: #1736718
2018-01-08 12:25:18 +00:00
Hunt Xu c396355bef Use "ip neigh" instead of "arp -n" in worlddump.py
Worlddumping on a system without net-tools package gets an error showing
"arp: not found". As iproute2 can also show arp tables, we use it
instead.

Change-Id: I0cd83e6d14959dc5a1147c487b11f27fb92aa20a
2018-01-08 16:18:32 +08:00
Clark Boylan 2700bf88a5 Gzip openstack service logs
These files are quite large and disk space is limited so make sure we
compress the log files before copying them to storage. Additionally
os-loganalyze will only operate on gzipped log files so this should fix
os-loganalyze with tempest-full job's logs.

This is mostly a check to confirm everything works as expected but we
probably want to move the gzip step into the log publication roles so
that all log files end up compressed.

Change-Id: Ie87962428e0ca755c211cc5e664a14a9f2a79ac4
2018-01-04 10:17:24 -08:00
Zuul 28b4be1861 Merge "Make stackenv file visible" 2018-01-03 23:19:46 +00:00
Toshiaki Takahashi b3ed561c7a Fix "Centos" to official notation "CentOS".
Change-Id: I2f76fe3a19cd2ebf004d0a7c14852f20f3dadd9e
2018-01-04 02:23:09 +09:00
Zuul 3d0f7c7af3 Merge "lioadm make sure targetcli is there" 2018-01-01 22:53:25 +00:00
Takashi NATSUME 7b1b6f3446 Fix that DISTRO is not set in unstack.sh
Change-Id: I36cab41fdb767e8e31073a4fa1f929090f702910
Closes-Bug: #1738938
2017-12-25 09:08:42 +00:00
Akihiro Motoki f8dc558486 Drop django_openstack_auth related code
In Queens cycle, the code of django_openstack_auth was merged into
the horizon repository. The master branch of django_openstack_auth
will be retired. (horizon blueprint merge-openstack-auth)
This commit drops django_openstack_auth related code from DevStack.

_prepare_message_catalog_compilation in lib/horizon was used only
in install_django_openstack_auth, so it is dropped too.

Change-Id: If9467c520a1e07d1968b29e485df0097330356bc
2017-12-24 08:21:15 +09:00
Andreas Jaeger b4d772b9fd devstack job: Add irrelevant-files
Do not run devstack and its siblings if only rst files, releasenotes, or
files in doc directory change.

This is the minimal set of irrelevant files shared by most projects
already.

Needed-By: Ie8504ba3d5d46f6338a228ed2d248ba6363e37ae
Change-Id: Id0095763eb91592c2fd1a913526883987df704bd
2017-12-23 20:49:15 +01:00
Matt Riedemann f6d566c21d Configure nova_cell1.conf to use placement for reschedules
Nova now calculates alternate hosts in the scheduler and
sends those to the cell for reschedules in case a build on
a given compute node fails.

The cell conductor needs to claim resources against the
alternate hosts in Placement during a reschedule, therefore
it needs to be configured to talk to the placement service.

Part of blueprint return-alternate-hosts

Change-Id: Ie599968d9e7537e551fe6d9deb63a91b256b1e11
2017-12-22 12:12:41 -05:00
bhagyashris 6a25fb96c1 Initialize newly added glance-image-import config file
This patch creates a new config file glance-image-import.conf
at /etc/glance path. Also, each config option is initialized
with default values.

Need these changes to implement specs [1]:

[1]: https://blueprints.launchpad.net/glance/+spec/inject-automatic-metadata

Related-Change-Id: If14c7dc4f38360006f9cb350fbba54fa2f33be61
Change-Id: I665507db1838a50e344d3be909d7490f1f52040c
2017-12-21 09:33:55 +05:30
Zuul c170097388 Merge "Updated from generate-devstack-plugins-list" 2017-12-21 00:19:16 +00:00
Monty Taylor 421753f71d Switch to consolidated fetch-subunit-output role
fetch-testr-output and fetch-stestr-output are being merged.

Change-Id: I00d448c4e6b98a1f504b048c74eff4e110c0b511
Depends-On: I833320cf9a932d8e119645eb798ce0c93d854321
2017-12-20 08:31:15 -06:00
Jens Harbott 49f3cc76bf Make stackenv file visible
The file won't be listed as long as it is called .stackenv.txt.gz, with
this it will be called _stackenv.txt.gz instead.

Change-Id: Ib3b44c287ffb2ec0e48fefef1662a1c02d162657
2017-12-20 08:38:29 +00:00
OpenStack Proposal Bot b040af4d85 Updated from generate-devstack-plugins-list
Change-Id: Ib7ed514446fbb39f87369fa941dfa87c28046942
2017-12-20 06:18:43 +00:00
Andrea Frittoli (andreaf) a2b174168a Stage a number of system type logs
This could be ansiblesed a more, for now more or less the bash code
from d-g wrapped in a role.

Change-Id: Ia7fe40f05ca394da9a65fef6383d72f29a532e2f
2017-12-18 18:21:24 +00:00
Andrea Frittoli (andreaf) 5a9872a9b9 Stage openstack config files
Stage config files from openstack and all projects used by the
devstack run.

Change-Id: I99f1bc71856b0da7fc5b438d13d4f508d2341e44
2017-12-18 18:21:24 +00:00
Andrea Frittoli (andreaf) e6b0169a02 Stage libvirt logs and sudoers
Stage libvirt logs and sudoers configuration.

Change-Id: I46112c52f05c6015a9f397eda130404beeb5e899
2017-12-18 18:21:24 +00:00
Andrea Frittoli (andreaf) d04658eb50 Stage rabbitmq and DB logs
Stage rabbitmq and DB logs so they are copied to logs.o.o

Change-Id: Ica8a86c2649b2871f366e3ca48a8b47f455879bc
2017-12-18 18:21:24 +00:00
Andrea Frittoli (andreaf) 9c977b56eb Stage apache logs
Add apache logs to the list of things we stage.

Change-Id: I9d3d8e710ae87a71b74f96538cad6fad58dbef79
2017-12-18 18:21:24 +00:00
Andrea Frittoli (andreaf) b7f8624bed Setup devstack-early log
The whole devstack log is written into the console output
(job-output.txt) and into devstacklog.txt.

Remove it from job-output and add a devstack-early log file (same as in
legacy job) that includes all the output of stack.sh.

Make sure the log file is pulled into the stage folder so that it will
end up on logs.o.o.

Change-Id: Ia7c1d8fe5cc03d15f455c6e62ebf4a5f6d62ab1f
2017-12-18 18:21:24 +00:00
Andrea Frittoli (andreaf) 71bf831a90 Add a few more devstack confs and logs
Add localrc for places where it may be still used.
Collect verify_tempest_conf.

Change-Id: I733c6472e8452ed6fc04c6de1c170713812a436f
2017-12-18 18:21:24 +00:00
Andrea Frittoli (andreaf) 290d9d87f4 Use stage_dir instead of /opt/stack
Historically we have collected devstack logs under /opt/stack.
Stop doing that and collect them in the stage_dir instead, so that
once the base job logs pull service comes around we are ready for it.

This add the benefit of writing things into a folder which is
already owned by the ansible user (ansible_user_dir), so we don't
run into issue writing there.

A few logs (devstack log, log summary and dstat) use to show up on
logs.o.o. just because they happened to already be in /opt/stack/logs.
With this change they would be lost, so adding them to post.yaml.

Depends-on: I5ad4dfccbc1389da3afc53f3c866d3475e006db6

Change-Id: Ib4be2f5056c0dc2b776de4a0d18b47b12624be92
2017-12-18 18:21:24 +00:00
Monty Taylor 4187d2fc4a Add doc/requirements.txt file with doc requirements
The sphinx jobs need to find doc requirements in either
test-requiremnts.txt or doc/requirements.txt. Putting them directly in
to tox.ini, not so much.

Change-Id: I98a43b511a6949fa4f00c26eec224d24d6fa6588
2017-12-18 11:12:42 -06:00
Zuul 62af9362aa Merge "Add base jobs for functional tests" 2017-12-14 17:54:59 +00:00
Zuul 80ef0b1b68 Merge "Gate on v3 devstack job" 2017-12-14 17:54:58 +00:00
Zuul 8ac838e5e3 Merge "Set the base set of services" 2017-12-14 11:34:40 +00:00
Zuul f4cec2d9b5 Merge "Allow jobs to disable all services" 2017-12-14 06:54:24 +00:00
Zuul 924b1149c8 Merge "Remove Cinder policy.json install" 2017-12-13 04:31:01 +00:00
Monty Taylor e1b0c3886b Add base jobs for functional tests
I keep copy-pasting these to projects from the shade repo. Let's make
some base jobs people can more easily use.

devstack-tox-functional runs devstack and a tox functional environment.

devstack-tox-functional-consumer is the same, but runs devstack in pre.
It's intended for projects for whom patches to the project won't
actually impact the devstack deployment (shade, nodepool, gophercloud
are all examples of such things)

Change-Id: I84de60181cb88574e341ff83cd4857cce241f2dd
2017-12-11 16:13:22 -06:00
Attila Fazekas 501aaeb4e7 lioadm make sure targetcli is there
Without installing the targetcli package
tools and configs can be missing.

The code was correct baside a typo,
it is `ISCSI` not `ICSI`

Change-Id: I32e5d84d87560458f0eaaf820dcd00c86e6dec8b
2017-12-11 13:20:19 +00:00
Zuul 1933943292 Merge "Collect devstack config files in post." 2017-12-11 09:08:34 +00:00
Monty Taylor 52804403ca Gate on v3 devstack job
The devstack base job in in use in many projects, but it is not being
gated here in devstack. Let's add it to the list so that we don't
accidentally break it.

Change-Id: Iea13235a8438d4b540f9f27b94aed13e719481dc
2017-12-10 07:15:09 -06:00
Zuul cbd2a9d477 Merge "Install etcdctl along with etcd3" 2017-12-09 06:25:57 +00:00
Dean Troyer 986cd13a21 Collect devstack config files in post.
Co-Authored-By: yong sheng gong <gong.yongsheng@99cloud.net>
Co-Authored-By: Dean Troyer <dtroyer@gmail.com>
Co-Authored-By: Andrea Frittoli <andrea.frittoli@gmail.com>

Change-Id: Id9ad3be4be25e699f77d6b5a252f046ce8234f45
2017-12-08 17:28:12 +00:00
Zuul d37119e797 Merge "Allow plugins to express dependency info" 2017-12-07 11:00:29 +00:00
Zuul 950a3770c3 Merge "Move remove_uwsgi_config to cleanup_placement" 2017-12-07 00:43:19 +00:00
Zuul d00bbf4e56 Merge "Add fixed_key parameter under key_manager section in cinder conf" 2017-12-06 20:22:28 +00:00
Andrea Frittoli (andreaf) 7d4446541d Set the base set of services
Use the test-matrix role from devstack-gate to define a base set of
services to be enabled for the controller and compute nodes.

Extend the local conf module to handle the base set of services.

Since the test-matrix defines services for primary and subnode nodes, we
need a multinode job to test that this works. Add a new host group
called subnode that includes the non-controller hosts. Add a new job
that runs devstack on a two nodes environment.

Using service from the test matrix enables swift in the gate, so we need
to set SWIFT_HASH for devstack to work.

Depends-on: Ie36ba0cd7cfcd450b75000a76a64d856f2a83eba
Depends-on: Id9ad3be4be25e699f77d6b5a252f046ce8234f45
Change-Id: I379abf482c89122533324e64fefbff3d5a618a89
2017-12-06 12:46:44 +00:00
Chris Dent 1489b9e710 Move remove_uwsgi_config to cleanup_placement
It had been in stop_placement, but we don't want it there: the old
side of grenade needs to call that but should not remove the uwsgi
configuration when doing so. It is configuration, after all.

Change-Id: Iee763adf7895145d97b184924896db3f1f48a015
Partial-Bug: #1736385
2017-12-05 23:46:58 +00:00
Andrea Frittoli (andreaf) 5551170ad3 Allow jobs to disable all services
Several legacy jobs use the OVERRIDE_ENABLED_SERVICES variable
from d-g so set the list of services that should be enabled and
ignore the default set calculated via the feature matrix.

Add support for a similar functionality in the zuulv3 jobs
using the 'disable_all_services' localconf function.

Change-Id: I690554ec62cef3be600054071efbb3f92a99249e
2017-12-05 16:22:19 +00:00
lkuchlan cb8256f225 Add fixed_key parameter under key_manager section in cinder conf
This change is necessary for uploading an encrypted volume to glance.

Change-Id: I0975fc0c49ec243025d076f0406e28c4f5522d3a
2017-12-04 10:58:58 +02:00
Monty Taylor e46f22db7f Add workaround for openstacksdk in check_libs_from_git
python-openstacksdk does not match its pip name which is openstacksdk.
So setting python-openstacksdk in LIBS_FROM_GIT leads to devstack
thinking there is a problem.

Put in a workaround for now. It would be better to either:

  a) rename python-openstacksdk repo to openstacksdk
  b) rename the pip name for openstacksdk back to python-openstacksdk
  c) add general support in the various GIT hashes for a pip name

Change-Id: I57cf95763d54ad2060a4ce2af91c3ba18ca04db0
2017-12-03 10:21:26 -06:00
Monty Taylor 9ef3e84485 Add python-openstacksdk to python3 enabled list
It's perfectly with with python3, add it to the list.

Change-Id: Ieb9f563a2f95e78a994cef388e56a6d5a84c8935
2017-12-03 10:11:12 -06:00
Sean McGinnis 1d12784912 Remove Cinder policy.json install
Cinder has now implemented "policy in code" and policy.json is
only needed for overriding default policies. The default policy.json
file has been removed in Cinder so we need to stop trying to copy
it during Cinder setup.

Change-Id: I364e401227fe43e2bacf8a799e10286ee445f835
2017-11-30 14:15:04 -06:00
Hongbin Lu ad180e0e35 Install etcdctl along with etcd3
It is better to have this command line tool for debugging etcd.

Change-Id: Ie0eb79d4e543df29ce6a38b57c8ef57a5d2211b4
2017-11-29 13:21:30 -05:00
Zuul d576620e33 Merge "Convert to safe name in lib_installed_from_git" 2017-11-28 19:09:10 +00:00
DamonLi 007f588f27 Convert to safe name in lib_installed_from_git
The 'pip list' command prints the "safe name" which converts _'s to
-'s amongst other things; e.g. glance_store becomes

  "glance-store             0.21.1.dev22      /opt/stack/glance_store"

Because people may use these more familiar "file system" names in
LIBS_FROM_GIT automatically convert names when checking if libraries
are installed.

Change-Id: I30524f80a341f38dfa794a8f629d859e85a4a448
2017-11-28 07:34:49 +11:00
Zuul b3a7125fcd Merge "Cleanup nova cell configuration before config it" 2017-11-27 02:11:00 +00:00
rabi b5fb7fd627 Fix lib_installed_from_git
In commit f0cd9a8b08 we changed to
use column format, but it checks for zero length string and
check_libs_from_git fails.

Change-Id: I97b52b80efb33749647229a55147a08afa112dd2
2017-11-22 10:09:30 +05:30
James E. Blair c5853ac1af Allow plugins to express dependency info
Add a no-op function, "plugin_requires" to allow plugins to indicate
their dependencies on each other.  This will be used by the Devstack
Ansible module when writing local.conf files.

Also add define_plugin to allow plugins to indicate their canonical
names.

Change-Id: Ibd8c7222ed7dfb08d7ea821d871fc6f3b88de24b
2017-11-21 16:33:23 -08:00
Zuul c19d0cbb27 Merge "Fix libvirt daemon name condition" 2017-11-21 20:04:34 +00:00
Zuul ec31a52560 Merge "Update lib_install_from_git to use column format" 2017-11-21 20:04:33 +00:00
Zuul 84220d0cef Merge "Remove apache tls-proxy sites when stopping" 2017-11-21 20:04:31 +00:00
Zuul da48c01aea Merge "Updated from generate-devstack-plugins-list" 2017-11-21 20:04:30 +00:00
Zuul 4caa9c3580 Merge "Provide finite value for systemd's TimeoutStopSec" 2017-11-21 20:04:29 +00:00
Zuul e03b6bd8f8 Merge "Zuul: add file extension to playbook path" 2017-11-20 22:23:08 +00:00
Zuul 6478d7acee Merge "Restore qemu-kvm install for CentOS" 2017-11-17 18:43:23 +00:00
jiangyikun 1a2c86cff9 Cleanup nova cell configuration before config it
Some old configuration(such as, LOG_COLOR config) will remain
if we don't cleanup.

So, we should cleanup the configuration before we config it.

Change-Id: I7aff609dadf3acba13a36894614b35005f51280d
2017-11-17 01:32:09 +00:00
Zuul adab96a3a2 Merge "Replace deprecated nova_metadata_ip" 2017-11-16 23:50:02 +00:00
Ian Wienand 0d0b69027b Restore qemu-kvm install for CentOS
The kvmibm removal I009ae4779588615633bff81d0c47a1b879ec9279
incorrectly removed this (the check was install if *not* kvmibm).
Since we don't support kvmibm any more, it should be safe to install
everywhere as done here.

For the full history, it started with us installing qemu-kvm-ev with
Ide91b261f35fb19d8bd7155ca016fa3b76a45ea1, then we fixed it to be more
generic and just install qemu-kvm with
I46da627c0da8925064862fdc283db81591979285, then Fedora 26 support in
I5c79ad1ef0b11dba30c931a59786f9eb7e7f8587 made this install everywhere
*but* kvmibm.

Change-Id: If3e9661451ad1055e7c8d670605a53095f0aeda4
2017-11-17 10:41:55 +11:00
Zuul 5039f4064a Merge "Switch to mariadb on openSUSE" 2017-11-16 14:15:45 +00:00
OpenStack Proposal Bot e340a7bfff Updated from generate-devstack-plugins-list
Change-Id: I884ae2ff23f8c23874e166dd7643b188f7450109
2017-11-16 06:17:45 +00:00
Jens Harbott 83194f956e Update supported Ubuntu releases
With the release of 17.10(artful), support for 16.10(yakkety) has ended.
Update our list of supported distros accordingly.

Change-Id: Id85e00f109cfd43141dec0c0d2bfedb66f14e664
2017-11-15 15:31:29 +00:00
Zuul 2647fc2ac1 Merge "Drop support for "kvmibm" distro" 2017-11-15 00:05:24 +00:00
Zuul 8c5e960fd1 Merge "Set default disk driver to virtio-blk on Power" 2017-11-14 20:27:04 +00:00
Michał Dulko 3b815a3cb2 Provide finite value for systemd's TimeoutStopSec
This commit switches TimeoutStopSec in DevStack's systemd unit files
from "infinity" to "300". There are two motivations for that change:

* 5 minutes should be more than enough to stop a service.
* systemd included in CentOS 7 and RHEL 7 doesn't support "infinity" as
  a value, "0" should be provided instead. When "infinity" is set,
  systemd will kill the service instantly, leaving service children
  processes orphaned. Instead of differentiating here, we can just set a
  sane, finite number.

Closes-Bug: 1731275
Change-Id: I0a079ea9879fa4fbba23104c2f5ab6e0721a2a2a
2017-11-14 16:12:56 +01:00
Brian Haley efc5168245 Replace deprecated nova_metadata_ip
Option nova_metadata_ip was deprecated in favor
of nova_metadata_host.  lib/neutron was updated
recently but lib/neutron-legacy was missed.

Change-Id: Iadd42458dda705ad0c24aa4ab2afd5b27dd8f0e1
2017-11-10 00:50:48 -05:00
Jens Harbott 1db9b5d3ca Remove apache tls-proxy sites when stopping
Currently doing a cycle of

    ./stack.sh; ./unstack.sh; ./stack.sh

fails because the leftover tls-proxy sites will cause apache startup to
fail on the second stack.sh run. So we need to disable these sites on
running stop_tls_proxy.

Change-Id: I03e6879be332289d19ca6a656f5f9f139dffff6f
Closes-Bug: 1718189
2017-11-10 10:43:19 +11:00
Zuul 2e3c96a3ad Merge "Replace the deprecated nova_metadata_ip" 2017-11-08 15:42:58 +00:00
Dirk Mueller 1d968d7a54 Switch to mariadb on openSUSE
The mysql-community-server is a compat provide, openSUSE uses
mariadb for quite some time. Make it futureproof in case
the compat provide goes away in the future. Cleanup
mysql service name to MYSQL_SERVICE_NAME and consistently
use it.

Change-Id: I2df7b8d8b798dfa7ceade90e0c127e0609524a8b
2017-11-08 17:03:18 +11:00
Zuul 29bc8e645c Merge "Add "sudo" before the journalctl command" 2017-11-02 03:38:13 +00:00
OpenStack Proposal Bot a794b12cf2 Updated from generate-devstack-plugins-list
Change-Id: Ic6d3cdb0b1fcc674ab5adcbaf45fa5a80f10b10f
2017-11-01 06:34:13 +00:00
caowei 32ecccaeef Add "sudo" before the journalctl command
Change-Id: I41c396f704918e88168c9a9c6cc9e633e7a81437
2017-11-01 11:45:21 +08:00
James E. Blair c0d8c1c72d Zuul: add file extension to playbook path
Zuul now supports including the file extension on the playbook path
and omitting the extension is now deprecrated.  Update references
to include the extension.

Change-Id: I4bff5f12742364f7cc92e17869a047fd2185dda4
2017-10-29 09:21:42 -07:00
Zuul 2c9343e5db Merge "Change ENABLE_KSM to $ENABLE_KSM" 2017-10-27 08:28:49 +00:00
Zuul 464d6e06ea Merge "Zuul: add run attribute" 2017-10-27 08:27:27 +00:00
Zuul 47624b26b7 Merge "Properly get pip version" 2017-10-27 05:11:37 +00:00
Zuul 2974283e7e Merge "Use configure-swap from o-z-j" 2017-10-27 05:11:35 +00:00
James E. Blair 228d90d5eb Zuul: add run attribute
A proposed change[1] to Zuul removes the implied run attribute.
Add an explicit run attribute here to prepare for that.

[1] Ia8f23bce9898cd4f387554e6787b091b63e75519

Change-Id: I1fbc36c3d1b8c4ed70fceef1c587255dad50da04
2017-10-26 16:47:07 -07:00
Chandan Kumar e8db867485 Change ENABLE_KSM to $ENABLE_KSM
* Since ENABLE_KSM param will be used in local.conf file
  and it's value is received in a variable and while compairing,
  the variable needs to be compared. So we need to change the
  same.

Change-Id: Id4ed17c0642acd2313e456503cfc375ca6f61409
Closes-Bug: #1724690
2017-10-26 15:34:05 +05:30
Monty Taylor c9e109f135 Disable nested virt in base devstack job
We were doing this in devstack-gate. The gate can't handle nested virt.

Change-Id: Ie71663c3144908ddd134fa5a5b1b2d265a60edcf
2017-10-21 18:04:49 +02:00
Clark Boylan 065779517f Properly get pip version
The old code was strip()ing the version string instead of split()ing the
version string so we always got the first character of the version
string. This worked fine as long as the pip version was single digit but
as soon as it rolls over to '10.stuff' we will compare:

  pip version 1 (instead of 10) > 6

Which fails bceause 1 is less than six. Instaed we really do want to
compare 10 > 6 so use split on '.' instead.

Change-Id: Ic7d0c04d7fa77774ab2d70fb9d11f182becec553
2017-10-20 12:16:32 -07:00
Ian Wienand d8753b7dc9 Use configure-swap from o-z-j
Use the generic role

Change-Id: I534ed0256b7dfe5bef4ab13ae57cd73c51e8bd15
Depends-On: I0e9c846ace7fac8a1340746c6818fba6ec963018
2017-10-20 15:08:37 +11:00
Zuul 57ddd7c161 Merge "Remove proxy-sendcl from mod_proxy_uwsgi apache path" 2017-10-19 18:25:30 +00:00
Zuul b907adce85 Merge "Updated from generate-devstack-plugins-list" 2017-10-19 05:32:22 +00:00
Monty Taylor f0cd9a8b08 Update lib_install_from_git to use column format
The pip list command supports a --format=columns option which outputs
things in space delimited columns. Switch to using that.

Change-Id: I5140a7d83bf567b1c3c67516112eb4c57074fa53
2017-10-19 15:35:38 +11:00
Zuul c1176ba716 Merge "Move glance auth cache creation to configure_glance" 2017-10-18 08:28:18 +00:00
Rafael Folco 7b8f1e7964 Set default disk driver to virtio-blk on Power
Reason is to be identical to the upstream KVM CI. Some Tempest
tests rely on vdX virtio-blk device naming. Others simply create
their own with a brand new image. Also, the scsi support on the
CirrOS image is limited, tests booting from volume fail.

Change-Id: I389147a58042aa6098a695e6dd32f3e697fbbbab
2017-10-17 17:57:37 +00:00
Jan Zerebecki 2c2ca80ce0 Fix libvirt daemon name condition
This makes the condition that chooses which daemon name libvirt to call
the same as for choosing the livirt package names.

Without this fix the condition checking for a directory is incorrect
when livirt is not yet installed, but is used before installing the
packages.

Change-Id: Ib5eb12769128527a6f4b3b5f7674bd2dad0ed160
2017-10-17 18:34:30 +02:00
Zuul 25e137a518 Merge "Revert "Resolve openSUSE devstack failures"" 2017-10-17 13:47:01 +00:00
James E. Blair 9640d3bfbf Zuul: remove file matcher for devstack job
The file matcher was from the early versions of this when we were
running both v2 and v3.  We should always run the new devstack
job on all changes to devstack now that v3 is in production and we
plan on building jobs off of this one.

Change-Id: I7dd336b0059043f6653bdfdcba0ee5cded3e67b1
2017-10-15 16:23:57 -07:00
Monty Taylor 36ddea31a2 Add devstack base job for zuul v3
This should be managed in the devstack repo, since it's a base job to
run devstack.

Change-Id: Iffe54fbccbccd68db08f79a1b51dd7f76dbff408
Depends-On: Ie2119f24360d56690ffd772b95a9ea6b98dd4a39
2017-10-15 07:17:18 -07:00
OpenStack Proposal Bot c0d9373e86 Updated from generate-devstack-plugins-list
Change-Id: I474294bdbb1052f8f99522415dd0c1d26d8a995b
2017-10-15 08:26:37 +00:00
Sumit Jamgade 135ebe955e Revert "Resolve openSUSE devstack failures"
This reverts commit d325875508.
the issue mentioned in the comment is now resolved.

Change-Id: I2705daead3d3b95f6ad82261212f2a1f40a77fb5
2017-10-13 15:11:23 +02:00
jianghua wang 843b039b3c Use the renamed vnc options
As the following commit has renamed the two vnc options; let's
use the new options in devstack:
https://review.openstack.org/#/c/498387/

Change-Id: Id125666814ea9bb8a22b579aee0f6bc1c65ade80
2017-10-13 07:25:43 +00:00
Ken'ichi Ohmichi 2da019f133 Replace the deprecated nova_metadata_ip
As [1], the option nova_metadata_ip has been deprecated and
we can use nova_metadata_host instead. This patch makes devstack
do it.

[1]: http://git.openstack.org/cgit/openstack/neutron/tree/neutron/conf/agent/metadata/config.py#n49

Change-Id: Ifda43ec8c7743af6acdd3003c55c081ef5b1311c
2017-10-11 09:57:25 -07:00
Jenkins e4eef81c2b Merge "Enable reloadable config in services" 2017-10-10 22:04:56 +00:00
Eric Fried cda2cb557f Create block-storage endpoint for cinder
block-storage is the official service type for cinder, according to the
service-types-authority.  Add it as a service in devstack, with cinder's
unversioned endpoint, to enable proper discovery.

Change-Id: I75cf7212678f7f270c3c32f0bce227dbbf6b466d
2017-10-10 11:49:06 -05:00
Radoslav Gerganov 2b97a81640 Remove references to $USE_SCREEN in comments
The USE_SCREEN variable is not used any more

Change-Id: I29ad9cdb6c8498404502d91fbc4e1299bf4a633e
2017-10-10 16:53:18 +03:00
Markus Zoeller b8335eebe8 Drop support for "kvmibm" distro
The IBM hypervisor distro "KVM for IBM z Systems" gets discontiued,
like announced in March 2017 [1]. The key dates are:

* 03/2017: announcement
* 08/2017: the last day to order (EOM)
* 03/2018: the End of Service (EOL)

As the CI which tests OpenStack with KVM on IBM Z doesn't rely on this
distro anymore and EOM has reached, we remove the Devstack support for
this distro.

This basically reverts commit a5ea08b of Dec 2015.

NOTE: This doesn't affect other distros which have KVM on Z support.

References:
[1] FAQ for KVM for IBM z Systems Delivery Strategy Change
    https://www-01.ibm.com/common/ssi/cgi-bin/ssialias?htmlfid=ZSQ03110USEN&

Change-Id: I009ae4779588615633bff81d0c47a1b879ec9279
2017-10-10 11:08:09 +02:00
Jenkins a29329b559 Merge "Calculate package directory correctly in pip_install" 2017-10-06 16:09:59 +00:00
Zane Bitter 9e7ead9ac2 Calculate package directory correctly in pip_install
Strip the [<extras>] string from a <package_dir>[<extras>] argument
when looking for the package directory.  Explain what the heck is
going on.

Change-Id: I79beb5c3e9e7c35c91cdd0d5a1d91532bebc4b6d
Closes-Bug: #1721638
2017-10-06 22:19:05 +11:00
Jenkins 39ec80222e Merge "Add a note about overriding the journalctl nowrap default" 2017-10-06 03:17:09 +00:00
Jenkins 401f43d4e1 Merge "Stop using ironic host manager with resource classes" 2017-10-06 03:17:02 +00:00
Jenkins 52237ee548 Merge "Enable tempest testing for extending an attached volume" 2017-10-05 18:52:50 +00:00
Clark Boylan 56131eb11f Move glance auth cache creation to configure_glance
We install the glance api on all nodes in multinode testing. This has
been failing because we don't configure the glance auth cache dirs if
we only install the glance api service. This was done as part of
init_glance which is only run when installing g-reg.

Fix this by moving the auth cache dir creation step into
configure_glance which is run for the glance api.

Change-Id: Ie669827507df0f524e6e53fe4ab3dff848dd4bd7
2017-10-04 16:06:27 -07:00
Jenkins 301d4d1678 Merge "Use "pip list" in check_libs_from_git" 2017-10-04 07:22:59 +00:00
Jenkins 3286198f0e Merge "Switch DEVSTACK_SERIES to queens" 2017-10-04 07:20:35 +00:00
Jenkins 855df2bd40 Merge "Revert "Remove cache dirs from the services"" 2017-10-04 04:47:12 +00:00
Jenkins 7e8f21dad1 Merge "Don't check_libs_from_git for now" 2017-10-04 00:21:56 +00:00
Ian Wienand 1f82f43016 Revert "Remove cache dirs from the services"
This reverts commit ef5ebed6c9.

The problem here is a backwards-incompatible change to
configure_auth_token_middleware.  Plugins are still passing a
"signing_dir" which is interpreted now as the "section" argument
... this leads to an interesting red-herring issue; because "v" is a
gnu sed command for checking the version, a signing_dir of "/var/..."
(as done in most plugins) gives the weird error:

 sed: -e expression #1, char 32: expected newer version of sed

I think we'll either need a new function, or dummy arguments to get
this back in.

Change-Id: I2098d4eb2747282622cf486fa7dbf216f932f58b
2017-10-04 09:54:43 +11:00
Zuul 8880334838 Merge "Delete the default guest user from rabbitmq" 2017-10-03 07:07:56 +00:00
Zuul 5631321a85 Merge "Remove cache dirs from the services" 2017-10-03 07:07:53 +00:00
Zuul 3f97e71063 Merge "Update default etcd version" 2017-10-03 07:07:52 +00:00
Zuul b3b6c102d9 Merge "Update to using pike cloud-archive" 2017-10-02 09:41:47 +00:00
Ian Wienand ae9c6ab759 Use "pip list" in check_libs_from_git
As described in the change, "pip freeze" has issues with the way
zuulv3 clones repos without a remote.  This is an attempt to use "pip
list" to check for local install

Change-Id: I33d25f86b6afcadb4b190a0f6c53311111c64521
2017-09-29 12:55:45 +10:00
Ian Wienand 5b419ffb1f Don't check_libs_from_git for now
"pip freeze" reports an error when checking because the repos don't
have a remote under zuulv3

---
Error when trying to get requirement for VCS system Command "git
config --get-regexp remote\..*\.url" failed with error code 1 in
/opt/stack/new/keystone, falling back to uneditable format

Could not determine repository location of /opt/stack/new/keystone
Complete output from command git config --get-regexp remote\..*\.url:

---

This means this check fails.  I think we can fix this by looking at
"pip list" which I will propose in a follow-on, but this fixes the
immediate breaking issue.

Depends-On: Ib12ddf768ee20fd7614622179f6842f5d57864ff
Change-Id: I21ff749ab3e7911fa074e6d53056768f42f8aa57
2017-09-29 12:55:36 +10:00
Jenkins 7c9542eb02 Merge "Install minimal lsb-release package on openSUSE" 2017-09-28 12:16:50 +00:00
Jenkins d8548008e6 Merge "Fix dstat dependencies for memory_tracker on SUSE" 2017-09-28 12:16:42 +00:00
Jens Harbott 59251693e7 Add a note about overriding the journalctl nowrap default
Hoping that this helps people who consider this as annoying as I do.

Change-Id: I45e71301efb8d9a17989b57232a142e786175c2a
2017-09-28 12:01:16 +00:00
Jenkins b0a08c1b04 Merge "Make etcd3 setup work with IPv6 addresses" 2017-09-28 05:28:36 +00:00
Jenkins b0bd5822ad Merge "doc: add journalctl example for grepping the logs" 2017-09-28 05:20:17 +00:00
Matt Riedemann ba4830b84e Download default image when using VIRT_DRIVER=fake
Change f119121d21 removed
the default image to download which meant if you were using
the fake virt driver, no image would get downloaded and
tempest setup would fail.

This adds it back in but doesn't use a wildcard.

The default image is the same as before, but uses the
variables that are also used for the default libvirt image
case.

Change-Id: I80eddd0d3a99572ed494b5cd36fed8ceb4d05d77
Closes-Bug: #1720003
2017-09-27 16:45:25 -04:00
Dirk Mueller 602a057fe0 Fix dstat dependencies for memory_tracker on SUSE
Memory_tracker imports psutil, but does not run inside a pip/virtualenv
so the system provided psutil library needs to be provided. This
is matching what is done for other non-SUSE distributions

Change-Id: I96f944730dc8644333d906d71339351b29b03e08
2017-09-26 10:15:28 +02:00
Jamie Lennox ef5ebed6c9 Remove cache dirs from the services
PKI tokens have been actively deprecated from keystone and there are
deprecations being emitted from keystonemiddleware. Because of this we
no longer need an auth cache directory in the services where the PKI
certifcates used to be stored.

Remove the creation and use of all these AUTH_CACHE directories.

Change-Id: I5680376e70e74882e9fdb87ee1b95d5f40570ad7
2017-09-26 10:10:11 +10:00
Jenkins e8190c414e Merge "Remove deprecated forbid_global_implied_dsr" 2017-09-25 21:46:23 +00:00
Jenkins 7ffb517392 Merge "Drop MySQL-python installation from packages" 2017-09-25 20:42:05 +00:00
Matt Riedemann 5085dc0fa5 doc: add journalctl example for grepping the logs
I had to dig around for awhile to figure this out, so
this adds an example on how to grep journalctl nova logs
for a server instance UUID.

Change-Id: I6a5c47fbcba3af1822e2f9efc2ac20ebe0387f3f
2017-09-25 19:17:31 +00:00
Jenkins 58288fb591 Merge "Change Cinder api_class setting to backend" 2017-09-25 17:15:27 +00:00
Jenkins 0f143e2c6b Merge "doc: prefix journalctl examples with sudo" 2017-09-25 13:52:58 +00:00
Jenkins 8060186584 Merge "Fix partial download problem" 2017-09-25 13:52:51 +00:00
Sean McGinnis 3271271778 Change Cinder api_class setting to backend
Castellan switched the `api_class` config option to `backend` in commit
8980bf7da55dd084ad84c84534fe937f0d43b9c0. The old setting will still be
recognized for now, but we should switch to using the new, correct config
option.

Change-Id: I5e46c738531d5d56777e91a00f4cee9531356f2e
2017-09-25 08:46:00 -05:00
Jenkins 4a50053c74 Merge "Make is_ipv4_address a bit more robust" 2017-09-25 13:37:32 +00:00
Jenkins 2ede133ed7 Merge "Fix memcached_servers setting" 2017-09-25 13:37:24 +00:00
Jenkins 5f348dace5 Merge "Change deprecated nova settings" 2017-09-25 13:37:20 +00:00
Jenkins a419a6d270 Merge "Disable the v2.0 identity API by default" 2017-09-25 13:29:44 +00:00
Dirk Mueller 062829c3f6 Drop MySQL-python installation from packages
We want that one to be installed via pip, if we still use it
(by default PyMySQL is used, which is already installed via
pip as well).

Change-Id: I76454aa7f84379aa387b144686bcfaa327b141ed
2017-09-25 15:19:07 +02:00
Dirk Mueller 721f7c2cd0 Switch DEVSTACK_SERIES to queens
pike is handled in stable/pike branch for some time
already.

Change-Id: I47dc5bf661c50b3b05c19ad665c2671f807233ae
2017-09-25 13:53:45 +02:00
Jens Harbott 07a8823d4f Update default etcd version
There have been a couple of new stable releases in the meantime, update
to using v3.1.10 which is the currently latest stable version.

Change-Id: Ifa1421c9f12af9753052f992929deb7ebd45e804
2017-09-25 11:36:20 +00:00
Dirk Mueller 5ef8a125cc Install minimal lsb-release package on openSUSE
lsb-release is a dependency of "lsb", so it used to work
before just fine as well, but it was installing about 300MB
of "stuff" that we don't actually need..

Change-Id: I25c7c750cbaeb40bf4f2e8695608c4b1003289ea
2017-09-25 13:09:43 +02:00
Jenkins 0a97e56186 Merge "Fix comment wording nit" 2017-09-24 10:32:15 +00:00
Jenkins 7b66a11624 Merge "Check that generate-subunit exists before using it" 2017-09-23 15:26:40 +00:00
Dirk Mueller 3a59c9d7e3 Remove deprecated forbid_global_implied_dsr
This setting was only useful for Mitaka and older, however Mitaka
is now EOL.

Change-Id: Ia1eb87d68a6265d8541cb87a88523246885e5a8a
2017-09-23 14:39:03 +02:00
Jenkins a08503ab4c Merge "Configure bridge_mappings for ovs and linuxbridge agents" 2017-09-23 01:10:30 +00:00
Matt Riedemann 66a14df49e doc: prefix journalctl examples with sudo
In a devstack environment you likely need to use sudo
to run the journalctl command, so this adds that to
the examples.

Change-Id: Ibe6b71285a3014e80e06a50130f18bfbdb4ff3ab
2017-09-22 20:51:38 -04:00
Monty Taylor 03ae3c485e Fix comment wording nit
Change-Id: I558522121099f14d380c163a2c397b34335b03df
2017-09-22 16:25:38 -05:00
Matthew Treinish c4b0059c6b Disable the v2.0 identity API by default
The v2.0 identity API is being removed in the Queens release, but in
order to do so we need to stop some v2.0 tempests tests from being
run. This commit switches the default to disable the keystone v2 api.
In a future commit after the removal of the api from keystone the bits
to deploy the v2 api will be removed.

Change-Id: I5afcba6321f496b8170be27789bee7c9ad8eacce
2017-09-22 15:07:36 -04:00
yuanke wei c652a498fb Fix partial download problem
(1) when checksum fails, better delete the broken files and try the second time;
(2) amazon s3 is not good in mainland China, better try one more time with wget

Change-Id: I24ee73f216b78bd80564863cd335e5d5a9b56360
2017-09-22 19:44:43 +08:00
Jenkins 672ac22ab3 Merge "lib/neutron: configure root_helper for agents" 2017-09-21 23:31:53 +00:00
Jenkins 5aff50b09d Merge "Display unaccounted time in "DevStack Component Timing"" 2017-09-21 19:42:27 +00:00
Ihar Hrachyshka e3915938f3 Configure bridge_mappings for ovs and linuxbridge agents
Otherwise neutron will fail to bind external ports because of missing
entries for external physical network in the mapping.

Configure it only when l3 agent is also installed on the node (otherwise
the l2 agent is not exposed to external network and hence doesn't have
the bridge).

Change-Id: I561b74538acb0dc39f1af3e832108ce6a99441b0
2017-09-20 11:00:15 -07:00
Matt Riedemann 917ad0998b Update to using pike cloud-archive
This reverts commit ee22ca8373

Depends-On: Iae2962bb86100f03fd3ad9aac3767da876291e74

Change-Id: I4d5fa052bdc5eef1795f6507589e2eaf4e093e23
Related-Bug: #1718295
2017-09-20 14:46:48 +00:00
Jens Harbott 146332e349 Make etcd3 setup work with IPv6 addresses
The client are told to connect to SERVICE_HOST instead of HOST_IP, so
we need to start etcd3 with matching listening parameters.

Change-Id: I96389090180d21d25d72df8f9e8905b850bcaee9
Partial-Bug: 1656329
2017-09-20 08:56:51 +00:00
Jens Harbott 7617ac2085 Make is_ipv4_address a bit more robust
Still not ideal, but at least should avoid matching IPv6 addresses.

Change-Id: Ibb64263fdb0308f56c18518289501dd4642dcbad
2017-09-20 08:56:10 +00:00
Jenkins 548198769f Merge "Revert "Update to using pike cloud-archive"" 2017-09-20 08:37:36 +00:00
Matt Riedemann ee22ca8373 Revert "Update to using pike cloud-archive"
This reverts commit a7e9a5d447.

The jobs that run live migration tests are failing at about
a rate of 50% since this merged. There are no recent changes
to nova in the last 24 hours that are related to live
migration, and this is failing on the master branch only,
so I suspect the failures are due to new qemu packages
getting pulled in from this change.

Change-Id: Ic8481539c6a0cc7af08a736a625b672979435908
Closes-Bug: #1718295
2017-09-20 00:29:36 +00:00
Jens Harbott b2330c8919 Fix memcached_servers setting
By default memcached is bound to 127.0.0.1 and we have no code in place
to change that. So instead of using the $SERVICE_HOST variable, we
hardcode it to localhost, just as we do for the cache settings, see [1].

This also avoids a bug that occurs when $SERVICE_HOST contains an IPv6
address, as in that case it would have to be prefixed by "inet6:" [2].

[1] I95d798d122e2a95e27eb1d2c4e786c3cd844440b
[2] https://bugs.launchpad.net/swift/+bug/1610064

Change-Id: I46bed8a048f4b0d669dfc65b28ddeb36963553e0
Partial-Bug: 1656329
2017-09-19 17:45:29 +00:00
John L. Villalovos 5ad4e58868 Display unaccounted time in "DevStack Component Timing"
In the "DevStack Component Timing" section, display the unaccounted
time.

Also add the units (seconds) to the output to make it clear to viewers.

Change-Id: Iaca82cc54a355f7077e20e548b771e53387f6628
2017-09-19 08:06:17 -07:00
Jenkins d9386eb0bd Merge "Update to using pike cloud-archive" 2017-09-19 14:18:20 +00:00
Jenkins 3cc59ab38c Merge "Install neutron rpms/debs when lib/neutron is used" 2017-09-19 13:23:09 +00:00
Jenkins 86bdfffbe0 Merge "clean up screen and tail_log references" 2017-09-19 13:23:02 +00:00
Jenkins fe91455e7d Merge "Change lib/neutron-legacy to not enable linuxbridge for DVR" 2017-09-19 12:58:07 +00:00
Jenkins 0fb4cd64e1 Merge "Change CINDER_LVM_TYPE to 'auto' as the default" 2017-09-19 05:52:56 +00:00
Jenkins 6c87f363a1 Merge "Feature flag on tempest conf to notify enabled LDAP" 2017-09-19 02:07:16 +00:00
Jenkins f60babc563 Merge "Fix errors in tls-proxy startup for cinder" 2017-09-19 01:58:13 +00:00
Jenkins 8d43cd5b16 Merge "lib/neutron: fix metering agent startup with systemd" 2017-09-19 01:57:53 +00:00
Jenkins 8ac2fecd05 Merge "Remove setting some of the scheduler settings" 2017-09-19 01:51:23 +00:00
Jenkins 9bccb24ec2 Merge "Updated from generate-devstack-plugins-list" 2017-09-19 01:51:16 +00:00
Jenkins b2503f4692 Merge "Ignore stderr when checking for Python version" 2017-09-19 01:51:10 +00:00
Jenkins cd06b2ee81 Merge "Enable graceful shutdown for services" 2017-09-19 01:49:24 +00:00
Javier Pena 6bd4924cec Ignore stderr when checking for Python version
https://review.openstack.org/504171 prevented Python version detection
from failing when python3 is not installed. However, "which python3"
returns a message in stderr when python3 is not there, and this output
can make diskimage-builder get confused when parsing
source-repository-images.

Change-Id: Idb649dc341ede73c39954b0432ef3cacf379ed37
2017-09-15 15:57:32 +02:00
OpenStack Proposal Bot df17927fe8 Updated from generate-devstack-plugins-list
Change-Id: I3012b07f87a1d9c432e1b97b7400fae693c9331a
2017-09-15 10:09:54 +00:00
Jenkins f56a0ae2ec Merge "Fix devstack python detection if python3 is missing" 2017-09-14 23:42:06 +00:00
Jenkins 8172b3634c Merge "Update gate clone error message for Zuul v3" 2017-09-14 22:34:15 +00:00
Sean Dague 4324f4ecd9 Fix devstack python detection if python3 is missing
On platforms without python3 installed devstack fails the python
version check. This does it more gracefully.

Change-Id: I4d79a41eb2d66852ab1a1aa8bd383f8e3e89cdc0
2017-09-14 13:13:15 -06:00
Ihar Hrachyshka 387aadd14e Install neutron rpms/debs when lib/neutron is used
lib/neutron service prefixes are neutron-* not q-*. We should install
those packages either way.

The patch moves files/*/neutron into files/*/neutron-common so that we
can correctly match */neutron against service specific dependency files
(f.e. */neutron-agent) and load the common packages if any neutron-*
service is present.

Change-Id: I57b36f2ed3f33737223a35d9ed734bb414f31e0b
2017-09-14 12:37:27 -06:00
Ihar Hrachyshka 868746b5da lib/neutron: fix metering agent startup with systemd
With systemd, we now require absolute paths passed to run_process.

Change-Id: Iabd425a6d0ebaaaa5b13bc4a7b062158940958e6
2017-09-13 15:44:18 -06:00
Jenkins 71e07c738d Merge "Replace pmap shellout with pure python implementation" 2017-09-13 17:55:21 +00:00
Jenkins 0a9ebfc04c Merge "Add etcd3 support for s390x" 2017-09-13 14:05:55 +00:00
Gyorgy Szombathelyi c04ac03e21 Change deprecated nova settings
Change-Id: I0d129150411ede344c9b710d1aca5af1df3478b6
2017-09-13 10:32:41 +00:00
Andreas Scheuring 941940a92c Add etcd3 support for s390x
Since [1] devstack is failing on s390x with "Distro not supported".
The reason for this is the missing etcd3 support. It worked before
[1] as we were able to disable etcd3 via local.conf. But as etcd3 is
a base service, we might not be able to rely on this workarond in
the future anymore.

As there is no etcd3 binary hosted on github like it is for other
architectures, the user needs to specify an alternative download
URL via local.conf. Otherwise devstack will exit with an appropriate
error message.

  ETCD_DOWNLOAD_URL=<custom-download-url>

[1] https://github.com/openstack-dev/devstack/commit/d8bb220606737719bcdf7c5b4f54906f2974c71c

Change-Id: I1c378a0456dcf2e94d79a02de9d3e16753d946d6
Partial-Bug: #1693192
2017-09-13 00:52:41 +02:00
Brian Haley e43dfdd453 Change lib/neutron-legacy to not enable linuxbridge for DVR
DVR isn't supported by the Linux Bridge agent, but the
mechanism driver is enabled by default, so Neutron attempts
port-bindings for it, generating ERRORS in the neutron-server
log in the check and gate jobs.  Just remove it in the DVR case.

Change-Id: Ic50e12e5fecf366a182c141b5c99649e653254cb
Closes-bug: #1716782
2017-09-12 16:13:26 -06:00
Jenkins dbd32d1bc4 Merge "Allow both Keystone and Tempauth reseller prefixes" 2017-09-12 08:55:31 +00:00
Dirk Mueller 02f9e8bbdd Replace pmap shellout with pure python implementation
Without this patch, the pmap -XX call fails on openSUSE Leap
distributions as those have a fairly ancient procps version that
does not support the -XX parameter. A pure python implementation
is more portable, faster and even shorter than the subprocess
call.

Closes-Bug: #1716066
Change-Id: I2fdb457e65359a1c9d40452c922cfdca0e6e74dc
2017-09-10 17:50:00 -06:00
James E. Blair 35a0c573b3 Update gate clone error message for Zuul v3
Change-Id: I351de28aa5d5f25187953f1a4502445bc2ce76cc
2017-09-10 15:38:21 -07:00
Monty Taylor cbd5f4e0ad Check that generate-subunit exists before using it
If stack.sh fails before os-testr is installed, the generate-subunit
command won't exist.

Change-Id: I7998ed81e419e25d183e5a780df0b4459cca237c
2017-09-10 15:01:12 -06:00
Jenkins 91f62818c3 Merge "Update OS_AUTH_URL in Configuration.rst" 2017-09-10 18:31:13 +00:00
Jenkins a6280e551b Merge "Remove keystone configs for ldap read/write" 2017-09-10 18:31:06 +00:00
Jenkins f524ef79be Merge "Correct spelling for 'lose' from 'loose'" 2017-09-10 18:28:46 +00:00
Jenkins 87943ab88e Merge "Make list_images.sh emit the etcd3 tarball" 2017-09-10 17:13:15 +00:00
Jenkins 5b42dcef5d Merge "Get default python versions from interpreter" 2017-09-10 16:59:05 +00:00
Jenkins 80021b8f9f Merge "Fix URLs when running with tls-proxy enabled" 2017-09-08 15:27:18 +00:00
Dinesh Bhor ef60f2b718 Enable reloadable config in services
uwsgi services:
[1] By default uwsgi is set to exit on reload this breaks config reloading
    of the service [1][2]. It needs to be set to 'false'.
[2] Requires to add 'systemctl reload' command support by adding ExecReload
    in unit file.

Non uwsgi services:
[1] Non uwsgi services only requires to add ExecReload in unit file.

There was a similar patch submitted by Matthew Treinish [3] but it was
already set to workflow +1(not merged as having dependency on other patch)
and it was having some issues as specified in comment and missing reload
functionality for other services.

[1] https://etherpad.openstack.org/p/uwsgi-issues
[2] http://uwsgi-docs.readthedocs.io/en/latest/Options.html#exit-on-reload
[3] https://review.openstack.org/#/c/490904/2

Change-Id: I78f5e9d4574671c74a52af64724946feb41c2d7a
2017-09-08 12:49:00 +05:30
Jenkins 0f75c57ad6 Merge "doc: How to remote-pdb under systemd" 2017-09-08 02:24:21 +00:00
Jenkins 0ad8fc5be9 Merge "doc: How to pdb under systemd" 2017-09-07 22:17:52 +00:00
Eric Fried 16ab25c187 doc: How to remote-pdb under systemd
Add instructions for installing and enabling remote-pdb [1] under
systemd.

[1] https://pypi.python.org/pypi/remote-pdb

Thanks to clarkb for pointing me to this.  TIL.

Change-Id: I640ac36cfbcc5b199e911c0e3f6b18705c3fbbc4
2017-09-07 20:52:14 +00:00
Eric Fried 12fcd61930 doc: How to pdb under systemd
Add a section to the systemd doc describing how to use regular pdb in a
systemd environment.

Change-Id: Ib1f616f407eccc087de1c60624fa74e2555971c2
2017-09-07 13:36:00 -05:00
Sean Dague a7f3272022 Fix up main readme
A few tweaks to make this more accurate.

Change-Id: I36ae24870be2ca6b5ac0e0507dd457b688739348
2017-09-07 11:16:48 -04:00
Jenkins 1ad91a7d4b Merge "Remove screen support from devstack completely" 2017-09-07 13:38:03 +00:00
Jenkins a7623994bc Merge "Wait for compute service to check in" 2017-09-06 18:16:21 +00:00
Jenkins 2d5494cfc5 Merge "placement: install osc-placement" 2017-09-06 18:04:28 +00:00
Roman Podoliaka a066abedac placement: install osc-placement
This makes sure that the openstack client placement plugin gets
installed when either LIBS_FROM_GIT includes osc-placement or
placement is used, which is always now if you've enabled nova,
which is enabled by default.

Co-Authored-By: Matt Riedemann <mriedem.os@gmail.com>

Depends-On: Ica83e29780722dd1555904e46b9ff1d1fdf72516

Change-Id: I7c5a5c10288b356302bb3027837d4ed4f0fbad8c
2017-09-06 12:56:00 +00:00
Sean McGinnis 486376e91b Change CINDER_LVM_TYPE to 'auto' as the default
This was previously set to thin as the default, but at the time
there were failures seen with what appeared to be race conditions
when creating snapshots.

These failures are not seen locally, and we have a lot of installs
using the default auto by this point with no reports from the field
of seeing this failure. This is to be able to more extensively test
this in the gate, and hopefully get this switched over to be able
to thinly provision by default when possible.

Change-Id: I3e99adadd1c37ba8b24b6cb71a8969ffc93f75a1
Related-bug: #1642111
2017-09-06 07:47:12 -05:00
Jens Harbott a7e9a5d447 Update to using pike cloud-archive
Now that Pike has been released, switch to using the pike version of
UCA instead of ocata, too.

One reason to do so it that it adds python3-ceph packages, allow to have
progress with the python3 compatibility of the Ceph integration.

Change-Id: I7d95e53892b697c72af75ad0ce7ce2dec6d31fde
2017-09-06 10:58:04 +00:00
Jens Harbott acb48a1a19 Update link to nova config reference
For devstack master branch we should point to the latest version and not
to some possibly outdated older branch.

Change-Id: I4af3aef90a2c295df3de4a5b49d127e85ab517ac
2017-09-06 10:55:39 +00:00
Matthew Treinish 477a962861 Enable graceful shutdown for services
1] Process using uwsgi:
   uwsgi services doesn't support for graceful shutting down [1].
   It requires some changes in unit files [2] including adding below
   graceful shutdown hook and changing KillSignal:
      --hook-master-start "unix_signal:15 gracefully_kill_them_all
   All the steps and changes required are specified in etherpad [1].

2] Non uwsgi services needs below changes:
   In [service] section:
   a. Add KillMode = process
   b. Add TimeoutStopSec = infinity

NOTE:
Creating unit file for services other than uwsgi is handled by the
'write_user_unit_file' function [3]. This function is common for all
the services so this patch adds the above mentioned parameters for
services using ServiceLauncher also though they don't require.

Added a new stackrc variable WORKER_TIMEOUT which is required to add
graceful shutdown support to uwsgi services. It will be set as a value
to 'worker-reload-mercy' [4] in uwsgi file of service. The default
value set to this variable is 90.

[1] https://etherpad.openstack.org/p/uwsgi-issues
[2] https://www.freedesktop.org/software/systemd/man/systemd.kill.html
[3] https://github.com/openstack-dev/devstack/blob/2967ca3dfd0d64970dfa5dfa7ac2330ee7aa90ed/functions-common#L1439-L1461
[4] http://uwsgi-docs.readthedocs.io/en/latest/Options.html#worker-reload-mercy

Co-Authored-By: Dinesh Bhor <dinesh.bhor@nttdata.com>
Change-Id: Ia95291325ce4858b47102dd49504250183f339ab
2017-09-06 11:55:04 +05:30
Jenkins 63651db44d Merge "Ensure valid service names are passed to stack_install_service" 2017-09-06 02:58:08 +00:00
Jenkins 52b8e976a9 Merge "modify the default url of noVNC" 2017-09-06 02:37:27 +00:00
Jenkins 6500fa8251 Merge "Make reference to service-types-authority from plugins.rst" 2017-09-06 02:25:28 +00:00
Jenkins b9e368b9f6 Merge "Add procname for uwsgi based services" 2017-09-06 01:26:55 +00:00
Jenkins bd054c58de Merge "Add function is_plugin_enabled" 2017-09-06 01:15:33 +00:00
Jenkins 99730fa6bd Merge "Update function description for start_tls_proxy" 2017-09-06 01:10:06 +00:00
Jenkins 3a68df7100 Merge "Cap tox != 2.8.0 temporarily to avoid ValueError" 2017-09-06 01:09:51 +00:00
Jenkins ee72981da5 Merge "Updated from generate-devstack-plugins-list" 2017-09-06 01:09:44 +00:00
Jenkins c2ae15a6dd Merge "Make subnet pool names unique" 2017-09-05 12:21:11 +00:00
Monty Taylor d8bb220606 Make list_images.sh emit the etcd3 tarball
We need this for every devstack run now, so downloading it from github
every time isn't the most awesome thing in the world.

Add an extra variable EXTRA_CACHE_URLS which will be appended to the
output of tools/image_list.sh.  This way, these files will be
downloaded during the daily nodepool build, but they will not be in
the IMAGE_LIST and hence be considered as images to upload.

Add a function get_extra_file which echos the path to a file given the
URL.  It will first check the cache at $FILES, and if not present
download it.

Update the documentation in image_list.sh to reflect what's happening.

Move the defaults for etcd variables into stackrc, since it is a base
service now.

Change-Id: I86104824a29d973a6288df1f24b7891feb86267c
2017-09-05 09:40:40 +10:00
OpenStack Proposal Bot 5f2ed3697c Updated from generate-devstack-plugins-list
Change-Id: Ifbb6d64834d6f3609c56c85163dc367d778ed21f
2017-09-04 08:48:08 +00:00
Jenkins 037d70a75c Merge "Replace http with https for doc links in devstack's document" 2017-09-04 04:49:19 +00:00
Jenkins 14e1223647 Merge "lib/neutron: Add neutron_deploy_rootwrap_filters" 2017-09-04 04:34:59 +00:00
Jenkins 7e9ec03af4 Merge "Use get_notification_url when configuring notifications" 2017-09-02 10:26:26 +00:00
Jenkins 62f07747ae Merge "Create correct directory layout for swift on purpose." 2017-09-02 10:26:19 +00:00
Jenkins bdb16fa3eb Merge "tempest: Disable l3_agent_scheduler when running without L3 agent" 2017-09-02 10:24:41 +00:00
zhangbailin c63d9331a7 Replace http with https for doc links in devstack's document
1) Update doc links according to OpenStack document migration
2) Use https instead of http for docs links

Change-Id: I81b560d1e4c5210dc00a6a6ac06c03bb1e69d595
2017-09-01 19:48:04 -07:00
Anna Khmelnitsky 730faa2626 Cap tox != 2.8.0 temporarily to avoid ValueError
This is proposed temporary change to avoid
"ValueError: need more than 1 value to unpack" error in stack.

Change-Id: I743febbef3a1f201cea37471356518be31585277
2017-09-01 16:30:11 -07:00
Sean Dague 0eebeb415a clean up screen and tail_log references
Change-Id: I6bcfa09931ed1f70e071ccb16688c15c7ef2898f
2017-09-01 15:08:17 -04:00
Sean Dague cdba1b3716 Remove screen support from devstack completely
This tears out the alternative path of using screen, so that we only
use systemd enabled paths. This simplifies the number of ways that
devstack can be run, and provides a much more reliable process
launcher than the screen based approach.

Change-Id: I8c27182f60b0f5310b3a8bf5feb02beb7ffbb26a
2017-09-01 15:08:17 -04:00
Jens Harbott 52609c684a Fix errors in tls-proxy startup for cinder
Two typos made starting tls-proxy fail when CINDER_USE_MOD_WSGI is
False.

Change-Id: I0435282182087a36d987843699152c1c08c4a494
2017-08-31 08:46:14 +00:00
Jenkins d84f10c10b Merge "Updated from generate-devstack-plugins-list" 2017-08-30 23:31:15 +00:00
Jenkins 66bdfff49e Merge "Fix Cleanups for keystone/placement/nova" 2017-08-30 16:44:53 +00:00
Vladyslav Drok b79be36cdb Remove setting some of the scheduler settings
It makes sense to set them only if resource classes are not used.

Change-Id: I76d8501a1d1a20357acadad4cd8f2d6cef3896c1
2017-08-30 19:19:56 +03:00
Jenkins 02ebbfd64e Merge "Switch from $DEST/data/etcd to $DATA_DIR/etcd" 2017-08-30 11:28:01 +00:00
Sam Betts def67a47e8 Stop using ironic host manager with resource classes
There should be no needs to use the ironic host manager when using
resource classes.

Change-Id: I9a51ea6582dfef28e4da5f8510742230d88cbaf3
2017-08-30 11:39:16 +01:00
OpenStack Proposal Bot f96f675ddb Updated from generate-devstack-plugins-list
Change-Id: I0dae4374fcfc05ae883d782635954dbd8268accd
2017-08-30 09:27:06 +00:00
Jens Harbott 81f67fd7eb Delete the default guest user from rabbitmq
Leaving the default user enabled is a security issue, as it can be used
without credentials. It also may mask issues like seen in [1].

[1] https://bugs.launchpad.net/bugs/1651576

Change-Id: I75b4e5696c0f8017b869127a10f3c14e2f8bd121
2017-08-30 07:49:05 +00:00
Jens Harbott 411c34da69 Fix URLs when running with tls-proxy enabled
Various services are returning broken links when running behind
tls-proxy. These issues can be fixed by setting the X-Forwarded-Proto
header in the apache config and letting oslo_middleware parse it.

Change-Id: Ibe5dbdc4644ec812f0435f59319666fc336c195a
Partial-Bug: 1713731
2017-08-29 14:40:26 +00:00
Clay Gerrard 0e58d22897 Create correct directory layout for swift on purpose.
The pre-existing configuration for swift on devstack set's the
*-server's devices option (the root of the servers list of devices) to:

    devices = /opt/stack/data/swift/1

where "1" is the node_number, and will be 2, 3, ... N if the devstack
machine is built with more than one swift node/device (pretty sure no
one does that on devstack ever).

The device(s) in the rings are named (perhaps confusingly similar to the
swift loopback image) just "sdb1", so all storage servers expect to have
a $STACK_USER writeable file system at:

    os.path.join(<devices_root>, "sdb1")

That directory does not exist when you start up a devstack [1].

Currently Swift's object-server's require that directory exist before
they write data into it (even with mount_check = false!).

Unfortunately however, with mount_check=false the account/container
servers are able to create the device directory when it does not exist
[2].  Which can lead to some unfortunate results with permissions on
some deployments using mount_check = false (e.g. testing or
containerized environments).  Fixing this issue [3] uncovered the
previously benign [4] mis-configuration in devstack.

Attempting

1. It was lost a long while ago I7c65303791689523f02e5ae44483a6c50b2eed1e
2. Essentially they want to:

    mkdir -p /opt/stack/data/swift/1/sdb1/containers/<part#>

... but end up creating the "sdb1" dir too!
3. I3362a6ebff423016bb367b4b6b322bb41ae08764
4. Benign because the object-server share their device with the
account-container devices and they would create the dirs before trying
to write an object.  It was incorrect, but worked by happenstance, which
is nearly as good as worked on purpose.

Change-Id: I52c4ecb70b1ae47e613ba243da5a4d94e5adedf2
2017-08-28 14:03:18 -07:00
Jens Harbott 4639984b96 Update function description for start_tls_proxy
In [1] the definition of the function was changed, adding the service
name as first parameter. Since this seems to have caused failures in
some plugins, at least update the function template accordingly.

[1] Ifcba410f5969521e8b3d30f02795541c1661f83a

Change-Id: I4d03957f8d3a18625f06379fb21aa7ba55e32797
2017-08-28 11:43:37 +00:00
Dima Kuznetsov 787412ce6c tempest: Disable l3_agent_scheduler when running without L3 agent
Dragonflow can operate without L3 agent, and does not advertise L3 agent
scheduler extension when running this way

Change-Id: I23d0e558c8454636fcde0a1903c78965b70bc324
2017-08-28 12:46:50 +03:00
Le Hou c09eaf8e40 Update OS_AUTH_URL in Configuration.rst
I am a new participant, and when I read the document I found that the command in the OS_AUTH_URL example is v2.0, so I want to update it.

Change-Id: I973adc303a3cb37ce377ca4e31d1d666cd41b358
2017-08-28 17:32:33 +08:00
Sławek Kapłoński 08367bac0b Switch from $DEST/data/etcd to $DATA_DIR/etcd
Etcd should use $DATA_DIR/etcd instead of "hardcoded"
$DEST/data/etcd directory for its data.

Change-Id: Icdc65f52a9d75981b63789036248e00d8ab72f11
2017-08-27 08:46:28 +00:00
Matt Riedemann 9d7e74e57c Setup logging for nova_cell1.conf
When run in the default superconductor mode, the screen-n-cond-cell1
logs are not formatting in oslo format or colorized like the other
logs. This is because screen-n-super-cond is running using nova.conf
which is configured for oslo format logging with color.

The oslo format logging is also needed to correctly index the logs
from screen-n-cond-cell1 in logstash.

This change simply configures nova_cell*.conf files for logging
like nova.conf.

Change-Id: I44fc11f09bb7283be0b068f5e02a424f3e5dafe2
Closes-Bug: #1713070
2017-08-25 10:17:18 -04:00
Ian Wienand 6d213dfda7 Get default python versions from interpreter
Query the python2/python3 interpreter for it's version to fill in
PYTHON3_VERSION and PYTHON2_VERSION defaults.  This means on a
python3.6 platform such as Fedora 26, we don't need to override the
default.

Change-Id: Id826f275b99b9f397b95e817941019fc503daa1d
2017-08-25 11:26:37 +10:00
Omer Anson 5158486124 Add function is_plugin_enabled
Add a function which tests if a plugin has been enabled with
enable_plugin. This is helpful if two co-ordinating projects want to run
specific setup in devstack in one only if the other is enabled.

Change-Id: Ibf113755595b19d028374cdc1c86e19b5170be4f
2017-08-24 17:47:37 +03:00
Jenkins c5aca3c996 Merge "Don't reinstall python-virtualenv on infra nodes" 2017-08-21 05:09:35 +00:00
OpenStack Proposal Bot af9f71d693 Updated from generate-devstack-plugins-list
Change-Id: I4747e03aa29828cba364a5887fada0721c8da56e
2017-08-18 08:21:34 +00:00
John L. Villalovos 64edfd47ca Correct spelling for 'lose' from 'loose'
We can 'lose' networking configuration, not 'loose' it.

Change-Id: I538270c05da6fce63340cc75ec53c3834efcecfe
2017-08-17 13:21:25 -07:00
Davanum Srinivas aa33c878d8 Fix Cleanups for keystone/placement/nova
* Check KEYSTONE_DEPLOY flag and cleanup appropriately
* When we stop process, we should not wipe uwsgi config we should
  remove files only on cleanup
* We should not call cleanup *BEFORE* configure, we are just wiping
  out the uwsgi ini files
* cleanup_placement should be called from clean.sh

Change-Id: I066f5f87ff22d7da2e3814f8c2de75f2af625d2b
2017-08-17 10:40:38 -04:00
Davanum Srinivas aceb27e858 Add procname for uwsgi based services
Code in grenade and elsewhere rely on the process/service name
when one runs "ps auxw" and they grep for example "grep -e glance-api"
to check if the service is running. with uwsgi, let us make sure
we use process name prefix so it is easier to spot the services
and be compatible with code elsewhere that relies on this.

Change-Id: I4d1cd223ed9904fcb19b26fc9362b676e0b4f9b3
2017-08-17 10:33:14 -04:00
Jenkins b93fd6fc5c Merge "Updated from generate-devstack-plugins-list" 2017-08-17 07:40:15 +00:00
Leticia Wanderley 1d141daaf6 Feature flag on tempest conf to notify enabled LDAP
This adds a new feature flag on tempest conf whenever LDAP is enabled.
When this flag is set to True Tempest users and groups identity tests
adapt to fetch users and groups from different domains.

Change-Id: I368ddf34908b906355c422bd1afd6ab9b1a80053
Depends-On: Iedb470c51fa2174ab7651e6b7e22eff1f25f7aac
2017-08-16 17:26:07 -03:00
Jenkins 644a6b9f10 Merge "Increase host_subset_size for ironic" 2017-08-16 19:56:01 +00:00
Chris Dent ebbbc0500c Make reference to service-types-authority from plugins.rst
We want people creating plugins (that add services) to be aware of the
service-types-authority (STA), so this change adds a Prerequisites
section and notes the existince of the STA there, and the need to apply
there to create a service-type.

Change-Id: I1aa48fe231aaa4499f8b4fe336abea668841b9af
2017-08-16 16:37:20 +01:00
Davanum Srinivas 98c95f4fa1 Stop nova conductor properly (singleconductor mode)
stop_nova_conductor dropped the ball when the CELLSV2_SETUP mode is
set to "singleconductor". We should cleanup the older style "n-cond"
in this case.

Change-Id: I9ffd6d09df6f390a842b8a374097f144564d2db4
2017-08-16 09:10:08 -04:00
OpenStack Proposal Bot cdfcff511f Updated from generate-devstack-plugins-list
Change-Id: I38170528cf78a89b71a616a4d9c6179c4e3f49c5
2017-08-16 08:06:13 +00:00
Jenkins 371e6e1055 Merge "Don't special case Grenade + systemd" 2017-08-16 02:33:00 +00:00
Tim Burke 59fb961180 Allow both Keystone and Tempauth reseller prefixes
... to be used with domain_remap. Swift will start functionally testing
domain_remap in I63428132283986bda9e5c082ffe85741449b71ba.

Change-Id: I4c1ab06d040d91fd8c314d0aa2cecbbb00adf8ad
2017-08-15 15:13:24 -07:00
Vasyl Saienko 0525e77d9f Increase host_subset_size for ironic
This patch increase host_subset_size when ironic is used to 999
to minimize race conditions.

Change-Id: I0874fe3b3628cb3e662ee01f24c4599247fdc82d
2017-08-15 22:03:23 +03:00
Jenkins ac1a6aab2c Merge "Don't uninstall pip packages if OFFLINE=True" 2017-08-15 02:17:27 +00:00
Jenkins 97cef2fead Merge "Modify some spelling mistakes" 2017-08-15 00:39:16 +00:00
Clark Boylan 6b354a9095 Don't special case Grenade + systemd
Now that the pike branch exists we don't want to special case grenade +
system on the target side. We should use systemd for both sides of the
pike -> master upgrade. Note this change should not be backported so
that we do not attempt to use systemd on the ocata -> pike upgrade path.

Depends-On: Iedf824a1772115e0dff287a898636f8e58471269
Change-Id: I6198bf1842a44773fce80672c81eee3afc3c6f38
2017-08-14 15:07:05 -07:00
Matthew Treinish a3488d5f00 Remove proxy-sendcl from mod_proxy_uwsgi apache path
Calling setenv appears to be globally scoped which is breaking the
glance path which relies on chunked uploads. The glance path is
separated by using mod_proxy instead of mod_proxy_uwsgi because
mod_proxy_uwsgi doesn't support chunked encoding.[1] The proxy-sendcl [2]
was set on the mod_proxy_uwsgi path just in case someone tried to send a
chunked request to the api server we would be able to handle it. It
tells apache to locally cache the chunked request and send the
content-length as a normal upload to the upstream server. However, if we
can only set it globally across then small potential benefit is not worth
having all glance uploads cached by apache. This commit just removes
setting the flag. In the future if we can have devstack isolate this
flag it might be worth adding back to the mod_proxy_uwsgi path, but for
right now it's not worth the tradeoff.

[1] https://github.com/unbit/uwsgi/issues/1540
[2] https://httpd.apache.org/docs/2.4/mod/mod_proxy.html#request-bodies

Depends-On: Idf6b4b891ba31cccbeb53d373b40fce5380cea64
Change-Id: Iab2e2848877fa1497008d18c05b0154892941589
Closes-Bug: #1709970
2017-08-14 15:47:11 -04:00
Jenkins 967e81c8c3 Merge "Disable track_instance_changes when in superconductor mode" 2017-08-14 08:02:01 +00:00
Jenkins 688993bf2e Merge "ETCD need to add UNSUPPORT environment in AArch64" 2017-08-14 07:39:16 +00:00
Sampath Priyankara 87d2396d22 Don't uninstall pip packages if OFFLINE=True
lib/nova does a pip re-install of libvirt-python to rebuild the python
library incase the underlying libvirt version changed during package
installs.  In offline mode, the underlying version of libvirt can't
have changed; so we have the situation that we've removed the libvirt
python bindings but can't reinstall them (because we're offline).

This fixes that particular situation, but skipping uninstalls in
offline mode seems generically OK.

Change-Id: I2b75d45d94d82f87d996c7570c125d46f5f99f6a
Closes-Bug: #1708369
2017-08-14 16:03:41 +10:00
Jenkins 641c817fd7 Merge "Remove DiskFilter and RamFilter from Nova scheduling defaults" 2017-08-12 18:37:32 +00:00
Jenkins a61ccb65ba Merge "Add "--nvram" to virsh undefine domain when clean_nova" 2017-08-12 18:14:27 +00:00
Lance Bragstad 63962fbbe4 Remove keystone configs for ldap read/write
Configuration options that toggle support for LDAP read/write
were deprecated and removed as of the Ocata release:

  I13eada3d5c3a166223c3e3ce70b7054eaed1003a

This means we no longer need to clutter the domain-specific
configuration with these values since they are no longer used.

Change-Id: I23b5b994862f066c3d48ce524c396faecabf60f8
2017-08-11 19:42:51 +00:00
OpenStack Proposal Bot 0ed3b62089 Updated from generate-devstack-plugins-list
Change-Id: Ibb3f6cd6aa01daf79413b2abfb5adb3d5f121321
2017-08-11 08:26:44 +00:00
Jenkins 98ab7d9646 Merge "Fix Cinder tls-proxy WSGI test" 2017-08-10 21:02:48 +00:00
Jenkins 7acc29ba9a Merge "Switch Centos/Fedora to Apache woker MPM" 2017-08-10 15:58:51 +00:00
Jenkins 69c78404ee Merge "Make TLS logs more readable" 2017-08-10 15:17:30 +00:00
Sylvain Bauza 0629c4fe22 Remove DiskFilter and RamFilter from Nova scheduling defaults
In Ocata, we replaced the verification logic for CPU, RAM and disk by calling
the Placement API instead of using those legacy scheduler filters, it's time
to remove them from the default list of filters that are run, especially
since Nova now removes them from the conf opt defaults thanks to
Ibe1cee1cb2642f61a8d6bf9c3f6bbee4f2c2f414

Change-Id: I2e81f1bbce7476d63e84e70dcdd59a1163f89f09
Related-Bug: #1709328
2017-08-10 15:37:44 +02:00
Eric Harney 8ea8660e36 Fix Cinder tls-proxy WSGI test
This currently will throw errors like:

lib/cinder: line 480: [True: command not found

Change-Id: I6bc08532cf99411f39d23523f9fc7851e7804131
2017-08-10 13:36:13 +00:00
linxuhua a6c7827223 modify the default url of noVNC
i had sync the all repos of devstack for installing in intranet
environment, and found the url of noVNC had changed to
https://github.com/novnc/noVNC. This module upgrade from individual to
an organization. the old url had redirect to the new one.

Change-Id: I19fc1e2ad30dcd97cad232c9ad58f53a523616b4
2017-08-10 19:09:38 +08:00
zhangbailin 32608da2c4 Modify some spelling mistakes
There are some comment errors, it's modify 'Captial' to 'Capital' in
keystone file, and modify 'possition' to 'position' in openrc file, and
modify 'comming' to 'coming' in stack file, and
modify 'prefered' to 'preferred' in stackrc file.

Change-Id: I0fdd539cbfff842a4ba7fca9100b881443300f9a
2017-08-10 03:03:47 -07:00
Ian Wienand 2d57f93f68 Don't reinstall python-virtualenv on infra nodes
In the original change I said "for infra nodes, it shouldn't do
anything anyway ...".  Well that was pre-Fedora 26 :)

It seems that dnf > 2.0 now intentionally throws an error when trying
to explicitly install an ignored package.  Thus, as described in the
comment, take a simpler approach of skipping this on infra nodes.
pip-and-virtualenv in dib should have installed the latest pip,
virtualenv and setuptools, so we don't want to fiddle with that
anyway.

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

Change-Id: Ib300b58377a0d0fe1bd7444c71acdb9a87dc033b
2017-08-10 16:42:45 +10:00
Ian Wienand 139837d69d Make TLS logs more readable
After looking at these for I9881f2e7d51fdd9fc0f7fb3e37179aa53171b531 I
found them not as useful as they could be.

Fix the CustomLog command, that wants the logfile then the format
string (or a nickname, which the LogFormat line wasn't setting).  Use
standard micro-second timestamps, and trim the access log to have more
relevant info.

Change-Id: I9f4c8ef38ab9e08aeced7b309d4a5276de07af4b
2017-08-09 06:30:22 +10:00
Ian Wienand 41e6e12318 Switch Centos/Fedora to Apache woker MPM
In trying to debug periodic gate instability of CentOS, I noticed that
it is using the prefork mpm, while Ubuntu is defaulting to the
multi-threaded worker mpm.

One of the problems seems related to 502 proxy errors from the TLS
proxy.  We see out-of-sync timestamps in the centos TLS proxy access
logs, which might be innocent behaviour based on the prefork model or
indicate something else.

Before going too deep down this rabbit-hole, I think it is better for
consistency to use the same mpm model on all our platforms, and start
debugging from there.

Change-Id: I9881f2e7d51fdd9fc0f7fb3e37179aa53171b531
2017-08-08 15:58:22 +10:00
Kenneth Giusti b645904d4a Use get_notification_url when configuring notifications
If a project manually configures the oslo.messaging transport url for
notifications it should use 'get_notification_url', not
'get_transport_url'.  get_transport_url should only be used to obtain
the RPC transport address.

Change-Id: I77772dfa9f30a3db2db6d0387260dfe3452a26ef
Closes-Bug: #1708754
2017-08-04 18:08:37 -04:00
Sean Dague 49144e6271 Remove glance api_servers from nova config
This should now be able to be discovered from the service catalog,
there is no reason to set it.

Change-Id: I7383b589fbcef9423beeab735db42c594f7b56fd
get auth from context for glance endpoints:
Depends-On: I4e755b9c66ec8bc3af0393e81cffd91c56064717
2017-08-04 21:58:30 +00:00
Sam Betts 801494550a Disable baremetal sched filters when using resource classes
When using resource classes to schedule baremetal nodes the baremetal
filters like ExactRam etc should not be used. This patch disables them
in the nova config if devstack is configured to enable ironic resource
classes.

Change-Id: Ic262ccaf8b541308042d61113a953653d2261964
2017-08-04 12:19:47 +01:00
Kevin Zhao eca7ce7492 ETCD need to add UNSUPPORT environment in AArch64
Closes-bug: #1708575

Change-Id: I77e78389ac7b8df9ba9f84b072f446d2e03d84d1
Signed-off-by: Kevin Zhao <kevin.zhao@arm.com>
2017-08-04 11:54:41 +08:00
Sean Dague c2fe916fc7 Wait for compute service to check in
With cell v2, on initial bring up, discover hosts can't run unless all
the compute nodes have checked in. The documentation says that you
should run ``nova service-list --binary nova-compute`` and see all
your hosts before running discover hosts. This isn't really viable in
a multinode devstack because of how things are brought up in parts.

We can however know that stack.sh will not complete before the compute
node is up by waiting for the compute node to check in before
completing. This happens quite late in the stack.sh run, so shouldn't
add any extra time in most runs.

Cells v1 and Xenserver don't use real hostnames in the service table
(they encode complex data that is hostname like to provide more
topology information than just hostnames). They are exempted from this
check.

Related-Bug: #1708039

Change-Id: I32eb59b9d6c225a3e93992be3a3b9f4b251d7189
2017-08-02 09:40:25 -04:00
Matt Riedemann ab980ce5d6 Disable track_instance_changes when in superconductor mode
When configured for superconductor mode, which is the default,
nova-compute can't reach the MQ for nova-scheduler so there is
no point in even enabling the track_instance_changes code since
it's a waste of time as the scheduler will never get the message.

Change-Id: I2662ebd47323428b403d3c2236bec78f1fb1050f
2017-08-01 16:38:42 -04:00
Mathieu Mitchell fa55cb5f97 Ensure valid service names are passed to stack_install_service
Currently, stack_install_service will accept any service name. This is
problematic because a project plugin can pass an invalid name without
noticing. This has been the case in ironic-inspector[0].

This commit ensures that stack_install_service will not silently fail
when passing an invalid service name.

[0] https://review.openstack.org/#/c/424680/

Change-Id: I1a8105bdbaf4aecb630df08da416808bf7180824
Closes-Bug: #1659042
2017-08-01 18:22:35 +00:00
Vasyl Saienko dea3083d98 Fix path to mlock_report
This patch fixes path to mlock_report.py. Also add python-psutil
to dstat depends as it is required by mlock_report.

Change-Id: Ia2b507a7b923f1e3393a9cb7746c66d39d6abfde
2017-08-01 08:15:07 +03:00
Jenkins f7c250128b Merge "doc: Switch from oslosphinx to openstackdocstheme" 2017-07-31 14:34:01 +00:00
Dirk Mueller 6effdf370a Remove extra websockify dependency cleanup step
This started to fail due to a missing || : / --force option now
that the dependencies got fixed:

2017-07-30 19:38:37.260 | ++ tools/install_prereqs.sh:source:97       :   sudo rpm -e --nodeps python-cffi python-cryptography python-pyOpenSSL
2017-07-30 19:38:37.293 | error: package python-cffi is not installed
2017-07-30 19:38:37.293 | error: package python-cryptography is not installed
2017-07-30 19:38:37.293 | error: package python-pyOpenSSL is not installed

Change-Id: Ia59afb7ee564cf2044ebdb3c5ad3e54ee91d1222
2017-07-31 08:56:17 +02:00
Jenkins ae664dd2f3 Merge "Fixes devstack ldap plugin" 2017-07-28 16:19:21 +00:00
Jenkins edb6a4fb68 Merge "Revert "Wait for compute service to check in"" 2017-07-28 00:53:33 +00:00
Jenkins 8c3720e589 Merge "Add instructions for discovering hosts in the multinode guide" 2017-07-28 00:00:07 +00:00
Sean Dague 01c0cc6d37 Revert "Wait for compute service to check in"
This reverts commit dcdf8c8e60.

Change-Id: Ib14016a3bc6f2714758ad0291396233218c593c6
2017-07-27 20:53:57 +00:00
Jenkins 2f9825711f Merge "Fix last place where we need singleconductor" 2017-07-27 19:01:07 +00:00
Jenkins b47f3e6dad Merge "Wait for compute service to check in" 2017-07-27 19:01:00 +00:00
Jenkins d7cef430e2 Merge "Run cinder-api with uWSGI" 2017-07-27 17:21:03 +00:00
Sean Dague afc14c8e85 Fix last place where we need singleconductor
The actual logic of launching a singleconductor didn't get all the way
to the launch of the conductor itself, so we were still launching 2
conductors in the Ironic case. This attempts to fix that.

Change-Id: I7ddb123dbdf3e1ec9a991e474a9990d2ccbc30d3
2017-07-27 10:55:03 -04:00
OpenStack Proposal Bot 97430cd9e0 Updated from generate-devstack-plugins-list
Change-Id: I4e47d524df32d3d41cc00c608edc6c9c588726b5
2017-07-27 08:21:35 +00:00
Sean Dague 5adfef0a53 Introduce CELLSV2_SETUP variable
Some environments, like grenade and ironic, need a way to revert to
the non fleet version of the conductor setup. This really comes down
to a global topology for CELLSV2_SETUP. The prefered is with a
superconductor, but allow a downgrade to singleconductor.

Depends-On: I5390ec14c41da0237c898852935aba3569e7acae

Change-Id: I10fb048ef2175909019461e585d117b4284448c6
2017-07-26 13:51:29 -07:00
Jenkins 4a20320452 Merge "Resolve openSUSE devstack failures" 2017-07-26 12:53:00 +00:00
Jenkins 99d3385d06 Merge "Updated from generate-devstack-plugins-list" 2017-07-26 12:52:53 +00:00
Jenkins 4836460438 Merge "Switch to cirrors 0.3.5 also for the xen case" 2017-07-26 12:52:46 +00:00
Sean Dague dcdf8c8e60 Wait for compute service to check in
With cell v2, on initial bring up, discover hosts can't run unless all
the compute nodes have checked in. The documentation says that you
should run ``nova service-list --binary nova-compute`` and see all
your hosts before running discover hosts. This isn't really viable in
a multinode devstack because of how things are brought up in parts.

We can however know that stack.sh will not complete before the compute
node is up by waiting for the compute node to check in before moving
forward. This puts a few more seconds into the run, but ensures
everything is solid in multinode environments.

Change-Id: I667e6a9be3fee8bb5bfd73426eef567489e3d88d
2017-07-26 07:26:50 -04:00
OpenStack Proposal Bot 2f09dcfc98 Updated from generate-devstack-plugins-list
Change-Id: Ic5ccbd05b9be0739b486d0b816b94eaa5d8f355f
2017-07-26 08:12:17 +00:00
Jenkins 5f0a963cb3 Merge "Fleetify nova conductor for N cells" 2017-07-25 22:32:18 +00:00
Matt Riedemann c63ecadb08 Add instructions for discovering hosts in the multinode guide
When doing a multi-node devstack deployment starting in Ocata
the child compute nodes must be discovered and mapped to the
single nova cell (cell1). In the upstream CI we do this discovery
in devstack-gate after the subnodes are stacked, but for anyone
doing this manually we need to provide some notes on what needs
to happen after child compute nodes are stacked for a multinode
environment.

Change-Id: I68418bcf28d86c60fe42537186d89458fa778bda
Closes-Bug: #1688397
2017-07-25 17:08:50 -04:00
Dirk Mueller d325875508 Resolve openSUSE devstack failures
This update resolves multiple issues with python-cryptography
causing keystone server and nova deployment to fail.

This is a temporary workaround until I196f025dbf1a9ac297946b8165620676645f7210
has landed and the extraneous dependency on python-cryptography (the
package) has been removed.

Change-Id: Ifb29b9089197c0429a5fc1cd08a25d2095d481f1
2017-07-24 21:25:27 +02:00
Jenkins 0d9c896cdd Merge "Add f26 to the supported distros" 2017-07-24 14:05:19 +00:00
Dirk Mueller 46a54c9089 Switch to cirrors 0.3.5 also for the xen case
This image is available on the download site since Feb 2016,
so let's use it.

Change-Id: I3b89211f6e57f2c35056d7e9c57d08651a3a314f
2017-07-24 11:03:48 +02:00
Jenkins 31412f5fc6 Merge "Update URLs" 2017-07-24 07:27:46 +00:00
Attila Fazekas 7bbd4e95d0 Add f26 to the supported distros
The only mentionable diff is the kvm alias
does not exists so we will install
qemu-kvm as with rhel7 which also exists
in the older supported fedoras.

kvm also just an alias in suse so
switching to qemu-kvm  in suse as well.

Change-Id: I5c79ad1ef0b11dba30c931a59786f9eb7e7f8587
2017-07-24 07:32:15 +02:00
Jenkins e0151532d4 Merge "Only setup nova-dhcpbridge if using nova-network" 2017-07-24 02:43:39 +00:00
Ian Wienand d2fbcd275d doc: Switch from oslosphinx to openstackdocstheme
Per the manuals migration effort, switch to openstackdocstheme [1]

[1] https://specs.openstack.org/openstack/docs-specs/specs/pike/os-manuals-migration.html

Change-Id: I0463f7d39bd72f1d27cfe3f6d5395608b9ed6b29
2017-07-24 10:34:22 +10:00
Takashi NATSUME fa0077707e Update URLs
Some URLs are broken, so fix them.
The others are redirect to new URLs,
so replace them with new ones.

The config options of nova serial console proxy
have been gathered in nova/conf/serial_console.py.
So the description in doc/source/guides/nova.rst
is fixed.

Change-Id: Ifd81cc09969341fbf8f135a913fc6003b94e0acc
2017-07-22 09:12:59 +09:00
Tim Burke ab70350403 When configuring temp urls, give Swift time to start up
Otherwise, we've seen intermittent "Unable to establish connection"
failures, with the main devstack log reporting things like

   2017-07-19 13:54:29.973 -> start proxy service
   2017-07-19 13:54:30.082 -> start OSC to store temp url key
   2017-07-19 13:54:31.908 -> OSC reports failure

Meanwhile, the s-proxy screen session tells us things like

   Jul 19 13:54:31.919988 -> start child worker
   Jul 19 13:54:32.206598 -> still loading the WSGI app

... and ports aren't actually bound until *after* the app is loaded.

Add a wait_for_service call to wait for the proxy to come up.

Change-Id: I1a722de31b144797230991700e110353a2d937dd
2017-07-20 11:12:00 -07:00
Matt Riedemann ecbebd5d7b Only setup nova-dhcpbridge if using nova-network
Closes-Bug: #1705324

Change-Id: I3abc84483bbd256e0bbbfe64d570903080f2a2b7
2017-07-19 14:01:44 -04:00
Jenkins d93433dfb8 Merge "List openSUSE 42.3 as a supported distro" 2017-07-19 16:23:41 +00:00
Jenkins 4eed4b6ec6 Merge "Prepare guestfs-support for openSUSE" 2017-07-19 16:12:15 +00:00
Dirk Mueller 04016a5dd1 List openSUSE 42.3 as a supported distro
openSUSE 42.3 is a relatively minor update over 42.2 and I'd
like to maintain it and keep it passing.

Experimental gates are being proposed, once those are passing
(which should be the case with this patch included), we could
enable it as a non-voting gate.

Change-Id: Ia421ada0ed3751c65a2a93a208e3f4a43edf8b16
2017-07-18 09:33:45 +00:00
Dirk Mueller a6467d36db Prepare guestfs-support for openSUSE
With libguestfs usage for file injection now being enabled by
default as part of I568c56dbcb62ec541661364c142eff2397e3eed7
the opensuse job started to fail due to lack of guestfs images
being available.

The error in question was
NovaException: libguestfs installed but not usable (cannot
find any suitable libguestfs supermin, fixed or old-style
appliance on LIBGUESTFS_PATH (search path: /usr/lib64/guestfs)

This part is being fixed by explicitly adding the missing package
dependencies to the compute node rpm package list while the maintenance
update for Leap 42.2 is in preparation.

Change-Id: Ie76ac0a51c1ee2ad6559917825dee1c7a91a3a76
2017-07-18 11:32:02 +02:00
Paul Belanger 331b3de88e Reduce tools/image_list.sh down to 4 images
Now that mysql.qcow2 has been removed, we only have 4 images to worry
about. This fixes cache-devstack element for openstack-infra.

Change-Id: Ia06f0e0679e253a1a6614f7c38abf1f5cd13991b
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-07-14 13:11:19 -04:00
Jenkins adc7f8e8dd Merge "Remove VGs when cleaning LVM up in devstack" 2017-07-14 03:06:50 +00:00
Bogdan Katynski 8175df1912 Remove VGs when cleaning LVM up in devstack
This patch adds removing of the volume group
before removing the loopback device and
the backing file when performing LVM cleanup
in unstack.sh

Without this commit:

unstack.sh removes logical volumes, removes the
loopback devices and deletes the backing file
but leaves a dangling volume group

  $ ./stack.sh && ./unstack.sh
  $ sudo vgs
  VG                    #PV #LV #SN Attr   VSize  VFree
  stack-volumes-default   1   0   0 wz--n- 10.01g 10.01g
  $ sudo losetup -a
  $ sudo vgremove stack-volumes-default
  /dev/loop0: lseek 4096 failed: Invalid argument
  vg_remove_mdas stack-volumes-default failed

With this commit:

unstack.sh removes volume groups after removing
all logical volumes but before removing
the loopback device and deleting the backing file

Partial-Bug: 1441236
Change-Id: Id9c06fa50f6cad28764f5a3396f559cac9999649
2017-07-12 09:34:52 +00:00
Jeremy Liu 2f7df51cfa Correct 'uswgi' to 'uwsgi'
Change-Id: I22026e5640a626f45b7508b60f492dbdb30631af
2017-07-12 10:09:48 +08:00
Paul Belanger 254116305c Remove mysql.qcow2 from stackrc
We no longer host this on tarballs.o.o, additionally it is no longer
used my trove.

Change-Id: I2034e8ebc530704d6e63a231056f92e14a8654e4
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-07-11 11:40:24 -04:00
Jenkins e4b2e3b93e Merge "Put devstack-version info into separate file" 2017-07-11 06:16:29 +00:00
Leticia Wanderley cc36397134 Fixes devstack ldap plugin
When the ldap service is enable on local.conf devstack ldap
plugin starts slapd service using its default config on Ubuntu
and installs ldap-utils package.
Enables domain specific drivers on Keystone and creates LDAP
domain 'Users' with a demo user.

Change-Id: I8d7aa260b01f675e4ed201ef93bfd66474f4b228
2017-07-10 17:06:16 -03:00
Dan Smith f3d5331572 Fleetify nova conductor for N cells
This makes us start two levels of nova-conductor processes, and one per cell.

Note that this also sets the notification transport_url to the top-level mq
so that we continue to get a unified stream of notifications.

Related-Bug: #1700496
Change-Id: I08d7da843d18b426dda8a8a231039d950a4c0ce5
Depends-On: I64b600b30f6e54db0ec9083c6c176e895c6d0cc2
Depends-On: If59453f1899e99040c554bcb9ad54c8a506adc56
2017-07-07 13:23:17 -04:00
Matt Riedemann 17cdecc689 Enable tempest testing for extending an attached volume
In Pike, Cinder and Nova will support extending the size of
an attached volume, but it's not supported by all volume and
compute backends. Tempest will also test it but uses a config
option that we need to set based on how devstack is configured.

Depends-On: Ibace6c2f91be9753a44e5f79fd013df11654851b

Related to cinder blueprint extend-attached-volume
Related to nova blueprint nova-support-attached-volume-extend

Change-Id: I52cc2952a2938ce44c442aa3e3b69a905b2b55d5
2017-07-05 21:46:09 -04:00
Ian Wienand 07cbc44942 Put devstack-version info into separate file
As a follow on to I4c269a7f3d63ee9a976e7c3636fc3e5e8dab9ae3; the
quoting gets tricky when putting arbitrary command-substitution
strings into saved echo-able strings.  As they say, "the only winning
move is not to play" :)

An alternative proposal is to not write this into a script but just
dump info into a file.  To my mind, this has several advantages --
avoid getting involved in quoting, not dropping a script into the
global environment -- it's just as easy to "cat" -- and the plain-text
file can be collected as an artifact during log collection (also moved
git commit line to separate line for easier parsing during log search,
etc).

Change-Id: Ic7391dd087657c0daf74046e4a052c53f4eb6e1a
2017-07-03 11:56:16 +10:00
Matthew Treinish b79531a9f9 Increase the socket timeout on uwsgi local mode
This commit increases the socket timeout value from 4 secs to a much
higher 30 secs. This is just for sanity, the load is high when we're
seeing the wsgi.input timeouts, so uwsgi might be just closing the
socket waiting for data over the wire. 30 seconds is overly conservative
just so we can rule this out. This will likely be shrunk to a more
reasonable value in the future.

Change-Id: Iae85d3a084fb33b2a63550d6e353413e98c0b39c
Partial-Bug: #1701088
2017-06-30 12:24:21 -04:00
Matthew Treinish 1560efe9c9 Switch local http uwsgi conf to http-socket mode
Previously the local uwsgi server mode was using uwsgi in http mode.
This was unessecary and actually not recommend by the uwsgi docs [1][2]
This is because http mode starts a frontend http process that forwards
requests to the workers running the python code. This is done for the
largely the same reasons we're using apache as a proxy and is
unnecessary. http-socket mode doesn't do this and just exposes the
workers as an http interface to the proxy. (in our case apache)

[1] http://uwsgi-docs.readthedocs.io/en/latest/HTTP.html#http-sockets
[2] http://uwsgi-docs.readthedocs.io/en/latest/ThingsToKnow.html

Change-Id: I5671687c8083fa4bdee066c07b083a0f00be532b
2017-06-30 12:24:21 -04:00
Manjeet Singh Bhatia 3415521d56 Don't dump commit message header to devstack-version
Dumping commit message to /usr/local/bin/devstack-version
has broken devstack build, because of bash error in formatting.
error log [1].

[1]. http://logs.openstack.org/20/418720/6/check/gate-tempest-dsvm-networking-odl-boron-snapshot-v2driver/ed9fd45/logs/devstacklog.txt.gz

Change-Id: I4c269a7f3d63ee9a976e7c3636fc3e5e8dab9ae3
2017-06-30 02:01:06 +00:00
Jenkins 248d54b51b Merge "Ensure keepalive isn't used on uwsgi http mode" 2017-06-29 23:03:42 +00:00
Jenkins 8f314400d8 Merge "Set specified header size when enabling tls-proxy" 2017-06-29 23:00:35 +00:00
Jenkins 02d8a0cd21 Merge "Use uwsgi for nova when NOVA_USE_MOD_WSGI is not False" 2017-06-29 18:02:31 +00:00
Sean McGinnis daf1274409 Run cinder-api with uWSGI
Per the Pike goal, switching the Cinder API control plane to
use WSGI in Apache.

Co-Authored-By: Ivan Kolodyazhny <e0ne@e0ne.info>
Depends-On: Ie8a0eeab1bf31887d6f37cf155b2d161ddfb172d
Depends-On: I14b68f36e7fcc5341bbdbcf165274d9d50f7dd04
Change-Id: I8cef6c98f9242cc38d66de0ac499490e2a237887
2017-06-29 15:13:49 +03:00
Jenkins 66109302ab Merge "Switch to lioadm for centos cinder" 2017-06-28 23:22:30 +00:00
Jenkins 51a4c28b02 Merge "Add devstack-version script" 2017-06-28 23:19:25 +00:00
Matthew Treinish 82d0610f14 Ensure keepalive isn't used on uwsgi http mode
According to the uwsgi docs [1] for http keepalive there is a separate
option for http keep alive, and just setting connection close isn't
enough. This commit makes sure we disable http keepalive. This will
hopefully fix the random connection issues we get on image uploads to
glance, which uses uwsgi http mode.

[1] http://uwsgi-docs.readthedocs.io/en/latest/HTTP.html#http-keep-alive

Change-Id: Ic5f83c5c93f28b2bd62ca9ac96ca8c87797ea5c9
Closes-Bug: #1701088
2017-06-28 17:42:31 -04:00
Jenkins 9c39cb68df Merge "Stop setting osapi_volume_base_URL" 2017-06-28 21:33:24 +00:00
Sean Dague 2c0faca038 Add devstack-version script
This will help in collecting information about the devstack version
being used.

Change-Id: I23a8ca023bda6d097051cd57ae45401806451ad5
2017-06-28 13:53:37 -04:00
Chris Dent b90bb1a461 Use uwsgi for nova when NOVA_USE_MOD_WSGI is not False
Unless NOVA_USE_MOD_WSGI is False, run nova-api and nova-metadata
using uwsgi.

Because the metadata server is always expected to run on a port and
without a prefix, we have it configured to use uwsgi but not to
proxy from apache: uwsgi listens on the configured port itself.

uwsgi process that listen themselve do not need a socket or to
chmod-socket, so those config lines have been moved to the block
that is also writing proxy configuration for apache.

Because this change only uses uwsgi for nova-api and nova-api-meta,
nova-api-meta is set to default to enabled in stackrc because the
nova-api wsgi application used by wsgi only presents the one service
(osapi_compute).

If NOVA_USE_MOD_WSGI is False and tls_proxy service is enabled,
nova-api is run on an internal port reached via the tls_proxy.

Depends-On: I8ff08d61520ccf04e32dcd02f4cecc39dae823cb
Change-Id: If2d7e363a6541854f2e30c03171bef7a41aff745
2017-06-28 17:46:22 +00:00
Jenkins 87362e5722 Merge "Revert "Revert "Use uwsgi for glance-api""" 2017-06-26 23:27:14 +00:00
Jenkins 2967ca3dfd Merge "Actually check if roles are set" 2017-06-26 23:26:27 +00:00
Jenkins cb62ef8336 Merge "Revert "Fleetify nova conductor for N cells"" 2017-06-26 15:49:03 +00:00
Matt Riedemann 20eeff813d Revert "Fleetify nova conductor for N cells"
This reverts commit f63aa021cf.

Change-Id: I541abe7311e5721d79e300fcb2a0b8ffdcd3c015
Related-Bug: #1700364
2017-06-26 07:53:08 +00:00
Jenkins 2b06b1a072 Merge "Change restart Always to always" 2017-06-26 06:43:04 +00:00
OpenStack Proposal Bot 580a506f25 Updated from generate-devstack-plugins-list
Change-Id: I6e040449252aae43f330d545d979b3bdba6f855a
2017-06-25 08:01:06 +00:00
Jenkins 3c9032fd52 Merge "Download etcd3 only zip file not exists" 2017-06-24 10:53:43 +00:00
Jenkins 3ed001821b Merge "Revert "systemd: Always create the systemd unit files"" 2017-06-23 23:41:16 +00:00
Matthew Treinish 1fa6536357 Revert "Revert "Use uwsgi for glance-api""
This reverts commit 3410e3e01b.

Change-Id: Ic58711311eb8534cb3c4b25c333197c412ffdce5
2017-06-23 22:32:37 +00:00
YAMAMOTO Takashi c087c71834 Revert "systemd: Always create the systemd unit files"
This reverts commit 15b0a5f1eb.

The change had an assumption that a service
is properly configured even when it isn't enabled.
The assumption is not true.

Change-Id: Ib5a8ffe63eaec15bc29bfdd133db7169507bab82
Closes-Bug: #1698129
2017-06-23 15:08:38 +00:00
Jenkins a02b9ba1b1 Merge "Fleetify nova conductor for N cells" 2017-06-23 11:36:35 +00:00
Jenkins 13d376d672 Merge "Ignore etcd files downloaded to files/ dir" 2017-06-23 11:28:12 +00:00
Jenkins 44ff39538c Merge "Fedora mariadb: disable cracklib" 2017-06-23 11:28:05 +00:00
Jenkins fb24c26278 Merge "Add python-barbicanclient to LIBS_FROM_GIT" 2017-06-23 11:12:44 +00:00
Yuval Brik 13e81ad1cf Fedora mariadb: disable cracklib
In Fedora mariadb, cracklib has been enabled [0] in order to verify the
password strength.
Disable cracklib in Fedora devstack in order to allow simple passwords
in dev environments.

[0] https://src.fedoraproject.org/cgit/rpms/mariadb.git/
    commit: 9442da192282aa74f43e86c96202109a173bbaba

Change-Id: I2d5e965f0f19f86992794eec78134e862899c931
2017-06-23 10:32:16 +03:00
Jenkins 41f61ad99e Merge "Revert "Use uwsgi for glance-api"" 2017-06-22 18:46:22 +00:00
Jenkins 62f800b196 Merge "cleanup comments" 2017-06-22 15:19:09 +00:00
Jenkins a1f45c6117 Merge "remove lib/os_brick" 2017-06-22 15:07:30 +00:00
Jenkins b9ffb5abcc Merge "mv lib/oslo to lib/libraries" 2017-06-22 15:01:21 +00:00
Kaitlin Farr ed7dbe5754 Add python-barbicanclient to LIBS_FROM_GIT
Allow python-barbicanclient to be installed from git instead of pip.

Change-Id: I99cd72724e11bab362bcaaeb773f33b2abfe815c
2017-06-22 09:45:28 -04:00
TommyLike 599ecfbd4c Download etcd3 only zip file not exists
Give a change to manually prepare the zip file
for etcd.

Change-Id: I54283cf2ed62bb716af34df21e8c168014264c8c
2017-06-22 08:43:27 +00:00
Ian Wienand 3410e3e01b Revert "Use uwsgi for glance-api"
This reverts commit e6217a9719.

Unfortunately it seems to break glance; for examples see some of the
nodepool dib jobs which have all failed to upload images into glance.

Note this has a revert for 43304849cf as
well, since that uses GLANCE_URL defined here.

[1] http://logs.openstack.org/51/475051/2/gate/gate-dsvm-nodepool-redhat-src/e1bdb34/
[2] http://logs.openstack.org/51/475051/2/gate/gate-dsvm-nodepool-ubuntu-src/6a7665b/
[3] http://logs.openstack.org/51/475051/2/gate/gate-dsvm-nodepool-opensuse-src/b357de1/

Change-Id: I2aea120e733b05e806801121ec994f4e31a337d9
2017-06-22 13:48:06 +10:00
Monty Taylor 43304849cf Set public_endpoint to GLANCE_URL for glance-api
We run glance behind uwsgi. This means that the URL glance knows about
itself is wrong, and version discovery fails. Set the public endpoint to
the value of GLANCE_URL which should always be correct.

Change-Id: Ia7c69024a0ef6cc0fdc284ffcd06eee5678a1007
2017-06-21 21:45:14 +01:00
Sean Dague 7e41c6ce66 cleanup comments
Change-Id: I685f726178722e58ccfd008bad16a671cc8b8e2a
2017-06-21 10:55:16 -04:00
Sean Dague 99a6477c49 remove lib/os_brick
Fold this back into lib/libraries

Change-Id: I2c4e3ebf1a1cc65841e4470d5cfe073f9b505d5f
2017-06-21 10:46:12 -04:00
Pavlo Shchelokovskyy d064acce4c Ignore etcd files downloaded to files/ dir
Change-Id: Ic1458a612ccdefdcc34880529a259513135fa7a1
2017-06-21 09:18:46 +00:00
Jenkins 7fef90aff9 Merge "Use uwsgi for glance-api" 2017-06-21 08:34:52 +00:00
Sean Dague 3ed99c0b27 mv lib/oslo to lib/libraries
There is confusion about where installation of new libraries should
end up, to prevent lots of little files being added make a
lib/libraries which is the old lib/oslo. Put compat functions and
includes in place to help with transition.

Change-Id: Ieeab605d187ef6aec571211ab235ea67fa95a607
2017-06-20 14:09:30 -04:00
Jenkins 3603bf59c3 Merge "rework etcd3 install to be like other devstack services" 2017-06-20 16:14:43 +00:00
Sean Dague 62b56601a9 rework etcd3 install to be like other devstack services
This separates out the install phase early from the start phase to
make this mirror other services in devstack.

Depends-On: I4124dc7e3fd3b4d973979da85209ec991c0f8c4b

Change-Id: I76f8740448b25a48869ee80006e826baa6cafc2b
2017-06-20 10:24:01 +00:00
Jenkins 805304f2ce Merge "Add a function to get an available random port" 2017-06-20 09:11:25 +00:00
Jenkins d9d10df6cd Merge "etcd3: Allow for multi-host deployments" 2017-06-19 13:38:21 +00:00
Jenkins b9f00f4539 Merge "docs: add "kvm on s390x" specific configuration in local.conf" 2017-06-19 13:25:03 +00:00
OpenStack Proposal Bot 41da1a9feb Updated from generate-devstack-plugins-list
Change-Id: Ida1d6d012e1e05f35ba45670436acd6f920c9575
2017-06-19 08:55:47 +00:00
Antoni Segura Puimedon 19279b0f87 etcd3: Allow for multi-host deployments
In Multi host deployments, it is possible to run ETCD in a different
host than the SERVICE_HOST (where all the controllers run). This patch
brings that distinction.

Change-Id: I15fe6f25eedf1efebaab81cce26b080577b856cc
Signed-off-by: Antoni Segura Puimedon <antonisp@celebdor.com>
2017-06-16 16:04:59 +02:00
Jenkins 418bbddc81 Merge "Provide timings for OSC during devstack run" 2017-06-15 19:36:32 +00:00
Jenkins b24bfac43d Merge "Track db sync command time useage" 2017-06-15 19:36:25 +00:00
Sean Dague 85cf2933cc Provide timings for OSC during devstack run
The OSC number remain high, and it's useful to understand how much
time we spend making OSC calls, especially to surface it relative to
other items. The way we embed this in our code makes it hard to
instrument.

This patch creates a wrapper function for OSC which collects the timings
then aliases `openstack` to that function. This means any invocations of
the openstack utility goes through our function while devstack is
running. Because this is an alias it only affects the stack.sh shell and
any subshells.

This also moves the time tracking infrastructure to count in ms,
instead of s, because some of these operations are close enough to a
second that rounding early is losing way to many significant
digits. We divide by 1000 before reporting to the user.

Change-Id: Ic5f1844ce732d447ee980b3c9fdc417f72482609
2017-06-14 16:43:49 -07:00
Clark Boylan 3e9b562d0b Actually check if roles are set
In the helper functions to check if roles are set and if not add the
role and return the id we weren't actually checking if the role was set.
The reason for this was we grepped for name values while outputing only
uuid values with OSC. Fix for this is straightforward, we just add the
--role argument to OSC which will filter for us then we don't have to
use a grep on the wrong value type.

Change-Id: I2691b347d2a6273100deb4a1750ab353a8e49673
2017-06-14 15:35:29 -07:00
Clark Boylan 633dbc3d8e Track db sync command time useage
We are trying to keep better track of what pieces of devstack consume
the most time. Add the db sync commands to the time tracking as they run
the database migrations which can take more time than expected.

Change-Id: Ib92f2b8304ccf703712d45fd7207444de3599e2d
2017-06-14 12:09:21 -07:00
Jenkins a4c21ff9b2 Merge "Support unicode via en_US.utf8" 2017-06-14 18:35:31 +00:00
Jenkins 7b3968b382 Merge "Increase KEYSTONE_LOCKOUT_DURATION to 10" 2017-06-14 16:10:35 +00:00
Jenkins 2b76a75ff4 Merge "Improve OpenStack performance by redcuing bcrypt hasing rounds number" 2017-06-14 16:10:29 +00:00
Jenkins 3350542a44 Merge "Set swift functest config when using tls" 2017-06-14 16:09:11 +00:00
Clark Boylan d095e97624 Support unicode via en_US.utf8
Because C.utf8 is not everywhere and is sometimes called C.UTF-8 (just
to confuse people) use en_US.utf8 which is in most places. This isn't
language/region agnostic but gives a consistent unicode aware locale to
devstack.

Change-Id: I67a8c77a5041e9cee740adf0e02fdc9b183c5bc4
fixes-bug: 1697733
2017-06-14 10:13:14 -04:00
Jenkins 29215d95c7 Merge "systemd: Always create the systemd unit files" 2017-06-14 07:50:37 +00:00
Jenkins 660f4ae3ca Merge "Support installing os-traits from git" 2017-06-14 06:19:11 +00:00
Jenkins f1da3fbf75 Merge "Install test-requirements with main install" 2017-06-14 06:19:04 +00:00
Jenkins 2c0692c2c7 Merge "Remove temporary openSUSE-42.2 workaround" 2017-06-14 06:18:58 +00:00
Jenkins f500d6a29d Merge "Use systemd-tmpfiles to create /var/run/uwsgi" 2017-06-14 06:18:12 +00:00
Markus Zoeller 15b0a5f1eb systemd: Always create the systemd unit files
Commit 5edae54 introduced the usage of systemd in Devstack. This allowed
the transition away from 'screen'. Systemd needs "user unit files" to
describe the services. Currently, those unit files get only created when
an openstack service (n-cpu, c-sch, g-api, ...) is in the list of enabled
services (`ENABLED_SERVICES`). This means, when Devstack is fully stacked,
there is no way to start the systemd unit of an openstack service which
is *not* in that list.

This commit changes that behavior, and creates the systemd unit files
independently of the list ENABLED_SERVICES. This means, when Devstack
is fully stacked, I can start a systemd unit of an openstack service which
wasn't in the ENABLED_SERVICES list. This allows more flexible lifecycle
management of openstack services in the gate, which is useful for tests
which test components which are not in the "default configuration" (e.g.
the "nova-serialproxy" service).

The `clean.sh` script purges all traces of systemd user unit files created
by devstack.

Change-Id: I0f7e1ee8723f4de47cbc56b727182f90a2b32bfb
2017-06-14 14:29:39 +10:00
Boris Pavlovic 2b6e9ac471 Improve OpenStack performance by redcuing bcrypt hasing rounds number
Reduce bcrypt hashing rounds from 12 to 4 (minimal possilbe).

This is going to imporve a lot of perforamcne of OpenStack.

Bcrypt is hashing algorithm that is designed to use a lot of resources and
in that way stops brutforce attacks. It's exponential algorithm that depends
on amount of rounds. By default they use 12 rounds which is quite high value,
good enough for real secure production enviorments.

In case of DevStack it's going to slow down all authentication by many times.
Rally shows about 5 times slownest (adding 2-5 seconds to every authenticate)
DevStack is meant for developemnt & CI so performance is way more important than
security.

Change-Id: Id8c763d63cb91f37a774f9400f35c309f37d6f12
2017-06-13 18:33:28 +00:00
Jenkins f4b4a79979 Merge "XenAPI: Move dom0 related operations to os-xenapi devstack plugin" 2017-06-13 13:56:12 +00:00
Jenkins e403cd3c00 Merge "nova: fix usage of scheduler_driver config option" 2017-06-13 08:40:58 +00:00
Clark Boylan f266a2dc81 Install test-requirements with main install
To reduce the total number of invocations necessary for pip which isn't
the quickest thing ever (due to needing to evaluate constraints and deps
lists and what is currently installed) combine the main installation of
software with its test-requirements.txt file which should roughly halve
our pip invocations.

Change-Id: Ibcc3264136e66d34a879ad1c90a62e1bb6a84243
2017-06-12 14:57:59 -07:00
Dan Smith f63aa021cf Fleetify nova conductor for N cells
This makes us start two levels of nova-conductor processes, and one per cell.

Change-Id: Ice4aceac5dc44954db3661480b9365f54e47a4c9
2017-06-12 12:44:22 -07:00
Lance Bragstad dcd4b64c99 Increase KEYSTONE_LOCKOUT_DURATION to 10
Transient failures were being reported because the current lockout
period for users was too short. While this does increase the
run time IdentityV3UsersTest.test_user_account_lockout, it
allows for more flexibility if there is network latency or some
other factor that cause the lockout to expired before the
next authentication.

Change-Id: I61bc39bbc35ac414b4a72929a90845956c99eb1a
Closes-Bug: 1693917
2017-06-12 14:41:42 +00:00
Jenkins 9234316794 Merge "Make use of Ubuntu Cloud Archive switchable" 2017-06-09 01:55:36 +00:00
Huan Xie f15fd26943 XenAPI: Move dom0 related operations to os-xenapi devstack plugin
When installing OpenStack via DevStack on XenServer, we need to
some preparation operations in dom0 which will refer the function
in devstack/tools/xen/functions file, but we are planning to move
the whole folder of tools/xen from devstack to os-xenapi, so it
this patch is to moving the dom0 related operation to os-xenapi
repo first.

Change-Id: Ib59d802a7a4eab4ccce0e29d80f29efa4655bc0b
Depends-On: I712ee74ce945859ba5118e09b7d9436ca2686cb7
2017-06-07 22:02:56 -07:00
Jenkins 1ca22d50b0 Merge "Don't treat service as enabled if in disabled list" 2017-06-07 22:02:53 +00:00
Jenkins 986da6428d Merge "Updated from generate-devstack-plugins-list" 2017-06-07 18:43:12 +00:00
Clark Boylan 902158bb8f Don't treat service as enabled if in disabled list
The old implementation for is_$service_enabled simply checked if any of
the subservices were enabled and if so the service was considered to be
enabled. This makes disabling services complicated as it means you have
to list every single subservice which can and do change over time.

Instead also check if the generic service name is in the disabled
services list and if so don't treat the service as enabled.

Change-Id: I7fe4dfca2cd9c15069d50a04161a29c5638291cb
2017-06-07 17:23:38 +00:00
Matt Riedemann 886d7dbe12 nova: fix usage of scheduler_driver config option
The scheduler_driver option has been moved and deprecated. This
change uses the new group and name for the option.

Change-Id: I27aeff5911510c9f47191acaa0c0b5b71f977cd7
2017-06-07 10:52:20 -04:00
Jenkins 3742b14622 Merge "Change "files" directory in etcd project" 2017-06-07 13:33:58 +00:00
OpenStack Proposal Bot a40e036d80 Updated from generate-devstack-plugins-list
Change-Id: I5980980fe5071a781b5b95efd69f479359f8ee6e
2017-06-07 08:24:31 +00:00
Dirk Mueller bbf14db3a7 Remove temporary openSUSE-42.2 workaround
We required initially 42.2 test updates to be enabled as the
liberasurecode-devel update wasn't released. It is now released
so we can stop pulling that part in.

Change-Id: I4e514e317da8a95809593a49c6dce619bc4c021f
2017-06-06 23:29:41 +02:00
Jenkins 4bca739576 Merge "Use correct argument order in truorfalse for USE_JOURNAL" 2017-06-06 13:24:32 +00:00
Jenkins bc8d7ef89e Merge "Start placement before services that might like to use it" 2017-06-06 00:01:06 +00:00
Jenkins 64d20857ed Merge "Enable opensuse-42.2 as a tested distro" 2017-06-05 23:56:45 +00:00
Jenkins c639fc4302 Merge "Fix configuration link syntax error" 2017-06-05 22:01:24 +00:00
Matt Riedemann aefc926cd4 Support installing os-traits from git
This will be used in a src job for running os-traits changes
in a dsvm/tempest setup.

Change-Id: I3c4433fb1ca2787e96b577a15d584b625c364ef3
2017-06-05 20:45:43 +00:00
Jenkins adabee29f6 Merge "Don't run and check c-api if it is disabled" 2017-06-05 20:22:10 +00:00
Clark Boylan f4dbd12f78 Set specified header size when enabling tls-proxy
As part of getting swift's functional testing to work properly through
the tls-proxy we need to increase the allowed request header size in
apache. This was a non issue without tls proxy as requests hit the
eventlet webserver directly which was configured via the swift config
which sets this relatively large limit (by default devstack configures
swift to have a header size limit of 16384).

Now we pass in an optional parameter to start_tls_proxy that includes
the desired header size. lib/swift then passes in the value it also
configures in its swift.conf.

If not explicitly set we default to 8190 which is apache2's default.

Change-Id: Ib2811c8d3cbb49cf94b70294788526b15a798edd
2017-06-05 12:47:50 -07:00
Jenkins e1a2448970 Merge "Expose etcd port as a variable" 2017-06-05 18:28:11 +00:00
Dirk Mueller e61e19ee82 Enable opensuse-42.2 as a tested distro
openSUSE 42.2 passes testing on the experimental gate and
in order to add it as continuosly tested target we need to
add it to the positive list of tested distributions.

Change-Id: I46f94cfad828534f324994c3d21bddff40e8f9a2
2017-06-05 19:28:30 +02:00
Clark Boylan e28db4c2f2 Set swift functest config when using tls
Because the swift functests (which use test.conf) run out of a
virtualenv they don't get access to the system wide trust of the
devstack CA. Handle this by explicitly configuring the cafile to trust
in the test.conf file.

We also set the web_front_end to apache2 as that is what is terminating
TLS for us. The tests handle different web server behaviors using this
flag.

Swift's functests will need to read these values in and properly
configure things on its end.

Change-Id: I4cdba36ccab6acd76205184882ee29e4f1e12333
2017-06-05 09:21:46 -07:00
Chris Dent 7a74c2ab24 Start placement before services that might like to use it
Otherwise those services, notably n-cpu, will try to register
resource providers before placement is ready.

Change-Id: I89fd4fa42baf3d19ee209c59cd85b97adb97c58b
Closes-Bug: #1695634
2017-06-05 16:18:46 +00:00
Matt Riedemann 1ade00da55 Fix scheduler_default_filters usage
The scheduler_default_filters config option moved out of the
DEFAULT option group into a more specific group, and the old
option is deprecated as a result so we need to update our usage.

Change-Id: I5d6574d19c3f16abadddb19f34cb645dcdcc07f4
2017-06-05 11:01:45 -04:00
gong yong sheng 07b3bc24a3 Change restart Always to always
Change-Id: I1cb00cc012eda72ff50e958ba1fb04daeac69e26
Closes-bug: #1695822
2017-06-05 14:04:00 +08:00
Jenkins dc9ef55fc6 Merge "Make stack.sh work on SUSE" 2017-05-31 20:48:10 +00:00
Jenkins a718b5ea92 Merge "Use proper python when configuring certs" 2017-05-31 19:59:59 +00:00
Rodolfo Alonso Hernandez 6f962a2ee5 Change "files" directory in etcd project
Function "_install_etcd" is trying to use "files" directory
to download a file. Instead of this, this directory should be
$FILES, which is defined previously in parent script.

TrivialFix
Change-Id: I643ce3b9aba1f65f03524430c748bf120d071509
2017-05-31 13:36:22 +01:00
Jenkins 86f9bc7b0b Merge "Add global_request_id to systemd logs" 2017-05-31 12:29:52 +00:00
Jenkins b3ced44e37 Merge "Configure volume_clear setting per backend" 2017-05-31 05:14:58 +00:00
Jenkins d94f44558a Merge "Use string cert CA defaults" 2017-05-31 04:29:13 +00:00
Sean McGinnis 29ec28216f Configure volume_clear setting per backend
volume_clear is currently set in the DEFAULT section,
but this is a backend specific setting, and therefore
needs to be set in the backend config section.

Change-Id: Ifa3a659bb4768b8915a0f23e7f14b0f3348d93d2
2017-05-30 15:51:17 -05:00
Clark Boylan 2dfca047d9 Don't run and check c-api if it is disabled
Previously we didn't block out the c-api startup code because the
devstack functions to start services check that for us. However, since
the cinder devstack code checks the service is up and runs the tls proxy
if tls is enabled we need to block it all off to avoid doing those
things if c-api is disabled.

Change-Id: I1c4f22f785af96caaf4baa21ff28714b9afd3458
2017-05-30 13:22:39 -07:00
Markus Zoeller 14728c7a51 docs: add "kvm on s390x" specific configuration in local.conf
The upstream CI runs exclusively on nodes with x86 architectures, but
OpenStack supports even more platforms. One of them is the KVM
on s390x (IBM z systems), which is supported since the *Kilo* release.
This change describes the additional settings in the ``local.conf`` file
to enable Devstack on that platform. This is useful for PoCs.

Change-Id: I943b552ca2e36210ac57f36c16db930eb5e58623
2017-05-30 13:53:36 +02:00
Clark Boylan 35649ae0d2 Make stack.sh work on SUSE
This adds packages to suse for systemd python linkages as well as
apache2 and which. And configures mod_proxy and mod_proxy_uwsgi with
a2enmod.

We also properly query if apache mods are enabled to avoid running
into systemd service restart limits. Enable mod_version across the board
as we use it and it may not be enabled by default (like in SUSE).

Also in addition to enabling mod_ssl we enable the SSL flag so that TLS
will work...

Finally we tell the system to trust the devstack CA.

Change-Id: I3442cebfb2e7c2550733eb95a12fab42e1229ce7
2017-05-28 09:58:51 -07:00
Matthew Treinish e6217a9719 Use uwsgi for glance-api
This commit adds support for deploying glance as a wsgi script under
uwsgi. To get around limitations in the uwsgi protocol when using
python3 for chunked encoding we have to setup uwsgi in http mode on a
random port listening on localhost and use mod_proxy to forward the
incoming requests. The alternative approach of having apache buffer the
requests locally with the send_cl option with mod_proxy_uwsgi only
worked on python2 and also has the limitation that apache is buffering
the entire chunked object, which could be several gigabytes in size.

Depends-On: I089a22a4be4227a551c32442dba27c426f54c87d
Change-Id: Ie98fb7da5e8ecfa49cd680b88139cb7034d5f88f
2017-05-28 14:36:36 +00:00
Matthew Treinish 309b99ebcf Add a function to get an available random port
This commit adds a new function get_random_port to return a randomly
available port from the local port range.

Change-Id: Icaed180cc14602a74cdb3fd3456b690d8a4c729c
2017-05-28 10:04:53 -04:00
Clark Boylan 4baac65725 Use proper python when configuring certs
We have to do silly overrides of cert locations for requests for
reasons. If we are running under python3 then we were previously looking
in the wrong location for the requests certs. Update the cert fixing
function to properly use python3 to find the certs if python3 is
enabled.

Change-Id: Id1369da0d812edcf9b1204e9c567f8bfe77c48b2
2017-05-27 20:57:56 -07:00
root fabc976e41 Fix configuration link syntax error
The configuration guide link has syntax problem in README.rst,
and the click the link will lead to page 404.

Fix the syntax problem

Change-Id: I47a1641a6898930dca508cdac98b1b43c05dc446
2017-05-27 15:03:58 +08:00
Hongbin Lu de8580691d Expose etcd port as a variable
This allows devstack plugins to retrieve the etcd port from devstack
instead of hard-coding it.

Change-Id: I106b559b8ac0fb99a0426bce97a27f67e32d264d
2017-05-27 03:54:45 +00:00
Jenkins 899616290c Merge "Change version of noVNC to stable" 2017-05-26 21:21:19 +00:00
Jenkins 6b1967bba4 Merge "Remove nova cert from devstack" 2017-05-26 19:33:42 +00:00
Jenkins 202470eca1 Merge "Do not upload vhdx images as vhd" 2017-05-26 19:33:35 +00:00
Jenkins 8085df74a8 Merge "Use the proper keystone endpoints in clouds.yaml" 2017-05-26 19:24:51 +00:00
Jenkins ff40f6e291 Merge "lib/neutron: Don't assume plugin config is provided by neutron repo" 2017-05-26 19:24:44 +00:00
Jenkins f8aad91bd1 Merge "cleanup: remove DEVSTACK_CINDER_SECURE_DELETE" 2017-05-26 19:22:48 +00:00
Jenkins 4faa849565 Merge "update sphinx" 2017-05-26 19:22:36 +00:00
Jenkins 4ae18aec88 Merge "stack: Workaround libvirt issue with multiple of 16 byte fixed_key values" 2017-05-26 19:22:30 +00:00
Jenkins 6d302a8324 Merge "Enable ssh validation by default" 2017-05-26 19:21:11 +00:00
Kirill Zaitsev d0db62a476 Use systemd-tmpfiles to create /var/run/uwsgi
On ubuntu contents of /var/run do not persist between reboots. Devstack
uses /var/run/uwsgi as home for wsgi sockets. This means that after
rebooting the machine services, that rely on uwsgi would fail to start.
Currently it affects keystone.service and placement-api.service.
This patch changes delegates directory creation to systemd-tmpfiles,
which would run on startup.

Change-Id: I27d168cea93698739ef08ac76c828695a49176c7
Closes-Bug: #1692767
2017-05-26 19:11:02 +03:00
Sean Dague e123edeebf Add global_request_id to systemd logs
With cinder supporting this now, start logging global_request_id in
systemd logs. It will be None for all the services until the work
starts coming together, but it is safe to do.

Change-Id: Ic6ba1a42da88c03e43d89658b453f6a0b353e0db
2017-05-26 07:18:32 -04:00
Jenkins 9b2a2fa55d Merge "Fix typo" 2017-05-25 20:52:28 +00:00
Jenkins 7b230532dc Merge "Get rid of zookeeper from devstack" 2017-05-25 18:46:09 +00:00
Davanum Srinivas 853b475bfd Fix typo
should be etcd3

Change-Id: Icfa24654699a4e4e4be8a53f7bbe4634badbff7b
2017-05-25 13:03:58 -04:00
Amrith Kumar bb436d3373 Make use of Ubuntu Cloud Archive switchable
The trove development environment is typically a linux VM within which
openstack is installed, and trove launches guest vm's within that
environment. To make it possible for these vm's to launch in one human
lifetime, one must set vt/x and enable nested hypervisors to use with
kvm; qemu emulation will take way too long.

The new libvirtd (v2.5.0) in Ubuntu Cloud Archive doesn't handle
nested hypervisors well and if you use it, you end up with a guest
hanging on the GRUB line.

To enable that use-case, we provide ENABLE_UBUNTU_CLOUD_ARCHIVE which
the trove developer can set (to False) before running devstack.

Change-Id: Ia0265c67bb7d2a438575a03c0ddbf2d9c53266ed
Closes-Bug: #1689370
2017-05-25 12:36:25 -04:00
Kirill Zaitsev c0644f39a4 Use correct argument order in truorfalse for USE_JOURNAL
truorfalse function from common-functions accepts default as the first
parameter. The arguments for USE_JOURNAL were mixed up and this commit
restores correct order.

Change-Id: Id3621b0e1910a625d6cfb8e81bd27bea82543ae9
2017-05-25 12:16:11 +00:00
Jenkins 793db3ac35 Merge "Allow disabling etcd3" 2017-05-24 17:01:32 +00:00
Jenkins f0442dd592 Merge "Use sha256sum instead of gpg for verification" 2017-05-24 14:57:29 +00:00
Davanum Srinivas c0d16c279a Get rid of zookeeper from devstack
In Ibbb430fb1dbf66942168e0cb52d990ab6a2eb8d7, we are adding
etcd3 as a new base service. We should drop zookeeper
and use etcd3 as the backend.

Since cinder is the first service for this tooz+etcd3 DLM
scenario and cinder uses eventlet we have cannnot use the
grpc based driver in tooz. So new CINDER_COORDINATION_URL
that defaults to the etcd3's grpc HTTP gateway based
tooz backend.

We need to hold this change until the tooz change (see
Depends-On) is available in a tooz release.

Depends-On: I6184ed193482dad9643ccb2b97133d4957485408
Change-Id: Ia187e1a86413edf25b909b6bb57e84fb4930a696
2017-05-24 14:13:27 +00:00
Andreas Scheuring 94b9fae4e9 Allow disabling etcd3
Etcd3 was enabled recently as new service in devstack [1]. But there's
no way to disable etcd3. This is required on architectures where no etcd
binaries are available (e.g. s390x). The long term goal of course should
be to have those binaries available. The short term circumvention is to
allow disabling the service in local.conf:

   disable_service etcd3

[1] https://github.com/openstack-dev/devstack/commit/546656fc0543ec2bc5b422fd9eee17f1b8122758
Change-Id: I6184ed193482dad9643ccb2b97133d4957485408
Partial-Bug: #1693192
2017-05-24 15:32:03 +02:00
Sean Dague bba924121c Use sha256sum instead of gpg for verification
gpg verification requires network connectivity which is non
mirrorable. We try to avoid that in devstack whenever possible. A
sha256sum is a totally reasonable way of knowing if the downloaded
package is valid.

Closes-Bug: #1693092

Change-Id: Id496ab53f76444f08dc6961f1ecd25f450cc96d7
2017-05-24 08:04:18 -04:00
Lucian Petrut 2715fd0b4a Do not upload vhdx images as vhd
This change ensures that when uploading vhdx images, we use the
proper format.

At the moment, vhdx images are uploaded as vhd, which can be
troublesome: first because this is misleading, second because the
actual image format may be checked, having the image rejected.

Change-Id: I9578be41ea9dc252404b7553679ac527e08a0ff6
2017-05-24 13:36:57 +03:00
Davanum Srinivas d8283fde66 Avoid installing etcd3 in subnodes
We need to handle this better, for now, just don't install
etcd in the sub nodes. We need to setup the proper clustering
mechanism if we want to have etcd3 running in multiple nodes

Change-Id: I8dd385e3c993942473e67d04367cdf74495dbeef
2017-05-23 22:12:42 -04:00
Jenkins 08de346d03 Merge "etcd3 as a base service" 2017-05-24 00:08:47 +00:00
Maciej Józefczyk 0d9fd60ad4 Change version of noVNC to stable
In master branch of noVNC project file vnc_auto.html was renamed to
vnc_lite.html Because of that nova-novncproxy looks for file that
actually doesn't exist.

We need to change branch of noVNC to latest stable, because other
projects are not ready yet to rename the path. Those projects
depends on noVNC package installed in system, but it is too old
for now for both CentOS (version 0.5) and Ubuntu (version 0.4).
The only way to make noVNC console working on Devstack is to change
the branch to stable one.

Unit test also has to be modified in order to ignore novnc repo
from checking against cloning non-master branch.

Change-Id: Iaf4761aedf93bc6b914a6a0c5cf1cfedcc29583c
Closes-bug: #1692513
2017-05-23 16:49:13 +02:00
Jenkins 23ed6666ed Merge "Always setup libvirt for tap devices when using Neutron" 2017-05-23 01:26:25 +00:00
Davanum Srinivas 546656fc05 etcd3 as a base service
ETCD_DOWNLOAD_URL is set to github url, in our CI, we can point
ETCD_DOWNLOAD_URL to a url in tarballs.openstack.org possibly
in devstack-gate

Download the etcd binaries and drop them into /opt/stack/bin and
use it from there. Cache the tgz for subsequent use (local workflow)

daemon-reload is called twice once from inside the write_user_unit_file
and then when we adjust the entries with additional things recommended
by the etcd team. We need a better way to do this in the future.

Added a TODO to verify the downloaded artifact later. The etcd team
posts gpg signature, we could verify that or run sha256sum and hard
code that in lib/etcd3 file. We would have to update it whenever we
bump the etcd3 version.

We use the public key "CoreOS Application Signing Key <security@coreos.com>"
with ID FC8A365E to verify the integrity of the downloaded file

Any jobs that need to be run on architectures where v3.1.7 is not available
should rey the v3.2.0-rcX release candidates. We can switch to v3.2.0
when it gets released.

Initial version of this code was borrowed from the dragonflow
repo:
http://git.openstack.org/cgit/openstack/dragonflow/tree/devstack

Change-Id: Ibbb430fb1dbf66942168e0cb52d990ab6a2eb8d7
2017-05-22 21:57:48 +00:00
Nir Magnezi ac2ae8c047 Remove nova cert from devstack
As a followup to I2c78a0c6599b92040146cf9f0042cff8fd2509c3, the nova
cert service should be removed from devstack.

Without this fix, stacking will fail is USE_SCREEN=True

Change-Id: I115580352fa380b896bae290f9a4efbfe4ff0dfd
2017-05-22 12:40:57 +03:00
Doug Hellmann 4db30f9f05 update sphinx
Update sphinx to the version used to build the documentation elsewhere
and turn on the option to treat warnings as errors to ensure that no
poorly constructed rst is introduced. Cap sphinx<1.6.1, since that
version has a conflict with pbr right now.

Change-Id: I19b3332229e2094988cbf8968c42a0323194a209
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-05-21 11:00:04 -04:00
Lee Yarwood 00ff904b09 stack: Workaround libvirt issue with multiple of 16 byte fixed_key values
Unable to use LUKS passphrase that is exactly 16 bytes long
https://bugzilla.redhat.com/show_bug.cgi?id=1447297

Change-Id: I565339762549b076119ffedb6b83abfa12977f5e
2017-05-19 13:49:35 +01:00
Jenkins 6a62619cbc Merge "add a table of contents" 2017-05-18 14:28:18 +00:00
Jenkins e4c98aa42a Merge "Add --tcp option to dstat command for connection stats" 2017-05-18 14:19:20 +00:00
Jenkins e19abda40a Merge "Restore log colors under devstack/systemd" 2017-05-17 20:10:30 +00:00
melanie witt fc572a5da0 Add --tcp option to dstat command for connection stats
This enables tcp stats (listen, established, syn, time_wait, close) in
dstat to allow us to get a high-level view of performance changes in
the system during gate runs.

Change-Id: Ifbffbed22446e7e6a3b825c18266b63d2f2e7718
2017-05-17 19:05:56 +00:00
Jenkins 5ff1b476e4 Merge "Copy 'resource_filters.json' file to cinder config folder" 2017-05-17 19:02:22 +00:00
Isaac Beckman 54a8dc291f cleanup: remove DEVSTACK_CINDER_SECURE_DELETE
DEVSTACK_CINDER_SECURE_DELETE is deprecated from liberty release.
This should have been removed after kilo-eol

Change-Id: I82c15a19f8fe0326d4a5c2a076baa6d3e53fcf32
2017-05-17 14:27:41 +03:00
Kevin Benton d1fe0e62e7 Always setup libvirt for tap devices when using Neutron
This logic has been tied to OVS since it was introduced in [1] and
revised in [2]. However, many other backends may use tap devices that
aren't related to OVS, such as Calico[3] and Linux Bridge after [4]
merges.

This patch just removes the dependency on OVS specifically so
/dev/net/tun is added to cgroups whenever any Neutron backend is used.
This is done in other deployment tools like Juju[5] so it's not
unprecedented.

1. Ifab268f739b004db13024633e8abeb17691b9e46
2. Ic1da132fa421f1c70c10a319ee3239831b0f956f
3.
http://docs.projectcalico.org/master/getting-started/openstack/installation/ubuntu#compute-node-install
4. I23c5faaeab69aede1fd038a36f4a0b8f928498ce
5.
https://github.com/openstack/charm-nova-compute/blob/2790f81ecd32d9962617c4c3126621fffdc318a0/templates/qemu.conf

Change-Id: I075595158d8f3b5a6811c4794aa7b91912940db5
Partial-Bug: #1675343
2017-05-17 06:07:35 +00:00
Jenkins 00e5a98eea Merge "Use -y with 'pip uninstall'" 2017-05-17 00:41:04 +00:00
Eric Fried 8cd310d763 Restore log colors under devstack/systemd
One of the pending issues with the conversion to systemd was the loss of
log coloring.  It turns out that journalctl by default strips out
characters it considers "unprintable" - including the color codes
emitted by the old-style logging.  However, journalctl can be made to
print them by adding the `-a` flag.

This change makes devstack's log formatter conf settings include color
codes like the old screen-based setup used to

We also remove stackrc's setting of JOURNALCTL_F, whose usage was
removed via I6af6d1857effaf662a9d72bd394864934eacbe70.

Change-Id: I2401e267913a24d18dae355aa933072dbbdab1d8
2017-05-16 14:56:57 -05:00
Brian Haley 954fd1b729 Use -y with 'pip uninstall'
'pip uninstall' will hang running stack.sh if it has to
prompt the user for input, use -y.

Change-Id: Ic94639e444b87fd3538463d5a51c01a0208a2ab2
Closes-bug: #1691172
2017-05-16 12:24:45 -04:00
Dan Smith 1f55d38911 Add systemd ulimit override function and set an override for NOFILE
This sets our default ulimit NOFILE to 2048, which is double what we
set things like mysql'd max_connections to.

Change-Id: I5126bed1e6b9f8c64db00eae4151ac61e47b1bf8
2017-05-16 09:23:28 -07:00
Jenkins ac042d4122 Merge "remove out of date heat references" 2017-05-16 15:15:34 +00:00
Doug Hellmann 84ce2f1c9b add a table of contents
Add a table of contents help readers find the information they need
without having to read all of the prose on every page. Remove the
site-map file, which doesn't appear to be linked anywhere.

Change-Id: Ib5761c9cfdd5a083df562413d727cb4ac7547c9e
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-05-16 10:47:09 -04:00
Jenkins 1d638a9b52 Merge "Make openrc more robust for grenade scenarios" 2017-05-16 14:47:04 +00:00
Jenkins 3420019d9d Merge "remove some unused *_PROTOCOL from export" 2017-05-16 14:46:50 +00:00
Jenkins 7834f5285f Merge "Document testing of new devstack features" 2017-05-16 12:41:51 +00:00
Jenkins 79911d8b19 Merge "uninstall libvirt-python and reinstall" 2017-05-16 12:41:44 +00:00
Jenkins 972b518148 Merge "Add files/ironic-inspector* to .gitignore" 2017-05-16 07:19:04 +00:00
Clark Boylan 2a6112ea9a Document testing of new devstack features
At the Boston 2017 Summit I had mentioned that the pattern of using non
voting/experimental jobs was not working for getting new features into
Devstack. It is slow and leads people to being too conservative when it
comes to pushing new things in. Instead I suggested that since Devstack
changes are self testing we add the features, have change that enables
the feature, and if that changes passes we move forward with merging
(assuming code review is fine and necessary communication is done).

Document this process in the HACKING file so that we have something we
can point to when people want to add a new experimental job for every
new little thing (ipv6, tls, systemd, etc).

Change-Id: I5190cc3d3de4e81d52748347306133b5034d5531
2017-05-12 10:16:33 -07:00
Angel Noam f24e29920b Add support for image name end with .raw
Change-Id: If3bd42825a29755fa8e68fa5661d068c6f0019d2
2017-05-11 15:13:29 +03:00
vmud213 db8a199b30 Add files/ironic-inspector* to .gitignore
When ironic-inspector is enabled through devstack, these two files
are created which needs to be masked.

Change-Id: I7a3db6fd6197da20cca1e938727d54195957ac18
Closes-Bug: #1690105
2017-05-11 09:38:25 +00:00
Jenkins 27df725179 Merge "Remove fping requirement" 2017-05-09 16:44:29 +00:00
Jenkins 6fe14a5d93 Merge "Always disable use of libvirt wheel with UCA" 2017-05-09 16:34:33 +00:00
Sean Dague f28e7ef6ba uninstall libvirt-python and reinstall
libvirt-python compiles against the currently installed libvirt. If
you upgrade that, it needs to rebuild, however it won't change
versions, so pip install just noops. Force an uninstall / reinstall of
it every time to handle potential upgrades of libvirt.

Change-Id: If34541b34aa6d55eedaf6c603fd1fe92eb887308
2017-05-08 07:30:20 -04:00
YAMAMOTO Takashi 1df17c94f5 lib/neutron: Don't assume plugin config is provided by neutron repo
It isn't the case for plugins provided by subprojects.

Change-Id: Ic28a9da9f11355e5e1eae5db9b2d4ee6ed081b55
2017-05-08 15:03:05 +09:00
Jenkins caad9221e0 Merge "default gateway regex: use exact match for iface name" 2017-05-08 03:15:07 +00:00
Jenkins 2b88b323c9 Merge "Fix systemctl option: removes --unit option in doc" 2017-05-07 17:03:50 +00:00
Jenkins 37a6b0b2d7 Merge "Set SyslogIdentifier for uwsgi processes" 2017-05-05 19:50:54 +00:00
Mike Perez 621704f4b3 Stop setting osapi_volume_base_URL
This option is a duplicate of public_endpoint for Cinder.

Change-Id: I8aee1b9f93a09d2e92bde80c0e413e1540723bac
Depends-On: I2a74af7906d14cbc49b8cf0a88c344ca30fcbd26
2017-05-05 09:03:39 -07:00
Sean Dague f41bf2a92f Set SyslogIdentifier for uwsgi processes
Now that we aren't using native journal messages by default, the
syslog identifier of all the uwsgi processes is the same. We should be
more explicit with those.

Change-Id: Id5406d02407b022d4016517c2e18890973876d88
2017-05-05 07:54:26 -04:00
Jenkins d235ca32f9 Merge "Make devstack fail early for common systemd pitfalls" 2017-05-05 11:41:26 +00:00
Jenkins 06dc8313ca Merge "Always have ./clean.sh run ./unstack.sh" 2017-05-05 05:25:43 +00:00
Jenkins 51a136a22c Merge "disable journald rate limiting" 2017-05-05 04:40:32 +00:00
Jenkins 620ae0339c Merge "Correct various inaccuracies in overview.rst" 2017-05-04 20:33:15 +00:00
Jenkins bf62c96702 Merge "convert README to rst" 2017-05-04 20:33:08 +00:00
Jenkins 6612f66374 Merge "Fix logging when under systemd" 2017-05-04 20:31:41 +00:00
Sean Dague eaadffe07b Always have ./clean.sh run ./unstack.sh
There was detection code in clean.sh to only run it if a screen
session was found, but in systemd world, that's obviously not
true. This was causing me (and others) substantial confusion.

Change-Id: I204e94cd86b8c67012aabfca74796e593151c3a4
2017-05-04 16:05:19 -04:00
Sean Dague e264b4ab32 disable journald rate limiting
systemd-journald has rate limiting built in, but that's not sufficient
for the level of logging of OpenStack services during test
runs. Disable the rate limiting so that no log messages are lost.

Change-Id: I64599aba74c5a39276bb8f946cd236600b9cc81b
2017-05-04 15:56:37 -04:00
Ian Y. Choi c2200bc880 Fix systemctl option: removes --unit option in doc
--unit option is for journalctl, not systemctl.
Just executing systemctl without "--unit=" works.

Change-Id: I9752561332e62ec6327b17b12d2d868892718041
2017-05-04 21:17:40 +02:00
Sean Dague 148d58c351 Make devstack fail early for common systemd pitfalls
There are a couple of issues that have ended up being hit by devstack
plugin authors which we can detect and error in a much nicer way
instead of them having a cryptic systemd failure.

Change-Id: I45e4ac363aeefb4503015f9e1b57c58f79b58f40
2017-05-04 13:08:25 -04:00
TommyLike 401de4d20c Copy 'resource_filters.json' file to cinder config folder
Cinder use 'resource_filters.json' to config allowed filters,
copy the new added json file when set config files.

Change-Id: I397cb5859e2b3349af3cb07ee02b6463c6eccc35
Depends-On: 27aeba0b5d3cf64286125937e8336ba1d3b26b16
2017-05-04 13:46:29 +00:00
Sean Dague b2bfe5617a Turn off use_journal because of eventlet concerns
use_journal uses the systemd native path for logging, however there
are concerns that this might be negatively interacting with
eventlet. To be on the safe side fall back to stdout.

This introduces a USE_JOURNAL option which will let folks turn this
back on for testing.

This also adjusts the debug lines. When using the journal the pid
reported by systemd is correct. When using stdout, it will be the
parent process id, so we need to keep it to see which child each thing
is coming from.

Change-Id: Id7891c532bf99c099252e82d511a37a49506fea9
2017-05-03 18:35:54 +00:00
Sean Dague 3336b4bed6 remove out of date heat references
This removes some remnant heat code and references now that heat is
running in a plugin. Before merging this patch the heat team should
verify they got everything they needed into their heat plugin, as
there were more parts left than I was expecting.

Change-Id: I477e3a6e75591aa8ff836c28f7ef56aa1b5f8727
2017-05-03 08:23:29 -04:00
Sean Dague 2686b36c32 Correct various inaccuracies in overview.rst
This still was referencing nova-network

Change-Id: Id584d3fd26482330f42319aee4cb36981066db55
2017-05-02 09:26:28 -04:00
Sean Dague 29c1f981fe convert README to rst
Everything else in our documentation is RST, we should convert the
Readme to RST as well (as github supports this, so it's fine to read
it there)

Change-Id: If2aabf629affc09b5daa570f4ca3bdf268cb53b0
2017-05-02 09:25:29 -04:00
Sean Dague 27f66e9830 Fix logging when under systemd
Both keystone and neutron didn't yet have systemd awareness for
setting up logging (i.e. drop the extra date / time stamps)

Change-Id: Ib442c603c9afb679676976c37c2c6122201ae846
2017-05-02 09:24:45 -04:00
Sean Dague 8b8441f3be Default developer use case to systemd
This moves the developer use case over to systemd, and updates all the
relevant docs to discuss the systemd workflow instead of screen. It
does so by defaulting USE_SCREEN=False, so will not impact people that
set it explicitly.

Change-Id: I6d664612bc2b850eb7f56852afbc841867223ab7
2017-05-02 06:44:22 -04:00
Sean Dague 803acffcf9 Make ./clean.sh work in more situations
When transitioning between different wsgi modes, or service modes, we
should really safely stop and cleanup things that are started in any
service mode, which makes it easier to ensure that we don't leave
things around from past runs.

Change-Id: I33acbee39e1a2da2bfd79a5dd54b84a12a778be1
2017-05-02 06:20:22 -04:00
Jenkins 7fe9e784c6 Merge "try to use unversioned keystone endpoints everywhere" 2017-05-01 23:05:46 +00:00
Jenkins 02e01c1c18 Merge "Try to remove /identity_admin" 2017-05-01 23:05:39 +00:00
Jenkins bc2af3c6b5 Merge "remove auth_uri from keystonemiddleware config" 2017-05-01 20:38:00 +00:00
Jenkins 7f8df450db Merge "make USE_SCREEN=False imply USE_SYSTEMD=True" 2017-05-01 19:23:10 +00:00
Jenkins e44c564112 Merge "Differentiate between DEFAULT_IMAGE_NAME and filename" 2017-05-01 19:18:14 +00:00
Sean Dague c13b8a1f33 try to use unversioned keystone endpoints everywhere
Change-Id: Iad2a3654d8ba181a7ad452d8aba872a8313d4ece
2017-05-01 09:12:20 -04:00
Sean Dague bb4431126b Try to remove /identity_admin
We should be able to operate without the identity admin endpoint,
given that in v3 it's all the same. This floats that out there to see
if we can or not.

Change-Id: Ic233f6b43dd1e3cfdadff0f18aba4ea78825a996
2017-05-01 09:12:18 -04:00
Sean Dague 38d4782c9f remove auth_uri from keystonemiddleware config
auth_uri is not a keystonemiddleware option, and it's use in config
files is confusing at best. Remove it for clarity.

Change-Id: Ie3a9ab30d81809363444d5f3b41588b3889dc185
2017-05-01 09:09:35 -04:00
Matthew Treinish fa898f5174 Add external lock dir to glance api config
As we move to enabling glance-api to use a wsgi script that might be run
as multiple processes, there are a couple places where external
synchronization is necessary. To use this we need to set the lock_path
config option from oslo.concurrency so external locks will work.

Change-Id: I9a66a8636d12037ff9aa4fb73cc3f9b9343dd7e9
2017-04-28 10:29:38 -04:00
Sean Dague c006bbdeb2 make USE_SCREEN=False imply USE_SYSTEMD=True
In order to start making the transition in the gate make
USE_SCREEN=False also mean USE_SYSTEMD=True. We'll never actually
declare USE_SYSTEMD=True in the gate (as that doesn't exist for stable
branches), but this will let us roll over the existing transition.

We also have to install systemd-python 234 because we are recording
exception info in the journal, and all versions before that had a bug
in processing that.

Remove the somewhat pointless screen following journalctl commands. We
really don't want or need those, and they tend to build up over time.

Depends-On: I24513f5cbac2c34cf0130bf812ff2df6ad76657c

Change-Id: I6af6d1857effaf662a9d72bd394864934eacbe70
2017-04-28 13:21:22 +00:00
Jenkins 0c0232f508 Merge "Set OS_AUTH_TYPE to password" 2017-04-28 04:00:20 +00:00
Monty Taylor e43f60ba2a Use the proper keystone endpoints in clouds.yaml
KEYSTONE_SERVICE_API is the keystone endpoint and it is what we should
use. The admin url should DIAF - but until it does, it CERTAINLY should
not be the thing we put into clouds.yaml.

Change-Id: If8196a04f852f633e0b7548793f68c92376aa6da
2017-04-27 19:32:29 -05:00
Clark Boylan faffde1f97 Use string cert CA defaults
Switch from sha1 to sha256 and from 1024 bits to 2048 bits. Do this
because things don't like the old inseucre sha1+1024bits combo.

Change-Id: Iae2958969aed0cd880844e19e8055c8bdc7d064d
2017-04-27 09:54:27 -07:00
Jenkins a292c5068c Merge "Always restart apache" 2017-04-27 08:35:01 +00:00
Ian Wienand bc6c992e3c Remove fping requirement
The os-fping API was deprecated in nova in
I92064cbcb5f6414da0c9d294f912a860428af698.  I can't see anything
obviously using it on codesearch.

This is only in EPEL for centos, which I'm trying to remove.  But I
think less dependencies is always better than more in general hence
the removal.

This is essentially a revert of
Ibdc7479a9038321e4fc3953774a6f3e1dac90530

Change-Id: I163fc48c860bae2a92c83cfdaed26b2e54630e20
2017-04-27 16:10:57 +10:00
Ian Wienand a881b88721 Switch to lioadm for centos cinder
Centos/RHEL 7 doesn't support tgtd.  While the packages are still in
EPEL, there's no point in testing because nobody runs like this.
Switch cinder to use lioadm which uses LIO, and update package
installations.

Depends-On: I964917d13d9415223845ac17eb804ee7faceaf6f
Change-Id: Idc5a4e856bfc93e9dc650d565a98a8e9b3df3481
2017-04-27 15:47:48 +10:00
Ian Wienand 71d20e6582 Always disable use of libvirt wheel with UCA
It's not only using our upstream caches that you might get an old
libvirt-python wheel that is incompatible with UCA.  Move the ignore
out of the mirror check to apply it globally.

This is an alternative to Iba301a8c80c9ed584f5fb5a816f3d2cf5f5f0e77

Change-Id: I588b1e8e49aa60f3ce976dc1b6c8013ba1d88079
2017-04-26 21:23:01 -04:00
Matthew Treinish befe0925e7 Differentiate between DEFAULT_IMAGE_NAME and filename
The DEFAULT_IMAGE_NAME variable is used to reference the name of the
default image in glance after it has been uploaded by devstack. It is
used both inside and outside of devstack for that purpose. However, when
configuring tempest there are some tests which also do image uploads and
need a filename for specifying which file they should upload into glance
for testing purposes. Previously we were just using DEFAULT_IMAGE_NAME
for both purposes, but this causes a conflict if the name of the image
we upload into glance does not have a file extension. So instead of
conflating the things this commit differentiates between them and adds a
new DEFAULT_IMAGE_FILE_NAME variable to use for this purpose.

Change-Id: Icf74badcf2093d8c75db538232b10b3ac7b86eb8
2017-04-26 19:24:12 -04:00
Jenkins a8204752e3 Merge "neutron-legacy: Defer service_plugins configuration" 2017-04-26 21:22:09 +00:00
Andreas Scheuring 92e6b1a0e8 default gateway regex: use exact match for iface name
If the current interface has a default gateway configured is
determined by the regex

  default.+<interface-name>

If for example 'enc1' is used, but also an interface 'enc1800' is
present, the regex will also match the 'enc1800' default gateway.

This patch fixes this by looking for <interface-name><white-space>.
This way 'enc1800' is not matched.

Change-Id: Id1d58f5be6296c3a37aef788359ae8fe0fe11d8b
2017-04-26 16:02:06 +00:00
Ian Wienand f6a2d2cd4e Always restart apache
As described in [1], it seems that mod_wsgi is not "graceful" reload
safe.  Upon re-init, it can end up in a segfault loop.

The "reload" (not *restart*) after setting up uwsgi was added with
I1d89be1f1b36f26eaf543b99bde6fdc5701474fe but not causing an issue
until uwsgi was enabled.

We do not notice in the gate, because the TLS setup ends up doing a
restart after this setup.  In the period between the
write_uwsgi_config and that restart, Apache is sitting in a segfault
loop, but we never noticed because we don't try talking to it.  Other
jobs that don't do any further apache configuration have started
failing, however.

Looking at the original comments around "reload_apache_server" I'm not
sure if it is still necessary.  [2] shows it is not used outside these
two calls.

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1445540
[2] http://codesearch.openstack.org/?q=reload_apache_server&i=nope&files=&repos=

Closes-Bug: #1686210
Change-Id: I5234bae0595efdcd30305a32bf9c121072a3625e
2017-04-26 11:09:59 +10:00
Jenkins 2eb322ab2e Merge "Set fixed-key key manager" 2017-04-25 23:42:18 +00:00
Jenkins bc8db65da2 Merge "Define a new function for notifications URL" 2017-04-25 17:47:35 +00:00
Thomas Herve 26e431dbd7 Define a new function for notifications URL
This defines a new function get_notification_url, which returns the URL
of RabbitMQ when you want connect to it, and uses in
ceilometermiddleware. This fixes an issue when we try to use AMQP for
RPC, but not for notifications.

Change-Id: I14450b2440806a17a90e5ddefc243868fdbe4f2c
2017-04-25 17:01:21 +02:00
Jenkins aa444d0d83 Merge "Create custom dir for uwsgi domain sockets" 2017-04-21 03:29:15 +00:00
rabi aa26baacb8 Create custom dir for uwsgi domain sockets
On Centos, apache has a private view of /tmp and thus can't see this
socket, causing keystone to fail. This happened after
I46294fb24e3c23fa19fcfd7d6c9ee8a932354702.

Move it to /var/run.

Closes-Bug: #1684360
Change-Id: I47f091656802719c259752454ec88bf50760b967
2017-04-21 10:42:27 +10:00
Andrea Frittoli ef1e88ec09 Enable ssh validation by default
The -ssh job with ssh validation enabled has been quite stable
for a while now [0] so I think it's time to add ssh validation
to the integration gate to prevent regressions from lurking in.

Doing this in devstack ensures that the change only affects
master as we didn't test ssh validation on on stable branches.

[0] http://status.openstack.org/openstack-health/#/g/build_name/gate-tempest-dsvm-neutron-full-ssh?duration=P3M

Change-Id: I187e560911f5d5d482eb7959e5174068c4c9a801
2017-04-20 23:37:32 +01:00
Jenkins d8863f6c98 Merge "Increase rsyslog buffer sizes." 2017-04-20 20:03:44 +00:00
Sean Dague 9bfabc68c4 Make openrc more robust for grenade scenarios
This makes openrc more robust for the grenade scenarios by having a
sane fallback when stackrc is not found.

Change-Id: I297ba519d581d2b6fb4d80d59434acace054bada
2017-04-20 15:11:43 -04:00
Sean Dague 1b245cef7f Cleanup duplicate get_or_add_user_domain_role
It turns out that we ended up with duplicate versions of this function
merging on top of each other within 3 days, and gerrit didn't catch
it. Boo gerrit. Boo bash.

Change-Id: Ic6aa2f9bafdec906de2bc51d5929beeec48a6a40
2017-04-20 00:19:20 +00:00
Paul Belanger 37c7843aad Increase rsyslog buffer sizes.
Swift proxy logs to syslog during the devstack-gate tempest runs. To
better capture the swift logs increase the rsyslog buffer size to 6k
bytes allowing for longer messages like tracebacks.

This was setup by openstack-infra previous during our diskimage
builds.

  I03e42964e14d9f930c07ed047851bdf775639c59

Change-Id: Iaa232335865410600c93f47d4777ed4f1bce08e2
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-04-19 13:20:47 -04:00
Jenkins e2fb00ebb7 Merge "cinder: wait for cinder-api for wsgi too" 2017-04-19 15:01:07 +00:00
Jenkins d4df865c07 Merge "Adding placement-client to compute node local.conf for multinode setup " 2017-04-19 12:52:15 +00:00
Jenkins 23756fbef5 Merge "Updated from generate-devstack-plugins-list" 2017-04-19 12:37:22 +00:00
Jenkins c5a2f1b1f3 Merge "Add cursive to LIBS_FROM_GIT" 2017-04-19 12:37:15 +00:00
Jenkins 0cfc523ff7 Merge "Add castellan to LIBS_FROM_GIT" 2017-04-19 12:33:06 +00:00
Jenkins f6c86749fd Merge "fix typo" 2017-04-19 12:32:59 +00:00
Jenkins 041a5d9d83 Merge "Send useful auth_port and auth_prefix to swift's test.conf" 2017-04-19 12:30:19 +00:00
OpenStack Proposal Bot 09a08aacf4 Updated from generate-devstack-plugins-list
Change-Id: If6c07fd6b56d776a5548564b72e637f6bd3dfbfc
2017-04-19 09:24:43 +00:00
Jenkins 4b9022ddd7 Merge "Make a2dissite fail softly if the site is not enabled" 2017-04-19 06:34:20 +00:00
Tim Burke f43ea47766 Send useful auth_port and auth_prefix to swift's test.conf
Until we can test with a version of swiftclient that knows how to eat
auth_uri, swift still needs a working gate.

Change-Id: I09f9ad5c87b542df962a79898e06fbf1e968b1e3
Related-Change: I46294fb24e3c23fa19fcfd7d6c9ee8a932354702
Related-Change: Ie427f3b0b9eb834ff940fa5d52444a5a6cdcab15
2017-04-18 21:58:10 -07:00
Jenkins cf2846ab64 Merge "Add new configuration option for LM+grenade job" 2017-04-18 21:29:16 +00:00
Sean Dague 0effa1a6cb remove some unused *_PROTOCOL from export
Things like SERVICE_PROTOCOL and KEYSTONE_AUTH_PROTOCOL shouldn't
really be exported in openrc as they encourage using them directly to
build up keystone urls instead of actually using the OS_AUTH_URL.

Remove them.

Change-Id: I4b7cc680f7f14dae29b706a227be540c9e212cad
2017-04-18 15:16:37 -04:00
Jenkins 227661e881 Merge "Remove a TODO that no longer applies" 2017-04-18 18:39:55 +00:00
Jenkins 487777f5c7 Merge "Enable EPEL mirror by default" 2017-04-18 18:14:17 +00:00
Jenkins ee49497205 Merge "XenAPI: Remove final references to Integration bridge" 2017-04-18 18:08:09 +00:00
Chris Dent 2fcdaac56e Make a2dissite fail softly if the site is not enabled
a2dissite will return a non-zero error code if the site that is being
disabled is not currently enabled (that is, if the conf file for it does
not exist). This can happen during development if you've been messing
with files by hand. Rather than exploding out of a ./stack.sh, accept
the missing file as meaning "it's disabled" and carry one. The rpm
version of disable, which does not use a2dissite, does this already.

Change-Id: Ie5dfd42efdff4bdba5ffaa765af000dd8e1d596e
2017-04-18 16:54:12 +01:00
Chris Dent e0be9e3a2e Remove a TODO that no longer applies
The removed TODO was talking about USE_SYSTEMD, not WSGI_MODE.

WSGI_MODE makes sense, so the TODO has been done.

Change-Id: Ib574ef123ea4c82d4d88012c990cd1ad660d7879
2017-04-18 16:52:25 +01:00
Prabhuraj Kamaraj 921da2654b Adding placement-client to compute node local.conf for multinode setup
Change-Id: Ie98f908d5a932da259ae13934af45d535fcffb82
Closes-Bug: #1682362
2017-04-18 05:12:52 +00:00
Sean Dague 6ed53156b6 Convert keystone to use uwsgi with the proxy
This makes keystone use the proxy uwsgi module when running in uwsgi
mode. It also introduces a new stackrc variable which is WSGI_MODE
that we can use to control the conditionals in services that current
work with mod_wsgi.

Also update retry timeouts on proxy pass so that workers don't disable
their connections during polling for initial activity.

Change-Id: I46294fb24e3c23fa19fcfd7d6c9ee8a932354702
2017-04-17 16:27:35 -04:00
Sean Dague 64ffff9b7d Convert placement to new uwsgi mode
This converts the placement API to use the new WSGI_MODE variable
(which is not introduced until the next changeset). We do this so that
placement and keystone patches can be reviewed independently, but
there are some hidden coupling of mod_wsgi setup which happens only in
keystone, so if we do keystone first, it breaks placement.

Change-Id: Id5b2c67701bcc7b12c8e3764c7199d10f85df80f
2017-04-17 14:51:44 -04:00
Sean Dague 604e598e2a Install and enable apache uwsgi proxy
The uwsgi proxy version that comes with Ubuntu xenial is too old, so
we have to build it from source. This is a temporary solution until
the next LTS.

This lays the ground work for using it in keystone.

Change-Id: I00fb1759e6988c7df0ce0f3df5ff1ce9fd7cd381
2017-04-17 14:51:44 -04:00
Sean Dague a1446b960f always retry proxy errors
When an apache worker gets a proxy error, it will not retry talking to
the backend server until the retry timeout expires. We bring up the
proxy server *before* the backend server, and poll it. If we are
running a small number of workers, there is a likely chance that we're
going to hit one that errored before the backend was up, thus failing
for now real reason.

Set this to 0 instead to mean always retry failed connections.

Change-Id: I9e584f087bd375f71ddf0c70f83205c425094a17
Ref: https://httpd.apache.org/docs/2.4/mod/mod_proxy.html#proxypass
2017-04-17 14:31:21 -04:00
Sean Dague f3b2f4c853 Remove USE_SSL support
tls-proxy is the way we're now doing a standard install using https
between services. There is a lot more work to make services directly
handle https, and having python daemons do that directly is a bit of
an anti pattern. Nothing currently tests this in project-config from
my recent grepping, so in the interest of long term maintenance,
delete it all.

Change-Id: I910df4ceab6f24f3d9c484e0433c93b06f17d6e1
2017-04-17 07:27:32 -04:00
Sean Dague 2f8c88e053 Factor out code to write uwsgi config files
Instead of this code all existing in keystone inline, factor out into
a dedicated set of functions, and make keystone use this. This drops
uwsgi supporting https directly, but that's not going to be a
supported model going forward once we get to proxy only anyway.

Change-Id: I1d89be1f1b36f26eaf543b99bde6fdc5701474fe
2017-04-14 15:41:02 -04:00
Sean Dague 2b85cf0f06 Just use normal restart for apache
We're now in a systemd world where systemd is managing the restart
effectively, there is no reason to be tricksy with apache now that
we're not working around weird upstartd issues.

Change-Id: Ifadfd504eb10a90db5177ea9180b9cd8331a2948
2017-04-14 15:41:02 -04:00
Sean Dague 4da0fa8c13 Always install apache and proxy-uwsgi
We're going to want to start using it by default so just start with
always installing it. This should not negatively impact anything else.

Also had to fix the test using cowsay, now that cowsay depends on
cowsay-off.

Part of uwsgi in devstack.

Change-Id: I8306a992d9d006bc0130a255145a6880065aa0df
2017-04-14 15:41:02 -04:00
Brianna Poulos f9c2a68338 Add cursive to LIBS_FROM_GIT
Allow cursive to be installed from git instead of pip.

The barbican-tempest-plugin, which uses cursive indirectly
through nova and glance, would benefit from the ability to
use cursive from git instead of pip.

Change-Id: Icae7d310f1ee392d080e7c8e421a26d7c0ef4727
2017-04-14 14:00:31 -04:00
Brianna Poulos 968ebeee41 Add castellan to LIBS_FROM_GIT
Allow castellan to be installed from git instead of pip.

Castellan has recently been moved under the oslo framework,
and the barbican-tempest-plugin tests which use castellan
would benefit from the ability to usd castellan from git
instead of pip.

Change-Id: I96edca90c61aec84637b7b1ce842eff04c521923
2017-04-14 12:17:46 -04:00
Jenkins 94047f45cd Merge "Make auth_uri available in the swift test setup" 2017-04-14 14:25:08 +00:00
Jenkins 0166b866a3 Merge "Add python3-systemd package" 2017-04-14 02:08:27 +00:00
Sean Dague 4222ee35f6 Make auth_uri available in the swift test setup
The swift functional tests use a config which requires keystone ports,
we're about to make those go away. This exposes the actual auth_uri to
swift for consumption.

Change-Id: I5868dfdb8e5f0972ba04e359d212b04351502436
2017-04-13 20:33:42 -04:00
Jenkins af5e3d668f Merge "Clean up apache 2.2 cruft from Ubuntu 12.04" 2017-04-13 21:32:54 +00:00
Paul Belanger bc4b8eb5bf Enable EPEL mirror by default
We recently disabled EPEL in openstack-infra, enable it again.

Change-Id: I213b302b34b740354d63b69e8ac7f4e1b3d3cdd7
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-04-13 15:07:29 -04:00
Sean Dague 13a29ab787 Add python3-systemd package
Otherwise journal logging under python3 doesn't work

Change-Id: Ib136d88a522c40482a3e94d0386a26600236f135
2017-04-13 17:52:37 +00:00
Paul Belanger 1f92d44544 Use apt_get_update after we setup UCA
It is possible some CI system are using an http_proxy. Use the helper
function to cover this use case.

Change-Id: Iee685147ca0244fc7de328a765f937602223de20
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-04-13 13:08:59 -04:00
Sean Dague 8f8b274e60 Clean up apache 2.2 cruft from Ubuntu 12.04
All the apache 2.2 handling is obsolete now, as we don't support those
distros, so get rid of it.

Change-Id: I9c0f78af2b32afabb2c4264aebc92089c4694f91
2017-04-13 09:35:21 -04:00
Clark Boylan 3d4c6d2dd1 Install netcat for libvirt live migration
Libvirt live migration requires netcat. It appears that newer UCA
packages may not automagically pull this in so explicitly list it as a
dependency of nova compute here. Note that netcat/netcat-traditional do
not appear to work and netcat-openbsd is required.

Change-Id: If2dbc53d082fea779448998ea12b821bd037a14e
2017-04-12 14:33:00 -07:00
Jenkins 42414520b7 Merge "Test using UCA for libvirt 2.5.0" 2017-04-12 15:15:45 +00:00
youri jeong f68f6f2e33 fix typo
fix typo for tools/dstat.sh
retreive must be retrieve

Change-Id: I7a817ec02e7156c886d7d6abb28688bfe2ef5998
2017-04-12 19:24:14 +09:00
Jenkins 84a37e3170 Merge "Do not ask users to overwrite their /etc/sudoers file" 2017-04-12 03:23:52 +00:00
Cyril Roelandt a48ffa8c58 Do not ask users to overwrite their /etc/sudoers file
Give instructions to add permissions for stack user without touching
main config.

Closes-Bug: #1680459
Closes-Bug: #1681418
Change-Id: Idd27e684e63c616466de28c07551729a1e091bdd
2017-04-12 10:58:25 +10:00
Clark Boylan c9a9e415b9 Test using UCA for libvirt 2.5.0
We have had issues with libvirt 1.3.1 which is stock on Xenial. Try
using 2.5.0 from UCA instead.

Related-Bug: 1643911
Related-Bug: 1646779
Related-Bug: 1638982
Change-Id: Ia4434541c71f050fe1ffb54f4c4c1e302391d00b
2017-04-11 14:32:44 -07:00
Jenkins e8b84dbc59 Merge "rebuild the tempest tox env during install" 2017-04-11 13:23:20 +00:00
Huan Xie 2a2db2efc5 XenAPI: Remove final references to Integration bridge
The change to remove references of XEN_INTEGRATION_BRIDGE
(If5886e3711765a97f40f20e478f958b988b5a620) unfortunately left some
code which should have been removed.  This remaining code caused an
error in some situations when deploying from scratch (which the CI
avoids for expediency)

Change-Id: Ia568462c9cca8cff8fcfada8148d185609d61a7d
2017-04-11 01:24:37 +00:00
Jenkins d061f9e2f1 Merge "Removes double colon on script comments" 2017-04-10 04:06:13 +00:00
Jenkins 8c540fcbb6 Merge "Add OpenStackSDK as a lib install" 2017-04-10 02:26:54 +00:00
Leticia Wanderley 7f80649eaf Removes double colon on script comments
A few comment lines on stack.sh had two colons where only one colon
was necessary.

Change-Id: Ia02e1ca28a8fadc2e5477201887a1f4d59996db8
2017-04-10 01:09:54 +00:00
Jenkins 602e2e93b6 Merge "Handle uwsgi on systemd properly" 2017-04-07 22:37:24 +00:00
Dean Troyer 9fecc2ad04 Add OpenStackSDK as a lib install
This is required to install python-openstacksdk from source for testing
other projects against master.

Change-Id: Iee7b043ac7d381dadf89d26098f69e935ed81d6b
2017-04-07 15:32:09 -05:00
Jenkins 03fbc0d71b Merge "Do not use libvirt-bin package anymore" 2017-04-07 00:37:36 +00:00
Jenkins ec60d050f5 Merge "Remove the EBTABLES_RACE_FIX added for Trusty" 2017-04-07 00:33:30 +00:00
Jenkins 18c505ad82 Merge "Swift: Optionally start only the necessary services" 2017-04-07 00:33:22 +00:00
Jenkins 9b6080d859 Merge "Use br-int when XenServer is hypervisor" 2017-04-06 23:30:03 +00:00
Sean Dague eb235814d3 Install systemd python bindings by default
These are needed for oslo.log to use journald support. They are
*probably* already installed, but just in case we force install them.

Change-Id: I0dc66bd2628ff4b3e1caa7ab4366d7f36ff7ea94
2017-04-06 10:52:48 -04:00
Jenkins b87fec9e4b Merge "add use_journal if we are enabling systemd" 2017-04-05 17:46:43 +00:00
Jenkins 4df8d6d425 Merge "Remove XenServer specific ovs agent config" 2017-04-05 11:54:39 +00:00
Sean Dague 5cd44dbe6c add use_journal if we are enabling systemd
This is going to be a new option in oslo.log, which we can start
setting early to make it take effect.

Change-Id: If0e5e4717a1810c759058f33608fbac7543f2d85
2017-04-05 07:24:13 -04:00
Jenkins 88d089b86e Merge "Updated from generate-devstack-plugins-list" 2017-04-04 03:57:32 +00:00
Matthew Treinish 9c5ffd8d13 Handle uwsgi on systemd properly
uwsgi is a different service type under systemd and shouldn't be run as
a standard oneshot type. The uwsgi docs outline a good pattern for
writing systemd unit files:

http://uwsgi-docs.readthedocs.io/en/latest/Systemd.html

This commit takes those suggestions and creates a separate path for
writing uwsgi unit files.

Change-Id: I9b541b86781afdded311dba058cedd783e1a0dfa
2017-04-03 12:38:29 -04:00
Jenkins ee71ae03f6 Merge "Run mlock_report under python3" 2017-04-03 13:41:55 +00:00
OpenStack Proposal Bot 87535a5b9f Updated from generate-devstack-plugins-list
Change-Id: I68d8812558e1f1f09ab5f30145ce5c0943cae7db
2017-04-03 08:24:23 +00:00
Jenkins 98f43678f1 Merge "Change mode of DATA_DIR to 0755 as well" 2017-04-02 09:11:56 +00:00
Jenkins 921e318035 Merge "Enable libvirt coredumps" 2017-04-02 09:07:55 +00:00
Hongbin Lu 571ba8b3bb Change mode of DATA_DIR to 0755 as well
It looks libvirt/qemu requires mode 0755 to functioning properly,
but DATA_DIR won't be set to 0755 if it is different from default.

Change-Id: I37ca0b02b6a75b3756860b547e84c37ccfc99d13
Closes-Bug: #1677421
2017-03-30 18:07:00 -04:00
Sean Dague def07b21f8 Updated docs from finding more things about systemd
Change-Id: I3d807cd342f30eada04a6be2af7db482f9c4a796
2017-03-30 07:18:49 -04:00
Jenkins d356b31b50 Merge "Updated from generate-devstack-plugins-list" 2017-03-30 07:35:09 +00:00
Ian Wienand bfcc760b96 Enable libvirt coredumps
This adds a flag and basic config for enabling coredumps for libvirt.

Partial-Bug: 1643911
Co-Authored-By: Matthew Booth <mbooth@redhat.com>

Change-Id: If7cd54e804a5a389a0d82a325b58f5b41b8ef0db
2017-03-30 17:29:29 +11:00
Clark Boylan f85e0ba353 Enable Kernel Samepage Merging by default
In an effort to reduce memory consumption enable KSM by default. The
biggest win here is when using libvirt with nova or ironic with its
fake baremetal instances. In theory any process that runs duplicates
with mergeable memory will benefit though.

Change-Id: I4c5addfd3e83b6516023b36cbaabd5169f0d5ceb
2017-03-29 10:54:58 -07:00
Jenkins 370c525061 Merge "Remove installation of keystone policy file" 2017-03-29 17:45:08 +00:00
Jordan Pittier 980d65f586 Swift: Optionally start only the necessary services
Currently Devstack starts all Swift services, including those
in charge of "consistency convergence" (remember Swift is eventually
consistent), data scrubbing, hard-deletion (*-reaper services)
cleanup.

But when running with Replication Factor 1 some of those services
are not needed at all. Besides, the fonctionnalities provided by
some of these services are not tested at all (neither in Tempest
nor in Swift functional tests).

Thus, in light of saving some Mo of RAM, this patch introduces a config
flag to start only a minimal set of Swift services, just what's required
to make all of our current tests pass.

The default value for this new config flag is set to start all services,
that is to maintain Devstack's current behavior.

For sake of completeness, here is the list of services that are not
going to be started is the config flag is toggled, and the associated RSS
according to our peakmem_tracker

40004  swift-object-replicator /etc/swift/object-server/1.conf
34320  swift-container-replicator /etc/swift/container-server/1.conf
33584  swift-object-auditor /etc/swift/object-server/1.conf
33328  swift-object-reconstructor /etc/swift/object-server/1.conf
31936  swift-object-updater /etc/swift/object-server/1.conf
31492  swift-account-reaper /etc/swift/account-server/1.conf
31076  swift-account-replicator /etc/swift/account-server/1.conf
29540  swift-container-updater /etc/swift/container-server/1.conf
29220  swift-account-auditor /etc/swift/account-server/1.conf
29036  swift-container-auditor /etc/swift/container-server/1.conf

So we are looking at saving at most ~350Mo of RAM (could be less
because RSS doesn't account for shared memory).

A follow-up patch will soon be proposed in devstack-gate to not run
those additional services in our Gate jobs.

Change-Id: I8a0d03ac0296a74e38efd185beb8513866eaf0c4
2017-03-29 13:26:52 +02:00
OpenStack Proposal Bot 50686fe244 Updated from generate-devstack-plugins-list
Change-Id: Id1313b029df86ea446b90ad086cc436702379dc9
2017-03-29 08:28:40 +00:00
Jenkins 6fbd969c85 Merge "Restrict enabling the manage_volume volume feature" 2017-03-28 19:41:53 +00:00
Jenkins d7bc9486aa Merge "initial work to enable systemd service running" 2017-03-28 18:41:38 +00:00
Jenkins aef56b516d Merge "Update devstack supported OS's on documentation" 2017-03-28 18:23:12 +00:00
Jenkins cd69b52c7f Merge "lib/neutron: allow to add more ml2 extension drivers" 2017-03-28 16:15:58 +00:00
Lance Bragstad 213c9a151f Remove installation of keystone policy file
As of Id6e3c0ac54b21d85e68625a5b52fe2559fb70f24 keystone's policy
file is empty and it is no longer required at runtime. This commit
updates devstack to not deploy a policy file for keystone because
devstack doesn't specify any policy overrides. Instead, we can remove
the sample policy file and rely on the defaults that have been
registered in code. This is the same approach nova took with policy
in I85a251376dfe38caa4b100861bf764014a98bc37.

Change-Id: Ib1d9a51a78e2a84a3d7294dc8782605a681fa9e8
2017-03-28 14:35:09 +00:00
Sean Dague 5edae54855 initial work to enable systemd service running
During the PTG there was a discussion that the screen developer
workflow wasn't nearly as useful as it once was. There were now too
many services to see them all on one screen, and one of the most
common service restart scenarios was not restarting one service, but a
bunch to get code to take effect.

This implements a 3rd way of running services instead of direct
forking via bash, or running under screen, which is running as systemd
units.

Logging is adjusted because it's redundant to log datetime in oslo.log
when journald has that.

Swift needed to have services launched by absolute path to work.

This is disabled by default, but with instructions on using it. The
long term intent is to make this the way to run devstack, which would
be the same between both the gate and local use.

Some changes were also needed to run_process to pass the run User
in. A hack around the keystone uwsgi launcher was done at the same
time to remove a run_process feature that only keystone uwsgi uses.

Change-Id: I836bf27c4cfdc449628aa7641fb96a5489d5d4e7
2017-03-28 07:19:15 -04:00
Ian Wienand 9573edb4eb Run mlock_report under python3
psutil is only installed under python3 for the 3.5 gate jobs.  Call
mlock_report.py with $PYTHON so we support both environments.

Updates to mlock_report.py for python3 compatability

Change-Id: If7926ce6a2996b766c49b010a7f6640ae624f860
2017-03-28 19:38:13 +11:00
Jordan Pittier 1298f1bacd Remove the EBTABLES_RACE_FIX added for Trusty
Now that we don't support Ubuntu Trusty anymore, we can remove
the ebtables race workaround.

Closes-Bug: #1675714
Change-Id: I70483f871e35fcaa933d1b7bac7dbb396aa22cef
2017-03-28 08:16:07 +11:00
Jenkins 4a857e85f4 Merge "Enable openSUSE to work in Python 3.x environments" 2017-03-27 20:58:45 +00:00
Jenkins 7e57bb3323 Merge "Enable baremetal scheduler filters when using ironic" 2017-03-27 20:04:46 +00:00
Luz Cazares 2954e337e2 Update devstack supported OS's on documentation
Since Feb 25th devstack supported operating systems changed
due to Nova increasing its minimum required libvirt version.
Further details see: I6617283afd798af37e64913b7865cea3c8a62aba

This patch is to update versions on devstack documentation.

Change-Id: I12bb59b0903a728376ee9422213c2903b9138249
2017-03-27 16:01:48 +00:00
Jenkins fb73a8fc6f Merge "run memory_tracker as root" 2017-03-24 12:59:24 +00:00
David Rabel 682e0abe1a Do not use libvirt-bin package anymore
The package libvirt-bin is a transitional package in Debian and should
not be used anymore.

Ubuntu Xenial is an exception here.

Because of that this change also adds the possibility to use "not:" to
exclude distros in files/debs/* just as "dist:" limits distros.

Depends-On: Icc59ea79f54d4ff8751f2e353ee3530fff3d961e
Closes-Bug: #1673840
Change-Id: I3998a7178d14ec40eae5cb199d66da9546cd6ccf
2017-03-24 10:44:10 +01:00
Jenkins 9f95d171a9 Merge "Delete unnecessary groupadd in multinode-lab" 2017-03-24 00:21:31 +00:00
Jenkins c36b08248e Merge "Create /opt/stack and make it home directory" 2017-03-24 00:21:24 +00:00
Jenkins 0ab27e89f4 Merge "Apache Keystone Template: reduce the number of processes to 3" 2017-03-23 17:15:23 +00:00
Sean Dague 5ae945244e run memory_tracker as root
In order to get memlocked pages this needs to be run as root, just
start it as root so that we don't have issues with the inability to
run sudo later in the run.

Change-Id: I7adab8cbb6d89d4717e427aec22e316d27bea075
2017-03-23 12:45:29 -04:00
kesper d18d7c8658 Change for the 'running_in_container' check
This commit change check of 'running_in_container'
method so that other services ironic, nova and neutron
will not break.

Change-Id: I42eb587cfaebf37944cb10e459b8b8f7b4b4e4ba
2017-03-23 06:32:57 +00:00
Huan Xie 9e64bad03a Use br-int when XenServer is hypervisor
Previously we use a specific integration bridge for neutron ovs agent
which is running in compute node, but this isn't necessary, this
patch is to remove the specific integration bridge for XenSever and
remove the custom integration bridge definition

Depends-On: I675565e1ea6c887d40d7a53f62968c4aa385ecca

Change-Id: If5886e3711765a97f40f20e478f958b988b5a620
2017-03-22 19:11:34 -07:00
Jenkins 63666a2079 Merge "Make running_in_container work in more containers" 2017-03-22 22:36:18 +00:00
David Rabel 530d90c9c2 Delete unnecessary groupadd in multinode-lab
Change-Id: I13c86a19c421d8ef102f35bcae63f6dc69317268
Closes-Bug: #1674897
2017-03-22 08:25:26 +01:00
David Rabel fca0da5069 Create /opt/stack and make it home directory
single-machine.rst and index.rst

Before this, one had to create /opt/stack
manually and chown it to the stack user.
Now it is created when the user is created.

This is the same way the multi-node guide
handles it. A stack group is created too.

Change-Id: I5363d81c8fb38796f565cc6ebf6ab2dee2673989
Closes-Bug: #1673787
Closes-Bug: #1671409
2017-03-22 08:23:10 +01:00
Huan Xie c779b00840 Remove XenServer specific ovs agent config
With XenServer we have two neutron-openvswitch-agent(q-agt, q-domua)
For the q-domua it is specific for XenServer, this patch is to move
the specific configurations to os-xenapi which we have devstack plugin
in that repo

Depends-On: Ic816404c84f6a8899d01a77cb67fbfb421653e6b

Change-Id: I8a31c81d9475387fe4ed7030b70b26098e588771
2017-03-21 20:56:58 -07:00
Jim Rollenhagen 983cccb75b Enable baremetal scheduler filters when using ironic
These are recommended for all ironic deploys; turn them on.

Change-Id: Ia3df144e626266ed1774c4cd9863aedb876c409f
2017-03-21 18:37:24 -04:00
Jenkins 11296708c0 Merge "Replace "sid" and "testing" by "stretch"" 2017-03-21 15:40:40 +00:00
Sean Dague 583c52066d rebuild the tempest tox env during install
When redoing a stack.sh over and over again, tempest venv can get out
of sync and cause issues until deleted. We should rebuild that tempest
venv on every stack.

Change-Id: I2f66bb1a7ccf9f89e11db1326d8553589e52fbf2
2017-03-21 11:15:05 -04:00
Armando Migliaccio bacfb94390 Enable openSUSE to work in Python 3.x environments
Add packages required to run devstack with USE_PYTHON3=True.

Change-Id: Iee43c9335bd82c10cfaeffb02d1d99290c34bb83
2017-03-20 22:33:56 -07:00
Jenkins fc2919ffdf Merge "Tune apache connection limits down" 2017-03-20 18:41:31 +00:00
David Rabel a4c57cadf2 Replace "sid" and "testing" by "stretch"
Supported Debian distros (codenames) are "sid", "testing",
and "jessie", but it should be "stretch" and "jessie".

"testing" is no codename and therefore should be replaced by
"stretch".

"sid" changes all the time and cannot be guaranteed to run
correctly or is at least not tested.

Change-Id: Id4b80a055452bbff69036d4dc1adeda46ce99664
Closes-Bug: #1673810
Closes-Bug: #1674416
2017-03-20 17:41:19 +01:00
Julian Edwards 4ae92b846b Make running_in_container work in more containers
Instead of grepping for 'lxc' in /proc/1/cgroup, use systemd's
features. This now at least also works in LXD containers.

Change-Id: I35e807c26f0b1fbba83ddbe04cfb4901a7a95cbe
2017-03-18 11:45:16 +10:00
Clark Boylan 8cf9acd577 Tune apache connection limits down
We are facing memory pressure in gate testing. Apache is fairly large so
tune its connection limits down to try and squeeze out more useable
memory. THis should be fine for dev envs, also tlsproxy is not enabled
by default so we can check that this tuning works well on a subset of
jobs before making it default everywhere.

Data comparisons done with gate-tempest-dsvm-neutron-full-ubuntu-xenial
jobs.

Old: http://logs.openstack.org/37/447037/2/check/gate-tempest-dsvm-neutron-full-ubuntu-xenial/721fc6f/logs/screen-peakmem_tracker.txt.gz
       PID   %MEM             RSS       PPID       TIME     NLWP WCHAN                     COMMAND
     20504    0.2           16660      19589   00:00:00       34 -                         /usr/sbin/apache2 -k start
     20505    0.2           16600      19589   00:00:00       34 -                         /usr/sbin/apache2 -k start
     20672    0.2           16600      19589   00:00:00       34 -                         /usr/sbin/apache2 -k start
     20503    0.1           14388      19589   00:00:00       34 -                         /usr/sbin/apache2 -k start
     19589    0.1            9964          1   00:00:00        1 -                         /usr/sbin/apache2 -k start
Total RSS: 74212

New: http://logs.openstack.org/41/446741/1/check/gate-tempest-dsvm-neutron-full-ubuntu-xenial/fa4d2e6/logs/screen-peakmem_tracker.txt.gz
       PID   %MEM             RSS       PPID       TIME     NLWP WCHAN                     COMMAND
      8036    0.1           15316       8018   00:00:01       34 -                         /usr/sbin/apache2 -k start
      8037    0.1           15228       8018   00:00:01       34 -                         /usr/sbin/apache2 -k start
      8018    0.1            8584          1   00:00:00        1 -                         /usr/sbin/apache2 -k start
Total RSS: 39128

Note RSS here is in KB. Total difference is 35084KB or about
34MB. Not the biggest change, but we seem to be functional and it
almost halves the apache overhead.

Change-Id: If82fa347db140021197a215113df4ce38fb4fd17
2017-03-17 11:42:41 -07:00
Jenkins 7da8e7c5cf Merge "Fix IPv6 provider networks" 2017-03-17 16:07:32 +00:00
Jenkins f7c0a2e214 Merge "Remove glare from glance" 2017-03-17 16:07:23 +00:00
Jenkins aff17b14f1 Merge "Use string comparison to compare UUID values" 2017-03-17 16:07:16 +00:00
Jenkins 21c8d6b2b5 Merge "Install same packages for neutron-* services as for q-*" 2017-03-17 15:49:47 +00:00
Jenkins 8ae0a2ea3b Merge "FAQ: remove references to stable/kilo: use stable/ocata instead" 2017-03-17 15:49:40 +00:00
Jenkins c292223f13 Merge "Xen: restrict devstack VM use upto 8 vCPUs." 2017-03-17 15:49:33 +00:00
Jordan Pittier fe1d3d6a7b Apache Keystone Template: reduce the number of processes to 3
Now Apache2 has 5 dedicated processes for Keystone Admin and 5 for
Keystone Public. As each Apache process consumes some memory and
we arbitrarly decided 5 was a good number more than 2 years ago,
maybe now (with the recent memory pressure we feel) is a good time
to reconcider.

With 5 processes our peakmem_tracker.py script reports a max RSS size
for the "wsgi:keystone-ad" and "wsgi:keystone-pu" processes of
2 (public and admin) * 5 (number of processes) * 90 Mo (RSS of each
process) = 900 Mo.

With 3 processes, the overall max RSS for Keystone is
2 * 3 * 90 = 540 Mo.

Note that this is RSS memory, but using the "smem" linux command on
my laptop, I noticed that the USS (Unique set size, i.e RSS excluding
shared memory) is around 80Mo per process. So reducing the number of
processes will actually reduce memory consumption.

Change-Id: Iba72d94aa15ecaa87c0115ad26d6bpeakmem_tracker62d5b3bea0a
2017-03-17 15:43:36 +00:00
Jenkins 0f3a7ada8d Merge "Added list of mlock-using processes to peakmem_tracker output" 2017-03-17 14:31:22 +00:00
jianghua 5f8bd0e452 Xen: restrict devstack VM use upto 8 vCPUs.
Change-Id: Iea6086a3feb03dff581d9c04560133c4f57a6f6c
Closes-Bug: 1672642
2017-03-16 08:44:44 +00:00
OpenStack Proposal Bot dab52d7554 Updated from generate-devstack-plugins-list
Change-Id: I55dea8141046350f9cf06afb7edc957c35397b38
2017-03-16 07:51:22 +00:00
Jenkins 07d612e460 Merge "Revert "put mysql on a memory diet"" 2017-03-16 03:55:54 +00:00
Jens Rosenboom 4b59fbb857 Revert "put mysql on a memory diet"
The diet seems to be too strict, jobs failing with "out of sort memory". Needs more investigation before resubmitting.

This reverts commit 1e66388c5f.

Change-Id: Ic10effaaf047eb3527082baab889772c5e57fa90
2017-03-15 21:58:48 +00:00
Jenkins 27b1b21f01 Merge "put mysql on a memory diet" 2017-03-15 19:57:54 +00:00
Jenkins 92cc930dc7 Merge "Don't create keystone account for disabled service" 2017-03-15 18:54:50 +00:00
Jordan Pittier 99d5d1ce82 FAQ: remove references to stable/kilo: use stable/ocata instead
It's 2017, some of our newest OpenStack developers/users may not
even know what stable/kilo is/was.

Change-Id: I00f39cc80af7e1632293bf057d95040b6bfa48e0
2017-03-15 13:42:25 +01:00
Jenkins b06229070e Merge "Update the enabled service on compute nodes" 2017-03-14 02:36:04 +00:00
Jenkins 15da6f5e5c Merge "Updated from generate-devstack-plugins-list" 2017-03-14 02:32:46 +00:00
John L. Villalovos 3345a6d316 Use string comparison to compare UUID values
Was using the '-ne' integer comparison operator to compare UUID
values. This caused error messages like:

/opt/stack/new/devstack/lib/tempest: line 226: [[: dfae26ac-1780-4677-902d: value too great for base (error token is "902d")

Change it to use '!=' string comparison operator

Change-Id: Ib7c9197dd0fe58addf33b4f82beea6de64f6b10b
2017-03-13 13:47:34 -07:00
wangxiyuan b763dbda73 Remove glare from glance
glare has been removed from glance already. Now error will be raised
if enable g-glare in local.conf.

Remove the glare support by glance.

Change-Id: I9a389af194dd2b8aed75d3c921293d800f8c591b
2017-03-13 22:51:18 +08:00
Jenkins 477c55866b Merge "lib/neutron: set variables needed for sane l3 agent setup" 2017-03-13 12:57:17 +00:00
Jenkins 21fcb028ec Merge "Disable glance v1 by default" 2017-03-13 12:56:28 +00:00
Ben Swartzlander d15f222e2b Fix IPv6 provider networks
Add a missing --subnet-range argument when creating an ipv6 provider
network. Also changed SUBNET_V6_ID to IPV6_SUBNET_ID. And remove the
--ipv6-address-mode arg because it doesn't apply to subnets on routers.

Change-Id: I82796804a06e758e458606dc9eb400bcd08ad6e4
2017-03-11 01:50:01 +00:00
OpenStack Proposal Bot 1be04a0769 Updated from generate-devstack-plugins-list
Change-Id: I95309e2857f0361b65dc6fbaf686aab94626c086
2017-03-10 08:05:05 +00:00
Jenkins cb484abf80 Merge "Use KEYSTONE_SERVICE_URI consistently" 2017-03-10 00:50:22 +00:00
Dave Chen 9bc7708c80 Update the enabled service on compute nodes
Change the service from 'n-network' to 'q-agt' since
Nova network is not supported by default.

Change-Id: I085aac75d4c1b721498afa568c8ecfd5abc7b20c
2017-03-10 05:34:21 +08:00
Édouard Thuleau 93a4156015 Don't create keystone account for disabled service
If service is disabled, don't expect to create the corresponding
keystone account.

Change-Id: I007088862de1c8643eca3a6b9b313f0125b9b8d1
2017-03-09 19:07:07 +01:00
Jenkins e4b224928f Merge "Adding haproxy package to Neutron" 2017-03-09 12:38:52 +00:00
Jenkins 485b8f1375 Merge "Change auth_version to v3 on Tempest" 2017-03-09 07:43:03 +00:00
Jenkins 6523d6e097 Merge "Make declared variables global" 2017-03-08 13:31:57 +00:00
jeremy.zhang d5919d08ba Restrict enabling the manage_volume volume feature
Not all Cinder backends support the 'manage volume' feature. The test that
in tempest for this feature is specific to LVM and will *not* work for
other work backends regardless of them supporting the feature.

Change-Id: I055aa66738deb5ae2fb925429cec565e3901340c
2017-03-08 15:27:37 +08:00
Sean Dague afef8bf097 Make declared variables global
When variables use the 'declare' directive, it is by default a local
variable. While other variables have global scope.

For example:
   declare -A AN_ARRAY   # local in scope
   foo=1                 # global in scope

This causes errors to occur as some of the variables will be local only
and others will be global.

Update the code, as appropriate, so that variables using the 'declare'
directive also include the '-g' flag to have them also be global. Not
every instance of a declared variable has been updated.

Closes-Bug: #1669509
Co-Authored-By: John L. Villalovos <john.l.villalovos@intel.com>
Change-Id: I2180b68fe861ad19c6d4ec0df0f9f8a528347862
2017-03-07 22:07:29 -08:00
Ihar Hrachyshka f511c368f8 lib/neutron: allow to add more ml2 extension drivers
The patch will allow jobs to append new ml2 extension drivers without
overriding port_security.

Change-Id: I45f017d1b8a3054452c3166ed4fb460d21959adb
2017-03-07 10:39:41 +00:00
OpenStack Proposal Bot 73a3e2decd Updated from generate-devstack-plugins-list
Change-Id: Iffde64ae167fa32a377d20a9628c17286f1bf958
2017-03-07 08:49:22 +00:00
Jenkins 8fe48af162 Merge "lib/neutron: untangle metering configuration from legacy" 2017-03-07 00:14:19 +00:00
Brant Knudson c2c89e4b35 Use KEYSTONE_SERVICE_URI consistently
lib/keystone builds KEYSTONE_SERVICE_URI so that other services
don't need to reconstruct the identity URI. Many services already
use it, but some parts were still building the identity URI from
the different parts.

This will allow changing the identity URI to include a path
(e.g., to http://<host>/identity) in 1 place rather than in
multiple places.

Change-Id: I58cbdbe591d8869807545e0815480fc3375e0479
2017-03-06 14:03:04 -06:00
Jenkins 713f17c1d2 Merge "lib/neutron: stop loading all config files into all processes" 2017-03-06 14:37:57 +00:00
Jenkins 17c2f028cf Merge "Change to messagingv2 for oslo_messaging_notifications.driver" 2017-03-06 14:25:08 +00:00
Jenkins 6def6020fc Merge "Fix install_libvirt for other RHEL-based distros" 2017-03-06 06:22:28 +00:00
Ihar Hrachyshka e65ab4a1c5 lib/neutron: configure root_helper for agents
Before the patch, we were only configuring root_helper_daemon to point
to oslo.rootwrap, but not root_helper. (The former is used for long
running commands only, while the latter is used for short lived
commands.) This made neutron agents to directly call to sudo when a
privileged process was to be executed. This failed because /etc/sudoers
was not configured to allow anything except the rootwrap call itself.

This patch simplifies rootwrap handling in the code; it also sets
root_helper to point to rootwrap; as well as configure daemon in
sudoers. While at it, we also set l2 agent to use rootwrap too.
Hopefully, it will be enough for agents to actually configure backend as
needed.

Change-Id: Ib05a6e0e024f534d7f616d41d70fb67ecf6daeaf
2017-03-05 23:05:33 +00:00
Matt Riedemann 45da777d25 Change to messagingv2 for oslo_messaging_notifications.driver
The oslo.messaging docs on the notification messaging driver
says that "messaging" (1.0) is a legacy format and you should
use messagingv2 unless otherwise required for that old format.

By default we should be testing with messagingv2.

Change-Id: I3031afe7551a0c8dde46e1ccfacff445fb68e122
2017-03-05 13:09:39 -05:00
Ihar Hrachyshka 2b4735f1b3 Added list of mlock-using processes to peakmem_tracker output
The change makes peakmem_tracker list processes that lock memory pages
from swapping to disk. It may be helpful when debugging oom-killer job
failures in gate in case when dstat shows that swap is not fully used
when oom-killer is triggered.

The peakmem_tracker service was renamed into memory_tracker to reflect
its new broader scope.

Needed-By: I5862d92478397eac2e61b8a61ce3437b698678be
Change-Id: I1dca120448ee87930fe903fd81277b58efaefc92
2017-03-05 15:50:59 +00:00
Ken'ichi Ohmichi dc6e550218 Change auth_version to v3 on Tempest
Keystone v3 API is CURRENT and the v2 API is deprecated now.
So we need to change the default config of auth_version to fit
for current API status.

Depends-On: Id5e5ed9bf4f8b0f9eb376bfc7c5801f0956da1d9
Change-Id: I801e6740258ddea2a1b628a209970e0307d39d12
2017-03-03 16:57:03 -08:00
Matt Riedemann 80e82eac4c Disable glance v1 by default
Nova has been supporting glance v2 since Newton and removed
support for glance v1 in Ocata:

97e7b97210139a7f7888f0d6901e499664de02a3

We should disable glance v1 by default because there are several
test paths in Tempest which don't get run when glance v1 is
available because it uses glance v1 rather than v2.

Depends-On: I54db379f6fbe859fd9f1b0cdd5b74102539ab265

Change-Id: I7f962a07317cdad917ee896d79e49ee18938d074
2017-03-03 17:11:56 -05:00
Jenkins 8ddbf6f89d Merge "Create cell1 cell before n-api starts" 2017-03-03 16:20:47 +00:00
Jenkins 073c225257 Merge "Skips enabling kernel bridge firewall in container" 2017-03-03 16:20:20 +00:00
Jenkins 4fd32ec99f Merge "Use lib/keystone to configure [nova] section in neutron.conf" 2017-03-03 16:14:24 +00:00
Jenkins b9ed1ffc7d Merge "Added printing exit code of component process if it failed to start" 2017-03-03 02:53:05 +00:00
Jenkins 06d6fcf861 Merge "Add allow_global_implied_dsr_disabled feature flag" 2017-03-03 02:52:08 +00:00
Matt Riedemann f15224c740 Create cell1 cell before n-api starts
Change ac5fdb4c40 introduced
a problem for gnocchi CI because the deployments steps
are now:

1. create cell0
2. start nova-api (with multiple workers)
3. install ceilometer via extras
4. ceilometer calls nova-api to list servers; at this point
   nova-api getes the list of cells and caches them, which
   will just be cell0
5. create cell1 via simple_cell_setup which also discovers
   the n-cpu node so we can schedule instances
6. gnocchi tests create and list instances and at this point it hits
   an n-api worker that only has cell0 cached so it does not
   find some test servers it created and fails.

The cell0 and cell1 cells should be created in the nova_api db
before starting n-api so that when we first list instances, we
store both cells in the cache that's in n-api. This deployment
order is also how the nova docs describe rolling out cells v2
but the way we were doing this devstack wasn't following that,
or accounting for when devstack plugins are loaded via extras.

This change creates the main cell1 cell earlier in the setup
before n-api is started, and then changes to just run
discover_hosts at the end after n-cpu is running (which is what
simple_cell_setup and map_cell_and_hosts would do implicitly).

Change-Id: I38eab6707340253a10159a169ae61d34784c2d28
Related-Bug: #1669473
2017-03-02 15:33:08 -05:00
Ihar Hrachyshka 0ce4ba915b Use lib/keystone to configure [nova] section in neutron.conf
This simplifies neutron library code and makes it less prone to breakage
in the future. So far there are no specific known issues with existing
code per se, it works, still.

Change-Id: I28f1997d226baae902dae5ca8ee6cd4fd89efe31
2017-03-02 19:43:05 +00:00
Amrith Kumar 1e66388c5f put mysql on a memory diet
We propose several MySQL configuration parameter changes (with
explanations) to reduce the memory footprint of MySQL. A demonstration
of the improvement is provided in
https://etherpad.openstack.org/p/change-438668.

As Clint provided some of the descriptions that I've used, I have
listed him as a co-author (thanks Clint). Let this serve as a warning
to all that commetors may be enlisted :)

Change-Id: Icb2d6ea91d3d45a68ce99c817a746b10039479cc
Co-Authored-By: Clint 'SpamapS' Byrum <clint@fewbar.com>
2017-03-02 09:07:12 -05:00
Evgeny Antyshev 008aa3e095 Fix install_libvirt for other RHEL-based distros
Since https://review.openstack.org/#/c/438325 landed
it only works for Centos 7, but not for other
RHEL-based distributions: Virtuozzo and, probably, RHEV.

Both of above have own version for qemu-kvm package: qemu-kvm-vz and qemu-kvm-rhev,
accordingly. These packages provide "qemu-kvm", like qemu-kvm-ev,
and, when you call "yum install qemu-kvm", they replace the default OS package.

Change-Id: I46da627c0da8925064862fdc283db81591979285
2017-03-02 11:14:25 +00:00
Jenkins 23d03b697f Merge "install OSC with py3 by default" 2017-03-02 05:39:08 +00:00
Jenkins 93715a93df Merge "clean up virt drivers that we do image logic for" 2017-03-02 05:39:00 +00:00
Rodrigo Duarte Sousa 94c400cc54 Add allow_global_implied_dsr_disabled feature flag
This patch enabled the "allow_global_implied_dsr_disabled" feature
flag. This is a feature flag toggle for bug 1590578 which is fixed
in Newton and Ocata. This option can be removed after Mitaka is
end of life.

Change-Id: I70e3ce79ee6d9b00cc48bb178bd423d0196f6588
Related-Bug: #1590578
2017-03-01 19:54:38 -03:00
Dan Smith b1d8519b40 Move rpc backend start/configure to earlier
Because things like nova may need to create vhosts in the rpc backend,
we need to have started and created credentials before we configure
the service.

Change-Id: I01c9c5288e197fc50a8a4a032e3a32cd166eb180
2017-03-01 10:10:52 -08:00
Jenkins 24b58a9a1a Merge "nova: call map_cell0 much earlier in the setup" 2017-03-01 18:08:11 +00:00
Sean Dague f119121d21 clean up virt drivers that we do image logic for
openvz is not in the nova tree, and is referencing a crazy old image,
we're going to assume that if anyone is using this they can build a
devstack plugin.

drop doing anything by default because this actually requires that we
special case things like ironic in tree to *not* do anything by
default.

Change-Id: I9d33b98263c3d52a95b9983e90eb0b341fa1d363
2017-03-01 11:23:49 -05:00
Jenkins 8a82a9da2c Merge "nova: Fix comments for _config_nova_apache_wsgi" 2017-03-01 09:29:55 +00:00
Jenkins 7d6e77baff Merge "lib/neutron: Fix an extra comma in service_plugins" 2017-03-01 09:29:48 +00:00
Jenkins 2977d9aef5 Merge "lib/neutron: Fix conf handling" 2017-03-01 09:29:41 +00:00
Doug Hellmann 0b1ea080a2 install OSC with py3 by default
Add python-openstackclient to the list of packages installed under
Python 3 by default, so that jobs running with Python 3 exercise the
client that way.

Change-Id: I9778a6810bb3e4850132cfc19e583d50fed23ef5
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-02-28 16:39:48 -05:00
Jenkins 192046e4ab Merge "Use qemu-kvm-ev package on centos" 2017-02-28 21:28:52 +00:00
Ihar Hrachyshka 19f4b3faae lib/neutron: stop loading all config files into all processes
DHCP agent should not load core plugin config file; L3 agent has no
interest in metadata agent configuration file; etc. It's a mistake to
form a single global list of configuration files and pass it into all
processes. Every process should have its own list, that may or may not
have some files in common with other processes.

The only file that is common to all neutron processes is neutron.conf,
and we could in theory keep it into the common list. But I decided at
this point it's better to be explicit about what's loaded into services.
Also the order of arguments is important, and neutron.conf should always
be the first CLI argument, which is hard to achieve by keeping
neutron.conf file in the global list.

Plugins may be interested in loading additional files into neutron
processes. For example, dragonflow needs to load /etc/neutron/dragonflow.ini
into neutron-server. But we should not necessarily load all those files
into all processes, so such extendable lists should be per process.
Besides, neutron_server_config_add_new is already available to use to
append additional configuration files for neutron-server. That's why the
patch completely kills the NEUTRON_CONFIG_ARG variable.

Depends-On: I4bd54a41a45486a5601373f9a9cce74d7686d1aa
Change-Id: Ia3c3862399bba335db5edf9ea70f850fb2638d09
2017-02-28 21:07:52 +00:00
Jenkins 0e1e78117e Merge "install LIBS_FROM_GIT using python 2 and 3 where appropriate" 2017-02-28 16:37:49 +00:00
Jenkins 259c5e19a7 Merge "allow config to manage python3 use explicitly" 2017-02-28 16:37:20 +00:00
Jenkins d81e422722 Merge "Added support for fake drivers as Cinder backend" 2017-02-28 13:53:27 +00:00
Eli Qiao e624e48ddf nova: Fix comments for _config_nova_apache_wsgi
Comments cleanup.

Change-Id: I02748b906f7bb75240bc4e5259005cd72ef49f6b
2017-02-28 15:18:20 +08:00
Eli Qiao 4af6eeac52 cinder: wait for cinder-api for wsgi too
Wait for cinder-api's status if CINDER_USE_MOD_WSGI=True

Change-Id: I40e5e08633572f877a25280496141423f232d447
2017-02-28 15:14:00 +08:00
Denis Buliga 0bf75a471e Skips enabling kernel bridge firewall in container
Calling enable_kernel_bridge_firewall inside a
container, devstack will crash because it tries to
load a kernel module by calling 'sudo modprobe' on
net.bridge.

Change-Id: Id4718c065d5a8c507d49f38e19c2796a64221aa4
Closes-Bug: #1662194
2017-02-27 10:31:58 +02:00
Ian Wienand 52bb64105f Use qemu-kvm-ev package on centos
For the latest qemu-kvm, you have to use the qemu-kvm-ev package,
which is based off the qemu-kvm-rhev package, which is explained in
[1] but you probably can't read it.  The gist is, that qemu-kvm-rhev
is a later build of kvm that is incompatible with the base version
provided.  qemu-kvm-rhev is only provided with the RHV (ovirt) and
RHOS (openstack) products.  CentOS rebuilds this package as
qemu-kvm-ev as part of it's virtualisation SIG.

I9a972e3fde2e4e552f6fc98350820c07873c3de3 has bumped up the minimum
qemu version to 2.1.0.  It seems there is a an issue (bug #1668164)
where having the qemu-system package installed gets picked up if
installed, and reports the incorrect version to nova, causing failure.

This removes the installs from files/rpms/nova as it is all being done
in function-libvirt.  We only install the qemu-kvm-ev package on
centos and remove the old work-around.

[1] https://access.redhat.com/solutions/629513
[2] https://wiki.centos.org/SpecialInterestGroup/Virtualization

Change-Id: Ide91b261f35fb19d8bd7155ca016fa3b76a45ea1
2017-02-27 18:59:49 +11:00
Ian Wienand 1e7f738f28 Ensure we install setuptools from requirements
Use pip_install_gr so we get the version pinned by requirements.  The
depends-on is an example of where we're trying to pin to workaround
issues.

Depends-On: I9c57c08a150571c5bb62235d502839394d53a4c1
Change-Id: I780cca681b12a3e9d228dbf2fd9fa6e8ab1a82e1
2017-02-27 11:35:43 +11:00
Jenkins 6f23555c95 Merge "Fix error in 'ip netns' parsing" 2017-02-26 21:43:54 +00:00
Jenkins f697274eee Merge "Fix file permissions for lib/neutron_plugins/linuxbridge_agent" 2017-02-26 06:26:01 +00:00
Jenkins 9a21fe65a7 Merge "Xen: support Ubuntu Xenial for xen DevStack" 2017-02-26 03:41:50 +00:00
Jenkins 47e3e1d88e Merge "XenAPI: enable root_helper_daemon for XenServer" 2017-02-25 19:15:31 +00:00
Jenkins 0e9ee86bde Merge "Using sudo in the Quick start section" 2017-02-25 16:02:57 +00:00
Jenkins 71640bfe39 Merge "Remove distro support based on new libvirt minimum" 2017-02-25 16:02:50 +00:00
Ihar Hrachyshka 3a6916e768 Install same packages for neutron-* services as for q-*
This patch creates symlinks between neutron-* files tracking runtime
dependencies for services, and q-* files. Since lib/neutron is the
new recommended way to deploy neutron with devstack, this patch made
neutron-* files real files, while q-* files are just symlinks.

Change-Id: I0f361f31160d0fee40ad3e8de873edd05173e54e
2017-02-25 05:37:55 +00:00
Jenkins 0072abbf11 Merge "Refactor rpc backend vhost creation" 2017-02-24 22:51:38 +00:00
Jenkins 50aa32014c Merge "Enable placement section on controller in multinode setup" 2017-02-24 16:55:54 +00:00
YAMAMOTO Takashi c043b6f8a8 lib/neutron: Add neutron_deploy_rootwrap_filters
Change-Id: Icfa2cfa662013324d38099b82ce0f58ed8377e60
2017-02-24 11:02:44 -05:00
YAMAMOTO Takashi a1875b1ffc neutron-legacy: Defer service_plugins configuration
This allows post-config phase to use neutron_service_plugin_class_add
so that devstack plugins can use it in the same way for both of
neutron-legacy and its "modern" counterpart, lib/neutron.

Closes-Bug: #1667037
Change-Id: I9068fd608e82e70db8d725f92269a26920efebcb
2017-02-24 11:02:44 -05:00
Jens Rosenboom f069acf9ee Make subnet pool names unique
Using the same name for two different subnet pools means that one needs
to reference them by their UUID. Choosing unique names will allow us to
use the name to reference the pool later on.

At the same time simplify the command used for pool creation by
instructing OSC to only output the value that we are interested in.

Change-Id: Idedcb6328925d44cdd0f415450ec4ebbc272401d
2017-02-24 16:37:34 +01:00
Mehdi Abaakouk 807de8e590 Set OS_AUTH_TYPE to password
Devstack configures keystone for auth mechanism but don't tell
keystoneauth1 library that it should use keystone too.

In simple case, this is not an issue because some application
set 'password' by default (like the openstack cli).

But applications can have no default or another default.

Change-Id: Idd1e1d2e7546fce7531175440788a8c7cb27aec1
2017-02-24 14:55:33 +01:00
Gary Kotton 79b55f51e4 Fix file permissions for lib/neutron_plugins/linuxbridge_agent
The permissions changed with commit
40aae6adbf

TrivialFix

Change-Id: I100cb9589309f9289b4581265a5e4206464ddc0e
2017-02-24 13:40:19 +00:00
Daniel Alvarez 1d0841286e Adding haproxy package to Neutron
This patch adds haproxy package to devstack as Neutron will rely on it
for serving metadata instead of the current Python implementation.

haproxy will reduce the memory footprint from ~50MB to ~1.5MB for
serving metadata. It will be spawned for every Neutron router so,
for large deployments, it will be a significant memory reduction.

Change-Id: I36a5531cacc21c0d4bb7f20d4bec6da65d04c262
2017-02-24 12:05:03 +00:00
Jenkins 10e1e387ce Merge "Don't set external_network_bridge by default" 2017-02-24 12:00:44 +00:00
Jenkins cffe4fea06 Merge "worlddump: Use __future__ print_function" 2017-02-24 12:00:27 +00:00
Jenkins 947af3ac61 Merge "Removed neutron_plugin_configure_debug_command functions" 2017-02-24 10:21:59 +00:00
Jenkins a97d32fac2 Merge "Do not run cinder API V1 tests anymore by default" 2017-02-24 10:14:12 +00:00
Jenkins 5c332b09ab Merge "Corrected router gateway set command" 2017-02-24 06:32:13 +00:00
Ihar Hrachyshka bf697f5065 lib/neutron: untangle metering configuration from legacy
The old code assumed _neutron_service_plugin_class_add presence, as well
as used a configuration file path that is not standard (under
/etc/neutron/services/ instead of /etc/neutron/metering_agent.ini).

The patch untangles metering configuration in the new library from that
old and bad code, and reimplements it inline.

This should help the effort to switch gate from lib/neutron-legacy to
lib/neutron.

Change-Id: I0d235498af4b6a70bd5dae6ea178d5aa8ba41e80
2017-02-24 05:24:42 +00:00
Ihar Hrachyshka 615e115474 lib/neutron: set variables needed for sane l3 agent setup
Since for the new devstack library we still rely on some functions from
ovs_base, we need to initialize them with sane default values so that
setup works as intended and as lib/neutron-legacy behaves by default for
external connectivity setup.

Change-Id: I412ed4f988b8e03a3e3a08066375b55a6e6aa3e6
2017-02-24 05:24:18 +00:00
Jenkins cdf79c9620 Merge "mysql: set default sql_mode to TRADITIONAL" 2017-02-24 00:59:06 +00:00
Dan Smith 6f0205b036 Refactor rpc backend vhost creation
The creation of the cellsv1 rpc vhost was buried in the restart function,
which makes it hard to extend. This breaks it out into a helper method
and moves the conditional logic into the nova module itself.

Change-Id: Ib0e377aabe45c27bb6ce59ca275ce73085e8b9d2
2017-02-23 08:16:48 -08:00
Prashant Shetty f58b373563 Enable placement section on controller in multinode setup
Currently placement api section will be configured on controller
only if service n-cpu is running. It breaks multi node setup.
Closes-Bug: #1667219

Change-Id: I8b0f60f253859f704bb9831d7dac8f55df353ac7
2017-02-23 13:49:37 +00:00
Jenkins 0fddb35cd8 Merge "lib/tempest: Liberty EOL: remove the volume_services feature flag" 2017-02-23 04:09:00 +00:00
Jenkins 354e7d0997 Merge "Setup service user configuration in nova.conf" 2017-02-22 22:17:46 +00:00
YAMAMOTO Takashi 84e45c9143 lib/neutron: Fix an extra comma in service_plugins
Closes-Bug: #1667077
Change-Id: Ib63a94a931c38a7b2a5fc91a8339a9cd657f7927
2017-02-22 14:25:31 -05:00
YAMAMOTO Takashi ed887d8b9f lib/neutron: Fix conf handling
- Remove extra spaces
- Fix a missing space in the generated option string
- Fix a fatal typo

Change-Id: Ieca1c3e3c7e2ff59089ef45435e126ce7ff4f9b5
Closes-Bug: #1667073
2017-02-22 14:23:35 -05:00
Ivan Kolodyazhny 447f141d4f Added support for fake drivers as Cinder backend
FakeLoggingVolumeDriver  will be used for functional Cinder tests to
prevent dependencies on any storage.

FakeGateDriver is based on LVM and will be used to run Tempest tests for
such features like CG's, replication, etc.

Depends-On: I383bcdb531c7d52c0fdbb6875de73f1274a92854
Change-Id: I2dc8ea416f5eb3fcc9d2e959533497e464220ff5
2017-02-22 09:14:54 -05:00
Jianghua Wang 6e49cab091 Xen: support Ubuntu Xenial for xen DevStack
Upgrade xen tool to install Ubuntu Xenial; change the upstart
task to systemd task to finish the OpenStack installation
by using devstack.

Change-Id: I8129923be3c41e7f60e9d32348a5ea8e07d4845b
2017-02-22 19:59:36 +08:00
Jenkins 7a30c7fcab Merge "pass role by name not id" 2017-02-21 23:04:49 +00:00
Jenkins 42a914cadf Merge "Revert "tls proxy: immediately close a connection to the backend"" 2017-02-21 21:02:03 +00:00
Sean Dague 0b259c3abd only set nova catalog if it's not the default
This ensures we only set the nova catalog when it's not the default,
instead of also putting defaults in devstack.

Change-Id: Ibb0dcb8bae2e9223db302d7b19e8fbee4ebbf0e3
2017-02-17 11:51:36 -05:00
Jenkins 29152c7dd6 Merge "remove keystone internal uri" 2017-02-16 19:21:06 +00:00
Jenkins 55dab95237 Merge "simplify endpoints used in devstack" 2017-02-16 19:20:14 +00:00
Jenkins fe86b35982 Merge "Use the latest 0.3.5 version of CirrOS" 2017-02-15 17:38:24 +00:00
Jordan Pittier 88312fa61f Do not run cinder API V1 tests anymore by default
I think now is a good time to stop running Cinder V1 tests. It should
save quite some Infra resources and jobs should run faster too.

Also, remove some useless variables in lib/tempest.

Change-Id: I0edf1d88c136c3b910a5773690a603eeacb50266
2017-02-15 16:49:42 +01:00
Jenkins 9b15fd26d7 Merge "Switch devstack to use qcow cirros img" 2017-02-15 15:28:23 +00:00
Jenkins 5ed1e34802 Merge "Add top memory consuming process to dstat output" 2017-02-15 02:02:49 +00:00
Jenkins 289c600646 Merge "Down PUBLIC_BRIDGE before trying to delete it" 2017-02-15 01:48:48 +00:00
John L. Villalovos c6e6939e89 Fix error in 'ip netns' parsing
Sometimes when doing worlddump would see a command line like this:
 sudo ip netns exec (id: ip addr

This would cause an error to be seen in console.log:
  2017-02-07 00:03:03.659570 | /bin/sh: 1: Syntax error: "(" unexpected

This is caused by there sometimes being extra data returned from the
'ip netns' command [1]. For example it might look like:
    qrouter-0805fd7d-c493-4fa6-82ca-1c6c9b23cd9e (id: 1)
    qdhcp-bb2cc6ae-2ae8-474f-adda-a94059b872b5 (id: 0)

[1] https://lwn.net/Articles/629715/

Change-Id: Icece442023125ef55696b8d92a975d37e358b1b4
Closes-Bug: 1653969
2017-02-14 09:29:54 -08:00
Jordan Pittier 4370925181 TLS proxy: disable HTTP KeepAlive
There's a race condition when a client makes a request "at the same
time" the HTTP connection is being closed by Apache because the
`KeepAliveTimeout` is expired.

This is explained in detail and can be reproduce using
https://github.com/mikem23/keepalive-race or
https://github.com/JordanP/openstack-snippets/blob/master/keepalive-race/keep-alive-race.py

Just disable KeepAlive to fix the
('Connection aborted.', BadStatusLine("''",)) error we are seeing.

Change-Id: I46e9f70ee740ec7996c98d386d5289c1491e9436
2017-02-14 16:59:07 +01:00
Jordan Pittier bc3d01c8ec Revert "tls proxy: immediately close a connection to the backend"
This reverts commit e0a37cf21e.

This didn't help fixing bug #1630664. Issue seems to be between
client<--->Apache2, not between Apache2<--->eventlet

Change-Id: I092c1bbf0c5848b50fc9e491d1e9211451208a89
2017-02-14 15:46:03 +00:00
Matthew Treinish 6fc332d852 Switch devstack to use qcow cirros img
This commit switches devstack to use the published qcow2 cirros image
instead of the AMI version. Using AMI was mostly a historical artifact
dating pretty far back, but in the real world no one really uses AMI
images with openstack clouds. This change reflects that and also
enables tempest ro remove its deprecated config options for using AMI
as a fallback on misconfiguration (which was just there to support
devstack's defaults)

Change-Id: Id65ebae73b28da7185cb349b714b659af51ef77f
2017-02-14 08:41:25 -05:00
Matt Riedemann ff10ac318c Remove distro support based on new libvirt minimum
Nova is going to increase the minimum required libvirt
in Pike to 1.2.9 in change:

I9a972e3fde2e4e552f6fc98350820c07873c3de3

Based on the libvirt distro support matrix wiki [1] that
drops support for Ubuntu Trusty and Debian 7.0/Wheezy.

Trusty has libvirt 1.2.2 and Wheezy has 0.9.12 (the Wheezy
support should have been removed long ago apparently). The
7.0 removed here is for Wheezy also based on commit
b2ef890db3.

This does not undo the check for "trusty" with the
EBTABLES_RACE_FIX in lib/nova_plugins/function-libvirt
since you can still force devstack to run on Trusty if
you specify the FORCE=yes variable.

Note that RHEL 7.1 has libvirt 1.2.8 so it won't technically
work with devstack and nova + pike + libvirt, but with the
way os_RELEASE is calculated the minor version is dropped
for RHEL distros so we just get "rhel7".

Also note that this doesn't attempt to continue supporting
Trusty or Wheezy if nova is not configured to use libvirt,
simply in order to start moving forward on devstack distro
support in general and to keep some sanity and closeness
to what we test with in the CI system.

While we're in here, we also drop Fedora 23 and add
Ubuntu Zesty.

[1] https://wiki.openstack.org/wiki/LibvirtDistroSupportMatrix

Depends-On: I9a972e3fde2e4e552f6fc98350820c07873c3de3
Depends-On: If69f99bd789e646b0261e27a8a061efde32436f7

Change-Id: I6617283afd798af37e64913b7865cea3c8a62aba
2017-02-13 16:31:39 -05:00
Sean Dague bfff93e156 remove keystone internal uri
There is really no reason to have an internal uri referenced for
keystone in devstack.

Change-Id: If0588a0ab512d94451992e7131dd3c8a33c5797c
2017-02-13 16:18:08 -05:00
Sean Dague 11eb2017ef simplify endpoints used in devstack
The proliferation of internal/admin endpoints is mostly legacy and
based on some specific deployment patterns. These are not used by
everyone, and for the devstack case aren't really that useful. We
should simplify our service catalog down to the minimum we need for
development.

Change-Id: Ided7a65c81b3a0b56f0184847fc82e17c29a771e
2017-02-13 16:16:59 -05:00
Jenkins 6bd3561e9d Merge "Generate deprecation warning for postgresql" 2017-02-13 19:57:46 +00:00
Attila Fazekas 9ef346f59d Using sudo in the Quick start section
Adding sudo to the example commands in the quick start section.

Also adding '-' as su argument in order to use
the stack user's env (home).

Change-Id: I23ab38104d05c3f4c8d48b55e66cf19dc4e4f90d
2017-02-13 15:14:41 +01:00
Sean Dague ee37d20f80 pass role by name not id
Change-Id: Ie67758bed3563c9a46a5180eaa9c8d47721fffd8
2017-02-13 14:06:03 +00:00
Andrea Frittoli (andreaf) 9f2dcd3331 Use the latest 0.3.5 version of CirrOS
This new version of CirrOS is built on top of 0.3 branch, so wrt
version 0.3.4 it includes only two commits:

- Cherry-pick of the fix for https://launchpad.net/bugs/1564948
- One extra fix to make the above working on 0.3

Cherry-picked commit is http://bazaar.launchpad.net/~cirros-dev/cirros/trunk/revision/366

A Tempest test for hard reboot in some cases hits the case where
host key are empty. This triggers bugs/1564948, i.e. the ssh
daemon does not start at all, and the Tempest test fails with
"connection refused", which is misleading.

The new version of CirrOS solves this problem as it ensure host
keys are generated if missing, and the sshd deamon started.

I tested the scenario of missing host keys in Iea74c63925be17a1df894c1a2c23f5ba2793e0c6
using a private build of what then became 0.3.5.

Change-Id: I5c154ec25555e768954538fc22b4f5d5975b2deb
2017-02-12 22:14:15 +00:00
Jordan Pittier e0a37cf21e tls proxy: immediately close a connection to the backend
Force mod_proxy to immediately close a connection to the backend
after being used, and thus, disable its persistent connection and
pool for that backend.

Let's see if that helps fixing bug #1630664 (the
Connection aborted/ BadStatusLine thing).

We already have an ER query (in queries/1630664.yaml) that should show
whether this is effective.

Change-Id: I03b09f7df5c6e134ec4091a2f8dfe8ef614d1951
2017-02-10 15:04:52 +01:00
Ihar Hrachyshka 952ecb6fec Don't set external_network_bridge by default
Since the empty value is the default for the option, and when explcitly
set in config file, it triggers a deprecation warning for the option,
avoid setting it unless we actually need to override the new default
value.

Change-Id: If423114d7a52da29b97d1fb473a955d9d69a1a3e
2017-02-10 06:39:04 +00:00
Ihar Hrachyshka 47bcf4fbcb Removed neutron_plugin_configure_debug_command functions
Those are not called by devstack anymore. This cleanup also gets rid of
code that attempts to set external_network_bridge to an empty value,
which triggers a deprecation warning for the option since it's going to
be removed in a next Neutron release.

Change-Id: I5adcbab877b4e8742522de81b1a85acfc33160d7
2017-02-10 06:39:04 +00:00
Sean Dague 999dd7e989 only apply ebtables race fix on trusty
Change-Id: Ifc83e7301d9d921ce9ceed349f116584ce03842b
2017-02-09 17:56:40 -05:00
Jenkins a6ecdd1167 Merge "lib/tempest: remove an unused network option" 2017-02-09 10:32:54 +00:00
Jenkins 0dccb52b75 Merge "Remove OS_NO_CACHE from openrc" 2017-02-09 10:08:25 +00:00
OpenStack Proposal Bot 26e5a00957 Updated from generate-devstack-plugins-list
Change-Id: I4cf11a25b1d107cc5ab9664cae47a5a13f7a2450
2017-02-08 14:19:00 +00:00
Sean Dague d9aaae95f2 Generate deprecation warning for postgresql
Change-Id: I599e6d84b70bb6a7718ae48dd0cfc91796af189e
2017-02-08 07:49:26 -05:00
Kevin Zhao cfc3edc97c Add "--nvram" to virsh undefine domain when clean_nova
For the instance which has boot by uefi, we should use
virsh undefine --nvram to undefine it. Check the libvirt
version for whether it supports nvram and use new undefine
parameters since this parameters is compatible with those
instance which don't use uefi.

Closes-bug: #1612613

Change-Id: Ibca1450e965df1481e6cd6b0d597b4323d667e60
Signed-off-by: Kevin Zhao <kevin.zhao@linaro.org>
2017-02-08 10:57:07 +08:00
Roman Podoliaka 88b84094ec mysql: set default sql_mode to TRADITIONAL
We currently use a more permisive STRICT_ALL_TABLES mode, but that's
not what modern MySQL versions default to (i.e. TRADITIONAL):

https://dev.mysql.com/doc/refman/5.7/en/sql-mode.html#sql-mode-changes

(non-Devstack deployments will most likely use TRADITIONAL as well)

Due to the fact that we default to TRADITIONAL in oslo.db, this
produces annoying warnings on MySQL 5.7 versions we use in the gate:

    Warning: (3090, u"Changing sql mode 'NO_AUTO_CREATE_USER' is
              deprecated. It will be removed in a future release.")

https://git.openstack.org/cgit/openstack/oslo.db/tree/oslo_db/options.py#n49

Unlike STRICT_ALL_TABLES, TRADITIONAL mode includes NO_AUTO_CREATE_USER,
and MySQL emits this warning on switching it on:

https://dev.mysql.com/worklog/task/?id=8326

So we have two options here:

1) make oslo.db default to STRICT_ALL_TABLES
2) make Devstack default to TRADITIONAL

The latter seems to be more appropriate as:

1) it's what modern MySQL versions default to
2) it's what people are actually using, if they do not override the
   oslo.db default
3) it's more strict

Closes-Bug: #1652452

Change-Id: Ie6d823c9f8465ac9f2ce4825929d1a50438fab45
2017-02-07 18:01:25 +02:00
Hirofumi Ichihara 40aae6adbf Down PUBLIC_BRIDGE before trying to delete it
When cleanup devstack with linuxbridge, PUBLIC_BRIDGE should be
DOWN before trying to delete it.

Change-Id: I2d205cbe4d92a03ee5c376a23282d9880dd9a1df
Closes-Bug: #1662543
2017-02-08 00:12:04 +09:00
Jordan Pittier fd40677297 lib/tempest: remove an unused network option
Tempest doesn't support the `api_version` config option for networking
anymore. I can't track which Tempest patch removed it, but it's been more
than 2 years.

Change-Id: I4012f470e8c317803203b6fa1e265600dbc49b3d
2017-02-07 14:43:32 +01:00
Jenkins 7eef546f8a Merge "Cut back on the number of workers ran for neutron" 2017-02-07 04:04:33 +00:00
John L. Villalovos 09949e0dc6 worlddump: Use __future__ print_function
Commit e7361775c1 changed the code to
use Python 3 style print function, but when doing 'print()' in Python
2.7 it would print '()':
    >>> print()
    ()

Import the __future__ print function so that a blank line will be
printed as expected. This will now work the same in Python 2 & 3.

Change-Id: I61742e107278f2327c18c9ab0de52d1914f16c97
2017-02-06 13:55:52 -08:00
Joanna Taryma 9d49ed9834 Added printing exit code of component process if it failed to start
When command failed and component failed to start, original exit code
was overwritten due to original command being executed in background.
This commit adds information about command's exit code to echoed message
about component's start up failure.

Change-Id: I8a3dd485b1b1f2d70d42c5610baac7c0c713f53a
Signed-off-by: Joanna Taryma <joanna.taryma@intel.com>
2017-02-06 11:30:15 -08:00
Jordan Pittier 1868232485 lib/tempest: Liberty EOL: remove the volume_services feature flag
Now that Liberty is EOLed, the feature flag is not needed anymore.

Change-Id: Ib82cb21edbda383d17f8cf69fedc884f2357fead
Depends-On: I7073106988a79aad19c6b95bb050d2eaf00c36c0
2017-02-06 09:43:08 +00:00
Armando Migliaccio 06f2ea2b96 Cut back on the number of workers ran for neutron
The dedicated RPC worker is overkill in single or multinode
devstack deployments. Also metadata API workers was left
default, which meant they were as many as the CPU cores.

Related-bug: 1656386

Change-Id: Ibbf7787dfa48e13a51f961f3e0ee2b8f49964759
2017-02-05 08:04:49 -08:00
Jenkins bab8516a85 Merge "Enable VNC console in tempest.conf" 2017-02-03 16:24:32 +00:00
Jenkins 0ab0e50011 Merge "Create private IPv6 subnet specifying mode flags" 2017-02-03 16:24:25 +00:00
Jenkins f0b9e841c4 Merge "Change the way to get conntrack-tools version" 2017-02-03 16:23:14 +00:00
Matthew Treinish 6d79ebcae1 Add top memory consuming process to dstat output
Right now we under pressure because of increasing memory consumption in
dsvm jobs. So it'll be good to see which process is eating the most ram
at a given time. It may not end up being useful, but it doesn't hurt to
at least display just in case.

Change-Id: I096bf4b425db51358240335e41f6238d1ec1bb40
2017-02-02 10:52:53 -05:00
OpenStack Proposal Bot debc695ddf Updated from generate-devstack-plugins-list
Change-Id: Ia858ddf2e688903af2c76d532ddf7780bd591ef9
2017-02-01 07:27:18 +00:00
PranaliD 705b3785ca Corrected router gateway set command
While configuring the external network as the default
router gateway for IPV6 in lib/neutron_plugins/services/l3,
"router" keyword is missing in the command.

Corrected the command.

Change-Id: I055bea5137a841f709d4865ec9a43d6b53f8f4c9
Closes-Bug: 1660712
2017-02-01 11:33:44 +05:30
Matt Riedemann ac5fdb4c40 nova: call map_cell0 much earlier in the setup
The map_cell0 command creates a cell mapping record in the
nova_api database, and the nova-manage db sync command
will migrate the db schema for the nova_cell0 database. This
patch takes advantage of that by moving the map_cell0 call
much earlier in the setup process so we get the nova_cell0
db schema migrated at the same time as the main nova db.

This also removes the || true condition around map_cell0
since it's idempotent now due to fix:

aa7b6ebbb254f00fcb548832941ca9dbd3996d9f

Change-Id: Ice4fbb1771270c618b2acbc933d4fbfb6805df81
2017-01-31 15:20:18 -05:00
Matt Riedemann e1644ac1d8 Remove OS_NO_CACHE from openrc
Nothing uses this variable either in devstack or libraries,
so it's dead code (at least on master), and we can remove it.

Change-Id: I5975c476ae5b26402c209d6e5746e7a5a5a91507
2017-01-31 11:59:09 -05:00
Jenkins e6f8dbb55f Merge "Don't run swap_volume tests in Tempest if cells v1 is enabled" 2017-01-31 13:16:08 +00:00
Jenkins bd14f7f23e Merge "unify logging setup on all services" 2017-01-31 06:26:17 +00:00
Matt Riedemann e9a9fbef8f Don't run swap_volume tests in Tempest if cells v1 is enabled
Cells v1 apparently doesn't support the swap volume API which
was recently enabled for testing in change:

92575baa6b

Rather than revert that change, we should just handle the cells
v1 case and not enable that test in that environment.

Change-Id: I80f52e8299641098d90d3c374a80770fc45b8122
Closes-Bug: #1660511
2017-01-30 22:22:43 -05:00
Jenkins a935193bae Merge "tempest: configure compute-feature-enabled.swap_volume if libvirt" 2017-01-31 00:42:28 +00:00
Mehdi Abaakouk 5c6aa56e11 Don't assume nova-manage is present
tools/discover_hosts.sh is run by devstack-gate, and breaks all dsvm job
that doesn't use nova.

nova-manage is perhaps not installed if nova services are not enabled.

This change checks the presence of nova-.

Change-Id: Ic555d241f98d0fa027897c69a7115d1be88f6c96
2017-01-26 16:21:54 +01:00
Matt Riedemann 5713497aa5 Add discover_hosts.sh script
This adds a simple script to run the
'nova-manage cell_v2 discover_hosts'
command which will be used by
devstack-gate to discover the compute
hosts after devstack is fully setup.

This allows us to manage the branches
where this can run from devstack rather
than require branch logic in devstack-gate.

Change-Id: Icc595d60de373471aa7ee8fb9f3a81fc12d80438
Depends-On: I4823737246a8e9cc4eaebf67ff6bdba8bf42ab29
2017-01-25 13:45:27 -08:00
Jenkins adcf0c50cd Merge "remove obsolete s3 conf from nova.conf" 2017-01-23 23:37:02 +00:00
Jenkins 7a1e6f042f Merge "simplify colorized logging setup" 2017-01-23 23:35:19 +00:00
Michelle Mandel 10db2b8e65 Enable VNC console in tempest.conf
If the NoVNC service is enabled, enable vnc_console in tempest.conf.
This will allow tempest tests that interact with VNC to be executed.

Change-Id: Idb38a3b11e2f61f23adf1ec23c04ddccd72e7539
Depends-On: I09aed8de28f1ba2637382e870134ced38808df29
2017-01-23 10:39:01 +00:00
Jianghua Wang 465ee45986 XenAPI: enable root_helper_daemon for XenServer
The daemon mode of root helper for XenAPI has been implemented by
this change which has been merged to neutron:
https://review.openstack.org/#/c/390931/
It will help to import the performance. Let's enable this mode
by default in devstack.

Change-Id: I52246bef3e4434dfc49446535b122580bc475ac3
2017-01-23 07:46:56 +00:00
Jenkins a1913db5d7 Merge "remove db setting when no nova service need it" 2017-01-20 20:48:56 +00:00
Sean Dague fb1c7b51b5 remove obsolete s3 conf from nova.conf
Change-Id: If0b42c647382b739ee4f1d98ea0394ec7b171ebf
2017-01-20 19:01:14 +00:00
Sean Dague 9751be66fa unify logging setup on all services
This provides a single setup_logging function which builds consistent
colorization if the config supports it, otherwise builds the identity
strings that we need to actually keep track of requests.

Change-Id: Iffe30326a5b974ad141aed6288f61e0d6fd18ca9
2017-01-20 10:48:29 -05:00
Sean Dague b6753cea8c simplify colorized logging setup
This makes setup_colorized_logging be a thing which takes a single
parameter and doesn't let projects do things differently. It also
changes the order of values from user / project to project / user to
represent the hierachy more clearly.

Change-Id: I8c0ba7da54be588e3e068734feb4f78ed7c5a14a
2017-01-20 10:48:20 -05:00
Jenkins df09c43386 Merge "add install_devstack_tools" 2017-01-19 18:24:52 +00:00
Jenkins e19c8c34c5 Merge "Remove baremetal tempest config setting from devstack" 2017-01-19 10:32:20 +00:00
Jenkins b1d3977daf Merge "Restrict enabling the manage_snapshot volume feature" 2017-01-19 00:56:54 +00:00
Sean Dague f80e2cfee8 add install_devstack_tools
An initial install for devstack-tools, this will need to use all the
fun pip extra variables for installation, however the current
pip_install always prefers python2, and we only want to do python3
here.

Change-Id: I3dcdb35130f76fad81cb7b0d4001b7e96efbbd84
2017-01-18 15:42:53 -05:00
Jenkins eb9d42b65c Merge "Use delete action for clean up *.pyc files" 2017-01-18 18:02:56 +00:00
Sean Dague 1b457c9acf remove db setting when no nova service need it
We shouldn't have the db connection laying around if services don't
need it.

Change-Id: I9290e80c499c0c4644094e3c0666fd0ab002a23c
2017-01-18 07:53:33 -05:00
Jenkins d89b175321 Merge "Remove default image logic for Ironic from DevStack" 2017-01-18 00:33:08 +00:00
Patrick East 3eb7c97a6d Restrict enabling the manage_snapshot volume feature
The test that is in tempest for this feature is
specific to LVM and will *not* work for other backends
regardless of them supporting the feature. It shouldn't
default to enabled for everyone, only for LVM.

If others want to opt-in they can, but its definitely
the minority that would.

Change-Id: I21347f2a5069059e6413208b254d5acd246faaea
2017-01-17 11:57:42 -08:00
Jenkins 1afe532a3e Merge "Fix cellsv2 cell0 database name" 2017-01-16 21:38:44 +00:00
Huan Xie ba3c8f48bb Change the way to get conntrack-tools version
In the incoming XenServer, it failed to install conntrack-tools
in Dom0 due to the bash script which is trying to find the correct
CentOS release version to be used in yum command. This patch is to
fix the problem

Change-Id: If7f169e118ccb7c29fc479c361417a916dc40b40
2017-01-15 20:07:04 -08:00
Dan Smith 29bb53fd3e Fix cellsv2 cell0 database name
For some reason we were defaulting the name of the cell0 database
to nova_api_cell0 instead of nova_cell0. Devstack inherited that to
make things work, but we don't really want that. This patch makes us
use the proper name and create the cell0 mapping accordingly. As a
side effect, it also starts the process of unifying the cellsv1 and
cellsv2 paths by creating the cell0 mapping the same for both.

Change-Id: I4e7f6c5eaa068c98e5c4ef3feaee50d8e4f5d484
2017-01-15 09:50:40 -08:00
Jenkins 39a80aeed8 Merge "Don't skip cellsv2 setup for cellsv1" 2017-01-13 22:52:16 +00:00
Jenkins 9a133d1ab0 Merge "Confirm network is created before setting public_network_id" 2017-01-13 18:39:19 +00:00
Jenkins 775c8f4924 Merge "Reconfig ml2 ovs configuration for neutron on XenServer" 2017-01-13 18:39:10 +00:00
Jenkins 244ca7fcdd Merge "lib/tempest: remove the allow_port_security_disabled option" 2017-01-13 18:38:19 +00:00
Jenkins f62a3fb9c6 Merge "lib/nova: create api db first" 2017-01-13 17:17:10 +00:00
Jenkins b96c160d87 Merge "lib/tempest: allow tweaking volume-feature-enabled/manage_snapshot" 2017-01-13 16:00:35 +00:00
Victor Morales b612b6281a Use delete action for clean up *.pyc files
Findutils added in release 4.2.3 a new --delete action for deleting
matching files. This action performs better than -exec rm {} \;
because it doesn't have to spawn an external process.  This change
uses a new action whenever is possible.

Change-Id: Iff16a86b18e924cfe78ac7c6107910940ce51e03
2017-01-13 09:16:42 -06:00
OpenStack Proposal Bot dd07151366 Updated from generate-devstack-plugins-list
Change-Id: I65fd56546af13453274601ec2b923c5d03b8a8ab
2017-01-13 07:11:15 +00:00
Brian Haley 1ec93a8fc2 Create private IPv6 subnet specifying mode flags
$ipv6_modes should always be passed when creating the
default IPv6 subnet, not just when fixed_range_v6 is
set.  Without it the default was DHCPv6, which cirros
doesn't support out of the box.  Was broken in
change-over from neutron to openstack cli.

Change-Id: Iadd39b1ce02fe0b3781bd3ae04adfd20d7e12d9f
Closes-bug: #1656098
2017-01-12 16:11:11 -05:00
Dan Smith e194330f27 Don't skip cellsv2 setup for cellsv1
Since cellsv2 setup is no longer optional, we can't even exclude
cellsv1 from this step. Since cellsv1 users can't use the simple
command, this does the individual steps as needed.

Depends-On: Icfbb17cce8ce8b03dc8b7b4ffb202db01e5218a6
Change-Id: I3c9101a34b2bb0804fc4deda62dbb8637e7b8f94
2017-01-12 08:24:45 -08:00
Matt Riedemann 92575baa6b tempest: configure compute-feature-enabled.swap_volume if libvirt
The only virt driver in nova that supports the swap volume API is
libvirt so enable testing that in Tempest only if using libvirt.

Depends on two changes:

1. The Tempest change that adds the new config option and test.

Depends-On: I2d4779de8d21aa84533f4f92d347e932db2de58e

2. A nova fix for correctly waiting for the block copy job in the guest
   to complete.

Depends-On: I0c52917a5555a70c4973f37dea1aebf878dd73b4

Change-Id: Ibb6b309574d2c6a06fcecb0626ea21527fb7f412
2017-01-12 09:31:21 +00:00
Jenkins b952253d3f Merge "iptables: don't enable arptables firewall" 2017-01-12 09:31:00 +00:00
Jordan Pittier afac732d5d lib/tempest: allow tweaking volume-feature-enabled/manage_snapshot
Only a few Cinder backends support the 'manage snapshot' feature. So
we need a feature flag here. Luckily the LVM driver does support this
feature so default the feature flag to True in devstack(/Gate) but
introduce a variable to tweak the config.

Change-Id: Ifcb9f91059f08bdf2faf2a8d65229aba5742ee1c
Depends-On: I77be1cf85a946bf72e852f6378f0d7b43af8023a
2017-01-11 18:45:27 +01:00
Pushkar Umaranikar 14e16e42f9 Setup service user configuration in nova.conf
In Nova, service token will be passed along with user token to communicate
with services when dealing with long running tasks like live migration.

This change addresses adding service user configuration for nova in
devstack.

Part of Nova blueprint use-service-tokens

Depends-On: I51eb0a8937fa39a2e5dafb1ad915e7113ea61f72

Co-Authored-By: Sarafraj Singh <sarafraj.singh@intel.com>

Change-Id: I2d7348c4a72af96c0ed2ef6c0ab75d16e9aec8fc
2017-01-11 12:03:53 -05:00
Jenkins 1ba23d6ac6 Merge "cinder: configure dlm when this one is zookeeper" 2017-01-11 15:53:04 +00:00
Jenkins 19efc1e6c6 Merge "XenAPI: Use XenServer DevStack plugins" 2017-01-10 22:42:53 +00:00
Jenkins 18877ccc94 Merge "Fix typo in commands to enable nested KVM with kvm-amd" 2017-01-10 20:10:11 +00:00
Jenkins 3bdeed0673 Merge "Move RABBIT_HOST to lib/rpc_backend" 2017-01-10 19:45:10 +00:00
Doug Hellmann a2eb89417f install LIBS_FROM_GIT using python 2 and 3 where appropriate
When installing a library from source and python 3 is enabled, first run
the installation process with python 2 enabled to ensure the library is
also installed under python 2 for any services not yet running under
3. The python 3 version is installed second so that command line tools
installed with libraries are installed under python 3 when python 3 is
enabled.

Change-Id: Ibb0f7a68d21081bf7652a0c1515080c0c54888ca
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-01-10 16:08:43 +00:00
Doug Hellmann 94129c7d02 allow config to manage python3 use explicitly
Add variables ENABLED_PYTHON3_PACKAGES and DISABLED_PYTHON3_PACKAGES to
work like ENABLED_SERVICES and DISABLED_SERVICES and to manage which
packages are installed using Python 3. Move the list of whitelisted
packages in pip_install to the default for ENABLED_PYTHON3_PACKAGES,
except swift which is not enabled by default for now.

Add enable_python3_package and disable_python3_package functions to make
editing the variables from local.conf easier.

Add python3_enabled_for and python3_disabled_for functions to check the
settings against packages being installed by pip.

Update pip_install to check if python3 is disabled for a service, then
see if it is explicitly enabled, and only then fall back to looking at
the classifiers in the packaging metadata.

Update pip_install messages to give more detail about why the choice
between python 2 and 3 is being made for a given package.

Change-Id: I69857d4e11f4767928614a3b637c894bcd03491f
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-01-10 16:08:14 +00:00
Jenkins 6db9e7b0ab Merge "Deprecate Q_PLUGIN_EXTRA_CONF_PATH" 2017-01-10 15:53:51 +00:00
Huan Xie c608184211 XenAPI: Use XenServer DevStack plugins
Hypervisor XenServer will change to use os-xenapi in the future,
this will need DevStack changes, this patch is to remove install
Dom0 plugins part to our own DevStack plugins.

Change-Id: Ic327135b893a77672fd42af919f47f181e932773
2017-01-09 17:43:24 -08:00
Jenkins 425ed145cb Merge "lib/tempest: remove the identity_feature_enabled.reseller flag." 2017-01-10 01:38:43 +00:00
Jenkins cc2cb8480a Merge "Introduce a PYTHON env var" 2017-01-09 22:57:07 +00:00
Jenkins 858a105c81 Merge "Remove duplicate entry for flat_networks" 2017-01-08 17:38:26 +00:00
Jordan Pittier 78c26504e2 lib/tempest: remove the identity_feature_enabled.reseller flag.
Now that Liberty is EOLed, all supported versions of OpenStack have
the 'reseller' [1] feature.

[1]: http://specs.openstack.org/openstack/keystone-specs/specs/kilo/reseller.html

Change-Id: Id823f1969fbd2cf28542a0ef0f905ddae4a0318c
Depends-On: Ia86c6f351919bddf2611524bf0b143aa09dbddee
2017-01-08 15:10:52 +01:00
Jenkins 847c449b92 Merge "lib/neutron: Fix some settings" 2017-01-06 17:47:11 +00:00
Jenkins cf8173125a Merge "lib/neutron: Remove type_driver configuration" 2017-01-06 17:37:15 +00:00
Jenkins ca97c304e8 Merge "Adds keystone security compliance settings" 2017-01-06 17:37:08 +00:00
Lucas Alvares Gomes 0c6956862e Remove default image logic for Ironic from DevStack
The logic to set the default image for Ironic has been moved into the
Ironic tree. This patch is just removing it from DevStack.

Change-Id: Iaeb177f194adc83e40d86696e5553f9f72bbd1f9
Depends-On: Id828b41dc44113ce1cd094ce5fc245989699d4ff
2017-01-06 13:33:25 +00:00
Vincent Untz 09698d0e0e Fix typo in commands to enable nested KVM with kvm-amd
Change-Id: Ie3c6df2409385d9c6bbc50b3b1f8b20689478466
2017-01-06 11:25:46 +01:00
Jenkins 7ec59a017a Merge "Run Swift services under py35" 2017-01-06 00:33:27 +00:00
Davanum Srinivas 51ecf0a869 Introduce a PYTHON env var
* $PYTHON will have the path to python runtime to be used
* Use $PYTHON to run all the scripts

Change-Id: Ib5ab7820fc18cae5e50ea47302b610494197ad47
2017-01-05 18:41:29 -05:00
Rodrigo Duarte b51a8862b1 Adds keystone security compliance settings
The PCI-DSS feature has been introduced during the Newton
release and its settings are disabled by default. This
patch adds the possibility to enable some of them during
DevStack setup.

Change-Id: If6b5eb3e3cbc43eb241c94d18af80ad50be08772
Depends-On: Id97ca26f93b742cc3d8d49e98afc581f22360504
2017-01-05 16:06:39 -03:00
Jenkins 281c5c22ce Merge "lib/tempest: don't set cli_dir and dashboard_url config options" 2017-01-05 16:29:07 +00:00
Jenkins a6742bb0f9 Merge "Fix placement service for identity-v3" 2017-01-05 16:28:58 +00:00
Jenkins 9c7bbca414 Merge "lib/neutron-legacy - Use stevedore alias for ML2 plugin" 2017-01-05 16:27:17 +00:00
Jenkins 05e6912190 Merge "Add virt driver 'zun' to devstack" 2017-01-05 14:30:33 +00:00
Davanum Srinivas 80f3635521 Run Swift services under py35
* iniuncomment followed by iniset for reseller_prefix just adds a
  duplicate line in the config file that configparser does not like
  so just remove the uncomment
* fall back to http:// url for glance->swift keystone authentication
* insecure flag to talk to swift

Depends-On: I51d56d16a5b175bd45dee09edc0b2748d72a5d06
Change-Id: I02ed01e20f8dce195c51273e8384130af53384ce
2017-01-05 09:10:35 -05:00
yatin 0f97841dfa Remove duplicate entry for flat_networks
Currently if PHYSICAL_NETWORK and PUBLIC_PHYSICAL_NETWORK are
same then duplicate entry is created in ml2_conf.ini like below:
flat_networks = public,public,

With this patch, if PHYSICAL_NETWORK and PUBLIC_PHYSICAL_NETWORK
are same then add only PHYSICAL_NETWORK to flat_networks in
ml2_conf.ini

Change-Id: Iae4d1ee3882f6d96b4e4abd52ecc673a620563b5
Closes-Bug: #1654148
2017-01-05 12:40:11 +05:30
Matthew Treinish 85879f1f81 Use the installed swift scripts
This commit switches how scripts we use to launch the installed version
in the path. Previously the scripts were manually executed in the source
repo, but this has issues if you're trying to run with py3 in a system
where python == py2. Setuptools already does the shebang magic for us
at install time, so we just need to use the installed version of the
script.

Change-Id: Iaa4d80ec607a2aa200400330e16cad3a4ca782ac
2017-01-04 19:51:50 -05:00
Jenkins e0ad123758 Merge "lib/tempest: Liberty EOL: remove an useless feature flag" 2017-01-04 22:32:19 +00:00
Hongbin Lu 53a49d104a Add virt driver 'zun' to devstack
According to the feedback in the TC meeting [1], we renamed the Nova
virt driver from "docker" to "zun" [2] to avoid name collision
to nova-docker. This rename also help to clarify the difference
between these two drivers.

[1] http://eavesdrop.openstack.org/meetings/tc/2016/
    tc.2016-11-29-20.01.log.html
[2] https://review.openstack.org/#/c/414651/

Change-Id: I747080953ae4d1d35ed334831100413b6e4466c4
2017-01-04 15:56:06 -06:00
Jens Rosenboom 80b1d0ae7d Fix placement service for identity-v3
The domain_name to be used needs to be $SERVICE_DOMAIN_NAME, as this is
changed in devstack from "Default" to "service".

Change-Id: I6351c1b2ca7ea4448e13eb87455bff4058df4fa7
2017-01-04 16:58:04 +01:00
Mehdi Abaakouk 52b1074615 cinder: configure dlm when this one is zookeeper
Previous this was set the zake, but that was revert to missing
dependencies issue and because zake is a test fixture and not somthing
to deploy.

This change configures the Cinder dlm with this one is zookeeper.
And it installs tooz and the extra dependencies needed for the
zookeeper driver.

To do it, this commit have to introduce a new method for package
installation: 'pip_install_gr_extras package extra1,extra2'.

Change-Id: Idca310c08e345db59840eb31434c6cb1f849fa70
2017-01-04 10:21:29 +01:00
Matt Riedemann 2a7e909b3f Explicitly set use_neutron=False in nova.conf when running nova-net
nova-network has been deprecated since Netwon and Nova change
I8388c29ad310cd8800084b4d5c026013158bfbed is switching the default
value of use_neutron to True, so we need devstack to explicitly
set use_neutron=False when running and configuring nova-network.

Part of blueprint use-neutron-by-default

Change-Id: I82721b5d10711401b9b0ebc2b0ed07cc8287bbf7
2017-01-03 21:11:55 -05:00
Jenkins 72bfe17b6a Merge "Warn instead of die on undefined config names" 2017-01-03 20:07:35 +00:00
Jenkins 721eb4fcdd Merge "Fix provider networking error message" 2017-01-03 20:06:37 +00:00
Jenkins 1926a0f868 Merge "Add placement services to default devstack" 2017-01-03 20:06:30 +00:00
Jenkins 90aad19e87 Merge "Switch to using openstack client for setting the router's gateway" 2017-01-03 19:53:50 +00:00
Jenkins fefd3e9c46 Merge "Make deprecated() output to stderr" 2017-01-03 19:53:44 +00:00
Jenkins de7b435b14 Merge "Load neutron-legacy only if enabled" 2017-01-03 19:53:37 +00:00
Jenkins 2dcc9d09a4 Merge "Updated from generate-devstack-plugins-list" 2017-01-03 19:43:00 +00:00
Davanum Srinivas 0c0d848b8c Add swift and uwsgi to py35 whitelist
Really close to getting swift and keystone under uwsgi working, so
let's white list them. Won't affect any existing jobs, so we should
be good.

Change-Id: I51d56d16a5b175bd45dee09edc0b2748d72a5d06
2017-01-03 08:52:28 -05:00
OpenStack Proposal Bot ee3383f719 Updated from generate-devstack-plugins-list
Change-Id: I8ea9f059757ef9b40dc38b93a9ae8072c5be9e4c
2017-01-03 07:02:56 +00:00
Jordan Pittier 42e73db840 lib/tempest: remove the allow_port_security_disabled option
Now that Liberty is EOLed, the feature flag is not needed anymore.

Change-Id: I5206535761773d4bcb02ebb8f25d1b0c1b59110c
Depends-On: If0b2168080a0b0ecdc6682ef69856a0879f4f6d3
2016-12-28 23:34:06 +01:00
Jordan Pittier 2bf5b416a7 lib/tempest: don't set cli_dir and dashboard_url config options
CLI tests have been removed from Tempest in
I4f8638f1c048bbdb598dd181f4af272ef9923806

Dashboard tests have been removed from Tempest in
I2a69ebed2947a5ab5e5ca79557130bd093e168dd

Change-Id: I6df74a07e209b07fd3feae762c9cdab16e09414f
2016-12-28 23:22:17 +01:00
Jordan Pittier 09cef5a233 lib/tempest: Liberty EOL: remove an useless feature flag
The snapshot_backup feature flag was introduced in
Ib695e60c2ed7edf30c8baef9e00f0307b1156551 to enable Tempest tests
introduced in I1964ce6e1298041f8238d76fa4b7029d2d23bbfb

But I1964ce6e1298041f8238d76fa4b7029d2d23bbfb was never merged so that
feature flag was never really useful.

Change-Id: I4e0bc786d2320907cb101fc788ad51444628537d
2016-12-28 23:03:28 +01:00
Davanum Srinivas afa8a00c14 Switch to python 3.5
Use trueorfalse to normalize the values for USE_PYTHON3

Install 3.5 instead of 3.4 When USE_PYTHON3 is specified.
Also, since not many packages are classified correctly, fallback
to looking for just "Programming Language :: Python :: 3" and
log a message for the package to highlight the problem.

Also special case some services that are *almost* ready

Depends-On: Id48e1b328230fcdf97ed1cb4b97f4c3f9cf6eb8a
Depends-On: Ib7d9aa0e0b74a936002e0eea0b3af05102b06a62
Change-Id: I243ea4b76f0d5ef57a03b5b0798a05468ee6de9b
2016-12-23 13:15:03 -05:00
Armando Migliaccio 36f81ff6d5 Switch to using openstack client for setting the router's gateway
Depends-on: Ifb5a4d1965cd7e75c0c8cf2cfb677e0628b699dc
Change-Id: Iba58f5275cacc7bc82fa2f2d2b96315c2350ab70
2016-12-23 11:30:24 +00:00
Jenkins 2989054992 Merge "Add new parameter RECREATE_KEYSTONE_DB" 2016-12-22 19:25:40 +00:00
Pawel Koniszewski 8a92b7f1de Add new configuration option for LM+grenade job
In order to test whether live migration is backward compatible
we need to live migrate VM back and forth between two versions
of nova. This configuration option will allow to reuse existing
tests just by adding if condition in a method that invokes live
migration and validates outcome:

* If set to False, it will use existing behaviour
* If set to True, it will live migrate VM, validate whether it
succeded, then live migrate the same VM once again and again
validate the result

Depends-On: Icaeca404ec3e4b8f3cd489789fdac6117740ec43
Change-Id: I8da2b3bd0c08d9a3111d3531c346d06bd52cae7b
2016-12-22 10:31:28 +00:00
Jenkins be7fae041f Merge "Placement service only using default HTTPd ports" 2016-12-22 10:08:53 +00:00
Jenkins e533eeee0f Merge "Updated from generate-devstack-plugins-list" 2016-12-21 18:17:00 +00:00
Jenkins 26ca2ed9a4 Merge "Don't buffer log output in sed" 2016-12-21 18:04:25 +00:00
Sylvain Bauza 70a6208464 Placement service only using default HTTPd ports
The placement API configuration was binding a specific port *and* was supporting
to be called by the default HTTPd ports using a Location directive.

Given that the corresponding service catalog entry for the placement service type
doesn't mention the specific application port but is rather using the default
port 80, we can remove that specific port and just use the default config.

Note that we still need to use a VirtualHost directive for the specific placement
config because ErrorLog is only scoped for either server or virtualhost but can't
be set for a Location (or a Directory) context.

Change-Id: I9a26dcff4b879cf9e82e43a3d1aca2e4fe6aa3e6
2016-12-21 15:33:52 +00:00
Pawel Koniszewski 20eb274b75 Move RABBIT_HOST to lib/rpc_backend
This moves setting of RABBIT_HOST from stack.sh to lib/rpc_backend
so it may be used in grenade runs, which don't have the defaulted
value from stack.sh. The RABBIT_HOST is needed in order to call
get_transport_url in lib/rpc_backend.

Change-Id: I504f7fac7bb9a8c158e20046dbd1dd2d507db02b
Closes-Bug: #1649586
Depends-On: I3d4d7b309e50f4e2970cda55aada02d68c4fa705
2016-12-21 12:39:54 +00:00
Jenkins 72af0d1cab Merge "Postgres: fix detection of existing roles" 2016-12-21 11:22:15 +00:00
Zane Bitter 95ed7c6f05 Don't buffer log output in sed
Services that run inside Apache use tail -f on the corresponding log
file to display output in the screen session. However, they also use sed
to replace some control characters, and this means that the output is
buffered. This results in debugging experiences that range from
"impossible" (the log you want isn't shown) to "Kafkaesque nightmare"
(the log you want isn't shown, except that sometimes it is, and
sometimes it isn't even though you double-checked and you're completely
sure that you must have output a log, but when you check back later you
realise it actually is and you wonder if history is actually not mutable
after all and begin to question what is real and what is not).

This adds the --unbuffered option to ensure streaming output.

Change-Id: I665ff5f047156401d8152f478d834ac40ff31658
2016-12-20 20:29:06 -05:00
OpenStack Proposal Bot 7cdefd4e08 Updated from generate-devstack-plugins-list
Change-Id: Ica922f54ffd53e81b3ec034c2ce9b91715304954
2016-12-20 07:02:50 +00:00
Jenkins 894cbd6545 Merge "Use java version independent package on Ubuntu" 2016-12-20 00:59:56 +00:00
Sylvain Bauza 91070d7e40 Add placement services to default devstack
Now that the placement service is mandatory for running Nova in Ocata,
we want to enable it by default when running devstack by default.

In the past, we added a placement-client service with
I04a655fbc58913b3d607400a7f677be299499142

Devstack-gate will also be able to run a multinode devstack with the
help of Ibd760c642e3c1ffff2dd61be48e30530b0d24720

Change-Id: I273c3c8299ee329bed425f3e7cd4b583ed1187a4
2016-12-19 17:19:26 +00:00
Jenkins b6a7461a83 Merge "Always add the service role to service users" 2016-12-19 15:25:06 +00:00
Ihar Hrachyshka 3f771b7bcb iptables: don't enable arptables firewall
Neutron doesn't use any arptables based firewall rules. This should
somewhat optimize kernel packet processing performance.

I think the setting came from:
http://wiki.libvirt.org/page/Net.bridge.bridge-nf-call_and_sysctl.conf

but does not apply to the way we use iptables.

Change-Id: I41796c76172f5243e4f9c4902363abb1f19d0d12
Closes-Bug: #1651765
2016-12-17 04:14:42 +00:00
Julia Varlamova ea3e87d4e5 Add new parameter RECREATE_KEYSTONE_DB
If 'RECREATE_KEYSTONE_DB=False' database won't be recreated.
It would be useful for multinode Grenade tests for Keystone. This parameter
will help us to deploy multiple services on different machines talking to
the same DB.

Devstack recreates Keystone DB each time during Keystone service installation.
If our controller node is already deployed, Keystone DB already contains
important information about OpenStack services and their endpoints. When
the second Keystone node is being deployed, we don't want to delete
records about controllers' services endpoints.

Partially-Implements: bp rolling-upgrade-testing

Change-Id: Ia8d07b4295ca165be01e44466c95d5275f596e83
2016-12-16 14:41:55 +04:00
Sean Dague 51a225c5d7 Create mechanism for enabling placement-client on subnodes
When doing multinode devstack we need a way to specify that we've
enabled for the placement service. We use a pseudo service of
placement-client for this.

Change-Id: I04a655fbc58913b3d607400a7f677be299499142
2016-12-15 16:32:08 -05:00
Eric Berglund 8e14240d23 Confirm network is created before setting public_network_id
The current code assumes that there exists a public openstack network
and uses that assumption to set the public_network_id variable in
tempest lib. If NEUTRON_CREATE_INITIAL_NETWORKS is set to false this
step will fail as there is no public network to be found. This change
adds a check for NEUTRON_CREATE_INITIAL_NETWORKS before attempting to
set this variable.

Change-Id: I62e74d350d6533fa842d64c15b01b1a3d42c71c2
Closes-Bug: #1645900
2016-12-15 20:41:32 +00:00
Clark Boylan a09cb5acf9 Use java version independent package on Ubuntu
Different versions of Ubuntu ship with different versions of Java.
Trusty had 7, Xenial has 8, and so on. This causes problems when we
hardcode a versioned package name into our dep lists as that version may
not exist everywhere. Thankfully Ubuntu provides a default-jre-headless
package that we can use instead that maps properly onto whatever java
version is correct.

Change-Id: I4e5da215c8f7aa426494686d5043995ce5d3c3af
2016-12-15 08:48:02 -08:00
Sean M. Collins edcb7e5bb3 lib/neutron: Fix some settings
* Set ml2_type_flat setting so that the public flat network is created
correctly

* Set securitygroup driver correctly

It should be set as:

[securitygroup]
firewall_driver = iptables

Change-Id: I7369b45fbc5a47ce958693c67a1902a8cb24f367
2016-12-15 11:33:05 -05:00
Jamie Lennox 7f68548538 Always add the service role to service users
When creating a service user we allow the user to be created with a
different role. Currently in auth_token middleware we want to check that
the service token is specified with the service role so we should always
add the service role and optionally add additional roles.

Change-Id: Ie954a679674b4795079b539ebc8d4d2dcbd7dacc
2016-12-13 15:47:11 +11:00
Jenkins c95ca63ae3 Merge "Update openvswitch restart for suse" 2016-12-12 16:09:14 +00:00
Sean Dague 22b63666de Warn instead of die on undefined config names
When using local.conf in multinode envs not everything is going to be
defined in all places. Eventually we probably want to make it so we
have a host role for these sections or something. But for now warn
instead of die when we can't find a config var.

Change-Id: I6959099373f035fbfe9e540a44e4c52b8e7c95c0
Closes-Bug: #2000824
2016-12-12 09:55:32 -05:00
Roman Podoliaka f575aefdfa lib/nova: create api db first
Since I21ae13a6c029e8ac89484faa212434911160fd51 nova-manage db sync
may try to make a request to api db in order to get cell mapping and
will fail, as the db is not created yet. While this is non fatal, we
could avoid the error anyway.

Change-Id: I19483e9420071d484f029779bcc8c6d623c210ce
Related-Bug: #1631033
2016-12-12 10:37:54 +00:00
Jenkins 97b07a880f Merge "Updated from generate-devstack-plugins-list" 2016-12-12 00:55:21 +00:00
Jenkins a2f7c21407 Merge "[opensuse] add python-xml to general deps list" 2016-12-12 00:55:07 +00:00
Jenkins 684946119d Merge "Try to set initial mysql root password also on Ubuntu" 2016-12-11 15:50:21 +00:00
Jenkins ed3893760a Merge "Fix doc formating" 2016-12-11 15:48:57 +00:00
OpenStack Proposal Bot 16fb9bddf2 Updated from generate-devstack-plugins-list
Change-Id: Ia08c86b2adff782b42a83509359c38d7d531e481
2016-12-09 06:53:39 +00:00
Dirk Mueller ea774b684d [opensuse] add python-xml to general deps list
the python-xml is a subpackage from the standard cpython package that
that contains elementtree and other bits that are needed almost
everywhere in OpenStack but isn't installed on a absolutely minimal
openSUSE Leap installation. This package doesn't exist on pip but
is a SUSE only invention, so just treat it similar to a bindep.

Change-Id: I82887c2e6895740d1b16d1269574519450ca783e
2016-12-09 07:23:33 +01:00
Dirk Mueller 30b58bfa27 Update openvswitch restart for suse
Starting with SLE12 SP2 and with openSUSE Leap the distro-shipped
openvswitch is the normal systemd openvswitch.service service file
and no longer the older openvswitch-switch Sysv5 init script. Add
a special case for that.

Change-Id: I5152f2585c3d4d18853988d6290039d6b1713b99
2016-12-09 01:00:42 +01:00
OpenStack Proposal Bot 8040232e05 Updated from generate-devstack-plugins-list
Change-Id: I857aea09db183a03393acdaa9bfcde8f24cec4f8
2016-12-08 06:54:23 +00:00
ghanshyam 470580bba6 Remove baremetal tempest config setting from devstack
Now all configuration are present in Ironic tempest plugin
and those are going to be removed from tempest in
Id518a6d87d0949737cd1c50cb6a83149b85e5f85

Patch- I73c649625d106fc7f068e12e21eaacba8f43cbbb set
those in ironic devstack plugin.

We can remove all baremetal config setting from devstack.

Along with moved one this patch deletes other unused baremetal
config setting.

Change-Id: If826321ebc0c20ea372d206d49383f3826c9b547
Depends-On: Id518a6d87d0949737cd1c50cb6a83149b85e5f85
Depends-On: I73c649625d106fc7f068e12e21eaacba8f43cbbb
2016-12-08 13:15:19 +09:00
Jens Rosenboom 9abb26d696 Try to set initial mysql root password also on Ubuntu
On Ubuntu nodes, devstack tries to predefine the initial mysql root
password by doing some debconf-set-selections, but these will not take
effect if the corresponding package has been installed earlier. So
just try to set it every time, like we do on other distros.

Change-Id: I2c167051fc5e53dd0ccf82a60ab085cd9cdea28d
2016-12-07 21:12:55 +01:00
Jenkins 77a7296248 Merge "Remove heat code from devstack tree" 2016-12-06 13:36:52 +00:00
Vasyl Saienko 8e0fc9dc8e Fix doc formating
Fix formating issue in the doc/source/plugin.rst

Trivial fix.

Change-Id: Ifc9a43aebdab0c15c83485cf0b6d4133d7194a9d
2016-12-06 09:35:16 +02:00
Jenkins 2f1da40b0c Merge "Missing parameter in comment" 2016-12-06 01:52:48 +00:00
Jenkins 172b043d68 Merge "Fix devstack with linuxbridge without l3 agent" 2016-12-05 18:58:25 +00:00
Jenkins d0df7c88f2 Merge "Fix libguestfs on Ubuntu" 2016-12-05 17:34:29 +00:00
Sean Dague 6d66e647ca don't setup cells if n-cpu isn't also running
create_cell requires n-api and at least one n-cpu up and running. If
we have a configuration where it is not guarunteed that there is an
n-cpu at the end of a devstack run we have to skip this step and make
the user run it manually later.

Change-Id: I2287ab29f3c1a7252271dcce81673ef365615296
2016-12-05 06:28:26 -05:00
Anton Merzlyakov ae61e6f3d2 Postgres: fix detection of existing roles
Role "root" it is hardcode.
In general case role name comes from  local.conf: string  "DATABASE_USER="

Change-Id: Iedfca48e04d23c313851f48d68ac40ba29340805
2016-12-05 11:10:11 +03:00
jeckxie 8a834940b8 Missing parameter in comment
Change-Id: Iba55013b3be00974321ad58a276bb37ff2cac4da
2016-12-05 15:32:25 +08:00
OpenStack Proposal Bot 6b8a115b95 Updated from generate-devstack-plugins-list
Change-Id: I21c31b0778486971719f1281428c7a089f583656
2016-12-03 06:56:32 +00:00
Jenkins 3d5a909018 Merge "Always setup cells v2" 2016-12-02 18:14:39 +00:00
Jenkins ee548bc2bf Merge "Add keystone VirtualHost for port 443 when USE_SSL is True" 2016-12-02 15:27:47 +00:00
Armando Migliaccio 1c08b191fd Fix devstack with linuxbridge without l3 agent
The linuxbridge agent for Neutron expects that the public bridge will
already be created by the time it starts. On devstack, this only occurs
as part of the l3 agent configuration. If a compute node doesn't have an
l3 agent and is using a linuxbridge agent, then br-ex won't be created
and the process will not be able to start (causing stack.sh to fail).

This causes the gate-grenade-dsvm-neutron-linuxbridge-multinode-nv gate
to fail. To avoid the issue, skip the bridge mappings setup unless L3 is
configured. This is done in a backward compatible fashion: if localrc
uses the old q-l3 tags, the is_service_enabled neutron-l3 would not be
able to succeed.

Closes-Bug: #1643562

Change-Id: I292ff0dc080fb84b5f879ba2f00f03eff295b55b
2016-12-02 02:21:42 +00:00
Jenkins c18b804b16 Merge "Add test-config local.conf processing" 2016-12-01 20:31:01 +00:00
Andrea Frittoli 1c442eebc8 Fix libguestfs on Ubuntu
libguestfs does not work on ubuntu because the kernel is not
world readable. This breaks file injection with libvirt.
See https://bugs.launchpad.net/ubuntu/+source/linux/+bug/759725
for more details.

The workaround proposed by Ubuntu is to relax the kernel ACL
if needed, so we need to do that in case file injection is
enabled on an Ubuntu host running libvirt.

Partial-bug: #1646002
Change-Id: I405793b9e145308e51a08710d8e5df720aec6fde
2016-12-01 17:00:41 +00:00
Jenkins 38fb14591a Merge "Revert "Set cinder coordination backend url"" 2016-12-01 16:16:54 +00:00
Sean Dague 8bf8c8f381 Add test-config local.conf processing
We need a local.conf processing phase after every run phase which lets
us override config options after that point. We didn't explicitly
support this for test-config before, which broke some CI systems when
we moved tempest to use this later phase.

Closes-Bug: #1646391

Change-Id: I7d693afa19acf3e8231e84e45b7a868628ebdbc0
2016-12-01 10:25:51 -05:00
YAMAMOTO Takashi eede9ddb1d Deprecate Q_PLUGIN_EXTRA_CONF_PATH
This single global variable is no longer useful as we have multiple
repositories and devstack plugins nowadays.

Also, add a utility function, neutron_server_config_add, for devstack
plugins to add an extra config file.

Related-Bug: #1599936
Change-Id: I90112823ef96ae2fba97d7b09b00bec8cb816d8d
2016-12-01 22:31:24 +09:00
YAMAMOTO Takashi 8b1bbd690c Make deprecated() output to stderr
So that it can be used by functions like _determine_config_server,
which is used like RESULT=$(_determine_config_server).

Change-Id: Ia4e641c5529b95ada30ae662221f370bc7fa88a7
2016-12-01 22:31:21 +09:00
YAMAMOTO Takashi c74315e055 Load neutron-legacy only if enabled
To avoid using legacy functions accidentially.

Depends-On: Ida1f83b6b3ef9b76be13c063c7e35a8703214078
Change-Id: I3ff136fc8330c92007cdfe91b77d7f9865eabd8d
2016-12-01 20:33:32 +09:00
Ghanshyam Mann 50ce0a8032 Revert "Set cinder coordination backend url"
gate-tempest-dsvm-layer4 job is failing due to this change as no module found on zake[1]. Heat not able to create cinder stack.
This is blocking tempest now so we will revert revert this once find the real cause.

This reverts commit a283526c88.

..1 http://logs.openstack.org/64/405064/2/check/gate-tempest-dsvm-layer4/feb21fe/logs/screen-c-vol.txt.gz#_2016-12-01_05_43_40_369

Change-Id: I50981db7760688a25a2bf4de9a41153ede76f4aa
2016-12-01 08:45:43 +00:00
Sean M. Collins 1d83a08a38 lib/neutron: Remove type_driver configuration
Instead, rely on what Neutron ships by default.

Change-Id: I8bdc646d24b3edf10f421e4472a790caeb8e4887
2016-12-01 01:32:26 -05:00
Jenkins 77428fb7c2 Merge "Stop q-domua process when XenServer is used" 2016-12-01 05:17:32 +00:00
Huan Xie df875c5f16 Reconfig ml2 ovs configuration for neutron on XenServer
XenServer already support OVS native mode and I have a patch for
configuring it https://review.openstack.org/#/c/372952/ which
is fine. But we have another patch which revert the usage of
ml2_confi.ini and ml2_conf.ini.domU
https://review.openstack.org/#/c/396573/. Both patches work well
separately. But the two should have some dependent relationship.
Once one merged, the other should change accordingly. Sorry that
we missed the dependency.
This patch is to fix the ovs config based on reverted ml2_conf.ini
and ml2_conf.ini.domU to make sure we configure the correct IP for
ovs agent

Change-Id: Ib53e37e210cc849f161dd6630f81e5b2331a91d5
2016-11-30 19:47:24 -08:00
Jenkins 0474b8384a Merge "Move default Keystone API version to v3" 2016-12-01 01:28:29 +00:00
Jenkins 60f97c8b9b Merge "Make neutron ml2 use ovs native interface" 2016-12-01 00:11:04 +00:00
Jenkins fddff69efd Merge "ceph: set rbd_secret_uuid in cinder.conf, not rbd_uuid" 2016-11-30 22:57:42 +00:00
Jenkins df51567525 Merge "Provide configuration file to ovs-cleanup utility" 2016-11-30 21:31:43 +00:00
Jenkins a5bd682d47 Merge "remove listen directive bound to only ipv4" 2016-11-30 21:22:11 +00:00
Jenkins 8b052a6d5a Merge "XenAPI: correct the ml2 configuration for neutron" 2016-11-30 20:58:42 +00:00
Sean M. Collins 50bf4fc075 lib/neutron-legacy - Use stevedore alias for ML2 plugin
Similar to 30ab23cd9b, fix the
plugin name to avoid warnings like:

WARNING stevedore.named [-] Could not load neutron.plugins.ml2.plugin.Ml2Plugin

Change-Id: Ibb45f1305816b255ba2419ba662d9e29eff68f58
2016-11-30 14:27:36 -05:00
Huan Xie 2864150940 Make neutron ml2 use ovs native interface
Neutron has changed to use ovs native interface by default, but when
the hypervisor is XenServer, we cannot use ovs native interface without
extra configurations in neutron-openvswitch-agent(q-agt) in compute
node.

This patch is to add the needed configurations automatically during
deployment, so user needn't to do it manually and restart q-agt.

Change-Id: Ibc69d3cdb4d75833f2ac16840c62bcacf460dd4f
2016-11-30 17:19:36 +00:00
Jenkins b9f697719b Merge "XenAPI: Enable linux bridge in Dom0 for neturon" 2016-11-30 16:31:36 +00:00
Jenkins 1f739c867a Merge "worlddump: Add cinder-volume guru meditation report" 2016-11-30 16:31:25 +00:00
Jenkins 1d8ddba7f8 Merge "Objects versions new style config" 2016-11-30 16:31:18 +00:00
Jenkins 36ea69272d Merge "Remove the heat stack owner role" 2016-11-30 16:31:11 +00:00
Jenkins b719b55b1d Merge "Ensure testing configuration can run as late as possible" 2016-11-30 16:30:38 +00:00
Jenkins 98f2cafe8b Merge "Set cinder coordination backend url" 2016-11-30 16:30:23 +00:00
Jenkins 6c80f2a485 Merge "Remove check for nova-volumes API" 2016-11-30 16:30:16 +00:00
Jenkins a030696f6c Merge "Revert "Fix devstack with linuxbridge without l3 agent"" 2016-11-30 14:34:29 +00:00
Jenkins 9a69a1abfc Merge "If plugin is enabled multiple times fail" 2016-11-29 23:45:09 +00:00
Armando Migliaccio 6653d74fc4 Revert "Fix devstack with linuxbridge without l3 agent"
I am seeing red all over the linuxbridge gate.

This reverts commit 7f95baa570.

Change-Id: I179f761f991db4b63c0e3445a9a13e43ffe68992
2016-11-29 23:30:18 +00:00
Jenkins 3dd0b2b772 Merge "Tune apache connections for tls proxy" 2016-11-29 22:27:44 +00:00
Jenkins ba87fe6ff9 Merge "Fix devstack with linuxbridge without l3 agent" 2016-11-29 19:21:00 +00:00
Clark Boylan cfb9f057ea Tune apache connections for tls proxy
We are seeing connection errors to the proxy occasionally. These errors
do not result in a logged http request or error to the backends,
resulting in a theory that the proxy itself may just not be able to
handle the number of connections. More than double the total number of
connections that will be accepted by the proxy in an attempt to fix
this.

Change-Id: Iefa6c43451dd1f95927528d2ce0003c84248847f
Related-bug: 1630664
2016-11-29 10:43:05 -08:00
Jenkins 84fb773178 Merge "Changed the order of steps in the devstack install document" 2016-11-29 14:41:34 +00:00
Gary Kotton 2a5981402f Provide configuration file to ovs-cleanup utility
There may be cases when the configuration of the OVS is different
from the default one. This enables one to make use of the neutron
configuration file to contain all of the OVS settings.

Change-Id: I728cf8cdc653667c076b07b39c13c1278281c01b
Closes-bug: #1645691
2016-11-29 03:48:34 -08:00
Jenkins 25dd43b881 Merge "Remove all *.pyc files in $DEST when executing clean.sh" 2016-11-28 23:45:16 +00:00
Jenkins 42a21ec58d Merge "Neutron: use "OSC show -f value -c id" instead of "OSC list + grep"" 2016-11-28 23:45:09 +00:00
Jenkins e1b75c3636 Merge "lib/tempest: use OSC to create nova flavors." 2016-11-28 23:43:56 +00:00
Jenkins a8f57af273 Merge "Remove Horizon setup scripts usage of run_tests.sh" 2016-11-28 23:43:49 +00:00
Jenkins cacf65fbca Merge "meta-config: Fix consecutive same sections" 2016-11-28 23:43:11 +00:00
Jenkins daa88ad493 Merge "lib/neutron: Add a utility method to add service plugin" 2016-11-28 20:40:13 +00:00
Jenkins 0c51d06f75 Merge "Swift: fix rsyncd.conf, ports were incorrect" 2016-11-28 19:32:58 +00:00
Jenkins 5fe43995c7 Merge "(doc) Fixed references to FIXED_RANGE_V6" 2016-11-28 19:32:44 +00:00
Jenkins e8c9e72389 Merge "lib/lvm: don't use $VOLUME_GROUP variable anymore" 2016-11-28 19:30:45 +00:00
Sharat Sharma 89a855f784 Changed the order of steps in the devstack install document
The order of the steps were a bit confusing for the first timers
in the devstack document. So, changed the order of installation
steps to make it clear.

Change-Id: Ifaa051887dab95719b9ca5d1b2fbe2f5f549d269
Closes-Bug: #1627939
2016-11-28 16:33:48 +00:00
YAMAMOTO Takashi d9ec42028d lib/neutron: Add a utility method to add service plugin
Partial-Bug: #1604664
Change-Id: I6d49ac188f7f1cfc8da314a26c9c5fc4b6d65bf4
2016-11-28 16:10:27 +00:00
Jenkins c0ef1bd05b Merge "lib/neutron: Create initial topology only on controller node" 2016-11-28 10:41:09 +00:00
Jenkins 68def125e9 Merge "stackrc: update code comment now that Neutron is enabled by default" 2016-11-28 10:28:55 +00:00
Jenkins f5e78b6fb6 Merge "Allow provider network to be used for ssh validation" 2016-11-28 10:28:47 +00:00
Jenkins e8f90d1e5b Merge "Specify the correct image parameters for XenServer" 2016-11-28 10:28:41 +00:00
Jenkins 4d61ed5c77 Merge "Pass branch parameter to git clone" 2016-11-28 10:06:24 +00:00
Jenkins 9c5b3b110a Merge "Add Fedora 25 support" 2016-11-27 23:48:03 +00:00
Jenkins 679cae4ecf Merge "Apache reload issue when it is stopped" 2016-11-27 23:25:10 +00:00
Jenkins e53310532f Merge "Always set ALLOWED_HOSTS=['*'] for horizon" 2016-11-27 12:35:01 +00:00
YAMAMOTO Takashi 02f3f9a6bb meta-config: Fix consecutive same sections
The current coding fails to process local.conf like
the following.  Note: This example is taken from a
real use case. [1]

    [[post-config|$NEUTRON_CONF]]
    [qos]
    notification_drivers = midonet
    [[post-config|$NEUTRON_CONF]]

    [quotas]
    # x10 of default quotas (at the time of writing)
    quota_network=100
    quota_subnet=100
    quota_port=500
    quota_router=100
    quota_floatingip=500
    quota_security_group=100
    quota_security_group_rule=1000

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

Closes-Bug: #1583214
Change-Id: Ie571b5fa5a33d9ed09f30ba7c7724b958ce17616
2016-11-26 00:49:55 +09:00
Rob Cresswell f0252a9d81 Remove Horizon setup scripts usage of run_tests.sh
Horizon is removing run_tests in favour of tox during Ocata, as part of
https://blueprints.launchpad.net/horizon/+spec/enhance-tox. To complete
this move, we need to remove any reliance on run_tests.

Change-Id: Ia8ad073aee68d1660d3bb5a68ec07516d8ce0665
2016-11-25 11:32:04 +00:00
Peter Stachowski 0dab8d63b3 (doc) Fixed references to FIXED_RANGE_V6
In the 'Private Network Addressing' section of the doc,
there are references to FIXED_RANGE when referring to V6
networks.  These have been changed to FIXED_RANGE_V6.

Also fixed a few typos and grammatical errors when
giving the doc a quick read-through looking for more
references to FIXED_RANGE.

Change-Id: Iaa530c476ce2b36a3f616945ddd2e24fa599a16c
2016-11-24 22:10:54 +00:00
Tomasz Trębski 868a663172 Always set ALLOWED_HOSTS=['*'] for horizon
If devstack is deployed in the VM with defined
public IP address (like 192.168.10.6) it is not possible to
access the Horizon from the browser.
This is because DEBUG=True means that ALLOWED_HOSTS, if not set,
is equal to ['localhost', '127.0.0.1', '[::1]'] according
to Django's documentation.

Change-Id: I0ab2b57e459dbfa3b01b3e9388bbcefac076a142
Co-Authored-By: David Lyle <dklyle0@gmail.com>
Closes-Bug: #1643050
2016-11-23 15:32:29 +00:00
Dan Kolb 5c4691af3e remove listen directive bound to only ipv4
Using devstack on a  RHEL based system results in
"Listen 0.0.0.0:80" being added to the
/etc/httpd/conf/httpd.conf.
This configures Apache to only listen to port 80 on an IPv4 interface.
This makes it not possible to access Horizon via IPv6 without
re-configuring and restarting httpd.

Removing this sed leaves the default "Listen 80" from the rpm package,
 which binds to all interfaces and will allow connection to Horizon
via IPv6.

Change-Id: I9fe8cbebff0ca6a30ceeaae0f7e035c9bb828d44
2016-11-23 09:26:15 -06:00
Jordan Pittier 2037166464 stackrc: update code comment now that Neutron is enabled by default
No need to explain how to enable Neutron now that it's enabled by
default. Keep but reformat the 'how to enable swift' part though.

Change-Id: I3f9b7796fad10abf1039e4c68eb2cd5ef6cdbc99
2016-11-23 15:51:10 +01:00
Attila Fazekas bcaadd63d8 Apache reload issue when it is stopped
Since 4b49e409f8 devstack
started to use reload instead of restart.

Using reload in devstack for a fresh install,
does not makes too much sense unless multiple service
plugin touches the same service configs.

Systemd rejects to reload something,
which was not loaded before.

 $ sudo /bin/systemctl reload httpd
 httpd.service is not active, cannot reload.

We will switch to `reload-or-restart` action instead of `reload`,
it is more likely the action what the previous patch wanted.

Change-Id: I70d597fbe4a8923d937ba8432e29edefb27d1058
2016-11-23 13:20:33 +01:00
Attila Fazekas 471855ecd1 Add Fedora 25 support
Fedora 25 released,
adding the required knobs.

Change-Id: I8ce86aa9f23e9572d69eadcfc81af2e96d5be64f
2016-11-23 12:24:52 +01:00
John Schwarz 7f95baa570 Fix devstack with linuxbridge without l3 agent
The linuxbridge agent for Neutron expects that the public bridge will
already be created by the time it starts. On devstack, this only occurs
as part of the l3 agent configuration. If a compute node doesn't have an
l3 agent and is using a linuxbridge agent, then br-ex won't be created
and the process will not be able to start (causing stack.sh to fail).

This causes the gate-grenade-dsvm-neutron-linuxbridge-multinode-nv gate
to fail.

Closes-Bug: #1643562
Change-Id: I6f441c6febb5070ad885569d9c798634d0272b6c
2016-11-23 12:27:10 +02:00
Jenkins a3bb131c13 Merge "Remove unused KEYSTONE_CATALOG_BACKEND" 2016-11-23 02:16:07 +00:00
Jenkins 9513f8ea39 Merge "Change CINDER_LVM_TYPE back to 'default' as the default" 2016-11-22 13:24:02 +00:00
Jenkins cc24f4a6f1 Merge "Revert "Always set ALLOWED_HOSTS for horizon"" 2016-11-22 12:18:40 +00:00
Jenkins 6771207a70 Merge "Improve Live Migration section in multinode-lab.rst" 2016-11-22 08:38:46 +00:00
Matt Riedemann b6cbf922d7 Change CINDER_LVM_TYPE back to 'default' as the default
Change dddb2c7b5f recently
changed devstack to enable the Cinder image cache by default
and changed to use thinly provisioned LVM volumes by default.

Since then we've had a spike in thin LVM snapshot test failures
in the gate, which is by far our top gate bug at 219 hits in the
last 10 days.

So unless there is a fix on the Cinder side, this changes the
default lvm_type back to 'default' for thick provisioning.

Change-Id: I1c53bbe40177fe104ed0a222124bbc45c553b817
Related-Bug: #1642111
2016-11-21 21:10:49 -05:00
David Lyle 2ccd120342 Revert "Always set ALLOWED_HOSTS for horizon"
This reverts commit 37f48f3c20.

Change-Id: I8c853c35c5b0b61925c27b461ad625266381f73b
2016-11-21 22:16:17 +00:00
Kaitlin Farr a5b72b053e Set fixed-key key manager
With the key manager refactoring in nova and cinder, the key manager
class will need to be explicitly set.

Nova key manager refactoring: Ib563b0ea4b8b4bc1833bf52bf49a68546c384996
Cinder key manager refactoring: Ief8885bb4ca8d62b03cf1a52c25dd0e62c835bfe

Change-Id: I733279864ee1a4aaffc9c8eed81b5e12f8d8821b
Implements: blueprint use-castellan-key-manager
2016-11-21 13:50:57 -05:00
Hidekazu Nakamura 541617b15e Improve Live Migration section in multinode-lab.rst
Added root user login check to ensure SSH keys exchanged.


Change-Id: I8513bc883ac273af8dcc2f61562a838d33b45a82
2016-11-21 15:42:14 +00:00
Jordan Pittier 82fa946d8f lib/tempest: use OSC to create nova flavors.
OSC is the future and it's available now.

Change-Id: Ib0dac761673a0c4f05a328ee530018e8bb269c4c
2016-11-21 10:35:02 +00:00
Jakub Wachowski 90742fc1be Pass branch parameter to git clone
Without this parameter, when we set GIT_DEPTH,
it may happen that we clone only master and
then cannot checkout branch

Change-Id: I39376914f8bfc286a308c99db6bc92cddab195b5
2016-11-21 07:42:50 +00:00
Jenkins 5dbb826a54 Merge "Use -y on zypper remove to avoid hanging" 2016-11-20 23:52:33 +00:00
Jenkins ab797201e8 Merge "Allow running nova compute with docker group" 2016-11-20 10:39:25 +00:00
Jenkins 2f99e882ce Merge "Always set ALLOWED_HOSTS for horizon" 2016-11-20 10:36:07 +00:00
Clark Boylan a5afa7d81a Fix default ipv6 fixed range var
The intent was to make any ipv6 safe addr range bigger than a /64 a /64
when setting the fixed range. Unfortunately the awk only emited the mask
and not the addr. Fix this by sprinkling the address back in.

Fixes-Bug: 1643055
Change-Id: I526d4c748fd404ecb3c77afcbb056aa95090c409
2016-11-18 12:35:50 -08:00
Jenkins a79aa4783b Merge "Derive IP ranges from new ADDRS_SAFE_TO_USE vars" 2016-11-18 18:01:22 +00:00
Jordan Pittier d038b60e65 Neutron: use "OSC show -f value -c id" instead of "OSC list + grep"
We should leverage server-side filtering.

Change-Id: I3deef791868769b0b7cfc405d73dff57458ca427
2016-11-18 12:18:09 +01:00
Tomasz Trębski 37f48f3c20 Always set ALLOWED_HOSTS for horizon
If devstack is deployed in the VM with defined
public IP address (like 192.168.10.6) it is not possible to
access the Horizon from the browser.
This is because DEBUG=True means that ALLOWED_HOSTS, if not set,
is equal to ['localhost', '127.0.0.1', '[::1]'] according
to Django's documentation.

Change-Id: I74ae99569dafa10eee7066713a05fb49183e3fca
2016-11-18 04:54:38 +00:00
Jenkins 1493bdeba2 Merge "Stop setting route pointing back to tenant router" 2016-11-18 01:50:50 +00:00
Jenkins 3c251b8023 Merge "Move certificate setup earlier in deployment" 2016-11-17 20:48:09 +00:00
Michael Turek 7938d83d3b Allow provider network to be used for ssh validation
Currently devstack assumes that the network used for ssh
validation is the private network. This patch adds a hook that
sets the network used for ssh validation based on whether or not
provider networking is being used. It also moves the function
'is_provider_network' into functions-common as it will now be
used by both tempest and neutron.

Change-Id: I265c9e26c9bfb18b7e201f27d8912b8bec235872
2016-11-17 13:40:01 -05:00
Jordan Pittier f5069f35a1 lib/lvm: don't use $VOLUME_GROUP variable anymore
We should be using $VOLUME_GROUP_NAME instead since Icehouse.
$VOLUME_GROUP_NAME has been introduced in
I93b8ef32832269d730c76a6dc24ddb4f20c6d9df and $VOLUME_GROUP is nowadays
only use as a fallback to $VOLUME_GROUP_NAME.

As a code comment in lib/lvm says it we kept the $VOLUME_GROUP around as
"for compatibility with icehouse-generation Grenade". Icehouse is long
gone so now seems a good time to remove any usage of $VOLUME_GROUP.

Change-Id: Id3051b5a196c45266c39fde4f08401aaacf0f6bd
2016-11-17 17:05:49 +00:00
Gary W. Smith 56b3912685 Use -y on zypper remove to avoid hanging
When using zypper remove, include the -y option to avoid stack.sh from
hanging waiting for user confirmation.  Due to output buffering, the
script could hang before giving the user the prompt to enter Y to
continue, making it unclear why the script was hanging.

Change-Id: I5ea761e5ae0829439953c385f8e7d0546acba886
Closes-Bug: 1642736
2016-11-16 22:10:37 -08:00
Jordan Pittier ea1abcde18 Swift: fix rsyncd.conf, ports were incorrect
Swift port base was changed in Ifd95b99004aead5ddc8ae1a8dd3ccd9c4f2abe91
but we forgot to update the rsyncd.conf. This patch update the rsyncd.conf
file.

Change-Id: Id457c047c672a810c4c0c7721b6beeb01b719879
2016-11-16 18:47:44 +01:00
John L. Villalovos 21d84c29b2 If plugin is enabled multiple times fail
When using the enable_plugin command and grenade jobs it can be
easy to enable the same plugin twice, as the grenade job has a
registration section and the configuration in project-config can also
enable it due to code-reuse in project-config.

If a plugin is enabled twice it will likely fail, though it won't be
obvious that it was due to the plugin being enabled multiple times.

This change makes it so if it sees the same plugin name is enabled
more than once it will die and an error message outputted.

Change-Id: I9f1d7e58b861b04473b6a57c9ad404203fb7277a
2016-11-16 08:55:40 -08:00
Kevin Benton 4bfbc291ee Derive IP ranges from new ADDRS_SAFE_TO_USE vars
The switch to using subnetpools caused quite a bit of confusion
because it didn't respect the value of FIXED_RANGE. This caused
conflicts in the gate with it's default IPv4 value of 10.0.0.0/8.

This patch does a few things to address the issue:
* It introduces the IPV4_ADDRS_SAFE_TO_USE and IPV6_ADDRS_SAFE_TO_USE
  values and adjusts all of the FIXED_RANGE and SUBNETPOOL_PREFIX values
  to dervive from them by default.
  * This addresses the concern that was raised about implying that
    SUBNETPOOL_PREFIX and FIXED_RANGE are equivalent when setting
    SUBNETPOOL_PREFIX=FIXED_RANGE by default. Now we have a new value
    for the operator specify a chunk of addresses that are safe to
    use for private networks without implementation implications.
  * Backwards compatibility is maintained by alloing users to override
    override all of these values.
* The default for IPV4_ADDRS_SAFE_TO_USE uses /22 instead of /24
  * Because we want to be able to use subnetpools for auto allocated
    topologies and we want to be able to have a large chunk of
    instances on each network, we needed a little more breathing room
    in the default v4 network size.
* SUBNET_POOL_SIZE_V4 default is changed from 24 to 26
  * In conjuction with this change and the one above, the default
    subnetpool will support up to 16 64-address allocations.
  * This should be enough to cover any regular gate scenarios.
  * If someone wants a bigger/smaller subnet, they can ask for that
    in the API request, change this value themselves, or use a different
    network entirely.
* FIXED_RANGE_V6 defaults to a max prefix of /64 from IPV6_ADDRS_SAFE_TO_USE
  * This avoids the private subnet in the non-subnetpool case from being
    larger than /64 to avoid issues identified in rfc 7421.
  * Users can still explicitly set this value to whatever they want.
    This 'max' behavior is only for the default.
  * This allows IPV6_ADDRS_SAFE_TO_USE to default to a /56, which leaves
    tons of room for v6 subnetpools.

Closes-Bug: #1629133
Change-Id: I7b32804d47bec743c0b13e434e6a7958728896ea
2016-11-16 05:26:03 +00:00
Kevin Benton df5e69114f Stop setting route pointing back to tenant router
This removes the logic to add a route pointing to the IPv4
tenant private network range since the router is performing
SNAT. If reaching the IPs via the route worked at all, it was
by accident since this behavior is certainly not guaranteed
by Neutron.

Change-Id: If45e3fc15c050cfbac11b57c1eaf137dd7ed816f
2016-11-16 02:05:35 +00:00
Jenkins 7976f31fb9 Merge "Unset admin_project config options for Keystone" 2016-11-16 00:04:44 +00:00
Jenkins 29d13df1a2 Merge "Adopt openstack client for neutron commands" 2016-11-15 15:34:51 +00:00
Jianghua Wang caa822fce4 XenAPI: correct the ml2 configuration for neutron
XenAPI requires two instances of L2Agent: the standard one manages OVS
bridges in DomU and the service name is called as q-agt in Devstack;
the other new L2Agent manages OVS bridges in Dom0 and the service name
is called as q-domuA. In order to support the new agent q-domuA, it
requires some XenAPI-specific configurations. But unfortunately those
XenAPI-specific configurations were configured in the standard agent
file, meaning other changes made to the standard agent file would not
have the correct effect. So it has caused issues, for example, floating
IP addresses are not reachable.
This fix is to move the XenAPI-specific configurations from the stardard
agent configuration file to the XenAPI-specific agent configuration file
so that it won't impact the standard agent's behavior.

Change-Id: I45944e84a1f81d016aa00da6d782801ee8457ea4
2016-11-15 19:55:48 +08:00
Daniel P. Berrange c30b8def82 Move certificate setup earlier in deployment
Currently the x509 certificate setup is done after all the
openstack services have been deployed. This is OK because
none of the services require that the x509 certs exist
when they are being deployed. With the integration of TLS
into the nova novnc proxy (and later spice & serial proxy)
service, x509 certs will need to exist before Nova is
deployed.

The CA setup must thus be moved earlier in the devstack
deployment flow, prior to the setup of any services. One
part of the CA setup, however, fixes up the global cert
bundle locations and this can only be done after the
python requests module is install, thus must remain in
its current location.

Change-Id: Idcd264fb73bb88dc2f4280c53c013dfe4364afff
2016-11-15 11:24:04 +00:00
xiaolihope 8f985b6ff1 Remove heat code from devstack tree
This removes all of the heat code from the devstack tree, in favor of the
devstack plugin in Heat's tree.

Depends-On: I4bed1e5cef5afa7b049b07640086a86a3f881e13
Depends-On: Ic392bcc24bc374ee8511a94f1d8f6ac23131c7e3

Change-Id: I5b60422bf1f5fa78aa8f3383f7a222e0356d9e42
2016-11-15 15:00:43 +05:30
Jenkins ac65a5cac0 Merge "yum_install: fix awk return code" 2016-11-15 01:35:44 +00:00
Jenkins 5ff21b3d63 Merge "Update local.sh sample file to use OSC" 2016-11-14 11:21:02 +00:00
Jianghua Wang 2b3ac6dc64 Specify the correct image parameters for XenServer
The deprecated AMI image file opts will be removed soon.
See https://review.openstack.org/#/c/338377.
So we can't use the fallback mechanism anymore. This patch is to
specify the correct image parameters for XenServer.

Change-Id: Ic287a3ed1725c42ea29022158bc9720c9a96533f
2016-11-14 17:46:20 +08:00
Jenkins 53649947e1 Merge "Removing config values no longer in tempest.conf" 2016-11-14 09:24:01 +00:00
Jenkins ed2a82bd4b Merge "Updated from generate-devstack-plugins-list" 2016-11-14 00:54:58 +00:00
John L. Villalovos bd42d4918e Remove call to undefined teardown_neutron_debug
Previously the usage of neutron debug ports was removed by
5e01c47e4d but there was still call to
teardown_neutron_debug. Recently a change to devstack-gate
1d6cc0771a3399300117f488e9d71e7ea46a4d82 caused that call to be
triggered and breaking the gate-devstack-dsvm-updown job.

This patch deletes the call and comments regarding setup_neutron_debug
and teardown_neutron_debug.

Change-Id: Ifdacb0cec1307db469bd66f551474539184cf2cd
2016-11-12 11:11:43 -08:00
Carlos Goncalves bac2e4ddc2 Update local.sh sample file to use OSC
Besides updating to OSC CLI, this patch also fixes an argument name typo
present before in 'nova keypair-add' (--pub_key should be --pub-key).

Specifying $OS_PROJECT_NAME in case user is associated to multiple
projects containing security groups with same name (e.g. 'default').

Change-Id: I776f6edfc4c6c798a39d3260827a18c695f05c87
2016-11-11 15:11:54 +01:00
OpenStack Proposal Bot 7c0af1bfb8 Updated from generate-devstack-plugins-list
Change-Id: Ifce4376733d55452a1ce85df75a4203ac2f2aff9
2016-11-10 06:49:01 +00:00
Jenkins 319abcaf85 Merge "Switch fernet to be the default token provider" 2016-11-09 20:03:04 +00:00
Jenkins e8f776cda0 Merge "Fix stevedore warning with neutron firewall_driver" 2016-11-08 04:09:31 +00:00
Jenkins 4972bbcfbe Merge "Use userrc_early for all nodes" 2016-11-07 23:41:30 +00:00
OpenStack Proposal Bot 8c7cec52d0 Updated from generate-devstack-plugins-list
Change-Id: Id23209fa26e39d569b7e4b4e95d42e72fd92c32e
2016-11-04 11:31:22 +00:00
Matt Riedemann f166081d0e Always setup cells v2
Nova is going to land a database migration in Ocata
under change I72fb724dc13e1a5f4e97c58915b538ba761c582d
which enforces that at least the simple cells v2 setup
is performed, which creates the cell mappings, cell0 and
host mappings. Before we can land that change in Nova
we have to make cells v2 setup a default in the integrated
gate jobs.

Depends-On: Ie44e615384df464516aa30b9044b5e54b7d995bb

Change-Id: If1af9c478e8ea2420f2523a9bb8b70fafddc86b7
2016-11-03 15:52:52 -04:00
Armando Migliaccio 4f11ff30cf Adopt openstack client for neutron commands
The neutron client is going to be deprecated during the
Ocata timeframe, so it is time to start switching to the
openstack client to invoke networking commands.

use of neutron client in neutron-legacy has been left as is.

The command for setting the router gateway is left as follow up.

Change-Id: I0a63e03d7d4a08ad6c27f2729fc298322baab397
2016-11-03 10:37:58 -07:00
Pierre Riteau 62f29a98d7 Update stable branch example
The stable/juno branch was deleted 11 months ago:
http://lists.openstack.org/pipermail/openstack-announce/2015-December/000869.html

Update the example to Newton, which should keep it valid for a while.

Change-Id: I4cd8738862a529fd319be2ec5694d00defd94f84
2016-11-03 10:10:03 +00:00
Huan Xie f881a0e4ee XenAPI: Enable linux bridge in Dom0 for neturon
When using neutron network under xenserver, we must enable linux bridge
in Dom0 as neutron will use linux bridge qbr in compute node for
security group. But by default XenServer use openvswitch and disabled
linux bridge. This patch is to remove this restriction.

Change-Id: I0e8124ff2323810fdc46c717a750ce7e8f4aa0c6
2016-11-02 20:50:41 -07:00
Brian Haley 30ab23cd9b Fix stevedore warning with neutron firewall_driver
The initial start of the neutron OVS agent always prints
a warning:

 WARNING stevedore.named [] Could not load
 neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver

There's an alias for that in setup.cfg called
iptables_hybrid that would avoid it.

Change-Id: I3f5bf782f4f27dc123e462e494741a8a941641ec
2016-11-02 17:05:48 -04:00
Paulo Ewerton 75bf972239 Move default Keystone API version to v3
This patch sets Keystone v3 as default in services
configuration files and in the openrc and stackrc scripts.

Change-Id: I24546f02067ea23d088d383b85e3a78d7b43f166
Partially-Implements: bp keystonev3
2016-11-02 20:28:41 +01:00
Jenkins 928b3cd36e Merge "Setup the Cinder image-volume cache by default" 2016-11-02 17:09:47 +00:00
Jenkins f8da15791b Merge "remove OS_AUTH_TYPE from the userrc files" 2016-11-02 17:09:40 +00:00
Jenkins ef9d31f6ac Merge "Make unstack.sh more independently deterministic" 2016-11-02 17:08:58 +00:00
Huan Xie 54482cd80b Stop q-domua process when XenServer is used
When using XenServer, it will create two neutron-openvswitch-agent
q-agt and q-domua even it's single box environment, but it didn't
stop the q-domua, this patch is to stop q-domua in unstack.sh

Change-Id: I511ed534bfb7d5fe6136f6a0b33f1d749d30862c
Closes-Bug: #1631721
2016-11-02 01:35:44 -07:00
Jenkins f1ede394a5 Merge "Updated from generate-devstack-plugins-list" 2016-11-02 03:36:03 +00:00
Castulo J. Martinez 2d9959c53b Removing config values no longer in tempest.conf
This commit removes some config values for tempest that no
longer exist in tempest/config.py therefore are no longer needed
in tempest.conf.

Change-Id: I5778973012e57e8d9df9bf864590f8ed7fe05561
2016-11-01 13:36:54 -07:00
Matt Riedemann c9c9d31d3e tempest: set network-feature-enabled.port_security
Sets the port_security feature flag in tempest.conf
if the port_security extension is enabled, which it's not
by default in neutron but is set by default in devstack.

This adds global variable for setting the port_security
extension in ml2.conf and in tempest.conf so we only have
to set this in one place.

Depends-On: I1efd5c838aa0d73cc6e8864e3041eea25850198d

Change-Id: I6334b200e42edd785f74cfb41520627393039619
Related-Bug: #1624082
2016-11-01 10:52:08 -04:00
OpenStack Proposal Bot ade65b813b Updated from generate-devstack-plugins-list
Change-Id: I1b357b2e668ff5ed56c5deb9d71709a7526e17ea
2016-11-01 06:46:36 +00:00
Steve Martinelli dc486bc12f Switch fernet to be the default token provider
this is the first patch in a series to actually make fernet the default
token provider in keystone. the patches for grenade, release notes, and
actually switching the value in keystone all depend on this patch first.

reasons for switching over:

- fernet tokens are the recommended token provider
- the install guide for newton recommends deployers use fernet tokens [0]
- we previously attempted this switch but ran into timing issues [1],
  the timing issues have been resolved [2]

[0] http://docs.openstack.org/newton/install-guide-ubuntu/keystone-install.html
[1] 153db26970
[2] https://review.openstack.org/#/q/topic:make-fernet-default

Change-Id: I3b819ae8d2924f3bece03902e05d1a8c5e5923f1
2016-10-31 14:57:11 +00:00
Jenkins 1f84d45757 Merge "lib/neutron: Remove remaining references to Q_ variables" 2016-10-30 10:13:53 +00:00
Eric Brown fb73d85afe Remove unused KEYSTONE_CATALOG_BACKEND
This patch simply removes a var noted to be removed back in Newton.

Change-Id: I7c66e1d8d65f562596543ed8ca402dba8c8ea271
2016-10-28 02:03:37 -07:00
Eric Brown 7b07ccf5e4 Remove deprecated/obsolete ldap options
The devstack ldap configuration for keystone is still using some
old options that are no longer valid. The write support is
being removed this release. And in previous releases, the ldap
assignment driver support was removed and was not removed here.

Change-Id: I538626b681eaee6a7ac10dfbc29605b73fbe13bf
2016-10-27 16:24:16 +00:00
YAMAMOTO Takashi 07edde1c14 lib/neutron: Create initial topology only on controller node
To avoid it being created multiple times for multinode setup.

Note: This reverts "Enable neutron to work in a multi node setup"
(commit 88f8558d87) partly and fixes
the issue differently.
The configuration in question uses the new lib/neutron. (not neutron-legacy)
In that case, calling create_neutron_initial_network from stack.sh directly
is a wrong way, as create_neutron_initial_network is sourced by
neutron-legacy.  The new neutron code should not rely on the legacy one.

Closes-Bug: #1613069
Change-Id: I868afeb065d80d8ccd57630b90658e330ab94251
2016-10-26 11:57:48 +02:00
YAMAMOTO Takashi d5f730caf4 lib/neutron: Remove remaining references to Q_ variables
Q_ variables belong to neutron-legacy.

These are True by default in neutron.
Remove them in favor of post-config meta section.

Change-Id: If691a79b09003f85a07c9f33e0379a2b21e48141
2016-10-26 11:55:40 +02:00
Adam Young 4440da8563 Unset admin_project config options for Keystone
Until the policy changes land for Nova, Glance, etc, this
value is not used.  Additionally, by having it set, it actually
makes it hard/impossible for the required changes to land in
the other services.  Disable/comment out the changes in the
Keystone specific lib file for now, and we will re-enable once
the Services can make use of them.

Change-Id: Ia1de9083c21107dac2f0abb56bda166bdb37a69d
2016-10-26 11:40:08 +02:00
Jenkins e0fdcd5ff2 Merge "fix ceph config file path variable" 2016-10-24 01:37:18 +00:00
Matt Riedemann aa47a0a8be ceph: set rbd_secret_uuid in cinder.conf, not rbd_uuid
The ceph cinder backend script was setting the wrong
config option in cinder.conf for the secret uuid. This
was being masked by a bug in nova which is failing on
this bug when trying to fix the nova bug...right. It
makes sense.

See:

http://docs.ceph.com/docs/master/rbd/rbd-openstack/#configuring-cinder

Change-Id: I4655cae3212d589177d2570403b563a83aad529a
Closes-Bug: #1635488
2016-10-20 22:27:25 -04:00
OpenStack Proposal Bot 94ab1a4aa8 Updated from generate-devstack-plugins-list
Change-Id: I15cdb23e00664efe637de5cbc7b5a1e8efa21d13
2016-10-19 08:16:16 +00:00
Monty Taylor 201c01f19b Don't clone dib-utils in install_heat
It's not used, and a recent change to trim down projects lists in
devstack-gate broke devstack in the gate that enabled heat.

Change-Id: I405423bdc9ba8dd9b30fce6fdceacccf662d5da3
2016-10-18 11:24:41 -05:00
Jenkins 093d815d9f Merge "Enable bridge firewalling if iptables are used" 2016-10-18 11:23:54 +00:00
Hongbin Lu bc5cfc0584 Allow running nova compute with docker group
A use case is from Zun project that needs to start n-cpu with
"docker" group.

Change-Id: Ib8f193ea1edf1f148e9ba505205495170ebf6d67
2016-10-17 01:51:46 +00:00
Chuck Short 51db6d33c1 Replace wily support with yakkety
Ubuntu wily support is EOL so lets make room for yakkety.

Change-Id: Ib13d43f6d89bdf7c684cd34655a077a13e237be3
Signed-off-by: Chuck Short <chuck.short@canonical.com>
2016-10-15 09:40:35 -04:00
Jenkins 88172b8763 Merge "Reduce the scope of the subnet pool prefix in neutron" 2016-10-14 20:04:27 +00:00
Eric Harney d8682dbdf9 worlddump: Add cinder-volume guru meditation report
cinder also supports GMR, it would be good
to have this when debugging gate failures.

Change-Id: I4db6dfd810d011faaca084e0dacaec4031b2a4ff
2016-10-14 14:38:10 -04:00
Jenkins 8caeb035f4 Merge "Make Nova/Ironic communication use Identity v3" 2016-10-13 19:55:06 +00:00
Jenkins cdcfc74d23 Merge "Remove workaround for openstack complete" 2016-10-13 19:50:54 +00:00
Attila Fazekas 2bd8d90681 Objects versions new style config
allow_versions is going to be a deprecated option.
Setting up the object versining in the new way.

[1] http://docs.openstack.org/developer/swift/overview_object_versioning.html

Change-Id: Ia520fbb6eb535b08ce83c0cb4bea31e7bba55eb3
2016-10-13 10:08:09 +02:00
Jenkins c330a8a661 Merge "nova: stop setting deprecated use_usb_tablet option" 2016-10-12 02:24:04 +00:00
Jenkins 6c55227595 Merge "Add a screen session for tls logs" 2016-10-11 19:48:23 +00:00
Jenkins fab7a04de8 Merge "Neutron L3 subnetpool creation should be optional" 2016-10-11 19:45:27 +00:00
Steve Martinelli 5ff77d6a2a Remove workaround for openstack complete
This reverts commit 6930ba312f.

By reverting this patch we are no longer using the bandaid fix mentioned
in the code. The latest openstackclient release (3.3.0) fixes the bug.

Related-Bug: 1619274

Change-Id: I20e3c5a92b97bf46c8d2318cd37044f0f36e1745
2016-10-11 14:09:41 +00:00
Attila Fazekas cac6ef09c5 Remove the heat stack owner role
We should not require any special role for heat
since very long time.

We should use the same roles as with the primary user.

Change-Id: Id9150f94c30505ed0da33b8fbc2a5a7bd4fcf5d0
2016-10-11 08:48:45 +02:00
Jenkins 1c13be860b Merge "Modify the default Qemu packages name for AArch64." 2016-10-10 13:58:17 +00:00
Jenkins 522cc7581a Merge "Don't install Nova policy.json" 2016-10-10 12:15:55 +00:00
Sean Dague f06455e1b5 Add a screen session for tls logs
When tls is enabled, we aren't bringing the logs to the forefront,
which makes it hard to debug when things go wrong. This does that.

Change-Id: I7c6c7e324e16da6b9bfa44f4bad17401ca4ed7e3
2016-10-07 06:57:03 -04:00
Clay Gerrard 148d0e6e08 Clarify default IP_VERSION in docs
The prior art on other options in the same document seemed to be
calling out the default in a pre-formatted block after describing the
possible values.

I believe the default value for the option was first changed [1], then
the docs were fixed [2], then the information was unintentionally
dropped from the docs [3].

1. Related-Change: If0e0b818355e4cb1338f7fa72af5e81e24361574
2. Related-Change: Ib6603b4f6ea0b4079f9a4ea46e723ecbb2ea371d
3. Related-Change: Iddd27cb54f1d9f062b9c47ff9ad6a2bef3650d6b

Change-Id: I662403db3b08a351a680587440ad1f15a6f8ee5d
2016-10-07 10:25:25 +11:00
Sean Dague ec498cd061 remove sites-enabled/keystone.conf link on clean
doing a clean.sh / stack.sh cycle with USE_SSL=True was failing
because we were no longer cleaning up the keystone site fully, so some
of the early mod_ssl queries hit an invalid apache configuration.

Change-Id: Ic6f3f601e532ec50c0234d928c25b378d9e95e32
2016-10-06 15:00:44 -04:00
Jenkins 7480276f5e Merge "Update apache tls proxy logs" 2016-10-06 13:08:28 +00:00
Jan Stodt 05dc1aad6c Fix provider networking error message
This fix replaces Q_USE_PROVIDERNET_FOR_PUBLIC with
Q_USE_PROVIDER_NETWORKING in the error messages introduced by
[1].

The error is thrown when provider networking with IPv6 has been
requested via local.conf, but no provider IPv6 range or provider
IPv6 gateway is provided. But if a provider network should be used
over the private network is determined along the variable
Q_USE_PROVIDER_NETWORKING and not Q_USE_PROVIDERNET_FOR_PUBLIC.

The variable Q_USE_PROVIDERNET_FOR_PUBLIC determines if a provider
network should be used as public network. This happens a few lines
later in the code and is not related to those error messages.

[1] https://review.openstack.org/#/c/326638/1/lib/neutron_plugins/
services/l3

Change-Id: I50aa1e9d2027eef598c95404851e51c31a397fbb
2016-10-06 08:41:05 +02:00
Jenkins 92d8ecf9c4 Merge "XenAPI: Remove legacy tty image" 2016-10-06 05:46:18 +00:00
Jenkins 0a088b1b36 Merge "Update OpenStackClient role list commands" 2016-10-06 05:19:37 +00:00
Jenkins 6af6d6f803 Merge "Add files/*.deb and files/*.deb.* to gitignore" 2016-10-06 05:00:53 +00:00
Jenkins 5a52e99c64 Merge "Updated from generate-devstack-plugins-list" 2016-10-06 00:54:17 +00:00
Clark Boylan 66ce5c257a Update apache tls proxy logs
This creates log files per proxy vhost and sets the log level to info to
help debug potential issues with tls proxying.

Change-Id: I02a62224662b021b35c293909ba045b4b74e1df8
2016-10-05 16:25:53 -07:00
Daniel Gonzalez a283526c88 Set cinder coordination backend url
If DLM is enabled, cinder should be configured to use the correct
backend url for the dlm.
At the moment only zookeeper is supported, as it is the only backend
currently supported in devstack.

Change-Id: I7afc8dc95bc5b3f11b888e10607615c1212c45f4
2016-10-05 21:52:07 +02:00
Jenkins 91d8a38e16 Merge "Allow default IPv6 route device names to have dots" 2016-10-05 18:24:12 +00:00
Clenimar Filemon 57df186c13 Make Nova/Ironic communication use Identity v3
As long as nova already supports an Identity v3 auth flow when talking
to ironic (Id837d26bb21c158de0504627e488c0692aef1e24), make it use
v3 by default.

This way we don't fail in a keystone v3-only situation, for
example.

Change-Id: I028dfb52108d0630f47a53f8b420b70d4979eb55
2016-10-04 16:27:02 +00:00
Miguel Angel Ajo ca89d071b3 Reduce the scope of the subnet pool prefix in neutron
Some of the clouds used for CI use the 10.2xx.0.0/16 range
for VMs, and collide with the wider 10.0.0.0/8.

This setting allows for creation of 256 subnets out of the pool.

Change-Id: I48c86f94098f1501f0e7f90a265dda7e81440eb0
Closes-Bug: 1629133
2016-10-04 18:19:33 +02:00
Mike Perez c271b3ea1f Update OpenStackClient role list commands
This command is deprecated. The new command is role assignment list.

Change-Id: I8dba0be21d5af6751bea13d8ff29cd4b7589ab3e
2016-10-03 16:50:27 -07:00
rajinir c58a15575d Neutron L3 subnetpool creation should be optional
Added an option to make subnetpools to be optional
as it ignores the public network specified in
FIXED_RANGE.

DocImpact
Change-Id: Ic89ceca76afda67da5545111972c3348011f294f
Closes-Bug: #1628267
2016-09-30 11:46:38 -05:00
OpenStack Proposal Bot c12c12f663 Updated from generate-devstack-plugins-list
Change-Id: Id9ce2cbdad53665ca2f6b7e57cb2553cb89cd982
2016-09-30 06:57:24 +00:00
Jenkins 563d377782 Merge "Fix typo in documentation" 2016-09-29 23:50:54 +00:00
Jenkins e43cca1adf Merge "Fix the logic of if used with is_service_enabled" 2016-09-29 22:15:08 +00:00
Jenkins 411248ddc2 Merge "Move Q_ROUTER_NAME to where it belongs" 2016-09-29 19:42:50 +00:00
Ihar Hrachyshka b3a210f643 Enable bridge firewalling if iptables are used
With the plan [1] to stop enabling it by Neutron iptables firewall
driver itself, deployment tools should catch up and enable the firewall
themselves.

This is needed for distributions that decided to disable the kernel
firewall by default (upstream kernel has it enabled). This is also
needed for distributions that ship newer kernels but don't load the
br_netfilter module before starting nova-network or Neutron iptables
firewall driver. In the latter case, firewall may not work, depending on
the order of operations executed by the driver.

To isolate devstack setups from the difference in distribution
kernel configuration and version, the following steps are done:

- we load bridge kernel module, and br_netfilter if present, to get
  access to sysctl knobs controlling the firewall;
- once knobs are available, we unconditionally set them to 1, to make
  sure the firewall is in effect.

More details at:
http://wiki.libvirt.org/page/Net.bridge.bridge-nf-call_and_sysctl.conf

[1] I9137ea017624ac92a05f73863b77f9ee4681bbe7

Change-Id: Id6bfd9595f0772a63d1096ef83ebbb6cd630fafd
Related-Bug: #1622914
2016-09-29 04:26:56 +00:00
Andrew Laski 0009869cae Don't install Nova policy.json
Nova ships with an empty policy.json file which it does not need.
oslo.policy previously required the empty file to be there but as of
version 1.14.0 it is possible to run with no policy file at all. Since
there are no policies defined in the sample file let's no install it.

Change-Id: I85a251376dfe38caa4b100861bf764014a98bc37
Depends-On: I09fa842ffbe75bed269cef6edc9c82d18bfe9297
2016-09-28 15:07:14 -04:00
Hironori Shiina aa7ec81fd7 Fix typo in documentation
This patch just removes a duplicate 'the'.

Change-Id: I3393a51d55ba8ec1639c2548781f8972f0d5c9d0
2016-09-28 20:21:57 +09:00
Jenkins ced511c593 Merge "Work around issue in glance_store swift driver" 2016-09-27 21:37:14 +00:00
Drago Rosson b34d459bbc Allow default IPv6 route device names to have dots
When dots are used with sysctl, they are reinterpreted as slashes.
Route devices can have dots in their names, so when they are used in a
sysctl command that also uses dots, its dot will be replaced with a
slash, causing an error.

Change-Id: Ie32126a3aa8d646568d7d37ec4874419b9658935
Closes-Bug: #1627770
2016-09-27 10:24:47 -05:00
Jenkins ea9b111eef Merge "lib/neutron: Rename core plugin variables" 2016-09-27 14:27:49 +00:00
Jenkins e75d5044f4 Merge "Update certificate creation for urllib3" 2016-09-27 11:26:47 +00:00
YAMAMOTO Takashi 1aa4368135 Move Q_ROUTER_NAME to where it belongs
The motivation is to make it more friendly with lib/neutron.
ie. independent from lib/neutron-legacy

Change-Id: I19821b009cbf1bc715a6c7b2854e4c77d2041ec4
2016-09-27 13:51:09 +09:00
YAMAMOTO Takashi 4a55d2a660 lib/neutron: Rename core plugin variables
NEUTRON_PLUGIN -> NEUTRON_CORE_PLUGIN
NEUTRON_PLUGIN_* -> NEUTRON_CORE_PLUGIN_*

Change-Id: I1d93d8bd1e6e3bbca0e56a2da0684ab3f3fbb525
2016-09-27 13:51:09 +09:00
Jenkins 71afa25250 Merge "Don't make root CA if it exists" 2016-09-27 04:03:24 +00:00
Jenkins 792a7ab31f Merge "Mount identity admin script at /identity_admin" 2016-09-26 20:39:11 +00:00
Ian Cordasco 69e3c0aac9 Update certificate creation for urllib3
urllib3 1.18 was released today and contains new more correct hostname
matching that takes into account the ipAddress portion of a certificate
and disallows matching an IP Address against a DNS hostname.

Change-Id: I37d247b68911dc85f55adec6a7952ed321c1b1d8
2016-09-26 12:21:41 -07:00
Jenkins 65fc49e283 Merge "lib/neutron: Use NEUTRON_PLUGIN instead of hardcoding ml2" 2016-09-26 18:18:46 +00:00
Jenkins 9cea4e8570 Merge "Remove remaining fwaas code" 2016-09-26 16:54:10 +00:00
Jenkins e18d6fae72 Merge "Switch keystone to dogpile.cache.memcached backend" 2016-09-26 16:54:00 +00:00
Jenkins 590e21f9a4 Merge "Keystone uwsgi set lazy-apps=true" 2016-09-26 16:53:52 +00:00
Jenkins fdd6dfa519 Merge "Remove the same configurations as the default" 2016-09-26 16:53:43 +00:00
Jenkins de0b611032 Merge "Run n-cpu using LXD_GROUP when LXD virt driver" 2016-09-26 15:01:26 +00:00
Jenkins 69700227a9 Merge "Make the Neutron l3 plugin use the subnetpools" 2016-09-26 15:01:16 +00:00
Jamie Lennox 04e69de6c5 Mount identity admin script at /identity_admin
The /identity_admin endpoint is the port 80/443 equivalent of the
service that typically runs on port 35357. In v2 some operations must be
performed on the admin endpoint whereas on v3 the services on 5000 and
35357 are exactly the same. This would be why the service was mounted at
/identity_v2_admin however that is misleading because both the v2 and v3
services are present on that endpoint.

This is particularly confusing because we set this as the OS_AUTH_URL
endpoint and it makes it seem like we are doing v2 authentication when
we are not.

Change-Id: If73735026079fb19ca5bd44b3a4dc1f507b5c99d
2016-09-26 14:44:40 +00:00
Jenkins 7957489003 Merge "Neutron: enable setting debug as True or False" 2016-09-26 13:57:51 +00:00
Jenkins bf10c86664 Merge "Neutron L3: account for all default routes" 2016-09-26 13:30:26 +00:00
Jens Rosenboom 890342ed87 Work around issue in glance_store swift driver
With [1] glance_store introduced default settings for user_domain_id and
project_domain_id. Sadly since these are always passed to the keystone
client, they override any settings to user_domain_name and
project_domain_name that are made in the config, leading to authentication
failures.

So as a workaround until [2] is fixed, we explicitly place the corresponding
domain_ids into the config.

[1] https://review.openstack.org/297665
[2] https://bugs.launchpad.net/tempest/+bug/1620999

Change-Id: Ica81a1a176614392291f2db4cc6398ed30663aed
2016-09-26 15:16:04 +02:00
Jenkins 7febf95e5c Merge "Update doc to reflect neutron became devstack default" 2016-09-26 13:14:37 +00:00
Clark Boylan 323b726783 Don't make root CA if it exists
To support multinode testing where we just copy the CA to all the
instances don't remake the CA if it already exists.

The end result is that you can trusty a single chain and all your
clients will be happy regardless of which host they are talking to.

Change-Id: I90892e6828a59fa37af717361a2f1eed15a87ae4
2016-09-26 11:37:18 +00:00
John Hua 499a9e39c1 XenAPI: Remove legacy tty image
UPLOAD_LEGACY_TTY was for console access, but it's no longer used.

Change-Id: I294c8716be2e6ee9f53108d4eb41faf99e975538
2016-09-26 12:06:02 +08:00
Ian Wienand a4705403aa yum_install: fix awk return code
TIL:

  Similarly, all the END rules are merged, and executed when all the
  input is exhausted (or when an exit statement is executed).

i.e. matching YUM_FAILED calls "exit", which falls through to the END
rules which calls "exit result" ... which is zero.  i.e. if the return
code is 1 then we actually hide that and return with zero.

This is rather annoying because errors that should halt to alert us of
a package install failure pass through, only for you to have to debug
much later on seemingly unrelated problems.

This always sets "result" and thus should be returning the right
thing.  I've updated the documentation to hopefully make it clearer
what's going on.

Change-Id: Ia15b7dc55efb8d3e3e945241b67a468b8a914672
2016-09-23 15:44:57 +10:00
Kevin Zhao a80d4097a9 Modify the default Qemu packages name for AArch64.
In Debian jessie and later release,there is no packages
called "qemu-kvm" for AArch64. Also modify the libguestfs0
packages for AArch64

Closes-bug: #1612182

Change-Id: I5eb6bd137896eb9abfc4f8dbb41b41105e4820cd
Signed-off-by: Kevin Zhao <kevin.zhao@linaro.org>
2016-09-22 07:44:43 +00:00
Patrick East a5d965a3d7 Use userrc_early for all nodes
Instead of only using the userrc_early when keystone
is an enabled service we will do it on all runs of
stack.sh. This way services can be split up more
across devstack nodes, and you can do configuration
requiring credentials on nodes that don't install
keystone.

Change-Id: I74574ae9f45a74bcbcc8e3149228ecb795ab4fb7
2016-09-21 12:45:04 -07:00
Jenkins a2d1848419 Merge "Use apache for tls-proxy ssl termination" 2016-09-21 18:19:40 +00:00
Luigi Toscano 4c813ac0fb Fix the logic of if used with is_service_enabled
The value to be evaluated is the returned value, not the output of the
command.

Change-Id: I22d7c967e911bcfee6b1910f666dbbc647c00085
2016-09-21 19:39:36 +02:00
Gregory Haynes 4b49e409f8 Use apache for tls-proxy ssl termination
Stud is now abandonware (see https://github.com/bumptech/stud) and is
not packaged in xenial. Lets use Apache for SSL termination since its
there already.

Change-Id: Ifcba410f5969521e8b3d30f02795541c1661f83a
2016-09-20 08:14:11 -07:00
Gary Kotton d2ef615d8f Neutron: enable setting debug as True or False
The flag ENABLE_DEBUG_LOG_LEVEL indicates if this should be
set or not.

This will now be supported in Neutron.

Change-Id: I3afe0546b379873247fee1ef9f4cc2708a7b5713
2016-09-20 04:12:11 -07:00
Henry Gessau 734f144f5d Neutron L3: account for all default routes
Some systems may have more than one default route.
Set up iptables NAT rules on all v4 default route devices.
Accept RAs on all v6 default route devices.

Closes-Bug: #1624773

Change-Id: If58509297497ea33c6c156f083a4394000bd0561
2016-09-19 14:18:53 -04:00
OpenStack Proposal Bot 81d89cf358 Updated from generate-devstack-plugins-list
Change-Id: I20039918452f6aa430037ae986f7cd88bd220d76
2016-09-16 06:52:00 +00:00
Jenkins 466dc74e67 Merge "Updated from generate-devstack-plugins-list" 2016-09-16 03:28:12 +00:00
Jenkins 72fe79d7af Merge "tempest: toggle allow_port_security_disabled=True" 2016-09-15 18:19:15 +00:00
OpenStack Proposal Bot cb3a216c23 Updated from generate-devstack-plugins-list
Change-Id: Ib75ecf5c822f3778978177c793399afbd802bf70
2016-09-15 06:52:36 +00:00
OpenStack Proposal Bot 57d390c5d7 Updated from generate-devstack-plugins-list
Change-Id: I21fd2b3866efe66dd1f7173003c2521688aa7fd6
2016-09-14 06:59:40 +00:00
Jenkins dec121114c Merge "Don't add deb-* packaging repos to plugin list" 2016-09-14 00:39:21 +00:00
Matt Riedemann 14cb490d1e nova: stop setting deprecated use_usb_tablet option
The use_usb_tablet option is replaced by the pointer_model
option.

Depends-On: Id18b5503799922e4096bde296a9e7bb4f2a994aa

Change-Id: Ic2a49f88df988c6404c1c72e9ee28a487e4f7908
2016-09-13 15:51:23 -04:00
Matt Riedemann 6390d5ef82 libvirt: install python-guestfs when ENABLE_FILE_INJECTION=True
There is a bit of a weird history here, but the net is we're not
installing python-guestfs when ENABLE_FILE_INJECTION is set, which
it is in the gate-tempest-dsvm-neutron-full-ssh job, which makes
file injection (personality) tests fail.

The history:

Commit 0ae942b41c moved installing
python-guestfs to the hypervisor-libvirt file and it was conditional
on a flag to enable file injection and the backing distro.

Commit a3c94468ba removed the ability
to configure nova for file injection, which never made any Tempest
tests fail because we didn't have a job that tested file injection
with ssh, which is what gate-tempest-dsvm-neutron-full-ssh does.

Commit 6d3670a652 added the ability
back to enable file injection and the gate-tempest-dsvm-neutron-full-ssh
job uses it, but missed added the condition back in from 0ae942b41
which installed the python-guestfs package. This change adds that
back in.

Change-Id: I1c1ef093b70007100646c086dc5724cd64751d00
Closes-Bug: #1622649
2016-09-12 11:35:22 -04:00
Jenkins 8a770cb050 Merge "Add thin-provisioning-tools for Cinder" 2016-09-12 05:53:49 +00:00
Ian Wienand 9c69eacaba Don't add deb-* packaging repos to plugin list
A couple of hundred of these were added with
Ia02f4e1819ac47b12b4ce4381e04253eb26e9f70 and you can see in some of
the proposals at I21fd2b3866efe66dd1f7173003c2521688aa7fd6 they're
starting to match.  Just ignore packaging repos as they're not really
relevant for the purposes of plugin list.

Change-Id: Iaf9e0c0fb672a70c3aee1bbcf587bb0d387e5945
2016-09-12 14:58:20 +10:00
Clark Boylan 9546903265 Set sensible default for LB_PHYSICAL_INT
Configure the linux bridge physical interface to use the interface for
the default route on the current host. In the future we should consider
using a dangling interface so that we aren't affecting the host
instances networking but this roughly matches what testing has been
using in the past.

Change-Id: I7859437f97e6cab929e90208fe56f7efd62dfe01
2016-09-08 17:09:45 -07:00
Jenkins 628098e0de Merge "Adding vfio to cgroup_device_acl during libvirt configuration" 2016-09-08 16:59:59 +00:00
Jenkins b74fc6886f Merge "Keystone re-enable catalog caching" 2016-09-08 00:59:33 +00:00
scottda f3daa9548e Add thin-provisioning-tools for Cinder
Ubuntu's LVM packaging does not support thin provisioning by
default:
 /usr/sbin/thin_check: execvp failed: No such file or directory
This is fixed with install of thin-provisioning-tools.

Change-Id: I31f572934ea94cae6e2aea27a2c731ee5bca68d3
Closes-Bug: #1615134
2016-09-06 16:21:57 -06:00
Jenkins fac8adbe1b Merge "Enable neutron to work in a multi node setup" 2016-09-06 14:02:07 +00:00
Jenkins 1735f39128 Merge "Make PIP_GET_PIP_URL configurable via local.conf" 2016-09-06 07:23:34 +00:00
Andreas Scheuring 0063495b00 Make PIP_GET_PIP_URL configurable via local.conf
The default get_pip url regulary times out when starting devstack
from behind company firewalls. Making this a configureable variable,
user can make use of internal git-pip.py mirrors without modifying
any code.

Change-Id: I66a5534d51ab23a4d8586c27d37b4b6b8a6892c9
2016-09-06 14:48:32 +10:00
Lenny Verkhovsky 0a40710b9f Adding vfio to cgroup_device_acl during libvirt configuration
vfio should be added to cgroups on some of the Distributions like
Ubuntu 16-04

Change-Id: I7239858b6307e37bf1237b92d69a0520ab5ad304
2016-09-04 12:52:01 +00:00
Ken'ichi Ohmichi 085f2fb0e2 Remove the same configurations as the default
The default value of force_dhcp_release is True on Nova side:
https://github.com/openstack/nova/blob/master/nova/conf/network.py#L306
The default value of vnc.enabled is True on Nova side:
https://github.com/openstack/nova/blob/master/nova/conf/vnc.py#L27
The default value of spice.enabled is False on Nova side:
https://github.com/openstack/nova/blob/master/nova/conf/spice.py#L30

So it is not necessary to set them on Devstack.

Change-Id: I67cc103269d2d612ad443c72f2a77d7ae2ca09e3
2016-09-02 14:19:52 -07:00
Jenkins 6affe6db29 Merge "Change quota_injected_file_path_bytes to quota_injected_file_path_length" 2016-09-02 17:27:37 +00:00
Jenkins e89723dcd8 Merge "LVM: Handle missing loop device at cleanup" 2016-09-02 17:12:07 +00:00
Jenkins 5897550146 Merge "Allow setup of credential encryption using fernet" 2016-09-01 19:55:06 +00:00
Dan Smith 71119b47a0 Setup cellsv2 for Nova
This patch setup cellsv2 for Nova after plugin initialization phase.
Since this requires compute hosts to be started, we need to do it
after we have initialized all other plugins. Things like ironic
aren't setup when we were running this as part of nova setup, and
thus this command can fail.

When cellsv1 is used (n-cell is enabled) skip calling
cells_v2 simple_cell_setup, which will never have hosts
at the top level and which will always fail.

Change-Id: Ic7d0115da51d6ea17ee49071af259a7789c62ab9
Depends-On: I9bbaa4c92503222c9fd015fe075926b50f3dcc8c
2016-09-01 15:36:50 +00:00
Monty Taylor 6930ba312f Specify a cloud for openstack complete
there is a bug in openstackclient that is causing a password prompt

Related-Bug: 1619274
here.

Change-Id: I3aee25845ece846ed2b35aa242dc684b55ac2381
2016-09-01 08:36:15 -04:00
Jenkins 08b1475c2a Merge "Create the nova_api_cell0 database" 2016-09-01 09:41:17 +00:00
Clay Gerrard 40b433fb07 Make unstack.sh more independently deterministic
In some initialization conditions (having never ran stack.sh) the
result of unstack.sh is dependent on if the user had previously
installed lvm2 or disabled the cinder service.

This change makes all results the same with a bit of LBYL.

There's also a drive-by to put a comment back where it belongs after
being accidentally moved in the related change.

Related-Change: I09b1a7bee0785e5e1bb7dc96158a654bd3f15c83

Change-Id: I9a7e052677d60cbbbdd582877f3c6c48c387f668
Closes-Bug: #1619195
2016-09-01 02:17:54 -07:00
Jenkins d7c9d2e27e Merge "Revert "Allow properly overriding DEST"" 2016-09-01 04:46:54 +00:00
Brant Knudson eb77eef8a5 Keystone re-enable catalog caching
Catalog caching was disabled due to bug 1537617, but this has been
fixed for some time. Re-enabling to get some performance back.

Change-Id: Ic0edf5c70a5040edf3393dbd1e110ab5fb56c110
Related-Bug: 1537617
2016-08-31 16:26:30 -05:00
Jenkins fb1e1cc7e3 Merge "Move RABBIT_USERID to lib/rpc_backend" 2016-08-31 21:22:48 +00:00
Brant Knudson 542abbab3b Keystone uwsgi set lazy-apps=true
Keystone had a problem where there was a memcached socket
opened very early on startup which then got shared between
worker processes when running under uwsgi. This can be
prevented by setting lazy-apps so this is the recommended
setting.

See http://uwsgi-docs.readthedocs.io/en/latest/ThingsToKnow.html

"""uWSGI tries to (ab)use the Copy On Write semantics of the
fork() call whenever possible. By default it will fork after
having loaded your applications to share as much of their
memory as possible. If this behavior is undesirable for some
reason, use the lazy-apps option. This will instruct uWSGI to
load the applications after each worker’s fork(). Beware as
there is an older options named lazy that is way more invasive
and highly discouraged (it is still here only for backward
compatibility) """

Change-Id: I6f271dc906528f0c86060452deaf15df81b267d2
Related-Bug: 1600394
2016-08-31 15:47:56 -05:00
Jenkins a270f5e242 Merge "Remove lib/ceph" 2016-08-31 20:14:49 +00:00
Jenkins 413cca397a Merge "Fix comment in plugin-registry header" 2016-08-31 20:14:33 +00:00
Jenkins 32ced8fed7 Merge "Fix region name placement config option" 2016-08-31 20:13:48 +00:00
melanie witt 0bf25506b0 Move RABBIT_USERID to lib/rpc_backend
This moves setting of RABBIT_USERID from stack.sh to lib/rpc_backend
so it may be used in grenade runs, which don't have the defaulted
value from stack.sh. The RABBIT_USERID is needed in order to call
get_transport_url in lib/rpc_backend.

Change-Id: I6f211e9102f79418f9f94a15784f91c4150ab8a7
2016-08-31 19:11:33 +00:00
Andrew Laski eb6ef2f80e Create the nova_api_cell0 database
As part of Nova cellsv2 there is now a third database that must be setup
for use by Nova. This database is an exact copy of the 'nova' database.
Only do this if NOVA_CONFIGURE_CELLSV2 is overridden.

Change-Id: I8775b8066ba85fbdbcdfb42c28cb567fc7759fe5
2016-08-31 12:01:19 -07:00
Matt Riedemann 44bf88cd39 Fix region name placement config option
The placement config option for setting the region is
actually 'os_region_name', not 'region_name', see:

https://review.openstack.org/#/c/358797/13/nova/conf/placement.py

Change-Id: I62e79c6860e2329428e3115d14ee86f5ff15d7e8
2016-08-31 10:39:46 -04:00
Sean Dague a25ae6c03d convert apache logs to color for screen
If we left the ansi color codes in apache logs, we can run a sed
script to convert the escaped escapes back to ansi escapes which make
the logs colorized again.

There are 8 \ because we need to end up with 2 in the final sed, and
we get interopolated twice. How much fun is escape interpolation? All
the fun.

Change-Id: Id8531cf03ba80f0df62f20add02e757bd63d4f2d
2016-08-31 08:56:37 -04:00
YAMAMOTO Takashi 11817482c0 lib/neutron: Use NEUTRON_PLUGIN instead of hardcoding ml2
Change-Id: Ia60381694f30978984cdf33e3141dc153d294e17
2016-08-31 10:57:33 +09:00
Sean Dague 43ff27b7e8 Use wsgi-script installed nova-placement-api
We should use the standard install nova-placement-api script which is
managed by the python package instead of a one off copy procedure.

Depends-On: I00d032554de273d7493cfb467f81687c08fd5389

Change-Id: I74b39d6a0cedea7c18ce8080dcddb43d13df1de8
2016-08-30 21:14:34 -04:00
Ken'ichi Ohmichi d3fab7bfc1 Revert "Allow properly overriding DEST"
After I00847bb6733febf105855ae6fc577a7c904ec4b4, we cannot see the
test result (testr_result.html) on gate jobs.
So let's revert the patch for verifying the test result on the gate.

Change-Id: I9db1ff9f43b22d1634a43c7d5e502cc205aa26f2
Closes-Bug: #1617476
2016-08-30 18:13:52 -07:00
Ian Wienand 0385caa2ee Fix comment in plugin-registry header
Fix the comment to actually be a comment.  Regenerate page.

Although we've got a pretty cool system for generating this, I wonder
if anyone actually looks at it?  Maybe it's just helpful as a form of
SEO.

Change-Id: I15aaa983716f9ee897293c2954ca7ae561951372
2016-08-31 10:07:06 +10:00
Matt Riedemann c9f6327844 Remove lib/ceph
All jobs using ceph as a storage backend have been moved over
to using the devstack-plugin-ceph repo in project-config so we
should be safe to remove the now unused lib/ceph file.

The files are left in place because the devstack plugin does not
install xfsprogs but it's used by the create_disk function.

And the ceph cinder backend file is left in place since the
devstack-plugin-ceph repo uses that by setting
CINDER_ENABLED_BACKENDS=${CINDER_ENABLED_BACKENDS:-ceph}.

Change-Id: I3fb09fc92bc6ab614e86d701ea46d5741a76b7a8
2016-08-30 17:21:30 -04:00
Jenkins 79722563a6 Merge "Add support for placement API to devstack" 2016-08-30 19:52:15 +00:00
Jenkins 434035e284 Merge "Revert "Revert "Use real Neutron network for L3 GW by default""" 2016-08-30 15:37:31 +00:00
Eric Harney 5237d16d69 LVM: Handle missing loop device at cleanup
When the loop device is not present because something
has gone wrong, this will print an error:
"losetup: option requires an argument -- 'd'"

Just skip the losetup -d in this case.

Change-Id: Iedc439b1ae924e9a599f6522eb081b83d43190c7
2016-08-30 11:01:30 -04:00
Jenkins 8755de3d75 Merge "Install conntrack in XenServer Dom0" 2016-08-30 14:21:38 +00:00
Chris Dent 4d6017566a Add support for placement API to devstack
Uses lib/placement, but relies on some functionality from
lib/nova. This leads to some weirdness since the nova has
special status in stack.sh. If/when placement is extracted
it may be good to follow the devstack plugin structure
instead.

Because the placement code is currently a part of nova, there
are dependencies in lib/placement on a some $NOVA_* variable
and, if virtenv is being used, the virtualenv used by nova.

Because placement currently runs using nova's configuration
settings, not a lot actually happens in lib/placement: apache
is configured and keystone accounts and endpoints are created.

If PLACEMENT_DB_ENABLED is true then a separate placement db
will be configured.

When complete the initial version of the placement service will
provide support for managing resource providers, inventories and
allocations.

The placement api only runs under mod-wsgi.

Change-Id: I53dd3e6b41de17387a0e179fc9ac64c143b6a9eb
2016-08-30 12:49:47 +00:00
Jenkins 23fc4e0342 Merge "Revert "stackrc set the LC_ALL to C"" 2016-08-30 06:10:58 +00:00
Jenkins 7b5e33a9dd Merge "Start virtlogd service" 2016-08-30 04:28:44 +00:00
Huan Xie 26edd7b071 Install conntrack in XenServer Dom0
Neutron openvswitch agent running in compute node will control the
actual connection of the VMs in Dom0 via conntrack-tools, but Dom0
doesn't install conntrack-tools RPM by default.
This patch is to add such support with XenServer 7.0 and above.

Change-Id: Iec56db761015d4b7baa5a5f54314f4ff3fa67e02
2016-08-30 01:30:14 +00:00
Janki Chhatbar 8f586fbefe Start virtlogd service
Ensure the virtlogd service is started, to work-around various
platform issues where it isn't started correctly.

Closes-Bug: #1603009
Change-Id: I548b377df6b2f0c287429e4387ee33184a82a64d
2016-08-30 10:37:21 +10:00
Lance Bragstad 69d4a71dfe Allow setup of credential encryption using fernet
With the addition of encrypted credential in keystone, we need to be able to
add setup steps in devstack to configure the credential repository with
encryption keys.

Depends-On: I97e7701bc5b8765d207cc721793643bcefa2d4e2
Depends-On: Id3e8922adc154cfec5f7a36613e22eb0b49eeffe
Change-Id: I433da9a257daa21ec3b5996b2bca571211f1fbba
2016-08-29 21:18:47 +00:00
Kevin Benton 1554adef26 Revert "Revert "Use real Neutron network for L3 GW by default""
This reverts commit 7da968a8be.

Change-Id: I9ed28ccf6af611b280ada3420d7d2a833178fcac
2016-08-29 17:44:37 +00:00
Jenkins 61be14d299 Merge "Let neutron use default gateway IP for subnets" 2016-08-26 13:56:09 +00:00
Jenkins 70a44ecad1 Merge "Change default for FORCE_CONFIG_DRIVE" 2016-08-26 12:10:36 +00:00
Jenkins b3b5eebaf5 Merge "Remove lbaas from devstack proper, take 2" 2016-08-25 18:32:38 +00:00
zhurong 1c5fc97136 Add files/*.deb and files/*.deb.* to gitignore
Change-Id: Ieb8bc6a0852eabce987fef9441cca8770b711a38
2016-08-25 23:36:12 +08:00
Doug Wiegley 7e40c6406b Remove lbaas from devstack proper, take 2
p-c patches have merged, neutron-lbaas removal is in the merge queue.

This reverts commit b3f26cb66c.

Depends-On: I506949e75bc62681412358ba689cb07b16311b68
Change-Id: I98d62c13ef90b20a9c67ef4f1720efcaa366fb31
2016-08-25 01:29:04 +00:00
Jenkins bfcde0cb0d Merge "Fixes language: "following allowing" -> "allowing"" 2016-08-25 00:46:00 +00:00
Jenkins 49ef4b70f7 Merge "Accept IPv6 RAs on the interface with the default route" 2016-08-24 22:13:40 +00:00
Monty Taylor c12d1d9ce0 Accept IPv6 RAs on the interface with the default route
Because neutron sets ipv6 forwarding settings, we stop accepting RAs
from IPv6-only host environments. This leads to a loss of external
connectivity, which is bad for zuul running tests and stuff.

Setting accept_ra to 2 will cause the RAs to be accepted.

Change-Id: Ia044fff2a1731ab6c04f82aea47096b425e0c0a0
2016-08-24 15:44:40 -04:00
Gary Kotton 88f8558d87 Enable neutron to work in a multi node setup
On the controller node where devstack is being run should create
the neutron network. The compute node should not.

The the case that we want to run a multi-node neutron setup we need
to configure the following (in the case that a plugin does not
have any agents running on the compute node):
ENABLED_SERVICES=n-cpu,neutron

In addition to this the code did not enable decomposed plugins to
configure their nova configurations if necessary.

This patch ensure that the multi-node support works.

Change-Id: I8e80edd453a1106ca666d6c531b2433be631bce4
Closes-bug: #1613069
2016-08-24 08:28:37 -07:00
Jan Stodt 7eb672d1a9 Update doc to reflect neutron became devstack default
Removing the explicit enablment of Neutron services, as with [1] they are configured as defaults in stackrc.

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

Change-Id: Ic8910cd28fe37842f7d824e68bd2ea705e7e52de
2016-08-24 16:10:47 +02:00
Jenkins e75b667e3f Merge "Fix doc formating issue" 2016-08-24 12:27:22 +00:00
Jenkins 00d7db75d6 Merge "Fix typo in tools/info.sh comment" 2016-08-24 12:26:24 +00:00
igor 01acdabb1d Fixes language: "following allowing" -> "allowing"
Stops propagation of initially erroneous construct.

Change-Id: I2197de57cbac98e87fb39fa0dca4c691fe5e856f
2016-08-23 10:08:03 +01:00
Brian Haley 31813e9219 Let neutron use default gateway IP for subnets
By default, FIXED_RANGE and NETWORK_GATEWAY (and the
IPv6 equivalents) are in the same subnet.  But if
FIXED_RANGE is over-ridden in local.conf we could
create a subnet with an invalid gateway address.

Since neutron will pick the lowest host IP as the
gateway by default, do not specify them unless the
user has specifically set them.

Do this for both the private and public subnets, as
well as the public IPv4 subnet.

Change-Id: Ifc71400a3af1f131bb8a9722188e13de5bd3c806
2016-08-22 21:02:46 -04:00
Jenkins f73997815e Merge "Allow properly overriding DEST" 2016-08-22 17:33:49 +00:00
Chris Dent 85ad108adf Fix typo in tools/info.sh comment
A trivial fix to a typo in tools/info.sh discovered while looking at
it to see what it was.

Change-Id: I9fb8906c375f99e43cdd0f41f7e4510c901fd3a1
2016-08-22 17:00:50 +00:00
Sean Dague 7682ea88a6 Change default for FORCE_CONFIG_DRIVE
We really should be using the metadata server more in our normal
testing, this changes the default to use it.

Change-Id: I8ef14e6110da1160163c0106e32032d27226f929
2016-08-18 16:19:36 -04:00
Brant Knudson 0a318ab8a6 Switch keystone to dogpile.cache.memcached backend
memcache_pool is there to keep a limited number of thread-associated
connections open rather than a connection for every thread. If you
don't have a huge number of threads it doesn't offer anything.
Keystone is an example of a service where memcache_pool doesn't
improve things -- eventlet isn't supported anymore and more threads
is not useful due to GIL.

As such, keystone cache backend is changed to dogpile.cache.memcached.

See https://review.openstack.org/357407 for the oslo.cache help text
change.

Change-Id: I4452a8c4968073cdea4c0f384453a5a28519fa08
2016-08-18 13:50:18 -05:00
Sébastien Han 556139e710 fix ceph config file path variable
CEPH_CONF does not exist anymore, resulting both cinder-volume and
cinder-backup being configured with an empty rbd_ceph_conf option.
Using CEPH_CONF_FILE to fix this.

Change-Id: I1aa590aba900a4a94698917e45a0ea5c6f497f18
Signed-off-by: Sébastien Han <seb@redhat.com>
2016-08-18 15:09:44 +02:00
Jenkins ecfc8a77c2 Merge "Set oslo_messaging_notifications driver" 2016-08-18 12:50:14 +00:00
Jenkins e8b9257c7c Merge "Fixes for linux bridge and Q_USE_PROVIDER_NET" 2016-08-18 12:30:28 +00:00
Jenkins 33f6b43b80 Merge "Change python version to 3.5" 2016-08-18 05:41:30 +00:00
Matt Van Dijk d7a3f5c4cc Make the Neutron l3 plugin use the subnetpools
The plugin creates subnetpools but does not use them when creating the
default subnets. It uses CIDR values that overlap with the
default pools. Change this to use the subnetpools.

Change-Id: I6171c13507e420f146801d323cb1011be36c1e8c
Closes-bug: 1613717
2016-08-17 21:59:52 +00:00
Jenkins 5bc5a31369 Merge "Updated from generate-devstack-plugins-list" 2016-08-17 21:56:12 +00:00
Jenkins f1d8278356 Merge "Remove stale config l3|dhcp_agent_manager options" 2016-08-17 14:02:44 +00:00
OpenStack Proposal Bot 023ac21805 Updated from generate-devstack-plugins-list
Change-Id: I9379f01103bcb1ae7417c8bd14746aee9fb722ea
2016-08-17 08:11:12 +00:00
lvdongbing 62f6eb68fd Change quota_injected_file_path_bytes to quota_injected_file_path_length
'quota_injected_file_path_bytes' has been renamed to
'quota_injected_file_path_length' long time ago, this patch fixes this
issue in devstack.

Change-Id: I5d3c52c5ded5321435d2d395b682c4c0725279a7
2016-08-17 03:44:42 -04:00
Jenkins 3cd89d94d8 Merge "add networking write up for devstack" 2016-08-16 21:54:40 +00:00
Jenkins 5b52f46c5e Merge "Configure project_network_cidr for tempest" 2016-08-16 19:45:47 +00:00
Jenkins 08c78aa903 Merge "Remove lib/cinder_backends/xiv" 2016-08-16 19:44:05 +00:00
Jim Rollenhagen 9301e8875b Revert "Setup cellsv2 for Nova"
This reverts commit b1a4f34bfc, which
breaks Ironic's jobs. For example:
http://logs.openstack.org/90/355390/1/check/gate-tempest-dsvm-ironic-ipa-wholedisk-agent_ssh-tinyipa/b9e264a/logs/devstacklog.txt.gz#_2016-08-15_17_31_13_358

Change-Id: Iafc579f73fe4a97056944872e2f2c8cd1a62c21c
2016-08-15 14:58:43 -04:00
Jenkins 8cf4a81bfc Merge "Setup cellsv2 for Nova" 2016-08-15 16:40:59 +00:00
Isaac Beckman 65be33f68e Remove lib/cinder_backends/xiv
Since support for sections was added to devstack local.conf parsing
we don't need this, and actually prefer just using the
sections in local.conf.

Change-Id: I5908fdf7ad127997bb1f4a6bbb16d0d8cf073ddd
2016-08-14 15:29:25 +03:00
Pavlo Shchelokovskyy b08b673def Allow properly overriding DEST
Change the order of variable declarations in stackrc so that setting
custom DEST in local.conf is also affecting DATA_DIR, SERVICE_DIR and
SUBUNIT_OUTPUT.

Change-Id: I00847bb6733febf105855ae6fc577a7c904ec4b4
Closes-Bug: #1285720
2016-08-14 13:33:39 +03:00
Jenkins ee42b55852 Merge "Add a multibackend list to tempest.conf" 2016-08-13 04:46:41 +00:00
Armando Migliaccio 14b12a74f6 Remove stale config l3|dhcp_agent_manager options
There is no longer a trace of these options anywhere in the
Neutron codebase. These can be safely removed.

Change-Id: Ibf00e158248e2a20248917c8cfc0011d30da6a82
2016-08-12 19:07:12 -07:00
Dean Troyer 06f3639a70 Add os-client-config and osc-lib from source
There is currently a hole in our testing that lets os-client-config,
which sits at the bottom of the dependency chain for some key pieces
like neutronclient and python-openstackclient, introduce gate breakages.
Step one in fixing this is allowing os-client-config to be optionally
installed from source so that jobs can be put into its gate to exercise
its master vs devstack installs.

Additionally, osc-lib is a new and lovely library that's going to need
the same things.

We're putting both in install_oslo, even though they're not oslo
libraries, because that'll make grenade work properly.

Co-Authored-By: Monty Taylor <mordred@inaugust.com>
Change-Id: I747480b6063a62e82ca2b030f274d3e87bf28b3b
2016-08-12 09:46:36 -05:00
Andrew Laski b1a4f34bfc Setup cellsv2 for Nova
Run "nova-manage cell_v2 simple_cell_setup --transport_url ..." after
Nova is started. This will add all compute hosts into a new cell, and
setup a db for cell0.

Change-Id: I50a955b97d0e18426406c15397bdfbc9e807d908
Depends-On: I559f9c87e89926414b368cac9442dec4eadcb89b
2016-08-12 06:48:45 -07:00
Sean Dague bc883df1c2 add networking write up for devstack
This explains the current state of networking in devstack, and a
couple of scenarios that people might want to try out for local
testing.

Change-Id: I2be35f4345bf9306c981ef6f0186b48da7d06772
2016-08-12 07:21:59 -04:00
Jenkins 9b8b922872 Merge "fix nova's fake virt driver plugin" 2016-08-12 08:56:01 +00:00
Andrey Pavlov 3d5f03abe5 fix nova's fake virt driver plugin
nova's config was changed -
now virt driver parameter needs not full path for virt driver

Change-Id: I2a32b4dee3f27efc78bd1e546a96cfbc1225b8b5
2016-08-11 19:10:41 +03:00
Sean Dague bd6614a8e0 Add development page with devstack
It turns out we never really had a document on how to work with
devstack in the devstack docs. At one point this was just cultural
knowledge passed down, but with the size of our community, we can't
rely on that any more.

Change-Id: I28f896ea507ccbba5164ebfc5415d22207f52e98
2016-08-11 09:06:18 -04:00
Jenkins 0e8351dfae Merge "delete compute api extension config for tempest" 2016-08-11 03:29:01 +00:00
Jenkins d03005321b Merge "lib/neutron: Add port_security ml2 extension driver" 2016-08-11 03:11:29 +00:00
Gregory Haynes 14d86e841c Set oslo_messaging_notifications driver
This config option is requied in order for nova notificaions to
function, and enabling it doesn't cause any harm (there is another
option for turning notifications on).

Change-Id: I309af6cc43af485f795c368d304ebe71fceb1a03
2016-08-10 22:03:19 +00:00
Jenkins cb978241f4 Merge "disable metering extension in tempest if q-metering not running" 2016-08-10 18:19:33 +00:00
Dan Smith a2ec7fdb48 Configure project_network_cidr for tempest
This value defaults to something not (necessarily) in our fixed range,
which will cause spurious test behavior. We know the value for this, so
just configure it properly.

Change-Id: I0ee3b71f509377dc7174ce97575e60ee2095f893
2016-08-10 11:18:26 -07:00
Sam Betts 5c39154c39 Ensure testing configuration can run as late as possible
Before the code in the extra.d plugins was removed from the devstack
tree they could define the order they ran. When this code is decomposed
into a plugin, there is still a need to do some form of ordering. This
caused problems with the Ironic devstack plugin and Tempest because the
code is run in this order:

 1. The tempest configuration is run from extra.d, processing
    DEFAULT_INSTANCE_TYPE, and writing the flavor_ref to tempest.conf

 2. The Ironic devstack plugin is run, creating the flavor needed for
    DEFAULT_INSTANCE_TYPE

This leads to build failures as tempest can not find the required
flavor, so it writes which ever flavor it can find at the time into
flavor_ref. Ironic now has code it its devstack plugin duplicated from
the tempest plugin to work around this problem until this is merged.

This patch fixes this by using the test-config phase to move the tempest
plugin as late as possible in the devstack process.

Change-Id: I3d98692e69d94756e0034c83a247e05d85177f02
2016-08-10 15:58:27 +01:00
Jenkins 8befb78198 Merge "Clean up Horizon Apache configuration files in clean.sh" 2016-08-10 02:19:15 +00:00
Jenkins 8019584b65 Merge "Set deploywait_timeout via localrc option" 2016-08-10 02:16:08 +00:00
Matt Riedemann 5068b291f4 tempest: toggle allow_port_security_disabled=True
This enables a new test in Tempest to run on a per-branch
basis since by default it's disabled because it won't pass
on liberty given the bug fix isn't in liberty and won't be
backported there.

Depends-On: I20b8d5d2a300c83a59bdb33374fc20447ce2ede3

Change-Id: I18fd5e0978795fec39a763e1e0f07d758905b9b8
Related-Bug: #1175464
2016-08-09 14:52:57 -04:00
Jenkins 9ab4bcefcc Merge "update front page of devstack docs" 2016-08-09 17:53:06 +00:00
Sean Dague 7b22935967 delete compute api extension config for tempest
Compute API extensions are deprecated, we should never be setting this
in Tempest in master.

Change-Id: I6ad25fab48277abf8a000a275d3fea73a595cdf6
2016-08-09 13:29:11 -04:00
Lubosz "diltram" Kosnik 0ffdfbdbd7 Run n-cpu using LXD_GROUP when LXD virt driver
Enabling nova-lxd require to run n-cpu using lxd group

Change-Id: I0553dafcc797fcc1342501a558c7455261cf3daf
2016-08-09 10:32:41 -05:00
Jenkins 9391a56ffe Merge "remove neutron 3rd party infrastructure" 2016-08-09 14:23:05 +00:00
Jenkins c54d3a1ef4 Merge "Give PUBLIC_INTERFACE a default value" 2016-08-09 14:19:48 +00:00
Jenkins 881f3f15ab Merge "lib/neutron: Create initial networks regardless of neutron-l3" 2016-08-09 14:13:59 +00:00
Jenkins e5bf823ceb Merge "enable dns resolution from guests in neutron" 2016-08-09 11:47:53 +00:00
Jenkins 88c1a7715d Merge "Add a way to enable file injection for nova/tempest" 2016-08-09 11:43:39 +00:00
Jenkins be0f207007 Merge "nova: remove explicit file injection being disabled" 2016-08-09 10:39:39 +00:00
watanabe.isao ea270d50d0 Give PUBLIC_INTERFACE a default value
Also means to make it changeable.

Closes-Bug: #1611247
Change-Id: I0dc253b7ecf44a49d152f97f4858f7f2cf2ca6b2
2016-08-09 16:38:27 +09:00
Jenkins 8e5417e876 Merge "XenAPI: Don't assume specific network interfaces" 2016-08-09 04:18:25 +00:00
Jenkins 94ba325302 Merge "neutron: Wait until ovs-vswitchd creates the bridge" 2016-08-09 04:14:44 +00:00
Sean Dague 894ccc90c0 disable metering extension in tempest if q-metering not running
We don't run q-metering in default single host configuration, so we
should make it so that tempest won't attempt to test for it either.

Change-Id: I928be70e3b10fc3753fd1081631e54fa839b671d
2016-08-08 16:19:05 -04:00
Kevin Benton 6a42a85b56 Fixes for linux bridge and Q_USE_PROVIDER_NET
===Set bridge_mappings for linux bridge===
The external network physnet needs a bridge_mapping to the public
bridge when the L2 agent is responsible for wiring.

===Add PUBLIC_PHYSICAL_NETWORK to flat_networks===
This network must be present in the ML2 flat_networks config if
flat_networks is specified.

===Set ext_gw_interface to PUBLIC_BRIDGE in provider net case===
ext_gw_interface must be a bridge in a bridge_mapping when
Q_USE_PROVIDERNET_FOR_PUBLIC is used.

Closes-Bug: #1605423
Change-Id: I95d63f8dfd21499c599d425678bf5327b599efcc
2016-08-05 20:15:39 -07:00
Sean Dague cea7ec8d4b update front page of devstack docs
The devstack docs have gotten a bit meandering so even the quick start
guide doesn't get you to a working setup without referencing other
pages. This attempts to pull this back in a bit.

Change-Id: I608331cbdae9cbe4f3e8bd3814415af0390a54d0
2016-08-05 14:04:23 -04:00
Vasyl Saienko 04d51e4943 Fix doc formating issue
Change-Id: I9aa8c1fd114e4f4329e06ac263f337ea566d8355
2016-08-05 13:48:23 +03:00
bkopilov 3ac1ea85b1 Add a multibackend list to tempest.conf
A change was made to tempest.conf for volume multibackend. Previously,
tempest used the following, with a limit of 2 backends:
 backend1_name = BACKEND1
 backend2_name = BACKEND2
That was changed to accomodate >2 backends. tempest.conf now uses a comma
separated list:
 backend_names=BACKEND1,BACKEND2,BACKEND3

devstack/lib/cinder uses a comma separated list with "type:backend_name":
 enabled_backends = lvm:BACKEND1,ceph:BACKEND2
This is in order to use scripts in devstack/lib/cinder_backends to setup
devstack basked on "type".

This patch allows parsing of the CINDER_ENABLED_BACKENDS to pass the proper
backend_name to tempest.

Change-Id: I76973c3fad4998a0f9e534fc9f6a271c1923f7b3
2016-08-04 13:13:46 -06:00
Sean Dague 78801c10f0 enable dns resolution from guests in neutron
When running a default devstack environment, having guests that
actually can resolve DNS, so that they can do package updates from
well known hosts. This addresses a gap between nova-net and neutron
behavior in devstack.

Change-Id: I42fdc2716affd933e9158f1ef7ecb20bc664ef21
2016-08-04 14:19:20 -04:00
Sean Dague 6a008fa74b Change to neutron by default.
nova-net is deprecated, and it's long time to switch to neutron by
default. This patch does that, and has an auto configuration mode that
mostly just works for the basic case.

It does this by assuming that unless the user specifies an interface
for it to manage, that it will not automatically have access to a
physical interface. The floating range is put on br-ex (per normal),
fixed ranges stay on their OVS interfaces.

Because there is no dedicated interface managed by neutron, we add an
iptables rule which allows guests to route out. While somewhat
synthetic, it does provide a working out of the box developer
experience, and is not hugely more synthetic then all the other
interface / route setup we have to do for the system.

You should be able to run this with a local.conf of just

[[local|localrc]]
ADMIN_PASSWORD=pass
DATABASE_PASSWORD=pass
RABBIT_PASSWORD=pass
SERVICE_PASSWORD=pass

And get a working neutron on a single interface box

Documentation will come in subsequent patches, however getting the
code out there and getting feedback is going to help shape this
direction.

Change-Id: I185325a684372e8a2ff25eae974a9a2a2d6277e0
2016-08-04 14:13:30 -04:00
Ian Wienand 9162608d6e Revert "stackrc set the LC_ALL to C"
This reverts commit f327b1e119.

The problem being addressed in the original commit was that
rejoin-stack.sh would run with the user's locale, instead of C that
was set in stack.sh

We overlooked that this gets pulled in by openrc, so it is overriding
the user's locale when using clients, etc.

rejoin-stack.sh was removed in
I2f61bb69cc110468a91dcaa4ee7653ede7048467 so we don't have to worry
about that part.  A revert to not touch the user's locale seems
appropriate.

Change-Id: I7c858bb92ce7ba5b5d323bf3ad6776100026c7a2
Closes-Bug: #1608687
2016-08-04 15:21:31 +10:00
Jenkins b80e5d7527 Merge "Corrected the local.conf configuration file link" 2016-08-04 04:27:31 +00:00
Jenkins 124970cc38 Merge "Force reinstall of virtualenv to ensure installation is valid" 2016-08-03 20:31:22 +00:00
Jenkins 460f6e242b Merge "q-l3 failed to start in case q-fwaas enabled" 2016-08-03 20:29:26 +00:00
Sean Dague b8286a3a06 remove neutron 3rd party infrastructure
This was used solely by bigswitch, and everyone else has moved over to
devstack plugins. Cleaning this out makes the core logic much simpler.

Depends-On: I8fd2ec6e651f858d0ce109fc335189796c3264b8
(grenade removal)

Change-Id: I47769fc7faae22d263ffd923165abd48f0791a2c
2016-08-03 19:25:45 +00:00
Lubosz "diltram" Kosnik 0a099763b0 Change python version to 3.5
On Ubuntu Xenial there is no way to install python3.4
Use value specified in PYTHON3_VERSION

Change-Id: Ibc69b1c8270bdd240c82cf2acfdfd0730ef0f182
2016-08-03 10:21:41 -05:00
Rob Crittenden 5631ca5e12 Clean up Horizon Apache configuration files in clean.sh
The horizon cleanup function wasn't being called at all during
cleanup which left the Apache configuration.

Change-Id: Iff5336d0c5e79cfc82f1c648afaabb869d86020e
2016-08-02 15:28:19 -04:00
Sean M. Collins 75a6454097 neutron: Wait until ovs-vswitchd creates the bridge
Seeing a race condition where lib/neutron code tries to
set the MTU on br-ex before it exists.

Thanks to some good grepping by sdague, it appears that the difference
between lib/neutron and lib/neutron-legacy is that the initial bridge
being created is br-int while in lib/neutron the initial bridge
created is br-ex, which means there must be some kind of warm-up that
occurs between the first bridge that is created by ovs-vswitchd and the
second, and the second one created is much faster.

So instead, let's just wait for the bridge to be created successfully.

Change-Id: I271dc8b6ae5487c80d2a22153b3fc45fb247707f
2016-08-02 12:55:54 +00:00
Cao Xuan Hoang 9124a84a96 q-l3 failed to start in case q-fwaas enabled
In case q-fwaas is enabled. It will causes the q-l3 failed to start
because the DevStack gave a redundant --config-file option to start q-l3

This is a follow-up patch of 84409516d5
to remove fwaas from DevStack completely.

Change-Id: I630969b3556bcffba506cab02a09cc83f4430c88
Closes-Bug: #1608401
2016-08-02 01:02:32 +00:00
Sean Dague e56318f9bc Remove manual setting of privsep helper
The privsep helper should have a sane default for all libraries,
pushing this into devstack means we cheat past a part of the upgrade
that we really shouldn't be.

Change-Id: I52259e2023e277e8fd62be5df4fd7f799e9b36d7
2016-08-01 10:29:03 -04:00
Bob Ball c694e55ad9 XenAPI: Don't assume specific network interfaces
The default for GUEST_INTERFACE_DEFAULT now uses the ip command
to find an interface; so it will work on multiple distributions.

XenAPI should not be setting a specific interface here, as it will
almost always be wrong.  In most cases, the calculated value for
GUEST_INTERFACE_DEFAULT will be a better default.

PUBLIC_INTERFACE_DEFAULT makes even less sense as it's often an
internal bridge for devstack scenarios.

In both cases, the right way to override these is to set
GUEST_INTERFACE / PUBLIC_INTERFACE in the localrc rather than
changing the _DEFAULT values.

Change-Id: I0cf84438d778bf1a2481328165513c59167490e2
2016-08-01 12:58:58 +01:00
WenyanZhang 8f0e97c146 Remove all *.pyc files in $DEST when executing clean.sh
Currentlly, the *.pyc files could not be removed in any scripts or
functions. But the redundant files would lead stack.sh not to find the
correct script for some versions after branch switched from master to
stable/mitaka in migration_helpers.sync_database_to_version.

So this commit adds the process of cleaning all the *.pyc files in
clean.sh.

It is needed to execute clean.sh before re-stack.sh to prevent the
exception.

Change-Id: I9ba0674d6b20b13c0a26b22cd5d1939daa121a94
Closes-Bug: #1599124
2016-07-29 09:12:55 +08:00
Jenkins d715852753 Merge "Modify the default cpu-mode for aarh64 in Libvirt" 2016-07-28 22:22:32 +00:00
Jenkins fee298faa9 Merge "lib/neutron-legacy: replace ip when re-stacking" 2016-07-28 20:58:00 +00:00
Jenkins e777bbce3b Merge "Add flag for snapshot_backup" 2016-07-28 01:33:02 +00:00
Jenkins 9f24495e50 Merge "Fix the typo in the file" 2016-07-26 21:27:10 +00:00
Jenkins b12c25a3e6 Merge "Keep old behavior of setuptools for editable installs" 2016-07-26 00:04:10 +00:00
Sean M. Collins ba1a64d8eb lib/neutron: Add port_security ml2 extension driver
Tempest currently conducts tests for this extension driver by
default.

Change-Id: I5f9881d0713965b66358dc9cade8d623da98d75d
2016-07-25 11:32:42 -04:00
Spyros Trigazis 88ccd47c88 Keep old behavior of setuptools for editable installs
In the 25.0.0 release [1] of setuptools during any install
operation the package in not overwritten. If a package is
installed from another requirement via pip and then it is
installed again from git, it is not updated causing
check_libs_from_git to fail.

[1] https://setuptools.readthedocs.io/en/latest/history.html#v25-0-0

Change-Id: Ibaa1d4157816ea649f4452756fbde25951347001
Closes-Bug: #1605998
2016-07-25 14:31:51 +02:00
zhangyanxian c6f857f49c Fix the typo in the file
Change-Id: I3a3976bdab6743f6d741d39708b01eacf6a01074
2016-07-25 08:45:18 +00:00
YAMAMOTO Takashi c07170abd7 lib/neutron: Create initial networks regardless of neutron-l3
Closes-Bug: #1604768
Change-Id: I699977930675512e9767a90f317fc0faa1ea9901
2016-07-23 18:01:28 +09:00
OpenStack Proposal Bot 7d89a79874 Updated from generate-devstack-plugins-list
Change-Id: I222ecc69427f1ddf4498f5af29664544efe43b46
2016-07-23 08:03:03 +00:00
Jenkins 5c9c54b1ff Merge "Revert "Use real Neutron network for L3 GW by default"" 2016-07-22 20:52:57 +00:00
Kevin Benton 7da968a8be Revert "Use real Neutron network for L3 GW by default"
This reverts commit 130a11f8aa.
Linux bridge devstack logic needs some changes first.

Change-Id: I5885062ad128518c22f743db016e1a6db64f3313
Closes-Bug: #1605423
2016-07-22 06:02:22 +00:00
Jenkins b4f92e3a56 Merge "Updated from generate-devstack-plugins-list" 2016-07-22 02:37:33 +00:00
Jenkins c714c7e962 Merge "Use real Neutron network for L3 GW by default" 2016-07-21 19:17:22 +00:00
Kenneth Giusti df6c1ffbe1 Force reinstall of virtualenv to ensure installation is valid
On RHEL-based systems pip and yum share the same installation
directory for virtualenv.  If yum pulls in the python-virtualenv
package (e.g. due to a dependency) it will clobber what pip has
already installed. The file tools/fixup_stuff.sh tries to ensure that
the proper virtualenv package is installed via pip. If virtualenv has
already been installed via pip, then clobbered by yum, pip skips the
install since it appears as if virtualenv is already installed and at
the correct version.

The reinstall of virtualenv must use the --force-reinstall argument to
pip to fix up the damage done by yum.

Change-Id: Ib0edf6c4ee8a510e9d671213de35d787f56acfed
Closes-Bug: #1599863
2016-07-21 10:18:41 -04:00
OpenStack Proposal Bot 2381f33629 Updated from generate-devstack-plugins-list
Change-Id: Ieffddf42e1b5d77dea651208a18b3de320489745
2016-07-21 08:07:43 +00:00
Rob Crittenden a1e1f5128a Add keystone VirtualHost for port 443 when USE_SSL is True
Add a VirtualHost that defines the necessary options for
enabling SSL. The existing keystone Apache configuration already
does all the location handling.

Change-Id: I836a471a7258f14f051d3dd8bdb428286b5a11aa
2016-07-20 18:15:00 -04:00
Jenkins 61b319787b Merge "Neutron: include metering service plugin in conf" 2016-07-20 21:07:11 +00:00
Kevin Benton 130a11f8aa Use real Neutron network for L3 GW by default
Relying on 'external_network_bridge=br-ex' for the L3
agent has been deprecated in Neutron. This patch adjusts
the devstack defaults to setup Neutron in the preferred
manner (empty external_network_bridge value and
correct bridge_mappings for the L2 agent).

This will also help with correct MTU calculations now that
the external network will have the correct segmentation
type on it ('flat' now instead of 'vxlan' by default).

Related-Bug: #1511578
Related-Bug: #1603493
Change-Id: Id20e67aba5dfd2044b82c700f41c6e648b529430
2016-07-20 10:00:22 +00:00
Oleksii Butenko 881373c049 Add flag for snapshot_backup
We have new feature in cinder and new test for it.
The test is skipped by default.
Need to add flag to unskip this test on master and
Mitaka.

new test: I1964ce6e1298041f8238d76fa4b7029d2d23bbfb

Change-Id: Ib695e60c2ed7edf30c8baef9e00f0307b1156551
2016-07-20 12:33:08 +03:00
Jenkins b54ba8fee5 Merge "Introduce PUBLIC_BRIDGE_MTU variable to set br-ex MTU" 2016-07-19 20:54:05 +00:00
Jenkins 675e10767c Merge "add local.conf modifying functions" 2016-07-19 18:32:18 +00:00
Kevin Zhao 5d7992a018 Modify the default cpu-mode for aarh64 in Libvirt
For AArch64, KVM don't recognize the cpu-mode "none",
so change the default cpu-mode as host-passthrough for
generating nova.conf

Change-Id: I94a22e5a15a974b9c11e9f9fd996857453b6e2ca
Signed-off-by: Kevin Zhao <kevin.zhao@linaro.org>
2016-07-20 00:20:38 +08:00
Hironori Shiina e2b7536369 Remove remaining fwaas code
Change-Id: I24fe7a559760b985bd53373523276a8f075e5974
2016-07-19 13:29:13 +00:00
venkatamahesh d55513a07c Corrected the local.conf configuration file link
Change-Id: Id28a9f85ae5ba789f09269163c6e5b2c8c36a7c8
Closes-Bug: #1603848
2016-07-19 17:34:20 +05:30
Ihar Hrachyshka 7b5c7dce53 Introduce PUBLIC_BRIDGE_MTU variable to set br-ex MTU
This variable can be used to accommodate for underlying infrastructure
that does not provide full 1500-sized traffic, or maybe instead gives
access to Jumbo frames.

Change-Id: I38a80bac18673a30842a7b997d0669fed5aff976
Related-Bug: #1603268
2016-07-17 00:14:43 +02:00
Jenkins 72ed1a171c Merge "Restoring xtrace state for os-brick plugin" 2016-07-15 04:53:34 +00:00
Jenkins 5f50d1931a Merge "Remove support for End Of Life (EOL) Fedora 22" 2016-07-14 23:38:48 +00:00
Jenkins 2451518b5b Merge "Remove fwaas from DevStack" 2016-07-14 21:51:31 +00:00
Thiago Paiva 79fc935640 Restoring xtrace state for os-brick plugin
The change Ibb7423d243d57852dada0b6298463bbdfc6dc63c that introduced the
os-brick plugin introduced a flaw where the xtrace state wasn't restored
after the end of the plugin's execution. The end behavior is that devstack's
logs were with way less information, difficulting the debugging of the build.
This patch fixes the variable that was intended to hold the xtrace state (it
was using cinder's) and restoring the state at the end of the script.

Change-Id: I47c6c794a9704049b089142eca5603d1183f8a10
2016-07-14 14:20:08 -03:00
Attila Fazekas 5813265ce5 remove OS_AUTH_TYPE from the userrc files
The openstack client just gets more confused when it is specified.

Change-Id: I8b498be835b63733cb38d33b02c3a8531a2da45b
2016-07-14 12:55:51 +02:00
Jenkins f110b68a64 Merge "Updated from generate-devstack-plugins-list" 2016-07-14 03:50:44 +00:00
Matt McEuen e24707bb59 lib/neutron-legacy: replace ip when re-stacking
Replicated Yi Zhao's fix for re-adding ipv6 addresses to neutron-legacy
(review I9ff62023dbc29a88aec3c48af331c0a49a1270bb).
Previously, re-stacking failed with "File exists" for ipv6 addresses
on br-ex.  With this change, the existing address is replaced on
br-ex with the appropriate address.

Change-Id: I6e6235132a34469f4e68b5bb3cf51ebdf01c83a2
2016-07-13 20:52:24 +00:00
Jenkins 12ce4ad306 Merge "Remove juno/kilo specific tempest config" 2016-07-13 17:09:15 +00:00
Kashyap Chamarthy eecb983529 Remove support for End Of Life (EOL) Fedora 22
Fedora 22 reaches its EOL on 19-JUL-2016[1].  Remove it as
officially supported distribution.

The current two supported Fedora distributions are Fedora 23 and Fedora
24.  (Change Ia4a58de4973ef228735c48b33453a0562dc65258 already added
support for Fedora 24.)

[1] https://fedoramagazine.org/fedora-22-end-of-life-2016-july/

Change-Id: I5b4e1ddb6165a9065e80e84175246678a7356f18
2016-07-13 12:36:13 +02:00
OpenStack Proposal Bot 7886f7eb9f Updated from generate-devstack-plugins-list
Change-Id: I4535ce00a7d15d14fdb9c3180b6b821352fe704f
2016-07-13 08:19:48 +00:00
Jenkins 4f9d2aa632 Merge "Allow for Nova to use os-brick from git" 2016-07-13 02:23:07 +00:00
Matt Riedemann 6267ec01d6 Remove juno/kilo specific tempest config
This removes several config flags for Tempest
now that juno and kilo are end of life. Tempest
has already removed these flags too.

Change-Id: I748429e73073f4202f77dfe1002687f76ee9a451
2016-07-12 19:13:33 -04:00
Patrick East 657cdcdbd1 Allow for Nova to use os-brick from git
This option to install os-brick from git was only added
into lib/cinder previously. When testing all-in-one nodes
this worked fine, but if you have multi-node setups with
compute nodes that don't install any c-* services we
only get packaged os-brick. With this change non-cinder
nodes can now test against unreleased os-bricks.

Change-Id: Ibb7423d243d57852dada0b6298463bbdfc6dc63c
2016-07-12 09:01:00 -07:00
Sean M. Collins a9286886e4 Neutron: include metering service plugin in conf
The common code for metering calls _neutron_service_plugin_class_add,
which despite the description only just appends a service plugin to
$Q_SERVICE_PLUGIN_CLASSES - it doesn't actually write it into a
configuration file.

So for now, read out the configuration, and append metering to it, then
write it back out.

Change-Id: Ice96cca8b43dcd54f2aa81461000a4597db8260d
2016-07-12 15:37:15 +00:00
Jenkins 06ba4fb98b Merge "ploop: specify hypervisor_type=vz property for ploop images" 2016-07-11 23:38:55 +00:00
Jenkins fb50134272 Merge "Modify the image property for aarch64" 2016-07-11 23:35:30 +00:00
Jenkins 2528d94d16 Merge "neutron_plugin_configure_dhcp_agent invalid config file" 2016-07-11 22:13:10 +00:00
Maxim Nestratov d565d62efe ploop: specify hypervisor_type=vz property for ploop images
This is necessary to make it possible to filter out compute nodes,
which don't support such type of images.

Change-Id: I347953876e2057e6f3dca71c2f5e8b638b85aaf8
2016-07-11 22:37:13 +03:00
xurong00037997 7ef31d0fe4 neutron_plugin_configure_dhcp_agent invalid config file
ADD dhcp config file name for neutron_plugin_configure_dhcp_agent

Change-Id: I6578bcb40c4df2231c0b54f231ac3b78ede5a71d
Closes-Bug: #1598745
2016-07-11 11:21:39 +00:00
Matt Riedemann 16edbe4356 Remove check for nova-volumes API
The osapi_volume API in Nova has been gone forever,
so we don't need to check for that anymore.

Change-Id: I7303d3f434fc27a4a1a127e455a7d3b88f588537
2016-07-07 14:43:39 -04:00
Luz Cazares 67700ca520 Remove large_ops_number from devstack tempest
Option was deleted from Tempest config file. Also test scenario
was deleted. See commit I93b2fb33e97381f7c1e0cb1ef09ebc5c42c16ecc

Change-Id: I750e50ba7cf8fca1dde391c2620b4a815d6b02a1
Closes-Bug: #1599619
2016-07-06 12:23:01 -07:00
Jenkins 8e64c478eb Merge "Tempest: add a Keystone reseller feature flag" 2016-07-06 01:49:51 +00:00
Matt Riedemann 6d3670a652 Add a way to enable file injection for nova/tempest
File injection is disabled by default for the libvirt
driver in nova. This adds a variable to enable file
injection for the libvirt driver and is also used
to configure tempest.conf for running personality
tests.

Change-Id: I34790fadeffd6e3fdc65bd9feed3d6e62316896c
Related-Bug: #1598581
2016-07-03 19:40:25 -04:00
Matt Riedemann 9079a40e9e nova: remove explicit file injection being disabled
Change 9ce99a44cf85e431227536e2251ef05b52e61524 disabled file
injection with the libvirt driver by default back in Icehouse,
so devstack doesn't need to do this explicitly anymore.

Change-Id: Id0c521f6f624367bd497463c8c2d99488548fcff
2016-07-03 19:20:27 -04:00
Sean Dague bb35715cfe add local.conf modifying functions
This adds a set of local.conf modifying functions which make it easier
for consuming projects like devstack-gate to programatically add
elements to local.conf structured files.

Change-Id: I3427968c2bd43aba12b3619acc27f73c74f0dabb
Co-Authored-By: fumihiko kakuma <kakuma@valinux.co.jp>
2016-07-01 12:50:18 +00:00
OpenStack Proposal Bot 6874734935 Updated from generate-devstack-plugins-list
Change-Id: If8d8b223f6764990c305274047c811dffb7d9840
2016-06-29 08:06:00 +00:00
Jenkins 591ffd0adf Merge "Make wait_for_service more robust by checking HTTP response" 2016-06-27 21:43:58 +00:00
Jenkins ce611960bf Merge "Don't configure router in flat network" 2016-06-27 21:39:16 +00:00
Jenkins 2fec2fe732 Merge "Neutron: check if q-l3 or neutron-l3 is enabled" 2016-06-27 21:39:08 +00:00
Jenkins 839ea5a222 Merge "Support "geneve" ML2 plugin type driver" 2016-06-27 21:38:10 +00:00
Patrick East dddb2c7b5f Setup the Cinder image-volume cache by default
This will have devstack setup the Cinder internal tenant and generic
image-volume cache by default. If left alone it will use reasonable
defaults.

More information about configuration options and the cache can be found
here: http://docs.openstack.org/admin-guide/blockstorage_image_volume_cache.html

As part of this we switch the default lvm type to thin so it will
work more efficiently with the image cache.

Change-Id: I0b2cc261736f32d38d43c60254f0dc7225b24c01
Implements: blueprint cinder-image-volume-cache
2016-06-24 18:09:16 +00:00
Kevin Zhao a9cc38a198 Modify the image property for aarch64
In Aarch64, the default cdrom bus is scsi, and the default scsi
controller is virtio-scsi. The cdrom with virtio bus will not be
recognized by the instance.

Change-Id: Ib8cec79f9e9083239092fa7348793ee3b64a9c94
Signed-off-by: Kevin Zhao <kevin.zhao@linaro.org>
2016-06-24 04:48:33 -04:00
Jenkins 01cbe7c143 Merge "Fix error reported due to re-add ipv6 address" 2016-06-23 02:54:32 +00:00
OpenStack Proposal Bot 66f4524cf4 Updated from generate-devstack-plugins-list
Change-Id: Ie6363f08ac54b62d29096befd733eca0642379d8
2016-06-22 08:08:16 +00:00
Sean M. Collins d00cbb77b1 Neutron: check if q-l3 or neutron-l3 is enabled
Change-Id: I7aff59fdf0fd75e134d2ae3ba8b7d63db98cc5ed
2016-06-20 17:53:22 -04:00
Jenkins 04dc17ed14 Merge "Default LOG_COLOR based on interactive execution" 2016-06-20 18:07:45 +00:00
Jenkins fa94c4c7ec Merge "Fix amateur level mistake." 2016-06-17 22:47:08 +00:00
Jenkins 8cdeb86648 Merge "lib/neutron-plugins: Pass conf file parameter" 2016-06-17 21:33:06 +00:00
Sean M. Collins 60f394aee2 Fix amateur level mistake.
Happy Friday!

Change-Id: I2b1112ce74577d6e3d50c5ea2131d46c77307571
2016-06-17 16:15:30 -04:00
Eric Fried 9a0c2bd531 Default LOG_COLOR based on interactive execution
Change I4a10a49db97d413349bcfceeb8c4164936fbcc40 added colorful PS4 via
tput.  However, if TERM is not set (as is the case when stacking
noninteractively), tput errors with the following:

tput: No value for $TERM and no -T specified

...twice for every log message, thus flooding the logs.

This change set turns LOG_COLOR off by default for noninteractive
execution.  If LOG_COLOR is set to True when noninteractive (TERM is
unset), obviate the above errors by passing tput a simple -T.

Change-Id: I0f8ad82375cde463160bad5bd9918f1e4b19326d
Closes-Bug: 1576405
2016-06-17 14:39:18 -05:00
Rob Crittenden 21e3d1e55b Make wait_for_service more robust by checking HTTP response
wait_for_service just checked to see if the remote service
was started, not that it was returning data. This caused
problems when the service was behind a proxy because the
proxy would respond quickly but the service may not have
fully started.

Wait for a non-503 HTTP response code and non-7 exit code
(connection error) from curl

Return an error if a successful connection cannot be made.

Change-Id: I059a12b1b920f703f28aca0e2f352714118dee97
2016-06-17 15:29:54 -04:00
Richard Theis 8906b481e0 Support "geneve" ML2 plugin type driver
Add support for the "geneve" ML2 plugin type driver. The
networking-ovn ML2 mechanism driver uses geneve for its
project network type. Geneve is part of core neutron but
didn't have any DevStack configuration for it. This patch
set adds the necessary options. It also removes the default
for ML2 type drivers to rely on the neutron default and
consolidates the tunnel ranges default for gre, vxlan and
geneve by using TENANT_TUNNEL_RANGES.

Change-Id: Id75651dfe57a07045a6932a0369668f33c7eef09
Partial-Bug: #1588966
2016-06-16 13:08:07 -05:00
OpenStack Proposal Bot dbc6a3736d Updated from generate-devstack-plugins-list
Change-Id: I5cd5f2bafb7ace88c28c52994c339b95904ab03b
2016-06-16 08:08:45 +00:00
Jenkins db340e54b0 Merge "Support Glance CORS options in devstack configuration" 2016-06-15 23:57:35 +00:00
Jenkins 2fe6369e32 Merge "Remove deprecated auth_plugin config" 2016-06-15 22:27:54 +00:00
Stephen Finucane 24e29f2265 lib/neutron-plugins: Pass conf file parameter
The 'neutron_plugin_configure_l3_agent' function expects a path to a
configuration file as a parameter. This was not done for one call,
resulting in the generation of a 'DEFAULT' file in the DevStack
directory along with an invalid L3 configuration file. Resolve this.

Change-Id: I5781cb1ec4cfc1699e61dbc324d0bdb824b56be1
2016-06-15 13:35:47 +00:00
Jenkins 5fc597289b Merge "Enable Swift Account Management" 2016-06-15 12:48:09 +00:00
Jenkins b43352e4dc Merge "Docs for devstack MacVTap agent setup" 2016-06-15 08:58:13 +00:00
Andreas Scheuring 28128e2f7a Docs for devstack MacVTap agent setup
MacVTap mechanism driver and agent have been added during
Mitaka [1][2]. Now adding the related doc to run a
multinode devstack with MacVTap compute nodes.

[1] https://review.openstack.org/209538
[2] https://review.openstack.org/275306

Depends-On: I0dd4c0d34d5f1c35b397e5e392ce107fb984b0ba
Change-Id: Ie743a207a5faeab2e2a7274fda503699f3072e98
2016-06-15 08:31:42 +02:00
watanabe.isao 1c4c16ce53 Don't configure router in flat network
Due to the fix [1] of neutron-refactor, some flat network usages of devstack
installation start fale.

This fix enables ML2_L3_PLUGIN to be set to empty to solve the problem.

By default l3_router_plugin.L3RouterPlugin will be set to ML2_L3_PLUGIN,
and for neutron, in such of configuration, router (ASA some others) will be
set into supported_extension_aliases,
then devstack will create a router that we do not want in a flat network.

Before fix [1], we can disable q-l3 to aviod the issue.
But now we don't, and we need this fix to disable the whole L3 plugin.

[1] https://review.openstack.org/318145

Change-Id: I61a2142d5121e0af4cc6cdf50e6bceafaf791fb0
2016-06-15 13:24:25 +09:00
Jenkins e88c51cc1b Merge "Keystone uwsgi performance tuning" 2016-06-15 01:11:46 +00:00
Jenkins 45360ed32e Merge "Add neutron-metering agent and configuration" 2016-06-15 00:59:27 +00:00
Jenkins df97237369 Merge "Updated from generate-devstack-plugins-list" 2016-06-15 00:59:19 +00:00
Jenkins aeb8d81897 Merge "Add an explicit test-config phase to devstack plugins" 2016-06-14 20:53:12 +00:00
Jenkins ca3a857d35 Merge "Have a way to disable Glance v1 in devstack" 2016-06-14 19:50:38 +00:00
ricolin 9a0d1f90b8 Remove deprecated auth_plugin config
Config auth_plugin in trustee group is deprecated.
Change to use auth_type in trustee group instead.
Closes-Bug: 1592482

Change-Id: Ib90d9c0299887201b37d26254693dc6b007a41dc
2016-06-15 01:13:45 +08:00
Jenkins cbc76ef9b5 Merge "Fix brick cinderclient override" 2016-06-14 14:38:20 +00:00
Bob Ball 1d23b93568 Fix brick cinderclient override
CINDERCLIENT_REPO cannot refer to both python-cinderclient.git
and python-brick-cinderclient-ext.git so make sure
the overrides have different names.

Bug introduced by: I6d0f09950ea1200d3367a53aa4a3eea9be7abc66

Change-Id: I9cbbf71ba08ef5394537d7b294846faa3c5be5bd
2016-06-14 12:07:52 +00:00
OpenStack Proposal Bot a9a2f71994 Updated from generate-devstack-plugins-list
Change-Id: Ied84c5f38a8002228e01797d56c39315ff997142
2016-06-14 08:08:37 +00:00
Jenkins 2b944ecc60 Merge "Updated from generate-devstack-plugins-list" 2016-06-13 23:51:51 +00:00
Jenkins b901462f53 Merge "Set volume service min and max microversions" 2016-06-13 13:41:02 +00:00
OpenStack Proposal Bot fd1f7ba066 Updated from generate-devstack-plugins-list
Change-Id: Ia42329d01758cafa5d59ca79eebd5f31515bef47
2016-06-12 08:01:13 +00:00
Jenkins e13c933d70 Merge "Enable admin_domain_scope by default in Tempest" 2016-06-11 00:08:11 +00:00
Jenkins 3a4b28cae2 Merge "Set ima_disk_format to vhd when hypervisor is XenServer" 2016-06-10 16:19:55 +00:00
Jenkins 6ca92cba8f Merge "Fix quoting in vercmp check for kernel version" 2016-06-10 14:36:09 +00:00
Jenkins cb249b4de5 Merge "Updated from generate-devstack-plugins-list" 2016-06-10 13:46:35 +00:00
Alex Meade 0c0c09af3b Set volume service min and max microversions
Implements Blueprint: configure-tempest-volume-microversion
Related to: I3d9b3fe288333721bf3b2c6c988949f2f253bfcc

Change-Id: I80c6a0c46c667291c6f7fe2a036717504c110314
2016-06-10 13:32:33 +00:00
Jenkins 5248283e0d Merge "nova.conf: set privsep helper command for os-vif plugins" 2016-06-10 13:22:39 +00:00
Andrea Frittoli (andreaf) 5cda4911ad Enable admin_domain_scope by default in Tempest
Tempest introduced a new ability to use domain scoped tokens for
identity v3 admin APIs. Since domain scoped tokens can be used
with the base keystone policy used in the gate, and the
pre-provisioned admin user is assigned a role on the domain, turn
the option alway on.

Change-Id: Ib1bb958eee076364b407fc03e77e6882d92147d2
Depends-on: I91ca907992428a5a14fb8d48a4fad105d2906e27
2016-06-10 09:49:33 +00:00
OpenStack Proposal Bot 90356d8270 Updated from generate-devstack-plugins-list
Change-Id: I121cf87e3c4e26b4a223a3e9b8a028763994ad89
2016-06-10 07:59:45 +00:00
Jenkins 815c61760c Merge "Support installing OpenStack on XenServer 7.0" 2016-06-10 01:39:14 +00:00
Yi Zhao 2ae8b09b61 Fix quoting in vercmp check for kernel version
I352362cf59e492fa9f7725190f0243f2436ac347 switched this to vercmp, but
using single-quote (') will mean that the kernel version isn't
actually expanded for the comparision.

I guess, like the original change, the fact it isn't working is
hidden.  Trusty seems to have 3.13 ... I can't imagine we support
anything before this ... so I'd also be happy if someone with some OVS
knowledge wants to just delete it.

(This change was originally an alternative to
I352362cf59e492fa9f7725190f0243f2436ac347 but got the quoting right)

Change-Id: I9fa514885c20b1135fb0680cf61fc04628fbecbe
Closes-Bug: #1580850
2016-06-10 10:50:32 +10:00
Jenkins 16df80be40 Merge "Updated from generate-devstack-plugins-list" 2016-06-09 14:36:40 +00:00
Jenkins 08c5db307e Merge "Use transport_url instead of driver-specif options" 2016-06-09 14:36:23 +00:00
Jenkins 5b63926788 Merge "Change ovs_base neutron plugin to use vercmp" 2016-06-09 14:22:18 +00:00
Jenkins 0a73b22b6c Merge "functions-libvirt: Add log filter to capture CPU driver errors" 2016-06-09 14:22:11 +00:00
Jenkins a6a634cdcf Merge "neutron-legacy: Consistently use --config-file foo" 2016-06-09 14:22:03 +00:00
Jenkins c830004697 Merge "Neutron/l3 - die if provider settings for v6 are not set" 2016-06-09 14:21:13 +00:00
Jenkins 960c451755 Merge "Set my_ip in cinder.conf" 2016-06-09 14:21:05 +00:00
Daniel P. Berrange c425977a55 nova.conf: set privsep helper command for os-vif plugins
privsep will default to invoking privsep-helper directly
via sudo, which won't work for people with a locked down
sudo config. To deal with this we should explicitly
configure the os-vif plugins to use nova-rootwrap for
running privsep-helper. This change makes such a change
for the two official in-tree os-vif plugins.

Change-Id: I3d26251206a57599385f2b9f3e0ef7d91daafe35
2016-06-08 16:53:06 +01:00
OpenStack Proposal Bot febd55a230 Updated from generate-devstack-plugins-list
Change-Id: I4ffb619ccdd4928d0772246a7c76353f21be6bb4
2016-06-08 07:11:03 +00:00
Brant Knudson 75ace7a5ed Correct keystone memcached host setting
keystone was configured to connect to memcached on the host IP
address. Unfortunately, memcached is only listening on localhost,
so this setting actually hurts performance as keystone fails to
connect to the memcached server. There's no indication of this in
the keystone logs since this is just how memcache client works
(ignoring errors).

You can verify this by
1) in /etc/memcached.conf, set -vv
2) restart memcached: service memcached restart
3) watch /var/log/memcached.log
4) There will be no output

with this change, there will be output in /var/log/memcached.log

Also the performance should be a lot better.

Change-Id: I95d798d122e2a95e27eb1d2c4e786c3cd844440b
2016-06-07 17:44:06 -05:00
Sean M. Collins e34ec9901e Neutron/l3 - die if provider settings for v6 are not set
If you are using provider networking, and have IP_VERSION set to include
IPv6 (which we do by default) - you must set the required variables.

If you do not want this behavior, set IP_VERSION=4

This arose from a third party CI system which was configured[1] to have
provider networking, but would explode when hitting the router IPv6
setup step[2] since there was no IPv6 subnet created, and IPV6_SUBNET_ID
would be empty, causing a python-neutronclient error and causing
stack.sh to exit.

[1]: http://paste.openstack.org/show/508710/
[2]: https://github.com/openstack-dev/devstack/blob/c35110e7c5c35dd1edc310dc3d0bb8693e58d336/lib/neutron_plugins/services/l3#L320

Change-Id: I267799b62284c3086ed7c3e2d8a9cbadb9ddcd60
2016-06-07 12:36:50 -04:00
Sean Dague 026cad84a3 remove local.conf documentation for phases we don't implement
The local.conf docs talk about phases which don't exist for config
file processing, which makes it more confusing then it needs to be.

Change-Id: If7f9255eab0535c3d57a2fd5f1bc18ba4d0801aa
2016-06-07 10:55:54 -04:00
Jenkins a45b40a630 Merge "Neutron: check if a plugin has the l3 API extension" 2016-06-07 13:54:34 +00:00
Timur Sufiev a44dd9a741 Support Glance CORS options in devstack configuration
To properly test the integration between Glance CORS feature and
Horizon Javascript environment uploading image files directly to Glance
(using this feature), we need to enable CORS support for Glance in
integration tests. Adding corresponding Devstack variable to configure
Glance in such a way that it accepts direct requests from Horizon
Javascript is the prerequisite step for the integration testing of this
feature.

By default Horizon and Glance are located on the same host, hence
default value cors.allowed_origin = http://$SERVICE_HOST should work.
If a more complicated setup is desired, where Horizon is located on a
different host, GLANCE_CORS_ALLOWED_ORIGIN environment variable should
be exported to Devstack.

Partially implements blueprint: horizon-glance-large-image-upload
Change-Id: I4881fb6631c2daa2ad8946210eff4bb021957374
2016-06-07 13:28:01 +00:00
Huan Xie 36afed4353 Set ima_disk_format to vhd when hypervisor is XenServer
When running tempest testcase test_minimum_basic_scenario will always fail
due to lack of configuration [scenario] img_disk_format=vhd in tempest.conf
This patchset is to add this configuration when XenServer is used.

Change-Id: I4b916200e6eefb62f148ec8b644fb23ffc7e00a6
Closes-Bug: #1589787
2016-06-06 20:17:48 -07:00
Mike Turek f90c8e105b Set deploywait_timeout via localrc option
Currently a hardcoded value is used for the DEPLOYWAIT timeout in
tempest. The patch in review 269249 adds a config option to use
instead of this hardcoded value. This patch allows the value to be
set via the BUILD_TIMEOUT variable.

Change-Id: Id79014fd6e07f93029111f6c28e3537e2e39be9f
Related-Bug: 1526466
2016-06-06 18:52:47 +00:00
Sean M. Collins 8063fee829 Add neutron-metering agent and configuration
This is the equivalent of the q-metering from neutron-legacy

Change-Id: Ie2ad6e18cfd6f5cd9af0da30bc36a1cd27e39189
2016-06-06 14:36:29 +00:00
Sean M. Collins 84409516d5 Remove fwaas from DevStack
Depends-On: Iadcee07e873fcb4f099ebccc2e33780e74438140
Change-Id: Ic60cd1fa90c19dfac00be583e2ddc5633dbb68a3
2016-06-06 14:29:58 +00:00
Huan Xie f179eb7c47 Support installing OpenStack on XenServer 7.0
XenServer 7.0 has changed some iso files' name, this made devstack script
install_os_domU.sh failed to install VM before installing OpenStack. This
patch is to fix the problem, make install_os_domU.sh support 7.0 and other
prior versions of XenServer

Change-Id: I49459bfff2b101fc6927eb4578c5eb47cc8c3ad6
2016-06-05 22:38:56 -07:00
Angus Lees a1c70f2a75 neutron-legacy: Consistently use --config-file foo
This change adjusts a few instances of `--config-file=foo` to
`--config-file foo` (no `=`) in order to make neutron command
lines more consistent and easier to match in sudoers/rootwrap
filters.

This is particularly useful for oslo.privsep, which needs to start a
helper command with the same `--config-file` arguments (see
Ia9675dff9232e0e987a836ecaf9e842eb5c3cb18).

Change-Id: I91fe18f66f3c3bc2ccd1ca8be91be2915ed3e3ec
2016-06-06 14:46:21 +10:00
Brant Knudson b97a60e90c Keystone uwsgi performance tuning
I ran some tests locally that showed that when using the uwsgi
deploy the keystone server wasn't using all the processes
available. When I switched from "threads" to "processes" the
concurrent performance improved considerably. So I'm proposing
that devstack switch to processes to improve performance.

Change-Id: I8cfe9272e098e636441b7cfb51bff08d62c3336e
2016-06-05 18:48:03 -05:00
Jenkins 18ce57e55c Merge "remove addition of gate64 cpu" 2016-06-04 02:22:39 +00:00
Flavio Percoco 22c695f08a Have a way to disable Glance v1 in devstack
As part of the process of deprecating Glance's V1, the glance team would
like to start testing V2-only environments. Therefore, this change
provides a way to force other services to use V2.

Change-Id: I87e77d07964eac01e9a796817cbc88bd6e59c721
2016-06-03 14:55:26 -04:00
Michał Dulko 9ee1426847 Set my_ip in cinder.conf
Cinder uses my_ip config option to provide iscsi_targets. It gets
defaulted to the IP of the first interface in the system, which is fine
for some cases, but for example with Vagrant first interface can be used
only to contact with host machine.

To get over it we should set my_ip to HOST_IP from local.conf and this
commit implements that.

Change-Id: I4d2960d92f388ac689dfa6b436dc8bfc1e129fbf
Closes-Bug: 1588825
2016-06-03 15:41:37 +02:00
Sean Dague 214459cdf7 remove addition of gate64 cpu
Nova has been fixed to not need this work around. We shouldn't keep it
in devstack.

Change-Id: Ie2b1c6b8ddce4a2fd94af06745d59455208f0633
2016-06-03 15:03:37 +10:00
Jenkins 65dfb9ef65 Merge "Move tempest plugin install to the end" 2016-06-02 23:20:00 +00:00
Mehdi Abaakouk 6176ae6895 Use transport_url instead of driver-specif options
Future oslo.messaging is going to deprecate usage of driver-specific
options for hosts/port/user/password options.

This change uses transport_url that exists since a while now and
works with all drivers (even devstack handles only the rabbit one).

Change-Id: I3006b96ff93a3468249177c31c359c2f9ddc5db6
2016-06-02 22:57:51 +00:00
Matthew Treinish 7e603d1bf8 Move tempest plugin install to the end
For the tempest plugin install inside the tox venv to hold we need to
ensure that it's the last thing run that touches the tox venv before
devstack ends. Otherwise there is a chance we'll recreate the venv in
a later step of installing and configuring tempest. This commit
moves the plugin installation into it's own function and calls that
function as last phase of the tempest setup to make sure it runs last.

Change-Id: Ie253171537e8c5a9887cc30aba1cad4b31e57663
2016-06-02 14:50:13 -04:00
Brian Haley 09604349f8 Change ovs_base neutron plugin to use vercmp
This plugin was using a deprecated function, vercmp_numbers(),
that wasn't actually working properly because the call to
'deprecated' at the beginning was causing garbage to be
returned to the caller.  For example, this was always in
stack.sh.log when using OVS:

.../lib/neutron_plugins/ovs_base: line 57: [: too many arguments

Update to use vercmp() like all other users in devstack, and
remove all the old code.

Change-Id: I352362cf59e492fa9f7725190f0243f2436ac347
2016-06-02 10:33:54 -04:00
Kashyap Chamarthy 07dc2bf776 functions-libvirt: Add log filter to capture CPU driver errors
Two things:

  (a) Add the log filter to capture libvirt CPU manipulation driver
      related error messages when things fallout (e.g. CPU model
      comparision failures during live migration).

  (b) While we're at it, remove the "1:qemu_monitor" log filter, because
      the existing filter "1:qemu" should take care of logging the
      interactions with QEMU monitor console.  This is the case since
      the introduction of VIR_LOG_INIT() macro in upstream libvirt,
      which performs a substring match on a given file name.  (Available
      from libvirt version v1.2.10 onwards).

Change-Id: I75befd52d9f892eb5a6236eee9a397fab7602ecc
2016-06-02 15:28:56 +02:00
Jenkins feb828b7aa Merge "Remove verbose setting from l3 service plugin" 2016-06-02 10:32:45 +00:00
Jenkins 6616a971d1 Merge "Allow to use Fedora 24 with devstack" 2016-06-02 08:00:28 +00:00
Jenkins 4e638e5511 Merge "Updated from generate-devstack-plugins-list" 2016-06-02 00:16:53 +00:00
Jenkins 2ff787e69d Merge "Allow override of python-brick-cinderclient-ext library used by cinder" 2016-06-01 21:24:15 +00:00
Attila Fazekas 72b233c1e0 Allow to use Fedora 24 with devstack
Looks like f24 does not have any special change compared to the
previous release, we just need to add f24 where f23 present.

Change-Id: Ia4a58de4973ef228735c48b33453a0562dc65258
2016-06-01 16:52:41 +02:00
OpenStack Proposal Bot 47bf3f931c Updated from generate-devstack-plugins-list
Change-Id: If7c8f6162d3e846a360cc7f34ce2ebf52054f45f
2016-06-01 07:01:00 +00:00
Gary Kotton c47bd1df65 Remove verbose setting from l3 service plugin
This is following the nail:
http://lists.openstack.org/pipermail/openstack-dev/2016-May/095166.html

Change-Id: I4380279992e53ec9926bbcba5524e98f5c96ce8b
2016-05-29 00:01:01 -07:00
OpenStack Proposal Bot 35f0f09f00 Updated from generate-devstack-plugins-list
Change-Id: Ifc10b6f4281f40749f917e7707eab816c3c11876
2016-05-28 07:05:56 +00:00
Jenkins 327f8d14b9 Merge "Fix typo in local variable name in time_stop" 2016-05-27 01:27:37 +00:00
Rob Crittenden 38245da0b8 Fix typo in local variable name in time_stop
This didn't break functionality but it would use a global instead
of a local variable so nested calls to time_* might have issues.

Change-Id: If61ef07c4ce15f1a356975a0b0611fdf5e49109a
2016-05-26 17:55:14 -04:00
Ivan Kolodyazhny 8d0d3115cc Allow override of python-brick-cinderclient-ext library used by cinder
Added to requirements:
https://review.openstack.org/309084

Functional tests were added
https://review.openstack.org/265811

But they still use the version of python-brick-cinderclient-ext from pip.

This change updates devstack to pull in the changes from
python-brick-cinderclient-ext patch sets instead, when configured to do so.

Change-Id: I6d0f09950ea1200d3367a53aa4a3eea9be7abc66
Needed-by: I34f3b5ceaad7a50b1e9cadcc764f61c0aabe086d
2016-05-26 23:52:53 +03:00
Jenkins 5af67ae0e1 Merge "Neutron: Remove verbose and always set debug to true" 2016-05-26 19:35:58 +00:00
Jenkins bc4b96b794 Merge "Neutron: stop creating neutron debug probes" 2016-05-26 04:10:51 +00:00
Sean M. Collins 5e01c47e4d Neutron: stop creating neutron debug probes
They seem to be more trouble than they are worth.

http://lists.openstack.org/pipermail/openstack-dev/2016-May/095476.html

Neutron has already deprecated the utility in
https://review.openstack.org/#/c/318786/

Change-Id: I470ed5bc1cbe754c4bfae41f411150331bc4335d
2016-05-25 09:38:41 -07:00
Jenkins 7d53947a29 Merge "Reference keystone URIs rather than building URI" 2016-05-25 04:28:13 +00:00
Jenkins e3400ec2d2 Merge "Add printing the plugin list after the plugin install" 2016-05-25 04:15:07 +00:00
Jenkins aacd30a6ca Merge "functions-common: Use systemctl when applicable" 2016-05-25 04:12:33 +00:00
Sean M. Collins fbba3b9d8b Neutron: Remove verbose and always set debug to true
http://lists.openstack.org/pipermail/openstack-dev/2016-May/095166.html

Change-Id: I7c51518c10d96eb84a6ddd2514011bfd42623d5d
2016-05-24 16:23:43 -07:00
Jenkins f5998b0253 Merge "Use path-mounted keystone when running in httpd" 2016-05-24 20:13:19 +00:00
Rodrigo Duarte 0578e42fdb Tempest: add a Keystone reseller feature flag
A new tempest test is being added in https://review.openstack.org/#/c/285541/
but it is not supported in the Kilo and Liberty branches. This patch
turns on this feature flag at Devstacks's side.

According to tempest policies, this patch must be merged first so the
test can actually run.

Change-Id: I52458a0b36e1dba233667311b35f6c3931e2e66c
Depends-On: Ie69dae09c2b42e825e9d51abf158fc14788387d1
2016-05-24 12:51:10 -03:00
Kashyap Chamarthy 247e44625c functions-common: Use systemctl when applicable
We live in a new systemd world, use the native commands to talk to it
if available.

Change-Id: Iccdc35f0c9da2997f9e672bc1d24ca15d3403d98
2016-05-24 11:21:01 -04:00
Matthew Treinish b655867390 Add printing the plugin list after the plugin install
This commit just adds a sanity check output to lib/tempest. It will
use tempest list-plugins to print a table of installed plugins after
the pip install phase is run for any provided plugins. This will
enable users to check that the plugins they think they're running are
detected by tempest.

Change-Id: Icff286da6c68ec9a57f2288458976341bc095875
2016-05-20 17:30:17 -04:00
Jenkins 730703a833 Merge "Set user/project domain ID when using keystone v3" 2016-05-20 15:53:42 +00:00
Sean M. Collins c35110e7c5 Neutron: check if a plugin has the l3 API extension
If a plugin has the L3 API extension available, issue the L3 API
extension calls that creates routers and networks

Change-Id: I77e269ce0025054bcf2a2f4156124f2921ba2d59
2016-05-20 11:10:24 -04:00
Jenkins 1df67b9dd8 Merge "Added RHEL rebuild ScientificLinux to supported distributions" 2016-05-20 13:46:35 +00:00
Jenkins a3715a2e1a Merge "Add option to download all libs from git" 2016-05-20 12:58:41 +00:00
Jenkins f10bb119cc Merge "Move setting lvm libvirt configs to hypervisor-libvirt" 2016-05-20 12:50:04 +00:00
Jenkins 52f6adf512 Merge "Skip EPEL & RDO install for CI nodes" 2016-05-20 11:59:09 +00:00
OpenStack Proposal Bot d04cc40434 Updated from generate-devstack-plugins-list
Change-Id: I60f6c75f2b12a0541d25cf291f18dcce30f2d42d
2016-05-20 07:08:34 +00:00
Brant Knudson e86b91ba78 Reference keystone URIs rather than building URI
lib/keystone sets KEYSTONE_AUTH_URI and KEYSTONE_SERVICE_URI that
other projects should use rather than building the URL themselves.
This will allow us to more easily drop the port altogether.

Change-Id: I7467aae680215f3045d32a088af2187e1eba8169
2016-05-19 21:44:43 +00:00
Sean M. Collins 6d4843ed96 Neutron: only do ARP_CMD if IP_BRD is not an empty string
Some third party CI systems leave PUBLIC_INTERFACE as the default,
but do not actually create the device. ip would set errno to 1 when
this happens[1], and that's fine - however arping would exit with errno
set to 2, which triggers the exit_trap and stops stacking.[2]

[1]: http://openstack.fit-tecnologia.org.br:10000/36/295836/6/check/hitachi-hnas-ssc/3362683/logs/devstacklog.txt.gz#_2016-05-12_17_24_40_458

[2]: http://openstack.fit-tecnologia.org.br:10000/36/295836/6/check/hitachi-hnas-ssc/3362683/logs/devstacklog.txt.gz#_2016-05-12_17_24_40_545

Change-Id: Iaf08b475eeec5e179a11a42d35fe532b2a15aa41
2016-05-19 15:52:15 +00:00
Jenkins ab539b441d Merge "Updated from generate-devstack-plugins-list" 2016-05-19 01:10:23 +00:00
Jenkins 1441242fcc Merge "Support decompressing bz2 image" 2016-05-19 01:07:39 +00:00
Jenkins 84f83bf5ea Merge "Make ARP_CMD local" 2016-05-18 22:12:25 +00:00
Jenkins 78289075e1 Merge "Always pass $NEUTRON_CONF" 2016-05-18 21:30:51 +00:00
Matt Riedemann 9278eb78df Move setting lvm libvirt configs to hypervisor-libvirt
When the nova backend is LVM we set some libvirt configs
in nova.conf. Those should happen in the libvirt plugin
file rather than the generic nova file since it's specific
to running nova-compute with libvirt.

Change-Id: I37a63a5fba2e9eea4daafe4ec390b2e7aac236f3
2016-05-18 13:38:38 -04:00
Jenkins 4894ac0d29 Merge "Use Neutron extension information to configure Tempest's public network" 2016-05-18 15:36:38 +00:00
Jenkins ade7898e52 Merge "Revert "Switch fernet to be the default token provider"" 2016-05-18 15:35:32 +00:00
Matt Riedemann 153db26970 Revert "Switch fernet to be the default token provider"
This reverts commit 181588b9ba.

Since this change landed on 4/29 it's been the cause of the
top two gate failures (besides known latent infra issues) and
hasn't had good progress on landing a fix, so until it's a
priority for the keystone team we need to revert this change
to get the integrated gate jobs moving again.

Change-Id: I588a84c5179eab072d21bc1394aea2df00929650
Related-Bug: #1577558
Related-Bug: #1578866
2016-05-18 14:05:14 +00:00
Sean M. Collins 17398a3de3 Make ARP_CMD local
Change-Id: Iaa540f7685197a17f1db4c3351373a6d77a80105
2016-05-18 09:58:03 -04:00
Sean M. Collins e7d2b56391 Always pass $NEUTRON_CONF
When running a compute node that only runs n-cpu and neutron-agent,
there are still configuration items that are needed by the agent that
reside in $NEUTRON_CONF - such as the rabbit rpc information.

Change-Id: Ib7f5dde3afb0c19dc88f351c99bc669217952a14
2016-05-18 09:58:03 -04:00
Jenkins b671d83850 Merge "Change the domain name in keystone.conf" 2016-05-18 13:42:43 +00:00
OpenStack Proposal Bot bcfaa0730e Updated from generate-devstack-plugins-list
Change-Id: Ia1ed75b563ee9aabf6b70e0506d8965ca3df6c0a
2016-05-18 06:50:13 +00:00
Ian Wienand bda194adb9 Skip EPEL & RDO install for CI nodes
If the nodepool info file is around, assume we're on a OpenStack CI
node and skip re-installing EPEL & RDO

Change-Id: Ife80af015b26514098e0633f568e3da35b9eea8c
2016-05-18 10:42:56 +10:00
Armando Migliaccio 53f59d802f Use Neutron extension information to configure Tempest's public network
Neutron L3 may implement a variety of extensions: router, external-net,
dvr, ext-gw-mode, extraroute, l3-ha, etc. The public network uuid is
only going to be made available if and only if the external-net extension
is available, because that's the one that provides Floating IP support.

Rather than making Tempest aware of q-l3 service (when q-* services
are supposed to be legacy), it is better to tune this configuration
based on the extension availability. This decouples Tempest from
Neutron setup internals.

Change-Id: I4889fc3d21bd221785b507995f1b3da0e8f52b46
Related-bug: 1582119
2016-05-17 15:20:09 -07:00
Jenkins f5db32dfdb Merge "Wrong container name in devstack "All-In-One Single LXC Container" manual." 2016-05-17 20:07:31 +00:00
Jenkins a898099634 Merge "Set config file to db sync and other manage operation" 2016-05-17 10:42:50 +00:00
Jenkins 3a2e534047 Merge "Update ElasticSearch version default to 1.7.5" 2016-05-17 10:09:02 +00:00
Jenkins 8bbeb9db0a Merge "Nova conf:don't use deprecated option "fixed_key" from group "keymgr"" 2016-05-17 10:08:12 +00:00
bhargavaregalla 69d3b79e03 Wrong container name in devstack "All-In-One Single LXC Container" manual.
Wrong container name in devstack "All-In-One Single LXC Container" manual.

Link: http://docs.openstack.org/developer/devstack/guides/lxc.html

After creating "devstack" container with below command
sudo lxc-create -n devstack -t ubuntu -f devstack-lxc.conf -- --packages=bsdmainutils,git

The name should be 'devstack' instead of 'p2' in the below command
ssh ubuntu@$(sudo lxc-info -n p2 | awk '/IP/ { print $2 }')).

Change-Id: I7a84b97b03b2dd4338f1d946b7eafb8ec6e3767d
Closes-bug: #1582248
2016-05-17 09:34:26 +01:00
Marc Koderer 46f8cb7f20 Add option to download all libs from git
For client debugging that invokes multiple libs it can be useful
to have all libs directly in git and not listing all of them
in LIBS_FROM_GIT.

TrivialFix

Change-Id: Ie631cc4045231ebbe8177d2d113e47e4bf83f61c
2016-05-17 08:57:39 +02:00
Jenkins 59ed73a3d4 Merge "lib/tempest: stop using deprecated config option." 2016-05-17 06:20:19 +00:00
Jenkins 51c93b5780 Merge "Add a deprecation warning for lib/neutron-legacy" 2016-05-17 02:48:08 +00:00
Jenkins 1612941ce4 Merge "Use LVM_VOLUME_CLEAR if set" 2016-05-17 02:47:46 +00:00
Brian Ober 958c169d79 Enable Swift Account Management
This patch enables account management by default in Swift.  This will be
leveraged by Tempest test cases validating account management APIs.

Depends-On: Id29f5ca48f92cd139535be7064107b8a61b02856
Change-Id: Ic01432939ed9b4cf0cbf20e3244d4d76847f539f
2016-05-16 23:00:43 +00:00
Jenkins 7cd7f0576b Merge "Fix return code detection in plugin list generation" 2016-05-16 06:41:29 +00:00
vsaienko d894221457 Replace Q_L3_ENABLED by is_service_enabled q-l3
This patch replaces Q_L3_ENABLED with is_service_enabled q-l3.
Both of them idicates wherever Neutron L3 agent is enabled or not.

Change-Id: I33f0f5a6174d1d170bc2ac1c2e3a096d88d17cc1
2016-05-13 16:04:30 -04:00
Matthew Treinish abde96acd2 Add a deprecation warning for lib/neutron-legacy
This commit adds a deprecation warning for lib/neutron-legacy. Right
now lib/neutron isn't quite in a place where we can use it by default
but we're getting close. As soon as it's passing in the gate we plan
to make a switch over and a hard delete of lib/neutron-legacy. To give
any users which have a hard dependency on it (which is not actually
a supported use case) a heads up this adds the deprecation warning
in front of that change.

Change-Id: Idf1faf2e9dd497f9b97abfcc6e796ca72d60d955
2016-05-12 19:26:20 -04:00
Jenkins 18534b2805 Merge "Neutron refactor: Clarify use of neutron-metadata-agent" 2016-05-12 21:47:29 +00:00
Jenkins 500337b04b Merge "Create service project in service domain" 2016-05-12 21:47:13 +00:00
Sean M. Collins 1cd2828da4 Neutron refactor: Clarify use of neutron-metadata-agent
The commit message of 2a242519f7 indicated
that neutron-metadata-agent was the correct name for the metadata
proxy, but parts of the code were not consistent.

Change-Id: I52f08266a169aeb9005c0f84296fc814d05b90d4
2016-05-12 11:17:39 -04:00
Jens Rosenboom 0afe207cb3 Create service project in service domain
When creating service users, the assumption is that the service
project lies within the service domain, so create it there.

Change-Id: I4880e789f5eaf340634ceb792397eef12a5a6b51
Closes-Bug: 1580998
2016-05-12 14:09:03 +02:00
watanabe.isao 4f4d95a12c Add lost function of is_provider_network
This is a follow up patch of [1].
In [1], source has been moved from lib/neutron-legacy to lib/neutron_plugins/services/l3.
However, one necessary function of is_provider_network is lost.
And this cause devstack install fail.

[1]https://review.openstack.org/168438/

Change-Id: I413b3577ec5b11ee0ee01f2368364117962494bb
2016-05-12 20:39:57 +09:00
Jenkins 4bb4728e6f Merge "Neutron refactor: Fix missing call to init RPC backend" 2016-05-12 06:41:25 +00:00
Jenkins 0a097f366c Merge "Fix _configure_neutron_l3_agent" 2016-05-12 06:08:25 +00:00
Yi Zhao a464ea767a Fix error reported due to re-add ipv6 address
This commit fixes devstack fails when re-stack due to re-add ipv6
address.

Change-Id: I9ff62023dbc29a88aec3c48af331c0a49a1270bb
Closes-Bug: #1579985
2016-05-12 10:32:58 +08:00
Jenkins bba6b2a3fd Merge "Use arping when moving an IP address" 2016-05-11 20:46:41 +00:00
Sean M. Collins 5394cc101d Neutron refactor: Fix missing call to init RPC backend
Change-Id: I2c7f116230f53d3a2460192bc7b513b2e230c736
2016-05-11 16:22:31 -04:00
Sean M. Collins a2ed055810 Fix _configure_neutron_l3_agent
I goofed when moving it over, and it looks like the calls
to _move_neutron_addresses_route got clobbered.

Changes like a0d1b0151a ended up getting
dropped on the floor, so let's reintroduce them.

Change-Id: I3bbfbc56e2c663c47a03659a1dff96443c13af47
2016-05-11 16:22:31 -04:00
Chuck Carmack ea76f319a2 Use LVM_VOLUME_CLEAR if set
There are a few CI efforts going on related to jobs that use the lvm
image backend for the libvirt driver in Nova. We don't want to waste
time zero'ing out volumes during CI runs, so we need a way to configure
nova to not clear the volumes in these jobs.

This change adds a variable used to set the CONF.libvirt.volume_clear
value in nova.conf. If the variable isn't set, Nova just uses the default.

This will be set to 'none' in the jobs that are going to use LVM.

Co-Authored-By: Matt Riedemann <mriedem@us.ibm.com>

Change-Id: I1e97ba6ab4772a87192ae2689a25050d432358ab
2016-05-11 13:39:42 -04:00
Jenkins b1bb5380dc Merge "Begin new lib/neutron" 2016-05-11 16:59:17 +00:00
Sean M. Collins 53b63cc97f Use arping when moving an IP address
This helps fix an issue where an IPv4 address is moved from an interface
and you lose your SSH session.

Change-Id: Idf37ccbaa6f615fcc714d49c3f0c00c893f56021
2016-05-11 11:15:13 -04:00
Jenkins b8680711a6 Merge "Fix ovs-vsctl executed in worlddump.py failed issue" 2016-05-11 06:13:44 +00:00
Jenkins 37f6ea619e Merge "Export the 'short_source' function & don't keep PS4 in sudo" 2016-05-10 21:42:54 +00:00
Jordan Pittier 50f22da895 Nova conf:don't use deprecated option "fixed_key" from group "keymgr"
That option now lives in the "key_manager" group.

Change-Id: I35c2914eaf2a190d6494107260483a6835de3e47
2016-05-10 15:04:44 +02:00
Jordan Pittier f5a50a0fa6 lib/tempest: stop using deprecated config option.
Use the new name instead.

Change-Id: I31f83ec70b8803a29a7be765661517d890ffd6f1
2016-05-10 14:56:12 +02:00
Jenkins 2e9c633683 Merge "Use common tempest tox venv and add plugin install variable" 2016-05-10 01:47:13 +00:00
Sean M. Collins 2a242519f7 Begin new lib/neutron
Background for this work can be read on the mailing list:

http://lists.openstack.org/pipermail/openstack-dev/2016-May/094063.html

Usage of the new Neutron is by setting the following in
ENABLED_SERVICES:

* neutron-api
* neutron-l3
* neutron-agent
* neutron-dhcp
* neutron-metadata-agent

For now, the new neutron library supports just the ML2 plugin, with the
Open vSwitch and Linux Bridge agents supported. All other Neutron
plugins should be creating their own DevStack plugin if they wish for
DevStack to support them. Many of them already do.

Other notable changes compared to neutron-legacy:

* Rely on the Neutron defaults, and force Neutron to make
  sane defaults instead of all kinds of knobs in DevStack.

* Default to rootwrap daemon support

* Use the security group driver by default

* interface_driver can now use NEUTRON_AGENT (linuxbridge, openvswitch), since
  they are entrypoints in neutron's setup.cfg

* Use NEUTRON_AGENT variable to determine which agent to run
  Works with NEUTRON_AGENT set to either "linuxbridge" or "openvswitch"
  Default is openvswitch for the time being.

* Set ML2 configuration for VXLAN support

* Remove Xen hypervisor stuff - it should be a plugin

* Move L3 crud into separate service file:

  There's a lot of L3 configuration that was in the main neutron file, but
  a lot of it is self contained and can be moved into its own file.

  The new l3 service file will contain all the previous L3 plumbing and
  configuration that the OpenStack Gate expects, while also eventually
  moving the whole l3 network creation step into a single hook that can be
  overridden by plugins.

* Introduce a check for a function "neutron_plugin_create_initial_networks" which
  will become the mechanism through which different topologies, and
  networking plugins can create and wire the initial networks that are
  created during a stack.sh run.

The new lib/neutron is considered experimental, and followup patches
will build upon this one. Existing users of lib/neutron-legacy should
remain unharmed.

Co-Authored-By: Hirofumi Ichihara <ichihara.hirofumi@lab.ntt.co.jp>
Co-Authored-By: Dean Troyer <dtroyer@gmail.com>
Change-Id: I31b6362c6d9992f425f2dedbbeff2568390a93da
2016-05-09 14:26:08 -04:00
Jenkins ab7e062f5d Merge "Revert "Update auth params in Nova Hypervisor-Ironic"" 2016-05-09 16:44:31 +00:00
Dmitry Tantsur 3b79e5f9f7 Revert "Update auth params in Nova Hypervisor-Ironic"
This seems to break Ironic gate with n-cpu not starting
any more.

This reverts commit c527ded91b.

Change-Id: Idfb01448e8ecf53fbd2e1df61c8f08f3107981ac
Closes-Bug: #1579683
2016-05-09 09:36:04 +00:00
Ian Wienand db01ca6d16 Fix return code detection in plugin list generation
As can be seen in logs of the periodic generation job, our cgit does a
weird thing where sometimes it returns a 404 page with content, and
sometimes a zero response (see [1] for example, the last number is
response size).  This appears to be an openstack CI issue; possibly
due to cgit caching or similar (see [2] for manual test).  It will
have to be investigated with the host apache logs.

This is resulting in a lot of projects incorrectly being picked up as
having plugins (I7116571d2a2b1fc3a61e5f1ed46ac2cbc244775a).  I'm not
sure if this problem is also releated to the original status-code
issues mentioned in the code, but testing shows that cgit is correctly
returning 404's for missing files (you can see in the logs [1]).  Thus
switch the logic to examine the return code which avoids this issue.

[1] http://logs.openstack.org/periodic/propose-devstack-plugins-list/e55790c/console.html.gz#_2016-05-04_06_46_51_660
[2] http://paste.openstack.org/show/496434/

Change-Id: I6a06347d91d091441f6f7b70f99aba6d8e9add4b
2016-05-09 13:19:09 +10:00
yan.haifeng 6ba17f7d01 Fix ovs-vsctl executed in worlddump.py failed issue
add sudo before ovs-vsctl command.

Change-Id: I1a7dd9504da766beb452bd749e325931678de64e
Closes-Bug: #1576560
2016-05-09 03:02:15 +00:00
Einst Crazy 4f55c2d5c3 Set config file to db sync and other manage operation
Currently, the db sync operation does not specify the config dir or
config file.
If there is a config file in the home path, it will use this one,
but not the right one devstack write.

Set config file to these operations.

Change-Id: Id1fbc3d85280c19596f5ebd301c46bcf018fa2f6
Closes-Bug: #1578098
2016-05-09 01:43:32 +00:00
Hongbin Lu 3feceb0e4a Support decompressing bz2 image
CoreOS cloud image is compressed with bz2 extension [1]. In such
case, we need to decompress the image before uploading it to glance.

[1] https://coreos.com/os/docs/latest/booting-on-openstack.html

Change-Id: I705d0813d180aefaa2507c00d1ae40af07d12fcf
2016-05-06 21:07:18 -04:00
Jenkins 251b870e85 Merge "Update auth params in Nova Hypervisor-Ironic" 2016-05-06 20:50:07 +00:00
Jenkins 0030c41786 Merge "removed dead link to stack.sh.html" 2016-05-06 20:50:00 +00:00
Jenkins cb05ad0eac Merge "Added fix to install zookeeper for fedora" 2016-05-06 20:49:53 +00:00
Jenkins 8bee429a7a Merge "Suppressed echoing of the line." 2016-05-06 20:49:45 +00:00
Jenkins 036f93853c Merge "Update to bashate 0.5.1" 2016-05-06 20:49:40 +00:00
Jenkins ea15ca1318 Merge "Adjust region name for images, networks and volumes during deployment" 2016-05-06 20:48:53 +00:00
John L. Villalovos daa7a41e21 Export the 'short_source' function & don't keep PS4 in sudo
Export the 'short_source' function so that it will be present in the
environment for child shell scripts. Do this because we are passing PS4
to the child shell scripts and it is using 'short_source'

Don't do an 'env_keep' in the sudoers file for PS4, since it is
difficult to also pass along the 'short_source' function.

Change-Id: I9781010d6eb336d02939c7fd47f18bedeae5ccc6
Closes-Bug: #1563443
2016-05-06 10:50:58 -07:00
Travis Tripp b523f3108f Update ElasticSearch version default to 1.7.5
Devstack installs elasticsearch version 1.4.2 by default.
This version is really out of date and you can't run kibana
4.x against it.  We are working towards 2.x support [0],
but in the meantime would like our example to install a more
recent version of ES.

[0] http://lists.openstack.org/pipermail/openstack-dev/2016-April/092583.html

Change-Id: I9ca244f8b817dd9c5f6d7435e347df28282db0a9
2016-05-05 10:23:16 -06:00
Jenkins 8d27280f3e Merge "Handle common and seperate tempest tox venvs" 2016-05-04 21:54:17 +00:00
Matthew Treinish 655c22c77f Add an explicit test-config phase to devstack plugins
This commit adds a new phase to the devstack plugin interface for
configuring test environments. It runs after everything in devstack
(except for the final output commands) to ensure that tempest or
any other dependency is installed prior to running it.

Change-Id: I52128756f18d3857963a0687de77f7cdfd11fb3e
2016-05-04 17:31:45 -04:00
Jenkins 8f9e545513 Merge "Remove NOVA_V2_LEGACY option" 2016-05-04 20:41:46 +00:00
Jenkins e917b44c2a Merge "Remove unused tempest options" 2016-05-04 20:38:47 +00:00
Bernd Mueller b1518427c6 removed dead link to stack.sh.html
the referenced file was removed with the following change
Ie7f4b265368f1d10a8908d75e11d625b2cc39e7c

Change-Id: I0e25b1f38e0969037d1c8af367432da56bb12e92
2016-05-04 22:33:21 +02:00
Jenkins 5899d20bc3 Merge "Set default value and configurable value for integration bridge" 2016-05-04 16:44:28 +00:00
Matthew Treinish 440464ccbb Use common tempest tox venv and add plugin install variable
This commit adds a new variable to lib/tempest to provide the plugins
that should be installed into common tox venv that gets created. In
order to make this work the workarounds to handle migrating to a common
tox venv have to be removed otherwise the plugins could be installed in
a venv that isn't used.

Change-Id: I63658b8d8dfa999e0feb79f8f2968f2b32e3ff57
Depends-On: Iab2e6e04b6c5795a4d0c8214564106525b942308
2016-05-04 11:55:12 -04:00
Matthew Treinish b31640af5e Handle common and seperate tempest tox venvs
In order to support the effort to unify the tox venvs being created
by tempest this commit temporarily cases the path of the venv being
created. Once tempest is updated to only use .tox/tempest we can
remove the if blocks and just use it unconditionally.

Change-Id: I34a69020eee07156e64026781a3c0bffdb5ab415
2016-05-04 11:44:06 -04:00
pratik-gadiya 5069b8d894 Added fix to install zookeeper for fedora
Partially Implements: #1513855

Change-Id: Ic302461f38d76183b75cc8de0a25fa84a8a8ff69
2016-05-04 07:33:21 -04:00
Rabi Mishra d1c9198bbe Change the domain name in keystone.conf
As we are creating a domain with id 'default' and name
'Default', we should iniset the correct name.

Change-Id: If67338fbbd255b8aa1b91e18e4cf8213baebab95
2016-05-04 16:11:09 +05:30
Jenkins a5c1a93096 Merge "Update is_service_enabled" 2016-05-03 23:09:21 +00:00
Jenkins 125055e598 Merge "Remove tempest-lib setup" 2016-05-03 23:09:14 +00:00
Jenkins 24fe4a3c69 Merge "Remove deprecated references to g-search" 2016-05-03 23:08:40 +00:00
Brant Knudson 841fdafa0b Use path-mounted keystone when running in httpd
When running in httpd, keystone accepts requests on /identity and
/identity_v2_admin.

The path endpoints should be preferred over the ports so keystone
is configured to point applications to the path endpoints by
setting admin_endpoint and public_endpoint.

Change-Id: I34569b9e03c3f36748c92d803349e22a7ee1a633
2016-05-02 19:10:18 -05:00
Jordan Pittier a046b6052a Remove tempest-lib setup
Tempest-lib, as a standalone project, is deprecated in favor of a
"lib/" directory inside Tempest's repo. So remove the installation
of tempest-lib in DevStack.

Change-Id: I507bfe875777fd25bbe5d67c861f3fca99faa22d
2016-05-02 11:59:52 +02:00
Ken'ichi Ohmichi 269704c119 Remove NOVA_V2_LEGACY option
There are two implementation code for similar API in Nova repository.
One is newer: v2.1 API, another is legacy: v2 API. v2.1 API has been
used as the default API since Liberty and legacy v2 API has been marked
as deprecated. We have used and tested v2.1 API so well and now is
nice time to remove legacy API code based on the consensus of the
design summit of Austin.
This patch removes NOVA_V2_LEGACY which set up legacy API code.

NOTE: The gate job which uses this NOVA_V2_LEGACY option has been
      removed already since Iac81b7d569b76b99e9d86eaa5001ae7f9b78cdfe.

Partially implements blueprint remove-legacy-v2-api-code

Change-Id: I0e16b7ce608d7eeb3a35fd77e66531dfc8c142ef
2016-05-01 07:24:11 -07:00
Sachin Patil aac43e1e71 Suppressed echoing of the line.
I think the objective of the line is to display message, but it was
also echoing entire line before printing the message.

Change-Id: I758759638003deec3205983863f4b7e23ba94e89
Signed-off-by: Sachin Patil <psachin@redhat.com>
2016-04-30 14:11:52 +05:30
OpenStack Proposal Bot 13b3be10a7 Updated from generate-devstack-plugins-list
Change-Id: I5fdf1e4a7bb0fbb9fa9b3ca96f42b87bd7f38d0d
2016-04-30 06:51:53 +00:00
Jenkins 602a455746 Merge "Remove vpnaas code from devstack" 2016-04-29 22:33:16 +00:00
Jenkins 5b83e986de Merge "Switch fernet to be the default token provider" 2016-04-29 17:27:15 +00:00
Ihar Hrachyshka 1a791cbc44 Remove vpnaas code from devstack
This service is now configured by devstack plugin in master.

Change-Id: Ie5fc0d2a45c1b564f98c69ec9ea6fbdeeb465d32
2016-04-28 12:39:26 -07:00
Victor Ryzhenkin 878d7d8f13 Adjust region name for images, networks and volumes during deployment
In a multiregion installation of devstack, conflicts occur in the
creation of images, networks, or volume types, when the region is not
set.

This patch adjusts commands to include the region, and
also adjusts the region_name in the nova configuration section of
neutron.conf to include the region.

Change-Id: Ifedff6a124fa49d57cc7b2f35916d8d96f5e5f7a
2016-04-28 15:13:58 +00:00
John Kasperski 7b3ae53328 Update is_service_enabled
The nova check in is_service_enabled() is loading the nova repo
when ENABLED_SERVICES=ovn-northd.  Add a comma before each of the
checks to prevent this error with any of the other services.

Change-Id: I9deee735812cde44ea5140b1ad76848f02576609
Closes-Bug: #1574431
2016-04-27 12:13:16 -05:00
Mike Trimm 1da4e790eb Added RHEL rebuild ScientificLinux to supported distributions
Change-Id: I8b3844bf28b11254e7cc9a96126bd66efbd1212e
2016-04-27 11:40:25 -05:00
Sylvain Baubeau 7fa0efffab Remove deprecated references to g-search
Commit 020586fab4 removed support
for g-search as it was promoted to its own project. The devstack
plugin for Searchlight triggers the installation of elasticsearch,
so it can be removed from upstream devstack.

Change-Id: Iada75fc59c66b776c506431f93deb668ab0a84b9
2016-04-26 20:45:43 +02:00
Jenkins 96ffde28b6 Merge "Fix ironic compute_driver name" 2016-04-26 10:21:17 +00:00
Ian Wienand c8af407eb2 Update to bashate 0.5.1
This minor release of bashate just fixes one small issue with python3
compatability.  This is an alternative to
Ic91b5ce8cb85e376573f9bf3659d2a86cc437179.

Change-Id: Ie5ad29003cf80a332b9a9258749757a15de79966
2016-04-26 17:53:45 +10:00
vsaienko e3a04dd857 Fix ironic compute_driver name
This commit fixes breaking change [0].
Long driver names like 'nova.virt.libvirt.libvirtDriver' are
no longer available and 'libvirt.libvirtDriver' should be used
instead.

Reference:
[0] https://review.openstack.org/309504

Change-Id: I27a1b75b921c7401bc8614caadfd1e09e7dd5d65
Closes-Bug: 1574990
2016-04-26 10:26:30 +03:00
Daniel Gonzalez 336390f9b3 Set user/project domain ID when using keystone v3
Change I24546f02067ea23d088d383b85e3a78d7b43f165 aimed to use
keystone v3 as default in devstack. The change was later reverted in
Ia792b23119c00089542ba08879dca1c29dc80945 because it broke some
projects.
This patch contains a small portion of the first change to set the
environment variables $OS_USER_DOMAIN_ID and $OS_PROJECT_DOMAIN_ID in
openrc, so that users don't have to set them manually when using
keystone v3.

Change-Id: Ie4c316d60590d55830d417f13817298dac70864f
Partially-Implements: bp keystonev3
Closes-Bug: 1387814
2016-04-25 11:51:19 -05:00
OpenStack Proposal Bot c4a0d21436 Updated from generate-devstack-plugins-list
Change-Id: I376abd75e0d0ce77c35b106a4e9c8c3e23247eb4
2016-04-23 06:55:18 +00:00
Ken'ichi Ohmichi 229685112d Remove unused tempest options
Since I380dd20e5ed716a0bdf92aa02c3730359b8136e4 , tempest options
tempest_username and tempest_tenant_name have been added.
However, they are never used at all.
So this patch removes them for the cleanup.

Change-Id: Ic40047c5903d664e4a2d5eea88ff788e39d1e416
2016-04-22 20:15:11 -07:00
Matt Riedemann ae4578bed9 Revert "Don't check for existing endpoints"
This reverts commit 7d1ec43004.

This broke the sahara and layer4 dsvm jobs. The layer4 job
is voting on tempest changes so tempest is also broken.

Change-Id: Ide69f10cd85bf7ff0d86bc8cba56dedd26850362
Partial-Bug: #1573868
2016-04-23 01:45:40 +00:00
Sean Dague 7d1ec43004 Don't check for existing endpoints
We really should only have code that create endpoints once, making all
osc calls get_or_set adds 3 seconds per call for no really good
reason.

This also stops creating the internal endpoints in the service
catalog. It's a pattern that we're trying not to propogate, so lets
not have it in devstack any more.

Change-Id: Ia8cefe43753900d62117beae330db46deb6a9fc9
2016-04-22 10:44:10 -04:00
Huan Xie bea1e1954a Set default value and configurable value for integration bridge
When using XenServer as hypervisor, install_os_domU.sh will create
integration bridge for compute node when neutron network is used.
But it should provide a way to allow moving of the VM to another
host (with a different XEN_INTEGRATION_BRIDGE) for easier install.
This patch is to provide the way to let user have the chance to
configure integration bridge themselves

Change-Id: If923a5e978e77fc091d24b6e1fe7a83a3375da09
2016-04-22 06:21:52 +00:00
Jenkins 54f331969f Merge "remove clouds.yaml in clean.sh" 2016-04-21 20:01:54 +00:00
Jenkins d57d52be48 Merge "Fix Q_PLUGIN_EXTRA_CONF_PATH usage comment" 2016-04-21 20:00:48 +00:00
Jenkins f8c938502b Merge "Remove additional '/' in Q_PLUGIN_EXTRA_CONF_FILES" 2016-04-21 19:53:39 +00:00
OpenStack Proposal Bot 648c4c25f7 Updated from generate-devstack-plugins-list
Change-Id: I6f0a481f95055ed9334a57d50a68b077eace1e07
2016-04-21 06:58:55 +00:00
Jenkins 039fc1a542 Merge "Allow putting service users in a seperate domain" 2016-04-20 21:49:02 +00:00
Jenkins 290b6f204b Merge "Deprecate SERVICE_TENANT" 2016-04-20 21:22:58 +00:00
Jenkins 878c2b98e6 Merge "Fix DevStack failure in multi-region setting" 2016-04-20 20:42:24 +00:00
Clenimar Filemon c527ded91b Update auth params in Nova Hypervisor-Ironic
As Nova hypervisor uses deprecated parameters when trying to
authenticate to Ironic, as well as a hardcoded /v2.0 endpoint, a fatal
error occurs when creating a keystone v3-only devstack.

This patch updates auth parameters (ironic section in nova.conf) that Nova
uses when trying to connect to Ironic to v3 parameters.

Change-Id: I2d7ebf750115613aa917448f20daaece614633ef
2016-04-20 13:59:42 -03:00
Tom Patzig 67223b0265 Fix Q_PLUGIN_EXTRA_CONF_PATH usage comment
The bug #1542282 added Q_PLUGIN_CONF_PATH to the comment on how to use
Q_PLUGIN_EXTRA_CONF_FILES. But the right variable name is
Q_PLUGIN_EXTRA_CONF_PATH; this patch fixes this comment.

Change-Id: I6b6b39068fe54509b1bb8af47ae0b21dd77c444a
Related-Bug: #1469434
Closes-Bug: #1542282
2016-04-20 15:11:51 +02:00
Jenkins 3e4c25b6c2 Merge "Add heat_stack_owner role required by tempest" 2016-04-20 06:21:24 +00:00
Brant Knudson 181588b9ba Switch fernet to be the default token provider
Use the fernet token provider as the default for keystone.

 The Keystone token provider of choice is changing from UUID to Fernet.
 However, due the the need for multi-site keystone deploys to have keys
 kept in sync, we cannot change the default in upstream Keystone
 without  breaking existing deployments.  Fernet requires a deliberate
 setup step like what is done in devstack.  Making the change in
 devstack documents the expected setup.

Change-Id: I8c0db244634b0861b0eb3c48fe6ede153f7f04f2
2016-04-19 19:04:37 +00:00
Tom Patzig 73467041b6 Remove additional '/' in Q_PLUGIN_EXTRA_CONF_FILES
Currently there is added an obsolote/wrong '/' when passing
Q_PLUGIN_EXTRA_CONF_FILES to the service start arguments.
Thats not a problem when using absolute paths, but wrong for
relative paths. This patch removes that extra '/'.

Change-Id: I2136d39889eaf83ecfcc711c733e95e261f455e0
Closes-Bug: #1572192
2016-04-19 17:02:34 +02:00
OpenStack Proposal Bot f9d10ebdf1 Updated from generate-devstack-plugins-list
Change-Id: Id0201da590a6af83b2b6dd26da811cd67975f6eb
2016-04-19 06:46:31 +00:00
Jenkins d55b83f824 Merge "Add volumev3 endpoint for Cinder" 2016-04-19 05:52:50 +00:00
Jenkins 16f72277be Merge "Updated from generate-devstack-plugins-list" 2016-04-19 00:12:12 +00:00
Jenkins 06f1ddd886 Merge "worlddump: request Guru Mediation reports for neutron agents" 2016-04-18 20:28:58 +00:00
Alex Meade 06c7a4404e Add volumev3 endpoint for Cinder
Change-Id: I97caa6bfababf7d1cc714296ae66f77d22bf24ab
2016-04-18 17:32:22 +00:00
OpenStack Proposal Bot 262ecba899 Updated from generate-devstack-plugins-list
Change-Id: I9078900f98721336daf1aab4a812eed96f8b1588
2016-04-18 06:53:45 +00:00
Jenkins 4e7804431a Merge "Move nova's api_paste_config into wsgi group" 2016-04-18 03:38:43 +00:00
Jenkins 9b4856fc83 Merge "Fix Q_PLUGIN_EXTRA_CONF_FILES usage comment" 2016-04-18 02:34:20 +00:00
Jenkins fd33a08a88 Merge "Be a bit more explicit about the plugin generation" 2016-04-18 02:26:52 +00:00
Jamie Lennox cbcbd8f33c Allow putting service users in a seperate domain
Make it possible to construct the service users in their own seperate
domain. Changing this away from Default will not work for everyone yet,
though it does work for basic service interaction however enabling it
will allow us to start testing and hopefully gating that services aren't
relying on v2 only concepts.

Change-Id: I7e73df5dd1caabf355783da2bc0f3007ade92fba
2016-04-18 09:59:52 +10:00
OpenStack Proposal Bot 4b267082a2 Updated from generate-devstack-plugins-list
Change-Id: I6a32144d4d210ebef8d770baf840fa90e345b3d1
2016-04-16 06:52:53 +00:00
Jenkins 3d0981398a Merge "Updated from generate-devstack-plugins-list" 2016-04-15 21:55:09 +00:00
Andreas Jaeger fdb3883146 Add venv tox environment
This environment is used by the normal docs job, add it.
Manually add requirements needed for doc building.

Change-Id: I1be193d113683966f6a76e862713f3a550543168
2016-04-15 21:06:45 +02:00
Boden R 82bca44845 Fix Q_PLUGIN_EXTRA_CONF_FILES usage comment
Related bug #1469434 fixed the usage comments for
Q_PLUGIN_EXTRA_CONF_FILES. However that change didn't
make it into neutron-legacy. This patch updates the comments
in neutron-legacy to reflect proper assignment of
Q_PLUGIN_EXTRA_CONF_FILES as well indicate
Q_PLUGIN_CONF_PATH is required when using extra conf files.

Change-Id: I447f1158d333ac4a35c4903a509146a62d93b272
Related-Bug: #1469434
Closes-Bug: #1542282
2016-04-15 10:56:09 -06:00
Ihar Hrachyshka ef219bfcaf worlddump: request Guru Mediation reports for neutron agents
Those reports may be helpful when debugging neutron gate issues.

pgrep is backwards compatible with old Solaris tools, which means it
does not match with commands that are longer than 15 characters. To
avoid that for neutron agent names which are longer than that, we need
to pass -f argument to match against the full cmdline.

Also killall instead of kill + pgrep in a subshell.

Change-Id: I9b3801e927c0e80443ed76e38cd8e3618e888e49
2016-04-15 08:27:54 +02:00
OpenStack Proposal Bot fb44bc30fd Updated from generate-devstack-plugins-list
Change-Id: Ifd1fbd0a9e8c433119e30299ef417d70c9b967a0
2016-04-15 06:10:04 +00:00
Rabi Mishra 955609356a Add heat_stack_owner role required by tempest
Create specific heat_stack_owner role to be used by
tempest tests, rather than using _member_ which is not
automatically created in keystone v3.

Change-Id: Iff13a47e360b628bc48a8cb897d9368af49db01b
Partial-Bug: #1539692
2016-04-15 09:49:05 +05:30
Jenkins 406b45b81a Merge "Remove shocco docs and other cleanups" 2016-04-14 21:24:25 +00:00
Jenkins 9adb22e660 Merge "Revert "WIP - Remove lbaas from devstack proper"" 2016-04-14 20:02:12 +00:00
Jenkins 19c7842e4f Merge "Add variable SWIFT_STORAGE_IPS" 2016-04-14 19:50:17 +00:00
ZhiQiang Fan 0b4a009e56 remove clouds.yaml in clean.sh
devstack failed to install because glance:
Could not determine a suitable URL for the plugin

patch I618ea8e27b49af360c905df85af06d9b1eef8407 tries
to fix this problem, but with a wrong way because path is not
correct, the clouds.yaml is not under /path/to/devstack/~/.config/openstack/
but ~/.config/openstack.

patch I8af6bd465f74099c560dddba6b5221dd79cbc965 tries to
fix this problem, but with a worng way to specify the path,
~$STACK_USER/.config/openstack/clouds.yaml will not expand with
a variable, only const string can.

$ whoami
zqfan
$ touch ~/.config/openstack/clouds.yaml
$ export STACK_USER=zqfan
$ rm -rf ~$STACK_USER/.config/openstack/clouds.yaml
$ ls ~/.config/openstack/
clouds.yaml

Change-Id: I549817d2f4638be615991c1726b39d270ba71357
ref: I618ea8e27b49af360c905df85af06d9b1eef8407
2016-04-15 02:27:35 +08:00
Christian Schwede 91d2245d6e Add variable SWIFT_STORAGE_IPS
If the variable SWIFT_STORAGE_IPS contains a space-separated list of
IPs, we can use this to create consistent rings across all proxy and
storage nodes.

Change-Id: If9307196dc7e74e4a842c95503958ae2d7f7acc7
2016-04-14 14:16:55 +02:00
Ian Wienand 982b9911fb Deprecate SERVICE_TENANT
This is a follow-on to I6f392d3c16726f6dd734184dcf3014fb4f388207 to
note the variable is kept for backwards compatibility.

Change-Id: I1008b2d4e2baf82e1aa531d9eaf96a084beb69aa
2016-04-14 13:41:34 +10:00
Jenkins a344608ca9 Merge "Add installation support for Oracle Linux 7" 2016-04-14 01:42:02 +00:00
Armando Migliaccio b3f26cb66c Revert "WIP - Remove lbaas from devstack proper"
The WIP prefix and the statement

"This can't merge until p-c no longer references lbaas jobs."

Should have been an indication that this patch is not quite ready to
go in as is.

This reverts commit 130c3adb0e.

Change-Id: I57d5f9f2e66b1bdf6fca70074bc1d5678de65f38
2016-04-13 23:51:20 +00:00
Jenkins 6452968cc9 Merge "In worlddump, execute ovs-ofctl for an only existing bridge" 2016-04-13 23:48:51 +00:00
Jenkins a5bc067991 Merge "update docs to reference project not tenant" 2016-04-13 23:36:42 +00:00
Jenkins 2e23e64151 Merge "change tenant to project in keystone bootstrapping" 2016-04-13 23:35:52 +00:00
Jenkins a061138535 Merge "convert tenant -> project for internal variables" 2016-04-13 23:29:52 +00:00
Ian Wienand 7cd16ce48a Remove shocco docs and other cleanups
This is a fairly opinionated change to do some spring cleaning on the
documentation.

The current output of shocco as rendered at [1] is completely broken.
I can not see that it is worth us maintaining this.  Honestly, the
github page does a better job at showing the scripts with a bit of
formatting.  The "changes" page is similarly useless today.  cgit or
github show allow browsing of changes in the repo better.  Both are
removed along with support scripts.

When you currently hit the first page, it gives no clue as to what
DevStack actually is.  Add a paragraph explaining that, and link to
the cgit for easy source browsing.

stackrc.rst is not necessary; the stuff about database backends is
already discussed in configuration.rst; move the things about service
repos into a section of configuration.rst.

The discussion in openrc.rst is moved into the configuration.rst file.

localrc.conf.rst was just a paragraph pointing back to
configuration.rst; this is removed.

The variables described in exercise.rst are moved into a separate
section of configuration.rst

[1] http://docs.openstack.org/developer/devstack/#scripts

Change-Id: Ie7f4b265368f1d10a8908d75e11d625b2cc39e7c
2016-04-14 07:55:38 +10:00
fumihiko kakuma 578459f808 In worlddump, execute ovs-ofctl for an only existing bridge
When devstack fails, some or all bridges may not exist.
This change allows an only existing bridge to executes ovs-ofctl command.
And fix duplicate ofp version specified in protocol option of ovs-ofctl.

Change-Id: Ied01de727ca9b867ce87db358f72ae44838b63af
2016-04-14 07:25:05 +10:00
Fernando Ribeiro 4e6f8ca670 Add installation support for Oracle Linux 7
This removes Oracle Linux 6 support ("OracleLinux") which, like RHEL6,
is now unsupported.  "OracleServer" matches Oracle Linux 7.

Change-Id: I35b1c7d0b103c509283dba0f6551453e7d8ac4cc
Closes-Bug: #1568634
2016-04-14 07:14:04 +10:00
Jenkins 8bd1750e6a Merge "Add execution bit to generate-devstack-plugins-list.sh" 2016-04-13 20:00:11 +00:00
Jenkins c87457bae1 Merge "Use configured values instead of default value" 2016-04-13 17:17:15 +00:00
Jenkins c93ccfcc1a Merge "print statment has become a function in py3" 2016-04-13 17:17:08 +00:00
Jenkins 03b0f0b845 Merge "Remove driver certs directory" 2016-04-13 17:17:01 +00:00
Jenkins a7a4ad8d59 Merge "WIP - Remove lbaas from devstack proper" 2016-04-13 17:11:03 +00:00
Masayuki Igawa d0931db1e8 Add execution bit to generate-devstack-plugins-list.sh
This commit adds an execution bit to generate-devstack-plugins-list.sh.
This should be useful for users.

Change-Id: I12d0a257eb1d487979d044c2e52e824a6ea4c02d
2016-04-13 19:05:01 +09:00
Jenkins 9ce61fbd44 Merge "Replace deprecated config option [DEFAULT].rabbit_vritual_host" 2016-04-13 01:48:29 +00:00
Jenkins 5432cbc407 Merge "Revert "Work around broken rabbitmq 3.6.1 packages on Fedora 23"" 2016-04-12 20:39:12 +00:00
Jenkins 8e3809aead Merge "Fix usage of tempest utils during config" 2016-04-12 16:57:07 +00:00
zhiyuan_cai 6f1781f968 Fix DevStack failure in multi-region setting
In stack.sh, REGION_NAME is used to set environment variable
OS_REGION_NAME before using OpenStack client to configure accounts
for services. OpenStack client will try to find Keystone endpoint
in REGION_NAME to send the requests.

However, in the case of deploying multiple DevStack instances in
different regions with shared Keystone, Keystone is only running
in one the of region. When installing DevStack for the region that
does not host Keystone, OpenStack client will fail to find the
Keystone endpoint and thus DevStack fails to start.

This patch fixes this bug by introducing KEYSTONE_REGION_NAME for
user to specify which region Keystone is running in. Document of
multi-region setup is also updated.

Change-Id: I3e82c7ff69326d4171623299ffecea103d40c80d
Closes-Bug: #1540802
2016-04-12 14:54:11 +08:00
Jenkins 09a710bc2f Merge "Replace vivid support with xenial" 2016-04-12 01:33:43 +00:00
Ian Wienand cb32230e52 Revert "Work around broken rabbitmq 3.6.1 packages on Fedora 23"
This reverts commit 616957d598.

Fixed packages are released to F23 stable

Change-Id: I6c1ecaf9afb78afa3051922eb8347a2610e57416
2016-04-12 10:31:22 +10:00
Matthew Treinish e8f3f7aa0d Fix usage of tempest utils during config
Most of the tempest utilities need at least a partially setup
configuration file to work properly. This is because most of them
make api requests in order to perform the expected operations.
This causes a bit of a chicken and egg problem when we rely on
these utilities for configuration purposes since we don't know if
we have enough of a configuration file to run things. This previously
wasn't an issue because all we needed to run was verify-tempest config
and it wasn't in a critical path just for api extension discovery and
it wasn't relied on. But, with the addition of tempest preprovisioned
credentials we rely on a tempest util to create the credentials we
use for running things. We need to ensure the util has as complete of
a config file when it's run to ensure that everything is in the
correct state.

This commit moves the running of all tempest utils and the associated
iniset calls to the end of the configure_tempest function to ensure
that the utils have as complete a config file as possible.
Additionally, it makes all tempest util calls are venv isolated. (which
is mostly future proofing for when things are branched on stable)

Change-Id: I5844aed4e134fbc7210aa0eca83500e260915b7b
2016-04-11 13:04:20 -04:00
Markus Zoeller b6259586bf Replace deprecated config option [DEFAULT].rabbit_vritual_host
The test job "gate-tempest-dsvm-cells" uses the Nova cells concept.
This triggered a deprecation warning:

    WARNING oslo_config.cfg [...]
    Option "rabbit_virtual_host" from group "DEFAULT" is deprecated.
    Use option "rabbit_virtual_host" from group "oslo_messaging_rabbit".

This change removes that warning.

Change-Id: Ieaf437ecbf58edb8994f6afcb0ac2afcd5585a1e
2016-04-11 10:17:55 +02:00
Huan Xie 2f5596e590 Use configured values instead of default value
Variables PUBLIC_INTERFACE_DEFAULT and GUEST_INTERFACE_DEFAULT
are only use to provide default value, deployment script should
not use such values directly

Closes-Bug: #1566768

Change-Id: Ib543b416df861086fa2edbe7df769b224d0b0add
2016-04-10 20:05:43 -07:00
Ian Wienand e8177a5412 Be a bit more explicit about the plugin generation
Make the warning in the auto-generated file stand-out a bit more, so
people don't waste time trying to add entries that appear
automatically.

Change-Id: Icf4290e1fad21ce72af54c178bafcce0b287cdf6
2016-04-11 11:45:02 +10:00
Eyal e7361775c1 print statment has become a function in py3
Change-Id: Ia616e1fdd4c3fc8e1a36b026e0c3e2a568dc6517
2016-04-10 08:30:29 +03:00
Matt Riedemann 3888098245 Move nova's api_paste_config into wsgi group
Change 0b9e378cca2be4e034ad401d71fbe4470907f93a moved the
api_paste_config from the DEFAULT group to the wsgi group
and deprecated it's usage in DEFAULT.

Change-Id: I283db638e76b986d3e728c6caf34a0b3f37fc9b6
2016-04-09 21:42:24 -04:00
Paul Belanger cdf9c0f73b Replace vivid support with xenial
Ubuntu vivid support is EOL lets make room for xenial.

Change-Id: I21c4966c80e0b5fc2b1a7448020dd1c75e0070ad
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-04-08 14:54:18 -04:00
Jenkins 846254620e Merge "Revert "Revert "Use unversioned keystone endpoints""" 2016-04-08 15:47:24 +00:00
Ian Wienand e9820732f1 Fix table in generated plugins list
Fix the table with a bottom border.  Regenerate the plugin list using
the script to make sure it works this time.

Change-Id: Iab3eb3879fd6017c55259e470477e4a9e34514e2
2016-04-08 09:10:55 +10:00
Armando Migliaccio 8dda061a1f Revert "Revert "Use unversioned keystone endpoints""
This reverts commit da1ca6e07c.

Depends-on: Id2c7e09611c1f8b06e6d272589b4ea3435b8de86
Change-Id: I1b2a65179b5863d8bcbc5dd02b615f4e6e564213
2016-04-07 17:00:37 +00:00
Jenkins 6b6d48eaff Merge "Fix create_flavors on subnodes" 2016-04-07 00:40:31 +00:00
Jenkins 2bf6095925 Merge "Revert "Use unversioned keystone endpoints"" 2016-04-07 00:10:16 +00:00
Armando Migliaccio da1ca6e07c Revert "Use unversioned keystone endpoints"
This reverts commit 4921d4dbb9.

Change-Id: Ic8888fca5d25ca6caa3f29f712db319f1d3869ba
2016-04-06 21:57:28 +00:00
Jenkins 449ab10989 Merge "Remove project_id from nova service urls" 2016-04-06 21:19:12 +00:00
Dan Smith d3d21394db Fix create_flavors on subnodes
This makes us depend on n-api being enabled, which should avoid running
this on subnodes, where it fails because of no credentials.

Change-Id: I209bd59cd57be27c3375f5a2074361307abcafe9
Closes-Bug: #1567065
2016-04-06 14:06:00 -07:00
Jenkins 5df868e83d Merge "Fix a typo in comment for _get_ofp_version" 2016-04-06 18:38:28 +00:00
Jenkins 4bb3e20655 Merge "Use unversioned keystone endpoints" 2016-04-06 18:31:02 +00:00
Jenkins cb1b506d99 Merge "Create default flavors in nova" 2016-04-06 17:53:35 +00:00
Jenkins 9ed1a5c43c Merge "Skip rescue tests for cells v1" 2016-04-06 16:46:13 +00:00
Jenkins 5652f53715 Merge "Use configure_auth_token_middleware for neutron" 2016-04-06 16:45:52 +00:00
Jenkins 6109a6b7a9 Merge "Work around broken rabbitmq 3.6.1 packages on Fedora 23" 2016-04-06 13:29:16 +00:00
Sean Dague db48db1cf0 update docs to reference project not tenant
Change-Id: Iad66e14fa33609ea6d2a115469e054762051b964
2016-04-06 08:09:31 -04:00
Ian Wienand 616957d598 Work around broken rabbitmq 3.6.1 packages on Fedora 23
Downgrade this package until we have a fix for the bug in the
comments.

Change-Id: I980d625fec7b11aff74814ee2d24fe9650e9f0a6
2016-04-06 17:27:01 +10:00
Sean Dague 7f87efdd21 Remove project_id from nova service urls
Nova API itself supports both URL modes:
  with project-id and without project-id
However, we are changing service catalogs for removing project-id
based on the discussion.
We have agreement on https://review.openstack.org/#/c/181393 like the
following:

 - Standard required naming for endpoints (versioned vs. unversioned,
   contains project ID vs. no project ID).
    * We want unversioned endpoints so that the user can get
      information about multiple available versions in a given cloud.
    * We do not want project ID, account ID, or tenant ID as part of
      the resource URI for an OpenStack API endpoint.

So this patch removes project-id from Nova service catalog for this
direction.

Change-Id: Ifd74152727b5c0c75924419a7a52e024a69ce72c
2016-04-05 20:31:33 -07:00
Ian Wienand 17e450131c Pad around table in plugin list
Make sure the table is separated out from header and footer content so
it actually gets picked up as a table.

Change-Id: I60a24b2476a55cfbf5c864a1c27ce5b98e699886
2016-04-06 09:27:56 +10:00
Sean Dague 0b1465b6f6 change tenant to project in keystone bootstrapping
Change-Id: I6f392d3c16726f6dd734184dcf3014fb4f388207
2016-04-05 11:40:25 -04:00
Sean Dague 19dfa2af32 convert tenant -> project for internal variables
This sets all the internal variables and service users that are set to
use project instead of tenant for clarity.

Change-Id: I4aa833bac2ee2281c5f2881f7ae1fd8e7c759f74
2016-04-05 11:40:25 -04:00
Sean Dague 0486a3659e use project_id instead of TENANT_ID in neutron internal functions
This converts the create initial network to using project_id instead
of TENANT_ID.

Change-Id: Idf09b629cd13d842fceed5609b42fd1593552953
2016-04-05 11:40:25 -04:00
Sean Dague bd27cc2e67 switch over nova to using $(project_id) in service catalog
This makes one less place we reference tenant_id

Change-Id: I53dfeb4d23a9babf7bb46fd3736b4ac005e45993
2016-04-05 11:40:25 -04:00
Jenkins be11ae7abc Merge "Switch over swift to using $(project_id) in service catalog" 2016-04-05 15:35:32 +00:00
Matt Riedemann 2bebf2d8d8 Skip rescue tests for cells v1
The rescue tests in Tempest don't work with cells v1 so
let's skip them.

Change-Id: I234f778c9d264ee2e5fe6050ca6b33283be464f7
2016-04-05 10:34:42 -04:00
Dan Smith 4b205db45b Create default flavors in nova
This makes devstack create default flavors in nova, like cinder, now
that nova no longer hard-codes them into its database.

The flavors created here match the legacy default flavors that nova
kept for so long, and also creates a new devstack-namespaces set of
flavors which are likely more useful for people.

Change-Id: Ic275887e97221d9ce5ce6f12cdcfb5ac94e300b0
2016-04-05 12:50:04 +00:00
Jenkins a4740fb228 Merge "switch over heat to using $(project_id) in service catalog" 2016-04-05 12:11:44 +00:00
Jenkins 5d18dbc34a Merge "change cinder SC to use $(project_id)" 2016-04-05 12:11:34 +00:00
Jenkins b6590be7cb Merge "change internal variables from tenant_id -> project_id" 2016-04-05 12:07:08 +00:00
Sean Dague 260583e25e Switch over swift to using $(project_id) in service catalog
This removes one more place where we use tenant_id in our code.

Change-Id: I628fb7c1dd6f22ce499fc5cbe97b79458cce966f
2016-04-05 11:58:21 +00:00
fumihiko kakuma 2bd2568bd1 Fix a typo in comment for _get_ofp_version
OpenFlow11 -> OpenFlow10

Change-Id: I2a501ccd32f5f7a39fd4bc746f00ca3f67bd98c1
2016-04-05 10:51:14 +09:00
Jenkins ceb63203b2 Merge "In worlddump, cover all supported version of OpenFlow protocol by ovs-ofctl" 2016-04-04 23:48:21 +00:00
Jenkins 0b5d81e4d5 Merge "Plugin autogen list: put plugin names in the plugin names column" 2016-04-04 23:47:57 +00:00
Sean McGinnis 2a9a9df942 Remove driver certs directory
Cinder was the only project with a script in driver_certs. That cert is
no longer required for Cinder as we now just require that third party CI
is run for all drivers before acceptance.

This removes the cinder cert test script and the now empty driver_certs
directory.

Change-Id: I8d0867c4720f324b8dbf3c64ddf66ff267996d10
2016-04-04 14:03:07 -05:00
Jenkins 5266ef7db7 Merge "Add kafka-devstack-plugin to plugin-registry.rst" 2016-04-04 16:28:41 +00:00
Jenkins 852c8423a1 Merge "Drop keystone eventlet support" 2016-04-04 16:27:55 +00:00
Sean Dague cbdc5d9e48 switch over heat to using $(project_id) in service catalog
This removes one more place where we reference tenant_id

Change-Id: I721269c3397bd5e5d9cea5faf3fc691f296a517b
2016-04-04 09:10:44 -04:00
Sean Dague ab0a1b8812 change cinder SC to use $(project_id)
This removes another place where we reference tenant_id

Change-Id: I88fa1c5475105c301b27672b028bddb289f9c108
2016-04-04 09:09:27 -04:00
Sean Dague 76392b5b44 change internal variables from tenant_id -> project_id
As part of the "reduce confusion on tenant_id" we need to change as
many references as possible over to project_id.

Change-Id: Ia665312f24672b106e12fde93b60f142620c3a45
2016-04-04 09:07:08 -04:00
Clint Adams 930bc437af Plugin autogen list: put plugin names in the plugin names column
Change-Id: I1f2c66fa1bf8fd73ee6693d4919e33e3f14487c5
2016-04-02 15:11:45 -04:00
Komei Shimamura 1c7333c40e Add kafka-devstack-plugin to plugin-registry.rst
kafka-devstack-plugin is available now:

  Iceb054f0dfab2fff1920cc7dc36a4be256c6f161

Change-Id: I518bd079296a110a018f77b9b107883f3933e38a
2016-04-03 01:10:46 +09:00
Jenkins 0961061849 Merge "lib/nova: Move 'novncproxy_host' to 'vnc' group" 2016-04-01 12:04:03 +00:00
Jenkins 7c5ccab04f Merge "Cleanup from zookeeper->dlm change" 2016-04-01 03:28:56 +00:00
fumihiko kakuma 6099401e00 In worlddump, cover all supported version of OpenFlow protocol by ovs-ofctl
Currently ovs-ofctl command is executed for only default ofp version
(OpenFlow10).
Some Neutron's plugin uses OpenFlow13 and in that case ovs-ofctl fails.
This chage allows us to get ovs info for all ofp versions supported by ovs.
And adds dump by dump-ports and dump-ports-desc.

Change-Id: I2d3c42835a5ad0f5ebf540e8127762f466347c9c
2016-04-01 12:21:29 +09:00
Jenkins 8ab8f1ca45 Merge "Plugin autogen list: handle variable-width plugin names" 2016-04-01 01:55:56 +00:00
Jenkins daa2d34e14 Merge "cinder.conf: Set privsep_osbrick.helper_command" 2016-04-01 01:37:30 +00:00
Jenkins 3b9e843f71 Merge "nova.conf: Set privsep_osbrick.helper_command" 2016-04-01 01:37:23 +00:00
Jenkins dc572bf10a Merge "Tox: don't check localrc with bashate" 2016-04-01 01:37:16 +00:00
Jenkins 5df5bd602b Merge "Neutron: MTU settings are now sane, so remove from DevStack" 2016-04-01 01:23:04 +00:00
Jenkins 7124b21fcb Merge "Add total timings" 2016-04-01 01:20:10 +00:00
Jenkins 06be15aebb Merge "run tgt-admin --delete only if input not empty" 2016-03-31 23:12:26 +00:00
Sean M. Collins 087ed52cb5 Neutron: MTU settings are now sane, so remove from DevStack
Neutron had a lot of work done during the Mitaka cycle to fix MTU
issues, so let's see if Neutron can stand on its own.

This commit reverts 06cfce3756

Neutron patches:
I6ffc8973c9b8f46cc19922ff04fdd2d23646b878
I4096a3e7704032fa4aa5c3aa8bcaec4e38d0d06d
I6a10c4dfc1f2198667f3d02528e2ca8020cb5bb8
Ic091fa78dfd133179c71cbc847bf955a06cb248a
Idf6221fee2c7da86123b330ad3c235ecc6868242
I6859ebdde1f7e3a8163b49d705620e522ada606a

Change-Id: Ie88c7ebb29adadde530217c95e2f38aacb119dc8
2016-03-31 18:28:20 +00:00
Jenkins 351272a519 Merge "Correct openrc script for zsh" 2016-03-31 15:57:34 +00:00
Davanum Srinivas 7a9d78a59e Cleanup from zookeeper->dlm change
In I33525e2b83a4497a57ec95f62880e0308c88b34f, we switched
from zookeeper to dlm. Somehow this got left behind.

Change-Id: I41d13d33c9a81271d4a9752cbe98c0028a17ab1e
2016-03-31 09:54:46 -04:00
Ethan Lynn e256174d9a Correct openrc script for zsh
Since commit 7580a0c3e3, openrc
print a WARNING message to stdout, it will break the zsh script
in faq.rst. This patch redirect openrc output to /dev/null.

Change-Id: Iaba03634d7a234cd4d120477f91ef56d0595cdf6
Closes-Bug: #1563940
2016-03-31 20:58:19 +08:00
Jenkins 677e14a4d1 Merge "Add OS_CACERT to userrc_early and ensure SERVICE_HOST is SAN" 2016-03-30 23:40:13 +00:00
Jenkins 22498c19f6 Merge "install_pip.sh: Remove stale comments" 2016-03-30 23:40:06 +00:00
Jenkins a1f3be8036 Merge "Tip for single interface runs that are started remotely" 2016-03-30 23:39:50 +00:00
Jenkins 5c775831b3 Merge "Move auth setup earlier in tempest config" 2016-03-30 23:39:43 +00:00
Jenkins 8d0fb5d41c Merge "Remove Ceilometer leftover" 2016-03-30 22:44:00 +00:00
Ian Wienand 908a3a9523 Add total timings
Printing the total makes it easier to compare runs at a glance.  Clean
up the output a little, and use some consistent, name-spaced globals
while we're there.

Note the total runtime is at the top to avoid giving the impression
that it is the sum of the components below, since you can nest/overlap
timers (I made that mistake in a prior change :).  It might be a fun
exercise in tree building to one day track the overlaps and present a
nice nested breakdown.

Change-Id: I878ce03813d21138df493b82bceff3aaa7f83064
2016-03-30 19:49:13 +00:00
Jenkins 995c83ef96 Merge "Run online_data_migrations during nova setup" 2016-03-30 18:51:21 +00:00
Julien Danjou de40d9234b Remove Ceilometer leftover
Ceilometer uses a devstack plugin for a while now, so there should not
be any need for this file in the main devstack repository.

Change-Id: I3577c52b106c63c465a40ea3740eb5b8384e900e
2016-03-30 12:45:30 +02:00
Jenkins e41a716ff0 Merge "Remove libnspr4-dev for ceilometer-collector" 2016-03-29 20:18:34 +00:00
Dan Smith bb49d35739 Run online_data_migrations during nova setup
This is a normal step in the process for upgrade and is now
required for migration of flavors from the main DB to the API DB.
Since we previously made a bad decision to encode those flavors into
the first database migration, that means that even on new installs we
need to run these.

Deployment tools are going to be running this command any time they
do anything to the database post-deployment, which means adding this
to devstack is putting it in line with what normal deployments will
be doing.

Change-Id: I8ab03af9d2f4974f26a7f8487ec978caea957e45
2016-03-29 10:46:42 -07:00
Jenkins cfaa03dbc9 Merge "Check for valid network before probe-create call" 2016-03-29 14:57:21 +00:00
Andreas Jaeger 70dcc17592 Remove libnspr4-dev for ceilometer-collector
Since change Ie38deadf190db33863c99d4610157349484ac10f ceilometer does
not use spidermonkey which needed libnspr4-dev to be installed. Thus the
requirement can be removed now.

Change-Id: Ib0685181f1cc4c9b58411a1679ac9dec1812f683
2016-03-28 18:40:05 +02:00
Rob Crittenden be00e95da5 Add OS_CACERT to userrc_early and ensure SERVICE_HOST is SAN
OS_CACERT was being added directly to the environment rather
than usercc_early. This caused an untrusted CA error to be
thrown.

Ensure that SERVICE_HOST is in the Subject Alt. Names of the
issued TLS server cert. The gate sets it to 127.0.0.1 which
wasn't being handled. Only the FQDN of the host and actual
IP address of the machine were being added.

Change-Id: I8a91dffe1a5263d2bcc99ea406a8556045b52be2
2016-03-28 10:00:52 -04:00
Thomas Bechtold fb94891b80 Use configure_auth_token_middleware for neutron
auch configuration in the nova section in neutron.conf was
still setup manually. Just reuse the function
configure_auth_token_middleware() for configuration to simplify
the code.

Change-Id: Ib5a7e9212e2d1242bdbec75cf3fac13d5c42a2e2
2016-03-27 08:59:42 +02:00
Matthew Treinish 0948ab90ae Move auth setup earlier in tempest config
This commit moves the auth setup for tempest config to occur before
we run tempest verify-config. The API requests that command runs
require auth and in the case we run tempest without admin creds set
the config file will not have any credentials to run the query with.
By moving the auth setup to occur before this it will ensure tempest
is always configured with credentials before we run the command.

Change-Id: I6d11b24e4492f1fde3aa3a7a239c40d63111bfa1
2016-03-25 19:39:43 -04:00
Sean Dague 8b416ae821 run swift blocks if any services are enabled
Previously the swift blocks only ran if s-proxy is enabled, which
prevents a multinode configuration. We should run these blocks if any
swift services are enabled, and push proxy specific conditionals one
step lower.

Change-Id: I540a97615b3c19f882c8673b1a4a29cd47e36aa8
2016-03-25 08:58:54 -04:00
Brant Knudson 556eeb0d35 Drop keystone eventlet support
Keystone has dropped support for running under eventlet (using
keystone-all).

Change-Id: Ib38c0b1a54633a6b6dfa3a0a605cd2b02ca48989
2016-03-24 14:01:57 -05:00
Jenkins 74d82d9343 Merge "Normalize path for upper-constraints" 2016-03-24 15:34:24 +00:00
Jenkins 9de2549b42 Merge "Configure the admin as admin" 2016-03-24 15:26:33 +00:00
Jenkins 547c393b93 Merge "Allow install os-vif library used by Nova" 2016-03-24 15:22:31 +00:00
Jenkins 22314596af Merge "Add colorful PS4" 2016-03-24 13:47:12 +00:00
Waldemar Znoinski 84d2298d3b Tox: don't check localrc with bashate
Change-Id: I9fc5f9f106184c92e555e25ab09883cbed054ca4
Closes-Bug: #1561500
2016-03-24 12:27:53 +00:00
Doug Wiegley 130c3adb0e WIP - Remove lbaas from devstack proper
Lbaas devstack support is now in the neutron-lbaas repo, so we can move
towards removing it here. This will explode hard, but let's start peeling
the onion.

This can't merge until p-c no longer references lbaas jobs.

Change-Id: I1c49877bab53f6b25385302420086b25e3eeeebf
2016-03-23 19:21:45 -06:00
Jenkins 11b111fd7a Merge "Add dependency for hexdump" 2016-03-23 23:06:37 +00:00
Jenkins cd6f79b509 Merge "Ignore vmdk files as well as other image types" 2016-03-23 20:42:07 +00:00
Attila Fazekas 9ea497539b Configure the admin as admin
Make our usual admin user to be a real admin,
and open the way for improving the per project
policy.json files.

Change-Id: I133a5953d209bc1edbd03ecfae750f77e3eaa64d
Related-Change: https://review.openstack.org/#/c/242232
2016-03-23 19:03:14 +01:00
Sean Dague 646085d701 Add colorful PS4
PS4 can include functions, so when running in the LOG_COLORS=True mode
provide a grey function line so that it's easier to visually
distinguish the content from the location.

Also make it so the main prompt chunks off all the common path, which
means we can printf to 40 characters and have a pretty reasonable and
readable PS4.

Change-Id: I4a10a49db97d413349bcfceeb8c4164936fbcc40
2016-03-23 07:37:44 -04:00
Brad Behle 629917a5dd Check for valid network before probe-create call
Check that a public and/or private network exists before calling
probe-create for it, to avoid an error in the case where that
network hasn't been created

Change-Id: If01cec47dc4ab02b5d78074b1354df10dc23b384
Closes-bug: #1560629
2016-03-22 14:32:14 -05:00
YAMAMOTO Takashi c8c1c615f2 Normalize path for upper-constraints
It seems pip distinguishes paths with .. or extra / for constraints.
For example, the following directories are considered different.

    /path/to/dir
    /path/to//dir
    /path/to/dir/subdir/..

This commit tries to normalize the given directory name to avoid
"Could not satisfy constraints for 'xxxx': installation from path
or url cannot be constrained to a version" error due to directory
name mismatch.

Reference: https://github.com/pypa/pip/pull/3582
Closes-Bug: #1542545
Change-Id: Iae9d58c27d3b10bca16e4a471507c4d5c16439a0
2016-03-22 21:23:23 +09:00
Mark Vanderwiel d99c29032b Add dependency for hexdump
hexdump is used in common function generate_hex_string which is
used by nova and heat.  The current general dependencies do not
have this dependency covered, instead it is usually pulled in by
other implicit dependencies when a full devstack is built. In
cases where only a subset is built (like just Heat and keystone)
hexdump is missing.

Added unit tests for the generate_hex_string function.

Depends-On: Ib47d802a31a0f4c2a49daa7e6698e37c70a2365a
Change-Id: I77c8c2019fb8b8174cdfaed3e56ebf728f0732b7
Closes-Bug: #1558672
2016-03-22 09:34:04 +11:00
Sergey Belous 1258da6408 Allow install os-vif library used by Nova
In future Nova will use os-vif library for some communication with Neutron.
This patch add ability to install os-vif library that requires for run
tempest-jobs for new patches, that used os-vif.

Change-Id: I28e48afd3c740b1aa50c994d99f660f095e7deda
2016-03-21 12:40:50 +03:00
Ian Wienand c10989bf18 Plugin autogen list: handle variable-width plugin names
We've had a couple of cases where plugin names are longer than our
table width.

Take the fixed-with table-header out of the header file, and generate
it dynamically based on first-column width.  To simplify, take
advantage that RST allows a variable-length last column and so don't
specify it's width.

Add a link to the cgit URL for each project you can click on to browse
the source (link text remains the git:// URL).

Add some logging so you can see what the python generator is doing,
should you run it.

Change-Id: I5d5e692039bbb30b2508119412472dac1d105c08
2016-03-21 13:11:41 +11:00
YAMAMOTO Takashi 7c98cfb56e install_pip.sh: Remove stale comments
Change-Id: Id91c8e579977bedae1410095d9b4cef9d9ae2178
2016-03-18 21:24:46 +09:00
Jamie Lennox 4921d4dbb9 Use unversioned keystone endpoints
Insert the unversioned keystone URLs into the service catalog. Services
should be able to determine the correct URL for their work from this.

Depends-On: I931f0c558aafc8dfaa5519744c6e4e7fcffc3205
Change-Id: I6171f782a1dd397720a9b2a3393b30ae5aca0cc2
2016-03-17 12:39:49 +11:00
Sean M. Collins 6b1f49910e Tip for single interface runs that are started remotely
Change-Id: I6e2870b5c409dd81a34cd9934f540d9558642f91
2016-03-10 13:19:05 -05:00
Waldemar Znoinski 084efc7158 run tgt-admin --delete only if input not empty
This change provides better handling of tgtadm --op show
output as input of tgt-admin --delete command. In situation
where no output of the first command is present no tgt-admin
command is run.

Change-Id: Ief5e1d50dd679f4d47cffef29ff07e54cc37f80a
Closes-bug: 1554997
2016-03-09 20:21:53 +00:00
Tracy Jones a440bf8629 Ignore vmdk files as well as other image types
Change-Id: I012b21181f1e54a1e4a3707b0fdf8c0afa6222c2
2016-03-07 10:50:32 -08:00
Angus Lees 58467e2102 nova.conf: Set privsep_osbrick.helper_command
When os-brick starts using privsep, it will need to know how to invoke
its privileged half.  Amazingly the name of the rootwrap executable
isn't anywhere else in the config, so the privsep default uses just
"sudo" (no rootwrap).

We need to either:

1. set the privsep command line to use nova-rootwrap in nova.conf (and
   similar in other configs), or

2. add the privsep-helper line to sudoers and bypass rootwrap entirely.

This change implements (1) for devstack (nova only for now, cinder to
follow shortly).

Change-Id: I90dc41bc77993bd83b80c92286e015e14f290b45
2016-02-25 14:33:56 +11:00
Angus Lees 8a6d7678b5 cinder.conf: Set privsep_osbrick.helper_command
When os-brick starts using privsep, it will need to know how to invoke
its privileged half.  Amazingly the name of the rootwrap executable
isn't anywhere else in the config, so the privsep default uses just
"sudo" (no rootwrap).

We need to either:

1. set the privsep command line to use cinder-rootwrap in
   cinder.conf (and similar in other configs), or

2. add the privsep-helper line to sudoers and bypass rootwrap entirely.

This change implements (1) for devstack/cinder and is similar to the
corresponding nova change in I90dc41bc77993bd83b80c92286e015e14f290b45

Change-Id: I8a0b1728cc66c4861f69623b1b16b1f759b57b25
2016-02-25 14:33:11 +11:00
Stephen Finucane 9bdd611dd2 lib/nova: Move 'novncproxy_host' to 'vnc' group
This option was moved in '11a42d4'. Move it, fixing the deprecation
warning in the process.

Change-Id: I567a04f6201695f1ca0d0919b1d1f769bad05964
2016-02-15 14:15:10 +00:00
258 changed files with 10583 additions and 6547 deletions
+6
View File
@@ -3,6 +3,7 @@
*.log
*.log.[1-9]
*.pem
*.pyc
.localrc.auto
.localrc.password
.prereqs
@@ -12,14 +13,19 @@ accrc
doc/files
doc/build
files/*.gz
files/*.vmdk
files/*.rpm
files/*.rpm.*
files/*.deb
files/*.deb.*
files/*.qcow2
files/*.img
files/images
files/pip-*
files/get-pip.py*
files/ir-deploy*
files/ironic-inspector*
files/etcd*
local.conf
local.sh
localrc
+3 -2
View File
@@ -1,4 +1,5 @@
[gerrit]
host=review.openstack.org
host=review.opendev.org
port=29418
project=openstack-dev/devstack.git
project=openstack/devstack.git
defaultbranch=stable/queens
+410
View File
@@ -0,0 +1,410 @@
- nodeset:
name: openstack-single-node
nodes:
- name: controller
label: ubuntu-xenial
groups:
- name: tempest
nodes:
- controller
- nodeset:
name: openstack-two-node
nodes:
- name: controller
label: ubuntu-xenial
- name: compute1
label: ubuntu-xenial
groups:
# Node where tests are executed and test results collected
- name: tempest
nodes:
- controller
# Nodes running the compute service
- name: compute
nodes:
- controller
- compute1
# Nodes that are not the controller
- name: subnode
nodes:
- compute1
# Switch node for multinode networking setup
- name: switch
nodes:
- controller
# Peer nodes for multinode networking setup
- name: peers
nodes:
- compute1
- job:
name: devstack-base
parent: multinode
abstract: true
description: |
Base abstract Devstack job.
Defines plays and base variables, but it does not include any project
and it does not run any service by default. This is a common base for
all single Devstack jobs, single or multinode.
Variables are defined in job.vars, which is what is then used by single
node jobs and by multi node jobs for the controller, as well as in
job.group-vars.peers, which is what is used by multi node jobs for subnode
nodes (everything but the controller).
required-projects:
- opendev.org/openstack/devstack
roles:
- zuul: opendev.org/openstack/devstack-gate
- zuul: opendev.org/openstack/openstack-zuul-jobs
vars:
devstack_localrc:
DATABASE_PASSWORD: secretdatabase
RABBIT_PASSWORD: secretrabbit
ADMIN_PASSWORD: secretadmin
SERVICE_PASSWORD: secretservice
NETWORK_GATEWAY: 10.1.0.1
FIXED_RANGE: 10.1.0.0/20
IPV4_ADDRS_SAFE_TO_USE: 10.1.0.0/20
FLOATING_RANGE: 172.24.5.0/24
PUBLIC_NETWORK_GATEWAY: 172.24.5.1
LOGFILE: /opt/stack/logs/devstacklog.txt
LOG_COLOR: false
VERBOSE: true
NOVNC_FROM_PACKAGE: true
ERROR_ON_CLONE: true
# Gate jobs can't deal with nested virt. Disable it.
LIBVIRT_TYPE: qemu
# NOTE(dims): etcd 3.x is not available in debian/ubuntu
# etc. As a stop gap measure, devstack uses wget to download
# from the location below for all the CI jobs.
ETCD_DOWNLOAD_URL: http://tarballs.openstack.org/etcd/
devstack_services:
# Ignore any default set by devstack. Emit a "disable_all_services".
base: false
zuul_copy_output:
'{{ devstack_conf_dir }}/local.conf': logs
'{{ devstack_conf_dir }}/localrc': logs
'{{ devstack_conf_dir }}/.localrc.auto': logs
'{{ devstack_conf_dir }}/.stackenv': logs
'{{ devstack_log_dir }}/dstat-csv.log': logs
'{{ devstack_log_dir }}/devstacklog.txt': logs
'{{ devstack_log_dir }}/devstacklog.txt.summary': logs
'{{ devstack_full_log}}': logs
'{{ stage_dir }}/verify_tempest_conf.log': logs
'{{ stage_dir }}/apache': logs
'{{ stage_dir }}/apache_config': logs
'{{ stage_dir }}/etc': logs
/var/log/rabbitmq: logs
/var/log/postgresql: logs
/var/log/mysql.err: logs
/var/log/mysql.log: logs
/var/log/libvirt: logs
/etc/sudoers: logs
/etc/sudoers.d: logs
'{{ stage_dir }}/iptables.txt': logs
'{{ stage_dir }}/df.txt': logs
'{{ stage_dir }}/pip2-freeze.txt': logs
'{{ stage_dir }}/pip3-freeze.txt': logs
'{{ stage_dir }}/dpkg-l.txt': logs
'{{ stage_dir }}/rpm-qa.txt': logs
'{{ stage_dir }}/core': logs
'{{ stage_dir }}/listen53.txt': logs
'{{ stage_dir }}/deprecations.log': logs
/var/log/ceph: logs
/var/log/openvswitch: logs
/var/log/glusterfs: logs
/etc/glusterfs/glusterd.vol: logs
/etc/resolv.conf: logs
/var/log/unbound.log: logs
extensions_to_txt:
conf: true
log: true
localrc: true
stackenv: true
auto: true
group-vars:
subnode:
test_matrix_role: subnode
devstack_localrc:
DATABASE_PASSWORD: secretdatabase
RABBIT_PASSWORD: secretrabbit
ADMIN_PASSWORD: secretadmin
SERVICE_PASSWORD: secretservice
NETWORK_GATEWAY: 10.1.0.1
FIXED_RANGE: 10.1.0.0/20
IPV4_ADDRS_SAFE_TO_USE: 10.1.0.0/20
FLOATING_RANGE: 172.24.5.0/24
PUBLIC_NETWORK_GATEWAY: 172.24.5.1
LOGFILE: /opt/stack/logs/devstacklog.txt
LOG_COLOR: false
VERBOSE: true
VERBOSE_NO_TIMESTAMP: true
NOVNC_FROM_PACKAGE: true
ERROR_ON_CLONE: true
LIBVIRT_TYPE: qemu
ETCD_DOWNLOAD_URL: http://tarballs.openstack.org/etcd/
devstack_services:
base: false
pre-run: playbooks/pre.yaml
run: playbooks/devstack.yaml
post-run: playbooks/post.yaml
irrelevant-files:
# Documentation related
- ^.*\.rst$
- ^api-ref/.*$
- ^doc/.*$
- ^releasenotes/.*$
# Translations
- ^.*/locale/.*po$
- job:
name: devstack-minimal
parent: devstack-base
description: |
Minimal devstack base job, intended for use by jobs that need
less than the normal minimum set of required-projects.
nodeset: openstack-single-node
required-projects:
- opendev.org/openstack/requirements
vars:
devstack_localrc:
# Multinode specific settings
SERVICE_HOST: "{{ hostvars['controller']['nodepool']['private_ipv4'] }}"
HOST_IP: "{{ hostvars['controller']['nodepool']['private_ipv4'] }}"
PUBLIC_BRIDGE_MTU: "{{ external_bridge_mtu }}"
devstack_services:
# Shared services
dstat: true
etcd3: false
mysql: true
peakmem_tracker: true
rabbit: true
group-vars:
subnode:
devstack_services:
# Shared services
dstat: true
peakmem_tracker: true
devstack_localrc:
# Multinode specific settings
HOST_IP: "{{ hostvars[inventory_hostname]['nodepool']['private_ipv4'] }}"
SERVICE_HOST: "{{ hostvars['controller']['nodepool']['private_ipv4'] }}"
PUBLIC_BRIDGE_MTU: "{{ external_bridge_mtu }}"
# Subnode specific settings
DATABASE_TYPE: mysql
RABBIT_HOST: "{{ hostvars['controller']['nodepool']['private_ipv4'] }}"
DATABASE_HOST: "{{ hostvars['controller']['nodepool']['private_ipv4'] }}"
- job:
name: devstack
parent: devstack-minimal
description: |
Base devstack job for integration gate.
This base job can be used for single node and multinode devstack jobs.
nodeset: openstack-single-node
required-projects:
- opendev.org/openstack/cinder
- opendev.org/openstack/glance
- opendev.org/openstack/keystone
- opendev.org/openstack/neutron
- opendev.org/openstack/nova
- opendev.org/openstack/swift
timeout: 7200
vars:
test_matrix_configs: [neutron, tlsproxy]
devstack_localrc:
# Common OpenStack services settings
SWIFT_REPLICAS: 1
SWIFT_START_ALL_SERVICES: false
SWIFT_HASH: 1234123412341234
CINDER_PERIODIC_INTERVAL: 10
DEBUG_LIBVIRT_COREDUMPS: true
NOVA_VNC_ENABLED: true
VNCSERVER_LISTEN: 0.0.0.0
VNCSERVER_PROXYCLIENT_ADDRESS: $HOST_IP
devstack_local_conf:
post-config:
$NEUTRON_CONF:
DEFAULT:
global_physnet_mtu: '{{ external_bridge_mtu }}'
devstack_services:
base: true
# We need this explicitly here to trigger the sync of the CA data
tls-proxy: true
horizon: false
tempest: false
# Test matrix emits ceilometer but ceilomenter is not installed in the
# integrated gate, so specifying the services has not effect.
# ceilometer-*: false
group-vars:
subnode:
devstack_services:
base: true
# We need this explicitly here to trigger the sync of the CA data
tls-proxy: true
devstack_localrc:
# Subnode specific settings
GLANCE_HOSTPORT: "{{ hostvars['controller']['nodepool']['private_ipv4'] }}:9292"
Q_HOST: "{{ hostvars['controller']['nodepool']['private_ipv4'] }}"
NOVA_VNC_ENABLED: true
VNCSERVER_LISTEN: 0.0.0.0
VNCSERVER_PROXYCLIENT_ADDRESS: $HOST_IP
- job:
name: devstack-multinode
parent: devstack
nodeset: openstack-two-node
description: |
Simple multinode test to verify multinode functionality on devstack side.
This is not meant to be used as a parent job.
- job:
name: devstack-tox-base
parent: devstack
description: |
Base job for devstack-based functional tests that use tox.
This job is not intended to be run directly. It's just here
for organizational purposes for devstack-tox-functional and
devstack-tox-functional-consumer.
post-run: playbooks/tox/post.yaml
vars:
tox_envlist: functional
tox_install_siblings: false
- job:
name: devstack-tox-functional
parent: devstack-tox-base
description: |
Base job for devstack-based functional tests that use tox.
Runs devstack, then runs the tox ``functional`` environment,
then collects tox/testr build output like normal tox jobs.
Turns off tox sibling installation. Projects may be involved
in the devstack deployment and so may be in the required-projects
list, but may not want to test against master of the other
projects in their tox env. Child jobs can set tox_install_siblings
to True to re-enable sibling processing.
run: playbooks/tox/run-both.yaml
- job:
name: devstack-tox-functional-consumer
parent: devstack
description: |
Base job for devstack-based functional tests for projects that
consume the devstack cloud.
This base job should only be used by projects that are not involved
in the devstack deployment step, but are instead projects that are using
devstack to get a cloud against which they can test things.
Runs devstack in pre-run, then runs the tox ``functional`` environment,
then collects tox/testr build output like normal tox jobs.
Turns off tox sibling installation. Projects may be involved
in the devstack deployment and so may be in the required-projects
list, but may not want to test against master of the other
projects in their tox env. Child jobs can set tox_install_siblings
to True to re-enable sibling processing.
pre-run:
- playbooks/devstack.yaml
- playbooks/tox/pre.yaml
run: playbooks/tox/run.yaml
- job:
name: devstack-unit-tests
nodeset: ubuntu-xenial
description: |
Runs unit tests on devstack project.
It runs ``run_tests.sh``.
pre-run: playbooks/unit-tests/pre.yaml
run: playbooks/unit-tests/run.yaml
- project:
templates:
- integrated-gate
- integrated-gate-py35
- publish-openstack-sphinx-docs
check:
jobs:
- devstack
- devstack-multinode
- devstack-unit-tests
- openstack-tox-bashate
- ironic-tempest-dsvm-ipa-wholedisk-bios-agent_ipmitool-tinyipa:
voting: false
- swift-dsvm-functional:
voting: false
irrelevant-files:
- ^.*\.rst$
- ^doc/.*$
- neutron-grenade:
irrelevant-files:
- ^.*\.rst$
- ^doc/.*$
- neutron-grenade-multinode:
voting: false
irrelevant-files:
- ^.*\.rst$
- ^doc/.*$
- neutron-tempest-linuxbridge:
irrelevant-files:
- ^.*\.rst$
- ^doc/.*$
- tempest-multinode-full:
voting: false
irrelevant-files:
- ^.*\.rst$
- ^doc/.*$
gate:
jobs:
- devstack
- devstack-unit-tests
- openstack-tox-bashate
#- neutron-grenade-multinode:
# irrelevant-files:
# - ^.*\.rst$
# - ^doc/.*$
- neutron-tempest-linuxbridge:
irrelevant-files:
- ^.*\.rst$
- ^doc/.*$
#- neutron-grenade:
# irrelevant-files:
# - ^.*\.rst$
# - ^doc/.*$
experimental:
jobs:
- devstack-plugin-ceph-tempest:
irrelevant-files:
- ^.*\.rst$
- ^doc/.*$
- devstack-plugin-ceph-tempest-py3:
irrelevant-files:
- ^.*\.rst$
- ^doc/.*$
- neutron-tempest-dvr:
irrelevant-files:
- ^.*\.rst$
- ^doc/.*$
- legacy-tempest-dsvm-neutron-dvr-multinode-full:
irrelevant-files:
- ^.*\.rst$
- ^doc/.*$
- neutron-tempest-dvr-ha-multinode-full:
irrelevant-files:
- ^.*\.rst$
- ^doc/.*$
- legacy-tempest-dsvm-lvm-multibackend:
irrelevant-files:
- ^.*\.rst$
- ^doc/.*$
- legacy-tempest-dsvm-neutron-pg-full:
irrelevant-files:
- ^.*\.rst$
- ^doc/.*$
+27 -4
View File
@@ -20,7 +20,7 @@ in `How To Contribute`__ in the OpenStack wiki. `DevStack's LaunchPad project`_
contains the usual links for blueprints, bugs, etc.
__ contribute_
.. _contribute: http://docs.openstack.org/infra/manual/developers.html
.. _contribute: https://docs.openstack.org/infra/manual/developers.html
__ lp_
.. _lp: https://launchpad.net/~devstack
@@ -219,7 +219,7 @@ These scripts are executed serially by ``exercise.sh`` in testing situations.
set -o errexit
# Print the commands being run so that we can see the command that triggers
# an error. It is also useful for following allowing as the install occurs.
# an error. It is also useful for following as the install occurs.
set -o xtrace
* Settings and configuration are stored in ``exerciserc``, which must be
@@ -255,7 +255,7 @@ These scripts are executed serially by ``exercise.sh`` in testing situations.
* The ``OS_*`` environment variables should be the only ones used for all
authentication to OpenStack clients as documented in the CLIAuth_ wiki page.
.. _CLIAuth: http://wiki.openstack.org/CLIAuth
.. _CLIAuth: https://wiki.openstack.org/CLIAuth
* The exercise MUST clean up after itself if successful. If it is not successful,
it is assumed that state will be left behind; this allows a chance for developers
@@ -322,7 +322,7 @@ Variables and Functions
Review Criteria
===============
---------------
There are some broad criteria that will be followed when reviewing
your change
@@ -364,3 +364,26 @@ your change
* **Reviewers** -- please see ``MAINTAINERS.rst`` for a list of people
that should be added to reviews of various sub-systems.
Making Changes, Testing, and CI
-------------------------------
Changes to Devstack are tested by automated continuous integration jobs
that run on a variety of Linux Distros using a handful of common
configurations. What this means is that every change to Devstack is
self testing. One major benefit of this is that developers do not
typically need to add new non voting test jobs to add features to
Devstack. Instead the features can be added, then if testing passes
with the feature enabled the change is ready to merge (pending code
review).
A concrete example of this was the switch from screen based service
management to systemd based service management. No new jobs were
created for this. Instead the features were added to devstack, tested
locally and in CI using a change that enabled the feature, then once
the enabling change was passing and the new behavior communicated and
documented it was merged.
Using this process has been proven to be effective and leads to
quicker implementation of desired features.
+1 -1
View File
@@ -15,7 +15,7 @@
DEST=/opt/stack
all:
echo "This just saved you from a terrible mistake!"
@echo "This just saved you from a terrible mistake!"
# Do Some Work
stack:
+22 -15
View File
@@ -1,6 +1,8 @@
DevStack is a set of scripts and utilities to quickly deploy an OpenStack cloud.
DevStack is a set of scripts and utilities to quickly deploy an OpenStack cloud
from git source trees.
# Goals
Goals
=====
* To quickly build dev OpenStack environments in a clean Ubuntu or Fedora
environment
@@ -13,21 +15,22 @@ DevStack is a set of scripts and utilities to quickly deploy an OpenStack cloud.
* To provide an environment for the OpenStack CI testing on every commit
to the projects
Read more at http://docs.openstack.org/developer/devstack
Read more at https://docs.openstack.org/devstack/latest
IMPORTANT: Be sure to carefully read `stack.sh` and any other scripts you
execute before you run them, as they install software and will alter your
networking configuration. We strongly recommend that you run `stack.sh`
in a clean and disposable vm when you are first getting started.
# Versions
Versions
========
The DevStack master branch generally points to trunk versions of OpenStack
components. For older, stable versions, look for branches named
stable/[release] in the DevStack repo. For example, you can do the
following to create a juno OpenStack cloud:
following to create a Pike OpenStack cloud::
git checkout stable/juno
git checkout stable/pike
./stack.sh
You can also pick specific OpenStack project releases by setting the appropriate
@@ -35,10 +38,11 @@ You can also pick specific OpenStack project releases by setting the appropriate
`stackrc` for the default set). Usually just before a release there will be
milestone-proposed branches that need to be tested::
GLANCE_REPO=git://git.openstack.org/openstack/glance.git
GLANCE_REPO=https://git.openstack.org/openstack/glance.git
GLANCE_BRANCH=milestone-proposed
# Start A Dev Cloud
Start A Dev Cloud
=================
Installing in a dedicated disposable VM is safer than installing on your
dev machine! Plus you can pick one of the supported Linux distros for
@@ -51,17 +55,18 @@ When the script finishes executing, you should be able to access OpenStack
endpoints, like so:
* Horizon: http://myhost/
* Keystone: http://myhost:5000/v2.0/
* Keystone: http://myhost/identity/v2.0/
We also provide an environment file that you can use to interact with your
cloud via CLI:
cloud via CLI::
# source openrc file to load your environment with OpenStack CLI creds
. openrc
# list instances
nova list
openstack server list
# DevStack Execution Environment
DevStack Execution Environment
==============================
DevStack runs rampant over the system it runs on, installing things and
uninstalling other things. Running this on a system you care about is a recipe
@@ -81,10 +86,12 @@ check it out to see what DevStack's expectations are for the account
it runs under. Many people simply use their usual login (the default
'ubuntu' login on a UEC image for example).
# Customizing
Customizing
===========
DevStack can be extensively configured via the configuration file
`local.conf`. It is likely that you will need to provide and modify
this file if you want anything other than the most basic setup. Start
by reading the [configuration guide](doc/source/configuration.rst) for
details of the configuration file and the many available options.
by reading the `configuration guide
<https://docs.openstack.org/devstack/latest/configuration.html>`_
for details of the configuration file and the many available options.
+27 -11
View File
@@ -46,9 +46,10 @@ source $TOP_DIR/lib/horizon
source $TOP_DIR/lib/keystone
source $TOP_DIR/lib/glance
source $TOP_DIR/lib/nova
source $TOP_DIR/lib/placement
source $TOP_DIR/lib/cinder
source $TOP_DIR/lib/swift
source $TOP_DIR/lib/heat
source $TOP_DIR/lib/neutron
source $TOP_DIR/lib/neutron-legacy
set -o xtrace
@@ -63,13 +64,8 @@ if [[ -d $TOP_DIR/extras.d ]]; then
done
fi
# See if there is anything running...
# need to adapt when run_service is merged
SESSION=$(screen -ls | awk '/[0-9].stack/ { print $1 }')
if [[ -n "$SESSION" ]]; then
# Let unstack.sh do its thing first
$TOP_DIR/unstack.sh --all
fi
# Let unstack.sh do its thing first
$TOP_DIR/unstack.sh --all
# Run extras
# ==========
@@ -92,8 +88,10 @@ cleanup_cinder || /bin/true
cleanup_glance
cleanup_keystone
cleanup_nova
cleanup_placement
cleanup_neutron
cleanup_swift
cleanup_horizon
if is_service_enabled ldap; then
cleanup_ldap
@@ -105,7 +103,7 @@ if is_service_enabled nova && [[ -r $NOVA_PLUGINS/hypervisor-$VIRT_DRIVER ]]; th
fi
# Clean out /etc
sudo rm -rf /etc/keystone /etc/glance /etc/nova /etc/cinder /etc/swift /etc/heat /etc/neutron /etc/openstack/
sudo rm -rf /etc/keystone /etc/glance /etc/nova /etc/cinder /etc/swift /etc/neutron /etc/openstack/
# Clean out tgt
sudo rm -f /etc/tgt/conf.d/*
@@ -128,6 +126,13 @@ if [[ -n "$SCREEN_LOGDIR" ]] && [[ -d "$SCREEN_LOGDIR" ]]; then
sudo rm -rf $SCREEN_LOGDIR
fi
# Clean out the sytemd user unit files if systemd was used.
if [[ "$USE_SYSTEMD" = "True" ]]; then
sudo find $SYSTEMD_DIR -type f -name '*devstack@*service' -delete
# Make systemd aware of the deletion.
$SYSTEMCTL daemon-reload
fi
# Clean up venvs
DIRS_TO_CLEAN="$WHEELHOUSE ${PROJECT_VENV[@]} .config/openstack"
rm -rf $DIRS_TO_CLEAN
@@ -137,9 +142,20 @@ rm -rf $DIRS_TO_CLEAN
FILES_TO_CLEAN=".localrc.auto .localrc.password "
FILES_TO_CLEAN+="docs/files docs/html shocco/ "
FILES_TO_CLEAN+="stack-screenrc test*.conf* test.ini* "
FILES_TO_CLEAN+=".stackenv .prereqs "
FILES_TO_CLEAN+="~/.config/openstack"
FILES_TO_CLEAN+=".stackenv .prereqs"
for file in $FILES_TO_CLEAN; do
rm -rf $TOP_DIR/$file
done
rm -rf ~/.config/openstack
# Clean up all *.pyc files
if [[ -n "$DEST" ]] && [[ -d "$DEST" ]]; then
find_version=`find --version | awk '{ print $NF; exit}'`
if vercmp "$find_version" "<" "4.2.3" ; then
sudo find $DEST -name "*.pyc" -print0 | xargs -0 rm
else
sudo find $DEST -name "*.pyc" -delete
fi
fi
+16 -19
View File
@@ -1,24 +1,21 @@
..
Note to patch submitters: this file is covered by a periodic proposal
job. You should edit the files data/devstack-plugins-registry.footer
data/devstack-plugins-registry.header instead of this one.
.. Note to patch submitters:
# ============================= #
# THIS FILE IS AUTOGENERATED ! #
# ============================= #
** Plugins are found automatically and added to this list **
This file is created by a periodic proposal job. You should not
edit this file.
You should edit the files data/devstack-plugins-registry.footer
data/devstack-plugins-registry.header to modify this text.
==========================
DevStack Plugin Registry
==========================
Since we've created the external plugin mechanism, it's gotten used by
a lot of projects. The following is a list of plugins that currently
exist. Any project that wishes to list their plugin here is welcomed
to.
Detected Plugins
================
The following are plugins that a script has found in the openstack/
namespace, which includes but is not limited to official OpenStack
projects.
+----------------------------+-------------------------------------------------------------------------+
|Plugin Name |URL |
+----------------------------+-------------------------------------------------------------------------+
The following list is an automatically-generated collection of
available DevStack plugins. This includes, but is not limited to,
official OpenStack projects.
+10
View File
@@ -0,0 +1,10 @@
pbr>=2.0.0,!=2.1.0
Pygments
docutils
sphinx>=1.6.2
openstackdocstheme>=1.11.0
nwdiag
blockdiag
sphinxcontrib-blockdiag
sphinxcontrib-nwdiag
Binary file not shown.

After

Width:  |  Height:  |  Size: 378 KiB

-12
View File
@@ -1,12 +0,0 @@
=======
Changes
=======
Recent Changes What's been happening?
=====================================
These are the commits to DevStack for the last six months. For the
complete list see `the DevStack project in
Gerrit <https://review.openstack.org/#/q/status:merged+project:openstack-dev/devstack,n,z>`__.
%GIT_LOG%
+8 -2
View File
@@ -26,7 +26,13 @@ import os
# Add any Sphinx extension module names here, as strings. They can be extensions
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
extensions = [ 'oslosphinx', 'sphinxcontrib.blockdiag', 'sphinxcontrib.nwdiag' ]
extensions = [ 'openstackdocstheme', 'sphinxcontrib.blockdiag', 'sphinxcontrib.nwdiag' ]
# openstackdocstheme options
repository_name = 'openstack-dev/devstack'
bug_project = 'devstack'
bug_tag = ''
html_last_updated_fmt = '%Y-%m-%d %H:%M'
todo_include_todos = True
@@ -87,7 +93,7 @@ man_pages = []
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
html_theme = 'nature'
html_theme = 'openstackdocs'
# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
+258 -80
View File
@@ -36,10 +36,6 @@ The defined phases are:
- **local** - extracts ``localrc`` from ``local.conf`` before
``stackrc`` is sourced
- **pre-install** - runs after the system packages are installed but
before any of the source repositories are installed
- **install** - runs immediately after the repo installations are
complete
- **post-config** - runs after the layer 2 services are configured and
before they are started
- **extra** - runs after services are started and before any files in
@@ -62,13 +58,12 @@ appear in the file will be used.
A specific meta-section ``local|localrc`` is used to provide a default
``localrc`` file (actually ``.localrc.auto``). This allows all custom
settings for DevStack to be contained in a single file. If ``localrc``
exists it will be used instead to preserve backward-compatibility. More
details on the :doc:`contents of local.conf <local.conf>` are available.
exists it will be used instead to preserve backward-compatibility.
::
[[local|localrc]]
FIXED_RANGE=10.254.1.0/24
IPV4_ADDRS_SAFE_TO_USE=10.254.1.0/24
ADMIN_PASSWORD=speciale
LOGFILE=$DEST/logs/stack.sh.log
@@ -84,6 +79,76 @@ Also note that the ``localrc`` section is sourced as a shell script
fragment and MUST conform to the shell requirements, specifically no
whitespace around ``=`` (equals).
openrc
======
``openrc`` configures login credentials suitable for use with the
OpenStack command-line tools. ``openrc`` sources ``stackrc`` at the
beginning (which in turn sources the ``localrc`` section of
``local.conf``) in order to pick up ``HOST_IP`` and/or ``SERVICE_HOST``
to use in the endpoints. The values shown below are the default values.
OS\_PROJECT\_NAME (OS\_TENANT\_NAME)
Keystone has
standardized the term *project* as the entity that owns resources. In
some places references still exist to the previous term
*tenant* for this use. Also, *project\_name* is preferred to
*project\_id*. OS\_TENANT\_NAME remains supported for compatibility
with older tools.
::
OS_PROJECT_NAME=demo
OS\_USERNAME
In addition to the owning entity (project), OpenStack calls the entity
performing the action *user*.
::
OS_USERNAME=demo
OS\_PASSWORD
Keystone's default authentication requires a password be provided.
The usual cautions about putting passwords in environment variables
apply, for most DevStack uses this may be an acceptable tradeoff.
::
OS_PASSWORD=secret
HOST\_IP, SERVICE\_HOST
Set API endpoint host using ``HOST_IP``. ``SERVICE_HOST`` may also
be used to specify the endpoint, which is convenient for some
``local.conf`` configurations. Typically, ``HOST_IP`` is set in the
``localrc`` section.
::
HOST_IP=127.0.0.1
SERVICE_HOST=$HOST_IP
OS\_AUTH\_URL
Authenticating against an OpenStack cloud using Keystone returns a
*Token* and *Service Catalog*. The catalog contains the endpoints
for all services the user/tenant has access to - including Nova,
Glance, Keystone and Swift.
::
OS_AUTH_URL=http://$SERVICE_HOST:5000/v3.0
KEYSTONECLIENT\_DEBUG, NOVACLIENT\_DEBUG
Set command-line client log level to ``DEBUG``. These are commented
out by default.
::
# export KEYSTONECLIENT_DEBUG=1
# export NOVACLIENT_DEBUG=1
.. _minimal-configuration:
Minimal Configuration
@@ -96,8 +161,8 @@ values that most often need to be set.
- no logging
- pre-set the passwords to prevent interactive prompts
- move network ranges away from the local network (``FIXED_RANGE`` and
``FLOATING_RANGE``, commented out below)
- move network ranges away from the local network (``IPV4_ADDRS_SAFE_TO_USE``
and ``FLOATING_RANGE``, commented out below)
- set the host IP if detection is unreliable (``HOST_IP``, commented
out below)
@@ -108,7 +173,7 @@ values that most often need to be set.
DATABASE_PASSWORD=$ADMIN_PASSWORD
RABBIT_PASSWORD=$ADMIN_PASSWORD
SERVICE_PASSWORD=$ADMIN_PASSWORD
#FIXED_RANGE=172.31.1.0/24
#IPV4_ADDRS_SAFE_TO_USE=172.31.1.0/24
#FLOATING_RANGE=192.168.20.0/25
#HOST_IP=10.3.4.5
@@ -130,6 +195,9 @@ will not be set if there is no IPv6 address on the default Ethernet interface.
Setting it here also makes it available for ``openrc`` to set ``OS_AUTH_URL``.
``HOST_IPV6`` is not set by default.
For architecture specific configurations which differ from the x86 default
here, see `arch-configuration`_.
Historical Notes
================
@@ -145,6 +213,37 @@ Configuration Notes
.. contents::
:local:
Service Repos
-------------
The Git repositories used to check out the source for each service are
controlled by a pair of variables set for each service. ``*_REPO``
points to the repository and ``*_BRANCH`` selects which branch to
check out. These may be overridden in ``local.conf`` to pull source
from a different repo for testing, such as a Gerrit branch
proposal. ``GIT_BASE`` points to the primary repository server.
::
NOVA_REPO=$GIT_BASE/openstack/nova.git
NOVA_BRANCH=master
To pull a branch directly from Gerrit, get the repo and branch from
the Gerrit review page:
::
git fetch https://review.openstack.org/p/openstack/nova refs/changes/50/5050/1 && git checkout FETCH_HEAD
The repo is the stanza following ``fetch`` and the branch is the
stanza following that:
::
NOVA_REPO=https://review.openstack.org/p/openstack/nova
NOVA_BRANCH=refs/changes/50/5050/1
Installation Directory
----------------------
@@ -182,43 +281,22 @@ number of days of old log files to keep.
LOGDAYS=1
The some of the project logs (Nova, Cinder, etc) will be colorized by
default (if ``SYSLOG`` is not set below); this can be turned off by
setting ``LOG_COLOR`` to ``False``.
::
Some coloring is used during the DevStack runs to make it easier to
see what is going on. This can be disabled with::
LOG_COLOR=False
Logging the Service Output
~~~~~~~~~~~~~~~~~~~~~~~~~~
DevStack will log the ``stdout`` output of the services it starts.
When using ``screen`` this logs the output in the screen windows to a
file. Without ``screen`` this simply redirects stdout of the service
process to a file in ``LOGDIR``.
By default, services run under ``systemd`` and are natively logging to
the systemd journal.
::
To query the logs use the ``journalctl`` command, such as::
LOGDIR=$DEST/logs
Note the use of ``DEST`` to locate the main install directory; this
is why we suggest setting it in ``local.conf``.
Enabling Syslog
~~~~~~~~~~~~~~~
Logging all services to a single syslog can be convenient. Enable
syslogging by setting ``SYSLOG`` to ``True``. If the destination log
host is not localhost ``SYSLOG_HOST`` and ``SYSLOG_PORT`` can be used
to direct the message stream to the log host.
::
SYSLOG=True
SYSLOG_HOST=$HOST_IP
SYSLOG_PORT=516
sudo journalctl --unit devstack@*
More examples can be found in :ref:`journalctl-examples`.
Example Logging Configuration
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -230,7 +308,6 @@ a file, keep service logs and disable color in the stored files.
[[local|localrc]]
DEST=/opt/stack/
LOGDIR=$DEST/logs
LOGFILE=$LOGDIR/stack.sh.log
LOG_COLOR=False
@@ -327,6 +404,9 @@ can be specified as a comma separated list.
LIBS_FROM_GIT=python-keystoneclient,oslo.config
Setting the variable to ``ALL`` will activate the download for all
libraries.
Virtual Environments
--------------------
@@ -422,16 +502,14 @@ created flavors as follows:
IP Version
----------
``IP_VERSION`` can be used to configure DevStack to create either an
IPv4, IPv6, or dual-stack tenant data-network by with either
``IP_VERSION=4``, ``IP_VERSION=6``, or ``IP_VERSION=4+6``
respectively. This functionality requires that the Neutron networking
service is enabled by setting the following options:
``IP_VERSION`` can be used to configure Neutron to create either an
IPv4, IPv6, or dual-stack self-service project data-network by with
either ``IP_VERSION=4``, ``IP_VERSION=6``, or ``IP_VERSION=4+6``
respectively.
::
disable_service n-net
enable_service q-svc q-agt q-dhcp q-l3
IP_VERSION=4+6
The following optional variables can be used to alter the default IPv6
behavior:
@@ -440,12 +518,12 @@ behavior:
IPV6_RA_MODE=slaac
IPV6_ADDRESS_MODE=slaac
FIXED_RANGE_V6=fd$IPV6_GLOBAL_ID::/64
IPV6_ADDRS_SAFE_TO_USE=fd$IPV6_GLOBAL_ID::/56
IPV6_PRIVATE_NETWORK_GATEWAY=fd$IPV6_GLOBAL_ID::1
*Note*: ``FIXED_RANGE_V6`` and ``IPV6_PRIVATE_NETWORK_GATEWAY`` can be
configured with any valid IPv6 prefix. The default values make use of
an auto-generated ``IPV6_GLOBAL_ID`` to comply with RFC4193.
*Note*: ``IPV6_ADDRS_SAFE_TO_USE`` and ``IPV6_PRIVATE_NETWORK_GATEWAY``
can be configured with any valid IPv6 prefix. The default values make
use of an auto-generated ``IPV6_GLOBAL_ID`` to comply with RFC4193.
Service Version
~~~~~~~~~~~~~~~
@@ -490,9 +568,7 @@ Swift
Swift is disabled by default. When enabled, it is configured with
only one replica to avoid being IO/memory intensive on a small
VM. When running with only one replica the account, container and
object services will run directly in screen. The others services like
replicator, updaters or auditor runs in background.
VM.
If you would like to enable Swift you can add this to your ``localrc``
section:
@@ -513,6 +589,18 @@ If you only want to do some testing of a real normal swift cluster
with multiple replicas you can do so by customizing the variable
``SWIFT_REPLICAS`` in your ``localrc`` section (usually to 3).
You can manually override the ring building to use specific storage
nodes, for example when you want to test a multinode environment. In
this case you have to set a space-separated list of IPs in
``SWIFT_STORAGE_IPS`` in your ``localrc`` section that should be used
as Swift storage nodes.
Please note that this does not create a multinode setup, it is only
used when adding nodes to the Swift rings.
::
SWIFT_STORAGE_IPS="192.168.1.10 192.168.1.11 192.168.1.12"
Swift S3
++++++++
@@ -521,32 +609,9 @@ install the swift3 middleware emulation. Swift will be configured to
act as a S3 endpoint for Keystone so effectively replacing the
``nova-objectstore``.
Only Swift proxy server is launched in the screen session all other
Only Swift proxy server is launched in the systemd system all other
services are started in background and managed by ``swift-init`` tool.
Heat
~~~~
Heat is disabled by default (see ``stackrc`` file). To enable it
explicitly you'll need the following settings in your ``localrc``
section
::
enable_service heat h-api h-api-cfn h-api-cw h-eng
Heat can also run in standalone mode, and be configured to orchestrate
on an external OpenStack cloud. To launch only Heat in standalone mode
you'll need the following settings in your ``localrc`` section
::
disable_all_services
enable_service rabbit mysql heat h-api h-api-cfn h-api-cw h-eng
HEAT_STANDALONE=True
KEYSTONE_SERVICE_HOST=...
KEYSTONE_AUTH_HOST=...
Tempest
~~~~~~~
@@ -594,15 +659,15 @@ Cinder
~~~~~~
The logical volume group used to hold the Cinder-managed volumes is
set by ``VOLUME_GROUP``, the logical volume name prefix is set with
set by ``VOLUME_GROUP_NAME``, the logical volume name prefix is set with
``VOLUME_NAME_PREFIX`` and the size of the volume backing file is set
with ``VOLUME_BACKING_FILE_SIZE``.
::
VOLUME_GROUP="stack-volumes"
VOLUME_GROUP_NAME="stack-volumes"
VOLUME_NAME_PREFIX="volume-"
VOLUME_BACKING_FILE_SIZE=10250M
VOLUME_BACKING_FILE_SIZE=24G
Keystone
@@ -630,6 +695,16 @@ In RegionTwo:
KEYSTONE_SERVICE_HOST=<KEYSTONE_IP_ADDRESS_FROM_REGION_ONE>
KEYSTONE_AUTH_HOST=<KEYSTONE_IP_ADDRESS_FROM_REGION_ONE>
REGION_NAME=RegionTwo
KEYSTONE_REGION_NAME=RegionOne
In the devstack for RegionOne, we set REGION_NAME as RegionOne, so region of
the services started in this devstack are registered as RegionOne. In devstack
for RegionTwo, similarly, we set REGION_NAME as RegionTwo since we want
services started in this devstack to be registered in RegionTwo. But Keystone
service is started and registered in RegionOne, not RegionTwo, so we use
KEYSTONE_REGION_NAME to specify the region of Keystone service.
KEYSTONE_REGION_NAME has a default value the same as REGION_NAME thus we omit
it in the configuration of RegionOne.
Disabling Identity API v2
+++++++++++++++++++++++++
@@ -640,3 +715,106 @@ use the v3 API. It is possible to setup keystone without v2 API, by doing:
::
ENABLE_IDENTITY_V2=False
Exercises
~~~~~~~~~
``exerciserc`` is used to configure settings for the exercise scripts.
The values shown below are the default values. These can all be
overridden by setting them in the ``localrc`` section.
* Max time to wait while vm goes from build to active state
::
ACTIVE_TIMEOUT==30
* Max time to wait for proper IP association and dis-association.
::
ASSOCIATE_TIMEOUT=15
* Max time till the vm is bootable
::
BOOT_TIMEOUT=30
* Max time from run instance command until it is running
::
RUNNING_TIMEOUT=$(($BOOT_TIMEOUT + $ACTIVE_TIMEOUT))
* Max time to wait for a vm to terminate
::
TERMINATE_TIMEOUT=30
.. _arch-configuration:
Architectures
-------------
The upstream CI runs exclusively on nodes with x86 architectures, but
OpenStack supports even more architectures. Some of them need to configure
Devstack in a certain way.
KVM on s390x (IBM z Systems)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
KVM on s390x (IBM z Systems) is supported since the *Kilo* release. For
an all-in-one setup, these minimal settings in the ``local.conf`` file
are needed::
[[local|localrc]]
ADMIN_PASSWORD=secret
DATABASE_PASSWORD=$ADMIN_PASSWORD
RABBIT_PASSWORD=$ADMIN_PASSWORD
SERVICE_PASSWORD=$ADMIN_PASSWORD
DOWNLOAD_DEFAULT_IMAGES=False
IMAGE_URLS="https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-s390x-disk1.img"
# Provide a custom etcd3 binary download URL and ints sha256.
# The binary must be located under '/<etcd version>/etcd-<etcd-version>-linux-s390x.tar.gz'
# on this URL.
# Build instructions for etcd3: https://github.com/linux-on-ibm-z/docs/wiki/Building-etcd
ETCD_DOWNLOAD_URL=<your-etcd-download-url>
ETCD_SHA256=<your-etcd3-sha256>
enable_service n-sproxy
disable_service n-novnc
[[post-config|$NOVA_CONF]]
[serial_console]
base_url=ws://$HOST_IP:6083/ # optional
Reasoning:
* The default image of Devstack is x86 only, so we deactivate the download
with ``DOWNLOAD_DEFAULT_IMAGES``. The referenced guest image
in the code above (``IMAGE_URLS``) serves as an example. The list of
possible s390x guest images is not limited to that.
* This platform doesn't support a graphical console like VNC or SPICE.
The technical reason is the missing framebuffer on the platform. This
means we rely on the substitute feature *serial console* which needs the
proxy service ``n-sproxy``. We also disable VNC's proxy ``n-novnc`` for
that reason . The configuration in the ``post-config`` section is only
needed if you want to use the *serial console* outside of the all-in-one
setup.
* A link to an etcd3 binary and its sha256 needs to be provided as the
binary for s390x is not hosted on github like it is for other
architectures. For more details see
https://bugs.launchpad.net/devstack/+bug/1693192. Etcd3 can easily be
built along https://github.com/linux-on-ibm-z/docs/wiki/Building-etcd.
.. note:: To run *Tempest* against this *Devstack* all-in-one, you'll need
to use a guest image which is smaller than 1GB when uncompressed.
The example image from above is bigger than that!
+117
View File
@@ -0,0 +1,117 @@
==========================
Developing with Devstack
==========================
Now that you have your nifty DevStack up and running, what can you do
with it?
Inspecting Services
===================
By default most services in DevStack are running as `systemd` units
named `devstack@$servicename.service`. You can see running services
with.
.. code-block:: bash
sudo systemctl status "devstack@*"
To learn more about the basics of systemd, see :doc:`/systemd`
Patching a Service
==================
If you want to make a quick change to a running service the easiest
way to do that is to change the code directly in /opt/stack/$service
and then restart the affected daemons.
.. code-block:: bash
sudo systemctl restart devstack@n-cpu.service
If your change impacts more than one daemon you can restart by
wildcard as well.
.. code-block:: bash
sudo systemctl restart "devstack@n-*"
.. warning::
All changes you are making are in checked out git trees that
DevStack thinks it has full control over. Uncommitted work, or
work committed to the master branch, may be overwritten during
subsequent DevStack runs.
Testing a Patch Series
======================
When testing a larger set of patches, or patches that will impact more
than one service within a project, it is often less confusing to use
custom git locations, and make all your changes in a dedicated git
tree.
In your ``local.conf`` you can add ``**_REPO``, ``**_BRANCH`` for most projects
to use a custom git tree instead of the default upstream ones.
For instance:
.. code-block:: bash
[[local|localrc]]
NOVA_REPO=/home/sdague/nova
NOVA_BRANCH=fold_disk_config
Will use a custom git tree and branch when doing any devstack
operations, such as ``stack.sh``.
When testing complicated changes committing to these trees, then doing
``./unstack.sh && ./stack.sh`` is often a valuable way to
iterate. This does take longer per iteration than direct patching, as
the whole devstack needs to rebuild.
You can use this same approach to test patches that are up for review
in gerrit by using the ref name that gerrit assigns to each change.
.. code-block:: bash
[[local|localrc]]
NOVA_BRANCH=refs/changes/10/353710/1
Testing Changes to Libraries
============================
When testing changes to libraries consumed by OpenStack services (such
as oslo or any of the python-fooclient libraries) things are a little
more complicated. By default we only test with released versions of
these libraries that are on pypi.
You must first override this with the setting ``LIBS_FROM_GIT``. This
will enable your DevStack with the git version of that library instead
of the released version.
After that point you can also specify ``**_REPO``, ``**_BRANCH`` to use
your changes instead of just upstream master.
.. code-block:: bash
[[local|localrc]]
LIBS_FROM_GIT=oslo.policy
OSLOPOLICY_REPO=/home/sdague/oslo.policy
OSLOPOLICY_BRANCH=better_exception
As libraries are not installed `editable` by pip, after you make any
local changes you will need to:
* cd to top of library path
* sudo pip install -U .
* restart all services you want to use the new library
You can do that with wildcards such as
.. code-block:: bash
sudo systemctl restart "devstack@n-*"
which will restart all nova services.
-42
View File
@@ -1,42 +0,0 @@
==============================
exerciserc - Exercise Settings
==============================
``exerciserc`` is used to configure settings for the exercise scripts.
The values shown below are the default values. These can all be
overridden by setting them in the ``localrc`` section.
ACTIVE\_TIMEOUT
Max time to wait while vm goes from build to active state
::
ACTIVE_TIMEOUT==30
ASSOCIATE\_TIMEOUT
Max time to wait for proper IP association and dis-association.
::
ASSOCIATE_TIMEOUT=15
BOOT\_TIMEOUT
Max time till the vm is bootable
::
BOOT_TIMEOUT=30
RUNNING\_TIMEOUT
Max time from run instance command until it is running
::
RUNNING_TIMEOUT=$(($BOOT_TIMEOUT + $ACTIVE_TIMEOUT))
TERMINATE\_TIMEOUT
Max time to wait for a vm to terminate
::
TERMINATE_TIMEOUT=30
+8 -17
View File
@@ -32,17 +32,18 @@ That isn't a question, but please do! The source for DevStack is at
`git.openstack.org
<https://git.openstack.org/cgit/openstack-dev/devstack>`__ and bug
reports go to `LaunchPad
<http://bugs.launchpad.net/devstack/>`__. Contributions follow the
<https://bugs.launchpad.net/devstack/>`__. Contributions follow the
usual process as described in the `developer guide
<http://docs.openstack.org/infra/manual/developers.html>`__. This
<https://docs.openstack.org/infra/manual/developers.html>`__. This
Sphinx documentation is housed in the doc directory.
Why not use packages?
~~~~~~~~~~~~~~~~~~~~~
Unlike packages, DevStack leaves your cloud ready to develop -
checkouts of the code and services running in screen. However, many
people are doing the hard work of packaging and recipes for production
checkouts of the code and services running locally under systemd,
making it easy to hack on and test new patches. However, many people
are doing the hard work of packaging and recipes for production
deployments.
Why isn't $MY\_FAVORITE\_DISTRO supported?
@@ -85,7 +86,7 @@ through bash for this
function sourceopenrc {
pushd ~/devstack >/dev/null
eval $(bash -c ". openrc $1 $2;env|sed -n '/OS_/ { s/^/export /;p}'")
eval $(bash -c ". openrc $1 $2 >/dev/null;env|sed -n '/OS_/ { s/^/export /;p}'")
popd >/dev/null
}
@@ -130,8 +131,8 @@ How do I run a specific OpenStack release?
DevStack master tracks the upstream master of all the projects. If you
would like to run a stable branch of OpenStack, you should use the
corresponding stable branch of DevStack as well. For instance the
``stable/kilo`` version of DevStack will already default to all the
projects running at ``stable/kilo`` levels.
``stable/ocata`` version of DevStack will already default to all the
projects running at ``stable/ocata`` levels.
Note: it's also possible to manually adjust the ``*_BRANCH`` variables
further if you would like to test specific milestones, or even custom
@@ -158,16 +159,6 @@ to a working IP address; setting it to 127.0.0.1 in ``/etc/hosts`` is
often good enough for a single-node installation. And in an extreme
case, use ``clean.sh`` to eradicate it and try again.
Configure ``local.conf`` thusly:
::
[[local|localrc]]
HEAT_STANDALONE=True
ENABLED_SERVICES=rabbit,mysql,heat,h-api,h-api-cfn,h-api-cw,h-eng
KEYSTONE_SERVICE_HOST=<keystone-host>
KEYSTONE_AUTH_HOST=<keystone-host>
Why are my configuration changes ignored?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+68
View File
@@ -0,0 +1,68 @@
Guides
======
.. warning::
The guides are point in time contributions, and may not always be
up to date with the latest work in devstack.
Walk through various setups used by stackers
.. toctree::
:glob:
:maxdepth: 1
guides/single-vm
guides/single-machine
guides/lxc
guides/multinode-lab
guides/neutron
guides/devstack-with-nested-kvm
guides/nova
guides/devstack-with-lbaas-v2
All-In-One Single VM
--------------------
Run :doc:`OpenStack in a VM <guides/single-vm>`. The VMs launched in your cloud will be slow as
they are running in QEMU (emulation), but it is useful if you don't have
spare hardware laying around. :doc:`[Read] <guides/single-vm>`
All-In-One Single Machine
-------------------------
Run :doc:`OpenStack on dedicated hardware <guides/single-machine>` This can include a
server-class machine or a laptop at home.
:doc:`[Read] <guides/single-machine>`
All-In-One LXC Container
-------------------------
Run :doc:`OpenStack in a LXC container <guides/lxc>`. Beneficial for intermediate
and advanced users. The VMs launched in this cloud will be fully accelerated but
not all OpenStack features are supported. :doc:`[Read] <guides/lxc>`
Multi-Node Lab
--------------
Setup a :doc:`multi-node cluster <guides/multinode-lab>` with dedicated VLANs for VMs & Management.
:doc:`[Read] <guides/multinode-lab>`
DevStack with Neutron Networking
--------------------------------
Building a DevStack cluster with :doc:`Neutron Networking <guides/neutron>`.
This guide is meant for building lab environments with a dedicated
control node and multiple compute nodes.
DevStack with KVM-based Nested Virtualization
---------------------------------------------
Procedure to setup :doc:`DevStack with KVM-based Nested Virtualization
<guides/devstack-with-nested-kvm>`. With this setup, Nova instances
will be more performant than with plain QEMU emulation.
Nova and devstack
--------------------------------
Guide to working with nova features :doc:`Nova and devstack <guides/nova>`.
+7 -8
View File
@@ -39,13 +39,12 @@ Edit your ``local.conf`` to look like
LOGFILE=$DEST/logs/stack.sh.log
VERBOSE=True
LOG_COLOR=True
SCREEN_LOGDIR=$DEST/logs
# Pre-requisite
ENABLED_SERVICES=rabbit,mysql,key
# Horizon
ENABLED_SERVICES+=,horizon
# Nova
ENABLED_SERVICES+=,n-api,n-crt,n-cpu,n-cond,n-sch
ENABLED_SERVICES+=,n-api,n-cpu,n-cond,n-sch
# Glance
ENABLED_SERVICES+=,g-api,g-reg
# Neutron
@@ -66,21 +65,21 @@ Run stack.sh and do some sanity checks
./stack.sh
. ./openrc
neutron net-list # should show public and private networks
openstack network list # should show public and private networks
Create two nova instances that we can use as test http servers:
::
#create nova instances on private network
nova boot --image $(nova image-list | awk '/ cirros-.*-x86_64-uec / {print $2}') --flavor 1 --nic net-id=$(neutron net-list | awk '/ private / {print $2}') node1
nova boot --image $(nova image-list | awk '/ cirros-.*-x86_64-uec / {print $2}') --flavor 1 --nic net-id=$(neutron net-list | awk '/ private / {print $2}') node2
nova boot --image $(nova image-list | awk '/ cirros-.*-x86_64-uec / {print $2}') --flavor 1 --nic net-id=$(openstack network list | awk '/ private / {print $2}') node1
nova boot --image $(nova image-list | awk '/ cirros-.*-x86_64-uec / {print $2}') --flavor 1 --nic net-id=$(openstack network list | awk '/ private / {print $2}') node2
nova list # should show the nova instances just created
#add secgroup rules to allow ssh etc..
neutron security-group-rule-create default --protocol icmp
neutron security-group-rule-create default --protocol tcp --port-range-min 22 --port-range-max 22
neutron security-group-rule-create default --protocol tcp --port-range-min 80 --port-range-max 80
openstack security group rule create default --protocol icmp
openstack security group rule create default --protocol tcp --dst-port 22:22
openstack security group rule create default --protocol tcp --dst-port 80:80
Set up a simple web server on each of these instances. ssh into each instance (username 'cirros', password 'cubswin:)') and run
@@ -73,7 +73,7 @@ back:
::
sudo rmmod kvm-amd
sudo sh -c "echo 'options amd nested=1' >> /etc/modprobe.d/dist.conf"
sudo sh -c "echo 'options kvm-amd nested=1' >> /etc/modprobe.d/dist.conf"
sudo modprobe kvm-amd
Ensure the Nested KVM Kernel module parameter for AMD is enabled on the
+1 -1
View File
@@ -88,7 +88,7 @@ You can login using the username ``ubuntu`` and password ``ubuntu``.
You can also ssh into your container. On your host, run
``sudo lxc-info -n devstack`` to get the IP address (e.g.
``ssh ubuntu@$(sudo lxc-info -n p2 | awk '/IP/ { print $2 }')``).
``ssh ubuntu@$(sudo lxc-info -n devstack | awk '/IP/ { print $2 }')``).
Run Devstack
-------------
+26 -7
View File
@@ -73,8 +73,7 @@ Otherwise create the stack user:
::
groupadd stack
useradd -g stack -s /bin/bash -d /opt/stack -m stack
useradd -s /bin/bash -d /opt/stack -m stack
This user will be making many changes to your system during installation
and operation so it needs to have sudo privileges to root without a
@@ -176,7 +175,7 @@ machines, create a ``local.conf`` with:
MYSQL_HOST=$SERVICE_HOST
RABBIT_HOST=$SERVICE_HOST
GLANCE_HOSTPORT=$SERVICE_HOST:9292
ENABLED_SERVICES=n-cpu,n-net,n-api-meta,c-vol
ENABLED_SERVICES=n-cpu,q-agt,n-api-meta,c-vol,placement-client
NOVA_VNC_ENABLED=True
NOVNCPROXY_URL="http://$SERVICE_HOST:6080/vnc_auto.html"
VNCSERVER_LISTEN=$HOST_IP
@@ -198,6 +197,22 @@ A stream of activity ensues. When complete you will see a summary of
to poke at your shiny new OpenStack. The most recent log file is
available in ``stack.sh.log``.
Starting in the Ocata release, Nova requires a `Cells v2`_ deployment. Compute
node services must be mapped to a cell before they can be used.
After each compute node is stacked, verify it shows up in the
``nova service-list --binary nova-compute`` output. The compute service is
registered in the cell database asynchronously so this may require polling.
Once the compute node services shows up, run the ``./tools/discover_hosts.sh``
script from the control node to map compute hosts to the single cell.
The compute service running on the primary control node will be
discovered automatically when the control node is stacked so this really
only needs to be performed for subnodes.
.. _Cells v2: https://docs.openstack.org/nova/latest/user/cells.html
Cleaning Up After DevStack
--------------------------
@@ -260,7 +275,7 @@ for scripting:
openstack user create $NAME --password=$PASSWORD --project $PROJECT
openstack role add Member --user $NAME --project $PROJECT
# The Member role is created by stack.sh
# openstack role list
# openstack role assignment list
Swift
-----
@@ -294,10 +309,10 @@ created inside OpenStack. The size can be overridden by setting
``stack-volumes`` can be pre-created on any physical volume supported by
Linux's LVM. The name of the volume group can be changed by setting
``VOLUME_GROUP`` in ``localrc``. ``stack.sh`` deletes all logical
volumes in ``VOLUME_GROUP`` that begin with ``VOLUME_NAME_PREFIX`` as
``VOLUME_GROUP_NAME`` in ``localrc``. ``stack.sh`` deletes all logical
volumes in ``VOLUME_GROUP_NAME`` that begin with ``VOLUME_NAME_PREFIX`` as
part of cleaning up from previous runs. It is recommended to not use the
root volume group as ``VOLUME_GROUP``.
root volume group as ``VOLUME_GROUP_NAME``.
The details of creating the volume group depends on the server hardware
involved but looks something like this:
@@ -400,6 +415,10 @@ SSH keys need to be exchanged between each compute node:
ssh-keyscan -H DEST_HOSTNAME | sudo tee -a /root/.ssh/known_hosts
3. Verify that login via ssh works without a password::
ssh -i /root/.ssh/id_rsa.pub stack@DESTINATION
In essence, this means that every compute node's root user's public RSA key
must exist in every other compute node's stack user's authorized_keys file and
every compute node's public ECDSA key needs to be in every other compute
+136 -41
View File
@@ -15,8 +15,20 @@ In some instances, like on a developer laptop, there is only one
network interface that is available. In this scenario, the physical
interface is added to the Open vSwitch bridge, and the IP address of
the laptop is migrated onto the bridge interface. That way, the
physical interface can be used to transmit tenant network traffic,
the OpenStack API traffic, and management traffic.
physical interface can be used to transmit self service project
network traffic, the OpenStack API traffic, and management traffic.
.. warning::
When using a single interface networking setup, there will be a
temporary network outage as your IP address is moved from the
physical NIC of your machine, to the OVS bridge. If you are SSH'd
into the machine from another computer, there is a risk of being
disconnected from your ssh session (due to arp cache
invalidation), which would stop the stack.sh or leave it in an
unfinished state. In these cases, start stack.sh inside its own
screen session so it can continue to run.
Physical Network Setup
@@ -64,19 +76,12 @@ serving as a hypervisor for guest instances.
RABBIT_PASSWORD=secret
SERVICE_PASSWORD=secret
# Do not use Nova-Network
disable_service n-net
# Enable Neutron
ENABLED_SERVICES+=,q-svc,q-dhcp,q-meta,q-agt,q-l3
## Neutron options
Q_USE_SECGROUP=True
FLOATING_RANGE="172.18.161.0/24"
FIXED_RANGE="10.0.0.0/24"
IPV4_ADDRS_SAFE_TO_USE="10.0.0.0/22"
Q_FLOATING_ALLOCATION_POOL=start=172.18.161.250,end=172.18.161.254
PUBLIC_NETWORK_GATEWAY="172.18.161.1"
Q_L3_ENABLED=True
PUBLIC_INTERFACE=eth0
# Open vSwitch provider networking configuration
@@ -210,12 +215,12 @@ it over the `br-ex` bridge, where `eth0` is attached.
which is used as the "integration bridge" where ports are created, and
plugged into the virtual switching fabric. `br-ex` is an OVS bridge
that is used to connect physical ports (like `eth0`), so that floating
IP traffic for tenants can be received from the physical network
infrastructure (and the internet), and routed to tenant network ports.
`br-tun` is a tunnel bridge that is used to connect OpenStack nodes
(like `devstack-2`) together. This bridge is used so that tenant
network traffic, using the VXLAN tunneling protocol, flows between
each compute node where tenant instances run.
IP traffic for project networks can be received from the physical
network infrastructure (and the internet), and routed to self service
project network ports. `br-tun` is a tunnel bridge that is used to
connect OpenStack nodes (like `devstack-2`) together. This bridge is
used so that project network traffic, using the VXLAN tunneling
protocol, flows between each compute node where project instances run.
@@ -350,6 +355,8 @@ the compute service ``nova-compute``.
DevStack Configuration
----------------------
.. _ovs-provider-network-controller:
The following is a snippet of the DevStack configuration on the
controller node.
@@ -369,32 +376,28 @@ controller node.
## Neutron options
Q_USE_SECGROUP=True
ENABLE_TENANT_VLANS=True
TENANT_VLAN_RANGE=3001:4000
ENABLE_PROJECT_VLANS=True
PROJECT_VLAN_RANGE=3001:4000
PHYSICAL_NETWORK=default
OVS_PHYSICAL_BRIDGE=br-ex
Q_USE_PROVIDER_NETWORKING=True
Q_L3_ENABLED=False
# Do not use Nova-Network
disable_service n-net
# Neutron
ENABLED_SERVICES+=,q-svc,q-dhcp,q-meta,q-agt
disable_service q-l3
## Neutron Networking options used to create Neutron Subnets
FIXED_RANGE="203.0.113.0/24"
IPV4_ADDRS_SAFE_TO_USE="203.0.113.0/24"
NETWORK_GATEWAY=203.0.113.1
PROVIDER_SUBNET_NAME="provider_net"
PROVIDER_NETWORK_TYPE="vlan"
SEGMENTATION_ID=2010
USE_SUBNETPOOL=False
In this configuration we are defining FIXED_RANGE to be a
In this configuration we are defining IPV4_ADDRS_SAFE_TO_USE to be a
publicly routed IPv4 subnet. In this specific instance we are using
the special TEST-NET-3 subnet defined in `RFC 5737 <http://tools.ietf.org/html/rfc5737>`_,
which is used for documentation. In your DevStack setup, FIXED_RANGE
which is used for documentation. In your DevStack setup, IPV4_ADDRS_SAFE_TO_USE
would be a public IP address range that you or your organization has
allocated to you, so that you could access your instances from the
public internet.
@@ -422,13 +425,12 @@ compute node 1.
OVS_PHYSICAL_BRIDGE=br-ex
PUBLIC_INTERFACE=eth1
Q_USE_PROVIDER_NETWORKING=True
Q_L3_ENABLED=False
Compute node 2's configuration will be exactly the same, except
``HOST_IP`` will be ``10.0.0.4``
When DevStack is configured to use provider networking (via
``Q_USE_PROVIDER_NETWORKING`` is True and ``Q_L3_ENABLED`` is False) -
``Q_USE_PROVIDER_NETWORKING`` is True) -
DevStack will automatically add the network interface defined in
``PUBLIC_INTERFACE`` to the ``OVS_PHYSICAL_BRIDGE``
@@ -443,13 +445,18 @@ Miscellaneous Tips
Non-Standard MTU on the Physical Network
----------------------------------------
DevStack defaults to assume that the MTU on the physical network
is 1500. A different MTU can be specified by adding the following to
the `localrc` part of `local.conf` on each machine.
Neutron by default uses a MTU of 1500 bytes, which is
the standard MTU for Ethernet.
A different MTU can be specified by adding the following to
the Neutron section of `local.conf`. For example,
if you have network equipment that supports jumbo frames, you could
set the MTU to 9000 bytes by adding the following
::
Q_ML2_PLUGIN_PATH_MTU=1500
[[post-config|/$Q_PLUGIN_CONF_FILE]]
global_physnet_mtu = 9000
Disabling Next Generation Firewall Tools
@@ -514,19 +521,12 @@ setup, with small modifications for the interface mappings.
RABBIT_PASSWORD=secret
SERVICE_PASSWORD=secret
# Do not use Nova-Network
disable_service n-net
# Enable Neutron
ENABLED_SERVICES+=,q-svc,q-dhcp,q-meta,q-agt,q-l3
## Neutron options
Q_USE_SECGROUP=True
FLOATING_RANGE="172.18.161.0/24"
FIXED_RANGE="10.0.0.0/24"
IPV4_ADDRS_SAFE_TO_USE="10.0.0.0/24"
Q_FLOATING_ALLOCATION_POOL=start=172.18.161.250,end=172.18.161.254
PUBLIC_NETWORK_GATEWAY="172.18.161.1"
Q_L3_ENABLED=True
PUBLIC_INTERFACE=eth0
Q_USE_PROVIDERNET_FOR_PUBLIC=True
@@ -537,3 +537,98 @@ setup, with small modifications for the interface mappings.
PUBLIC_PHYSICAL_NETWORK=default
LB_INTERFACE_MAPPINGS=default:eth0
Using MacVTap instead of Open vSwitch
------------------------------------------
Security groups are not supported by the MacVTap agent. Due to that, devstack
configures the NoopFirewall driver on the compute node.
MacVTap agent does not support l3, dhcp and metadata agent. Due to that you can
chose between the following deployment scenarios:
Single node with provider networks using config drive and external l3, dhcp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This scenario applies, if l3 and dhcp services are provided externally, or if
you do not require them.
::
[[local|localrc]]
HOST_IP=10.0.0.2
SERVICE_HOST=10.0.0.2
MYSQL_HOST=10.0.0.2
RABBIT_HOST=10.0.0.2
ADMIN_PASSWORD=secret
MYSQL_PASSWORD=secret
RABBIT_PASSWORD=secret
SERVICE_PASSWORD=secret
Q_ML2_PLUGIN_MECHANISM_DRIVERS=macvtap
Q_USE_PROVIDER_NETWORKING=True
enable_plugin neutron https://git.openstack.org/openstack/neutron
## MacVTap agent options
Q_AGENT=macvtap
PHYSICAL_NETWORK=default
IPV4_ADDRS_SAFE_TO_USE="203.0.113.0/24"
NETWORK_GATEWAY=203.0.113.1
PROVIDER_SUBNET_NAME="provider_net"
PROVIDER_NETWORK_TYPE="vlan"
SEGMENTATION_ID=2010
USE_SUBNETPOOL=False
[[post-config|/$Q_PLUGIN_CONF_FILE]]
[macvtap]
physical_interface_mappings = $PHYSICAL_NETWORK:eth1
[[post-config|$NOVA_CONF]]
force_config_drive = True
Multi node with MacVTap compute node
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This scenario applies, if you require OpenStack provided l3, dhcp or metadata
services. Those are hosted on a separate controller and network node, running
some other l2 agent technology (in this example Open vSwitch). This node needs
to be configured for VLAN tenant networks.
For OVS, a similar configuration like described in the
:ref:`OVS Provider Network <ovs-provider-network-controller>` section can be
used. Just add the following line to this local.conf, which also loads
the MacVTap mechanism driver:
::
[[local|localrc]]
...
Q_ML2_PLUGIN_MECHANISM_DRIVERS=openvswitch,linuxbridge,macvtap
...
For the MacVTap compute node, use this local.conf:
::
HOST_IP=10.0.0.3
SERVICE_HOST=10.0.0.2
MYSQL_HOST=10.0.0.2
RABBIT_HOST=10.0.0.2
ADMIN_PASSWORD=secret
MYSQL_PASSWORD=secret
RABBIT_PASSWORD=secret
SERVICE_PASSWORD=secret
# Services that a compute node runs
disable_all_services
enable_plugin neutron https://git.openstack.org/openstack/neutron
ENABLED_SERVICES+=n-cpu,q-agt
## MacVTap agent options
Q_AGENT=macvtap
PHYSICAL_NETWORK=default
[[post-config|/$Q_PLUGIN_CONF_FILE]]
[macvtap]
physical_interface_mappings = $PHYSICAL_NETWORK:eth1
+5 -7
View File
@@ -13,7 +13,7 @@ In Juno, nova implemented a `spec
<http://specs.openstack.org/openstack/nova-specs/specs/juno/implemented/serial-ports.html>`_
to allow read/write access to the serial console of an instance via
`nova-serialproxy
<http://docs.openstack.org/developer/nova/man/nova-serialproxy.html>`_.
<https://docs.openstack.org/nova/latest/cli/nova-serialproxy.html>`_.
The service can be enabled by adding ``n-sproxy`` to
``ENABLED_SERVICES``. Further options can be enabled via
@@ -62,11 +62,9 @@ The service can be enabled by adding ``n-sproxy`` to
Enabling the service is enough to be functional for a single machine DevStack.
These config options are defined in `nova.console.serial
<https://github.com/openstack/nova/blob/master/nova/console/serial.py#L33-L52>`_
and `nova.cmd.serialproxy
<https://github.com/openstack/nova/blob/master/nova/cmd/serialproxy.py#L26-L33>`_.
These config options are defined in `nova.conf.serial_console
<https://github.com/openstack/nova/blob/master/nova/conf/serial_console.py>`_.
For more information on OpenStack configuration see the `OpenStack
Configuration Reference
<http://docs.openstack.org/trunk/config-reference/content/list-of-compute-config-options.html>`_
Compute Service Configuration Reference
<https://docs.openstack.org/nova/latest/admin/configuration/index.html>`_
+1 -1
View File
@@ -47,7 +47,7 @@ below)
::
adduser stack
useradd -s /bin/bash -d /opt/stack -m stack
Since this user will be making many changes to your system, it will need
to have sudo privileges:
+128 -230
View File
@@ -1,255 +1,153 @@
DevStack - an OpenStack Community Production
============================================
.. Documentation Architecture for the devstack docs.
It is really easy for online docs to meander over time as people
attempt to add the small bit of additional information they think
people need, into an existing information architecture. In order to
prevent that we need to be a bit strict as to what's on this front
page.
This should *only* be the quick start narrative. Which should end
with 2 sections: what you can do with devstack once it's set up,
and how to go beyond this setup. Both should be a set of quick
links to other documents to let people explore from there.
==========
DevStack
==========
.. image:: assets/images/logo-blue.png
.. toctree::
:glob:
:maxdepth: 1
DevStack is a series of extensible scripts used to quickly bring up a
complete OpenStack environment based on the latest versions of
everything from git master. It is used interactively as a development
environment and as the basis for much of the OpenStack project's
functional testing.
overview
configuration
plugins
plugin-registry
faq
changes
hacking
The source is available at
`<https://git.openstack.org/cgit/openstack-dev/devstack>`__.
.. warning::
DevStack will make substantial changes to your system during
installation. Only run DevStack on servers or virtual machines that
are dedicated to this purpose.
Quick Start
-----------
===========
#. Select a Linux Distribution
Install Linux
-------------
Only Ubuntu 14.04 (Trusty), Fedora 22 (or Fedora 23) and CentOS/RHEL
7 are documented here. OpenStack also runs and is packaged on other
flavors of Linux such as OpenSUSE and Debian.
Start with a clean and minimal install of a Linux system. Devstack
attempts to support Ubuntu 16.04/17.04, Fedora 24/25, CentOS/RHEL 7,
as well as Debian and OpenSUSE.
#. Install Selected OS
If you do not have a preference, Ubuntu 16.04 is the most tested, and
will probably go the smoothest.
In order to correctly install all the dependencies, we assume a
specific minimal version of the supported distributions to make it as
easy as possible. We recommend using a minimal install of Ubuntu or
Fedora server in a VM if this is your first time.
#. Download DevStack
::
git clone https://git.openstack.org/openstack-dev/devstack
The ``devstack`` repo contains a script that installs OpenStack and
templates for configuration files
#. Configure
We recommend at least a :ref:`minimal-configuration` be set up.
#. Add Stack User
Devstack should be run as a non-root user with sudo enabled
(standard logins to cloud images such as "ubuntu" or "cloud-user"
are usually fine).
You can quickly create a separate `stack` user to run DevStack with
::
devstack/tools/create-stack-user.sh; su stack
#. Start the install
::
cd devstack; ./stack.sh
It takes a few minutes, we recommend `reading the
script <stack.sh.html>`__ while it is building.
Guides
======
Walk through various setups used by stackers
.. toctree::
:glob:
:maxdepth: 1
guides/single-vm
guides/single-machine
guides/lxc
guides/multinode-lab
guides/neutron
guides/devstack-with-nested-kvm
guides/nova
guides/devstack-with-lbaas-v2
All-In-One Single VM
--------------------
Run :doc:`OpenStack in a VM <guides/single-vm>`. The VMs launched in your cloud will be slow as
they are running in QEMU (emulation), but it is useful if you don't have
spare hardware laying around. :doc:`[Read] <guides/single-vm>`
All-In-One Single Machine
-------------------------
Run :doc:`OpenStack on dedicated hardware <guides/single-machine>` This can include a
server-class machine or a laptop at home.
:doc:`[Read] <guides/single-machine>`
All-In-One LXC Container
-------------------------
Run :doc:`OpenStack in a LXC container <guides/lxc>`. Beneficial for intermediate
and advanced users. The VMs launched in this cloud will be fully accelerated but
not all OpenStack features are supported. :doc:`[Read] <guides/lxc>`
Multi-Node Lab
Add Stack User
--------------
Setup a :doc:`multi-node cluster <guides/multinode-lab>` with dedicated VLANs for VMs & Management.
:doc:`[Read] <guides/multinode-lab>`
Devstack should be run as a non-root user with sudo enabled
(standard logins to cloud images such as "ubuntu" or "cloud-user"
are usually fine).
DevStack with Neutron Networking
--------------------------------
You can quickly create a separate `stack` user to run DevStack with
Building a DevStack cluster with :doc:`Neutron Networking <guides/neutron>`.
This guide is meant for building lab environments with a dedicated
control node and multiple compute nodes.
::
DevStack with KVM-based Nested Virtualization
---------------------------------------------
$ sudo useradd -s /bin/bash -d /opt/stack -m stack
Procedure to setup :doc:`DevStack with KVM-based Nested Virtualization
<guides/devstack-with-nested-kvm>`. With this setup, Nova instances
will be more performant than with plain QEMU emulation.
Since this user will be making many changes to your system, it should
have sudo privileges:
Nova and devstack
--------------------------------
::
Guide to working with nova features :doc:`Nova and devstack <guides/nova>`.
$ echo "stack ALL=(ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/stack
$ sudo su - stack
DevStack Documentation
======================
Download DevStack
-----------------
Overview
::
$ git clone https://git.openstack.org/openstack-dev/devstack
$ cd devstack
The ``devstack`` repo contains a script that installs OpenStack and
templates for configuration files
Create a local.conf
-------------------
Create a ``local.conf`` file with 4 passwords preset at the root of the
devstack git repo.
::
[[local|localrc]]
ADMIN_PASSWORD=secret
DATABASE_PASSWORD=$ADMIN_PASSWORD
RABBIT_PASSWORD=$ADMIN_PASSWORD
SERVICE_PASSWORD=$ADMIN_PASSWORD
This is the minimum required config to get started with DevStack.
Start the install
-----------------
::
./stack.sh
This will take a 15 - 20 minutes, largely depending on the speed of
your internet connection. Many git trees and packages will be
installed during this process.
Profit!
-------
You now have a working DevStack! Congrats!
Your devstack will have installed ``keystone``, ``glance``, ``nova``,
``cinder``, ``neutron``, and ``horizon``. Floating IPs will be
available, guests have access to the external world.
You can access horizon to experience the web interface to
OpenStack, and manage vms, networks, volumes, and images from
there.
You can ``source openrc`` in your shell, and then use the
``openstack`` command line tool to manage your devstack.
You can ``cd /opt/stack/tempest`` and run tempest tests that have
been configured to work with your devstack.
You can :doc:`make code changes to OpenStack and validate them
<development>`.
Going further
-------------
Learn more about our :doc:`configuration system <configuration>` to
customize devstack for your needs. Including making adjustments to the
default :doc:`networking <networking>`.
Read :doc:`guides <guides>` for specific setups people have (note:
guides are point in time contributions, and may not always be kept
up to date to the latest devstack).
Enable :doc:`devstack plugins <plugins>` to support additional
services, features, and configuration not present in base devstack.
Get :doc:`the big picture <overview>` of what we are trying to do
with devstack, and help us by :doc:`contributing to the project
<hacking>`.
Contents
--------
:doc:`An overview of DevStack goals and priorities <overview>`
Configuration
-------------
:doc:`Configuring and customizing the stack <configuration>`
Plugins
-------
:doc:`Extending DevStack with new features <plugins>`
Recent Changes
--------------
:doc:`An incomplete summary of recent changes <changes>`
FAQ
---
:doc:`The DevStack FAQ <faq>`
Contributing
------------
:doc:`Pitching in to make DevStack a better place <hacking>`
Code
====
*A look at the bits that make it all go*
Scripts
-------
* `stack.sh <stack.sh.html>`__ - The main script
* `functions <functions.html>`__ - DevStack-specific functions
* `functions-common <functions-common.html>`__ - Functions shared with other projects
* `lib/apache <lib/apache.html>`__
* `lib/ceph <lib/ceph.html>`__
* `lib/cinder <lib/cinder.html>`__
* `lib/database <lib/database.html>`__
* `lib/dstat <lib/dstat.html>`__
* `lib/glance <lib/glance.html>`__
* `lib/heat <lib/heat.html>`__
* `lib/horizon <lib/horizon.html>`__
* `lib/infra <lib/infra.html>`__
* `lib/keystone <lib/keystone.html>`__
* `lib/ldap <lib/ldap.html>`__
* `lib/neutron-legacy <lib/neutron-legacy.html>`__
* `lib/nova <lib/nova.html>`__
* `lib/oslo <lib/oslo.html>`__
* `lib/rpc\_backend <lib/rpc_backend.html>`__
* `lib/swift <lib/swift.html>`__
* `lib/tempest <lib/tempest.html>`__
* `lib/tls <lib/tls.html>`__
* `lib/trove <lib/trove.html>`__
* `unstack.sh <unstack.sh.html>`__
* `clean.sh <clean.sh.html>`__
* `run\_tests.sh <run_tests.sh.html>`__
* `extras.d/60-ceph.sh <extras.d/60-ceph.sh.html>`__
* `extras.d/70-tuskar.sh <extras.d/70-tuskar.sh.html>`__
* `extras.d/80-tempest.sh <extras.d/80-tempest.sh.html>`__
* `inc/ini-config <inc/ini-config.html>`__
* `inc/meta-config <inc/meta-config.html>`__
* `inc/python <inc/python.html>`__
* `pkg/elasticsearch.sh <pkg/elasticsearch.sh.html>`_
Configuration
-------------
.. toctree::
:glob:
:maxdepth: 1
:maxdepth: 2
local.conf
stackrc
openrc
exerciserc
Tools
-----
* `tools/build\_docs.sh <tools/build_docs.sh.html>`__
* `tools/build\_venv.sh <tools/build_venv.sh.html>`__
* `tools/create-stack-user.sh <tools/create-stack-user.sh.html>`__
* `tools/create\_userrc.sh <tools/create_userrc.sh.html>`__
* `tools/fixup\_stuff.sh <tools/fixup_stuff.sh.html>`__
* `tools/info.sh <tools/info.sh.html>`__
* `tools/install\_pip.sh <tools/install_pip.sh.html>`__
* `tools/install\_prereqs.sh <tools/install_prereqs.sh.html>`__
* `tools/make\_cert.sh <tools/make_cert.sh.html>`__
* `tools/upload\_image.sh <tools/upload_image.sh.html>`__
Samples
-------
* `local.sh <samples/local.sh.html>`__
Exercises
---------
* `exercise.sh <exercise.sh.html>`__
* `exercises/aggregates.sh <exercises/aggregates.sh.html>`__
* `exercises/boot\_from\_volume.sh <exercises/boot_from_volume.sh.html>`__
* `exercises/bundle.sh <exercises/bundle.sh.html>`__
* `exercises/client-args.sh <exercises/client-args.sh.html>`__
* `exercises/client-env.sh <exercises/client-env.sh.html>`__
* `exercises/euca.sh <exercises/euca.sh.html>`__
* `exercises/floating\_ips.sh <exercises/floating_ips.sh.html>`__
* `exercises/horizon.sh <exercises/horizon.sh.html>`__
* `exercises/neutron-adv-test.sh <exercises/neutron-adv-test.sh.html>`__
* `exercises/sec\_groups.sh <exercises/sec_groups.sh.html>`__
* `exercises/swift.sh <exercises/swift.sh.html>`__
* `exercises/volumes.sh <exercises/volumes.sh.html>`__
*
-9
View File
@@ -1,9 +0,0 @@
==========================
local.conf - User Settings
==========================
``local.conf`` is a user-maintained settings file that is sourced in
``stackrc``. It contains a section that replaces the historical
``localrc`` file. See the description of
:doc:`local.conf <configuration>` for more details about the mechanics
of the file.
+116
View File
@@ -0,0 +1,116 @@
=====================
DevStack Networking
=====================
An important part of the DevStack experience is networking that works
by default for created guests. This might not be optimal for your
particular testing environment, so this document tries its best to
explain what's going on.
Defaults
========
If you don't specify any configuration you will get the following:
* neutron (including l3 with openvswitch)
* private project networks for each openstack project
* a floating ip range of 172.24.4.0/24 with the gateway of 172.24.4.1
* the demo project configured with fixed ips on a subnet allocated from
the 10.0.0.0/22 range
* a ``br-ex`` interface controlled by neutron for all its networking
(this is not connected to any physical interfaces).
* DNS resolution for guests based on the resolv.conf for your host
* an ip masq rule that allows created guests to route out
This creates an environment which is isolated to the single
host. Guests can get to the external network for package
updates. Tempest tests will work in this environment.
.. note::
By default all OpenStack environments have security group rules
which block all inbound packets to guests. If you want to be able
to ssh / ping your created guests you should run the following.
.. code-block:: bash
openstack security group rule create --proto icmp --dst-port 0 default
openstack security group rule create --proto tcp --dst-port 22 default
Locally Accessible Guests
=========================
If you want to make you guests accessible from other machines on your
network, we have to connect ``br-ex`` to a physical interface.
Dedicated Guest Interface
-------------------------
If you have 2 or more interfaces on your devstack server, you can
allocate an interface to neutron to fully manage. This **should not**
be the same interface you use to ssh into the devstack server itself.
This is done by setting with the ``PUBLIC_INTERFACE`` attribute.
.. code-block:: bash
[[local|localrc]]
PUBLIC_INTERFACE=eth1
That will put all layer 2 traffic from your guests onto the main
network. When running in this mode the ip masq rule is **not** added
in your devstack, you are responsible for making routing work on your
local network.
Shared Guest Interface
----------------------
.. warning::
This is not a recommended configuration. Because of interactions
between ovs and bridging, if you reboot your box with active
networking you may lose network connectivity to your system.
If you need your guests accessible on the network, but only have 1
interface (using something like a NUC), you can share your one
network. But in order for this to work you need to manually set a lot
of addresses, and have them all exactly correct.
.. code-block:: bash
[[local|localrc]]
PUBLIC_INTERFACE=eth0
HOST_IP=10.42.0.52
FLOATING_RANGE=10.42.0.52/24
PUBLIC_NETWORK_GATEWAY=10.42.0.1
Q_FLOATING_ALLOCATION_POOL=start=10.42.0.250,end=10.42.0.254
In order for this scenario to work the floating ip network must match
the default networking on your server. This breaks HOST_IP detection,
as we exclude the floating range by default, so you have to specify
that manually.
The ``PUBLIC_NETWORK_GATEWAY`` is the gateway that server would normally
use to get off the network. ``Q_FLOATING_ALLOCATION_POOL`` controls
the range of floating ips that will be handed out. As we are sharing
your existing network, you'll want to give it a slice that your local
dhcp server is not allocating. Otherwise you could easily have
conflicting ip addresses, and cause havoc with your local network.
Private Network Addressing
==========================
The private networks addresses are controlled by the ``IPV4_ADDRS_SAFE_TO_USE``
and the ``IPV6_ADDRS_SAFE_TO_USE`` variables. This allows users to specify one
single variable of safe internal IPs to use that will be referenced whether or
not subnetpools are in use.
For IPv4, ``FIXED_RANGE`` and ``SUBNETPOOL_PREFIX_V4`` will just default to
the value of ``IPV4_ADDRS_SAFE_TO_USE`` directly.
For IPv6, ``FIXED_RANGE_V6`` will default to the first /64 of the value of
``IPV6_ADDRS_SAFE_TO_USE``. If ``IPV6_ADDRS_SAFE_TO_USE`` is /64 or smaller,
``FIXED_RANGE_V6`` will just use the value of that directly.
``SUBNETPOOL_PREFIX_V6`` will just default to the value of
``IPV6_ADDRS_SAFE_TO_USE`` directly.
-68
View File
@@ -1,68 +0,0 @@
=====================================
openrc - User Authentication Settings
=====================================
``openrc`` configures login credentials suitable for use with the
OpenStack command-line tools. ``openrc`` sources ``stackrc`` at the
beginning (which in turn sources the ``localrc`` section of
``local.conf``) in order to pick up ``HOST_IP`` and/or ``SERVICE_HOST``
to use in the endpoints. The values shown below are the default values.
OS\_PROJECT\_NAME (OS\_TENANT\_NAME)
Keystone has
standardized the term *project* as the entity that owns resources. In
some places references still exist to the previous term
*tenant* for this use. Also, *project\_name* is preferred to
*project\_id*. OS\_TENANT\_NAME remains supported for compatibility
with older tools.
::
OS_PROJECT_NAME=demo
OS\_USERNAME
In addition to the owning entity (project), OpenStack calls the entity
performing the action *user*.
::
OS_USERNAME=demo
OS\_PASSWORD
Keystone's default authentication requires a password be provided.
The usual cautions about putting passwords in environment variables
apply, for most DevStack uses this may be an acceptable tradeoff.
::
OS_PASSWORD=secret
HOST\_IP, SERVICE\_HOST
Set API endpoint host using ``HOST_IP``. ``SERVICE_HOST`` may also
be used to specify the endpoint, which is convenient for some
``local.conf`` configurations. Typically, ``HOST_IP`` is set in the
``localrc`` section.
::
HOST_IP=127.0.0.1
SERVICE_HOST=$HOST_IP
OS\_AUTH\_URL
Authenticating against an OpenStack cloud using Keystone returns a
*Token* and *Service Catalog*. The catalog contains the endpoints
for all services the user/tenant has access to - including Nova,
Glance, Keystone and Swift.
::
OS_AUTH_URL=http://$SERVICE_HOST:5000/v2.0
KEYSTONECLIENT\_DEBUG, NOVACLIENT\_DEBUG
Set command-line client log level to ``DEBUG``. These are commented
out by default.
::
# export KEYSTONECLIENT_DEBUG=1
# export NOVACLIENT_DEBUG=1
+5 -12
View File
@@ -20,11 +20,11 @@ Base OS
*The OpenStack Technical Committee (TC) has defined the current CI
strategy to include the latest Ubuntu release and the latest RHEL
release (for Python 2.6 testing).*
release.*
- Ubuntu: current LTS release plus current development release
- Fedora: current release plus previous release
- RHEL: current major release
- RHEL/CentOS: current major release
- Other OS platforms may continue to be included but the maintenance of
those platforms shall not be assumed simply due to their presence.
Having a listed point-of-contact for each additional OS will greatly
@@ -38,7 +38,6 @@ Databases
*As packaged by the host OS*
- MySQL
- PostgreSQL
Queues
------
@@ -46,7 +45,6 @@ Queues
*As packaged by the host OS*
- Rabbit
- Qpid
Web Server
----------
@@ -58,9 +56,6 @@ Web Server
OpenStack Network
-----------------
*Defaults to nova network, optionally use neutron*
- Nova Network: FlatDHCP
- Neutron: A basic configuration approximating the original FlatDHCP
mode using linuxbridge or OpenVSwitch.
@@ -68,9 +63,8 @@ Services
--------
The default services configured by DevStack are Identity (keystone),
Object Storage (swift), Image Service (glance), Block Storage (cinder),
Compute (nova), Networking (nova), Dashboard (horizon), Orchestration
(heat)
Object Storage (swift), Image Service (glance), Block Storage
(cinder), Compute (nova), Networking (neutron), Dashboard (horizon)
Additional services not included directly in DevStack can be tied in to
``stack.sh`` using the :doc:`plugin mechanism <plugins>` to call
@@ -80,8 +74,7 @@ Node Configurations
-------------------
- single node
- multi-node is not tested regularly by the core team, and even then
only minimal configurations are reviewed
- multi-node configurations as are tested by the gate
Exercises
---------
+184 -190
View File
@@ -1,198 +1,192 @@
..
Note to patch submitters: this file is covered by a periodic proposal
job. You should edit the files data/devstack-plugins-registry.footer
data/devstack-plugins-registry.header instead of this one.
.. Note to patch submitters:
# ============================= #
# THIS FILE IS AUTOGENERATED ! #
# ============================= #
** Plugins are found automatically and added to this list **
This file is created by a periodic proposal job. You should not
edit this file.
You should edit the files data/devstack-plugins-registry.footer
data/devstack-plugins-registry.header to modify this text.
==========================
DevStack Plugin Registry
==========================
Since we've created the external plugin mechanism, it's gotten used by
a lot of projects. The following is a list of plugins that currently
exist. Any project that wishes to list their plugin here is welcomed
to.
The following list is an automatically-generated collection of
available DevStack plugins. This includes, but is not limited to,
official OpenStack projects.
Detected Plugins
================
The following are plugins that a script has found in the openstack/
namespace, which includes but is not limited to official OpenStack
projects.
====================================== ===
Plugin Name URL
====================================== ===
almanach `https://git.openstack.org/openstack/almanach <https://git.openstack.org/cgit/openstack/almanach>`__
aodh `https://git.openstack.org/openstack/aodh <https://git.openstack.org/cgit/openstack/aodh>`__
astara `https://git.openstack.org/openstack/astara <https://git.openstack.org/cgit/openstack/astara>`__
barbican `https://git.openstack.org/openstack/barbican <https://git.openstack.org/cgit/openstack/barbican>`__
bilean `https://git.openstack.org/openstack/bilean <https://git.openstack.org/cgit/openstack/bilean>`__
blazar `https://git.openstack.org/openstack/blazar <https://git.openstack.org/cgit/openstack/blazar>`__
broadview-collector `https://git.openstack.org/openstack/broadview-collector <https://git.openstack.org/cgit/openstack/broadview-collector>`__
ceilometer `https://git.openstack.org/openstack/ceilometer <https://git.openstack.org/cgit/openstack/ceilometer>`__
ceilometer-powervm `https://git.openstack.org/openstack/ceilometer-powervm <https://git.openstack.org/cgit/openstack/ceilometer-powervm>`__
cloudkitty `https://git.openstack.org/openstack/cloudkitty <https://git.openstack.org/cgit/openstack/cloudkitty>`__
collectd-ceilometer-plugin `https://git.openstack.org/openstack/collectd-ceilometer-plugin <https://git.openstack.org/cgit/openstack/collectd-ceilometer-plugin>`__
congress `https://git.openstack.org/openstack/congress <https://git.openstack.org/cgit/openstack/congress>`__
cue `https://git.openstack.org/openstack/cue <https://git.openstack.org/cgit/openstack/cue>`__
cyborg `https://git.openstack.org/openstack/cyborg <https://git.openstack.org/cgit/openstack/cyborg>`__
designate `https://git.openstack.org/openstack/designate <https://git.openstack.org/cgit/openstack/designate>`__
devstack-plugin-additional-pkg-repos `https://git.openstack.org/openstack/devstack-plugin-additional-pkg-repos <https://git.openstack.org/cgit/openstack/devstack-plugin-additional-pkg-repos>`__
devstack-plugin-amqp1 `https://git.openstack.org/openstack/devstack-plugin-amqp1 <https://git.openstack.org/cgit/openstack/devstack-plugin-amqp1>`__
devstack-plugin-bdd `https://git.openstack.org/openstack/devstack-plugin-bdd <https://git.openstack.org/cgit/openstack/devstack-plugin-bdd>`__
devstack-plugin-ceph `https://git.openstack.org/openstack/devstack-plugin-ceph <https://git.openstack.org/cgit/openstack/devstack-plugin-ceph>`__
devstack-plugin-container `https://git.openstack.org/openstack/devstack-plugin-container <https://git.openstack.org/cgit/openstack/devstack-plugin-container>`__
devstack-plugin-glusterfs `https://git.openstack.org/openstack/devstack-plugin-glusterfs <https://git.openstack.org/cgit/openstack/devstack-plugin-glusterfs>`__
devstack-plugin-hdfs `https://git.openstack.org/openstack/devstack-plugin-hdfs <https://git.openstack.org/cgit/openstack/devstack-plugin-hdfs>`__
devstack-plugin-kafka `https://git.openstack.org/openstack/devstack-plugin-kafka <https://git.openstack.org/cgit/openstack/devstack-plugin-kafka>`__
devstack-plugin-libvirt-qemu `https://git.openstack.org/openstack/devstack-plugin-libvirt-qemu <https://git.openstack.org/cgit/openstack/devstack-plugin-libvirt-qemu>`__
devstack-plugin-mariadb `https://git.openstack.org/openstack/devstack-plugin-mariadb <https://git.openstack.org/cgit/openstack/devstack-plugin-mariadb>`__
devstack-plugin-nfs `https://git.openstack.org/openstack/devstack-plugin-nfs <https://git.openstack.org/cgit/openstack/devstack-plugin-nfs>`__
devstack-plugin-pika `https://git.openstack.org/openstack/devstack-plugin-pika <https://git.openstack.org/cgit/openstack/devstack-plugin-pika>`__
devstack-plugin-sheepdog `https://git.openstack.org/openstack/devstack-plugin-sheepdog <https://git.openstack.org/cgit/openstack/devstack-plugin-sheepdog>`__
devstack-plugin-vmax `https://git.openstack.org/openstack/devstack-plugin-vmax <https://git.openstack.org/cgit/openstack/devstack-plugin-vmax>`__
devstack-plugin-zmq `https://git.openstack.org/openstack/devstack-plugin-zmq <https://git.openstack.org/cgit/openstack/devstack-plugin-zmq>`__
dragonflow `https://git.openstack.org/openstack/dragonflow <https://git.openstack.org/cgit/openstack/dragonflow>`__
drbd-devstack `https://git.openstack.org/openstack/drbd-devstack <https://git.openstack.org/cgit/openstack/drbd-devstack>`__
ec2-api `https://git.openstack.org/openstack/ec2-api <https://git.openstack.org/cgit/openstack/ec2-api>`__
freezer `https://git.openstack.org/openstack/freezer <https://git.openstack.org/cgit/openstack/freezer>`__
freezer-api `https://git.openstack.org/openstack/freezer-api <https://git.openstack.org/cgit/openstack/freezer-api>`__
freezer-web-ui `https://git.openstack.org/openstack/freezer-web-ui <https://git.openstack.org/cgit/openstack/freezer-web-ui>`__
fuxi `https://git.openstack.org/openstack/fuxi <https://git.openstack.org/cgit/openstack/fuxi>`__
gce-api `https://git.openstack.org/openstack/gce-api <https://git.openstack.org/cgit/openstack/gce-api>`__
glare `https://git.openstack.org/openstack/glare <https://git.openstack.org/cgit/openstack/glare>`__
group-based-policy `https://git.openstack.org/openstack/group-based-policy <https://git.openstack.org/cgit/openstack/group-based-policy>`__
heat `https://git.openstack.org/openstack/heat <https://git.openstack.org/cgit/openstack/heat>`__
heat-dashboard `https://git.openstack.org/openstack/heat-dashboard <https://git.openstack.org/cgit/openstack/heat-dashboard>`__
horizon-mellanox `https://git.openstack.org/openstack/horizon-mellanox <https://git.openstack.org/cgit/openstack/horizon-mellanox>`__
ironic `https://git.openstack.org/openstack/ironic <https://git.openstack.org/cgit/openstack/ironic>`__
ironic-inspector `https://git.openstack.org/openstack/ironic-inspector <https://git.openstack.org/cgit/openstack/ironic-inspector>`__
ironic-staging-drivers `https://git.openstack.org/openstack/ironic-staging-drivers <https://git.openstack.org/cgit/openstack/ironic-staging-drivers>`__
ironic-ui `https://git.openstack.org/openstack/ironic-ui <https://git.openstack.org/cgit/openstack/ironic-ui>`__
k8s-cloud-provider `https://git.openstack.org/openstack/k8s-cloud-provider <https://git.openstack.org/cgit/openstack/k8s-cloud-provider>`__
karbor `https://git.openstack.org/openstack/karbor <https://git.openstack.org/cgit/openstack/karbor>`__
karbor-dashboard `https://git.openstack.org/openstack/karbor-dashboard <https://git.openstack.org/cgit/openstack/karbor-dashboard>`__
keystone `https://git.openstack.org/openstack/keystone <https://git.openstack.org/cgit/openstack/keystone>`__
kingbird `https://git.openstack.org/openstack/kingbird <https://git.openstack.org/cgit/openstack/kingbird>`__
kuryr-kubernetes `https://git.openstack.org/openstack/kuryr-kubernetes <https://git.openstack.org/cgit/openstack/kuryr-kubernetes>`__
kuryr-libnetwork `https://git.openstack.org/openstack/kuryr-libnetwork <https://git.openstack.org/cgit/openstack/kuryr-libnetwork>`__
kuryr-tempest-plugin `https://git.openstack.org/openstack/kuryr-tempest-plugin <https://git.openstack.org/cgit/openstack/kuryr-tempest-plugin>`__
magnum `https://git.openstack.org/openstack/magnum <https://git.openstack.org/cgit/openstack/magnum>`__
magnum-ui `https://git.openstack.org/openstack/magnum-ui <https://git.openstack.org/cgit/openstack/magnum-ui>`__
manila `https://git.openstack.org/openstack/manila <https://git.openstack.org/cgit/openstack/manila>`__
manila-ui `https://git.openstack.org/openstack/manila-ui <https://git.openstack.org/cgit/openstack/manila-ui>`__
masakari `https://git.openstack.org/openstack/masakari <https://git.openstack.org/cgit/openstack/masakari>`__
meteos `https://git.openstack.org/openstack/meteos <https://git.openstack.org/cgit/openstack/meteos>`__
meteos-ui `https://git.openstack.org/openstack/meteos-ui <https://git.openstack.org/cgit/openstack/meteos-ui>`__
mistral `https://git.openstack.org/openstack/mistral <https://git.openstack.org/cgit/openstack/mistral>`__
mixmatch `https://git.openstack.org/openstack/mixmatch <https://git.openstack.org/cgit/openstack/mixmatch>`__
mogan `https://git.openstack.org/openstack/mogan <https://git.openstack.org/cgit/openstack/mogan>`__
mogan-ui `https://git.openstack.org/openstack/mogan-ui <https://git.openstack.org/cgit/openstack/mogan-ui>`__
monasca-analytics `https://git.openstack.org/openstack/monasca-analytics <https://git.openstack.org/cgit/openstack/monasca-analytics>`__
monasca-api `https://git.openstack.org/openstack/monasca-api <https://git.openstack.org/cgit/openstack/monasca-api>`__
monasca-ceilometer `https://git.openstack.org/openstack/monasca-ceilometer <https://git.openstack.org/cgit/openstack/monasca-ceilometer>`__
monasca-events-api `https://git.openstack.org/openstack/monasca-events-api <https://git.openstack.org/cgit/openstack/monasca-events-api>`__
monasca-log-api `https://git.openstack.org/openstack/monasca-log-api <https://git.openstack.org/cgit/openstack/monasca-log-api>`__
monasca-tempest-plugin `https://git.openstack.org/openstack/monasca-tempest-plugin <https://git.openstack.org/cgit/openstack/monasca-tempest-plugin>`__
monasca-transform `https://git.openstack.org/openstack/monasca-transform <https://git.openstack.org/cgit/openstack/monasca-transform>`__
murano `https://git.openstack.org/openstack/murano <https://git.openstack.org/cgit/openstack/murano>`__
networking-6wind `https://git.openstack.org/openstack/networking-6wind <https://git.openstack.org/cgit/openstack/networking-6wind>`__
networking-arista `https://git.openstack.org/openstack/networking-arista <https://git.openstack.org/cgit/openstack/networking-arista>`__
networking-bagpipe `https://git.openstack.org/openstack/networking-bagpipe <https://git.openstack.org/cgit/openstack/networking-bagpipe>`__
networking-baremetal `https://git.openstack.org/openstack/networking-baremetal <https://git.openstack.org/cgit/openstack/networking-baremetal>`__
networking-bgpvpn `https://git.openstack.org/openstack/networking-bgpvpn <https://git.openstack.org/cgit/openstack/networking-bgpvpn>`__
networking-brocade `https://git.openstack.org/openstack/networking-brocade <https://git.openstack.org/cgit/openstack/networking-brocade>`__
networking-calico `https://git.openstack.org/openstack/networking-calico <https://git.openstack.org/cgit/openstack/networking-calico>`__
networking-cisco `https://git.openstack.org/openstack/networking-cisco <https://git.openstack.org/cgit/openstack/networking-cisco>`__
networking-cumulus `https://git.openstack.org/openstack/networking-cumulus <https://git.openstack.org/cgit/openstack/networking-cumulus>`__
networking-dpm `https://git.openstack.org/openstack/networking-dpm <https://git.openstack.org/cgit/openstack/networking-dpm>`__
networking-fortinet `https://git.openstack.org/openstack/networking-fortinet <https://git.openstack.org/cgit/openstack/networking-fortinet>`__
networking-generic-switch `https://git.openstack.org/openstack/networking-generic-switch <https://git.openstack.org/cgit/openstack/networking-generic-switch>`__
networking-hpe `https://git.openstack.org/openstack/networking-hpe <https://git.openstack.org/cgit/openstack/networking-hpe>`__
networking-huawei `https://git.openstack.org/openstack/networking-huawei <https://git.openstack.org/cgit/openstack/networking-huawei>`__
networking-hyperv `https://git.openstack.org/openstack/networking-hyperv <https://git.openstack.org/cgit/openstack/networking-hyperv>`__
networking-infoblox `https://git.openstack.org/openstack/networking-infoblox <https://git.openstack.org/cgit/openstack/networking-infoblox>`__
networking-l2gw `https://git.openstack.org/openstack/networking-l2gw <https://git.openstack.org/cgit/openstack/networking-l2gw>`__
networking-lagopus `https://git.openstack.org/openstack/networking-lagopus <https://git.openstack.org/cgit/openstack/networking-lagopus>`__
networking-midonet `https://git.openstack.org/openstack/networking-midonet <https://git.openstack.org/cgit/openstack/networking-midonet>`__
networking-mlnx `https://git.openstack.org/openstack/networking-mlnx <https://git.openstack.org/cgit/openstack/networking-mlnx>`__
networking-nec `https://git.openstack.org/openstack/networking-nec <https://git.openstack.org/cgit/openstack/networking-nec>`__
networking-odl `https://git.openstack.org/openstack/networking-odl <https://git.openstack.org/cgit/openstack/networking-odl>`__
networking-onos `https://git.openstack.org/openstack/networking-onos <https://git.openstack.org/cgit/openstack/networking-onos>`__
networking-opencontrail `https://git.openstack.org/openstack/networking-opencontrail <https://git.openstack.org/cgit/openstack/networking-opencontrail>`__
networking-ovn `https://git.openstack.org/openstack/networking-ovn <https://git.openstack.org/cgit/openstack/networking-ovn>`__
networking-ovs-dpdk `https://git.openstack.org/openstack/networking-ovs-dpdk <https://git.openstack.org/cgit/openstack/networking-ovs-dpdk>`__
networking-plumgrid `https://git.openstack.org/openstack/networking-plumgrid <https://git.openstack.org/cgit/openstack/networking-plumgrid>`__
networking-powervm `https://git.openstack.org/openstack/networking-powervm <https://git.openstack.org/cgit/openstack/networking-powervm>`__
networking-sfc `https://git.openstack.org/openstack/networking-sfc <https://git.openstack.org/cgit/openstack/networking-sfc>`__
networking-spp `https://git.openstack.org/openstack/networking-spp <https://git.openstack.org/cgit/openstack/networking-spp>`__
networking-vpp `https://git.openstack.org/openstack/networking-vpp <https://git.openstack.org/cgit/openstack/networking-vpp>`__
networking-vsphere `https://git.openstack.org/openstack/networking-vsphere <https://git.openstack.org/cgit/openstack/networking-vsphere>`__
neutron `https://git.openstack.org/openstack/neutron <https://git.openstack.org/cgit/openstack/neutron>`__
neutron-classifier `https://git.openstack.org/openstack/neutron-classifier <https://git.openstack.org/cgit/openstack/neutron-classifier>`__
neutron-dynamic-routing `https://git.openstack.org/openstack/neutron-dynamic-routing <https://git.openstack.org/cgit/openstack/neutron-dynamic-routing>`__
neutron-fwaas `https://git.openstack.org/openstack/neutron-fwaas <https://git.openstack.org/cgit/openstack/neutron-fwaas>`__
neutron-fwaas-dashboard `https://git.openstack.org/openstack/neutron-fwaas-dashboard <https://git.openstack.org/cgit/openstack/neutron-fwaas-dashboard>`__
neutron-lbaas `https://git.openstack.org/openstack/neutron-lbaas <https://git.openstack.org/cgit/openstack/neutron-lbaas>`__
neutron-lbaas-dashboard `https://git.openstack.org/openstack/neutron-lbaas-dashboard <https://git.openstack.org/cgit/openstack/neutron-lbaas-dashboard>`__
neutron-tempest-plugin `https://git.openstack.org/openstack/neutron-tempest-plugin <https://git.openstack.org/cgit/openstack/neutron-tempest-plugin>`__
neutron-vpnaas `https://git.openstack.org/openstack/neutron-vpnaas <https://git.openstack.org/cgit/openstack/neutron-vpnaas>`__
neutron-vpnaas-dashboard `https://git.openstack.org/openstack/neutron-vpnaas-dashboard <https://git.openstack.org/cgit/openstack/neutron-vpnaas-dashboard>`__
nova-dpm `https://git.openstack.org/openstack/nova-dpm <https://git.openstack.org/cgit/openstack/nova-dpm>`__
nova-lxd `https://git.openstack.org/openstack/nova-lxd <https://git.openstack.org/cgit/openstack/nova-lxd>`__
nova-mksproxy `https://git.openstack.org/openstack/nova-mksproxy <https://git.openstack.org/cgit/openstack/nova-mksproxy>`__
nova-powervm `https://git.openstack.org/openstack/nova-powervm <https://git.openstack.org/cgit/openstack/nova-powervm>`__
oaktree `https://git.openstack.org/openstack/oaktree <https://git.openstack.org/cgit/openstack/oaktree>`__
octavia `https://git.openstack.org/openstack/octavia <https://git.openstack.org/cgit/openstack/octavia>`__
octavia-dashboard `https://git.openstack.org/openstack/octavia-dashboard <https://git.openstack.org/cgit/openstack/octavia-dashboard>`__
omni `https://git.openstack.org/openstack/omni <https://git.openstack.org/cgit/openstack/omni>`__
os-xenapi `https://git.openstack.org/openstack/os-xenapi <https://git.openstack.org/cgit/openstack/os-xenapi>`__
osprofiler `https://git.openstack.org/openstack/osprofiler <https://git.openstack.org/cgit/openstack/osprofiler>`__
oswin-tempest-plugin `https://git.openstack.org/openstack/oswin-tempest-plugin <https://git.openstack.org/cgit/openstack/oswin-tempest-plugin>`__
panko `https://git.openstack.org/openstack/panko <https://git.openstack.org/cgit/openstack/panko>`__
patrole `https://git.openstack.org/openstack/patrole <https://git.openstack.org/cgit/openstack/patrole>`__
picasso `https://git.openstack.org/openstack/picasso <https://git.openstack.org/cgit/openstack/picasso>`__
python-openstacksdk `https://git.openstack.org/openstack/python-openstacksdk <https://git.openstack.org/cgit/openstack/python-openstacksdk>`__
qinling `https://git.openstack.org/openstack/qinling <https://git.openstack.org/cgit/openstack/qinling>`__
rally `https://git.openstack.org/openstack/rally <https://git.openstack.org/cgit/openstack/rally>`__
sahara `https://git.openstack.org/openstack/sahara <https://git.openstack.org/cgit/openstack/sahara>`__
sahara-dashboard `https://git.openstack.org/openstack/sahara-dashboard <https://git.openstack.org/cgit/openstack/sahara-dashboard>`__
scalpels `https://git.openstack.org/openstack/scalpels <https://git.openstack.org/cgit/openstack/scalpels>`__
searchlight `https://git.openstack.org/openstack/searchlight <https://git.openstack.org/cgit/openstack/searchlight>`__
searchlight-ui `https://git.openstack.org/openstack/searchlight-ui <https://git.openstack.org/cgit/openstack/searchlight-ui>`__
senlin `https://git.openstack.org/openstack/senlin <https://git.openstack.org/cgit/openstack/senlin>`__
solum `https://git.openstack.org/openstack/solum <https://git.openstack.org/cgit/openstack/solum>`__
stackube `https://git.openstack.org/openstack/stackube <https://git.openstack.org/cgit/openstack/stackube>`__
storlets `https://git.openstack.org/openstack/storlets <https://git.openstack.org/cgit/openstack/storlets>`__
tacker `https://git.openstack.org/openstack/tacker <https://git.openstack.org/cgit/openstack/tacker>`__
tap-as-a-service `https://git.openstack.org/openstack/tap-as-a-service <https://git.openstack.org/cgit/openstack/tap-as-a-service>`__
tap-as-a-service-dashboard `https://git.openstack.org/openstack/tap-as-a-service-dashboard <https://git.openstack.org/cgit/openstack/tap-as-a-service-dashboard>`__
tatu `https://git.openstack.org/openstack/tatu <https://git.openstack.org/cgit/openstack/tatu>`__
telemetry-tempest-plugin `https://git.openstack.org/openstack/telemetry-tempest-plugin <https://git.openstack.org/cgit/openstack/telemetry-tempest-plugin>`__
tricircle `https://git.openstack.org/openstack/tricircle <https://git.openstack.org/cgit/openstack/tricircle>`__
trio2o `https://git.openstack.org/openstack/trio2o <https://git.openstack.org/cgit/openstack/trio2o>`__
trove `https://git.openstack.org/openstack/trove <https://git.openstack.org/cgit/openstack/trove>`__
trove-dashboard `https://git.openstack.org/openstack/trove-dashboard <https://git.openstack.org/cgit/openstack/trove-dashboard>`__
valet `https://git.openstack.org/openstack/valet <https://git.openstack.org/cgit/openstack/valet>`__
vitrage `https://git.openstack.org/openstack/vitrage <https://git.openstack.org/cgit/openstack/vitrage>`__
vitrage-dashboard `https://git.openstack.org/openstack/vitrage-dashboard <https://git.openstack.org/cgit/openstack/vitrage-dashboard>`__
vitrage-tempest-plugin `https://git.openstack.org/openstack/vitrage-tempest-plugin <https://git.openstack.org/cgit/openstack/vitrage-tempest-plugin>`__
vmware-nsx `https://git.openstack.org/openstack/vmware-nsx <https://git.openstack.org/cgit/openstack/vmware-nsx>`__
vmware-vspc `https://git.openstack.org/openstack/vmware-vspc <https://git.openstack.org/cgit/openstack/vmware-vspc>`__
watcher `https://git.openstack.org/openstack/watcher <https://git.openstack.org/cgit/openstack/watcher>`__
watcher-dashboard `https://git.openstack.org/openstack/watcher-dashboard <https://git.openstack.org/cgit/openstack/watcher-dashboard>`__
zaqar `https://git.openstack.org/openstack/zaqar <https://git.openstack.org/cgit/openstack/zaqar>`__
zaqar-ui `https://git.openstack.org/openstack/zaqar-ui <https://git.openstack.org/cgit/openstack/zaqar-ui>`__
zun `https://git.openstack.org/openstack/zun <https://git.openstack.org/cgit/openstack/zun>`__
zun-ui `https://git.openstack.org/openstack/zun-ui <https://git.openstack.org/cgit/openstack/zun-ui>`__
====================================== ===
+----------------------------+-------------------------------------------------------------------------+
|Plugin Name |URL |
+----------------------------+-------------------------------------------------------------------------+
|aodh |git://git.openstack.org/openstack/aodh |
+----------------------------+-------------------------------------------------------------------------+
|app-catalog-ui |git://git.openstack.org/openstack/app-catalog-ui |
+----------------------------+-------------------------------------------------------------------------+
|astara |git://git.openstack.org/openstack/astara |
+----------------------------+-------------------------------------------------------------------------+
|barbican |git://git.openstack.org/openstack/barbican |
+----------------------------+-------------------------------------------------------------------------+
|blazar |git://git.openstack.org/openstack/blazar |
+----------------------------+-------------------------------------------------------------------------+
|broadview-collector |git://git.openstack.org/openstack/broadview-collector |
+----------------------------+-------------------------------------------------------------------------+
|ceilometer |git://git.openstack.org/openstack/ceilometer |
+----------------------------+-------------------------------------------------------------------------+
|ceilometer-powervm |git://git.openstack.org/openstack/ceilometer-powervm |
+----------------------------+-------------------------------------------------------------------------+
|cerberus |git://git.openstack.org/openstack/cerberus |
+----------------------------+-------------------------------------------------------------------------+
|cloudkitty |git://git.openstack.org/openstack/cloudkitty |
+----------------------------+-------------------------------------------------------------------------+
|collectd-ceilometer-plugin |git://git.openstack.org/openstack/collectd-ceilometer-plugin |
+----------------------------+-------------------------------------------------------------------------+
|congress |git://git.openstack.org/openstack/congress |
+----------------------------+-------------------------------------------------------------------------+
|cue |git://git.openstack.org/openstack/cue |
+----------------------------+-------------------------------------------------------------------------+
|designate |git://git.openstack.org/openstack/designate |
+----------------------------+-------------------------------------------------------------------------+
|devstack-plugin-amqp1 |git://git.openstack.org/openstack/devstack-plugin-amqp1 |
+----------------------------+-------------------------------------------------------------------------+
|devstack-plugin-bdd |git://git.openstack.org/openstack/devstack-plugin-bdd |
+----------------------------+-------------------------------------------------------------------------+
|devstack-plugin-ceph |git://git.openstack.org/openstack/devstack-plugin-ceph |
+----------------------------+-------------------------------------------------------------------------+
|devstack-plugin-glusterfs |git://git.openstack.org/openstack/devstack-plugin-glusterfs |
+----------------------------+-------------------------------------------------------------------------+
|devstack-plugin-hdfs |git://git.openstack.org/openstack/devstack-plugin-hdfs |
+----------------------------+-------------------------------------------------------------------------+
|devstack-plugin-pika |git://git.openstack.org/openstack/devstack-plugin-pika |
+----------------------------+-------------------------------------------------------------------------+
|devstack-plugin-sheepdog |git://git.openstack.org/openstack/devstack-plugin-sheepdog |
+----------------------------+-------------------------------------------------------------------------+
|devstack-plugin-zmq |git://git.openstack.org/openstack/devstack-plugin-zmq |
+----------------------------+-------------------------------------------------------------------------+
|dragonflow |git://git.openstack.org/openstack/dragonflow |
+----------------------------+-------------------------------------------------------------------------+
|drbd-devstack |git://git.openstack.org/openstack/drbd-devstack |
+----------------------------+-------------------------------------------------------------------------+
|ec2-api |git://git.openstack.org/openstack/ec2-api |
+----------------------------+-------------------------------------------------------------------------+
|freezer |git://git.openstack.org/openstack/freezer |
+----------------------------+-------------------------------------------------------------------------+
|freezer-api |git://git.openstack.org/openstack/freezer-api |
+----------------------------+-------------------------------------------------------------------------+
|freezer-web-ui |git://git.openstack.org/openstack/freezer-web-ui |
+----------------------------+-------------------------------------------------------------------------+
|gce-api |git://git.openstack.org/openstack/gce-api |
+----------------------------+-------------------------------------------------------------------------+
|gnocchi |git://git.openstack.org/openstack/gnocchi |
+----------------------------+-------------------------------------------------------------------------+
|ironic |git://git.openstack.org/openstack/ironic |
+----------------------------+-------------------------------------------------------------------------+
|ironic-inspector |git://git.openstack.org/openstack/ironic-inspector |
+----------------------------+-------------------------------------------------------------------------+
|kingbird |git://git.openstack.org/openstack/kingbird |
+----------------------------+-------------------------------------------------------------------------+
|kuryr |git://git.openstack.org/openstack/kuryr |
+----------------------------+-------------------------------------------------------------------------+
|magnum |git://git.openstack.org/openstack/magnum |
+----------------------------+-------------------------------------------------------------------------+
|manila |git://git.openstack.org/openstack/manila |
+----------------------------+-------------------------------------------------------------------------+
|mistral |git://git.openstack.org/openstack/mistral |
+----------------------------+-------------------------------------------------------------------------+
|monasca-api |git://git.openstack.org/openstack/monasca-api |
+----------------------------+-------------------------------------------------------------------------+
|murano |git://git.openstack.org/openstack/murano |
+----------------------------+-------------------------------------------------------------------------+
|networking-6wind |git://git.openstack.org/openstack/networking-6wind |
+----------------------------+-------------------------------------------------------------------------+
|networking-bagpipe |git://git.openstack.org/openstack/networking-bagpipe |
+----------------------------+-------------------------------------------------------------------------+
|networking-bgpvpn |git://git.openstack.org/openstack/networking-bgpvpn |
+----------------------------+-------------------------------------------------------------------------+
|networking-brocade |git://git.openstack.org/openstack/networking-brocade |
+----------------------------+-------------------------------------------------------------------------+
|networking-calico |git://git.openstack.org/openstack/networking-calico |
+----------------------------+-------------------------------------------------------------------------+
|networking-cisco |git://git.openstack.org/openstack/networking-cisco |
+----------------------------+-------------------------------------------------------------------------+
|networking-fortinet |git://git.openstack.org/openstack/networking-fortinet |
+----------------------------+-------------------------------------------------------------------------+
|networking-generic-switch |git://git.openstack.org/openstack/networking-generic-switch |
+----------------------------+-------------------------------------------------------------------------+
|networking-infoblox |git://git.openstack.org/openstack/networking-infoblox |
+----------------------------+-------------------------------------------------------------------------+
|networking-l2gw |git://git.openstack.org/openstack/networking-l2gw |
+----------------------------+-------------------------------------------------------------------------+
|networking-midonet |git://git.openstack.org/openstack/networking-midonet |
+----------------------------+-------------------------------------------------------------------------+
|networking-mlnx |git://git.openstack.org/openstack/networking-mlnx |
+----------------------------+-------------------------------------------------------------------------+
|networking-nec |git://git.openstack.org/openstack/networking-nec |
+----------------------------+-------------------------------------------------------------------------+
|networking-odl |git://git.openstack.org/openstack/networking-odl |
+----------------------------+-------------------------------------------------------------------------+
|networking-ofagent |git://git.openstack.org/openstack/networking-ofagent |
+----------------------------+-------------------------------------------------------------------------+
|networking-ovn |git://git.openstack.org/openstack/networking-ovn |
+----------------------------+-------------------------------------------------------------------------+
|networking-ovs-dpdk |git://git.openstack.org/openstack/networking-ovs-dpdk |
+----------------------------+-------------------------------------------------------------------------+
|networking-plumgrid |git://git.openstack.org/openstack/networking-plumgrid |
+----------------------------+-------------------------------------------------------------------------+
|networking-powervm |git://git.openstack.org/openstack/networking-powervm |
+----------------------------+-------------------------------------------------------------------------+
|networking-sfc |git://git.openstack.org/openstack/networking-sfc |
+----------------------------+-------------------------------------------------------------------------+
|networking-vsphere |git://git.openstack.org/openstack/networking-vsphere |
+----------------------------+-------------------------------------------------------------------------+
|neutron |git://git.openstack.org/openstack/neutron |
+----------------------------+-------------------------------------------------------------------------+
|neutron-lbaas |git://git.openstack.org/openstack/neutron-lbaas |
+----------------------------+-------------------------------------------------------------------------+
|neutron-lbaas-dashboard |git://git.openstack.org/openstack/neutron-lbaas-dashboard |
+----------------------------+-------------------------------------------------------------------------+
|neutron-vpnaas |git://git.openstack.org/openstack/neutron-vpnaas |
+----------------------------+-------------------------------------------------------------------------+
|nova-docker |git://git.openstack.org/openstack/nova-docker |
+----------------------------+-------------------------------------------------------------------------+
|nova-powervm |git://git.openstack.org/openstack/nova-powervm |
+----------------------------+-------------------------------------------------------------------------+
|octavia |git://git.openstack.org/openstack/octavia |
+----------------------------+-------------------------------------------------------------------------+
|osprofiler |git://git.openstack.org/openstack/osprofiler |
+----------------------------+-------------------------------------------------------------------------+
|rally |git://git.openstack.org/openstack/rally |
+----------------------------+-------------------------------------------------------------------------+
|sahara |git://git.openstack.org/openstack/sahara |
+----------------------------+-------------------------------------------------------------------------+
|sahara-dashboard |git://git.openstack.org/openstack/sahara-dashboard |
+----------------------------+-------------------------------------------------------------------------+
|scalpels |git://git.openstack.org/openstack/scalpels |
+----------------------------+-------------------------------------------------------------------------+
|searchlight |git://git.openstack.org/openstack/searchlight |
+----------------------------+-------------------------------------------------------------------------+
|senlin |git://git.openstack.org/openstack/senlin |
+----------------------------+-------------------------------------------------------------------------+
|smaug |git://git.openstack.org/openstack/smaug |
+----------------------------+-------------------------------------------------------------------------+
|solum |git://git.openstack.org/openstack/solum |
+----------------------------+-------------------------------------------------------------------------+
|tacker |git://git.openstack.org/openstack/tacker |
+----------------------------+-------------------------------------------------------------------------+
|tap-as-a-service |git://git.openstack.org/openstack/tap-as-a-service |
+----------------------------+-------------------------------------------------------------------------+
|tricircle |git://git.openstack.org/openstack/tricircle |
+----------------------------+-------------------------------------------------------------------------+
|trove |git://git.openstack.org/openstack/trove |
+----------------------------+-------------------------------------------------------------------------+
|trove-dashboard |git://git.openstack.org/openstack/trove-dashboard |
+----------------------------+-------------------------------------------------------------------------+
|vitrage |git://git.openstack.org/openstack/vitrage |
+----------------------------+-------------------------------------------------------------------------+
|vitrage-dashboard |git://git.openstack.org/openstack/vitrage-dashboard |
+----------------------------+-------------------------------------------------------------------------+
|vmware-nsx |git://git.openstack.org/openstack/vmware-nsx |
+----------------------------+-------------------------------------------------------------------------+
|watcher |git://git.openstack.org/openstack/watcher |
+----------------------------+-------------------------------------------------------------------------+
|watcher-dashboard |git://git.openstack.org/openstack/watcher-dashboard |
+----------------------------+-------------------------------------------------------------------------+
|zaqar |git://git.openstack.org/openstack/zaqar |
+----------------------------+-------------------------------------------------------------------------+
+40 -2
View File
@@ -12,6 +12,15 @@ tree. They are called through a strong contract, so these plugins can
be sure that they will continue to work in the future as DevStack
evolves.
Prerequisites
=============
If you are planning to create a plugin that is going to host a service in the
service catalog (that is, your plugin will use the command
``get_or_create_service``) please make sure that you apply to the `service
types authority`_ to reserve a valid service-type. This will help to make sure
that all deployments of your service use the same service-type.
Plugin Interface
================
@@ -45,6 +54,31 @@ directory. Inside this directory there can be 3 files.
default value only if the variable is unset or empty; e.g. in bash
syntax ``FOO=${FOO:-default}``.
The file should include a ``define_plugin`` line to indicate the
plugin's name, which is the name that should be used by users on
"enable_plugin" lines. It should generally be the last component of
the git repo path (e.g., if the plugin's repo is
openstack/devstack-foo, then the name here should be "foo") ::
define_plugin <YOUR PLUGIN>
If your plugin depends on another plugin, indicate it in this file
with one or more lines like the following::
plugin_requires <YOUR PLUGIN> <OTHER PLUGIN>
For a complete example, if the plugin "foo" depends on "bar", the
``settings`` file should include::
define_plugin foo
plugin_requires foo bar
Devstack does not currently use this dependency information, so it's
important that users continue to add enable_plugin lines in the
correct order in ``local.conf``, however adding this information
allows other tools to consider dependency information when
automatically generating ``local.conf`` files.
- ``plugin.sh`` - the actual plugin. It is executed by devstack at
well defined points during a ``stack.sh`` run. The plugin.sh
internal structure is discussed below.
@@ -65,7 +99,7 @@ They are added in the following format::
An example would be as follows::
enable_plugin ec2-api git://git.openstack.org/openstack/ec2-api
enable_plugin ec2-api https://git.openstack.org/openstack/ec2-api
plugin.sh contract
==================
@@ -99,6 +133,8 @@ The current full list of ``mode`` and ``phase`` are:
should exist at this point.
- **extra** - Called near the end after layer 1 and 2 services have
been started.
- **test-config** - Called at the end of devstack used to configure tempest
or any other test environments
- **unstack** - Called by ``unstack.sh`` before other services are shut
down.
@@ -241,10 +277,12 @@ be needed in your ``jenkins/jobs/<project>.yaml`` definition in
# note the actual url here is somewhat irrelevant because it
# caches in nodepool, however make it a valid url for
# documentation purposes.
export DEVSTACK_LOCAL_CONFIG="enable_plugin ec2-api git://git.openstack.org/openstack/ec2-api"
export DEVSTACK_LOCAL_CONFIG="enable_plugin ec2-api https://git.openstack.org/openstack/ec2-api"
See Also
========
For additional inspiration on devstack plugins you can check out the
`Plugin Registry <plugin-registry.html>`_.
.. _service types authority: https://specs.openstack.org/openstack/service-types-authority/
-66
View File
@@ -1,66 +0,0 @@
===========================
stackrc - DevStack Settings
===========================
``stackrc`` is the primary configuration file for DevStack. It contains
all of the settings that control the services started and the
repositories used to download the source for those services. ``stackrc``
sources the ``localrc`` section of ``local.conf`` to perform the default
overrides.
DATABASE\_TYPE
Select the database backend to use. The default is ``mysql``,
``postgresql`` is also available.
ENABLED\_SERVICES
Specify which services to launch. These generally correspond to
screen tabs. The default includes: Glance (API and Registry),
Keystone, Nova (API, Certificate, Object Store, Compute, Network,
Scheduler, Certificate Authentication), Cinder
(Scheduler, API, Volume), Horizon, MySQL, RabbitMQ, Tempest.
::
ENABLED_SERVICES=g-api,g-reg,key,n-api,n-crt,n-cpu,n-net,n-cond,c-sch,c-api,c-vol,n-sch,n-cauth,horizon,rabbit,tempest,$DATABASE_TYPE
Other services that are not enabled by default can be enabled in
``localrc``. For example, to add Swift, use the following service
names:
::
enable_service s-proxy s-object s-container s-account
A service can similarly be disabled:
::
disable_service horizon
Service Repos
The Git repositories used to check out the source for each service
are controlled by a pair of variables set for each service.
``*_REPO`` points to the repository and ``*_BRANCH`` selects which
branch to check out. These may be overridden in ``local.conf`` to
pull source from a different repo for testing, such as a Gerrit
branch proposal. ``GIT_BASE`` points to the primary repository
server.
::
NOVA_REPO=$GIT_BASE/openstack/nova.git
NOVA_BRANCH=master
To pull a branch directly from Gerrit, get the repo and branch from
the Gerrit review page:
::
git fetch https://review.openstack.org/p/openstack/nova refs/changes/50/5050/1 && git checkout FETCH_HEAD
The repo is the stanza following ``fetch`` and the branch is the
stanza following that:
::
NOVA_REPO=https://review.openstack.org/p/openstack/nova
NOVA_BRANCH=refs/changes/50/5050/1
+233
View File
@@ -0,0 +1,233 @@
===========================
Using Systemd in DevStack
===========================
By default DevStack is run with all the services as systemd unit
files. Systemd is now the default init system for nearly every Linux
distro, and systemd encodes and solves many of the problems related to
poorly running processes.
Why this instead of screen?
===========================
The screen model for DevStack was invented when the number of services
that a DevStack user was going to run was typically < 10. This made
screen hot keys to jump around very easy. However, the landscape has
changed (not all services are stoppable in screen as some are under
Apache, there are typically at least 20 items)
There is also a common developer workflow of changing code in more
than one service, and needing to restart a bunch of services for that
to take effect.
Unit Structure
==============
.. note::
Originally we actually wanted to do this as user units, however
there are issues with running this under non interactive
shells. For now, we'll be running as system units. Some user unit
code is left in place in case we can switch back later.
All DevStack user units are created as a part of the DevStack slice
given the name ``devstack@$servicename.service``. This makes it easy
to understand which services are part of the devstack run, and lets us
disable / stop them in a single command.
Manipulating Units
==================
Assuming the unit ``n-cpu`` to make the examples more clear.
Enable a unit (allows it to be started)::
sudo systemctl enable devstack@n-cpu.service
Disable a unit::
sudo systemctl disable devstack@n-cpu.service
Start a unit::
sudo systemctl start devstack@n-cpu.service
Stop a unit::
sudo systemctl stop devstack@n-cpu.service
Restart a unit::
sudo systemctl restart devstack@n-cpu.service
See status of a unit::
sudo systemctl status devstack@n-cpu.service
Operating on more than one unit at a time
-----------------------------------------
Systemd supports wildcarding for unit operations. To restart every
service in devstack you can do that following::
sudo systemctl restart devstack@*
Or to see the status of all Nova processes you can do::
sudo systemctl status devstack@n-*
We'll eventually make the unit names a bit more meaningful so that
it's easier to understand what you are restarting.
.. _journalctl-examples:
Querying Logs
=============
One of the other major things that comes with systemd is journald, a
consolidated way to access logs (including querying through structured
metadata). This is accessed by the user via ``journalctl`` command.
Logs can be accessed through ``journalctl``. journalctl has powerful
query facilities. We'll start with some common options.
Follow logs for a specific service::
sudo journalctl -f --unit devstack@n-cpu.service
Following logs for multiple services simultaneously::
sudo journalctl -f --unit devstack@n-cpu.service --unit devstack@n-cond.service
or you can even do wild cards to follow all the nova services::
sudo journalctl -f --unit devstack@n-*
Use higher precision time stamps::
sudo journalctl -f -o short-precise --unit devstack@n-cpu.service
By default, journalctl strips out "unprintable" characters, including
ASCII color codes. To keep the color codes (which can be interpreted by
an appropriate terminal/pager - e.g. ``less``, the default)::
sudo journalctl -a --unit devstack@n-cpu.service
When outputting to the terminal using the default pager, long lines
will be truncated, but horizontal scrolling is supported via the
left/right arrow keys. You can override this by setting the
``SYSTEMD_LESS`` environment variable to e.g. ``FRXM``.
You can pipe the output to another tool, such as ``grep``. For
example, to find a server instance UUID in the nova logs::
sudo journalctl -a --unit devstack@n-* | grep 58391b5c-036f-44d5-bd68-21d3c26349e6
See ``man 1 journalctl`` for more.
Debugging
=========
Using pdb
---------
In order to break into a regular pdb session on a systemd-controlled
service, you need to invoke the process manually - that is, take it out
of systemd's control.
Discover the command systemd is using to run the service::
systemctl show devstack@n-sch.service -p ExecStart --no-pager
Stop the systemd service::
sudo systemctl stop devstack@n-sch.service
Inject your breakpoint in the source, e.g.::
import pdb; pdb.set_trace()
Invoke the command manually::
/usr/local/bin/nova-scheduler --config-file /etc/nova/nova.conf
Using remote-pdb
----------------
`remote-pdb`_ works while the process is under systemd control.
Make sure you have remote-pdb installed::
sudo pip install remote-pdb
Inject your breakpoint in the source, e.g.::
import remote_pdb; remote_pdb.set_trace()
Restart the relevant service::
sudo systemctl restart devstack@n-api.service
The remote-pdb code configures the telnet port when ``set_trace()`` is
invoked. Do whatever it takes to hit the instrumented code path, and
inspect the logs for a message displaying the listening port::
Sep 07 16:36:12 p8-100-neo devstack@n-api.service[772]: RemotePdb session open at 127.0.0.1:46771, waiting for connection ...
Telnet to that port to enter the pdb session::
telnet 127.0.0.1 46771
See the `remote-pdb`_ home page for more options.
.. _`remote-pdb`: https://pypi.python.org/pypi/remote-pdb
Known Issues
============
Be careful about systemd python libraries. There are 3 of them on
pypi, and they are all very different. They unfortunately all install
into the ``systemd`` namespace, which can cause some issues.
- ``systemd-python`` - this is the upstream maintained library, it has
a version number like systemd itself (currently ``234``). This is
the one you want.
- ``systemd`` - a python 3 only library, not what you want.
- ``python-systemd`` - another library you don't want. Installing it
on a system will break ansible's ability to run.
If we were using user units, the ``[Service]`` - ``Group=`` parameter
doesn't seem to work with user units, even though the documentation
says that it should. This means that we will need to do an explicit
``/usr/bin/sg``. This has the downside of making the SYSLOG_IDENTIFIER
be ``sg``. We can explicitly set that with ``SyslogIdentifier=``, but
it's really unfortunate that we're going to need this work
around. This is currently not a problem because we're only using
system units.
Future Work
===========
user units
----------
It would be great if we could do services as user units, so that there
is a clear separation of code being run as not root, to ensure running
as root never accidentally gets baked in as an assumption to
services. However, user units interact poorly with devstack-gate and
the way that commands are run as users with ansible and su.
Maybe someday we can figure that out.
References
==========
- Arch Linux Wiki - https://wiki.archlinux.org/index.php/Systemd/User
- Python interface to journald -
https://www.freedesktop.org/software/systemd/python-systemd/journal.html
- Systemd documentation on service files -
https://www.freedesktop.org/software/systemd/man/systemd.service.html
- Systemd documentation on exec (can be used to impact service runs) -
https://www.freedesktop.org/software/systemd/man/systemd.exec.html
-106
View File
@@ -1,106 +0,0 @@
#!/usr/bin/env bash
# **cinder_cert.sh**
# This script is a simple wrapper around the tempest volume api tests
# It requires that you have a working and functional devstack install
# and that you've enabled your device driver by making the necessary
# modifications to /etc/cinder/cinder.conf
# This script will refresh your openstack repo's and restart the cinder
# services to pick up your driver changes.
# please NOTE; this script assumes your devstack install is functional
# and includes tempest. A good first step is to make sure you can
# create volumes on your device before you even try and run this script.
# It also assumes default install location (/opt/stack/xxx)
# to aid in debug, you should also verify that you've added
# an output directory for screen logs:
#
# SCREEN_LOGDIR=/opt/stack/screen-logs
set -o pipefail
CERT_DIR=$(cd $(dirname "$0") && pwd)
TOP_DIR=$(cd $CERT_DIR/..; pwd)
source $TOP_DIR/functions
source $TOP_DIR/stackrc
source $TOP_DIR/openrc
source $TOP_DIR/lib/infra
source $TOP_DIR/lib/tempest
source $TOP_DIR/lib/cinder
TEMPFILE=`mktemp`
RECLONE=True
function log_message {
MESSAGE=$1
STEP_HEADER=$2
if [[ "$STEP_HEADER" = "True" ]]; then
echo -e "\n========================================================" | tee -a $TEMPFILE
fi
echo -e `date +%m/%d/%y/%T:`"${MESSAGE}" | tee -a $TEMPFILE
if [[ "$STEP_HEADER" = "True" ]]; then
echo -e "========================================================" | tee -a $TEMPFILE
fi
}
if [[ "$OFFLINE" = "True" ]]; then
echo "ERROR: Driver cert requires fresh clone/pull from ${CINDER_BRANCH}"
echo " Please set OFFLINE=False and retry."
exit 1
fi
log_message "RUNNING CINDER DRIVER CERTIFICATION CHECK", True
log_message "Output is being logged to: $TEMPFILE"
cd $CINDER_DIR
log_message "Cloning to ${CINDER_REPO}...", True
install_cinder
log_message "Pull a fresh Clone of cinder repo...", True
git status | tee -a $TEMPFILE
git log --pretty=oneline -n 1 | tee -a $TEMPFILE
log_message "Gathering copy of cinder.conf file (passwords will be scrubbed)...", True
cat /etc/cinder/cinder.conf | egrep -v "(^#.*|^$)" | tee -a $TEMPFILE
sed -i "s/\(.*password.*=\).*$/\1 xxx/i" $TEMPFILE
log_message "End of cinder.conf.", True
cd $TOP_DIR
# Verify tempest is installed/enabled
if ! is_service_enabled tempest; then
log_message "ERROR!!! Cert requires tempest in enabled_services!", True
log_message" Please add tempest to enabled_services and retry."
exit 1
fi
cd $TEMPEST_DIR
install_tempest
log_message "Verify tempest is current....", True
git status | tee -a $TEMPFILE
log_message "Check status and get latest commit..."
git log --pretty=oneline -n 1 | tee -a $TEMPFILE
#stop and restart cinder services
log_message "Restart Cinder services...", True
stop_cinder
sleep 1
start_cinder
sleep 5
# run tempest api/volume/test_*
log_message "Run the actual tempest volume tests (./tools/pretty_tox.sh volume)...", True
./tools/pretty_tox.sh volume 2>&1 | tee -a $TEMPFILE
if [[ $? = 0 ]]; then
log_message "CONGRATULATIONS!!! Device driver PASSED!", True
log_message "Submit output: ($TEMPFILE)"
exit 0
else
log_message "SORRY!!! Device driver FAILED!", True
log_message "Check output in $TEMPFILE"
exit 1
fi
+1 -1
View File
@@ -20,7 +20,7 @@ echo "**************************************************"
set -o errexit
# Print the commands being run so that we can see the command that triggers
# an error. It is also useful for following allowing as the install occurs.
# an error. It is also useful for following as the install occurs.
set -o xtrace
+2 -1
View File
@@ -16,7 +16,7 @@ echo "*********************************************************************"
set -o errexit
# Print the commands being run so that we can see the command that triggers
# an error. It is also useful for following allowing as the install occurs.
# an error. It is also useful for following as the install occurs.
set -o xtrace
@@ -32,6 +32,7 @@ source $TOP_DIR/functions
# Import project functions
source $TOP_DIR/lib/cinder
source $TOP_DIR/lib/neutron
source $TOP_DIR/lib/neutron-legacy
# Import configuration
+1 -1
View File
@@ -13,7 +13,7 @@ echo "*********************************************************************"
set -o errexit
# Print the commands being run so that we can see the command that triggers
# an error. It is also useful for following allowing as the install occurs.
# an error. It is also useful for following as the install occurs.
set -o xtrace
+1 -1
View File
@@ -13,7 +13,7 @@ echo "*********************************************************************"
set -o errexit
# Print the commands being run so that we can see the command that triggers
# an error. It is also useful for following allowing as the install occurs.
# an error. It is also useful for following as the install occurs.
set -o xtrace
+2 -1
View File
@@ -13,7 +13,7 @@ echo "*********************************************************************"
set -o errexit
# Print the commands being run so that we can see the command that triggers
# an error. It is also useful for following allowing as the install occurs.
# an error. It is also useful for following as the install occurs.
set -o xtrace
@@ -31,6 +31,7 @@ source $TOP_DIR/functions
source $TOP_DIR/openrc
# Import project functions
source $TOP_DIR/lib/neutron
source $TOP_DIR/lib/neutron-legacy
# Import exercise configuration
+9 -8
View File
@@ -20,7 +20,7 @@ echo "*********************************************************************"
set -o errtrace
# Print the commands being run so that we can see the command that triggers
# an error. It is also useful for following allowing as the install occurs.
# an error. It is also useful for following as the install occurs.
set -o xtrace
# Environment
@@ -37,6 +37,7 @@ source $TOP_DIR/functions
source $TOP_DIR/openrc
# Import neutron functions
source $TOP_DIR/lib/neutron
source $TOP_DIR/lib/neutron-legacy
# If neutron is not enabled we exit with exitcode 55, which means exercise is skipped.
@@ -147,7 +148,7 @@ function get_user_id {
function get_role_id {
local ROLE_NAME=$1
local ROLE_ID
ROLE_ID=`openstack role list | grep $ROLE_NAME | awk '{print $2}'`
ROLE_ID=`openstack role assignment list | grep $ROLE_NAME | awk '{print $2}'`
die_if_not_set $LINENO ROLE_ID "Failure retrieving ROLE_ID for $ROLE_NAME"
echo "$ROLE_ID"
}
@@ -155,7 +156,7 @@ function get_role_id {
function get_network_id {
local NETWORK_NAME="$1"
local NETWORK_ID
NETWORK_ID=`neutron net-list -F id -- --name=$NETWORK_NAME | awk "NR==4" | awk '{print $2}'`
NETWORK_ID=`openstack network show -f value -c id $NETWORK_NAME`
echo $NETWORK_ID
}
@@ -233,9 +234,9 @@ function create_network {
PROJECT_ID=$(get_project_id $PROJECT)
source $TOP_DIR/openrc $PROJECT $PROJECT
local NET_ID
NET_ID=$(neutron net-create --project-id $PROJECT_ID $NET_NAME $EXTRA| grep ' id ' | awk '{print $4}' )
NET_ID=$(openstack network create --project $PROJECT_ID $NET_NAME $EXTRA| grep ' id ' | awk '{print $4}' )
die_if_not_set $LINENO NET_ID "Failure creating NET_ID for $PROJECT_ID $NET_NAME $EXTRA"
neutron subnet-create --ip-version 4 --project-id $PROJECT_ID --gateway $GATEWAY --subnetpool None $NET_ID $CIDR
openstack subnet create --ip-version 4 --project $PROJECT_ID --gateway $GATEWAY --subnet-pool None --network $NET_ID --subnet-range $CIDR "${NET_NAME}_subnet"
neutron_debug_admin probe-create --device-owner compute $NET_ID
source $TOP_DIR/openrc demo demo
}
@@ -324,10 +325,10 @@ function delete_network {
PROJECT_ID=$(get_project_id $PROJECT)
#TODO(nati) comment out until l3-agent merged
#for res in port subnet net router;do
for net_id in `neutron net-list -c id -c name | grep $NET_NAME | awk '{print $2}'`;do
for net_id in `openstack network list -c ID -c Name | grep $NET_NAME | awk '{print $2}'`;do
delete_probe $net_id
neutron subnet-list | grep $net_id | awk '{print $2}' | xargs -I% neutron subnet-delete %
neutron net-delete $net_id
openstack subnet list | grep $net_id | awk '{print $2}' | xargs -I% openstack subnet delete %
openstack network delete $net_id
done
source $TOP_DIR/openrc demo demo
}
+1 -1
View File
@@ -13,7 +13,7 @@ echo "*********************************************************************"
set -o errexit
# Print the commands being run so that we can see the command that triggers
# an error. It is also useful for following allowing as the install occurs.
# an error. It is also useful for following as the install occurs.
set -o xtrace
+1 -1
View File
@@ -13,7 +13,7 @@ echo "*********************************************************************"
set -o errexit
# Print the commands being run so that we can see the command that triggers
# an error. It is also useful for following allowing as the install occurs.
# an error. It is also useful for following as the install occurs.
set -o xtrace
+2 -1
View File
@@ -13,7 +13,7 @@ echo "*********************************************************************"
set -o errexit
# Print the commands being run so that we can see the command that triggers
# an error. It is also useful for following allowing as the install occurs.
# an error. It is also useful for following as the install occurs.
set -o xtrace
@@ -32,6 +32,7 @@ source $TOP_DIR/openrc
# Import project functions
source $TOP_DIR/lib/cinder
source $TOP_DIR/lib/neutron
source $TOP_DIR/lib/neutron-legacy
# Import exercise configuration
-75
View File
@@ -1,75 +0,0 @@
# ceph.sh - DevStack extras script to install Ceph
if is_service_enabled ceph; then
if [[ "$1" == "source" ]]; then
# Initial source
source $TOP_DIR/lib/ceph
elif [[ "$1" == "stack" && "$2" == "pre-install" ]]; then
echo_summary "Installing Ceph"
check_os_support_ceph
if [ "$REMOTE_CEPH" = "False" ]; then
install_ceph
echo_summary "Configuring Ceph"
configure_ceph
# NOTE (leseb): Do everything here because we need to have Ceph started before the main
# OpenStack components. Ceph OSD must start here otherwise we can't upload any images.
echo_summary "Initializing Ceph"
init_ceph
start_ceph
else
install_ceph_remote
fi
elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
if is_service_enabled glance; then
echo_summary "Configuring Glance for Ceph"
configure_ceph_glance
fi
if is_service_enabled nova; then
echo_summary "Configuring Nova for Ceph"
configure_ceph_nova
fi
if is_service_enabled cinder; then
echo_summary "Configuring Cinder for Ceph"
configure_ceph_cinder
fi
if is_service_enabled n-cpu; then
# NOTE (leseb): the part below is a requirement to attach Ceph block devices
echo_summary "Configuring libvirt secret"
import_libvirt_secret_ceph
fi
if [ "$REMOTE_CEPH" = "False" ]; then
if is_service_enabled glance; then
echo_summary "Configuring Glance for Ceph"
configure_ceph_embedded_glance
fi
if is_service_enabled nova; then
echo_summary "Configuring Nova for Ceph"
configure_ceph_embedded_nova
fi
if is_service_enabled cinder; then
echo_summary "Configuring Cinder for Ceph"
configure_ceph_embedded_cinder
fi
fi
fi
if [[ "$1" == "unstack" ]]; then
if [ "$REMOTE_CEPH" = "True" ]; then
cleanup_ceph_remote
else
cleanup_ceph_embedded
stop_ceph
fi
cleanup_ceph_general
fi
if [[ "$1" == "clean" ]]; then
if [ "$REMOTE_CEPH" = "True" ]; then
cleanup_ceph_remote
else
cleanup_ceph_embedded
fi
cleanup_ceph_general
fi
fi
+7 -2
View File
@@ -11,11 +11,16 @@ if is_service_enabled tempest; then
# Tempest config must come after layer 2 services are running
:
elif [[ "$1" == "stack" && "$2" == "extra" ]]; then
echo_summary "Initializing Tempest"
configure_tempest
# Tempest config must come after all other plugins are run
:
elif [[ "$1" == "stack" && "$2" == "post-extra" ]]; then
# local.conf Tempest option overrides
:
elif [[ "$1" == "stack" && "$2" == "test-config" ]]; then
echo_summary "Initializing Tempest"
configure_tempest
echo_summary "Installing Tempest Plugins"
install_tempest_plugins
fi
if [[ "$1" == "unstack" ]]; then
-27
View File
@@ -1,27 +0,0 @@
Listen %PUBLICPORT%
<VirtualHost *:%PUBLICPORT%>
WSGIDaemonProcess heat-api-cfn processes=2 threads=1 user=%USER% display-name=%{GROUP} %VIRTUALENV%
WSGIProcessGroup heat-api-cfn
WSGIScriptAlias / %HEAT_BIN_DIR%/heat-wsgi-api-cfn
WSGIApplicationGroup %{GLOBAL}
WSGIPassAuthorization On
AllowEncodedSlashes On
<IfVersion >= 2.4>
ErrorLogFormat "%{cu}t %M"
</IfVersion>
ErrorLog /var/log/%APACHE_NAME%/heat-api-cfn.log
%SSLENGINE%
%SSLCERTFILE%
%SSLKEYFILE%
<Directory %HEAT_BIN_DIR%>
<IfVersion >= 2.4>
Require all granted
</IfVersion>
<IfVersion < 2.4>
Order allow,deny
Allow from all
</IfVersion>
</Directory>
</VirtualHost>
-27
View File
@@ -1,27 +0,0 @@
Listen %PUBLICPORT%
<VirtualHost *:%PUBLICPORT%>
WSGIDaemonProcess heat-api-cloudwatch processes=2 threads=1 user=%USER% display-name=%{GROUP} %VIRTUALENV%
WSGIProcessGroup heat-api-cloudwatch
WSGIScriptAlias / %HEAT_BIN_DIR%/heat-wsgi-api-cloudwatch
WSGIApplicationGroup %{GLOBAL}
WSGIPassAuthorization On
AllowEncodedSlashes On
<IfVersion >= 2.4>
ErrorLogFormat "%{cu}t %M"
</IfVersion>
ErrorLog /var/log/%APACHE_NAME%/heat-api-cloudwatch.log
%SSLENGINE%
%SSLCERTFILE%
%SSLKEYFILE%
<Directory %HEAT_BIN_DIR%>
<IfVersion >= 2.4>
Require all granted
</IfVersion>
<IfVersion < 2.4>
Order allow,deny
Allow from all
</IfVersion>
</Directory>
</VirtualHost>
-27
View File
@@ -1,27 +0,0 @@
Listen %PUBLICPORT%
<VirtualHost *:%PUBLICPORT%>
WSGIDaemonProcess heat-api processes=3 threads=1 user=%USER% display-name=%{GROUP} %VIRTUALENV%
WSGIProcessGroup heat-api
WSGIScriptAlias / %HEAT_BIN_DIR%/heat-wsgi-api
WSGIApplicationGroup %{GLOBAL}
WSGIPassAuthorization On
AllowEncodedSlashes On
<IfVersion >= 2.4>
ErrorLogFormat "%{cu}t %M"
</IfVersion>
ErrorLog /var/log/%APACHE_NAME%/heat-api.log
%SSLENGINE%
%SSLCERTFILE%
%SSLKEYFILE%
<Directory %HEAT_BIN_DIR%>
<IfVersion >= 2.4>
Require all granted
</IfVersion>
<IfVersion < 2.4>
Order allow,deny
Allow from all
</IfVersion>
</Directory>
</VirtualHost>
-15
View File
@@ -1,15 +0,0 @@
Listen %HEAT_PIP_REPO_PORT%
<VirtualHost *:%HEAT_PIP_REPO_PORT%>
DocumentRoot %HEAT_PIP_REPO%
<Directory %HEAT_PIP_REPO%>
DirectoryIndex index.html
Require all granted
Order allow,deny
allow from all
</Directory>
ErrorLog /var/log/%APACHE_NAME%/heat_pip_repo_error.log
LogLevel warn
CustomLog /var/log/%APACHE_NAME%/heat_pip_repo_access.log combined
</VirtualHost>
+8 -2
View File
@@ -7,7 +7,7 @@ LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\" %D(us)"
</Directory>
<VirtualHost *:%PUBLICPORT%>
WSGIDaemonProcess keystone-public processes=5 threads=1 user=%USER% display-name=%{GROUP} %VIRTUALENV%
WSGIDaemonProcess keystone-public processes=3 threads=1 user=%USER% display-name=%{GROUP} %VIRTUALENV%
WSGIProcessGroup keystone-public
WSGIScriptAlias / %KEYSTONE_BIN%/keystone-wsgi-public
WSGIApplicationGroup %{GLOBAL}
@@ -21,7 +21,7 @@ LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\" %D(us)"
</VirtualHost>
<VirtualHost *:%ADMINPORT%>
WSGIDaemonProcess keystone-admin processes=5 threads=1 user=%USER% display-name=%{GROUP} %VIRTUALENV%
WSGIDaemonProcess keystone-admin processes=3 threads=1 user=%USER% display-name=%{GROUP} %VIRTUALENV%
WSGIProcessGroup keystone-admin
WSGIScriptAlias / %KEYSTONE_BIN%/keystone-wsgi-admin
WSGIApplicationGroup %{GLOBAL}
@@ -34,6 +34,12 @@ LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\" %D(us)"
%SSLKEYFILE%
</VirtualHost>
%SSLLISTEN%<VirtualHost *:443>
%SSLLISTEN% %SSLENGINE%
%SSLLISTEN% %SSLCERTFILE%
%SSLLISTEN% %SSLKEYFILE%
%SSLLISTEN%</VirtualHost>
Alias /identity %KEYSTONE_BIN%/keystone-wsgi-public
<Location /identity>
SetHandler wsgi-script
+27
View File
@@ -0,0 +1,27 @@
# NOTE(sbauza): This virtualhost is only here because some directives can
# only be set by a virtualhost or server context, so that's why the port is not bound.
# TODO(sbauza): Find a better way to identify a free port that is not corresponding to an existing
# vhost.
<VirtualHost *:8780>
WSGIDaemonProcess placement-api processes=%APIWORKERS% threads=1 user=%USER% display-name=%{GROUP} %VIRTUALENV%
WSGIProcessGroup placement-api
WSGIScriptAlias / %PUBLICWSGI%
WSGIApplicationGroup %{GLOBAL}
WSGIPassAuthorization On
<IfVersion >= 2.4>
ErrorLogFormat "%M"
</IfVersion>
ErrorLog /var/log/%APACHE_NAME%/placement-api.log
%SSLENGINE%
%SSLCERTFILE%
%SSLKEYFILE%
</VirtualHost>
Alias /placement %PUBLICWSGI%
<Location /placement>
SetHandler wsgi-script
Options +ExecCGI
WSGIProcessGroup placement-api
WSGIApplicationGroup %{GLOBAL}
WSGIPassAuthorization On
</Location>
-3
View File
@@ -1,3 +0,0 @@
libnspr4-dev
mongodb-server #NOPRIME
python-pymongo #NOPRIME
+1
View File
@@ -3,3 +3,4 @@ open-iscsi
open-iscsi-utils # Deprecated since quantal dist:precise
qemu-utils
tgt # NOPRIME
thin-provisioning-tools
+1
View File
@@ -1 +1,2 @@
dstat
python-psutil
+7 -2
View File
@@ -1,22 +1,28 @@
apache2
apache2-dev
bc
bridge-utils
bsdmainutils
curl
default-jre-headless # NOPRIME
g++
gcc
gettext # used for compiling message catalogs
git
graphviz # needed for docs
iputils-ping
libapache2-mod-proxy-uwsgi
libffi-dev # for pyOpenSSL
libjpeg-dev # Pillow 3.0.0
libmysqlclient-dev # MySQL-python
libpcre3-dev # for python-pcre
libpq-dev # psycopg2
libssl-dev # for pyOpenSSL
libsystemd-dev # for systemd-python
libxml2-dev # lxml
libxslt1-dev # lxml
libyaml-dev
lsof # useful when debugging
openjdk-7-jre-headless # NOPRIME
openssh-server
openssl
pkg-config
@@ -24,7 +30,6 @@ psmisc
python2.7
python-dev
python-gdbm # needed for testr
screen
tar
tcpdump
unzip
-1
View File
@@ -1 +0,0 @@
gettext # dist:trusty
-1
View File
@@ -1,3 +1,2 @@
apache2 # NOPRIME
libapache2-mod-wsgi # NOPRIME
libpcre3-dev # pyScss
-1
View File
@@ -1 +0,0 @@
fping
+1
View File
@@ -2,6 +2,7 @@ cryptsetup
genisoimage
gir1.2-libosinfo-1.0
lvm2 # NOPRIME
netcat-openbsd
open-iscsi
python-guestfs # NOPRIME
qemu-utils
+1
View File
@@ -0,0 +1 @@
ipset
@@ -2,6 +2,7 @@ acl
dnsmasq-base
dnsmasq-utils # for dhcp_release only available in dist:precise
ebtables
haproxy # to serve as metadata proxy inside router/dhcp namespaces
iptables
iputils-arping
iputils-ping
+3
View File
@@ -0,0 +1,3 @@
conntrack
conntrackd
keepalived
+3 -1
View File
@@ -10,7 +10,9 @@ iputils-arping
kpartx
libjs-jquery-tablesorter # Needed for coverage html reports
libmysqlclient-dev
libvirt-bin # NOPRIME
libvirt-bin # dist:xenial NOPRIME
libvirt-clients # not:xenial NOPRIME
libvirt-daemon-system # not:xenial NOPRIME
libvirt-dev # NOPRIME
mysql-server # NOPRIME
parted
-1
View File
@@ -1 +0,0 @@
ipset
+1
View File
@@ -0,0 +1 @@
neutron-agent
-3
View File
@@ -1,3 +0,0 @@
conntrack
conntrackd
keepalived
+1
View File
@@ -0,0 +1 @@
neutron-l3
+1 -1
View File
@@ -1 +1 @@
stud
apache2
-1
View File
@@ -1 +0,0 @@
zookeeperd
-23
View File
@@ -1,23 +0,0 @@
#!/bin/bash
#
# Copyright 2015 Hewlett-Packard Development Company, L.P.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
#
# This is a terrible, terrible, truly terrible work around for
# environments that have libvirt < 1.2.11. ebtables requires that you
# specifically tell it you would like to not race and get punched in
# the face when 2 run at the same time with a --concurrent flag.
flock -w 300 /var/lock/ebtables.nova /sbin/ebtables.real $@
+23
View File
@@ -0,0 +1,23 @@
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
# implied. See the License for the specific language governing
# permissions and limitations under the License.
# Demo LDAP user
dn: cn=demo,ou=Users,${BASE_DN}
cn: demo
displayName: demo
givenName: demo
mail: demo@openstack.org
objectClass: inetOrgPerson
objectClass: top
sn: demo
uid: demo
userPassword: demo
-3
View File
@@ -1,3 +0,0 @@
# (devel:languages:python and server:database projects)
mongodb
# Not available in openSUSE main repositories, but can be fetched from OBS
+1
View File
@@ -1 +1,2 @@
dstat
python-psutil
+7 -1
View File
@@ -1,3 +1,5 @@
apache2
apache2-devel
bc
bridge-utils
ca-certificates-mozilla
@@ -17,13 +19,17 @@ make
net-tools
openssh
openssl
pcre-devel # python-pcre
postgresql-devel # psycopg2
psmisc
python-cmd2 # dist:opensuse-12.3
python-devel # pyOpenSSL
screen
python-xml
systemd-devel # for systemd-python
tar
tcpdump
unzip
util-linux
wget
which
zlib-devel
-1
View File
@@ -1,2 +1 @@
fping
python-dateutil
+1
View File
@@ -0,0 +1 @@
ipset
@@ -2,6 +2,7 @@ acl
dnsmasq
dnsmasq-utils # dist:opensuse-12.3,opensuse-13.1
ebtables
haproxy # to serve as metadata proxy inside router/dhcp namespaces
iptables
iputils
mariadb # NOPRIME
+2
View File
@@ -0,0 +1,2 @@
conntrack-tools
keepalived
-1
View File
@@ -1 +0,0 @@
ipset
+1
View File
@@ -0,0 +1 @@
neutron-agent
-2
View File
@@ -1,2 +0,0 @@
conntrack-tools
keepalived
+1
View File
@@ -0,0 +1 @@
neutron-l3
-3
View File
@@ -1,3 +0,0 @@
mongodb # NOPRIME
mongodb-server #NOPRIME
selinux-policy-targeted
+2 -1
View File
@@ -1,4 +1,5 @@
iscsi-initiator-utils
lvm2
qemu-img
scsi-target-utils # NOPRIME
scsi-target-utils # not:rhel7,f25,f26,f27 NOPRIME
targetcli # dist:rhel7,f25,f26,f27 NOPRIME
+1
View File
@@ -1 +1,2 @@
dstat
python-psutil
+7 -3
View File
@@ -7,9 +7,11 @@ gcc-c++
gettext # used for compiling message catalogs
git-core
graphviz # needed only for docs
iptables-services # NOPRIME f22,f23
httpd
httpd-devel
iptables-services # NOPRIME f25,f26,f27
java-1.7.0-openjdk-headless # NOPRIME rhel7
java-1.8.0-openjdk-headless # NOPRIME f22,f23
java-1.8.0-openjdk-headless # NOPRIME f25,f26,f27
libffi-devel
libjpeg-turbo-devel # Pillow 3.0.0
libxml2-devel # lxml
@@ -20,16 +22,18 @@ net-tools
openssh-server
openssl
openssl-devel # to rebuild pyOpenSSL if needed
pcre-devel # for python-pcre
pkgconfig
postgresql-devel # psycopg2
psmisc
pyOpenSSL # version in pip uses too much memory
python-devel
redhat-rpm-config # missing dep for gcc hardening flags, see rhbz#1217376
screen
systemd-devel # for systemd-python
tar
tcpdump
unzip
util-linux
wget
which
zlib-devel
-1
View File
@@ -1,5 +1,4 @@
Django
httpd # NOPRIME
mod_wsgi # NOPRIME
pcre-devel # pyScss
pyxattr
-1
View File
@@ -1,4 +1,3 @@
memcached
mod_ssl
MySQL-python
sqlite
-1
View File
@@ -1 +0,0 @@
fping
+1
View File
@@ -0,0 +1 @@
ipset
@@ -2,10 +2,10 @@ acl
dnsmasq # for q-dhcp
dnsmasq-utils # for dhcp_release
ebtables
haproxy # to serve as metadata proxy inside router/dhcp namespaces
iptables
iputils
mysql-devel
MySQL-python
mysql-server # NOPRIME
openvswitch # NOPRIME
rabbitmq-server # NOPRIME
+2
View File
@@ -0,0 +1,2 @@
conntrack-tools
keepalived
+1 -7
View File
@@ -7,21 +7,15 @@ gawk
genisoimage # required for config_drive
iptables
iputils
kernel-modules # dist:f22,f23
kernel-modules # dist:f25,f26,f27
kpartx
kvm # NOPRIME
libvirt-bin # NOPRIME
libvirt-devel # NOPRIME
libvirt-python # NOPRIME
libxml2-python
m2crypto
mysql-devel
MySQL-python
mysql-server # NOPRIME
numpy # needed by websockify for spice console
parted
polkit
qemu-kvm # NOPRIME
rabbitmq-server # NOPRIME
sqlite
sudo
-1
View File
@@ -1 +0,0 @@
ipset
+1
View File
@@ -0,0 +1 @@
neutron-agent
-2
View File
@@ -1,2 +0,0 @@
conntrack-tools
keepalived
+1
View File
@@ -0,0 +1 @@
neutron-l3
+1 -1
View File
@@ -2,7 +2,7 @@ curl
liberasurecode-devel
memcached
pyxattr
rsync-daemon # dist:f22,f23
rsync-daemon # dist:f25,f26,f27
sqlite
xfsprogs
xinetd
-1
View File
@@ -1 +0,0 @@
zookeeper
+24 -24
View File
@@ -4,76 +4,76 @@ log file = %SWIFT_DATA_DIR%/logs/rsyncd.log
pid file = %SWIFT_DATA_DIR%/run/rsyncd.pid
address = 127.0.0.1
[account6012]
[account6612]
max connections = 25
path = %SWIFT_DATA_DIR%/1/node/
read only = false
lock file = %SWIFT_DATA_DIR%/run/account6012.lock
lock file = %SWIFT_DATA_DIR%/run/account6612.lock
[account6022]
[account6622]
max connections = 25
path = %SWIFT_DATA_DIR%/2/node/
read only = false
lock file = %SWIFT_DATA_DIR%/run/account6022.lock
lock file = %SWIFT_DATA_DIR%/run/account6622.lock
[account6032]
[account6632]
max connections = 25
path = %SWIFT_DATA_DIR%/3/node/
read only = false
lock file = %SWIFT_DATA_DIR%/run/account6032.lock
lock file = %SWIFT_DATA_DIR%/run/account6632.lock
[account6042]
[account6642]
max connections = 25
path = %SWIFT_DATA_DIR%/4/node/
read only = false
lock file = %SWIFT_DATA_DIR%/run/account6042.lock
lock file = %SWIFT_DATA_DIR%/run/account6642.lock
[container6011]
[container6611]
max connections = 25
path = %SWIFT_DATA_DIR%/1/node/
read only = false
lock file = %SWIFT_DATA_DIR%/run/container6011.lock
lock file = %SWIFT_DATA_DIR%/run/container6611.lock
[container6021]
[container6621]
max connections = 25
path = %SWIFT_DATA_DIR%/2/node/
read only = false
lock file = %SWIFT_DATA_DIR%/run/container6021.lock
lock file = %SWIFT_DATA_DIR%/run/container6621.lock
[container6031]
[container6631]
max connections = 25
path = %SWIFT_DATA_DIR%/3/node/
read only = false
lock file = %SWIFT_DATA_DIR%/run/container6031.lock
lock file = %SWIFT_DATA_DIR%/run/container6631.lock
[container6041]
[container6641]
max connections = 25
path = %SWIFT_DATA_DIR%/4/node/
read only = false
lock file = %SWIFT_DATA_DIR%/run/container6041.lock
lock file = %SWIFT_DATA_DIR%/run/container6641.lock
[object6010]
[object6613]
max connections = 25
path = %SWIFT_DATA_DIR%/1/node/
read only = false
lock file = %SWIFT_DATA_DIR%/run/object6010.lock
lock file = %SWIFT_DATA_DIR%/run/object6613.lock
[object6020]
[object6623]
max connections = 25
path = %SWIFT_DATA_DIR%/2/node/
read only = false
lock file = %SWIFT_DATA_DIR%/run/object6020.lock
lock file = %SWIFT_DATA_DIR%/run/object6623.lock
[object6030]
[object6633]
max connections = 25
path = %SWIFT_DATA_DIR%/3/node/
read only = false
lock file = %SWIFT_DATA_DIR%/run/object6030.lock
lock file = %SWIFT_DATA_DIR%/run/object6633.lock
[object6040]
[object6643]
max connections = 25
path = %SWIFT_DATA_DIR%/4/node/
read only = false
lock file = %SWIFT_DATA_DIR%/run/object6040.lock
lock file = %SWIFT_DATA_DIR%/run/object6643.lock

Some files were not shown because too many files have changed in this diff Show More