Compare commits

...

4152 Commits

Author SHA1 Message Date
Ghanshyam 4a6a717a15 Support TEMPEST_BRANCH with tag name & stable u-c
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 use the stable/ocata upper constraint in Tempest venv.

Related--Bug: 1861308
[1] https://review.opendev.org/#/c/704840/

Change-Id: I15942917ec96e0f0e17639ea3296e356cdfeb832
2020-02-07 00:30:22 +00:00
Carlos Goncalves a70d84ceed 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)
(cherry picked from commit 6f3696c168)
2019-09-17 07:01:25 +00:00
Ghanshyam Mann 7adb4c59c2 Use Tempest v20.0.0 for Ocata testing instead of master
Tempest master started doing the strict JSON schema validation
for volume API. With that validation Tempest master started
failing on Ocata branch as new field in Cinder API added after
Ocata is still seen in Ocata API verison. Means new field added
in microverison is still seen in older microversion also.

Whether Cinder API can be fixed or not is different topic but as
per Tempest stable branch support policy[1], current Tempest master
does not support Ocata branch which is EM and if Temepst master
does not work on EM branches then solution is to use the Tempest
working tag for that EM branch.

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

Related-Bug: 1843762

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

Change-Id: If5a0710360be448aa0c9e36fd22657b122dad66b
2019-09-16 11:12:42 +00:00
OpenDev Sysadmins 3d3ab6bd4b 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:14 +00:00
Ian Wienand ba659bc0be 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: Ib02316a43b18bdbfee29aa157a7a0438b9b2fdc9
2019-03-22 01:35:38 +00:00
Zuul d18f37eb08 Merge "Remove fping requirement" into stable/ocata 2018-09-28 04:43:15 +00:00
Ian Wienand 363e8cd6b8 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.

(Cherry-Picked from dc04b5aa24)
Change-Id: Iccb045a6695deb10da4d68a5694e1fa45ccbb810
2018-09-26 07:02:06 +10:00
Ian Wienand 601e71064c 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
(cherry picked from commit bc6c992e3c)
2018-09-24 17:34:21 +00:00
Zuul 5fb49f5a72 Merge "Follow job renames" into stable/ocata 2018-09-13 06:25:27 +00:00
Andreas Jaeger 6a0261d9ee Remove master only job
legacy-periodic-tempest-dsvm-oslo-latest-full-master
runs only on master, remove it. This needs to stay in project-config.

Change-Id: I81e66ddb0976bb4bb7a7cd8efbbae3bda551191d
(cherry picked from commit 6403b1447f)
2018-09-12 11:39:46 +02:00
Andreas Jaeger 7a8e2c2ff4 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:52:14 +02:00
Doug Hellmann f190f9a80e 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: I4f262c7dd9fedf16cdd0898f9171f882919c13b1
Story: #2002586
Task: #24327
2018-09-08 22:54:37 -04:00
YAMAMOTO Takashi 59880c4edd 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
(cherry picked from commit ed887d8b9f)
2018-06-12 09:27:06 -04:00
Hongbin Lu 0c980c6f81 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-16 11:57:50 +00:00
Clark Boylan b376719fc0 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.

Closes-Bug: #1764046
Change-Id: Ic7d0c04d7fa77774ab2d70fb9d11f182becec553
(cherry picked from commit 065779517f)
2018-04-15 11:50:39 +02:00
Zuul d7738b35fd Merge "Remove deprecated 'deactivate_image' feature flag setting" into stable/ocata 2018-03-09 13:20:50 +00:00
Mohammed Naser 66827dda40 Bump NOVA_READY_TIMEOUT to 120s
This changes bumps NOVA_READY_TIMEOUT to 120s by default in Pike
and older because the UCA shipped libvirt (2.5.0) is very slow
to start up (taking almost a minute at times)

Change-Id: Ia5fd8654e062533a55de2e78d84128027c73c094
2018-02-23 16:58:30 -05:00
Jens Harbott 5a66ce224c 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:50 +00:00
Zuul 4a1cedc8c3 Merge "clean up virt drivers that we do image logic for" into stable/ocata 2018-02-21 01:14:07 +00:00
ghanshyam a074d82eee 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:40 +00:00
Monty Taylor 8ab40f4652 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.

Amended to use matching stable/ocata requirements.

Change-Id: I98a43b511a6949fa4f00c26eec224d24d6fa6588
(cherry picked from commit 4187d2fc4a)
2018-01-03 15:16:32 +00:00
Jenkins af3c43f1f6 Merge "Wait for compute service to check in" into stable/ocata 2017-10-05 18:13:10 +00:00
Ian Wienand 8cb43d098c 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
(cherry picked from commit ae9c6ab759)
(cherry picked from commit 4358418d7d)
2017-10-02 11:09:56 -04:00
Clark Boylan 1e21a2d70f 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
(cherry picked from commit 35649ae0d2)
2017-09-13 12:26:11 -06:00
Sean Dague 2c7f377b15 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
(cherry picked from commit c2fe916fc7)
2017-09-07 13:36:42 +00:00
John L. Villalovos 727da57e81 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
(cherry picked from commit c6e6939e89)
2017-09-06 07:01:13 +00:00
Vasyl Saienko 894c83051b 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
(cherry picked from commit 0525e77d9f)
2017-08-16 20:48:56 +00:00
Jenkins 64582c2ac6 Merge "Put devstack-version info into separate file" into stable/ocata 2017-07-31 14:43:56 +00:00
Yuval Brik 99a2c6c614 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
(cherry picked from commit 13e81ad1cf)
2017-07-27 02:40:53 +00:00
Sean Dague 76a3ae6ca2 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).

-- Note

This is a combined cherry-pick of the following

 2c0faca038 - add version
 3415521d56 - fix to ^
 07cbc44942 - this change

2c0faca and 3415522 were not merged to this branch at the time to
avoid breakage.  This brings consistency across the open branches.

Change-Id: Ic7391dd087657c0daf74046e4a052c53f4eb6e1a
2017-07-24 11:20:41 +10:00
Kaitlin Farr 6e02b553b0 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

Related-Bug: #1704875

Change-Id: I733279864ee1a4aaffc9c8eed81b5e12f8d8821b
(cherry picked from commit a5b72b053e)
2017-07-17 21:58:54 +00:00
Paul Belanger 02752f5df2 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>
(Cherry-picked from 331b3de88e)
2017-07-17 19:08:30 +10:00
Paul Belanger 55dc9aaa68 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 18:00:33 +00:00
Maciej Józefczyk 24bb870492 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-27 19:21:44 +02:00
Jenkins be43083d93 Merge "Use the proper keystone endpoints in clouds.yaml" into stable/ocata 2017-05-26 19:25:07 +00:00
Pawel Koniszewski a7d927be23 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
(cherry picked from commit 8a92b7f1de)
2017-05-18 16:04:51 +00:00
Jenkins ad99d28f0f Merge "Enable EPEL mirror by default" into stable/ocata 2017-04-28 06:43:57 +00:00
Monty Taylor a1daf9c003 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
(cherry picked from commit e43f60ba2a)
2017-04-27 19:37:02 -05:00
Jenkins 969d0a392b Merge "Adding placement-client to compute node local.conf for multinode setup" into stable/ocata 2017-04-24 13:40:28 +00:00
Paul Belanger 841f09c99e 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>
(cherry picked from commit bc4b8eb5bf)
2017-04-21 19:05:17 +00:00
Sean Dague 0a313468a3 clean up virt drivers that we do image logic for
This is a partial backport of:
  https://review.openstack.org/#/c/435126

We have only opted to backport the removal of openvz image.

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.

Change-Id: I9d33b98263c3d52a95b9983e90eb0b341fa1d363
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-04-21 14:12:22 -04:00
Ken'ichi Ohmichi 1aff8ff26c 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.

Change-Id: I801e6740258ddea2a1b628a209970e0307d39d12
(cherry picked from commit dc6e550218)
2017-04-21 11:22:19 +01:00
Clark Boylan 36b5bcb0f3 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
(cherry picked from commit 3d4c6d2dd1)
2017-04-20 10:01:02 -07:00
Jenkins da567a4ecd Merge "always retry proxy errors" into stable/ocata 2017-04-19 15:01:15 +00:00
Sean Dague c65ec071e9 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
(cherry picked from commit a1446b960f)
2017-04-18 15:39:38 +00:00
Prabhuraj Kamaraj 9b7cf0176b Adding placement-client to compute node local.conf for multinode setup
Change-Id: I2e4c7051ae29cf30bdc1fbf940b165d5cb0e6385
Closes-Bug: #1682362
2017-04-18 05:05:08 +00:00
Clark Boylan 21ad8a9d56 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
(cherry picked from commit c9a9e415b9)
2017-04-13 08:50:31 +00:00
John L. Villalovos 2c45d94e46 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
(cherry picked from commit 3345a6d316)
2017-03-17 07:40:09 -07:00
Evgeny Antyshev 53bc172448 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
(cherry picked from 008aa3e095)
2017-03-16 10:40:08 +11:00
Ian Wienand eec5c1a5a9 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
(cherry picked from commit 52bb64105f)
2017-03-13 14:22:30 +00:00
Sean Dague 49f5b9f5ec 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
(cherry picked from commit afef8bf097)
2017-03-07 22:12:13 -08:00
Jenkins 79c19b6af4 Merge "Skips enabling kernel bridge firewall in container" into stable/ocata 2017-03-06 14:37:50 +00:00
Jenkins d319ee9f48 Merge "Revert "Switch devstack to use qcow cirros img"" into stable/ocata 2017-03-05 17:20:43 +00:00
Matthew Treinish 14b3b96cfd Revert "Switch devstack to use qcow cirros img"
This was not supposed to be merged yet, it breaks grenade.
There needs to be a fix applied to master and then included in this backport.

This reverts commit f61ca5fd61.

Change-Id: I6321039117dcff80bb87e43f0e49082071018936
2017-03-05 14:24:27 +00:00
Jenkins ac054783e9 Merge "Switch devstack to use qcow cirros img" into stable/ocata 2017-03-05 09:18:07 +00:00
Denis Buliga 28b034fc95 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
(cherry picked from commit 0bf75a471e)
2017-03-03 17:18:51 +00:00
Ian Wienand 9379c95727 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
(cherry picked from commit 1e7f738f28)
2017-03-01 14:48:57 +00:00
Luz Cazares d26bcdfa41 Fix api extension settings in tempest for Ocata
On stable branches, we are supposed to hard code the extension list of
what API extensions are available when we branch the project so that
test cases against new features will be skipped. However, we didn't do
this on Ocata release.

Change-Id: I1a4d1ea8c8d34b8cd1020e76597db6c67f85f6ec
2017-02-28 15:45:21 +00:00
Prashant Shetty 770f0432a9 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
(cherry picked from commit f58b373563)
2017-02-24 17:16:35 +00:00
Matthew Treinish f61ca5fd61 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
(cherry picked from commit 6fc332d852)
2017-02-16 17:42:47 +00:00
Jordan Pittier 00edb2f380 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
(cherry picked from commit 4370925181)
2017-02-15 13:31:34 +00:00
Matthew Treinish c1921f75b1 Update branch references for stable/ocata
Change-Id: Id7400d5222a7608b992d6e0f629204265fe458c6
2017-02-14 13:13:59 -05:00
Jenkins 291d2d4c6a Merge "only apply ebtables race fix on trusty" into stable/ocata 2017-02-13 15:08:28 +00:00
Sean Dague cead7a1ba9 only apply ebtables race fix on trusty
Change-Id: Ifc83e7301d9d921ce9ceed349f116584ce03842b
2017-02-09 22:58:01 +00:00
Matthew Treinish 58de94f277 Set max microversions for ocata
This commit sets the max microversions on the ocata branch so that
tempest doesn't try to run tests that require a newer api version.

Change-Id: Id033dde91b6a7aa09aca2332fe815fd72be90438
2017-02-08 10:15:51 -05:00
Doug Hellmann 572815e7dc Update .gitreview for stable/ocata
Change-Id: I7dbf2c62bdbb8d372aea5d2bfd0d9b5f55e8cbf6
2017-02-08 08:13:32 -05:00
Jenkins 7eef546f8a Merge "Cut back on the number of workers ran for neutron" 2017-02-07 04:04:33 +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
OpenStack Proposal Bot debc695ddf Updated from generate-devstack-plugins-list
Change-Id: Ia858ddf2e688903af2c76d532ddf7780bd591ef9
2017-02-01 07:27:18 +00: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
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
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
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
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
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
Jenkins 0a2a7ae847 Merge "Updated deprecated keystone_authtoken option" 2016-03-18 20:24:03 +00:00
Jenkins 467dbf7703 Merge "Fix RHEL7 vendor detection" 2016-03-18 20:23:53 +00:00
Jenkins a4d67cd033 Merge "yum_install_package: fix errexit and retry" 2016-03-18 20:22:59 +00:00
YAMAMOTO Takashi 7c98cfb56e install_pip.sh: Remove stale comments
Change-Id: Id91c8e579977bedae1410095d9b4cef9d9ae2178
2016-03-18 21:24:46 +09:00
Jenkins 1dd875d48e Merge "logging: don't set logging format strings for keystone" 2016-03-17 22:29:44 +00:00
Jenkins cafa163e8a Merge "Remove n-crt from default services" 2016-03-17 18:03:07 +00:00
Jenkins 320f0d79a5 Merge "Remove EC2 API from devstack" 2016-03-17 18:01:59 +00:00
Ihar Hrachyshka 198887e890 logging: don't set logging format strings for keystone
Don't override those format strings since the overridden
values are identical to those used by oslo.log by default [1].

logging_exception_prefix is still set since it changes the logging
format to use TRACE label for exceptions instead of default ERROR.

[1]: https://git.openstack.org/cgit/openstack/oslo.log/tree/oslo_log/_options.py?id=c47a91dbbb586c27d8521b1016bf7901c47b1c90#n110

Closes-Bug: #1433687
Change-Id: Ibd11cd6b0defb6dc709dbd3e718a49fd71cce6b6
2016-03-17 13:09:56 +01:00
Jenkins aeb1e4d4bb Merge "Change "secrete" to "secret"" 2016-03-17 07:19:56 +00:00
Balagopal 7ed812c6cd Change "secrete" to "secret"
Apparently this is intentional as a joke on devstack leaking
passwords, but the dual meaning of the word confuses people.  Let's
change it before we get yet another review fixing it.

Change-Id: I3bee03612f6ea197362aab04a37f81043f77f235
2016-03-17 14:53:03 +11:00
gordon chung f21b86fefb Install uuid-runtime on Ubuntu
It seems uuidgen doesn't exist by default on the new trusty nodes [1].
There are quite a few projects that use uuidgen [2] so we need to
ensure it's on the node.

On Trusty, this is provided by the uuid-runtime package.  Note that on
Centos & Fedora this is provided by util-linux which is already tehre.

[1] http://logs.openstack.org/75/292475/1/check/gate-telemetry-dsvm-integration-ceilometer/2e85d1f/logs/devstacklog.txt.gz#_2016-03-16_19_20_30_116
[2] http://codesearch.openstack.org/?q=uuidgen&i=nope&files=&repos=

Change-Id: I230836d8b644698473d0611931334c232cf00734
2016-03-17 14:26:48 +11: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
Jenkins f0f371951f Merge "Revert "Automate OVS bridge creation for multiple mappings"" 2016-03-16 16:05:44 +00:00
Dean Troyer d014002d03 Remove n-crt from default services
Depends-on: I8a07320b59ea6cd7d1fe8bce61af84b5a28fb39e
Change-Id: I3441317911c8e940ef038c79f97554c1c669e120
2016-03-16 08:43:14 -05:00
tengqm 78d3739dbe Fix RHEL7 vendor detection
When detecting os_VENDOR, the lsb_release output may be different
from what is expected today. This patch fixes the detection.

Change-Id: I850ad1acbc2397c73e7cc85c1765cba6ba2f98d4
2016-03-15 23:08:00 -04:00
Sean M. Collins 54d16f706a Revert "Automate OVS bridge creation for multiple mappings"
After reviewing I5b1d49be8d9e3e331826e30182fba70f099b5e7f and
I161a157895b4ed0c9ea5a7a00302e30f4ad75ed3 - I have come to the
determination that this really should be in a DevStack plugin.

If both of the patches under review were to merge, we would be blessed
with at least the following variables:

OVS_NICS_FROM_BRIDGES
OVS_NIC_MAPPINGS
OVS_BRIDGE_MAPPINGS
OVS_PHYSICAL_BRIDGE
PHYSICAL_NETWORK
PUBLIC_PHYSICAL_NETWORK

Which really is not good. Let's just push this into a plugin, I don't
want to deal with it.

This reverts commit 3095ff5132.

Change-Id: I746022f5db93d3333101a014692fbdcd790a0004
2016-03-15 15:24:53 -04:00
OpenStack Proposal Bot 04ed38b5d7 Updated from generate-devstack-plugins-list
Change-Id: I40f4ce322028698011931f3b72fc39e95e6813b0
2016-03-15 06:26:37 +00:00
Ian Wienand 3bf69e835a Remove EC2 API from devstack
This all started with an investigation into Fedora's use of ecua2ools
package.  This package is a bit of a nightmare because it pulls in a
lot of other system-python packages.

For Ubuntu, this package was removed in
I47b7e787771683c2fc4404e586f11c1a19aac15c.  However, it is not
actually a "pure python" package as described in that change, in that
it is not installable from pypi.  I can't see how you could actually
run exercises/euca.sh on Ubuntu unless you installed euca2ools by hand
-- ergo I suggest it is totally unused, because nobody seems to have
reported problems.

In the mean time, ec2 api has moved to a plugin [1] anyway where the
recommendation in their README is to use the aws cli from amazon.

Thus remove all the parts related to EC2 and ecua2ools from base
devstack.

[1] https://git.openstack.org/cgit/openstack/ec2-api

Change-Id: I8a07320b59ea6cd7d1fe8bce61af84b5a28fb39e
2016-03-15 13:32:23 +11:00
Jenkins 428f86e84f Merge "uwsgi keystone under master process" 2016-03-15 01:01:16 +00:00
Jenkins c47340efb7 Merge "Cleanup duplication in keystone uwsgi options" 2016-03-15 01:01:08 +00:00
Jenkins 44177fabc3 Merge "Update gitignore for docs" 2016-03-15 01:01:00 +00:00
Jenkins 4b56bc3507 Merge "Use extended keystone-manage bootstrap parameters" 2016-03-14 21:03:08 +00:00
Brant Knudson 9f5e7ba100 Update gitignore for docs
These files are created when generating docs and should not be
checked in.

Change-Id: I1dc4ca05ab522237328f79f3a855750b8202f5da
2016-03-14 14:54:47 -05:00
Brant Knudson 4abcfaa86e uwsgi keystone under master process
Normally a standalone uwsgi server would run in "master" mode -- it
handles signals to reload the processes. I tried this originally
with keystone but found that the server didn't shut down when
unstacking. The reason it didn't shut down is because (by default)
uwsgi does a reload on SIGTERM & SIGHUP rather than shutting down by
default, see [1].

Setting "die-on-term = true" & "exit-on-reload = true" changes the
uwsgi server to shut down when unstacking.

[1] http://uwsgi-docs.readthedocs.org/en/latest/Management.html#reloading-the-server

Change-Id: I145fef185d4a31078295941779e175b7452a5760
2016-03-14 14:38:55 -05:00
Brant Knudson 0d38e2d5d8 Cleanup duplication in keystone uwsgi options
There was a lot of duplication in the uwsgi options between the
admin and public config files. The options common to both are
moved into their own section.

Change-Id: I5519c7d4d8b8446a7a5fdb8033852655d8a2c67b
2016-03-14 14:38:55 -05:00
Jenkins 082399ef18 Merge "Remove rejoin-stack.sh" 2016-03-14 18:55:23 +00:00
Jenkins 3bee719ece Merge "remove the keystone bash completion install step" 2016-03-14 18:33:36 +00:00
OpenStack Proposal Bot 1df1e18da2 Updated from generate-devstack-plugins-list
Change-Id: Ic4f4015eb9446c62b793897fced7b5721427f09a
2016-03-12 06:24:11 +00:00
Steve Martinelli 84f6c0fa68 remove the keystone bash completion install step
keytone has removed it's CLI and will release a new version
when Newton begins. As part of the removal process we also
need to remove the bash completion script, which is currently
failing devstack gates.

Change-Id: I132b862bde5b4173bf34beae12a7a882f5a96314
2016-03-11 22:39:12 -05:00
Jenkins 3ccb79ecea Merge "Set the Swift max_file_size to 1/2 the loopback" 2016-03-11 20:31:24 +00:00
Jenkins fa3cc77aee Merge "Use "command -v" instead of "which" to find path" 2016-03-11 00:55:25 +00:00
Jenkins 73af0de40c Merge "Ignore errors when uninstalling a pkg with zypper" 2016-03-11 00:55:17 +00:00
Jenkins b57ec243c9 Merge "Also detected failed packages in dnf/yum wrapper" 2016-03-11 00:55:08 +00:00
Jenkins b08914ade7 Merge "Neutron guide: Add missing newline for code block" 2016-03-10 23:14:27 +00:00
Dean Troyer 9ba49cd826 Remove rejoin-stack.sh
This command has never completely worked to restart DevStack.
It periodically prompts attempts to work around this brokenness
in ways that harm other functions.  Let's finally remove it.

Requiring a complete re-run of DevStack after a reboot has always
been intentional.

TODO: follow-up cleaning all of the screen hackage if this merges.

Change-Id: I2f61bb69cc110468a91dcaa4ee7653ede7048467
2016-03-10 15:48:13 -06: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
Jenkins 0aea130107 Merge "Updated from generate-devstack-plugins-list" 2016-03-10 16:58:38 +00:00
Jenkins ca5104b0b1 Merge "Add some notes on trove image" 2016-03-10 15:11:45 +00:00
Jenkins f3e9ad5845 Merge "Remove check for OVS_VERSION < 1.4" 2016-03-10 15:05:11 +00:00
Jenkins 72bd9c81f5 Merge "Ironic: Set DEFAULT_IMAGE_NAME to full disk image for agent" 2016-03-10 15:04:16 +00:00
OpenStack Proposal Bot 5c417a0133 Updated from generate-devstack-plugins-list
Change-Id: I683b8208aedc71ce63012e470b2afbdef8856308
2016-03-10 06:27:24 +00:00
Jenkins 46b437a325 Merge "Update bashate to 0.5.0" 2016-03-09 23:31:40 +00:00
Jenkins 457fa90931 Merge "Don't abort devstack plugins proposal job due to absence of header/footer" 2016-03-09 23:30:38 +00: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
Sean M. Collins f0e5d23043 Neutron guide: Add missing newline for code block
Change-Id: I4eb5ec05d9db525158d47c7b16bef04fb3965f1a
2016-03-09 13:02:25 -05:00
Sean M. Collins d1ee4cfdf9 Remove check for OVS_VERSION < 1.4
1.4 was released in 2012. I think we can assume everyone is running
something newer.

http://openvswitch.org/releases/NEWS-1.4.0

Change-Id: I3cfe99d2647800ae3ffb32c9e6749d03224c2967
2016-03-08 15:25:16 -05:00
Ronald Bradford 8ff298a871 Updated deprecated keystone_authtoken option
* memcache_servers is a deprecated name for memcached_servers.
  See: keystonemiddleware/auth_token/__init__.py#n287

NOTE: memcache_serves in the cache section is valid option for
    oslo.cache.  See oslo_cache/_opts.py#n65

Depends-on: Id65f1bff8e38c777fa406d88ac6a2355d6033d94
Change-Id: I3e1230b139e710a0433e71ce118ca246d7c6a0e6
2016-03-08 18:59:44 +00:00
Sean Dague 6fff3cc035 Fix sorting on LC_ALL=C platforms
We made assumptions on the platform for sorting purposes, which turned
out to break with new images being deployed. Explicitly setting LC_ALL
should make this work.

Change-Id: Id65f1bff8e38c777fa406d88ac6a2355d6033d94
2016-03-08 12:00:15 -05:00
Clint Adams f3b6feb712 Don't abort devstack plugins proposal job due to absence of header/footer
Not having a header or footer should not be a fatal error
especially now that we have removed the footer entirely.

Change-Id: Ibbf3e513b8faa016dc2dac8d11ab4f499b3fc51c
2016-03-08 10:59:24 -05:00
Jamie Lennox 32bf2c4f6f Use extended keystone-manage bootstrap parameters
Use the additional keystone-manage parameters to setup the identity
endpoint in the service catalog rather than manually fetching a token
for this.

Change-Id: I6f5be1df205dee8f3251b4eb413e00ae64f00f07
2016-03-07 20:49:13 -06:00
Matthew Oliver 7b85723c04 Set the Swift max_file_size to 1/2 the loopback
Currently Devstack (and devstack gate) uses the default
max_file_size of for Swift (5GB). However the loopback file
is only 1 or 2 GB is size.

We are looking at setting a default FALLOCATE_RESERVE in swift
https://review.openstack.org/#/c/288011.
Because of this our max file size test fails due to the max_file_size
and devstacks loopback size being too small.

This patch sets this to a more sane size by default inside DevStack.
See the gerrit link above for more details.

Tempest uses a loopback of 6GB, so in this case the swift default of 5GB
should be fine.

Change-Id: If09eab7d16ae67bd252020e00e8812ff252f065b
2016-03-08 12:04:15 +11:00
Tracy Jones a440bf8629 Ignore vmdk files as well as other image types
Change-Id: I012b21181f1e54a1e4a3707b0fdf8c0afa6222c2
2016-03-07 10:50:32 -08:00
Jenkins 03cf3ce902 Merge "Use new use_neutron variable" 2016-03-07 18:18:21 +00:00
Jenkins 61ba1b3353 Merge "Add some notes on DISTRO setting" 2016-03-07 14:30:31 +00:00
Jenkins e15b07265d Merge "Disable nova calls from tempest when heat is enabled" 2016-03-07 14:30:22 +00:00
Jenkins a53f01e188 Merge "worlddump: log command failure details" 2016-03-07 14:30:12 +00:00
Jenkins 7f75348d67 Merge "Add error handling for euch.sh volume creation" 2016-03-07 14:30:02 +00:00
Jenkins 7f81e5ae9b Merge "Add pg_createcluster creating process for psql version after 9.3" 2016-03-07 14:29:53 +00:00
Jenkins c72f8d318f Merge "Introduce Virtuozzo distribution" 2016-03-07 14:09:03 +00:00
Ian Wienand c709d50afe Update bashate to 0.5.0
Update bashate to 0.5.0 release.  We got things ready for this with
I3fd5d55236e90c2f2c25243af87adaf0c1b763e2.

I'm not sure what I was thinking in
I9e4b1c0dc9e0f709d8e76f9c9bf1c9478b2605ed when I added ".orig" files
to the list of files to check.  Ignore diff/merge files.

Change-Id: I8bb0c8b39972abb775b4e5556e79d2e17005bc8c
2016-03-07 14:05:48 +11:00
Jenkins 3fc4472be4 Merge "Updated from generate-devstack-plugins-list" 2016-03-07 02:05:08 +00:00
Jenkins 4fcb7b60a7 Merge "Update account generator calls with correct password" 2016-03-07 01:03:39 +00:00
Ian Wienand c21194875e Add some notes on trove image
The trove image is one of the larger ones we cache, and after
double-checking it is still used as part of the
gate-tempest-dsvm-trove tests (although integration tests seem use
their own dib-built version)

Add some notes to clarify the situation with this image.

Change-Id: I2319dd5811d6bd215d1e8778eca5b4c9399f0efb
2016-03-07 10:25:41 +11:00
Clint Adams 4b186badaa Remove devstack plugins proposal job footer
Aside from notes, the content of the footer is entirely redundant
with the detected plugins list, so let's remove it.

Change-Id: I346b59705c5b0716a18087f6800f568fb1f4c9a8
2016-03-04 15:41:28 -05:00
Sean Dague f21cc1fd96 Use new use_neutron variable
This uses the new use_neutron variable instead of the crazy class
path. This helps us test the use of this in our jobs.

Change-Id: Ic6d0cc4b7a0df6b3f5336ee58886f7edff26e846
Depends-On: I1c2eb51d10ba6370492a911f59370b9870646a38
2016-03-04 13:51:25 -05:00
Matthew Treinish 6cf412bb7e Update account generator calls with correct password
Change I380dd20e5ed716a0bdf92aa02c3730359b8136e4 updated the tempest
configuration to stop creating a bunch of globals. But as part of
that refactor it started using $admin_password as the password
argument for tempest-account generator, which is never defined.
This commit rectifies the situation by using the correct variable
$password.

Change-Id: Ieeed58751e5784020e04bcc2911ac74791662110
2016-03-04 10:36:10 -05:00
Thomas Bechtold c15d59157c Ignore errors when uninstalling a pkg with zypper
I.e. when trying to uninstall python-pip and it's not installed,
don't exit.

Change-Id: I21ac715a0090ad01811af47f23c61823dfa65629
2016-03-04 16:06:24 +01:00
Thomas Bechtold dab3901d9a Use "command -v" instead of "which" to find path
If /usr/bin/which is not available, the current code
doesn't detect i.e. /usr/bin/zypper . Using "command -v" solved
the problem.

Change-Id: I1c281c3184d69cd9dc2418295b6a392d8e5693e0
2016-03-04 09:14:04 +01:00
OpenStack Proposal Bot 96d895d871 Updated from generate-devstack-plugins-list
Change-Id: I01587633625087d190e879c88c53730efa01cd16
2016-03-04 06:26:51 +00:00
Jenkins 147a3647fe Merge "Increase Plugin Name column width by 10 in devstack plugins list" 2016-03-04 01:58:49 +00:00
Jenkins ba71f0ead7 Merge "Fix is_suse() check for openSUSE distros" 2016-03-04 01:48:10 +00:00
Jenkins b4758cb5ff Merge "Fix lsb installation for SUSE" 2016-03-04 01:35:55 +00:00
twm2016 5fe81c50a2 Add error handling for euch.sh volume creation
Error handling for volume creation calls die with the appropriate
 message.

Change-Id: Ib095992384edf895aaf78cb4115702d6a0675a3f
Closes-Bug: #1206180
2016-03-03 09:12:20 -06:00
Evgeny Antyshev 718512c4d2 Introduce Virtuozzo distribution
Virtuozzo is a RHEL-based distribution serving as a platform OS
to host proprietary container virtualization
(formerly, Parallels Cloud Server).

We moved away from CloudLinux distribution, which has actually
no support in Devstack (no such clause in is_fedora).
As it was us who introduced CloudLinux, by this patch
we replace it with Virtuozzo distribution.

More info on Virtuozzo company here: http://virtuozzo.com

Change-Id: Ib8a77e4611ebc05bc0aa50bb83ab79c412e21c74
2016-03-03 14:56:59 +00:00
Ihar Hrachyshka 7976aacdf6 worlddump: log command failure details
If a command we trigger fails for some reason, it's worth logging
details about the failure (like return code).

Change-Id: Ib19aa474eccdd11e138a4f55e125935b621bca05
2016-03-03 15:31:43 +01:00
Jenkins cd6e23faba Merge "Add Glance Artifact API in devstack installation" 2016-03-03 11:20:15 +00:00
Lucas Alvares Gomes f85a7e90f0 Ironic: Set DEFAULT_IMAGE_NAME to full disk image for agent
The agent_* drivers in Ironic are not yet capable of deploying partition
images. The code in DevStack was aware of that but it was looking at the
agent_ssh driver specifically.

This patch is fixing this assumption and extending that conditional for
all agent drivers.

Change-Id: I416faa9ef6fba9621cd664d5a0747b1e80e281d1
2016-03-03 10:33:17 +00:00
Thomas Bechtold 899dfeef46 Fix lsb installation for SUSE
zypper has a "-n" (non-interactive) switch. "-y" is not known
as a global option.

Change-Id: I6537529e91c12c5f0d15a9faa2cca8aedaf7d956
2016-03-03 11:27:53 +01:00
Yalei Wang 174986db21 Add pg_createcluster creating process for psql version after 9.3
postgresql 9.3 don't create /etc/postgresql and related conf file by
default. So we need start the pg_createcluster in devstack if has not
started after package installed.

Change-Id: I2b348658d79b23b5f21871b33d8023499b2fb956
Close-bug: #1552051
2016-03-03 04:08:01 +00:00
Ralf Haferkamp 37dddb73fd Fix is_suse() check for openSUSE distros
We need to do a substring match on the vendor here. As most releases return
"openSUSE project" for the vendor.

Change-Id: Ia05db8d93b5e3f42cb6a9c8d77616ca9f7c32039
2016-03-02 15:34:06 +01:00
Jenkins 925e2d9ded Merge "Add note about the periodic proposal job to the header" 2016-03-02 05:56:37 +00:00
Jenkins effcfd6983 Merge "Disable tempest tox venv recreation in OFFLINE mode" 2016-03-02 05:55:28 +00:00
Clint Adams bb40df5714 Increase Plugin Name column width by 10 in devstack plugins list
Change-Id: I62b1dca87ca8df4335a062caaf5e6a3e76e9101a
2016-03-01 18:12:48 -05:00
Clint Adams 304f4ce87c Add note about the periodic proposal job to the header
Now that the devstack pluging periodic proposal job is in place,
add a note to the header to try to head off confusion.

Change-Id: I1c740ff768f831548970142a8bd024abe1763fdf
2016-03-01 18:42:44 +00:00
Mathieu Rohon 0c985c8627 Disable nova calls from tempest when heat is enabled
This patch ensures that lib/tempest doesn't call nova when heat is
enabled and nova is disabled.

Change-Id: I2debbae1bb82ecace1058e99ab172272393fb5ea
Closes-bug: #1549708
2016-03-01 09:04:42 +00:00
Ian Wienand 1b1cc8c1d4 yum_install_package: fix errexit and retry
Since I93e9f312a94aeb086925e069a83ec1d3d3419423 yum_install isn't safe
under errexit.  This means it really only works when called by
tools/install_prereqs.sh because for some reason, we don't set that
there.

However, there is a problem with the retry logic when detecting failed
installs.  A failed package install should stop further progress, but
with the current retry logic it just goes ahead and retries the
installation, which then incorrectly passes.  You can see this
happening in a test like [1].

In our detection scripts, make a failed package or missing packages
exit with error-code 2, and "die" when we see this to correctly stop.

[1] http://logs.openstack.org/81/285881/1/check/gate-tempest-dsvm-platform-fedora23-nv/a83be30/logs/devstacklog.txt.gz

Change-Id: I4ea5515fa8e82a66aefa3ec3a48b823b645274f7
2016-03-01 13:14:39 +11:00
Jenkins a9bc5cb60e Merge "Place the generated list in the correct location for the proposal job" 2016-02-29 20:00:22 +00:00
Jenkins efcf3b5fe8 Merge "Remove filesystem-based code path" 2016-02-29 19:55:17 +00:00
Jacek Tomasiak 3ded0dbba5 Disable tempest tox venv recreation in OFFLINE mode
Setting OFFLINE=True in local.conf should enable stack.sh to run multiple
times without an internet connection. This was broken for some cases
when recreation of tox venv for tempest was forced in lib/tempest.

This change makes recreation of tox venv enabled only when OFFLINE mode is
disabled.

Change-Id: I2bf6caf60038a3690378eead905b35e9175ac356
Closes-Bug: #1550537
2016-02-29 20:52:09 +01:00
Alexey Galkin b65cf0aae4 Add Glance Artifact API in devstack installation
Since EXPERIMENTAL Glance v3 API has been removed in favor of
standalone API implementation was added we need to add some
changes in devstack to support it.

Implements blueprint: move-v3-to-glare
Depends-On: I5b7bd4cdcc5f2a40fc4a5f74bcc422fd700c4fb0

Change-Id: Iced3c68010eb6bcd2a6a1ec8f1c6883f84cbe77f
2016-02-29 16:27:22 +03:00
Ian Wienand 3c60168532 Also detected failed packages in dnf/yum wrapper
As seen in [1]; dnf can output a "Failed:" section when installation
issues with a package are detected.  This does not, however, trigger
an exit failure code when running with "-y".  So add this to our
checking wrapper.

[1] http://logs.openstack.org/49/280449/1/check/gate-tempest-dsvm-platform-fedora23-nv/dc70ca8/logs/devstacklog.txt.gz#_2016-02-28_22_42_45_145

Change-Id: I12f7b3bc9e9cf5a97114082d3a634a42742843d5
2016-02-29 15:15:39 +11:00
Jenkins 92116ecd66 Merge "Remove lib/cinder_backends/solidfire" 2016-02-27 02:37:24 +00:00
Clint Adams e6f0d8cb40 Place the generated list in the correct location for the proposal job
If tools/generate-devstack-plugins-list.sh is invoked with a parameter,
as is the case with the proposal job, copy the generated list thither
so that git will actually generate a diff.

Change-Id: I874a521bba7f402f5c07e28d6ebb086e77873795
2016-02-26 08:25:32 -07:00
Clint Adams 8ce3faf4e7 Remove filesystem-based code path
This removes the fs-based git code path for detecting devstack plugins
as requested in I2c5c9282a8ad80014cad171a4dfbdc8f26044cd1

Change-Id: I6d1567c2545b866c433381d19587beb08c281c53
2016-02-26 08:18:13 -07:00
Jenkins 447af8f3f6 Merge "Generate plugins list through https requests" 2016-02-26 06:11:29 +00:00
Jenkins da859495b2 Merge "Use SCREEN_NAME variable instead of hardcode in unstack and rejoin scripts" 2016-02-26 01:20:12 +00:00
Nikolay Fedotov 7f66503de0 Use SCREEN_NAME variable instead of hardcode in unstack and rejoin scripts
Change-Id: I7382eccf96d14df223777cd43344d554b8452a77
2016-02-25 14:03:19 +00: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
Jenkins b01a3c3baf Merge "Followup comment fix from alt_demo user creation" 2016-02-25 00:55:54 +00:00
Jenkins c6b5fe3c72 Merge "Skip ovs_ and ebtables_dump if needed commands not present" 2016-02-25 00:46:19 +00:00
Jenkins 6c888d2c49 Merge "localize user/project variables in tempest" 2016-02-25 00:45:22 +00:00
Jenkins c3c91c4267 Merge "Minor fixes for bashate trunk" 2016-02-24 20:04:55 +00:00
Jenkins ced2e414c0 Merge "fix postgres service name" 2016-02-24 19:54:36 +00:00
Jenkins a91d7d8d05 Merge "Ironic: Update is_ironic_hardware function" 2016-02-24 19:40:46 +00:00
Jenkins 6bb429359d Merge "Fix uwsgi keystone" 2016-02-24 19:35:53 +00:00
Jenkins 0515ff0912 Merge "Ignore files created by pkg/elasticsearch.sh" 2016-02-24 03:30:58 +00:00
Chris Dent 57d79673d9 Skip ovs_ and ebtables_dump if needed commands not present
Skip with a notification that a command was not found when trying
to run a dump that relies on optional external command.

Otherwise we produce noise in the error output that is misleading.

Change-Id: I0e3d99da8c54d2912463ecba7c1783864a7c7fc7
Closes-Bug: #1548833
Closes-Bug: #1506873
2016-02-24 02:51:26 +00:00
Jin Nan Zhang bb16c87a21 Ignore files created by pkg/elasticsearch.sh
When running pkg/elasticsearch.sh the following files are created:

.localrc.password
files/elasticsearch-1.4.2.noarch.rpm
files/elasticsearch-1.4.2.noarch.rpm.sha1.gen
files/elasticsearch-1.4.2.noarch.rpm.sha1.txt


Change-Id: Ie2ab8b7fe72f51cb350e1f46ca97570b84047ac4
Closes-Bug: #1548201
2016-02-23 15:06:48 +00:00
Mehdi Abaakouk 13fe6f59d1 Fix telemetry integration gate jobs
Since https://review.openstack.org/#/c/281779/2 have been
merged the telemetry integration job is broken.

Unfortunatly, it can't be fixed on our side, because we have to
rename SERVICE_TENANT_NAME in many devstack plugin, we can't merge thing
until all plugins have been fixed.

So this change restores SERVICE_TENANT_NAME, to be able to switch to SERVICE_PROJECT_NAME.

Related-bug: #1548634
Change-Id: I14ebf23aa63f0f153b934ad213a6209d22e73e9d
2016-02-23 13:04:12 +01:00
Jenkins ecc7d273db Merge "Change default subnetpool size" 2016-02-23 03:12:57 +00:00
Jenkins df9e62e3e6 Merge "Replace TENANT => PROJECT phase 1" 2016-02-23 00:39:41 +00:00
Assaf Muller f5515409d5 Change default subnetpool size
Commit 7dbcfae introduced a subnetpool needed for the
auto-configured-topology Neutron extension. However, it allows
only up to 4 tenants, then you'd hit an error about no more
available IPs. This patch changes the size of the subnetpool
and the subnets it creates.

Change-Id: I4f43bebc52fb20e39853a1632fe31506958f5071
2016-02-22 17:41:02 -05:00
Jenkins 6278765c55 Merge "Provision deployment requirements for get-me-a-network" 2016-02-22 21:09:14 +00:00
Brant Knudson d8589fa01a Fix uwsgi keystone
The uwsgi keystone jobs are failing with an error like

 + devstack/functions-common:_run_process:L1391:   setsid uwsgi /etc/keystone/keystone-uwsgi-admin.ini
 + devstack/functions-common:_run_process:L1395:   exit 0
 execvp: No such file or directory

I think this is because uwsgi isn't installed on the images. The fix
is to pip install it.

Also, use the full path to the uwsgi executable (even though execvp
is used) because eventlet (calling keystone-all) does.

Also, the uwsgi process wasn't shutting down on ./unstack.sh. This
is worked around by not running master process.

Change-Id: Id02e16c5149ba3dfa13051e87cfccd8e505b7362
2016-02-22 13:59:34 -06:00
Sean Dague 0f7653587e localize user/project variables in tempest
lib/tempest is using / setting a ton of globals, a lot which don't
look used. As a first step to converting over to s/tenant/project/
make all of these local which means they can not be impacting anything
outside of this function. That will make them safe to change names
later.

Change-Id: I380dd20e5ed716a0bdf92aa02c3730359b8136e4
2016-02-22 11:55:19 +11:00
Sean Dague 7580a0c3e3 Replace TENANT => PROJECT phase 1
This replaces the use of TENANT variables with PROJECT ones during the
initial setup. The openrc will still export a OS_TENANT_NAME because
many tools (cinderclient, glanceclient amoung them) will not function
without it. We warn when we do that.

Change-Id: I824b1121842eb5821034071874bf1bb2d7c3631e
2016-02-22 11:55:17 +11:00
Akihiro Motoki 2688eedc51 Remove Neutron VMware NSX plugin files completely
override-defaults mechanism allows us to define
s_neutron_plugin_security_group before loading lib/neutron,
and we no longer need to have a plugin-specific file in
the master DevStack repository.

Change-Id: Ib0f6e3d9463357d2dd66a2d61b8c722fa1f0bfba
Depends-On: I8b19b8f1b0694a96132f158146848aee7d14e8ff
2016-02-21 11:30:22 +00:00
Armando Migliaccio 7dbcfae703 Provision deployment requirements for get-me-a-network
Neutron implemented an extension to allow users to automatically
provision a basic network topology to connect their instances.

One of the requirements for this feature is to be able to mark
an external network to be the one to be used for external
connectivity. Another requirement is subnetpools, which are
used to determine the IP space to allocate for private tenant
networks.

This patch codifies these requirements. The provisioning
needs to be  made conditional  based on the extensions
needed for this to work correctly.

Partially-implements: blueprint get-me-a-network

Change-Id: I43ce5d65e754f131f7ca1ce2088a397d266cf821
2016-02-19 16:36:06 -08:00
Jenkins 80ea24cbbb Merge "Always strip package comments" 2016-02-19 11:20:55 +00:00
Jenkins 134e1d36c6 Merge "Kill radvd when stopping neutron-l3 service" 2016-02-19 10:26:50 +00:00
Ian Wienand 1ff75ff87f Always strip package comments
In the "I can't believe I missed this" category -- the existing strip
method removes shortest match (%); which fails when you put another #
in the comment (like "refer to bug#1234").  Change to the longest
match which should strip everything from the first "#" to the end
(since that's going to be the longest).

Change-Id: I47f5e710ebd87b0f54549732e7d64cf42c7a6b65
2016-02-19 14:39:45 +11:00
Jenkins ef0129c7ce Merge "Neutron: Change auth_plugin to auth_type" 2016-02-19 01:20:27 +00:00
Jenkins adbb3b7e1f Merge "Update to bashate 0.4.0" 2016-02-19 01:20:19 +00:00
Jenkins cc03acca1f Merge "Revert "Fix stack failure when default subnetpool is set"" 2016-02-19 00:19:12 +00:00
Clint Adams e3e8051864 Generate plugins list through https requests
The devstack plugins list can be generated through web requests in
environments (such as the proposal slave) that lack copies of all
the relevant git repositories.

One downside to this is that there is no way of getting the last
modification time of the plugin.

Change-Id: I2c5c9282a8ad80014cad171a4dfbdc8f26044cd1
2016-02-18 17:48:33 -05:00
Jenkins ebe43d6a8a Merge "Tox: don't check stack-screenrc with bashate" 2016-02-18 21:05:50 +00:00
Jenkins 5c61de26ba Merge "Respect constraints in tempest tox venvs" 2016-02-18 21:03:12 +00:00
Jenkins 1066def32d Merge "Re-add "redhat-rpm-config" dependency" 2016-02-18 21:03:02 +00:00
Jenkins 2a80a88177 Merge "lib/tempest: Post juno-eol cleanup" 2016-02-18 21:02:54 +00:00
Jenkins d8a2496cc1 Merge "Check UNSTACK_ALL or -a flag set on unstack" 2016-02-18 21:00:18 +00:00
gordon chung b9201ccbbf fix postgres service name
in fedora postgresql is the service name and postgresql-server is
the package.[1]

os: Fedora release 23 (Twenty Three)
psql: psql (PostgreSQL) 9.4.5

i'm not entirely sure when this changed, but it's devstack is broken
in above environment.

[1]https://fedoraproject.org/wiki/PostgreSQL

Change-Id: Id940fed2a777ca469ce77402e1136251ba572359
2016-02-18 15:50:01 -05:00
Lucas Alvares Gomes 8a4dea24fa Ironic: Update is_ironic_hardware function
The DevStack module of Ironic added a new configuration variable called
IRONIC_IS_HARDWARE that can be set to True/False to indicate that we are
setting up devstack to deploy physical or virtual machines (see the
depends flag). Prior to that, the devstack code assumed that if the
driver name loaded is != *_ssh then it's a physical hardware but now we
need to kill this assumption because we have means (see the virtualbmc
utility) to test drivers such as pxe_ipmitool and agent_ipmitool using
virtual machines.

Depends-On: I5edc51c7fc8b6f0bb7fe4ca129596709a32eb93e
Related-Bug: #1544642
Change-Id: I8b6363bbe280ddd2720c570851bc40e2804a40e2
2016-02-18 15:58:32 +00:00
Jenkins 4bcf6529d5 Merge "Keystone support deploy in uwsgi" 2016-02-18 06:50:18 +00:00
Jenkins 772e914769 Merge "Enable heat caching" 2016-02-18 06:50:10 +00:00
Jenkins 6e8ed2ebbd Merge "Keystone deploy switch" 2016-02-18 06:49:07 +00:00
Jenkins c40f4ddc6e Merge "Set default properties for Power: virtual console and scsi driver" 2016-02-17 21:32:04 +00:00
Mike Chester 8040e69a04 Check UNSTACK_ALL or -a flag set on unstack
These flags were not functioning as described. Check if UNSTACK_ALL is
set in env or -a flag is set when calling script.

Change-Id: I128d32b1e74ee46e24a9eb2e81560e58137b1553
Closes-Bug: #1546687
2016-02-17 10:55:43 -08:00
Jenkins 886410eade Merge "Add guide on running devstack in lxc container" 2016-02-17 15:10:00 +00:00
Jenkins 0afc6db67a Merge "worlddump: collect networking stack info from namespaces" 2016-02-17 15:08:49 +00:00
Jordan Pittier 33df895ffb Tox: don't check stack-screenrc with bashate
Change-Id: I8f04de2cde8a123c3825e7ba22aef1f5b311f61c
Closes-Bug: #1531885
2016-02-17 15:26:33 +01:00
Armando Migliaccio 14a7148f41 Revert "Fix stack failure when default subnetpool is set"
This reverts commit 8a3b7d424d.

This change masked a non-backward compatible change made to the
Neutron core API. This is being cleaned up and thus this workaround
is no longer required.

Depends-on: Idf516ed9db24d779742cdff0584b48182a8502d6

Change-Id: I6695a6e17df1a395ada4ecf2b063b2c20870d99d
2016-02-16 21:19:19 -08:00
Jordan Pittier bae609ef6f lib/tempest: Post juno-eol cleanup
There's no need to change these Tempest's default anymore.
The feature flags are left in Tempest so that downstream distros can
continue to use Tempest to test Juno.

Change-Id: I99f286d0febb1675b8feb91b6801ad0b159da332
2016-02-16 15:00:12 +01:00
Li Ma a15d9de92f Kill radvd when stopping neutron-l3 service
When stopping neutron-l3 service, radvd should be
stopped.

Change-Id: I46416c1df3a4da66e863a16baeb73886e110d447
Closes-Bug: #1535661
2016-02-16 17:00:44 +08:00
Ian Wienand 7ae97298c5 Minor fixes for bashate trunk
We don't have a new bashate release yet, but this fixes some minor
issues when used with bashate trunk.

The only two things triggered are stricter checking of assignment in
local declartions (catches quotes) and one instance of evaluating
arithmetic result in tools/xen/functions.

Therefore, hopefully, this change has no effect!

Change-Id: I3fd5d55236e90c2f2c25243af87adaf0c1b763e2
2016-02-16 14:50:53 +11:00
Ian Wienand 76d05400ec Update to bashate 0.4.0
Update to bashate 0.4.0.  The biggest change in this is that bashate
does a syntax check with "bash -n" which can be useful

Change-Id: Iff625ef2181dfaba28349dc17de0749faddec539
2016-02-16 14:35:51 +11:00
ptoohill1 96006658be Add LinuxMint to distro check
Adds LinuxMint to the distro checking. This allows linux mint with
the FORCE option to run. This will not fix for other distros that
do not pass the checks.

Change-Id: I42599c1bd851d2b61a56a3960f42ad051aab1727
Closes-Bug: #1545864
2016-02-15 18:41:14 -06:00
Ian Wienand ed92e43178 Add some notes on DISTRO setting
It was pointed out in I42599c1bd851d2b61a56a3960f42ad051aab1727 that
after I46a2c36d95327087085df07cb797eb91249a893c we now die if we can't
determine DISTRO, rather than take a guess.

After some consideration, I don't consider this a regression.  This
default matching was basically only working for LinuxMint, because we
already have some matching there for setting os_PACKAGE that makes us
know the platform is Ubuntu-ish.

However, I would certainly agree it is not particularly clear as to
why.  This just adds some comments explaining why we can not just add
a default DISTRO fall-through and directs implementors on how to add
support for their platform.

Change-Id: I4b07259be1427d86a7154906646073d08dd07294
2016-02-16 10:56:56 +11:00
Brant Knudson edc11c2f83 Keystone support deploy in uwsgi
Keystone is going to remove support for eventlet. Rather than only
have one way to run keystone (in Apache Httpd with mod_wsgi), we
should continue to gate on multiple wsgi containers to ensure that
keystone remains container-agnostic. The suggested alternative
container is uwsgi.

To run keystone in uwsgi rather than httpd or eventlet, set the
following env var in local.conf:

 KEYSTONE_DEPLOY=uwsgi

There's a lot of options to uwsgi. Here's some protips:
http://uwsgi-docs.readthedocs.org/en/latest/ThingsToKnow.html

Change-Id: If3b49879ce5181c16f0f0ab0db12fa55fe810a41
2016-02-15 08:45:22 -06:00
Brant Knudson a03053660a Keystone deploy switch
Currently there's a boolean KEYSTONE_USE_MOD_WSGI to switch between
running keystone in mod_wsgi and eventlet. We've got a need to
support more/different deployment options (e.g., uwsgi), so a
boolean is inadequate.

A new input variable KEYSTONE_DEPLOY is introduced that can be
set to mod_wsgi or eventlet (and other values in future) to
control how keystone is deployed. KEYSTONE_USE_MOD_WSGI is
deprecated.

Change-Id: I9b2815e6f007309f088346df9ac48e6a24ae3656
2016-02-15 08:45:22 -06: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
Jenkins f130b283d9 Merge "Documentation: nova-volume (n-vol) is long gone." 2016-02-14 23:57:27 +00:00
Jenkins 3cf9244f95 Merge "Revert "reduce default lease time to 5 minutes"" 2016-02-14 14:45:40 +00:00
Jenkins 2da17a0b65 Merge "worlddump: add empty newline after every command output" 2016-02-14 14:42:51 +00:00
Jenkins 5073896cc9 Merge "Only use lsb_release for distro tags" 2016-02-14 14:42:43 +00:00
Jenkins cd23ab9644 Merge "Remove Neutron Midonet plugin file completely" 2016-02-14 14:42:28 +00:00
Jenkins 1485f70f3a Merge "Enable neutron-lib for LIBS_FROM_GIT for backwards compat jobs" 2016-02-14 14:42:21 +00:00
Jenkins 2b37e97a57 Merge "Install libosinfo on n-cpu nodes" 2016-02-13 03:52:20 +00:00
Jordan Pittier 326e480d29 Documentation: nova-volume (n-vol) is long gone.
Long live cinder-volume (c-vol) !

Change-Id: I78257c0ef314e97e4abddf82b709fc496401cf14
2016-02-12 15:23:43 +01:00
Thomas Herve 728730aee3 Enable heat caching
Enable use of memory cache by default for Heat. It will provide a boost
for various test builds and will help test this configuration.

Change-Id: I06183138d54c1cb971a58a158a15f3f5b25cba4d
2016-02-12 08:32:36 +01:00
Jenkins fe0c2ba7ad Merge "worlddump: include Open vSwitch info" 2016-02-12 00:37:48 +00:00
Jenkins dbf10cd022 Merge "remove keystone templated catalog" 2016-02-11 20:01:37 +00:00
Doug Wiegley 86561c347d Enable neutron-lib for LIBS_FROM_GIT for backwards compat jobs
Change-Id: I8dd84c59d2ec3a7c01ff4f1aaf7fa61d7466cfd5
2016-02-11 11:01:01 -07:00
Ihar Hrachyshka c1b7cb1117 worlddump: include Open vSwitch info
This may be useful when debugging neutron gate failures.

Change-Id: Iea3589456d2b05d233ba88523a5bd4ac114a0c86
2016-02-11 16:12:20 +01:00
Ihar Hrachyshka 190b29d45e worlddump: add empty newline after every command output
It makes it a bit easier to read the output since each new command is
now visually separated from the output of the previous one.

Change-Id: If441c61bb6f13f85f771dd31609b10d3dd1ee93c
2016-02-11 16:09:28 +01:00
Ihar Hrachyshka 72c34ee1aa worlddump: collect networking stack info from namespaces
Neutron hugely relies on namespaces, so we should try to dump
internal IP stack state for non-root network namespaces.

Change-Id: Ib980d22fbf3c6b680473754fa2b1684c2ef91b72
2016-02-11 16:08:16 +01:00
Rafael Folco 72f530fd7a Set default properties for Power: virtual console and scsi driver
This patch enables the virtual console for Power systems /dev/hvc0
and sets scsi bus and virtio-scsi model as default.
The virtual console hvc0 enables full console including dmesg.
High performance virtio-scsi driver keeps the efficient design of
virtio-blk with effective SCSI passthrough.

Change-Id: I0b5cd4a15d30f06fc7993555d91d6907bd1acbd7
2016-02-11 05:47:41 -06:00
Sean Dague 629e56540f Revert "reduce default lease time to 5 minutes"
We have a fix in Nova which should make this unessessary,
revert to see if that's true.

This reverts commit 61aa0e9f19.

Change-Id: If109af452ad583417e3a3a3ef1c9b545f1ec9b89
2016-02-11 11:31:56 +00:00
Jenkins d3be158181 Merge "Remove CUSTOM_THEME_PATH setting" 2016-02-11 07:29:58 +00:00
Cody A.W. Somerville baa35d06e1 Add guide on running devstack in lxc container
Running OpenStack in a container can be a useful workflow for developers.
The primary benefits are faster performance and lower memory overhead
while still providing a suitable level of isolation.

The guide walks the user through procedure for configuring an LXC container
and deploying OpenStack in it using devstack. It also discusses the limitations
of this setup - particularly related to cinder.

Change-Id: I2e0921fd118cfe98cef86ba110a94b3edccf9a29
2016-02-11 01:37:21 -05:00
Jenkins 29f1ebb688 Merge "Change scheduler configurations to use entrypoints" 2016-02-11 03:39:02 +00:00
David Lyle 076ef7f0fb Remove CUSTOM_THEME_PATH setting
Horizon now uses the WEBROOT to populate the value of $webroot in
the CSS code. The CUSTOM_THEME_PATH pointing to the webroot theme
to explicitly set the same value is no longer necessary.

Closes-Bug: 1540801
Change-Id: Ic212796ee0905751ac3fd619bbbc902d25ea10d5
2016-02-11 03:35:18 +00:00
John Eckersberg a6f3229eb0 Re-add "redhat-rpm-config" dependency
This was removed in commit 19363fc1e7 as
an unneeded F21 dependency, but due to missing dependencies as
described in the bug, /usr/lib/rpm/redhat/redhat-hardened-cc1 is
required and is provided by this package.

Change-Id: I2c0c3b0198d795d947fd77005fd7528de561dfcb
2016-02-11 14:30:56 +11:00
Jenkins dab2f8b5ab Merge "Add diskimage-builder to the list of libraries" 2016-02-11 02:33:14 +00:00
Jenkins 985761d5bd Merge "Handle case where FUNCNAME[0] is undefined" 2016-02-11 02:14:47 +00:00
Jenkins b7f7f33c22 Merge "Automate OVS bridge creation for multiple mappings" 2016-02-11 00:55:16 +00:00
Jenkins 9944e4fc36 Merge "make fwaas plugin and driver configurable" 2016-02-11 00:54:15 +00:00
Sean Dague 985e958dda remove keystone templated catalog
This is just another code path for little benefit in devstack which is
going to rot out. We should be opinionated here and only support the
dynamic catalog.

Change-Id: I4e5c7e86aefe72fc21c77d423033e9b169318fec
2016-02-10 15:39:31 -05:00
Matthew Kassawara 28af7962e9 Neutron: Change auth_plugin to auth_type
The keystoneauth1 library replaces the auth_plugin option
with auth_type. In neutron.conf, change [nova] auth_plugin
to auth_type. In nova.conf, change [neutron] auth_plugin to
auth_type.

Change-Id: Ifbd26b8999e453f4cd875e1be3ae1211bdd8fb2a
2016-02-10 19:07:43 +00:00
Matt Riedemann 8d6d116530 Install libosinfo on n-cpu nodes
As of 9de8f7230d069e4da9736f09ad5d17773315b476 nova is now attempting
to import libosinfo packages, so install them for goodness sake.

Change-Id: Ib481dda475dd2975a513052478be0007aa1cf4a8
Related-Bug: #1543288
2016-02-10 06:38:43 -08:00
Matthew Treinish 1e31e68557 Respect constraints in tempest tox venvs
This commit is a workaround for respecting upper-constraints. Since
we're using tox to handle setting up a venv and running tempest
commands we need to manually install the constrained packages inside
the tox venvs. This patch does that for all the venvs being created by
devstack via tox. However, since tempest has additional tox jobs
defined if those are run via devstack those will default to the
default pip install -U -r requirements.txt defined in tempest's
tox.ini.

Change-Id: I7f84dfb67a3c97003947aefd8a7e3c6454106db4
Closes-Bug: #1543841
2016-02-09 23:50:54 -05:00
Matthew Treinish 1a9e294ff3 Switch tempest verify-config usage to avoid bug
This commit will unblock the world breakage caused by the recent
cliff release. This exposes a hole in our constraints usage in
devstack. We need to fix this bug for real in devstack and cliff,
but that will take a few minutes to an hour or so. So let's just
change the usage in the meantime, we can revert this when things
are fixed for real.

Related-Bug: #1543841

Depends-On: Ic63612dc50e064a3a69b88618e394ba17e083c22
Change-Id: I19e477fa5068474bc3471307732f89adaafb2952
2016-02-10 00:22:02 +00:00
John L. Villalovos 6f013631a2 Handle case where FUNCNAME[0] is undefined
If FUNCNAME[0] is undefined and 'set -u' has been used it will cause the
devstack run to fail.

Handle undefined values in PS4.

Closes-Bug: #1543749
Change-Id: I06a013a5e7683e3a3461ff06361d867f61d48e6a
2016-02-09 13:32:24 -08:00
Jenkins f1cecf52c0 Merge "push out some deprecations to figure out what's using these bits" 2016-02-09 19:35:30 +00:00
Jenkins 905a37aaae Merge "Remove g-search from devstack" 2016-02-09 12:45:09 +00:00
Sean Dague d6f922364e push out some deprecations to figure out what's using these bits
There are some parts of devstack we should really delete, but we have
no idea who is using them. Push out some deprecations so we can look
at this through logstash.

Change-Id: Id5c8748606cce16f64e978ad7ac9309bebac0eb7
2016-02-09 06:34:36 -05:00
Jenkins 11dd05e7fa Merge "Remove microseconds from apache log(s)" 2016-02-09 08:03:21 +00:00
Jenkins 4723e618cc Merge "Don't die when yum fails." 2016-02-08 23:07:29 +00:00
Morgan Fainberg da1cc5780d Remove microseconds from apache log(s)
Remove the microseconds from the apache logs and move back to using
milliseconds. There is no longer any 2.2 workarounds in the keystone
setup process.

Change-Id: I8787eee41fbde1f9794aeffe1e862af0d5117bc3
2016-02-08 11:36:37 -08:00
Clark Boylan e20cb43fd6 Set different cloud name for alt_demu user
Having multiple clouds with the same name in clouds.yaml confuses
openstack client config and it may not choose the intended cloud.
Unfortunately the new alt_demo user's clouds.yaml config used a
duplicate name creating confusion for clouds.yaml consumers.

Correct this by using a unique cloud name, devstack-alt, for use by the
alt_demo user.

Change-Id: I2cb8f10ab5abfedf76ead309f237730ce8ce2ad4
2016-02-05 12:00:18 -08:00
Jenkins 25fe1be8b1 Merge "tweak ps4 for readability" 2016-02-05 02:22:45 +00:00
Sean Dague e73f88e70b tweak ps4 for readability
After staring at a bunch of logs, try to crisp up the ps4 output for
maximum readability.

This also adds PS4 to all calling scripts by having a common PS4 in
stackrc. It should make understanding when clean fails a bit more
straight forward.

Change-Id: Ia1f8dff5c1102c32c146a020a9f033c65d2c50de
2016-02-04 07:47:45 -05:00
Jenkins 1ab61aa808 Merge "docs: Neutron - add required newline for code formatting" 2016-02-04 12:10:29 +00:00
Jenkins 574a2cf9f1 Merge "make the alt_demo user during normal install" 2016-02-04 12:09:25 +00:00
Dean Troyer 50f75a9f64 Followup comment fix from alt_demo user creation
Tweak a code comment based on a review comment from Steve Martinelli in
https://review.openstack.org/#/c/275121/ where the alt_demo user is now
always created.

Change-Id: I9e9a769f601e52c030e9f6953f1746788c24a185
2016-02-04 03:25:46 +00:00
Jenkins d718971299 Merge "Fix xvpvncproxy_host config path" 2016-02-03 16:29:37 +00:00
Jenkins 5601dff54d Merge "Set PS4 in stack.sh to provide additional debug info" 2016-02-03 00:26:04 +00:00
Jenkins 42164c8214 Merge "remove "redhat-rpm-config" (F21 dependency)" 2016-02-02 23:21:30 +00:00
Igor Duarte Cardoso 3095ff5132 Automate OVS bridge creation for multiple mappings
Allows the definition of the global variable OVS_BRIDGE_MAPPINGS (e.g.
in local.conf) to automatically trigger the creation of multiple OVS
bridges. For example:

OVS_BRIDGE_MAPPINGS=physnet1:br-br-enp0s20f1,physnet2:br-enp0s20f2

should automatically yield the creation of two bridges, respectively
associated to the two physical networks declared,
by simply running DevStack with the OVS agent enabled.

Documentation has also been added to doc/source/guides/neutron.rst.

Change-Id: I79dc0213c9d70ba628621c4c0f65481783590085
Closes-Bug: #1535835
2016-02-02 18:54:08 +00:00
Flavio Percoco 020586fab4 Remove g-search from devstack
The g-search service was promoted to its own project and it's now called
Searchlight. This patch removes that code from devstack.

Change-Id: I9dd7ce62f0339911e025329b8a841792219ea02b
2016-02-02 11:50:06 -04:30
Sean Dague c67d22e2ed make the alt_demo user during normal install
For testing reasons it's typically very useful to have a second non
admin user to cross check that it can't do a thing to the first
user. It was useful enough we always created it with tempest (though
we didn't always use it).

This makes devstack always create an alt_demo user, which is available
in occ as devstack-alt. This will help us unwind some of the keystone
v3 breaks with functional tests using keystone cli to build this
second user.

Change-Id: Iaaf02469180563e2d8c413fee0ee66ada2296cfa
2016-02-02 05:51:14 -05:00
Jerry Zhao 8eab6ad31b make fwaas plugin and driver configurable
user can pass fwaas plugin and driver from localrc

Change-Id: Id956d4d7e62ba81f77319c199c9cb9f354b13d12
2016-02-01 18:22:21 -08:00
Shih-Hao Li 557cc8159e Fix xvpvncproxy_host config path
Fix xvpvncproxy_host config path due to Change
I1e34a0f98de125c8b8b145377835d95035e2b472.

Change-Id: I835950e75509ad54e5dc1c4a740d2e5cfed9f5a9
2016-02-01 13:19:12 -08:00
Jenkins 6dcee02bcc Merge "Add script to autogenerate doc/source/plugin-registry.rst" 2016-02-01 20:39:30 +00:00
Jenkins 7de80c56e5 Merge "Revert "Move default Keystone API version to v3"" 2016-02-01 20:38:02 +00:00
Sean M. Collins f81ae88c55 docs: Neutron - add required newline for code formatting
Otherwise it doesn't render it as the correct HTML tag.

Change-Id: Ibc5c846824c7248c64473512e9dcfe5dd4205924
2016-02-01 14:00:20 -05:00
Sean Dague 74b91c3eaf Revert "Move default Keystone API version to v3"
It seems like the fallout from this was not well sorted.
A lot of things aren't working, and there is still vestigial
v2 bits left behind.

This should have come with a much greater warning and some
spot checking of additional services working with this.

This reverts commit b162a1d58c.

Change-Id: Ia792b23119c00089542ba08879dca1c29dc80945
2016-02-01 14:58:20 +00:00
Clint Adams 4fd874b4f1 Add script to autogenerate doc/source/plugin-registry.rst
This generates the plugin-registry document from a static header,
a scan of openstack/ git repositories, and a static footer.  It
is intended to be run by a periodic job proposal bot to keep the
list of plugins current.

Change-Id: Ia04ab72900c8efd5d5289fbd7632201dcaa3e5d9
2016-02-01 09:50:55 -05:00
Jenkins 428c35bade Merge "Remove the pip version pinning to < 8" 2016-01-29 19:06:50 +00:00
Jenkins f4ce44bf3f Merge "Move default Keystone API version to v3" 2016-01-29 11:04:16 +00:00
Jenkins 05238e32e3 Merge "Fix OSprofiler installation from Git" 2016-01-29 10:53:53 +00:00
Jenkins 2d02d29e27 Merge "Add vercmp function" 2016-01-29 05:21:09 +00:00
Jenkins 8c71ffa997 Merge "Never uninstall python-pip on fedora" 2016-01-29 05:19:10 +00:00
Yingxin b298e57c9f Change scheduler configurations to use entrypoints
Full class path style configuration of options scheduler_host_manager
and scheduler_driver are deprecated because of dependent changes. This
commit changes the related configurations to use entrypoints in setting
up nova scheduler in devstack.

Related to blueprint scheduler-driver-use-stevedore
Depends-On: I8c169e12d9bfacdbdb1dadf68b8a1fa98c5ea5bc
Depends-On: I3fd42ead44487a21eb5cfaf5a91209277ce30ad0

Change-Id: Iad96c270073b63719237cf9a9aa1c2dc4daa213a
2016-01-29 05:11:27 +00:00
Jenkins 80eb79c1a9 Merge "Adding ENABLE_IDENTITY_V2 on docs" 2016-01-29 05:10:21 +00:00
John L. Villalovos 09883c0a18 Set PS4 in stack.sh to provide additional debug info
Add:
export PS4='+(${BASH_SOURCE}:${LINENO}): ${FUNCNAME[0]:+${FUNCNAME[0]}(): }'

To stack.sh to provide additional debug info. This will show the
filename, line number, function name, and the content of the line.

An example output line:
+++(/opt/stack/old/devstack/functions-common:675): get_field(): local data field

Info on this PS4 variable found at:
http://wiki.bash-hackers.org/scripting/debuggingtips

Change-Id: I272df6c79f6ff7afa8f102da24706558d9169eda
2016-01-28 18:06:49 -08:00
Jenkins 3c92590101 Merge "Add notes on live migration configuration" 2016-01-28 00:22:19 +00:00
Jenkins 06cf524655 Merge "docs: Linux Bridge configuration for Neutron" 2016-01-28 00:22:10 +00:00
Jenkins 1cc2782d53 Merge "Simplify oslo.log configuration options" 2016-01-28 00:22:01 +00:00
Jenkins b86f665d95 Merge "Rdo-release install failure under proxy" 2016-01-28 00:21:56 +00:00
Jenkins cf5673b842 Merge "Enable keystone caching" 2016-01-28 00:21:21 +00:00
Jenkins fff59d4fbb Merge "Remove option 'DEFAULT/verbose'" 2016-01-27 22:50:56 +00:00
Sean M. Collins 2977b30013 docs: Linux Bridge configuration for Neutron
Add a section for single interface networking with Linux Bridge.
Change-Id: I595bc539297bf02182db5a33eeb44360e9eef9a3
2016-01-27 21:43:33 +00:00
John Griffith 2d57f2f88d Remove lib/cinder_backends/solidfire
This was something we used a while back, but 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.

Here's an example of how to achieve the same thing via
local.conf sections:

CINDER_ENABLED_BACKENDS=solidfire
TEMPEST_VOLUME_DRIVER=SolidFireDriver
TEMPEST_VOLUME_VENDOR="SolidFire Inc"
TEMPEST_STORAGE_PROTOCOL=iSCSI

[[post-config|$CINDER_CONF]]
[DEFAULT]
CINDER_ENABLED_BACKENDS=solidfire
[solidfire]
volume_driver=cinder.volume.drivers.solidfire.SolidFireDriver
san_ip=192.168.160.3
san_login=admin
san_password=admin
volume_backend_name=solidfire

Change-Id: I8068fd4fb14510b15c31edf490283454f167f6c6
2016-01-27 14:29:31 -05:00
Morgan Fainberg a8ffe8a473 Enable keystone caching
Enable keystone caching since there is now a memcache server available
for the middlewares to cache validation. Offload queries to the
keystone backend to memcache as well.

Change-Id: I6d1d28f5b974e79d44d1e86ea53c666e3f5771df
2016-01-27 13:21:00 -06:00
Jenkins 13d255d90d Merge "Remove call to deprecated method in tempest" 2016-01-27 18:51:59 +00:00
Zhenzan Zhou e1f87963b1 Add notes on live migration configuration
Live migration will not currently work with a multi-node DevStack
environment due to the libvirtd process running as root and the compute
process trying to use the stack user's SSH keys with the default live
migration URI.

The multi-node documentation is updated to outline how to configure the
SSH keys between the source and destination stack and root users so that
live migration will work as expected.

Co-Authored-By: Taylor Peoples <tpeoples@us.ibm.com>
Change-Id: Ifed7e95cd5ba43a05a4099a3664cbefde3e0a749
Closes-Bug: #1487262
2016-01-27 15:25:19 +01:00
Mike Spreitzer 4baa4ce2b3 Document using Q_ML2_PLUGIN_PATH_MTU
I tested it, and it works!

Change-Id: Ic345ededc37b2e0b7b5dbeb397aa55540d5c3bd8
Related-Bug: #1527675
2016-01-26 21:11:47 -05:00
Paulo Ewerton b162a1d58c 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: I24546f02067ea23d088d383b85e3a78d7b43f165
Partially-Implements: bp keystonev3
2016-01-26 14:27:02 +00:00
Ronald Bradford e826490a43 Simplify oslo.log configuration options
Use the preferred logging_user_identity_format option to specify an alternative context format
in log files.  The removal of defining logging_context_format_string brings this more inline
with optimal production configuration of using the defined default.  logging_user_identity_format
is set in devstack to maintain current compatibility of names instead of ids.

Change-Id: I3807d76b91b6cc1614b4a9a203509f8e1ad7146d
2016-01-25 20:39:45 +00:00
Boris Pavlovic fadebe1be3 Fix OSprofiler installation from Git
Without this line DevStack fails to install OSprofiler from git

Change-Id: I0fe0e10bcece51759fbf4fd4a533b01501414d6d
2016-01-25 12:32:32 -08:00
Jenkins ffb96b85d3 Merge "always default to floating ips for validation" 2016-01-25 16:42:25 +00:00
Jenkins a7b21cd858 Merge "Create LOGDIR earlier in the process" 2016-01-25 15:41:25 +00:00
Jenkins c8f3ac23c3 Merge "worlddump: Use SIGUSR2 instead of SIGUSR1" 2016-01-25 15:33:03 +00:00
Jenkins 685bf05847 Merge "Remove leftover homedir clouds.yaml files" 2016-01-25 15:23:22 +00:00
Allen Gao 75446deea0 Remove the pip version pinning to < 8
The pip issue pypa/pip#3384 has already been fixed after pip 8.0.1
released. But leave the facility to easy flip this on in the future.

TrivialFix

Change-Id: I49658ce4056c773943321270defd461bbf3e9fb9
2016-01-25 22:41:57 +08:00
Sean Dague 5544c4a74f always default to floating ips for validation
fixed ips are not cross host accessible in our current config. So
always configure tempest to use floating ips.

Change-Id: I1cf605229070024c9d5d29c7a08967aa505fda7b
2016-01-25 08:27:06 -05:00
Allen Gao 40e2f508e4 Remove option 'DEFAULT/verbose'
Option "verbose" from group "DEFAULT" is deprecated for removal.
Its value may be silently ignored in the future.

If this option is not set explicitly, there is no such warning.
Furthermore, the default value of verbose is true, so there is
no need to set this value in config files.

TrivialFix

Change-Id: I581238e661c2eb0c29dd915d1b1e4773dcdeb4c8
2016-01-25 02:30:30 +00:00
Gang Wei c2bd0d5b7d Remove call to deprecated method in tempest
Fix below warning:
"Use of: 'verify-tempest-config' is deprecated, please use: 'tempest verify-config'"

Change-Id: If66096cde31fedda407e1e6ac6899b196569a454
2016-01-25 00:47:21 +00:00
Jenkins 973fb21de6 Merge "Add subunit output for total elapsed time" 2016-01-23 08:20:37 +00:00
Jenkins b6a5a3e675 Merge "reduce default lease time to 5 minutes" 2016-01-23 05:42:38 +00:00
Jenkins 2f2ede5db0 Merge "neutron: enable ml2 mtu calculation mechanism" 2016-01-23 04:58:21 +00:00
Jenkins 57729d5265 Merge "Always cache tokens in a shared memcache" 2016-01-23 02:53:33 +00:00
Jenkins c52836bbf8 Merge "Remove vme and ssse3 from gate64 cpu mapping" 2016-01-23 01:06:42 +00:00
Jenkins b9a33191bb Merge "Add flag for test_volume_services" 2016-01-22 17:24:01 +00:00
Markus Zoeller 19363fc1e7 remove "redhat-rpm-config" (F21 dependency)
Commit d5004a3802 introduced the package
"redhat-rpm-config" to make the Fedora 21 gate job running again.

As we dropped the F21 support in December 2015 with
commit 90bc586772 we don't need
this package anymore.

Change-Id: I71b969b7fd6651082451f6c4fd1e01d205771a11
2016-01-22 16:35:28 +01:00
Sean Dague 61aa0e9f19 reduce default lease time to 5 minutes
Devstack used in development is about things coming and going
quickly. The long dhcp leases mean that we might miss a release, and
keep a stale lease around for way too long. See if this helps.

Change-Id: I9a58a4e64777f56ad7ec66242a319f985469469e
2016-01-22 07:48:49 -05:00
Jenkins be8ac25f84 Merge "use sudo to remove /etc/openstack directory" 2016-01-22 03:53:40 +00:00
Jenkins 2fec683890 Merge "Stop referencing no longer existing SERVICE_ENDPOINT variable" 2016-01-22 03:38:50 +00:00
Jenkins c09c079ef9 Merge "notification_driver is deprecated to driver" 2016-01-22 00:11:49 +00:00
Morgan Fainberg 5997ce3ab6 Always cache tokens in a shared memcache
Instead of using in-process caching for tokens per service per
worker (disabled by default now), use a shared memcache to cache
token validation(s). This should both offload/speedup validations
and avoid the issues surrounding inconsistent validation responses
when using in-process caching [since each worker caches separately].

Change-Id: Ifc17c27744dac5ad55e84752ca6f68169c2f5a86
2016-01-22 00:04:57 +00:00
Jenkins bbf293439b Merge "Update the vnc config options group 'DEFAULT' to 'vnc'" 2016-01-21 22:33:22 +00:00
Yusuke Hayashi 6e18721882 Rdo-release install failure under proxy
In RHEL under proxy, installation by stack.sh failed
because of rdo-release.rpm install failure.

This patch fixes install command for rdo-release.rpm
because it is caused by lack of http(s)_proxy.

Change-Id: I176d1e140f52e1bb0343170ba4d90c06b98d5a99
Closes-Bug: #1536478
2016-01-22 07:12:38 +09:00
Monty Taylor 74379df11f Remove leftover homedir clouds.yaml files
We don't write files here anymore, but it's higher in the precedence
order than the /etc/openstack/clouds.yaml file we do write. Some
developers who have long-lived devstacks who update infrequently have
been bitten by the leftover file.

Change-Id: I8af6bd465f74099c560dddba6b5221dd79cbc965
2016-01-21 10:20:08 -05:00
Ihar Hrachyshka 06cfce3756 neutron: enable ml2 mtu calculation mechanism
Setting path_mtu to reflect mtu for physical devices that handle traffic
issued from br-tun makes ml2 plugin to calculate mtu for tenant networks
properly, considering encapsulation headers. After that, calculated mtu
values can be propagated into instances (currently, only DHCP approach
is implemented; RA support for IPv6 subnets is under review).

This change allows to run tunnelled tenant networks in multinode when
underlying physical devices don't support jumbo frames.

Note: changing the default value in neutron would not be backwards
compatible, since it could slow down east-west tunnelled traffic in
clouds that run on jumbo-aware networks.

Change-Id: I8287677c7ad0f13fa9f5cb194f9372d04b78cb61
Related-Bug: #1527675
2016-01-21 15:15:15 +01:00
Jenkins dd60f2cd1c Merge "Make OSprofiler repo and branch configurable" 2016-01-21 04:13:19 +00:00
Federico Ressi 5dcbf7aeff Don't die when yum fails.
Not all yum failures has to be considered
catastrofic failures also because install_package
function should implement the same behavior in Fedora,
CentOS and Ubuntu. Let return the error to be solved at higher
level.

Change-Id: I93e9f312a94aeb086925e069a83ec1d3d3419423
Closes-Bug: #1522590
2016-01-20 09:06:55 +00:00
Matthew Treinish 1d27155f65 Cap installed pip to be < 8
Pip 8 just release which made uninstalling distutils installed packages
fatal. This was previously a deprecation warning and is now causing all
dsvm jobs to fail.

Depends-On: I511d216d9d8619c7cf919c482aaead4e833cdaac
Change-Id: I22f5c3af1adf96cfbd5747122f915a82e947843a
2016-01-19 21:27:02 -05:00
Jenkins 8ca268b7c3 Merge "libvirt: don't repeatedly configure libvirtd logging" 2016-01-20 01:06:16 +00:00
Matthew Treinish 4af2afcd52 Add subunit output for total elapsed time
This commit adds a success output for the entire devstack run to the
subunit output. Ideally we wouldn't need this, but because we don't
have timing data for every single operation performed by devstack we
need to do this to track the total duration of the devstack run.

To capture failures this commit adds saving a devstack event when we
trip the exit_trap. This will save a similar result to the stream in
the successful case, but instead mark it as a failure.

Depends-On: Icc7df33e4d73ba6322af38fbdf3aea230f2fcf4d
Change-Id: I07112dde996c3e2c73f5aafc9b73d33d26374633
2016-01-19 17:22:55 -05:00
Clark Boylan ba6fb27bc8 Remove vme and ssse3 from gate64 cpu mapping
It turns out that we need to be even more restrictive on the cpu flags
we expose as some clouds don't expose vme or ssse3.

Fixes-Bug: 1535799
Change-Id: I6c8c1101771d1c5496884be7a405285472ae803a
2016-01-19 08:25:12 -08:00
Wanlong Gao cf04a9acb3 notification_driver is deprecated to driver
TrivialFix
https://review.openstack.org/#/c/249508/

Change-Id: I18599c7221272279dfc2e9f5b297af09faff5c3b
2016-01-19 17:17:01 +08:00
Jenkins 2d9f777cc0 Merge "XenAPI: Fix disk_formats verified by tempest" 2016-01-19 07:04:48 +00:00
Jenkins 7cca91acf9 Merge "remove clouds.yaml files when running clean.sh" 2016-01-19 06:54:11 +00:00
Jenkins 7602c0507a Merge "Better location for the nova dhcp logs" 2016-01-19 04:02:02 +00:00
Steve Martinelli 8e3df96cec use sudo to remove /etc/openstack directory
the /etc/openstack directory needs to be removed with sudo privs,
the loop at the end will not suffice.

Change-Id: Icc0ac45f9216d538ca214176d90241f973a4687b
2016-01-18 14:00:41 -05:00
Dmitry Tantsur f90c0b7d29 Stop referencing no longer existing SERVICE_ENDPOINT variable
It was probably finally removed by one of recent refactoring changes.
Now ironic gate fails due to Swift trying to access it to override OS_AUTH_URL.
This change drops this override and just uses OS_AUTH_URL.

Closes-Bug: #1535245
Change-Id: I145bec110c4299e61f2bce49df41dcd82e5d462d
2016-01-18 10:53:01 +01:00
Steve Martinelli 16246acb4c remove clouds.yaml files when running clean.sh
There have been a few reported errors of folks running into
issues with old clouds.yaml files that linger around. Remove
these if the user runs clean.sh.

1. http://lists.openstack.org/pipermail/openstack-dev/2016-January/084283.html
2. https://ask.openstack.org/en/question/84825/glance-upload_image-fails-in-latest-devstack/
3. https://ask.openstack.org/en/question/86071/devstack-installation-failure/

Change-Id: I618ea8e27b49af360c905df85af06d9b1eef8407
2016-01-18 01:20:53 -05:00
Jenkins ddd37b97d4 Merge "Support for logging the nova-dhcpbridge command line" 2016-01-16 21:37:02 +00:00
Jenkins b695d361ff Merge "Revert "Replace deprecated baremetal timeouts with new deploy_timeout"" 2016-01-16 13:40:58 +00:00
Jenkins 3106c2d7d4 Merge "Add support for role and resource keystone backends" 2016-01-16 13:38:55 +00:00
Jenkins a34ebd103d Merge "remove SERVICE_TOKEN from the docs" 2016-01-16 12:29:45 +00:00
Jenkins 1ca4b0f177 Merge "bootstrap keystone using new bootstrap command" 2016-01-16 12:27:01 +00:00
Jenkins c461db4a2f Merge "Fix SIGITIN hang with apt-get" 2016-01-15 21:49:15 +00:00
Bob Ball 2dd761b169 XenAPI: Fix disk_formats verified by tempest
lib/glance restricts the disk_formats to those supported by XenAPI, so
tempest needs a similar restriction for the disk_formats tested.

Confirmed as passing internal Citrix CI (affected tempest jobs are
currently disabled in voting XenServer CI until this change lands)

Change-Id: Iefa5b16a3fa1789ed583426ea47ebb22e6cb571e
2016-01-15 17:48:21 +00:00
Davanum Srinivas bd7a51200f Better location for the nova dhcp logs
Use LOGDIR to compute the location of the dhcp logs
instead of hardcoding to /opt/stack/logs/

Change-Id: I97ca2d8c8b7901e0895fe89a57675caf8effea53
2016-01-15 11:46:10 +00:00
Boris Pavlovic ba0a659c76 Make OSprofiler repo and branch configurable
OSprofiler is now under Oslo:
https://review.openstack.org/#/c/103825/

And we really need this patch to make proper dsvm job for
OSprofiler

Change-Id: I20f59c52c147303de01544dc975a82b4a741a1b9
2016-01-14 18:38:30 -08:00
Jenkins ea7fd55153 Merge "Remove Neutron NEC plugin completely" 2016-01-14 19:09:53 +00:00
Davanum Srinivas ac8ff0f1e9 Support for logging the nova-dhcpbridge command line
We are seeing a lot of gate failures as vm(s) are unable to acquire
DHCP leases:
https://bugs.launchpad.net/nova/+bug/1532809

we need to set log_file for nova-dhcpbridge configuration, so clone
the nova.conf and set the log_file properly to a path where the
CI can pick up from for analysis.

Change-Id: Iec4fe3f2235da9d1f5bd399d4ffc45af516c58ce
2016-01-14 15:52:43 +00:00
Akihiro Motoki 7e843edca7 Remove Neutron Midonet plugin file completely
override-defaults mechanism allows us to define
s_neutron_plugin_security_group before loading lib/neutron,
and we no longer need to have a plugin-specific file in
the master DevStack repository.

Change-Id: I37d5012e89cb3650e4f325b6d77d70f28f87d3e7
Depends-On: I5e02acd288e53dd06a369d348ec77ead57d476fd
2016-01-13 23:11:09 +09:00
Jenkins 502773c27c Merge "Revert "Don't die when yum fails."" 2016-01-13 14:03:30 +00:00
Akihiro Motoki 5aa2014e67 Remove Neutron NEC plugin completely
override-defaults mechanism allows us to define
s_neutron_plugin_security_group before loading lib/neutron,
and we no longer need to have a plugin-specific file in
the master DevStack repository.

Change-Id: I78a4e05fa72b1dd545b8d9e97a8fd8fdbf23739c
Depends-On: Id6765245459c1aff3aab27dbc60d320ce2951b38
2016-01-13 22:54:37 +09:00
Ihar Hrachyshka 09a3e715ec Create LOGDIR earlier in the process
Specifically, before _install_epel_and_rdo is called, that may need to log an
error.

Change-Id: I4979eb9530e6ea366c99d168587b87ea358dc908
2016-01-13 11:35:35 +01:00
Davanum Srinivas (dims) ed9487a885 Revert "Don't die when yum fails."
This reverts commit 2babf3963f.

This breaks oslo.messaging jobs:
http://logs.openstack.org/32/265932/1/check/gate-oslo.messaging-dsvm-functional-amqp1-centos7/f5f3eb9/console.html#_2016-01-11_20_03_33_162

@kgiusti reports that PIPESTATUS[0] is always 1 on his centos7 box

Change-Id: I013c22a3545f22c79a0616b4a98622d41bb17d77
2016-01-12 18:57:37 +00:00
Davanum Srinivas 4a974e61c8 Remove Nova object store service
As of I8bf7cbaa7015bb61656ab90ccc8f944aaeebb095, Nova
removed the n-obj service, so we should cleanup

Change-Id: I7db3796a6448decb4ac5e66d980f487c7d1f394e
2016-01-12 08:20:57 -05:00
Ian Wienand 7710e7fc27 Only use lsb_release for distro tags
The existing GetOSVersion has a lot of unused code which is wrong in
several ways

 - the only path tested in upstream CI is with lsb_release, because
   it's pre-installed on all nodes

 - the /etc/redhat-release checking probably still works, but is
   unnecessary

 - If using lsb_release, os_UPDATE has never actually been set.

 - the /etc/SuSE-release branch checking is broken if the lsb package
   is actually installed.  lsb checking does not set os_UPDATE but yet
   the SuSE DISTRO setting relies on this to set a patch level (and so
   does some of the rpm tags).  SuSE 11 is up to update 3, but the rpm
   matching is stuck hard-coded to update 2.  I'm guessing
   installation is actually broken there.

 - the debian checking branch is broken.  The VERSION tags have been
   removed and were not supposed to be relied on anyway (see notes in
   [1])

This simplifies things:

 - remove OSX checking (moved here after discussions in
   I31d0fdd30928ecc8d959a95838b1d3affd28ac6f)

 - only use the output of lsb_release.

 - A small best-effort check to pre-install lsb packages if not
   detected (that avoids chicken-egg-problem of package-install
   wrappers relying on os_* flags).

 - The unset os_UPDATE is removed.  It's only previous use was for
   setting separate suse versions in the DISTRO element for matching
   during package installs (since removed)

 - DISTRO setting is modified to use the parts of os_RELEASE it wants.
   Per-above, this is the correct place to parse out specifics.

 - Call out the is_* functions, which are a better way to detect
   platforms

 - Export the variables as read-only, since they shouldn't be reset

[1] http://sources.debian.net/src/base-files/7.5/debian/changelog/

Change-Id: I46a2c36d95327087085df07cb797eb91249a893c
2016-01-12 09:23:35 +11:00
Lucas Alvares Gomes 3919d4c822 Add diskimage-builder to the list of libraries
Add diskimage-builder to the list of libraries so it can be installed
from source to be tested in gate.

Change-Id: I6cefac1eb4ebf0196a6b4d4bfc038c00921f0d70
2016-01-11 19:10:18 +00:00
Michael Turek d091a2dd54 Revert "Replace deprecated baremetal timeouts with new deploy_timeout"
This reverts commit 00b5f4af92.

This patch was merged before the timeout was merged to
tempest. This means that devstack is currently referencing
a non-existent config option. As such I think it needs to be reverted.

Change-Id: I947261dc330ef35efce1ecd805ba6e649e81a6aa
2016-01-11 18:17:50 +00:00
Jenkins 2cb3db338a Merge "Don't die when yum fails." 2016-01-11 17:01:33 +00:00
Jenkins 5453cdd392 Merge "rpc_backend: Conditionally enable rabbit on fedora" 2016-01-11 16:52:19 +00:00
Steve Martinelli 3567d6103a remove SERVICE_TOKEN from the docs
there are a few lingering instances of SERVICE_TOKEN in the docs
and some of the scripts in tools.

Change-Id: I9d2147eea6639db1f4ea15a259c147eecfc339ff
2016-01-10 01:29:39 +00:00
Steve Martinelli 923be5f791 bootstrap keystone using new bootstrap command
Be gone ADMIN_TOKEN, long live keystone-manage bootstrap.

This patch reworks the initial setup for keystone by using
the new bootstrap command. After a minimal service catalog
has been created, using this process, we simply authenticate
as usual.

implements bp: bootstrap
Depends-On: I113c6934b6b83ceff23a94101967a6df1126873f
Change-Id: Ia1475d461eab60b68c6a0356714b21c7f92e0194
2016-01-09 20:26:48 -05:00
Yuriy Nesenenko af8b6e10a3 Add flag for test_volume_services
test_volume_services works incorrect with host info if it includes
backend name (host@backend). The test is skipped by default for
Liberty and Kilo gates. Need to add flag to unskip this test in new release.
This fix related with bug #1530144 in service-list filter.

Change-Id: Ifdc0bab819c05a00cd0c20316bd81961cf6aeb88
2016-01-09 13:52:06 +02:00
Jenkins 8df31a107d Merge "Assign admin role for admin user on default domain" 2016-01-09 07:49:35 +00:00
Jenkins a3ab6865ff Merge "Don't reinstall package just after installing." 2016-01-09 06:51:04 +00:00
John L. Villalovos f568c3a141 Fix SIGITIN hang with apt-get
Fix an issue where apt-get consistently hangs due to a SIGTTIN being
received. This occurs on a 'vanilla' devstack-gate VM, when running an
ironic-grenade job.

Upstream has a bug related to this:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=555632

http://www.gnu.org/software/libc/manual/html_node/Job-Control-Signals.html
Macro: int SIGTTIN

    A process cannot read from the user's terminal while it is running
    as a background job. When any process in a background job tries to
    read from the terminal, all of the processes in the job are sent a
    SIGTTIN signal. The default action for this signal is to stop the
    process. For more information about how this interacts with the
    terminal driver, see Access to the Terminal.

Change-Id: I8b1f3dccf329bb88e017eff7492da5e701b4892c
Closes-Bug: #1532080
2016-01-08 15:01:05 -08:00
Jenkins 698c62c430 Merge "lib/cinder:configure tgt even if the package was purged" 2016-01-08 18:07:12 +00:00
Jenkins 6f002b169c Merge "Move horizon config and start to appropriate phase in stack.sh" 2016-01-08 15:56:05 +00:00
Federico Ressi 2babf3963f Don't die when yum fails.
Not all yum failures has to be considered
catastrofic failures also because install_package
function should implement the same behavior in Fedora,
CentOS and Ubuntu. Let return the error to be solved at higher
level.

Change-Id: Ia33bb98f47017f6ec00eb3b7261ed42d72efc573
Closes-Bug: #1522590
2016-01-08 15:30:02 +00:00
Federico Ressi ecc1f41d50 Don't reinstall package just after installing.
Boolean logic used in install_package was wrong:
on nominal flow packages were actually installed twice.
This should fix it.

Change-Id: Ia465414936b272d04523a11f83d6ded378fe1daf
Closes-Bug: #1518544
2016-01-08 15:29:16 +00:00
Jenkins 828936c6ac Merge "Use keystone[ldap] for ldap packages" 2016-01-08 10:11:53 +00:00
Jenkins 7792bd2025 Merge "Remove uses of --os-url and --os-token" 2016-01-08 07:23:41 +00:00
Kyle Mestery 75633266c8 rpc_backend: Conditionally enable rabbit on fedora
Change 4d8c03a3 added logic to enable rabbit on Fedora/CentOS systems
whether or not rabbit is enabled. This corrects that to only enable
rabbit when it is configured as such.

Change-Id: I270e79ff989176770d65df1ac0ac4e2c4382bb9a
Signed-off-by: Kyle Mestery <mestery@mestery.com>
2016-01-07 16:48:14 -06:00
Jordan Pittier a263e7dd52 lib/cinder:configure tgt even if the package was purged
On Ubuntu, after a successful ./stack.sh and ./unstack.sh, if one
"apt-get purge tgt", then the directory /etc/tgt/stack.d/ still
exist (i.e it is not purged) but /etc/tgt/targets.conf is removed.
Thus any subsequent ./stack.sh would fail to configure
/etc/tgt/targets.conf properly.

Change-Id: I252789f3f39bd64b5a1e7d9abb923386d2a158dd
2016-01-07 19:40:44 +01:00
Alexander Schmidt a5ea08b752 Add distro support for KVM for IBM z Systems
Add "KVM for IBM z Systems" to the list of Fedora-like distros.

As the distribution does not have a dedicated kvm package,
prevent the installation of the kvm package during the libvirt
setup.

Change-Id: Ibb5c60797d6867264f9dea7fea85cdf1d7c72ded
2016-01-07 10:14:39 +01:00
Jenkins b615691576 Merge "XenAPI: add support to use local.conf" 2016-01-07 04:51:19 +00:00
Jenkins ddeaaf2044 Merge "Enable some serivce when on boot" 2016-01-07 01:38:08 +00:00
Jenkins c615993fe1 Merge "Support extra dependencies when setup_develop" 2016-01-06 20:17:12 +00:00
Jenkins 535fcd008e Merge "Fix elastic search support for Fedora." 2016-01-06 20:04:34 +00:00
Jenkins 21c8738187 Merge "Replace deprecated baremetal timeouts with new deploy_timeout" 2016-01-06 19:23:07 +00:00
Jenkins 413d732b79 Merge "Don't configure neutron metadata agent for neutron API access" 2016-01-06 19:22:58 +00:00
Jenkins 6136c4e0bd Merge "remove configuration for boto section" 2016-01-06 19:18:34 +00:00
Jenkins 4847ee69ee Merge "[ceph] Deploy ceph failed at controller node for multiple node" 2016-01-06 18:35:59 +00:00
Jenkins f3c722fb0a Merge "Make image_list.sh independent of host IP address" 2016-01-06 18:35:50 +00:00
Jenkins feb2babd07 Merge "Make logfile symlinks with relative names." 2016-01-06 18:28:26 +00:00
Jenkins 9f8cf83e69 Merge "Option "auth_plugin" is deprecated." 2016-01-06 18:23:21 +00:00
Jenkins 88509e796c Merge "Fix restoring a backup volume to a larger volume" 2016-01-06 18:23:12 +00:00
Zhang Jinnan 4d8c03a377 Enable some serivce when on boot
Solve the devstack ./rejoin-stack.sh when is reboot-safe in RHEL 7.
Enable mysql, postgresql, rabbitmq-server, openvswitch service when on boot.

Change-Id: I3ce9fc58ccc76092ad08314de1c3c9339ebfb3b5
Related-Bug: #1486833
2016-01-06 16:40:11 +00:00
Jenkins 20a1ce3f21 Merge "Delete OVS port on unstack to retain system connectivity" 2016-01-06 13:42:58 +00:00
Jenkins 6c35d367fc Merge "Enable SameHostFilter and DifferentHostFilter" 2016-01-06 13:37:38 +00:00
Federico Ressi 3809defb2e Fix elastic search support for Fedora.
Change Ifbcc3dd783ff2f362a464fbf4ca22f20cc2c658e broken it [1]

[1] https://review.openstack.org/#/c/251980/2/pkg/elasticsearch.sh

Change-Id: I330498cd490f3af2e9a569d86e8639a03b48dd17
Closes-Bug: #1531424
2016-01-06 08:22:39 +00:00
Steve Martinelli 3526276a08 Add support for role and resource keystone backends
Keystone further broken apart the assignment backend into: role,
resource, and assignment. We should define the backends in the
config file and allow users to override the default by passing in
their own value.

Change-Id: Ieb22c428609d3db852814c7eceb77efa6bbde633
2016-01-05 23:56:40 -05:00
Ken'ichi Ohmichi e0d61118f1 Enable SameHostFilter and DifferentHostFilter
The default filters of nova don't contain SameHostFilter and
DifferentHostFilter, so we cannot test them on the gate.
This patch makes these filters available for the development.

Change-Id: Ia6b4847e9bb21048d254d0a460ae4c5be896b17b
Closes-Bug: #1526620
2016-01-06 00:14:33 +00:00
Jenkins d56b3ff028 Merge "Remove support for Fedora 21 (EOL); add F22 where appropriate" 2016-01-05 21:32:13 +00:00
Jenkins c6dbfdeb6b Merge "Add 5 time measurement points" 2016-01-05 19:24:10 +00:00
Jenkins 8ba3cf0132 Merge "Preserve result returned by apt-get and pip" 2016-01-05 18:56:27 +00:00
Jenkins 119e36c921 Merge "Introduce iniget_sections function" 2016-01-05 18:38:46 +00:00
Jenkins 2bafc5fa89 Merge "Add existing devstack plugins to the devstack plugin list" 2016-01-05 17:32:08 +00:00
Brian Haley a0d1b0151a Delete OVS port on unstack to retain system connectivity
If you configure devstack with the following three values,
for example:

PHYSICAL_NETWORK=eth0
PUBLIC_INTERFACE=eth0
OVS_PHYSICAL_BRIDGE=br-eth0

This will cause devstack to create an OVS bridge, create a port for
eth0, and add it to the bridge (along with it's IP address).

The problem is that on unstack the port is never deleted from OVS,
so eth0 gets "trapped", not showing up in any of the OVS commands,
but not usable by the system.  The only workaround is to unload the
OVS kernel module.

There needs to be an 'ovs-vsctl del-port ...' call at the end of
_move_neutron_addresses_route() on unstack - the antidote to the
'ovs-vsctl add-port ...', that happened on stack.

Closes-Bug: #1516801

Change-Id: Id2ff60f1f8e8fffff1eaffd68d9de4f6aa772943
2016-01-05 12:12:16 -05:00
henriquetruta f212622cbd Adding ENABLE_IDENTITY_V2 on docs
Adds the documentation of ENABLE_IDENTITY_V2 property on keystone
section.

Change-Id: If72325751c3bfd7f11f46c518c9fbf59f10a894f
2016-01-05 13:45:34 -03:00
Brant Knudson 6a4d3eb55f Use keystone[ldap] for ldap packages
Keystone now provides an "ldap" in extras to install its ldap
dependencies so devstack doesn't have to track the python
dependencies itself.

Installation of the extras is done in an extra install line. This is
slightly redundant, however this pattern works much better from an
install stand point as it supports an arbitrarily large number of
extras.

Partial-Bug: 1479962
Change-Id: If0f0ff48f3d6b3c414f2d6fcd747ecf45a397658
2016-01-05 07:41:35 -05:00
Brant Knudson 0842b8147f Support extra dependencies when setup_develop
Recent pip supports using [extras] to install extra dependencies
from the project setup.cfg. Add support so that projects can take
advantage of it.

For example, if devstack is configured to use ldap, install the
extra ldap dependencies using:

 setup_develop $KEYSTONE_DIR ldap

Partial-Bug: 1479962
Change-Id: Ic13d95b99aaa4d3854b2723343e90f5de6b98aa2
2016-01-05 07:41:19 -05:00
Kashyap Chamarthy 90bc586772 Remove support for Fedora 21 (EOL); add F22 where appropriate
Fedora 21 reached its End Of Life (EOL) on 1-DEC-2015[1]; remove it as
supported distribution.

    - stack.sh: Remove Fedora 21 from list of supported distributions.
    - tools/fixup_stuff.sh: Make the minimum Fedora version to be F22 in
      from a conditional check in 'Python packages' section
    - files/rpms/general: Remove 'f21' from NOPRIME.
    - lib/ceph: Remove 'f21' from the check_os_support_ceph() function.
    - doc/source/index.rst: s/Fedora 21/Fedora 22/
    - pkg/elasticsearch.sh: Remove the 'if' conditional in the
      install_elasticsearch() function.

[1] https://fedoramagazine.org/fedora-21-end-life-december-1st/

Change-Id: Ifbcc3dd783ff2f362a464fbf4ca22f20cc2c658e
2016-01-05 13:07:43 +01:00
Jenkins e60d52c392 Merge "Fix heat config when using keystone v3" 2016-01-05 09:13:51 +00:00
Jenkins ff2318e834 Merge "Removed starting of nova-ec2-api service" 2016-01-05 09:13:41 +00:00
Jenkins 9ad98737c6 Merge "Adding cue to plugin registry" 2016-01-05 09:11:32 +00:00
Federico Ressi e208d060e1 Preserve result returned by apt-get and pip
Change I855ffe9c7a75e9943106af0f70cf715c34ae25c5 and
I368fec44858bd97fc6a314fb20eed2b10932cbb1 added timing
infrastructure which hides the return value of
the main commands.  Restore the prior behaviour.

Change-Id: I4a536abefa7824ac6d42e7bbbf1079d9cc055984
Closes-Bug: #1518545
2016-01-05 08:21:05 +00:00
Jenkins 7bd9ca8a3b Merge "Write volume API version into clouds.yaml" 2016-01-05 08:18:58 +00:00
Jenkins 85c466c2d7 Merge "Fix get_plugin_packages when multiple plugins are in use" 2016-01-05 04:55:21 +00:00
Monty Taylor f73263d47a Remove uses of --os-url and --os-token
Those were originally used to bootstrap with admin-token from keystone,
but the openstack client is fully configured now, leaving no reason to
not just use the actual users that are there.

Change-Id: I80bdee33a78a97f5d3910aa36dc331f19780d2f1
2016-01-04 09:12:05 -06:00
Monty Taylor 5bf6a9489c Write volume API version into clouds.yaml
We're trying to get things to use volume v2 by default. devstack already
deploys a v2 endpoint. Tell clouds.yaml that this devstack cloud is a v2
enabled cloud.

Change-Id: I6f792ce65153389aa1ee133e9bd363c394b28534
Closes-Bug: 1467589
2016-01-04 09:08:54 -06:00
Jenkins 227f20ceb2 Merge "update create_heat_accounts, don't use os_url and os_token" 2016-01-04 13:59:56 +00:00
Jenkins 0d81785bbe Merge "Stop using deprecated tempest options" 2016-01-04 13:12:05 +00:00
Jenkins a6eaed187f Merge "Kill neutron-rootwrap-daemon when stop neutron service" 2016-01-04 13:11:48 +00:00
Jenkins 8c5bae06f3 Merge "Enable swap stats in dstat" 2016-01-04 13:11:40 +00:00
Jenkins 13579a3161 Merge "Add option to skip EPEL & other repo installs" 2016-01-04 13:02:00 +00:00
Dmitry Tantsur 5979f47a3d Fix get_plugin_packages when multiple plugins are in use
Due to missing space no plugin packages are installed in this case.

Change-Id: I56b105510e4d31a411f2531fdb20c4ddf1ebff20
Closes-Bug: #1530675
2016-01-04 11:53:31 +01:00
Jenkins e8788c0129 Merge "Specify HTTPS URLs to fix tls-proxy mode" 2016-01-02 13:23:13 +00:00
Jenkins 3a6ef48a03 Merge "Neutron: Fix IPv6 provider networks" 2015-12-31 02:42:53 +00:00
vsaienko 135bd484a9 Introduce iniget_sections function
This function returns list of sections from specified INI file.
It is needed for I7938f26015d953efdf720774b5ad2cee4068ac90.
'iniget_sections' is needed for automatic node enrollment to
Ironic from INI syntax file.

Change-Id: I52a69ad3bc8fc528e7f20e6b03a98f327acaaa74
Implements: blueprint ironic-ml2-integration
2015-12-29 09:42:35 +00:00
Jenkins 1195a5b739 Merge "Remove ironic code from tree" 2015-12-28 17:06:48 +00:00
Huan Xie cc6af3fc94 XenAPI: add support to use local.conf
XenServer install with devstack doesn't support local.conf, this fix
is to add support for using local.conf and backward-compatibility of
localrc

Change-Id: Ie494e01f8f1ecb8720e14392ef3f12d5a5a01dcd
Closes-Bug: #1528520
2015-12-28 08:56:14 +00:00
Jenkins 147c442547 Merge "Remove the support for keystone extensions" 2015-12-27 19:17:11 +00:00
Jenkins eff89ca89c Merge "docs: Add additional configuration in Neutron guide" 2015-12-27 00:40:13 +00:00
liyingjun 44ee7e307b Fix heat config when using keystone v3
Use configure_auth_token_middleware to generate keystone_authtoken
section configration.

Change-Id: I87e0e60afb958683add2aff2552d26cbf8c9e374
Closes-bug: #1300246
2015-12-25 10:32:14 +08:00
Jenkins b5f0f3e98f Merge "Heat - revise keystone/trusts config to avoid deprecated options" 2015-12-24 00:06:56 +00:00
Yuriy Nesenenko a6bbe031f1 Fix restoring a backup volume to a larger volume
We cannot restore a backup to a larger volume on ceph because it
fails with status "error_restoring". This patch adds read/write
permissions to volumes pool for backup user. We need such permissions
to change volume size during restoring backup when the backup is
smaller than a volume.

Change-Id: I794c1126bcee4e07baf5a9dcfee779fd61da5636
Closes-Bug: 1519749
2015-12-23 16:40:44 +02:00
Hua Wang f7dc06cb89 Option "auth_plugin" is deprecated.
Option "auth_plugin" from group "keystone_authtoken" is deprecated.
Use option "auth_type" from group "keystone_authtoken".

Change-Id: I01371bd924114d6470e960a91a3045fe7dc22339
Closes-Bug: #1528746
2015-12-23 12:23:25 +08:00
Li Ma 50120fa047 Kill neutron-rootwrap-daemon when stop neutron service
Neutron-rootwrap-daemon cannot be killed when you stop
neutron services, so here we add the right command in
the neutron stop-service scripts.

Change-Id: I91fefb277427e0e16ff59760b7255e4c7eee1792
Closes-Bug: #1525601
2015-12-23 11:43:38 +08:00
Andrey Pavlov ba23ba317a remove configuration for boto section
thirdparty.boto tests was removed from tempest and this section
is no needed more

Change-Id: Ibec0534d118423be7a51c2e2b82f1c61531503a0
2015-12-22 23:33:30 +03:00
Min Pae 79e6530470 Adding cue to plugin registry
Adding cue to the plugin registry under "Official OpenStack Projects"

Change-Id: I24fc76eb6aadb653c0db5a0fa1d8e22cd166dbe9
2015-12-22 10:31:38 -08:00
Jenkins d21747952e Merge "Remove a stale comment about SQLALCHEMY_DATABASE_DRIVER" 2015-12-22 06:04:46 +00:00
Jenkins e76410c5f3 Merge "Neutron VPNaaS: Set default service provider" 2015-12-21 23:36:35 +00:00
syed ahsan shamim zaidi 512be7de18 docs: Add additional configuration in Neutron guide
Adding NETWORK_GATEWAY to the docs

Change-Id: I67be468d9fbe5f323e21c81b673248d4b629c8ef
Closes-Bug:#1508195
2015-12-21 16:25:58 +00:00
Davanum Srinivas f59e6df23a Do not fail with Tox 2.3.1
Latest tox causes failures:
   File "/usr/local/lib/python2.7/dist-packages/tox/config.py", line 1140, in processcommand
     argv = list(shlexer)
   File "/usr/lib/python2.7/shlex.py", line 269, in next
     token = self.get_token()
   File "/usr/lib/python2.7/shlex.py", line 96, in get_token
     raw = self.read_token()
   File "/usr/lib/python2.7/shlex.py", line 172, in read_token
     raise ValueError, "No closing quotation"
 ValueError: No closing quotation

This is caused by a backwards incompatible change in tox:
https://bitbucket.org/hpk42/tox/issues/181

Change-Id: Ic28c634cf806394cfa82b61cb45be60b8f40a61a
2015-12-21 08:36:43 -05:00
Hongbin Lu bfdd47c853 Enable swap stats in dstat
Swap stats could be useful for trouble-shooting. It is better to
have it enabled in dstat.

Change-Id: I44e0735a95cd6ca3def9b04510551df16a1337a4
2015-12-20 16:30:36 -05:00
Steve Martinelli 4ce859ab2b update create_heat_accounts, don't use os_url and os_token
Currently, the function create_heat_accounts uses the OS_URL and
OS_TOKEN environment variables. This is a bad choice for several
reasons, most importantly we are sending the "ADMIN_TOKEN" value
as a header. There is also no reason to not use a standard admin
user to create these resources.

Change-Id: I70b41d69917b9e53ad09c2c61e022ef09a50acfd
2015-12-20 01:27:30 -05:00
Jenkins 1adb2e1c11 Merge "set the validation path to fixed for n-net" 2015-12-19 19:49:22 +00:00
Matthew Treinish fbe0a62785 Stop using deprecated tempest options
This commit updates lib/tempest to stop using deprecated config
options when tempest is configured.

Change-Id: I65b56ff681d6c27094380693c953fbc3664eceb0
2015-12-18 17:05:55 -05:00
John Kasperski 50ce626db7 Neutron: Fix IPv6 provider networks
The creation of the IPv6 subnet with provider networks does not
specifiy the correct parameters:
 . V6_NETWORK_GATEWAY is specified but never set
       - created new IPV6_PROVIDER_NETWORK_GATEWAY
 . PROVIDER_SUBNET_NAME_V6 is specified but never set
       - created new IPV6_PROVIDER_SUBNET_NAME
 . FIXED_RANGE_V6 is being used
       - created new IPV6_PROVIDER_FIXED_RANGE
 . subnetpool_id is incorrect
       - changed to subnetpool

Related-Bug: #1507870
Closes-Bug: #1417410
Change-Id: I9a1ad11bc54529080ec84d4677fa5633708890c7
2015-12-18 14:37:41 -06:00
Jim Rollenhagen 47367071cd Remove ironic code from tree
This removes all of the ironic code from the devstack tree, in favor of
the devstack plugin in Ironic's tree.

Depends-On: I659e3de5c64df798441798ff48ba5c9c0506585a
Depends-On: I2c52bc014f1b0dbc6b0ae22a4deb4132b4c28621
Change-Id: I5125fce295c79600781469c2f48bea80e7600081
2015-12-18 17:26:02 +02:00
Martin Hickey 47115b0314 Neutron VPNaaS: Set default service provider
Default value needs to be set for service_provider config item in
neutron_vpnaas.conf. This is to support backward compatability
for using the enable_service q-vpn. It should be noted that the
recommended way to use VPN is the devstack plugin.

Change-Id: I0d5960c81c47a138087d480527eff2a8eef59445
Closes-bug: #1527483
2015-12-18 14:29:52 +00:00
Davanum Srinivas 168be83597 Nuke EC2 API service in defaults
Tempest does not test EC2 by default anymore:
Ib5e24e19bcba9808a9f49fe7f328668df77fe4f9

So we don't need to run nova ec2 API service by default.

Change-Id: Ieec0ca1361baf0978d96e69e1134f699c1af3bb9
2015-12-18 07:49:27 -05:00
Jenkins 6f80485898 Merge "Add congress to plugin registry" 2015-12-18 03:21:27 +00:00
Jenkins 3b7e6ab77c Merge "Ensure link is set to up, when moving IP addresses across interfaces." 2015-12-18 03:21:18 +00:00
Jenkins 570111ad7d Merge "Fix override-defaults in plugin docs" 2015-12-18 03:05:13 +00:00
Jenkins 3d0be624fa Merge "Remove Cinder API version cap" 2015-12-17 23:50:46 +00:00
Jenkins 0d37572260 Merge "Turn off tracing when outputting errors" 2015-12-17 23:50:38 +00:00
Jenkins 9839f32858 Merge "Add a more accurate expression for obtaining (IPV6_)ROUTER_GW_IP" 2015-12-17 23:50:29 +00:00
Jenkins f3913f7b89 Merge "Neutron VPNaaS: Use generated configuration files if available" 2015-12-17 22:16:24 +00:00
Mike Turek 00b5f4af92 Replace deprecated baremetal timeouts with new deploy_timeout
See review 258670 for more information. The preceeding patch
consolidates Ironic timeouts into one blanket timeout. This
patch sets the new timeout via the BUILD_TIMEOUT variable and
removes the deprecated timeouts.

Change-Id: I320461b2b40aa2b68afc38a901a5933e39aac1b6
Related-Bug: #1526863
2015-12-17 19:20:49 +00:00
Atsushi SAKAI 2ca8af45a7 Add 5 time measurement points
run_process           process starting time
test_with_retry       process starting time (for neutron legacy)
restart_apache_server Apache HTTPD restart time
wait_for_service      HTTP server waiting time
git_timed             git command execution time

example

========================
DevStack Components Timed
========================

run_process - 52 secs
test_with_retry - 3 secs
apt-get-update - 8 secs
pip_install - 76 secs
restart_apache_server - 9 secs
wait_for_service - 11 secs
git_timed - 127 secs
apt-get - 15 secs

Change-Id: I66140726617450cd9fe9b702092cacf053a20065
2015-12-17 20:28:54 +09:00
Sean Dague 563a7e75b7 set the validation path to fixed for n-net
See if using fixed IPs for connectivity to hosts is more reliable than
floating ips, which really were not intended for these purposes (at
least in nova-net).

Change-Id: I251710ee9186a68bb3ddc58ca803c33b81c8ac49
2015-12-15 17:16:19 -05:00
Jenkins 63b7d7bcae Merge "Add compute microversions configuration on tempest" 2015-12-15 12:51:34 +00:00
Jenkins fe25a2a734 Merge "remove generic extras.d support" 2015-12-15 12:47:54 +00:00
Akihiro Motoki 43f62c0849 Move horizon config and start to appropriate phase in stack.sh
Previously horizon configuration and start are done too early
and as a result horizon init and start need to be run twice
after horizon plugins are enabled.
- horizon config was done before "run_phase stack install"
- horizon init and start were done before "run_phase stack post-config"

This commit rearrange horizon setup to the appropriate phases
defined in the devstack plugin interface.

- Configuration of horizon settings is moved to configure_horizon.
- horizon config is now called between run_phase stack install
  and post-config.
- horizon init and start are now called between run_phase stack
  post-config and extra.

Change-Id: I8bf2ceaf7734c4f7cec68bc05d7cdbae81ef311e
2015-12-15 16:44:41 +09:00
Jenkins c81fb98814 Merge "Neutron LBaaS: Use generated configuration files if available" 2015-12-14 23:17:41 +00:00
Dave Chen 97b9e970b2 Remove the support for keystone extensions
All keystone extensions have been moved into cores and are
enabled by default, there is no need to configure the extension
in devstack but configure it in devstack will block the
install process.

Change-Id: I7d21b122c641f601295ee7ece3583404b3874dbd
Closes-Bug: #1526033
2015-12-15 03:42:17 +08:00
Martin Hickey 2b4d6d1621 Neutron VPNaaS: Use generated configuration files if available
Generate the Neutron VPNaaS sample config files by using the oslo
generator. The files are generated with a .sample extension and
replace the static example configuration files.

Once the generation code is delivered, the static config files
will be removed.

Change-Id: Icef8f7e8f0e8e78bfffa7a5af3f9f2300376b115
Related-blueprint: autogen-neutron-conf-file
Partial-bug: #1199963
Depends-On: I4a6094b8218dfd320d05bfb1e3bc121e8930c551
2015-12-14 14:35:15 +00:00
YAMAMOTO Takashi 239a9788b3 Remove a stale comment about SQLALCHEMY_DATABASE_DRIVER
SQLALCHEMY_DATABASE_DRIVER is no longer used
after If6d8d08e5b7b7c48ca012677b536d71058def6fd .

Also, remove mysql connector packages from the install list.

Closes-Bug: #1523377
Related-Bug: #1493304
Change-Id: I5ecbc3b0bac989faa5c46d3c2866558a505414d8
2015-12-14 21:32:33 +09:00
Mark McLoughlin 76cbbe37aa libvirt: don't repeatedly configure libvirtd logging
/etc/libvirt is not world-readable (at least on Fedora and RHEL) so
use sudo with the grep that checks whether we have already configured
libvirtd logging. Also, change the regex so we don't count commented
out logging config.

Change-Id: I67484b28aafd0fa828385321fa96d9141cb4cb59
Signed-off-by: Mark McLoughlin <markmc@redhat.com>
2015-12-14 11:36:42 +00:00
Mahito OGURA cf4f76299f Update the vnc config options group 'DEFAULT' to 'vnc'
n-api log output WARNINGs that vnc config options group 'DEFAULT'
is deprecated. New vnc config options group is 'vnc'.
This is change of Nova.[1]
This patch changes the vnc config options group 'DEFAULT' to 'vnc'.

[1] https://bugs.launchpad.net/nova/+bug/1447528

Change-Id: If54f750bac83298e90bdca27b5992fe2e5fbb712
Closes-Bug: 1483583
2015-12-14 06:40:23 +00:00
Sean McGinnis 357dff588e Remove Cinder API version cap
Cinder API was pinned to v1 due to openstackclient missing some of the
v2 commands, as reported in osc bug 1475060. That bug has since been
marked invalid, but its intent was covered by the blueprint:

https://blueprints.launchpad.net/python-openstackclient/+spec/volume-v2

This removes the pinning to the v1 API now that osc supports v2. Also
removing the enablement of v1 as it was deprecated three releases ago
and we would like to get more coverage on v2.

Change-Id: Ia4d97734738d026c8721791669110778ff5eb6e5
2015-12-11 14:12:19 -06:00
Anusha Ramineni 69431725eb Add congress to plugin registry
Now congress supports devstack plugin model, hence including the
same in plugin registry

Change-Id: I1ac83c529a466e6a75a9b46ed9b56085140a63ed
2015-12-11 12:00:46 +05:30
Jenkins 16f8470e52 Merge "only set admin_* options for eventlet" 2015-12-11 03:20:27 +00:00
gordon chung e42306d9db only set admin_* options for eventlet
keystone+apache don't need these values set.

Change-Id: Iebdb31b5f0888613e0454f09a426933d6fcd71b3
see: http://lists.openstack.org/pipermail/openstack-dev/2015-December/081984.html
2015-12-10 14:54:01 -05:00
Martin Hickey 10bff0e996 Neutron LBaaS: Use generated configuration files if available
Generate the Neutron LBaaS sample config files by using the oslo
generator. The files are generated with a .sample extension and
replace the static example configuration files.

Once the generation code is delivered, the static config files
will be removed.

Change-Id: Iae1e581ec2bea9c0ced700229effcc716d53fe4e
Related-blueprint: autogen-neutron-conf-file
Partial-bug: #1199963
Depends-On: I25507f3bc6e995580aa91a912c2cf4110757df15
2015-12-10 16:55:07 +00:00
Jim Rollenhagen 9fc3ba408a Ironic: add flag for using plugin
This adds a flag to skip ironic code if the ironic devstack plugin is in
use. This flag will be set to true in ironic's devstack plugin to
indicate that the plugin should be in control, rather than devstack.

This is for the transition period only, and will be removed with the
rest of the ironic code in the devstack tree, once the gate
is configured to use the ironic plugin.

Change-Id: Id01d97fd13fa9f866d645ec5077834ddb78b2b89
2015-12-10 15:41:32 +00:00
Jim Rollenhagen 56632fc75d Fix override-defaults in plugin docs
Docs specify that this file should be override_defaults, when really
devstack looks for override-defaults.

Change-Id: I3900ec4d16ffb48c6969dac5081ea2817536c246
2015-12-10 05:57:19 -08:00
Jenkins 1f7631dce6 Merge "Enable optional Python 3 support" 2015-12-09 18:03:58 +00:00
Philipp Marek af0801de3c Make logfile symlinks with relative names.
Using absolute names for the symlink breaks in quite a few ways;
 * when creating a tar file of the logs,
 * when serving via NFS,

or any other case where the directory gets transferred to
a different machine.

So just create the symlink with relative names, then they'll work
in any location.

Change-Id: I432a69754985fc71feb0068b7adca01066d7bc1b
2015-12-09 13:52:05 +01:00
ghanshyam 642b07b930 Add compute microversions configuration on tempest
Many projects like Nova, Ironic etc have implemented the
microversions for versioning their APIs.

Tempest is going to tests those microversions -
I57b78b4c0543b6fb0533b556886a19a03297555e.

For testing microversion in Tempest on gate, we need to set
a valid range of microversion in Tempest config and based on that
Tempest will run appropriate tests.

This commit adds the below range options for compute microversion testing-
- [None, 'latest'] - for master branch as default
- [None, None] - for tests running on v2.0
- option to set the range.

Depends-On: I81e86faca6f8c0ffb7da22154a62236ac25cf0c0

Partially implements blueprint api-microversions-testing-support

Change-Id: I171b862d1bba1af467f5b9a76288216c39e2adda
2015-12-09 13:37:46 +09:00
Steven Hardy 2a68844013 Heat - revise keystone/trusts config to avoid deprecated options
There are some inter-related changes required to avoid using legacy
fallback/deprecated paths in heat, which result in warnings in the
log, e.g because we fall-back to reusing keystone auth_token
configuration instead of heat specific sections.

To fix this:
- Don't explicitly set deferred_auth_method=trusts, as this is now
  the default (since kilo)
- Create a new "trustee" section containing configuration used for
  the password auth-plugin associated with deferred authentication
  via trusts (support for this was added during liberty to enable
  us to stop incorrectly using the keystone auth_token config)
- Create a "clients_keystone" section to avoid falling back to the
  legacy behavior of stealing the uri from auth_token.

This also means we can remove the FIXME and auth_token auth_uri
mentioned by jamielennox.

Change-Id: Ie34332a7aec3b9b271df0759dd6ab66b45302832
Related-Bug: #1300246
2015-12-08 13:34:27 +00:00
Martin Hickey 7b7101f1c5 Neutron FWaaS: Use generated configuration files if available
Generate the Neutron FWaaS sample config files by using the oslo
generator. The files are generated with a .sample extension and
replace the static example configuration files.

Once the generation code is delivered, the static config files
will be removed.

Change-Id: Ic8208850a27408c8fbeed80ecdb43345aa7dfaa4
Related-blueprint: autogen-neutron-conf-file
Partial-bug: #1199963
Depends-On: I8e9113dfb88e5290f6eedd012d1a52fc35c3c88c
2015-12-07 11:11:06 +00:00
Jenkins 563c68f3cd Merge "Fix path setup in add_sudo_secure_path" 2015-12-06 13:34:19 +00:00
Jenkins 366382fa6e Merge "Ensure the Linux Bridge agent can be used with provider networking" 2015-12-05 04:55:15 +00:00
Jenkins 5f23dbe978 Merge "create apt_get_update to try to work around broken mirrors" 2015-12-04 19:47:31 +00:00
Jenkins 2824aa868b Merge "Update lib/ironic to always skip cleaning" 2015-12-04 05:22:25 +00:00
Jenkins c33b9de056 Merge "Neutron: Use generated configuration files if available" 2015-12-03 21:09:47 +00:00
Devananda van der Veen 2391d4321f Update lib/ironic to always skip cleaning
Previously, devstack would disable ironic's cleaning phase if a driver
with "agent" in the name was used. However, we have begun using the IPA
ramdisk for all tests in the gate, which caused cleaning to be run for
the "pxe_ssh" job which therefore fails due to timeouts.

As a result, for now, we need to always disable cleaning.

As a point of record, we should actually be testing cleaning in the
gate. However, running 'shred' on the disks of a nested VM is too slow
and causes the gate to timeout // take too long. Some options have been
discussed for ways to test the callback mechanism but avoid actually
running 'shred' on the disks.

This needs to be revisited.

Change-Id: Id15cf6cc49122b08e557e44871b31a8c0d20b55d
Related-to-Bug: #1517277
2015-12-03 09:44:59 -08:00
Sean Dague 41d01104b1 remove generic extras.d support
This removes the generic extras.d support, which we said we'd do at
Mitaka-1. In tree extras.d continues to function as before, though we
need stories to get ceph and ironic into plugins, and a better
solution for Tempest.

Change-Id: I8b134446dc08a2c3852423ca71af2f469f85496e
2015-12-03 08:12:23 -05:00
Sean Dague 88ee8ce468 create apt_get_update to try to work around broken mirrors
Ubuntu's apt mirroring mechanism produces inconsistent mirrors pretty
regularly. The devstack-gate apt-get update model seems to have been
more effective getting past this than what we did in devstack. Adopt
that method for our updates.

Change-Id: I97c7896ef38b275aacb4f933fc849acee1bab858
2015-12-03 07:44:15 -05:00
Doug Hellmann ddc3839bdc Enable optional Python 3 support
Add USE_PYTHON3 and PYTHON3_VERSION variables to allow services to use
python 3 if they indicate support in their python package metadata.

Tested in Heat here -> I837c2fba682ab430d50e9f43913f2fed20325a7a.
Project config change to add a dedicated job to Heat is here -> I0837e62d6ccc66397a5e409f0961edd4be31f467

Change-Id: I079e18b58b214bf8362945c253d6d894ca8b1a6b
2015-12-01 14:52:35 -05:00
Ian Wienand 1afc28bf6c Turn off tracing when outputting errors
When outputting these error strings, turn off the tracing so the user
can actually read it.  Also reword the "not root" user message so it
fits into a standard terminal window length.

Change-Id: I466c60865bc1128f4edd219f831a9c6cffa67829
Parital-Bug: #1517199
2015-12-01 19:15:21 +00:00
Jenkins b889294af7 Merge "Add test for package file ordering" 2015-12-01 16:01:40 +00:00
Jenkins 4300f83acf Merge "Config graceful_shutdown_timeout option for services" 2015-12-01 16:01:30 +00:00
Jenkins 52d176c04f Merge "Add flag for test_incremental_backup" 2015-12-01 11:27:39 +00:00
Jenkins 2f50ee501b Merge "Fix comment typos in inc/ and tests/ directories" 2015-12-01 06:01:50 +00:00
Jenkins 592404156a Merge "Force heat deferred_auth_method to password in standalone mode" 2015-12-01 05:58:42 +00:00
Dmitry Guryanov e0ac37c257 Fix path setup in add_sudo_secure_path
There are two bugs in add_sudo_secure_path.

Firstly we don't properly check if the file exists, so always append
the new line.  This will overwrite any existing changes.

Secondly the logic for checking if the path exists is inverted, so we
miss adding paths when we should.  This particularly causes failures
when installing with virtualenv's since the paths are inside the
virtualenv, rather than the standard system locations.

Change-Id: I646fe0c68958470d464fe4f3d81d5c17dd6f2ab6
Closes-bug: #1521241
2015-12-01 13:43:01 +11:00
Jenkins 69101c1c21 Merge "Single call for 'nova flavor-list'" 2015-11-30 18:08:26 +00:00
Jenkins b85807875a Merge "Use autogenerated flavor id" 2015-11-30 17:25:34 +00:00
Martin Hickey 30d5fae315 Neutron: Use generated configuration files if available
Generate the neutron core sample config files by using the oslo
generator. The files are generated with a .sample extension and
replace the static example configuration files.

Once the generation code is delivered, the static config files
will be removed.

Change-Id: Ic37a16b6cf8eb92030649f1fc8b198738a8cc104
Related-blueprint: autogen-neutron-conf-file
Partial-bug: #1199963
Depends-On: I1c6dc4e7d479f1b7c755597caded24a0f018c712
Co-Authored-By: Louis Taylor <louis@kragniz.eu>
2015-11-30 16:44:18 +00:00
Jenkins 8bfcb723c6 Merge "Add discussion of LIBS_FROM_GIT" 2015-11-30 16:38:56 +00:00
Joe D'Andrea 779d867028 Force heat deferred_auth_method to password in standalone mode
Heat does not support Keystone Trusts when deployed in standalone
mode. This change forces an error when HEAT_DEFERRED_AUTH is set
to anything other than "password" if HEAT_STANDALONE is True and
advises of the acceptable setting.

Change-Id: Ib4ee9d9af396093137a2a0f99f1b18ae153ccdb3
Closes-Bug: #1463837
2015-11-30 15:36:30 +00:00
Atsushi SAKAI 5509ed5797 Fix comment typos in inc/ and tests/ directories
valu3 => value3
enviromnet => environment
direcotry => directory
virualenv => virtualenv
editiable => editable
envirnment => environment

Change-Id: I97fb2d44a37b16d02d4fbdb08bfa33414349f651
2015-11-30 20:25:17 +09:00
Jenkins bf81732b12 Merge "Set unprovision and active timeout to match build_timeout" 2015-11-29 10:27:11 +00:00
Shinobu KINJO f95315b6ea Ensure link is set to up, when moving IP addresses across interfaces.
- To add, initialize and set up a valiable named IP_UP
 - To bring up interface after moving IP to OVS bridge

Change-Id: I70f5974c115be6f7e7422a9a325f36cf3b71455a
Closes-Bug: #1469596
2015-11-28 00:24:08 +00:00
Jenkins f95c9a9603 Merge "Namespace XTRACE commands" 2015-11-27 11:51:07 +00:00
Jenkins e9326ee638 Merge "Add create stack user to quickstart document" 2015-11-27 04:38:39 +00:00
Ian Wienand 523f488036 Namespace XTRACE commands
I noticed this when debugging some grenade issues failures.

An include of grenade/functions stores the current value of XTRACE
(on) and disables xtrace for the rest of the import.

We then include devstack's "functions" library, which now overwrites
the stored value of XTRACE the current state; i.e. disabled.

When it finishes it restores the prior state (disabled), and then
grenade restores the same value of XTRACE (disabled).

The result is that xtrace is incorrectly disabled until the next time
it just happens to be turned on.

The solution is to name-space the store of the current-value of xtrace
so when we finish sourcing a file, we always restore the tracing value
to what it was when we entered.

Some files had already discovered this.  In general there is
inconsistency around the setting of the variable, and a lot of obvious
copy-paste.  This brings consistency across all files by using
_XTRACE_* prefixes for the sotre/restore of tracing values.

Change-Id: Iba7739eada5711d9c269cb4127fa712e9f961695
2015-11-27 15:36:04 +11:00
Jenkins 307730acd9 Merge "configuration.rst: Document post-extra meta section phase" 2015-11-27 02:19:11 +00:00
Jenkins 6bfd30b7ad Merge "Consolidate two /sbin/ip commands into a single one" 2015-11-27 02:16:10 +00:00
vsaienko be3e553556 Add discussion of LIBS_FROM_GIT
Add a pointer to installing clients via LIBS_FROM_GIT to local.conf
sample.  Mention in the git tree setup that the projects within are
usually installed via released pip versions.

Change-Id: I245094e51ea4a8ce983f6a1e48b6ab7ca5d309d0
2015-11-27 12:05:36 +11:00
Rafael Folco 0b4c83a07e Single call for 'nova flavor-list'
Code simplification only, no functional changes.

Change-Id: I0b836bc77c0553528e3bc9e0cea98d59856ccdf5
2015-11-26 10:08:36 -06:00
Arun S A G ad69e69e3f Set unprovision and active timeout to match build_timeout
The build_timeout for the ironic baremetal build is at
340s. Modify the unprovision_timeout and active_timeout
to match BUILD_TIMEOUT to avoid frequent failures during
IPA gate jobs.

Change-Id: Idfdc54210e33c71719c7fd0c905d0b802809e173
Related-Bug: #1393099
2015-11-25 14:52:43 +00:00
Kahou Lei d663e29d40 Ensure the Linux Bridge agent can be used with provider networking
The root cause is that when provider network is used, devstack
is trying to build ovs related interface.

We need to make a condition such that if linux bridge is used, don't
build any ovs related interface.

Change-Id: I7f26ce7893a0ecce55b3467cd5621abf25745b8e
Closes-bug: #1509705
2015-11-24 06:50:09 +00:00
Einst Crazy 2ed28132e0 Add create stack user to quickstart document
Add instructions on creating a user to the documentation, and call out
that the standard cloud-users are probably ok too

Change-Id: I1119a43f1d5ae7c0c208bf0cc16e2f7bee29a69d
2015-11-24 15:11:09 +11:00
John Kasperski bdc0fa8ab1 Neutron: Clean up documentation typo
Remove duplicate SERVICE_HOST and MYSQL_HOST settings in the
examples.

Change-Id: I0e102b671f03ccb183d30ec6a762d00ebcf1e4b5
2015-11-23 12:05:44 -06:00
obutenko a366b97c0a Add flag for test_incremental_backup
Forced creation of incremental backup is not
implemented in old release (Juno and Kilo).
The test is skipped by default for Juno and Kilo gates.
Need to add flag to unskip this test in new release.

New test: Idde2c14aba78382b1063ce20269f4832f9fdd583
Change-Id: I565b5941d6067644fc9ca6cb0891d97f4946e031
Partial-Bug: #1506394
2015-11-23 16:27:04 +00:00
vsaienko f0dd6894af Use autogenerated flavor id
Fix to trove has been merged, and autogenerated flavor ID
is available since Kilo.

Related-Bug: #1333852

Change-Id: Ie4b3dd11a23fa5f91cf9ff22dd05f1afd0532cb4
2015-11-23 10:11:31 +02:00
Jenkins 8c5a331cf9 Merge "Updated Typos in devstack" 2015-11-23 07:29:43 +00:00
Jenkins 85ce0d2711 Merge "remove precise from the supported list" 2015-11-22 11:36:24 +00:00
Jenkins 202279c4e5 Merge "Add liberasurecode-dev as a swift dependency" 2015-11-20 22:02:18 +00:00
Sean Dague c18b4a4e5c remove precise from the supported list
We haven't been testing master on precise for a long time, and changes
are coming that won't work on precise. If people want to keep running
on precise they should realize they are on their own with it. And that
we won't block any changes that use it.

Change-Id: I3697f1c2409ad08f49793dabb37011606188e6f6
2015-11-20 12:19:18 -05:00
Jenkins cdc336d28e Merge "Fedora 23 supported" 2015-11-20 16:57:03 +00:00
Jenkins 19f4acbc14 Merge "doc: document override_defaults phase" 2015-11-20 09:54:54 +00:00
Komei Shimamura 255a58fec6 Add existing devstack plugins to the devstack plugin list
Change-Id: I336a4c652a78e778e39652f1f16ff69be10ab065
2015-11-20 18:51:20 +09:00
Swapnil Kulkarni (coolsvap) 7f0be4fc5f Updated Typos in devstack
(1/5) Updated HACKING.rst for typos
(2/5) Updated typos in lib/dlm
(3/5) Updated typos in lib/ironic
(4/5) Updated typos in unittest.sh
(5/5) Updated typos in test_meta_config.sh

Change-Id: I7aafa3af69df9dc6a5923a8557f380d48b73433a
2015-11-20 11:17:19 +05:30
Attila Fazekas e0129f3c24 Fedora 23 supported
This change allows to use f23 without the FORCE=yes option.

Make sure you have latest kernel, or you have kernel-modules
installed for the running kernel.

f21 support will be removed when the gate jobs are upgraded
to use newer fedora version.

Change-Id: I6e3e64088187a7f6da745e3cfb07524fd31782ab
2015-11-19 10:47:58 +01:00
Jenkins 0b6a40bcab Merge "install ebtables locking workaround" 2015-11-18 23:20:36 +00:00
Ian Wienand 2ba36cda79 Add vercmp function
The existing vercmp_numbers function only handles, as the name says,
numbers.  I noticed that "sort" has had a version sort for a long time
[1] and, rather than re-implement it badly, use this as a version of
vercmp that works a bit more naturally.

This is intended to be used in an "if" statement as in

  prog_ver=$(prog_ver --version | grep ...)
  if vercmp $prog_ver "<" 2.0; then
     ...
  fi

A test-case is added to test the basic features and some edge-cases.

[1] http://git.savannah.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=4c9fae4e97d95a9f89d1399a8aeb03051f0fec96

Change-Id: Ie55283acdc40a095b80b2631a55310072883ad0d
2015-11-19 09:37:33 +11:00
Jenkins bcad037697 Merge "Remove brackets from IPv6 address in mysql cfgfile" 2015-11-18 17:22:38 +00:00
Jenkins a611ce95e3 Merge "Fix error detection & exit in report_results" 2015-11-18 17:18:28 +00:00
Sean Dague 7860f2ba31 install ebtables locking workaround
ebtables is racing with itself when nova and libvirt attempt to create
rules at the same time in the nat table. ebtables now has an explicit
--concurrent flag, that all tools must opt into to prevent ebtables
from inherently being unsafe to run.

libvirt gained this support in 1.2.11, which is too new for our ubuntu
primary testing environment. Nova still hasn't added this support,
though even if it did, we'd run into the issue with libvirt.

We can do the most ghetto thing possible and create a wrapper for
ebtables that does explicit locking on it's own. It's pretty terrible,
but it should work. And it is the kind of work around that people
unable to upgrade libvirt will probably need to do.

This is an opt in value which we should set in the gate to True.

Related-Bug: #1501558

Change-Id: Ic6fa847eba34c21593b9df86a1c2c179534d0ba5
2015-11-18 10:59:50 -05:00
Deepak C Shetty 93e2499ee1 doc: document override_defaults phase
override_defaults phase was added to devstack in [1]
but documentation was pending. This patch adds the
same. For history around override_defaults, one can
refer to the mail thread [2]

Also fixes a small typo

[1]: https://review.openstack.org/#/c/167933/
[2]: http://lists.openstack.org/pipermail/openstack-dev/2015-March/059621.html

Change-Id: I1b58ca0ce0e4b85a1dbd710b4c426606fd4dcf45
2015-11-18 12:43:54 +05:30
Tushar Gohad 2960bfa7f6 Add liberasurecode-dev as a swift dependency
Swift requirement PyECLib won't bundle liberasurecode
going forward given the package is available in common
distros now.  This patch adds liberasurecode-dev(el)
package to the devstack debs/rpms list for Swift as a
PyECLib build/install dependency.

Change-Id: Idbc2ca3f677f1b8153ebf3a5912f4354525a55c7
2015-11-17 20:36:03 -07:00
Brian Haley bb9caeae00 Consolidate two /sbin/ip commands into a single one
When determining the primary IP/IPv6 addresses on a system,
we can use the /sbin/ip command to filter them for us.  The
resulting address is parsed the same way for both address
families, so we can use just a single command.

Change-Id: I0471ff5a258a16a23061941ac38063dbf3d7c233
2015-11-17 21:23:36 -05:00
Jenkins fa8464bf34 Merge "Fix typos for stack.sh and lib of comments and message" 2015-11-18 02:20:45 +00:00
Jenkins 51c5498eab Merge "doc: Update LBaaS v2 setup for Liberty" 2015-11-18 01:12:57 +00:00
Jenkins bf5f5880b3 Merge "Delete $IPV6_PUBLIC_NETWORK_GATEWAY IP during cleanup" 2015-11-18 00:10:07 +00:00
Steve Baker bd4048a3c5 Never uninstall python-pip on fedora
Python in f23 and f22 depends on the python-pip package so removing it
results in a nonfunctional system. pip on fedora installs to /usr so pip
can safely override the system pip for all versions of Fedora.

Change-Id: I336c7ffdf00784ca8deba7d6612a08b96a0ad098
Closes-Bug: #1467569
2015-11-18 11:04:27 +13:00
Rob Crittenden cdba7b0e53 Specify HTTPS URLs to fix tls-proxy mode
A number of new settings are required for glance, cinder
and keystone to be installable when the tls-proxy
service is enabled.

For cinder a new public_endpoint option was added and this
needs to be set to the secure port.

Keystone needs the admin_endpoint and public_endpoints
defined otherwise during discovery the default,
non-secure versions, will be returned.

The keystone authtoken identity_uri was set at its default value
in the glance registry and API configuration files.

Change-Id: Ibb944ad7eb000edc6bccfcded765d1976d4d46d0
Closes-Bug: #1460807
2015-11-17 19:39:54 +00:00
Ian Wienand 95a9ff0587 Add option to skip EPEL & other repo installs
Add an option to skip the EPEL & other repo installs for rhel7 based
platforms.

This option can serve two purposes; firstly as described in
I834f20e9ceae151788cec3649385da1274d7ba46 during platform bringup, a
publically available EPEL might not be available.  This will allow you
to pre-configure a hand-built repo, etc. so you can continue testing.

The other thing is that in a CI system you might be frequently
building images and pre-installing EPEL/RDO etc.  In that case this is
just extra work.

Change-Id: I9809449f4a43fa9b547c6e3ca92722c7f6e66d6a
2015-11-18 06:21:12 +11:00
Jenkins 585501a250 Merge "Only take the first global, non temporary ipv6 address" 2015-11-17 06:12:40 +00:00
Johan Pas 199d857442 Remove brackets from IPv6 address in mysql cfgfile
stack.sh creates a user-specific configuration file ~/.my.cnf for mysql.
If devstack is installed with SERVICE_IP_VERSION=6 option in local.conf,
the IPv6 host address was stored in the ~/.my.cnf file with square
brackets. However mysql does not use bracketing for IPv6 addresses,
resulting in 'Unknown MySQL server host' error when 'mysql' command is
run. With this patch IPv6 host address is written to ~/.my.cnf without
brackets.

Closes-Bug: #1516776
Change-Id: I27a7be8c75cf6b09b4a75dc4c9d09cd36bc5ac81
2015-11-17 01:02:54 +01:00
Jenkins 8f07ef84db Merge "Delete some comment or messages of keystone_data.sh(removed)" 2015-11-16 17:24:42 +00:00
Jenkins 21fee9d160 Merge "XenAPI:Fix problems to support xenserver+neutron" 2015-11-16 17:24:33 +00:00
Jenkins 9cea6e8854 Merge "Cleanup some of the deb/rpm installs" 2015-11-16 17:24:11 +00:00
Jenkins 28a4d781f3 Merge "Use openstackclient in swift exercises" 2015-11-16 16:26:26 +00:00
Jenkins e97bceca8c Merge "Disable resize tests in Tempest if using cells with custom flavors" 2015-11-16 06:03:03 +00:00
Jenkins 6e7b3aa723 Merge "Fix RST in configuration.rst" 2015-11-16 05:16:30 +00:00
Jenkins 3bc6f042e4 Merge "Remove multi-region workaround" 2015-11-16 05:15:49 +00:00
Jenkins e0b2af0b47 Merge "Remove 'enable_service tempest' from sample/local.conf" 2015-11-16 05:11:44 +00:00
Ian Wienand ecf06dbadb Add test for package file ordering
Add a simple test to ensure package install files remain sorted
alphabetically (follow-on from the sorting of the files done in
I01e42defbf778626afd8dd457f93f0b02dd1a19d)

Change-Id: I75568871e92afcd81dac2c3ce18b84aa34cdd289
2015-11-16 15:50:58 +11:00
Jenkins d36c1f3187 Merge "Cleanup ReST format issues" 2015-11-16 04:48:05 +00:00
Ian Wienand ca7e4f285c Fix error detection & exit in report_results
We wish to fail if we have >0 zero errors, not >1 errors (i.e. exactly
one error did not trigger a failure!)

This change also brings consistency to the pass & failure paths by
ensuring report_results exits in both cases, since report_results is
supposed to be the last thing run in a test file.

Change-Id: Id4721dffe13721e6c3cd71bca40c3395627e98bf
2015-11-16 15:47:51 +11:00
yangyapeng 01cf55a692 Fix RST in configuration.rst
Fix minor RST issue from before file was converted.

Change-Id: Ie16ceace9c17e98010e068641ce60ba9a365ede0
2015-11-16 14:52:08 +11:00
Steve Martinelli bbe59edb6f Use openstackclient in swift exercises
With the release of osc 1.8.0, swift support has been expanded and
we can now remove references to the swift CLI from this exercise
file. Also made minor improvements to comments.

Change-Id: I04069eb6251f8cbf8266183441b2cfdb64defd7d
2015-11-14 16:16:24 +00:00
Jenkins d9da93ede2 Merge "Neutron-legacy: Remove LINUXNET_VIF_DRIVER option" 2015-11-14 02:51:49 +00:00
Jenkins ed1a3918ab Merge "Replace default route for inet6" 2015-11-14 02:51:39 +00:00
Jenkins 9f733f9dc1 Merge "Add ability to run Nova metadata under Apache2" 2015-11-13 23:55:28 +00:00
Jenkins ba5ba750b2 Merge "change swift post to openstackclient cli command" 2015-11-13 23:10:49 +00:00
Jenkins a2194be12e Merge "Fix stack failure when default subnetpool is set" 2015-11-13 22:42:36 +00:00
Jenkins a3517c198b Merge "refactor zookeeper into a slightly more generic dlm module" 2015-11-13 15:41:24 +00:00
Chung Chih, Hung 65a028bf1c [ceph] Deploy ceph failed at controller node for multiple node
Controller node wouldn't install libvirt package. The package will only
been installed at nodes which had enable nova-compute.
We only need to configure libvirt secret if it had enable nova-compute.

Change-Id: I9cd6baf1820ce9f71c276d7e8b670307833578a5
Closes-Bug: 1515960
2015-11-13 11:12:47 +00:00
Atsushi SAKAI fe7b56cdef Fix typos for stack.sh and lib of comments and message
Fix 10 comments and 1 message

stack.sh
  Certicate => Certificate (comment)
lib/stack
  Sentinal => Sentinel (comment)
lib/neutron-legacy
  overriden => overridden (comment)
  necesssary => necessary (comment)
  notifiy => notify (message)
  notifations => notifications (comment)
lib/rpc_backend
  orginal => original (comment)
  cofiguration => configuration (comment)
lib/stack
  confgured => configured (comment)
lib/swift
  additinal => additional (comment)
  calclution => calculation (comment)
  maximun => maximum (comment)

Change-Id: I3637388b67decb007cd49af9addecc654009559b
2015-11-13 17:28:05 +09:00
Jenkins 4f262a109d Merge "Configure horizon with identity v3" 2015-11-13 05:51:14 +00:00
Jenkins 95fb04f971 Merge "Fix typo in error message printed if ran under virtualenv" 2015-11-12 23:48:19 +00:00
Jenkins 0f1a4aba5e Merge "Fix typos on three comments and one message" 2015-11-12 22:06:23 +00:00
Jenkins 075535d311 Merge "Ensure python is installed" 2015-11-12 22:02:58 +00:00
Jenkins ebbd6f70fd Merge "Remove unused compat variable SCREEN_DEV" 2015-11-12 20:39:55 +00:00
Jenkins 4fe6b36277 Merge "Update comments to reflect current USE_SCREEN usage" 2015-11-12 20:36:34 +00:00
Jenkins 0ab9da1f7b Merge "Ironic: Explicitly allow DHCP ports" 2015-11-12 18:43:38 +00:00
Jenkins 808c2ab90a Merge "Do not remove python-pip package on Fedora-23" 2015-11-12 18:37:30 +00:00
Sean M. Collins 790266f0d2 Delete $IPV6_PUBLIC_NETWORK_GATEWAY IP during cleanup
So that it does not end up being the IP address that is picked to move
back to $PUBLIC_INTERFACE when we call _move_neutron_address_route

Change-Id: I3d29d4f11feff308f6ad5d950ef004b48ec11b67
Closes-Bug: 1514984
2015-11-12 09:14:48 -05:00
Attila Fazekas adcf40d5f8 Ensure python is installed
devstack can call python before parsing the
package requirements, so the python installation
needs to be done eralier.

Closes-Bug: #1488625
Change-Id: I85cca899aeedd741cf7dc695435d61390e260f22
2015-11-12 14:42:58 +01:00
Atsushi SAKAI 33c9a67ead Fix typos on three comments and one message
Fixes typos on three comments and one message
in functions/functions-common

Change-Id: I2c926ca29b284afd4534b92860fa46f248676a83
2015-11-12 19:53:06 +09:00
Jordan Pittier c175040103 Fix typo in error message printed if ran under virtualenv
Commit title says it all. I don't know how you feel about these kind
of commits, I feel like it's a waste of resources but I also feel bad
when I see big/obvious typo.

Change-Id: If048bb2dbad1a0b5a13e56b5fa1e6ea7c01eb05e
2015-11-12 11:25:07 +01:00
Jenkins 1987cfb1be Merge "Remove lib/neutron_plugins/ibm" 2015-11-12 07:19:46 +00:00
Jenkins 209e1e38ea Merge "Install kernel-modules package on fedora" 2015-11-12 06:48:12 +00:00
Huan Xie 201e3c133e XenAPI:Fix problems to support xenserver+neutron
The lack of a CI for XenAPI + Neutron has meant this support has been
broken over time. This is set of one-off fixes that are needed to
reintroduce support while we work towards getting a CI functional

Related-Bug: #1495423
Change-Id: Id41fdc77c155756bda9e2e9ac0446a49f06f0603
2015-11-12 05:54:55 +00:00
Jenkins 336c08005f Merge "docs: Add more networking details to single interface section" 2015-11-12 05:40:25 +00:00
Jenkins fa069b37ec Merge "Add development libraries needed by Pillow" 2015-11-12 03:02:40 +00:00
Tony Breeds 34a5aa5110 Remove unused compat variable SCREEN_DEV
Currently we set USE_SCREEN to SCREEN_DEV if it's set.  There is a
comment to remove it once it's eracticated from CI.

AFAICT this pre-condition has been met.

Change-Id: I1423c8b9c18d1b3e34dbfe1c03be735c646a12b4
2015-11-12 09:56:21 +11:00
Tony Breeds 9329290183 Update comments to reflect current USE_SCREEN usage
In a couple of places the tracking of USE_SCREEN has drifted from the
comments.

Correct that.

Change-Id: I63bdd5ca4de49bf653f5bc8f8e0e5efe67ef605c
2015-11-12 09:56:21 +11:00
Sean Dague 5cad4d3fe9 refactor zookeeper into a slightly more generic dlm module
This attempts to make the zookeeper installation a bit more modular
(assuming that other folks will want to add other dlms as plugins),
and addresses the service start issues with zookeeper under
ubuntu/upstart.

Zookeeper is not going to be installed by default. Services need to
ask for it with use_dlm.

Change-Id: I33525e2b83a4497a57ec95f62880e0308c88b34f
2015-11-11 14:30:12 -05:00
Jenkins 4622fd682e Merge "fail if devstack attempts to be run under virtualenv" 2015-11-11 16:04:09 +00:00
Jenkins db6cb078ae Merge "On Ubuntu: don't start Zookeeper twice" 2015-11-11 13:32:02 +00:00
Jenkins 2e17de1705 Merge "Sort rpm/deb files alphabetically" 2015-11-11 05:13:12 +00:00
Jenkins 7eaeefac80 Merge "Allow screen without logging to disk" 2015-11-11 05:13:07 +00:00
Tony Breeds 2e8695b075 Add development libraries needed by Pillow
Change I8da7dd95ae24cf06dc7bdc300fcf39947a6df093 added Pillow build deps
to nodepool thick slaves.  This means that Pillow 3 will work in unit
tests.

Make the matching change to allow Pillow 3.0.0 to work under devstack.

The longer term aim is to remove temporary upper cap.

Change-Id: I2bec8cf1bfeaaa6ae329704229fdeb86d26e55c7
2015-11-11 12:04:18 +11:00
Richard Theis 7e55068297 doc: Update LBaaS v2 setup for Liberty
- Updated LBaaS v2 setup to use Octavia.
- Removed the old cirros image URL, the default should be sufficient.
- Fixed nova boot commands based on Liberty DevStack.
- Added sleeps to LBaaS v2 commands since most commands
  can take a few seconds to complete.
- Added wait to load balancer creation since it can take
  a few minutes to complete.
- Wrapped long lines in the descriptions.

Change-Id: Ib4a3f02ebc2606e3e16591ae3a23676cb0a6cd64
2015-11-10 16:37:32 -06:00
Jenkins 6a9641753c Merge "Add check for get_packages argument" 2015-11-10 22:04:51 +00:00
Sean Dague 90dd262c19 fail if devstack attempts to be run under virtualenv
This has come up on the mailing list recently, we should just fail
early and explicitly so that people don't get way down this path and
not realize it's never going to work.

Change-Id: I8a7f001adf3a5244b8655858ebd5fc7014a4af55
2015-11-11 08:21:41 +11:00
Sean M. Collins 1650166c25 docs: Add more networking details to single interface section
Add complete localrcs, and also add a section for additional compute
nodes, to help demonstrate the OVS layout and how traffic flows over
VXLAN tunnels from compute nodes, to the L3 node, and out onto the
wire.

Closes-Bug: #1506733

Change-Id: Ibb5fd454bdcb8c13400c1e11f640c2aafc0f73ca
2015-11-10 15:09:35 -05:00
Sean M. Collins 9af81997b5 Only take the first global, non temporary ipv6 address
Taking a temporary IPv6 address created through the OS' support for
Privacy Extensions (RFC 4941) is not very useful. It would occur because
it happened to be the first in the list returned from ip(8). Instead,
grab the first IPv6 address that is not a temporary address.

Related-Bug: #1488691

Change-Id: I7f455572241e7d0c7406f173239a2270a4d8926a
2015-11-10 15:00:20 -05:00
Sean M. Collins 59e86a3aae Replace default route for inet6
When taking the IPv6 addresses from an interface, also update any routing
table entries.

Change-Id: I0424de6c5c1b0fcb7a9bc3fc1475036668cab09d
Closes-Bug: 1514494
2015-11-10 14:57:03 -05:00
Attila Fazekas f6cee0fa20 Install kernel-modules package on fedora
Since f21 the kernel modules are split to multiple packages
and by default just the core modules gets installed.

nova requires iscsi_tcp module for attaching a volume
from any iscsi source (default cinder lvm setup).

On el7 it is not required.

Change-Id: I31705720ade5defd1b6d4b95bc51c2a11a5f0364
Related-Bug: #1429504
2015-11-11 06:38:22 +11:00
Tony Breeds 536b8c1d2c Allow screen without logging to disk
In some niche setups it is desirable to run OpenStack services under
screen, but undesirable to automatically keep a persistent log from
each service.

Add a new variable SCREEN_IS_LOGGING that controls if screen logs each
window to disk automatically.

Ideally screen itself would be configured to log but just not activate.
This isn't possible with the screerc syntax.  Temporary logging can still
be used by a developer with:
    C-a : logfile foo
    C-a : log on

Change-Id: I2a3abf15dea95ae99ddbdfe1309382df601b7d93
2015-11-11 06:21:45 +11:00
Jordan Pittier 04e73e17e8 On Ubuntu: don't start Zookeeper twice
On Ubuntu, if the Zookeeper service is already running, attempting
to start it again fails with non-zero exit code. This patch detects
whether ZK is already started before trying to start it.

Change-Id: If1257152de01fe5fe0351fdbb538bce083edbec0
Closes-Bug: #1513741
2015-11-10 19:01:28 +01:00
Jenkins ef0d320981 Merge "Clear out some duplicate package dependencies" 2015-11-10 14:53:39 +00:00
John Davidge 8a3b7d424d Fix stack failure when default subnetpool is set
Currently stack.sh will fail if a value is set for
default_ipv4_subnet_pool and/or default_ipv6_subnet_pool in
neutron.conf. This is because setting either of these values
overrides the default behaviour of using the implicit (none)
subnetpool for subnet creation, and the subnetpools
specified in neutron.conf have not been created at the time
of the devstack calls to subnet-create.

This patch fixes the failure by specifying subnetpool = None
in calls to subnet-create, so that neutron will behave as
devstack expects. This parameter will no longer be required
once these configuration options are removed in the OpenStack
N release, but will be required for compatibility with Kilo,
Liberty, and Mitaka.

Change-Id: I29b2d62a022b43f6623b127af2ca303f9de847b0
Closes-Bug: #1472200
2015-11-10 14:51:19 +00:00
Jenkins 5c9e6e28be Merge "loop all ebtables tables" 2015-11-10 11:05:51 +00:00
Jenkins 390e2b9544 Merge "Move devlib packages into "general"" 2015-11-09 19:37:59 +00:00
Sean Dague 5c5e08669c loop all ebtables tables
ebtables has 3 built in tables, if we don't call them out we only get
'filter' (per man page).

Change-Id: I52360cbb3b910cb492b61e2314848cc29dcd8266
2015-11-09 14:08:15 -05:00
Jenkins fff4d8ef9d Merge "Write clouds.yaml to only /etc" 2015-11-09 18:37:15 +00:00
Jenkins 70db365592 Merge "Really get the "general" packages" 2015-11-09 13:43:48 +00:00
Sean M. Collins 7ddf6741d2 Neutron-legacy: Remove LINUXNET_VIF_DRIVER option
A value is never assigned, and it ends up in the nova.conf file as:

linuxnet_interface_driver =

So, let's delete it.

Change-Id: Ibc270ce6ee622eee871df1f8c11f21e8be8280ee
2015-11-09 08:08:53 -05:00
Jenkins c2a25a2c8e Merge "Enable devstack for Ubuntu 15.10 Wily" 2015-11-09 10:46:15 +00:00
Ian Wienand 3dac869f80 Cleanup some of the deb/rpm installs
python-devel and the mysql/postgresql client dev-libs should all be
installed globally via the "general" installs; no need to installs
them separately

Change-Id: I91a9ace2e62a891634dbb4635ab2ad8c8dc59f91
2015-11-09 17:27:26 +11:00
Ian Wienand c416d8b94f Sort rpm/deb files alphabetically
This is rather trivial, but it makes comparing the files much easier

Change-Id: I01e42defbf778626afd8dd457f93f0b02dd1a19d
2015-11-09 15:20:22 +11:00
Ian Wienand 7d515b5db8 Add check for get_packages argument
Add a quick check so we don't reintroduce bad arguments as in
Ie1b8d09369281059d21da61b2725a457f708ae9e

Change-Id: Ibebc71791f2743eef64d6f7c2596d54a73ea92aa
2015-11-09 15:04:32 +11:00
Jenkins e5787cb6e9 Merge "Fix two typos on faq.rst" 2015-11-09 02:53:37 +00:00
Sirushti Murugesan c00df207ee Add a more accurate expression for obtaining (IPV6_)ROUTER_GW_IP
neutron port-list returns a dictionary that's of random order in python 3.
This expression sometimes returns a NULL value thus failing devstack.
Add an expression that always returns a consistent ROUTER_GW_IP.

Change-Id: Id23d9afda275051ca68bcba2dfd1b6e30f02c628
2015-11-08 20:55:38 -05:00
Ian Wienand a5e4c0f279 Clear out some duplicate package dependencies
I think these duplicate dependencies came in because we were not
correctly always installing "general" packages (see
Ie1b8d09369281059d21da61b2725a457f708ae9e)

Most of these are just extras for the lxml dependencies; I added zlib
devel to general for glance (seems pretty generic), and then that can
go too, as all other packages are specified.

Change-Id: I44b14ca15c64fad9daf1ac8d851704b02ea2eae0
2015-11-09 12:21:10 +11:00
Ian Wienand a7e0b39a64 Move devlib packages into "general"
The removal of the wheel caching code
(Ia140dc34638d893b92f66d1ba20efd9522c5923b) removed the install of the
"devlib" packages, which was being done with a call in
tools/build_wheels.sh

The idea of "devlibs" and "general" seems to be pretty much the same
thing -- global build requirements.  I have removed the unused devlibs
files, and moved any missing packages into the "general" package
install file.

Change-Id: I8f34a164d6785a122394b42387d4221a7b447ae1
2015-11-09 12:06:18 +11:00
Ian Wienand b8509f09d6 Really get the "general" packages
We are specifying the argument to get_packages incorrectly, so we are
not actually adding the packages in "general" to the list of packages.

In most cases, this is hidden as other more specific plugins/services
request their packages.  However, as
I2dafd32f211fcbc9fff53030d736d97a5f1bb2df shows, not always.  I think
this was uncovered by 5f8133caac

Change-Id: Ie1b8d09369281059d21da61b2725a457f708ae9e
2015-11-09 11:55:56 +11:00
Jim Rollenhagen 63cac536ef Ironic: Explicitly allow DHCP ports
This adds an iptables rule to allow ports 67 and 68. We see
occassionally dropped DHCP packets, which may be causing PXE failures in
ironic jobs.

I'm not 100% confident this fixes the issue, however I don't think it
can break anything and it rules out one theory.

Change-Id: I4630afb6f010a4c2cb146a79264c480c64c6e4b7
Related-Bug: #1393099
2015-11-06 12:37:32 -08:00
Matt Riedemann 6cd616a9ed Disable resize tests in Tempest if using cells with custom flavors
By default, devstack creates it's own test flavors for Tempest runs.

These are not in the cells API database since they are non-default
for nova so any resize tests in Tempest with cells and these custom
flavors fail.

Configure Tempest to not run resize tests if using cells and custom
flavors.

This allows us to also clean up a bunch of the resize skips found
in nova/devstack/tempest-dsvm-cells-rc.

Change-Id: I20f46024e45e32c60275703a193a56ae8cfe7eca
Closes-Bug: #1513925
2015-11-06 10:26:14 -08:00
Sean Dague 5f8133caac remove gratuitous python packages
With pip + upper-constraints we're nearly always over installing all
python packages because we no longer support a range, we support
*exactly* one version.

This removes a bunch of the gratuitous package installs which we're
going to install over, lxml, numpy, libvirt. All of these we had
coming from packages in the past for speed concerns, but upper
constraints removes that.

It also ensures that all the headers to build all those are in
general, so they are guarunteed available at all times.

Change-Id: Ia76de730d65c84d81c4fb2c980ae1b4d595f9f5b
2015-11-06 11:48:19 -05:00
Atsushi SAKAI e9ef0fefa5 Remove lib/neutron_plugins/ibm
SDN-VE on neutron is already removed.
This patch removes SDN-VE from devstack.

Ref.
  Removing the SDN-VE monolithic plugin
  https://review.openstack.org/#/c/217703/
  Remove IBM SDN-VE left-overs
  https://review.openstack.org/#/c/237716/

Change-Id: Ie1b531153d1632798235b1100cdf9b068edcce26
2015-11-06 14:34:42 +09:00
Atsushi SAKAI ec7f490a68 Remove 'enable_service tempest' from sample/local.conf
tempest is already defined in stackrc as default.
Without this definition in local.conf,
tempest is installed successfully.

If it still needs "enable_service tempest" definition
on local.conf,
devstack itself has some problem.
In my environment, tempest installation works
without this definition on local.conf.

Change-Id: I25cda0142538d21bb9656b471e65ca5b018e8378
2015-11-06 13:46:57 +09:00
Atsushi SAKAI e3c2673ae4 Fix two typos on faq.rst
guarunteed => guaranteed
Centos     => CentOS

Change-Id: Id356443fcdc4128ff20d7a89158265aa16c105b2
2015-11-06 13:28:17 +09:00
Jenkins 988389a45a Merge "Zookeeper for DLM scenarios" 2015-11-05 22:21:18 +00:00
Jenkins 1a2f86b3be Merge "Correct Cinder protocol for connections on Ironic" 2015-11-05 22:21:05 +00:00
Jenkins afc9992b0b Merge "keystone: fix prefixed URL" 2015-11-05 22:21:01 +00:00
Jenkins efd86cd6e8 Merge "Remove wrong paramter COMPUTE_API_VERSION" 2015-11-05 22:04:12 +00:00
Jenkins 6b0a3c6745 Merge "Turn off tracing for service functions" 2015-11-05 21:46:38 +00:00
Attila Fazekas 9127c1a56b Do not remove python-pip package on Fedora-23
python on fedora 23 compiled with rewheel support,
in this case the python-pip is a required package, and cannot be
removed.

[1] http://pkgs.fedoraproject.org/cgit/python.git/tree/python.spec?id=3b6fac0339bab69ca5fbf2881568f0565ab0e252#n174

Change-Id: I499b7bec97c4360b32d156079f2b7f3923e3888a
2015-11-05 10:16:52 +01:00
Sean Dague 9013bb0c24 remove wheel cache code
Thanks to lifeless, pip now implicitly has a wheel cache so that it
builds a wheel before every install, and uses that cache. All our
clever attempts at manually doing wheelhouse things is actually
bypassing the existing cache and making things take longer.

We should remove all of this code and just let pip do this thing,
which is does very well, and get out of the way.

Change-Id: Ia140dc34638d893b92f66d1ba20efd9522c5923b
2015-11-04 12:31:39 -05:00
Jenkins 73de4a42d9 Merge "Provide an error message on bogus config file spec" 2015-11-04 15:39:03 +00:00
Davanum Srinivas 33a96ffc26 Zookeeper for DLM scenarios
In Tokyo, there was a cross project session on distributed
key locking:
https://etherpad.openstack.org/p/mitaka-cross-project-dlm

In support of the discussion there, we'll need support for
a zookeeper service in Devstack and ability to use libraries
like Tooz for DLM functionality.

In this review, we pick up some configuration files from
monasca-api and copy the lib/template to implement the
zookeeper lifecycle. Those services that need zookeeper
need to add "zookeeper" in ENABLED_SERVICES.

Change-Id: Icef26e5cdaa930a581e27d330e47706776a7f98f
2015-11-03 12:13:50 -05:00
Davanum Srinivas 0c96c37b5d Enable devstack for Ubuntu 15.10 Wily
Change-Id: I2056fd26d42f29ececc4c38fdd791589ec7037a0
2015-11-03 12:05:13 -05:00
Jenkins c9f6f11265 Merge "Remove Ubuntu 14.10 as supported distribution" 2015-11-03 15:16:04 +00:00
Jenkins 22c9023494 Merge "Use stevedore aliases for interface_driver configuration" 2015-11-03 15:13:25 +00:00
Steve Martinelli a91d455e23 change swift post to openstackclient cli command
with the release of osc 1.8.0, modifying object store account
properties is now available. use this mechanism and avoid setting
environment variable that are only helpful for swift CLI.

Change-Id: Ie51e3e2bb86162763f23d0a6bed36208811f89fc
2015-11-03 20:07:58 +11:00
Jenkins a9b9fca5ef Merge "lib/nova: Remove 'DEFAULT/verbose'" 2015-11-02 20:44:59 +00:00
Jenkins 82fbf336a2 Merge "Remove CINDER_VOLUME_CLEAR value validation" 2015-11-02 20:41:50 +00:00
Martin Hickey dca49de22f Use stevedore aliases for interface_driver configuration
interface_driver configuration was updated to use stevedore aliases.
This patch is to change devstack scripts to now use the aliases
instead of the previous class imports.

Closes-Bug: #1504536

Change-Id: Ic56bfcc1f9da05a999e6fd328e4dd6617e9470ff
2015-11-02 20:33:20 +00:00
Thomas Morin 85f42f698c Provide an error message on bogus config file spec
If local.conf specifies a config file addition in the following way...

[[post-config|$MY_CONF_FILE]]
[xyz]
foo=bar

...and $MY_CONF_FILE points to a file whose directory is not writable by
the user running the script, then stack.sh aborts with the following
obscure message:

  2015-09-01 08:20:08.113 | touch: setting times of '/': Permission denied

This patch modifies inc/meta-config to provide a useful error message,
such as:

  2015-09-01 08:20:08.114 | could not create config file / ($MY_CONF_FILE)

This patch also modifies inc/meta-config so that it provides an error
message if $MY_CONF_FILE is empty (instead of silently ignoring this local.conf
statement):

  2015-09-01 09:38:53.406 | bogus config file specification: $MY_CONF_FILE
  is undefined

Change-Id: I9b78407420318548561012a8672762bc7fdd6db6
Closes-Bug: 1490881
2015-11-02 15:35:01 +01:00
Markus Zoeller c30657d7de Cleanup ReST format issues
* ReST doesn't allow monospace in italic sections.
      bash$ grep -R \`\` doc/build/html/ --include "*.html"
* The code-block section "::" needed an empty line before the code,
  otherwise it gets shown in the HTML output.
      bash$ egrep -R "<dt>::" doc/build/html/ --include "*.html"
* Monospaced font incorrectly marked with a single back tick
      bash$ egrep -nR '\w`(\s|[\.,;:])' doc/source/ --include "*.rst"

Change-Id: I66c3f685f33851c3f3f0f859996037fc24930246
2015-11-02 11:27:46 +01:00
Hirofumi Ichihara 508931ff36 Remove Ubuntu 14.10 as supported distribution
Ubuntu 14.10(utopic) reached end of life[1].

[1]: https://lists.ubuntu.com/archives/ubuntu-announce/2015-July/000197.html

Change-Id: Iab13ca797bda56462d9d117aa500d3ba0d9bebcb
2015-11-02 17:50:31 +09:00
keiji niwa 463a0e6d98 Replace hard-coded --ipv6-address-mode
Looks like this was just a typo in the original
d1498d74db816b3edbb8376ca5acb7cc5792ea5c ; replace with
environment variable

Change-Id: I877c1a570a68e926c91fc8a393217e6b18245f82
2015-11-02 05:04:25 +00:00
Marian Horban 08abba008e Add ability to run Nova metadata under Apache2
This patch allows to run Nova metadata service using Apache
on port 80 under /metadata URL.

Change-Id: I18f3399738c31166eac884a9b0d5c4045d3f445c
2015-11-01 07:47:47 -05:00
Einst Crazy f54f60a63e Delete some comment or messages of keystone_data.sh(removed)
As files/keystone_data.sh has been removed in the commit
https://review.openstack.org/#/c/79366/, we should remove some
related documations and comments.

Change-Id: I7802d0052fa28d8debb7f361d36a4f108869554c
2015-10-30 23:00:57 +08:00
Andrey Kurilin 55a1bca282 Remove wrong paramter COMPUTE_API_VERSION
Since:
 - novaclient doesn't require specify the *compute api* version
  (default is 2.latest now)
 - novaclient doesn't use COMPUTE_API_VERSION, since it's wrong name(
   OS_COMPUTE_API_VERSION is a correct name)

we can remove COMPUTE_API_VERSION and NOVA_VERSION vars

Change-Id: I47856863e9403870b8d60c778b97d3de1a212ae1
2015-10-30 16:36:32 +02:00
Daniel Gonzalez 0ec8080273 Remove multi-region workaround
When keystone API v3 was introduced, filtering regions when listing
endpoints was not supported (see [1]). This caused multi-region devstack
deployments to fail (see [2]). A workaround was introduced to devstack
to enable for multi-region deployments until region filtering would work
in keystone API v3.
Now that the bug related to region filtering in keystone is resolved,
the workaround should be removed.

[1]: https://bugs.launchpad.net/keystone/+bug/1482772
[2]: https://bugs.launchpad.net/devstack/+bug/1483784

Closes-Bug: #1511745
Related-Bug: #1483784
Related-Bug: #1482772
Change-Id: I52d13c3f5e7b77a7f8fb1be4dcea437988ebddfe
2015-10-30 15:01:46 +01:00
Jenkins a9e92c225c Merge "Add the ability to install/enable Heat plugins" 2015-10-30 01:19:46 +00:00
Stephen Finucane 5ea1e16d83 lib/nova: Remove 'DEFAULT/verbose'
The 'verbose' option has been deprecated by oslo_log. Using it
results in a warning for the 'nova-manage' command and likely
many other OpenStack commands.

Change-Id: Icc11b25f56ebc62443c6afa90b9572d5c63b3882
Partial-bug: #1511505
2015-10-29 20:15:29 +00:00
Matt Riedemann cdcdeb6460 Remove CINDER_VOLUME_CLEAR value validation
132fbcd38ebae52bdd20da54905131b75581520f in cinder changed the
volume_clear StrOpt to use the choices kwarg which enforces the value
specified and raises a ValueError if an invalid value is set for the
option in cinder.conf.

This lets us remove the validation that devstack was doing.

Change-Id: Ia7eead6297ed0f3a972de2021170fe9c7225e856
2015-10-29 09:48:17 -07:00
Marian Horban 7159b4ba59 Config graceful_shutdown_timeout option for services
To avoid hanging services during gracefull shutdown option
graceful_shutdown_timeout should be configured.

Closes-Bug: #1446583

Change-Id: I2b7f0df831d65c55ae8cae241478f49c9641d99f
2015-10-29 11:44:12 -04:00
Thiago Paiva abb40f6193 Correct Cinder protocol for connections on Ironic
The protocol for connections with Cinder is wrong for the Ironic script. This
patch changes the script to use $GLANCE_SERVICE_PROTOCOL, which is https when
USE_SSL=true or tls-proxy is on ENABLED_SERVICES.

Change-Id: I4d4c6f9dc6f6ee53166db109848dca64334b8748
2015-10-29 11:38:24 -03:00
Jenkins b37ca0f7b4 Merge "Format of nova-api log files was corrected" 2015-10-29 11:35:29 +00:00
Nicolas Simonds 347dbac04e Add the ability to install/enable Heat plugins
Adds the $ENABLE_HEAT_PLUGINS variable, which should be a list of
the names of the plugins the user wishes to install.

Change-Id: I2ba90002a8fad1cdce6543c89dc37c5912fe133e
2015-10-29 16:12:36 +09:00
Jenkins fd97214a0e Merge "Ensure we disable tenant isolation without admin" 2015-10-29 06:18:03 +00:00
Jenkins ff113c01dd Merge "Disable shelve/snapshot/cinder when running Tempest with libvirt+lxc" 2015-10-29 05:09:35 +00:00
Jenkins 2cee71865f Merge "Remove sudo from mkdir in $STACK_USER folder" 2015-10-29 05:04:55 +00:00
Jenkins f1d34ec8c0 Merge "Prepare neutron "use_namespaces" option removal" 2015-10-29 04:57:27 +00:00
Jenkins 310cedf677 Merge "Use swift port variable in keystone and cinder" 2015-10-29 04:57:22 +00:00
Jenkins c77fc2e196 Merge "Add new oslo.privsep library to oslo repos" 2015-10-29 03:00:30 +00:00
Jenkins fd3af1d8e2 Merge "Update to bashate 0.3.2" 2015-10-29 02:55:48 +00:00
Jenkins 5c38750db0 Merge "Added processing /ec2 URL" 2015-10-29 02:16:50 +00:00
Jenkins 83a2a42ac0 Merge "Add export_proxy_variables() tests to test_functions.sh" 2015-10-29 00:44:54 +00:00
Ian Wienand 5cdee8dd33 Update to bashate 0.3.2
Bashate 0.3.2 has a few new checks -- firstly make sure some of the
plugins have #!/bin/bash, and fix up a couple of "local" changes that
were missed by I9c8912a8fd596535589b207d7fc553b9d951d3fe

Change-Id: I9e4b1c0dc9e0f709d8e76f9c9bf1c9478b2605ed
2015-10-29 11:30:20 +11:00
Matt Riedemann cf94edcbbd Disable shelve/snapshot/cinder when running Tempest with libvirt+lxc
The libvirt+lxc backend in nova does not support shelve, image snapshot
or any volume-related actions (so pretty much anything to do with
cinder), so we need to configure tempest to not run tests that hit those
operations/service when using libvirt/lxc.

This is part of an overall effort to get a CI job running for nova with
the libvirt+lxc configuration per:

Ic07c39e219121ba6b8b20de2b83a193bb735133d

Change-Id: I4decfcc5a5dfbabdecb3eb9fc93f1d1d6c2af805
2015-10-28 13:22:19 -07:00
Oleksii Chuprykov a692810ef0 Add toggle to run Heat API services via Apache2
Add templates for running Heat API services via
apache mod_wsgi. Also add appropriate functions to
lib/heat for configuring Heat.

Change-Id: I1bdd678c44ddfa616a9db7db85ff6f490ff08947
2015-10-28 15:25:17 +00:00
Monty Taylor ee9bb76647 Write clouds.yaml to only /etc
After having migrated the copies of clouds.yaml to just consume from
/etc, remove the duplicate copy.

Change-Id: I036704734785958c95d2234917d7b40bd797a375
2015-10-28 14:28:28 +11:00
Lenny Verkhovsky 313ddaee61 Remove sudo from mkdir in $STACK_USER folder
This fails in the environment where sudo does not have permissions to
write in /home/$USER folder, e.g. [1]

Also clean-up the comment/variable usage a bit; the location isn't
actually variable at all (and that's fine, but we don't need a global
here)

[1] http://144.76.193.39/ci-artifacts/228979/10/Nova-ML2-Sriov/console.html.gz

Change-Id: I6807eae9d1c27219aa7c19de29f24fa851aa787c
2015-10-28 12:18:24 +11:00
Marian Horban 4abb31d9d8 Format of nova-api log files was corrected
When nova-api and nova-ec2-api services are started by Apache
(it can be done with devstack config option NOVA_USE_MOD_WSGI=True)
log files contained duplication of timestamp value.

Change-Id: I5439ea8f89ca3073600456f67220e9d3f5257d97
Closes-Bug: #1510517
2015-10-27 14:41:51 +00:00
Cedric Brandily b814b536c5 Prepare neutron "use_namespaces" option removal
The neutron use_namespaces option is deprecated since Kilo, it's time
remove it from neutron and devstack.

Related-bug: #1508188
Change-Id: I4feb2a15c7e1e4bfdbed2531b18b8e7d798ab3cc
2015-10-27 09:25:42 +09:00
Tony Breeds 7792bc39d4 Add new oslo.privsep library to oslo repos
A new project olos.privsep has been created but failes sdvm testing as
even though the library is added ro PROJECTS and LIBS_FROM_GIT it isn't
installed by devstack.

Add oslo.privsep to the install_oslo function

Change-Id: Ia4d56747d56dcfe50889ebbdf9d553df13e1b950
2015-10-25 17:39:37 +11:00
Falk Reimann 22f747b8df Use swift port variable in keystone and cinder
This patch alows specifiying a deviation of the swift default port 8080 with
variable SWIFT_DEFAULT_BIND_PORT. The created endpoints in keystone for
object-store and the backup_swift_url in cinder.conf will use variable
SWIFT_DEFAULT_BIND_PORT instead of the fixed port 8080.

Change-Id: I47bbcf77368c430718fb8f29b7de1ff305e64422
Closes-Bug: #1489767
2015-10-23 09:19:32 +02:00
Jenkins 0afcac2e01 Merge "XenServer: the cron job shouldn't print debug text into stderr" 2015-10-22 16:44:28 +00:00
Matthew Treinish c148b13c60 Ensure we disable tenant isolation without admin
This commit fixes an issue with the tempest configuration when
TEMPEST_HAS_ADMIN is disabled. Without admin credentials tempest
is unable to create credentials at all so enabling tenant isolation
is not going to work. Previously devstack wasn't setting it one way
or the other when TEMPEST_HAS_ADMIN was set, which results in the
default of being enabled. So jobs that try to run tempest without
admin were failing.

Change-Id: Iff496cb5cbf29f17c130cfad746b48d8547ca965
2015-10-22 10:05:00 -04:00
Marian Horban c49917250f Removed starting of nova-ec2-api service
Since nova-ec2-api service was removed from nova it is not
needed in devstack.

Change-Id: I91d4be02a1a9c2ca4d18256d9a37a5c2559f53b7
Closes-Bug: #1530798
2015-10-22 04:27:17 -04:00
Jenkins 1d7a427029 Merge "modify stackforge/swift3 to openstack/swift3" 2015-10-20 04:29:28 +00:00
Jenkins 4c73964eb5 Merge "Modify the build-wheels.sh to build_wheels.sh" 2015-10-20 04:28:49 +00:00
Jenkins b10c6205d2 Merge "Write clouds.yaml to /etc as well" 2015-10-20 04:02:04 +00:00
Monty Taylor 8f385dde22 Write clouds.yaml to /etc as well
There are more than one user that need to access clouds.yaml values
in tests. Rather than copying the file everywhere, simply output
it to /etc/openstack.

However, we have things copying it at the moment, so output to
both places. A follow up patch will remove the homedir version.

Change-Id: I21d3c2ad7a020a5ab02dc1ab532feae70b718892
2015-10-20 11:54:00 +11:00
Zhang Jinnan 9f6b542a25 change stackforge url to openstack url
beacuse of the stackforge project move to openstack project,
so change the document url to git://git.openstack.org/openstack/.

Change-Id: I1628c0aeb62ee519867fdaee56386e22978c4271
2015-10-20 11:49:18 +11:00
Einst Crazy e3a239b299 Modify the build-wheels.sh to build_wheels.sh
The path is tools/build_wheels.sh, but in the Makefile which is
tools/build-wheels.sh. Modify it to the correct one.

Change-Id: If297b65b539403af10a73adbbadfcd8281d40009
Closes-Bug: #1507699
2015-10-20 01:34:05 +08:00
Einst Crazy cc481740a0 modify stackforge/swift3 to openstack/swift3
As swift3.git has move from stackforge/swift3 to openstack/swift3,
so modify it.

Change-Id: Ieaff4c93889c46c7d4b8ecada1a5d7cf3c775965
2015-10-20 01:19:18 +08:00
Jenkins 80fcf354ed Merge "Restrict requests to fedora" 2015-10-19 16:08:54 +00:00
Jenkins 1c2912d91f Merge "Always use v3 nova/neutron authentication" 2015-10-19 15:48:39 +00:00
Jenkins 0ee76fd661 Merge "Save interactive passwords to separate file" 2015-10-19 15:48:05 +00:00
Jenkins 254264301b Merge "Disable compute interface attach Tempest tests if using cells" 2015-10-19 15:33:59 +00:00
ZhiQiang Fan c581c78c92 add file userrc_early to .gitignore list
After devstack runs ./stack.sh, there is a file named userrc_early
which contains sensitive information is created, we should add it
to ignore list, because it is only for end user debugging.

Change-Id: Ic99c279ec6a3606dc6f6ba9a7612b5ca7a2b6b10
2015-10-18 06:28:25 -06:00
Jenkins 0ba1848167 Merge "Pin bashate and allow for substitution" 2015-10-16 14:00:02 +00:00
Ian Wienand b14f96fb7a Pin bashate and allow for substitution
I want to release a new bashate, but I also don't want to risk
consuming it before fully testing it.  By pinning here, we can run all
our usual CI on new versions before accepting them.

Additionally, allow substitution of the bashate dependency via an
environment variable.  We can use this in a bashate test to substitute
a path to a checkout with any changes applied.

Change-Id: I165c4d66db8b7bdcff235ef7d8c99029637bb76a
2015-10-16 11:47:58 +11:00
Matt Riedemann c94403d8e6 Disable compute interface attach Tempest tests if using cells
Cells doesn't support the os-attach-interfaces API so disable those
tests in Tempest if running with Cells.

Change-Id: I5c7884407868eae70ea125f3f893c73214c04c75
2015-10-15 12:51:13 -07:00
Dmitry Tantsur 5ed8af6713 Fix devstack failure due to incorrect variable assignment
After I9c8912a8fd596535589b207d7fc553b9d951d3fe this approach leads
to a failure and breaks (at least) ironic-inspector gate.

Change-Id: I19bb8ada9a6f42d375838cc88a376715918c2a3e
2015-10-15 16:16:26 +02:00
Jenkins 8ce00acf8a Merge "Simplify RDO install" 2015-10-15 04:17:49 +00:00
Jenkins 48dbc313eb Merge "Improve PLUMgrid Install Endpoints" 2015-10-15 03:02:58 +00:00
Jenkins 7991780098 Merge "Add verification of OVS_PHYSICAL_BRIDGE" 2015-10-15 03:02:53 +00:00
Jenkins 6e9bee1ae5 Merge "Detect blank variable in trueorfalse" 2015-10-15 02:56:19 +00:00
Jamie Lennox 394968fa3d Always use v3 nova/neutron authentication
There is no need to test here whether v2 is disabled or not. V3
Authentication will always be available and we should just use that.

Change-Id: I0d2d76ebdf261917f1a2b23c65f0f843ae50f49a
2015-10-15 00:14:28 +00:00
Ian Wienand 975f4209d0 Save interactive passwords to separate file
The interactive password prompt currently saves to .localrc.auto

However, this is removed when you re-run stack; that is required as it
is how we source the localrc bits of local.conf, and we want the
users' changes to be picked up.

The passwords, however, should remain constant, because everything has
already been setup with them.  So write them to a separate file.  Note
we source before localrc so it can still overwrite them.

Some minor flow-changes too

Change-Id: I9871c8b8c7569626faf552628de69b811ba4dac0
Closes-Bug: #1505872
2015-10-15 10:51:05 +11:00
Mark Hamzy 746e72d4c3 Restrict requests to fedora
The os_RELEASE for RHEL is 7.1 (for example). Which does not work for comparisons
to an integer.  And, while I am at it, change base_path to not use a hard-coded
directory.

Change-Id: I64a04810cc7ba4668c2cb7a8df79c206301e9e16
2015-10-14 13:48:15 -05:00
Jenkins 188b38fc80 Merge "lib/tempest: remove duplicate iniset calls" 2015-10-14 18:36:06 +00:00
Jenkins e67530f846 Merge "HOST_IP should not be used in moving address to route" 2015-10-14 18:32:51 +00:00
Jenkins 6f991a8523 Merge "Revert "Install g-r version of OSC in configure_tempest"" 2015-10-14 12:36:11 +00:00
Yalei Wang 316b348ad6 Add verification of OVS_PHYSICAL_BRIDGE
OVS_PHYSICAL_BRIDGE is not always set, like when you don't need specify the
bridge mapping, and also it has no default value. So we need to add
verification of OVS_PHYSICAL_BRIDGE in cleanup_neutron function where we refer
to it.

Change-Id: I69d113a7f3f7e67b09cb72fa0b0d3bba188e783a
Close-Bug: #1474634
2015-10-14 17:07:58 +08:00
Ian Wienand 8043bfaf5e Turn off tracing for service functions
These functions commonly externally called (as part of stackrc
inclusion, even) and do a fair bit of iteration over long
service-lists, which really fills up the logs of devstack and grenade
with unnecessary details.

The functions are well tested by unit-tests, so we are very unlikely
to need to debug internal issues with them in a hurry.  Thus turn
logging down for them.

Change-Id: I63b9a05a0678c7e0c7012f6d768c29fd67f090d2
2015-10-14 16:36:08 +11:00
Jenkins 46d50a6b8e Merge "Add a debugging userrc after keystone is up" 2015-10-14 03:05:44 +00:00
Jenkins d111182f21 Merge "Don't mix declaration and set of locals" 2015-10-14 02:43:52 +00:00
Jordan Pittier 108b75d7a1 lib/tempest: remove duplicate iniset calls
In Tempest config, `image-feature-enabled deactivate_image` is
enabled twice. This patch removes one of the redundant call to iniset.

Change-Id: Idbfcd6d6ee171c2c83736e17bbaf3d7a32c738b1
2015-10-13 15:51:43 +02:00
Marian Horban 085855479f Added processing /ec2 URL
With config option NOVA_USE_MOD_WSGI=True nova-ec2-api handles
requests on /ec2 URL.

Change-Id: I0c2e99bf8b5e5cf53cd176685b206038a4b0f78b
2015-10-13 04:04:21 -04:00
Tong Li 1d662e86bb HOST_IP should not be used in moving address to route
In neutron-legacy function _move_neutron_addresses_route, there are
few lines trying to figure out the bridge IP by assuming that the
bridge IP will be always same as the HOST_IP, this is not always true.
When the nic bears the HOST_IP and the nic which will be used as the
public network are different nics, the code in that method fails.
Eventually the function fails with network unreachable error.

This patch set fixes the problem, so that when HOST_IP and the IP for
the bridge are different, devstack will still be setup correctly.

Change-Id: I4d67f61c2ffd93f1e8ea2f8fe3b551044fab294e
Closes-bug: #1498538
2015-10-13 07:48:04 +00:00
Jenkins 5a98d4f7d0 Merge "make i local" 2015-10-13 02:12:45 +00:00
Jenkins 9e00fef424 Merge "add pip install timing" 2015-10-13 02:12:33 +00:00
Jenkins aff4606564 Merge "add timing infrastructure to devstack" 2015-10-13 01:58:24 +00:00
Jenkins cae860c9f8 Merge "docs: merge multiple interface sections with provider network section" 2015-10-13 00:03:53 +00:00
Sean Dague cb658fab15 add pip install timing
Change-Id: I368fec44858bd97fc6a314fb20eed2b10932cbb1
2015-10-12 23:10:09 +00:00
Sean Dague 95c33d532f add timing infrastructure to devstack
this adds a timing infrastructure to devstack to account for time
taken up by set of operations. The first instance of this is
accounting the time taken up by doing apt_get calls.

Change-Id: I855ffe9c7a75e9943106af0f70cf715c34ae25c5
2015-10-12 23:08:56 +00:00
Sean M. Collins 887f182fa1 docs: merge multiple interface sections with provider network section
In this guide, multiple interfaces in DevStack is only used when doing
provider networking, so let's go ahead and just put the information
inside the provider network section. That way it won't be confusing.

Change-Id: I66f58ffb936230e72ac4cf8c04668e25dac5b17a
2015-10-12 16:57:13 +00:00
Sean Dague 95d4226c4c make i local
This prevents bleed out of the i variable to other functions that
might call this inside their own iteration loop.

Change-Id: I42d0c287a6f4bb24ae3871de9abb7e0de98a8462
2015-10-12 07:40:04 -04:00
Dmitry Tantsur 64be3210e6 Don't assume that $i variable won't be overriden in extras.d plugins
This causes an incorrect warning about ironic jobs putting an unexpected
file in extras.d.

Change-Id: I57acf91fba3fe13b3cc8dd739034e146a0b237c4
2015-10-12 13:36:30 +02:00
Jenkins 0914d04343 Merge "docs: Move tip about Extension Drivers into misc section" 2015-10-12 03:04:02 +00:00
Jenkins fd1050f2b2 Merge "Perform additional disable_service checks" 2015-10-12 03:03:53 +00:00
Sean M. Collins 611cab4b48 docs: Add IPs to provider net node configurations
Also remove variable definitions from compute node localrc that is only
applicable on the control node.

Change-Id: I37b00611ff08d8973f21af7db340d287b1deb4af
2015-10-09 16:17:18 -04:00
Sean M. Collins 4696db94a9 docs: Add network diagram for provider net section
Change-Id: Id39aaab5a7eadfa3fc09ba3d30c48b452d685904
2015-10-09 16:38:48 +00:00
Chris Dent c6d470142e Perform additional disable_service checks
With the advent of plugins and their settings files it has become
possible to disable_service in local.conf only to have the service
re-enabled in a plugin settings file. This happens because of
processing order.

To get around this the disable_service function now aggregates
service names into a DISABLED_SERVICES variable which is then checked
during enable_service. If something tries to enable something that
was previously disabled, a warning is produced in the log and the
service is not enabled.

Then after all configuration has been sourced a final check is to
done by verify_disabled_services to confirm that something has not
manually adjusted ENABLED_SERVICES to overcome a previously called
disable_service. If something has, the stack dies with an error.

Change-Id: I0f9403f44ed2fe693a46cd02486bd94043ce6b1a
Closes-Bug: #1504304
2015-10-09 16:34:32 +00:00
Sean M. Collins d8aa10e583 docs: Move tip about Extension Drivers into misc section
Change-Id: Ifd458495992a0fd1b7437c315b4fe45906830cb1
2015-10-09 12:21:30 -04:00
Jenkins b2b82a0f34 Merge "Move $DEST creation after logging setup" 2015-10-09 13:58:23 +00:00
Sean Dague 022c6672ce Revert "Install g-r version of OSC in configure_tempest"
This reverts commit 1fa82aab66.

Change-Id: I931756e6d534839a6c9fb3cc6f5dc32c9a1e6436
2015-10-09 11:20:49 +00:00
Jenkins 434d1b6e18 Merge "don't install root filters when Q_USE_ROOTWRAP is false" 2015-10-09 11:13:47 +00:00
Jenkins 19b09e6d37 Merge "Updated configuration and docs for MYSQL_PASSWORD" 2015-10-09 11:13:38 +00:00
Jenkins 8b0f5428f0 Merge "provide devstack lockout with .no-devstack file." 2015-10-09 11:03:44 +00:00
Ian Wienand e82bac0498 Detect blank variable in trueorfalse
As a follow-on to I8cefb58f49dcd2cb2def8a5071d0892af520e7f7, put in
some detection around missing variable-to-test arguments in
trueorfalse.

Correct a couple of places where we were passing in blank strings,
resulting in the default always being applied.

Add test-cases and enhance the documentation a little.

Depends-On: I8cefb58f49dcd2cb2def8a5071d0892af520e7f7
Change-Id: Icc0eb3808a2b6583828d8c47f0af4181e7e2c75a
2015-10-09 19:07:50 +11:00
Jenkins c1561f84fb Merge "make curl fail on pypi errors" 2015-10-08 18:04:31 +00:00
Sean Dague 56037e9a6e provide devstack lockout with .no-devstack file.
This lets you specify that devstack should not be run by the user on
the box that you are on. Helps with running commands in the wrong
window.

Change-Id: I7aa26df1a2e02331d596bbfefb0697937787252f
2015-10-08 12:27:07 -04:00
Jenkins 78bbc5df35 Merge "Ignore bashate long-line warnings (E006)" 2015-10-08 16:12:37 +00:00
Jenkins e148587c35 Merge "remove corrupt get-pip.py" 2015-10-08 13:16:45 +00:00
Jenkins e3fe3fd838 Merge "Don't set xtrace directly in local call" 2015-10-08 11:45:17 +00:00
Sean Dague fa41b5b47e make curl fail on pypi errors
This will make curl fail on pypi errors, and should prevent corrupt
images from pypi going offline for a few hours randomly, which it does
from time to time.

Closes-Bug: #1503909

Change-Id: Ib4a740b7d1772e1e36aa701e42d3ac0f0ee12883
2015-10-08 06:06:34 -04:00
gong yong sheng 3d6eaae21c don't install root filters when Q_USE_ROOTWRAP is false
Change-Id: I2f6edfcfb3789310fbeea8a509e0d9a13428becc
Closes-bug: #1495822
2015-10-08 18:03:18 +08:00
Sean Dague 0280f6f6c8 remove corrupt get-pip.py
If get-pip servers fall over and return 503 for a few hours (which
they do medium regularly) we'll cache crud html, and everything will
suck. We know this script should be python, so if it isn't, delete it.

Change-Id: Ia9f6f7c7217939bc1ab5745f4a9d568acfbf04c8
2015-10-08 05:56:14 -04:00
Einst Crazy 9e11e098c3 Move $DEST creation after logging setup
Setup the log output before calling functions like
check_path_perm_sanity that want to write out to
the error log.

Change-Id: I9815965257c399a48f8cf0f344814d954137aecb
Closes-Bug: #1500834
2015-10-08 17:00:59 +08:00
Swapnil (coolsvap) Kulkarni c988bf6fde Updated configuration and docs for MYSQL_PASSWORD
Updated MYSQL_PASSWORD to DATABASE_PASSWORD in sample
configuration and existing docs

Change-Id: Iafb295a0b7707e08a81e6528620db8543d40f7ae
2015-10-08 14:21:58 +05:30
Jenkins c756b5b5d4 Merge "Remove explicit support for OneConvergence plugin" 2015-10-08 06:05:32 +00:00
Jenkins 40643a52f0 Merge "build_docs: do not handle md and conf files with shocco" 2015-10-08 06:05:08 +00:00
Jenkins ee2b5d0c62 Merge "fix warning in install_get_pip" 2015-10-08 06:04:59 +00:00
Jenkins 0d7343107a Merge "use deprecated function instead of modifying global" 2015-10-08 06:04:54 +00:00
jianghua wang 797668ba77 XenServer: the cron job shouldn't print debug text into stderr
one cron job attempts to print debug text into stderr; so the file
of /root/dead.letter gets created and its size grows continuously.
It could eventually threaten dom0 disk space. Maybe there are two
solutions: one is to redirect the output to a specific log file;
and rotate log files in the script. And the other one is simply
to redirect the output /dev/null. By considering the function of
this cron job and the printed contents are straight and simple,
this patch set goes with the later solution.

Change-Id: I4875e5e3837e6f0249e314c6c5f408c79145c6c1
Closes-Bug: 1503966
2015-10-08 06:56:25 +01:00
Jenkins d111c2174e Merge "add big warning for extras.d usage" 2015-10-08 05:42:48 +00:00
Jenkins ca9f00874a Merge "Add Barbican to plugin registry list" 2015-10-08 05:38:00 +00:00
Ian Wienand 7adf15df5c Add a debugging userrc after keystone is up
As a follow-on to the issues raised by
I069f46f95656655ae7ba8f3dd929f47eae594b68, rather than a re-write of
create_userrc.sh logic, create a temporary userrc that can be helpful
for debugging until we have the whole system bootstrapped

Change-Id: I3325acffd259cf7f6f4a153c88037cfe8405ca50
2015-10-08 10:12:34 +11:00
Jenkins d1ddc5396a Merge "Enable CSV logging output for DStat." 2015-10-07 23:11:57 +00:00
Dave McCowan 33e3969081 Add Barbican to plugin registry list
Barbican can now be installed with devstack via:

enable_plugin barbican https://git.openstack.org/openstack/barbican

Change-Id: I81af04bb6600d1e58590c39efdc2c0c91563321d
2015-10-07 17:07:52 -04:00
Jenkins 17491f37d7 Merge "Revert "Revert "Convert identity defaults to keystone v3 api""" 2015-10-07 19:30:18 +00:00
Sean Dague a0cc2918ad fix warning in install_get_pip
we were unconditionally adding -z to the curl command even if the file
doesn't exist that we are referencing. That produces a scary warning
for users. Lets not do that.

Change-Id: Id2860c1c702510b0f8fd496abce579d0fa3ff867
2015-10-07 15:15:16 -04:00
Sean Dague 72ad942796 use deprecated function instead of modifying global
It's safer to run this through a common function to let us make
changes later.

Change-Id: Ic661824027577e1946726c1843a29ac8325915bf
2015-10-07 15:15:16 -04:00
Sean Dague 1de9e330de add big warning for extras.d usage
This adds a warning for extras.d usage. This will give us something to
keep an eye on in logstash to build up the list of projects that will
break at Mitaka-1.

This also makes the deprecated handling done through a function, which
will hopefully make it more consistent in the future.

Change-Id: Icd393bc3e7095fe58be0fd13ef74fece3aa5c5f1
2015-10-07 15:15:16 -04:00
Jenkins 0989cf9512 Merge "Nano and Micro flavors should run really small cirros only" 2015-10-07 16:44:16 +00:00
Christian Berendt 056a0c6bbc build_docs: do not handle md and conf files with shocco
At the moment the following md and conf files are handled with shocco.
This should not be the case.

* samples/local.conf
* lib/neutron_thirdparty/README.md
* lib/neutron_plugins/README.md

Change-Id: I11ea5ebda111e6cdab71d3cffaeb4f16443bfd3c
2015-10-07 18:11:46 +02:00
Ian Wienand ada886dd43 Don't mix declaration and set of locals
Ia0957b47187c3dcadd46154b17022c4213781112 proposes to have bashate
find instances of setting a local value.  The issue is that "local"
always returns 0, thus hiding any failure in the commands running to
set the variable.

This is an automated replacement of such instances

Depends-On: I676c805e8f0401f75cc5367eee83b3d880cdef81
Change-Id: I9c8912a8fd596535589b207d7fc553b9d951d3fe
2015-10-07 17:03:32 +11:00
Ian Wienand 433a9b10dd Don't set xtrace directly in local call
Ia0957b47187c3dcadd46154b17022c4213781112 detects setting local
variables with subshell commands.

Although this is a particuarly benign case, it trips the test.  Rather
than putting in an ignore for this, we can easily change it to make
the test pass.  This seems better than putting in special work-arounds
to bashate, etc.

Change-Id: I37c3967c0f2d780a636a7d26cda83755085c5c69
2015-10-07 16:54:29 +11:00
Jenkins 1e7be9f9ea Merge "Change the default bind_port for swift" 2015-10-07 03:23:46 +00:00
Jenkins 286cc05973 Merge "Move the firewall disable section into a misc section" 2015-10-07 03:23:40 +00:00
Jenkins 561137e88a Merge "update faq entry about running other branches" 2015-10-06 20:42:55 +00:00
Sean M. Collins 872a2622b9 Move the firewall disable section into a misc section
It broke the flow of the section it was in.

Change-Id: I4c6ec7ccbe7e856600037eb5a3a73863319aa232
2015-10-06 12:45:44 -04:00
Ihar Hrachyshka bb4654b869 Don't configure neutron metadata agent for neutron API access
Metadata agent now talks to neutron-server thru AMQP, so there is no use
for API access configuration.

Change-Id: I8f81eea91fe3448d5098e77312f64f2eaba68a68
Depends-On: I254c575c66214f50fb93a94c46c4c9caebfc2937
Closes-Bug: #1502947
2015-10-06 18:26:53 +02:00
Jenkins b041819856 Merge "Workaround potential failure to shutdown services" 2015-10-06 13:57:12 +00:00
Rafael Folco f0131e14b8 Nano and Micro flavors should run really small cirros only
Guests with large memory requirements can use default flavors, so
removing the special flavor for ppc64 since new qemu requires more
memory - http://wiki.qemu.org/ChangeLog/2.4 - PowerPC.
Users should set DEFAULT_INSTANCE_TYPE to one of the default
flavors available in local.conf, as m1.tiny.

DocImpact

Change-Id: I0fd275dc7342cc2daa83e9a2bd79d30e7defa3e4
2015-10-06 08:52:13 -05:00
Ian Wienand f80c37dd47 Ignore bashate long-line warnings (E006)
Since Ic2532676e46e93f129d590d1fa7a044ef65f50fb bashate warns on
long-lines.  Traditionally, for whatever reason, devstack hasn't cared
too much about long lines unless it really damages readability.

So ignore this to avoid thousands of warnings on the long lines.  Note
even though released bashate doesn't have this, ignoring a missing
test doesn't matter.

Change-Id: I16aeaa3b334fac1eec5085f2cfe26c81c53023a8
2015-10-06 20:19:38 +11:00
armando-migliaccio c961e791c1 Remove explicit support for OneConvergence plugin
This is being removed from the Neutron tree, so there is
no need to keep it here anymore.

Change-Id: Ice869bc445cb9dab6f227c30d38fb9b7ba04442b
Depends-on: I949a51873ee5af654b577952d423dd29a6ced8e7
2015-10-05 16:51:33 -07:00
Sean Dague 1759618adb update faq entry about running other branches
Change-Id: I4f982f9050024245c4a656e9535d4fdfb4413f36
2015-10-05 15:26:43 -04:00
Jenkins c4564dfbe6 Merge "Install python db client if a db backend is configured" 2015-10-03 22:58:35 +00:00
Denis Afonso dbe0868d11 Change the default bind_port for swift
The default bind_port (6011-6013) in the sample config files for swift
use port numbers that are in the range registered by X11 (6000-6063) and
can prevent swift from starting if the ports are in use.

We should use an unregistered range (6611-6613).

Change-Id: Ifd95b99004aead5ddc8ae1a8dd3ccd9c4f2abe91
Closes-Bug: #1254328
2015-10-02 23:51:41 -04:00
Dan Smith ce7246a34b Workaround potential failure to shutdown services
Kill them twice to make sure they're good'n'dead. There is a supposed
fix to oslo-incubator code, but we're working around that here in the
meantime with this change.

This returned in Liberty.

Change-Id: I02a7af995dc7de857c4efcf2cef2f95d357c007a
Related-Bug: #1446583
(cherry picked from commit 953baa7998f253681ed31013fd18bd8aa8098b34)
2015-10-02 06:27:43 -04:00
Aaron Rosen bd5e6b1659 Remove unnecessary execute permissions
These files have acquired execute permissions that
are not strictly necessary because they are being 
sourced, and not intended to be run separately.

Restore to 644

Change-Id: I0b8654123416a07521502b61610ca45c94494a07
2015-10-01 21:01:35 +00:00
Jenkins f4485bae9c Merge "Cleanup nova v2.1 API testing options" 2015-10-01 07:14:41 +00:00
Jenkins ace1e8f9b4 Merge "Fix tunneling support for linuxbridge-agent" 2015-10-01 01:28:01 +00:00
Jenkins 449c467135 Merge "Add toggle to run Cinder API under Apache" 2015-09-30 21:24:38 +00:00
Jenkins 97946a313f Merge "Additionally install test-requirements with pip_install" 2015-09-30 16:18:03 +00:00
Jenkins afe5074cdd Merge "use nproc/2 workers for large ops job" 2015-09-30 15:17:41 +00:00
Jenkins 0a4cbde358 Merge "Revert "Disable Cinder v1 API support by default"" 2015-09-30 13:22:23 +00:00
Sean Dague 36218e6c50 Revert "Disable Cinder v1 API support by default"
There has been a ton of fall out from this change, and I 
think it's been premature. We should revert and try again
when more of the client space supports this.

This reverts commit a29434460e.

Change-Id: I1658dc48a024627be0fdb39c46137aaa3d9b911a
2015-09-30 10:34:09 +00:00
Sirushti Murugesan 713fd2f6c6 Additionally install test-requirements with pip_install
When moving to Python 3, we also need to install test-requriements
to allow projects to install any python 3 test dependencies they
might be missing otherwise.

Change-Id: I2d19aa2f7ec8de869a82aa7764ab72cc8693101f
2015-09-30 15:24:59 +05:30
Nick c295bca61f Fix tunneling support for linuxbridge-agent
When I deploy linuxbridge-agent and enable tunneling,
the configuration of neutron isn't right. It lacks
the whole section [vxlan] to be properly configured.

Change-Id: Ib3bfe0f3445f466f4dbb36f7f0cb0d940114e7f6
Closes-Bug: #1481126
2015-09-30 10:33:43 +10:00
Steve Martinelli 050a0d5b30 Revert "Revert "Convert identity defaults to keystone v3 api""
This reverts commit f768787bdd.
And sets OS_AUTH_VERSION so swift CLI doesn't fall flat when
not using v2 keystone

Change-Id: If44a7e0d85e48020a3c90d8c5c027513129f0f3b
2015-09-29 19:52:28 +00:00
Olivier Lemasle 7dd890d6e1 Install python db client if a db backend is configured
If `DATABASE_TYPE` is configured in `local.conf`, the database backend
is currently configured with `initialize_database_backends` even if no
database backend is enabled.

On a multi-nodes Devstack environment, such as devstack-vagrant, the
compute node currently fails because it does not have PyMysql. This
compute node has no database backend enabled, but has to connect to
the database on another node.

We should install the python client if DATABASE_TYPE is set, even
if no database backend is enabled.

Closes-Bug: 1501001
Change-Id: Iffd5f7243a0dfdbe56cf6b9a87b96ed7678c81dd
2015-09-29 21:05:20 +02:00
Matt Riedemann c35eee5dbb use nproc/2 workers for large ops job
Commit 1ce19ab76d dropped API_WORKERS from
nproc/2 to nproc/4 and also started using API_WORKERS for the number of
conductor workers, so in gate runs that dropped conductor workers from 8
to 2.  We're now seeing instance build timeouts in the large ops job.

This change goes back to nproc/2 for the large ops job (VIRT_DRIVER=='fake').

Closes-Bug: #1500615

Change-Id: Ie6ef855fce0a99c930d479b7459c15b69e8de499
2015-09-29 06:45:29 -07:00
Chris Dent d2999d0d0c Add ceilometer to plugin registry
Ceilometer is now removed from devstack and only exists as a plugin
so it should be in the registry.

Unfortunately the length of the URL changed the table formatting so
the diff is much larger than the semantic change.

Change-Id: Ibe8e27e97294c2d13be8f22f41eea27775811eec
2015-09-29 10:02:32 +00:00
Jenkins 8e2597fa79 Merge "Propagate OVS_DATAPATH_TYPE to ml2_conf.ini" 2015-09-28 21:06:18 +00:00
Jenkins f5255eb1c7 Merge "Improve ERROR_ON_CLONE message" 2015-09-28 21:06:08 +00:00
Jenkins 0cb86e15f2 Merge "Disable Cinder v1 API support by default" 2015-09-28 21:06:03 +00:00
Jenkins dae0e463b8 Merge "Fix return value of get_or_add_user_project_role" 2015-09-28 21:05:58 +00:00
Jenkins 1de69ff47d Merge "Removed unused TOKEN from upload_image" 2015-09-28 20:46:25 +00:00
Jenkins b27ab6fb25 Merge "stackrc set the LC_ALL to C" 2015-09-28 20:19:43 +00:00
Jenkins f845b22a45 Merge "Remove ceilometer in favor of plugin" 2015-09-28 17:49:32 +00:00
Anton Arefiev 651cb1ad75 Add toggle to run Cinder API under Apache
This change adds apache templates for Cinder API services.
Also add possibility to switch between the old and new ways
to setup Cinder API.

Related Cinder blueprint:
 https://blueprints.launchpad.net/cinder/+spec/non-eventlet-wsgi-app

Change-Id: Icfad40ee6998296727a95613199e5c2d87bd0a45
Depends-On: Ifbab059001d1567b1f7b394c0411a9ca4629f846
Co-Authored-By: Ivan Kolodyazhny <e0ne@e0ne.info>
2015-09-28 15:01:03 +00:00
Jenkins 983c07c297 Merge "tools/Xen: failed to install domU in new XenServer" 2015-09-28 09:56:42 +00:00
Jenkins c59b39a415 Merge "Mention ironic-inspector in plugin-registry docs" 2015-09-28 03:29:39 +00:00
Einst Crazy f327b1e119 stackrc set the LC_ALL to C
It will report 'unknown locale: UTF-8', when the env is UTF-8.
Default set the LC_ALL to C in the stackrc, instead. And delete
the duplicate option in stack.sh.

Closes-Bug: 1499296

Change-Id: I14121b25ac314a1a93e6dd6811e196ce2a7c0eb5
2015-09-28 11:23:03 +08:00
venkatamahesh 3c68501356 Replace the devstack.org with devstack docs url
Change-Id: I870300b90e1e5f4f382238c209fc5416914d49f0
2015-09-26 18:05:34 +05:30
Jenkins 767c729833 Merge "Don't use python with run_process" 2015-09-25 11:50:22 +00:00
Ian Wienand 1eca508c57 Simplify RDO install
We can just directly install the latest RDO repo rather than having to
keep this up-to-date.  I don't think there is actually much there we
need any more; there was a lot more coming from RDO in the centos6
days.  openvswitch is one big one, however.

Change-Id: I42b8bc1aea8ff61770987eecd5fc3b8309c1e210
2015-09-25 13:28:58 +10:00
Jenkins 9f6b7eb3e5 Merge "attempt to cut api workers in half" 2015-09-24 19:31:52 +00:00
Michal Ptacek c1605550d9 Propagate OVS_DATAPATH_TYPE to ml2_conf.ini
If OVS_DATAPATH_TYPE is configured it should be visible in ML2 config

Changing OVS_DATAPATH_TYPE default value to 'system' from ''

Closes-Bug: 1499029
Change-Id: I88e7d2554e8a1d6dcfea71fc1fb8e9fb2491d8b7
2015-09-24 17:45:08 +01:00
Kashyap Chamarthy 8872545a0f worlddump: Use SIGUSR2 instead of SIGUSR1
The function guru_meditation_report() currently uses the User-defined
signal SIGUSR1 to kill a Nova Compute process so that a Guru Meditation
Report is generated.

Testing locally, in a DevStack instance, manually attempting to kill a
Nova compute process [kill -s USR1 `pgrep nova-compute`] does not result
in process being terminated, and no error report generated.

It turns out[1] that SIGUSR1 is used by Apache 'mod_wsgi'.

Using the signal SIGUSR2 resolves this issue (i.e. 'nova-compute'
process is terminated, and the Guru Meditation Report is generated).

So, use USR2, instead of USR1.

Corresponding oslo.reports related commit[2].

[1] https://code.google.com/p/modwsgi/wiki/ConfigurationDirectives#WSGIRestrictSignal
[2] 45b1c02d113051d147e54ef921ce8e94135542d8 -- guru_meditation_report:
    Use SIGUSR2 instead of SIGUSR1
[3] Original DevStack commit that brought in this change --
    2ebe993b25

Change-Id: I8a7eaf71b83edca3c80074d6bf2d471e3db6142b
2015-09-24 18:41:15 +02:00
James E. Blair ebe63d826b Improve ERROR_ON_CLONE message
In case ERROR_ON_CLONE is true and triggers a failure for a missing
project, suggest a remedial action.  On their own, people have
come up with remedies that include altering the value of ERROR_ON_CLONE
which rather defeats the purpose.

Change-Id: I28d7f2c184f8440b774fefaa8ec7002d6708db95
2015-09-24 09:26:01 -07:00
Dmitry Tantsur 1c42846a62 Mention ironic-inspector in plugin-registry docs
Change-Id: Ia508a3af5a65e4fbf34dd8b9ae537ca133358fa3
2015-09-24 16:51:50 +02:00
Sean Dague 1ce19ab76d attempt to cut api workers in half
One of the key reasons for the large number of API_WORKERS was that
mysql would block API workers, so would start rejecting work. Now with
the python mysql driver we should be eventlet aware, and life should
be good.

Let's see if this works.

Change-Id: Iaf8730a4dcdc30ef390795bfb5fb73ec3cd665fe
2015-09-24 07:52:48 -04:00
Davanum Srinivas 59756e990c Don't use python with run_process
First noted in change id by fumihiko and kyle:
I079e18b58b214bf8362945c253d6d894ca8b1a6b

Neutron and few others seem to use an extra "python" along
with run_process which is quite unnecessary and complicates
adding python3 support in devstack. So let's clean this up.

Change-Id: I2d478f2b04c04d05c18420563e2ad77eba73be3f
2015-09-24 10:34:41 +00:00
jianghua wang 78f6c1d70b tools/Xen: failed to install domU in new XenServer
Current install_os_domU.sh depends on some keywords which are changed in the
next version XenServer which is upgraded to CentOS 7. So with the existing
script to install domU in the new version XenServer, it will always fail.
This patch is to make it to be compatible with all XenServer versions:
1. the output format of "ifconfig" is changed; the fix is to use the ip
   command to retrieve IP address.
2. In XS 6.5 and the previous XS, the "xe-guest-utilities" package file name
   is as "xe-guest-utilities_<version>_<arch>.deb" but now it delivers a
   single file for all Arch's and the file name is
   "xe-guest-utilities_<version>_all.deb". In order to make it to be
   compatible, the fix will try to search the old file name pattern by
   default. If it does't exist, then try to search the new file name pattern.

Change-Id: I893e89e42a5ef7dd079b571ea308f318c9befc9e
Closes-Bug: #1494241
2015-09-24 09:07:26 +01:00
Jenkins b6249dc2ad Merge "Add manila to devstack plugin registry" 2015-09-23 10:28:14 +00:00
Andrey Pavlov 5090142969 Revert change I2f8ae86e17d26ec4defa16e843faa8987d27fac9
The commit breaks creation of user rc file.
Now devstack doesn't create certificate for user
(because it's too early to do it) and doesn't react
to changes of EC2/S3 urls if they is recreated by devstack plugins.
So the commit totally broke ec2-api gating for example.

Change-Id: I069f46f95656655ae7ba8f3dd929f47eae594b68
2015-09-22 22:59:46 +03:00
Peter Stachowski 5aeea6ae3e Removed unused TOKEN from upload_image
Changeset https://review.openstack.org/#/c/225426/ changed how images
were uploaded into Glance, however the (now) unused TOKEN variable
and function argument to upload_image remained.

These have been removed.

Change-Id: I9910c469f72d52e56111048cc24ea3c992c1d480
2015-09-22 19:40:40 +00:00
Roxana Gherle 50821bed08 Fix return value of get_or_add_user_project_role
get_or_add_user_project_role function was always returning an
empty user_role_id because the role assignment command does not
return any output. Added a command to get the user_role_id after
the assignment happens.

Closes-Bug: #1498599
Change-Id: If1b77eef0d4f0ebdcdf761ecb5e2011484f73871
2015-09-22 11:11:36 -07:00
Roxana Gherle 59c6377ae5 Assign admin role for admin user on default domain
This patch adds an admin role assignment for the admin user on
the default domain as part of the Keystone configuration stage.

Closes-Bug: #1494081
Change-Id: I91c88917bd51be4572e4970c94e65d866798df26
2015-09-22 10:15:28 -07:00
Clinton Knight 91b7fa134c Add manila to devstack plugin registry
Manila has had a devstack plugin since Kilo.  The registry should
reflect that.

Change-Id: I910198495e98b6f8d92c4880d1bee0c16d6c1559
2015-09-22 09:42:31 -07:00
Jenkins c4c08686f8 Merge "Ironic: Fix tag ID detection of tap devices" 2015-09-22 13:09:41 +00:00
Jenkins debd216a73 Merge "Fix is_service_enabled when using multiple arguments" 2015-09-22 13:03:54 +00:00
Jenkins fa88c89134 Merge "VMware: remove configuration integration_bridge from nova" 2015-09-22 13:01:47 +00:00
Jenkins c9df10fcc0 Merge "lib/nova: make redirects happen in correct order" 2015-09-22 09:04:22 +00:00
Jenkins c64b16ce7f Merge "Fix typo: falure => failure" 2015-09-22 07:18:01 +00:00
Julien Danjou 382f982e51 keystone: fix prefixed URL
Commit 2ad1a42ca6 broke entirely the
Apache configuration for Keystone when used without a port on the
/identity URL. This patch fixes that.

Change-Id: I47805138c66456c9c5fa9af1f4ac33b03d0ce5b9
2015-09-22 07:04:18 +00:00
Jenkins 0ddd92a235 Merge "Fix typo" 2015-09-22 04:18:54 +00:00
Monty Taylor 31c313d3a3 Use normal API not token/endpoint for image uploads
There is no reason to use keystone token bootstrapping for image
uploads. Glance is a service, and images can be uploaded to it normally
without special shenanigans.

Depends-On: If7b81c4a6746c8a1eb0302c96e045fb0f457d67b
Change-Id: I7092fb10cbe243e091789134263fab081af0c7f4
2015-09-21 15:45:33 -05:00
Monty Taylor 7224eecb98 Extract writing clouds.yaml to function
It's a bit wordy to be directly in stack.sh and not in a function.

Change-Id: Ibddfd8018d861191f1b1dc3270e0e81c274733cd
2015-09-21 15:45:23 -05:00
Monty Taylor 16a2d64f37 Move writing of credentials earlier in the process
If something goes wrong after keystone is running with services
registered, but before credentials are written, it's hard to poke at the
existing half-running state because none of the auth information is
recorded.

Write the files right after we're done bootstrapping keystone.

Change-Id: I2f8ae86e17d26ec4defa16e843faa8987d27fac9
2015-09-21 15:45:13 -05:00
dieterly bf9f9a5942 Fix typo
Change 'This' -> 'These'.

Change-Id: If2f8f92d3adbb8fe4556e5c3ec53e4da31d02d49
2015-09-21 13:24:00 -06:00
Wei Jiangang e3340f1fe6 Fix typo: falure => failure
Change-Id: Ic1a53eec71d5e20194505aa8655a99b2fedd7632
2015-09-21 17:53:08 +08:00
Wei Jiangang 91e3c1ec9a lib/nova: make redirects happen in correct order
It should redirect stdout to /dev/null firstly,
then redirect stderr to whatever stdout currently points at.

Change-Id: I4666fa90a96301f0b504a8501f0ffc3fe17616b0
2015-09-21 17:51:02 +08:00
Christian Berendt 2a16b51264 registry: list mistral project
Change-Id: Icbc73b3df9cedf9bd228c23b20aebf9b69c4a39c
2015-09-21 15:32:21 +10:00
Jenkins 3d365ad165 Merge "Clarify new header configuration syntax" 2015-09-21 01:20:06 +00:00
Christian Berendt 261d100809 registry: list rally project
Change-Id: I29ec5693ad1e2c3edd5a8ed2d18a4433e4eee627
2015-09-19 18:44:29 +02:00
dieterly 7c7679ecc9 Clarify new header configuration syntax
Make it clear that there are no spaces in the
new header section.

Change-Id: I69c14017820621a3aea75e41960ac3758f7e4835
2015-09-18 15:31:07 -06:00
Fawad Khaliq 193d8a6e7c Improve PLUMgrid Install Endpoints
PLUMgrid Plugin has moved out of Neutron tree and it's new
home is openstack/networking-plumgrid[1]. With core vendor
decomposition reaching completion, this change moves
PLUMgrid Plugin install to an external DevStack plugin
for better integration.

[1] https://github.com/openstack/networking-plumgrid
[2] http://docs.openstack.org/developer/neutron/devref/contribute.html

Change-Id: I5bd6d8f611c2a134f2e8f14c074c1a4185d9c522
2015-09-17 01:20:35 -07:00
Flavio Percoco 624ab1e65d Remove Zaqar from devstack
Zaqar's devstack code has been moved into a plugin in the Zaqar repo.
This patch removes the remaining code from devstack.

Depends-On: Iceefabb6cd528b23075a91e8039b8264eb3f33f5
Change-Id: Ifcf54fa2d4a5bf49b6757b593bb70cdeda8edb2a
2015-09-15 14:38:35 +02:00
Ivan Kolodyazhny a29434460e Disable Cinder v1 API support by default
Cinder API v1 will be removed Mitaka so we don't need to setup it be
default.

To enable Cinder API v1 you need to set CINDER_ENABLE_V1_API=True in
your Devstack config.

Related-Bug: #1467589

Depends-On: I6916eb3e4b7c85f37be8b365b11ca8b48f88177c
Change-Id: I0754e357433cfcd9fde7e937a4a1b440580b6289
2015-09-15 13:38:19 +03:00
Jenkins c00e39901b Merge "Fix typos in stackrc and unstack.sh" 2015-09-15 03:17:15 +00:00
Wei Jiangang be65c6f88d Fix typos in stackrc and unstack.sh
Componets => Components
pluggins => plugins

Change-Id: I82634a55fd5895599099c94817af7d8d2f602859
2015-09-14 18:55:07 +08:00
Jenkins 7d4485ce54 Merge "Fix the FLOATING_RANGE in the Neutron guide" 2015-09-14 05:45:00 +00:00
Jenkins 2f746c5243 Merge "Use keystone wsgi_scripts" 2015-09-14 05:21:26 +00:00
Jenkins 1cf97bd096 Merge "Fix typo in lib/keystone" 2015-09-14 02:34:18 +00:00
Jenkins a54c0d67fd Merge "check LIBS_FROM_GIT" 2015-09-11 19:14:22 +00:00
Jenkins d95ec812e0 Merge "move back to editable install for oslo" 2015-09-11 19:14:18 +00:00
Jenkins 416e869611 Merge "database: fix PostgreSQL connection string" 2015-09-11 17:32:34 +00:00
Sean Dague c71973eb04 check LIBS_FROM_GIT
after the glance_store vs. upper-constraints bug, it's probably worth
actually enforcing and sanity checking that devstack is doing what
it's being asked of with LIBS_FROM_GIT. This will hopefully reduce
user generated error.

This *might* not work with the current oslo naming, we'll have to test
and normalize that.

Change-Id: Iffef2007f99a0e932b68c4c897ebbfb748cac2b4
2015-09-11 07:01:02 -04:00
Sean Dague 2105b9f9ce move back to editable install for oslo
Now that we don't have namespace packages any more, editable installs
should be fine. This also means that we apply constraints to these
libraries during installation, which is important for future testing.

This is needed in order to be able to easily sanity check
LIBS_FROM_GIT, as then all libs installed from git will have pip urls
with git in them.

Change-Id: I46c3b8f943b97f912eccc7278e3e033ae67e7e31
2015-09-11 06:59:29 -04:00
Hidekazu Nakamura 17fe88a72c Fix typo in lib/keystone
nonadmin => nonadmins

Change-Id: I9d51e079c10f7c48b962a1d6f4577e8a6ec4a229
2015-09-11 19:52:18 +09:00
Jenkins 0904bb9370 Merge "remove unused param from tempest config" 2015-09-10 20:54:11 +00:00
Jenkins 8ed89a8a56 Merge "Add trailing IDENTITY_API_VERSION to OS_AUTH_URL in swift_configure_tempurls" 2015-09-10 20:53:52 +00:00
Jenkins 873e9fc990 Merge "Provide hook for neutron plugin config" 2015-09-10 17:35:25 +00:00
Christian Schwede 3db0aad63c Fix is_service_enabled when using multiple arguments
is_service_enabled might actually fail to return the expected result if
there is a is_${service}_enabled function available and multiple
services are checked.

For example, if one defines swift as a service but disables glance, the
following check fails:

 if is_service_enabled swift glance horizon; then
     install_swiftclient
 fi

This is because the second for-iteration resets the local "enabled" var
again to 1 and finally exits with 1 as a return code.

This patch fixes this.

Change-Id: Ic76b72897efe9597d1412470353895001a1a4c66
2015-09-10 11:31:55 +00:00
Christian Berendt 1c394829d1 Fix the FLOATING_RANGE in the Neutron guide
The range should be 172.18.161.0/24 and not 172.18.161.1/24.

Change-Id: I29bb24a1a278c285a00cd69188de340670891c53
2015-09-10 12:16:51 +02:00
Jenkins f25c9ec366 Merge "Fix typos in devstack/stack.sh" 2015-09-09 23:46:37 +00:00
Chris Dent e9a4750fe1 Remove ceilometer in favor of plugin
The ceilometer project is moving to using a devstack plugin rather
than having ceilometer in the base devstack. This is to allow
greater control and flexibility.

Change-Id: I413ab159474b7d7231ad66d3a482201f74efe8a8
2015-09-09 16:44:29 +00:00
Jordan Pittier e8c70e23b5 Tempest: add a Cinder extend_with_snapshot feature flag
A new tempest test is being added in https://review.openstack.org/#/c/200108/
but it doesn't run by default because the test fails on Juno. So a
feature flag in Tempest is added. This patch turns on this feature
flag at Devstack's side.

Change-Id: If1cf90dac3edc81a483fc51da74495042c96d543
2015-09-09 14:24:27 +00:00
Jenkins 633e740dcf Merge "Add aodh and gnocchi to the plugin registry" 2015-09-09 12:22:07 +00:00
Chris Dent 23f65cb9d7 Update lib/ceilometer to reflect script renames
Without this change some services for ceilometer will not start
breaking CI.

This change I7447ba4f408c95b0acf1b809504ce16fff1c6e21 was validated
against the ceilometer devstack plugin but apparently not against
devstack itself. Until I413ab159474b7d7231ad66d3a482201f74efe8a8
merges devstack still has ceilometer support and is used in the
gate.

Change-Id: Ib1ea8b6ef7019570f82b0ba87e03fc627c8f6801
2015-09-09 08:56:15 +00:00
Hirofumi Ichihara 97cc85b9b1 Provide hook for neutron plugin config
This removes a restriction for neutron vendor plugin.
Some neutron vendor plugins were already decomposed and
there is no config file in Neutron tree. They should prepare
the file in each plugin.

Change-Id: I4997b8eae1f433b1c23f20c06ba254568ac4982b
2015-09-09 14:34:47 +09:00
Gary Kotton 54616845df VMware: remove configuration integration_bridge from nova
There are a number of different neutron plugins that work with the
VMware nova driver. If necessary this flag can be set by each plugin
if necessary.

Change-Id: I47ac2a5c71ff573f474d45b85a523fc243ec3ade
2015-09-08 21:39:20 -07:00
Jenkins 9627f1a3e3 Merge "remove too_slow_to_test flag" 2015-09-08 20:01:19 +00:00
Julien Danjou 0eec4f86c1 database: fix PostgreSQL connection string
If all databases drivers are loaded, MySQL SQLAlchemy driver
overrides all the other one that might not have set one.
This patches fixes that.

Change-Id: If6d8d08e5b7b7c48ca012677b536d71058def6fd
Closes-Bug: #1493304
2015-09-08 16:15:33 +00:00
Wei Jiangang 2af6915e08 Fix typos in devstack/stack.sh
log to the the file => log to the file
pluggins => plugins

Change-Id: Iff5c54c39afb4398962bfe6a0500b1f011c75c8a
2015-09-08 18:08:41 +08:00
Christian Schwede 3e3212b52d Add trailing IDENTITY_API_VERSION to OS_AUTH_URL in swift_configure_tempurls
The python-keystoneclient requires a trailing /v<IDENTITY_API_VERSION> to
successfully authenticate, otherwise it fails with a 404 error due to a not
found resource.

This error showed up only when generating Swift tempurls, because the error was
raised when using python-swiftclient.

This change fixes this for python-swiftclient within devstack.

Change-Id: Ibe222d65162898db69acba076b5fe1cb3621fbc3
Closes-Bug: 1492216
2015-09-08 08:33:57 +02:00
Jenkins f86d2e1a05 Merge "docs: add a blurb in the single-vm doc about cloud-init log output" 2015-09-08 05:20:16 +00:00
Takashi NATSUME b848ad783f Fix a typo in make_cert.sh
Change-Id: I6d4f02edf843f0519c3d0413bb033604a7ec73e9
2015-09-08 10:56:28 +09:00
Brian Haley 9451021200 Fix typo in _move_neutron_addresses_route()
A previous change in this code had a typo, reversing the
definitions of IP_ADD and IP_DEL, noticed while debugging
another issue.

Change-Id: Ifb87de1138eeb72081a2e52a5c81bfe9fe91ecd6
2015-09-06 15:35:44 +00:00
Jenkins 42bff13ecf Merge "Disable the shelve tests for nova-cells using tempest config" 2015-09-06 11:58:16 +00:00
Jenkins 0ad191463c Merge "Remove restraint on plugin file from neutron plugins" 2015-09-06 11:54:52 +00:00
Andrey Pavlov e0550190a5 remove unused param from tempest config
Remove setting of ssh_user param to boto section.
Because boto uses user name to ssh from compute.ssh_user

Change-Id: Ifd5b99ef35eaf126a3c6e0055837c4741353345e
2015-09-06 12:05:49 +03:00
Jenkins 85298c95f3 Merge "Revert "Convert identity defaults to keystone v3 api"" 2015-09-04 21:50:11 +00:00
Jenkins 61716205b2 Merge "Use the pip installed version of requests with Fedora" 2015-09-04 19:21:24 +00:00
Jenkins 65090241c4 Merge "Revert "turn multi host true for nova network by default"" 2015-09-04 15:59:35 +00:00
Lucas Alvares Gomes f768787bdd Revert "Convert identity defaults to keystone v3 api"
This change have broke the Ironic tests. Reverting to unblock the Ironic
gate.

This reverts commit 4b115ad526.

Closes-Bug: #1492216
Change-Id: I03acfdf47caf435cede1df08fd79b288a6662435
2015-09-04 15:35:01 +01:00
Matt Riedemann 9752431892 Revert "turn multi host true for nova network by default"
This reverts commit 2e1a91c50b

It looks like this introduced race bug 1491949 in the
gate-tempest-dsvm-large-ops job causing rpc timeouts when
deallocating network information for an instance,
specifically around the dnsmasq callback to release the
fixed IP that the instance was using which triggers the
disassociation between the fixed IP and the instance in the
nova database.

Change-Id: I163cdeea75e92485f241647c69aea0d7456c3258
Closes-Bug: #1491949
2015-09-04 14:15:27 +00:00
Jenkins d21a29cb9e Merge "Use sudo iniset to modify /etc files" 2015-09-04 08:38:40 +00:00
Jenkins 239eb22468 Merge "Fix upload_image error in stackrc" 2015-09-04 08:02:58 +00:00
Jenkins c0581ef9fd Merge "Invoke Heat via console script generated binaries" 2015-09-04 07:59:44 +00:00
Attila Fazekas c7e772c164 Use the pip installed version of requests with Fedora
The upstream version of requests contains a copy
of urllib3 and cardet library, common practice in many distros
to create symbolic links for these libraries instead of creating
a huge package which contains the same library as the distro provides
as separate package as well.

Now devstack upgrades the urllib3 to incompatible version,
but it leaves the requests unchanged because Fedora already has the
latest version.
The issue does not happens with Ubuntu because it has older requests
and devstack updates it as well.
The pip installed version contains a bundled urllib3 and the actually
installed urllib3 version does not matters.

This is not the `usual` distro package overrides pip installed package
case.

Change-Id: Icfa71368384b0c2e3ff39265b2fa9190b5566b9b
Related-Bug: #1476770
2015-09-04 09:18:53 +10:00
Jenkins 7594b10012 Merge "Convert identity defaults to keystone v3 api" 2015-09-03 22:24:40 +00:00
Mikhail Feoktistov 0c3a3b051e Fix upload_image error in stackrc
This commit fixes error caused by adding default image path to IMAGE_URLS without ','
If user sets IMAGE_URLS in localrc like
IMAGE_URLS="path1, path2" (with a space after the comma)
the we get an error "binary operator expected" in
if [ -n $IMAGE_URLS ] condition and a comma will not be added to the end of IMAGE_URLS
In the code below we add default image path(path3) to IMAGE_URLS and we get
IMAGE_URLS="path1, path2path3"

Change-Id: I6543f7178c49a42c71ad9df4cdb4c6e78cbf7758
2015-09-03 18:38:35 +03:00
Jenkins 1d0b0d363e Merge "Add/Overwrite default images in IMAGE_URLS and detect duplicates" 2015-09-03 08:52:59 +00:00
Jenkins 78583df6bd Merge "turn multi host true for nova network by default" 2015-09-03 05:24:49 +00:00
Jenkins 29baec4bdd Merge "add options to support nova test matrix" 2015-09-03 05:22:15 +00:00
Chuck Carmack 09b431d72d Disable the shelve tests for nova-cells using tempest config
Change from using a blacklist to disable the shelve tests for
nova-cells to using the tempest config option to disable the shelve
feature tests.  This is the intended method of disabling feature tests.
This first commit is to add code to lib/tempest to disable the shelve
feature test if the nova-cells service is enabled.  The next
st will remove the shelve blacklist from
http://git.openstack.org/cgit/openstack/nova/tree/devstack/tempest-dsvm-cells-rc

Change-Id: Ibf1f9aaa63e5f17b7d8774b511940ba8421e0887
Partial-bug: 1491152
2015-09-02 14:36:08 +00:00
Hirofumi Ichihara 36daecd1a3 Remove restraint on plugin file from neutron plugins
Neutron plugin always needs plugin file even if the plugin
is out of tree. This patch remove the restraint.

Change-Id: Iedd52db6430def47505a127986170d7279966141
Closes-Bug: #1477452
2015-09-02 07:15:57 +00:00
Jenkins f560df36cc Merge "check all possible services when configuring tempest" 2015-09-02 06:27:40 +00:00
ghanshyam e5a6f82e43 Cleanup nova v2.1 API testing options
Now gate will tests Nova v2.1 as default and separate jobs
for v2 legacy and v2 compatible APIs -
 I86a627b8ec7b1246452a16c10dcfb1ad5f83bdef

This commit cleanup the options used for old v2.1 jobs.

Separate options are provided for Nova APIs testing-
 Ie6b7e4290d9a1d9789d04099b3b31c9a557bc22b

Depends-On: Ie0430cedb7a8136c04b9fb7d08746293aab79f42
To remove old V2.1 jobs.

Change-Id: Ibbed44e1c41ec1e6b3675317f08061810762796c
2015-09-02 13:19:48 +09:00
Matt Riedemann f798ec1242 docs: add a blurb in the single-vm doc about cloud-init log output
I had to poke around for awhile to find /var/log/cloud-init-output.log
so I figured I'd add a sentence in the docs about using that.

Change-Id: I8bb6cb730032e41661ee443da816cbea2b28f76d
2015-09-01 13:20:48 -07:00
Sean Dague 8349aff5ab add options to support nova test matrix
This adds 2 devstack options:

NOVA_V2_LEGACY={True/False} which is whether we'd like to force the
/v2 endpoint to use the legacy v2.0 code base.

it also provides TEMPEST_COMPUTE_TYPE as an way to pass in which
service catalog entry we'd like to use for compute testing.

We also make v2.1 the default compute endpoint, as that's what we'd
like everyone to be testing and using. The other options will let us
build jobs that nova can run to ensure those APIs don't regress.

Change-Id: Ie6b7e4290d9a1d9789d04099b3b31c9a557bc22b
2015-09-01 15:25:54 -04:00
Jenkins 20a854c6d2 Merge "Remove restraint on agent file from ml2 plugin" 2015-09-01 18:21:07 +00:00
Jenkins 3f249b1e21 Merge "Support installing ironic-lib" 2015-09-01 18:21:00 +00:00
Jenkins 181441d96d Merge "Add "source $TOP_DIR/lib/lvm" to clean.sh" 2015-09-01 18:20:54 +00:00
Jenkins e306fd3c2a Merge "Fix create_userrc.sh script" 2015-09-01 18:19:45 +00:00
Jenkins 2dd78dd885 Merge "Filter out temporary addresses" 2015-09-01 18:19:36 +00:00
Jenkins 46e6da4d0a Merge "Add region definition to swift3" 2015-09-01 18:19:31 +00:00
Jenkins 04092c512e Merge "Neutron auto-discovers installed alembic_migrations" 2015-09-01 18:19:26 +00:00
Jenkins bab2636388 Merge "Enable nbd if you're running an lxc virt_type without an lvm backend" 2015-09-01 18:19:21 +00:00
Jenkins 236356645c Merge "Remove NOVA_VIF_DRIVER variable" 2015-09-01 18:16:27 +00:00
Sean Dague 2e1a91c50b turn multi host true for nova network by default
With multi host set to true devstack's dnsmasq server no longer
listens on the network to other systems. In the gate we can see we're
getting a ton of spurious dhcp requests from other systems on the
network, and it's better that we never even see it.

Change-Id: Ie600de91e4a7da734eae722e78101c2401a7b1f5
2015-08-31 09:43:16 -04:00
Ian Wienand 9c0b9f3024 Use sudo iniset to modify /etc files
The existing mysql code is wrong and not detected as failing [1], and
boto config requires work-arounds [2,3] that are all fairly ugly.  Use
-sudo argument to iniset to handle this.

[1] I24388b5de777995f92d73076524122cf599d6371
[2] I5f4c43bbbe477c570936e2e40ac05cc38febbb3f
[3] Ib7556dac9aaaf2f3c96237e0ca28ed6ae1b1b7ac

Change-Id: Iaceb8d42ce37be728adae6fd0a30a1f9d33d4029
2015-08-31 10:56:32 +10:00
Jenkins 9f52d648fb Merge "Add file creation test" 2015-08-29 00:38:16 +00:00
gordon chung e89126f6a4 remove too_slow_to_test flag
this flag was added to deal with inefficiencies of Icehouse. this
patch removes flag as it's not used in post-Icehouse

Change-Id: Ib715e68dc61f3c3ea0a40fae0ea57028e36285bd
Depends-On: I842dfe04725b2482399c0e95b54403fb82001645
2015-08-28 15:30:00 -04:00
Jenkins 6059752fc0 Merge "exercises/aggregates.sh: Only source openrc once" 2015-08-28 01:45:10 +00:00
Jenkins 15e8525003 Merge "Talk about local.conf first" 2015-08-28 01:36:50 +00:00
Jenkins 550ddbf379 Merge "Move configuration notes into configuration guide" 2015-08-28 01:09:05 +00:00
Jenkins 7b227387cf Merge "Move xtrace early" 2015-08-28 01:09:00 +00:00
Jenkins a30a98099b Merge "Add -sudo option to ini setting options" 2015-08-27 22:15:30 +00:00
Chris Dent 605d6417e6 Add aodh and gnocchi to the plugin registry
The comment is their keystone service entry.

Change-Id: I896d5c594fa0c61924dbf4527215cc543b6e43e7
2015-08-27 16:19:53 +00:00
Jenkins 897d116a7c Merge "Fix syntax error on if else statement" 2015-08-27 10:30:27 +00:00
John Hua a4693b5dea Add/Overwrite default images in IMAGE_URLS and detect duplicates
IMAGE_URLS could be set both in localrc with customization or stackrc by
default. By setting DOWNLOAD_DEFAULT_IMAGES, user could choose to add
default images to IMAGE_URLS or overwrite them.

As uploading duplicate images will cause a "409 Conflict" error, a
duplicate detection will expose it earlier.

Care needs to be taken that you don't end up with a duplicate image, so
clean up Xen's README.

Depends-On: I6fbae12f950a03afab39f341132746d3db9f788c
Change-Id: I3ca4e576aa3fb8992c08ca44900a8c53dd4b4163
Closes-Bug: #1473432
2015-08-27 10:33:26 +01:00
Ian Wienand a35391e3bb Talk about local.conf first
We bury the lead with all the historical notes about localrc; just
talk about what is important to somebody setting up a current
devstack, which is local.conf.

There are already inline examples of config-variables, etc.  Remove
them, but add a small overview example for logging in its place.

Change-Id: I466252ffba66ef4ea180c9355f715a19eb4f8017
2015-08-27 15:19:31 +10:00
Ian Wienand 7d5be29920 Move configuration notes into configuration guide
We have configuration information split between the README.md and
configuration documentation.  A lot of it is duplicated and it shows
little organisation.

This clears the README.md of detailed configuration options and
consolidates it into the existing configuration guide.  When someone
first hits the README they don't need details on changing the RPC
back-end; but more importantly this indicates clearly where we should
be adding or clarifying details.

Firstly, the detailed overview of local.conf is removed; it was
duplicated in the configuration guide.  This is left as a first-level
section of that guide.

The configuration notes are divided into generic devstack things
(logging, database-backend, etc) and then the rest of the notes on
various projects' configuration options have been moved into a
dedicated sub-section "Projects".

Each project gets its own sub-sub-section.  Duplicated swift guides is
consolidated into the single "Swift section". The neutron and
multi-node nodes, which were all duplicated in their more specific
dedicated guides are removed and replaced with links to those.  Other
sections are moved directly.

Change-Id: Ib0bac56d82be870fe99c47c53fda674d8668b968
2015-08-27 15:17:57 +10:00
Jenkins 4ebfea9d0d Merge "Ability to specify keystone v3 in nova.conf for neutron" 2015-08-27 00:11:02 +00:00
Dmitry Tantsur 869b72b851 Support installing ironic-lib
ironic-lib will soon become a dependency of ironic, make sure we can
write dsvm gates against it.

Change-Id: I6e66ae770cf5065980848e7e987bfd75765a5ac6
2015-08-26 17:34:46 +02:00
Sean Dague 346edcc532 check all possible services when configuring tempest
The previous approach assumed that devstack in tree service support
would always be a super set of tempest. That's not necessarily
true. Instead when configuring tempest we should look at all the
possible services that tempest could know about, which will let us
disable services we don't have support for.

Change-Id: I9c24705e494689f09a885eb0a640efd50db33fcf
2015-08-26 09:38:37 -04:00
Sean M. Collins d20435bdd4 Filter out temporary addresses
Some IPv6 addresses are temporary and are generated by IPv6 privacy
extensions. They eventually expire and are regenerated, so we should
filter them out.

Change-Id: I916d6a335bab096f765ae8c7e0e540a4349dd15f
Closes-Bug: #1488691
2015-08-25 19:24:51 -04:00
Matt Riedemann 925c256cd4 Remove NOVA_VIF_DRIVER variable
Commit 7561c8ded211d53e8745d1420a73b82bd0fc35cf removed the
libvirt.vif_driver option from Nova in Juno so we should remove the
variable from devstack since it's useless / confusing.

Change-Id: I70a8cb4a3606eb5eabd3c0ef331945e72c80543a
2015-08-25 13:40:25 -07:00
Henry Gessau 091d1ff39d Neutron auto-discovers installed alembic_migrations
Neutron and its sub-projects have been made more intelligent about the
alembic migrations of installed sub-projects. Neutron will now
discover the installed migrations and run them automatically.

Partial-Bug: #1470625

Change-Id: Iec8993b02400ae306abf520e6e70d86bba042c8d
2015-08-25 12:36:18 -04:00
Brant Knudson 2ad1a42ca6 Use keystone wsgi_scripts
Devstack was setting up a separate directory and copying
http/keystone.py into it for the admin and public endpoints.

Keystone now defines wsgi_scripts entrypoints so that
keystone-wsgi-admin and keystone-wsgi-public are created on
install so devstack can reference these files instead.

See http://httpd.apache.org/docs/2.4/upgrading.html#access for
the apache docs with examples for the Allow|Deny/Require
directives.

Depends-On: Ic9c03e6c00408f3698c10012ca98cfc6ea9b6ace
Change-Id: Ided688be62b64066d90776313c963ec5016363f2
2015-08-25 11:01:05 -04:00
Matthew Treinish b274dbd7d0 Fix syntax error on if else statement
This commit fixes an simple syntax error on an else statement causing
it to crash instead of eval. Clearly someone has been writing too much
python and not enough bash.

Change-Id: I81d2324abd17790dc4790147f210ad7d9f0db74b
2015-08-25 10:01:39 -04:00
Jenkins ca802bcfcc Merge "Fix trueorfalse call in tempest use accounts check" 2015-08-25 09:50:32 +00:00
Jenkins 5bb5be4b45 Merge "do not redefine path in elasticsearch" 2015-08-25 08:30:52 +00:00
Matthew Treinish 403fbb1d33 Fix trueorfalse call in tempest use accounts check
The lib/tempest variable definition for TEMPEST_USE_TEST_ACCOUNTS was
incorrectly calling the trueorfalse function by passing the variable's
value to the function instead of the variable's name. This was causing
trueorfalse the default value of false to always be returned even when
specifying the option as true in the localrc. (well assuming True or
it's variants wasn't an actual defined variable with a value that
would return true) This commit fixes this issue by properly using the
trueorfalse function.

Change-Id: I8cefb58f49dcd2cb2def8a5071d0892af520e7f7
2015-08-24 21:17:37 -04:00
Andrey Pavlov 485c962667 Fix create_userrc.sh script
Patchset fixes calculating EC2_URL/S3_URL for user rc files in 'accrc' directory.
Currently calculation of these url's uses 'openstack endpoint show' command
without specifying os-identity-v3 flag. But output is empty without such flag.
So this patchset uses same construction as exists in functions-common.

Change-Id: Ia4f2510750fa0f46e2f1d58cf0a7a16782f022b3
2015-08-24 22:55:19 +03:00
Jenkins d66638f731 Merge "Move policy.json creation to _configure_neutron_common" 2015-08-24 18:42:29 +00:00
Jenkins c6646a650e Merge "Use standard get_or_create_role to find role" 2015-08-24 17:21:40 +00:00
Jenkins b64638e50a Merge "Always add OVS port in _move_neutron_addresses_route" 2015-08-24 17:08:35 +00:00
Matt Riedemann dca06dc7de Enable nbd if you're running an lxc virt_type without an lvm backend
If nbd isn't enabled you can't boot instances with libvirt using lxc
(unless you're using an lvm backend).

Closes-Bug: #1487195

Co-Authored-By: Andrew Melton <andrew.melton@rackspace.com>

Change-Id: I08c4d498ed35166f566291d9530ca1ecfae05625
2015-08-20 14:09:22 -07:00
Andrey Pavlov 9b21f98ce0 Add region definition to swift3
Swift3 should be in the same region as all other cloud.
By default it has regaion name 'US'. It's ok for requests
that signed by version 1 of signature because they haven't
region information in request.
But S3 signature of version 4 protocol sends region name to server
and swift3 plugin checks that input region equals to internal.
And because all cloud lives with 'RegionOne' then swift3 fails
request because it has 'US' region name by default.

Change-Id: Icd817183b1a040110372a8ae5d73fd2f0ec5559c
Related-Bug: #1411078
2015-08-20 23:37:04 +03:00
gordon chung b203d0c71a do not redefine path in elasticsearch
in I0272d56bc2e50e8174db78bd449f65f60f7f4000, we reset DEST value
when installing elasticsearch. it gets set to /opt/stack/ which is
not always correct in gate causing the path to be wrong and
elasticseach cannot be installed. we should reuse DEST from stackrc

Change-Id: Ia3a2383ada30c4e92c37386aedd6164c69cac60a
Closes-Bug: #1484182
2015-08-20 14:35:40 -04:00
Davanum Srinivas d6456e6758 Ability to specify keystone v3 in nova.conf for neutron
As part of moving components to use keystone v3, this review
allows nova.conf's [neutron] section to switch to using the
auth_plugin in keystoneclient for talking to keystone /v3 API

Change-Id: I42502bff147534199096fb581630b8559f311963
2015-08-19 16:43:29 -04:00
Jenkins 32e0febbc0 Merge "Cloning requirements repository before pip install" 2015-08-19 08:06:30 +00:00
Mahito 67168e807a Add "source $TOP_DIR/lib/lvm" to clean.sh
When clean.sh is executed, it shows "command not found" messages.
Commands are defined in lib/lvm, however lib/lvm doesn't include clean.sh.
This pache add lib/lvm to clean.sh.

Change-Id: I56672e949d25f7cdcda879badd992f849d06c749
Closes-Bug: 1486392
2015-08-18 23:59:29 -07:00
Jenkins 6ef371e677 Merge "Fix duplicated section name" 2015-08-19 05:35:16 +00:00
Jenkins 4413007df6 Merge "neutron-legacy: Update after DEFAULT.root_helper removal" 2015-08-19 05:33:12 +00:00
Shashank Hegde 2d91fe8a6b Cloning requirements repository before pip install
The commit 05aa3846a0 into devstack exposed a bug
where pip_install is called before the requirements repository is cloned. This
change ensures that the requirements repository exists before pip_install is
called.

Change-Id: I60b157fc98691764a69cf022852e7a95fc50cdd7
Closes-Bug: #1486304
2015-08-18 19:08:58 -07:00
Jenkins c2eb60a751 Merge "Remove non-ASCII characters" 2015-08-19 01:20:52 +00:00
Jenkins 987dc6453e Merge "Just use constraints everywhere" 2015-08-18 23:07:53 +00:00
Tomoki Sekiyama 0612b485d3 Ironic: Fix tag ID detection of tap devices
On Linux kernel 4.1, `ip link` reports peer interface name for
each Open vSwitch interface, like:
  $ ip link
  ...
  71: ovs-tap1@brbm-tap1: <BROADCAST,MULTICAST,UP,LOWER_UP> ...
              ~~~~~~~~~~
Currently it is regarded as a part of interface name, so
causes failure in tap id detection from ovs-vsctl output,
that results into ironic deployment failure.
This patch removes the peer name from the interface name.

Change-Id: Id3b181fa821e9bff1afabef4d63964f61fa49a65
Closes-Bug: #1486273
2015-08-18 18:59:24 -04:00
Jenkins 92d996bf3a Merge "Move horizon apache root to /dashboard" 2015-08-18 20:41:49 +00:00
Hirofumi Ichihara 2bb3a64892 Fix duplicated section name
Although l3_agent.ini, dhcp_agent.ini and metadata_agent.ini have
"AGENT" section as default, devstack added "agent" section.

Change-Id: Ie4034257d8aed00d67e3f28e7dd3b05cc5d89fc4
2015-08-18 12:59:08 -07:00
Marian Horban ea21eb4f69 Remove non-ASCII characters
Change-Id: If1c68e5aab6990617519150d8aeb3f073df2ad17
2015-08-18 19:53:39 +00:00
Jenkins dedde0984c Merge "Clone reqs repo prior to using pip constraints" 2015-08-18 19:43:12 +00:00
Clark Boylan 05aa3846a0 Just use constraints everywhere
Having behavior on your laptop diverge from behavior in the gate is
confusing. Just use constraints on every devstack run to be consistent.
Users of devstack can edit the requirements repo in order to change
these constraints locally if necessary.

Change-Id: I843208e2e982eb04931b76f5cb4bd219fbcd70de
2015-08-18 09:39:04 -07:00
Jenkins 5384a94027 Merge "Prevent spawning two VPN agents" 2015-08-18 02:59:42 +00:00
Jenkins 29948663da Merge "use $SERVICE_HOST in multi-node doc" 2015-08-17 19:40:38 +00:00
Jenkins 4d223251e8 Merge "Add header guard to functions/functions-common" 2015-08-17 19:38:05 +00:00
YAMAMOTO Takashi fc657f4ff2 neutron-legacy: Update after DEFAULT.root_helper removal
Update after change I17cd62c8763430bf3a4b67ab5e9cf5b736065133 .

Closes-Bug: #1483501
Change-Id: Ieb5270484205cffe4ec97db0d59f012d1e7708d4
2015-08-17 11:54:56 +00:00
Jenkins d103f47ffa Merge "_configure_neutron_dhcp_agent: Modify the right config file" 2015-08-17 03:51:09 +00:00
YAMAMOTO Takashi 1e7fb4c9a0 _configure_neutron_dhcp_agent: Modify the right config file
This has been incorrect since the initial commit
(I632df4149e9d7f78cb5a7091dfe4ea8f8ca3ddfa)

Closes-Bug: #1483499
Change-Id: Ife4defce989c4f3c7eb5381376c0f93de50a9668
2015-08-17 00:57:41 +00:00
Jamie Lennox 05076fb7ea Configure horizon with identity v3
Currently horizon configures keystone using v3 only if v2 is not
available. Really we should just always be using v3.

Change-Id: Icac4d90b617209da75abf33f8e25ffc021c45fdb
2015-08-15 19:01:59 +10:00
Jamie Lennox 4b115ad526 Convert identity defaults to keystone v3 api
At this point all our function calls should be using the V3 APIs anyway
so switch the authentication credentials to v3 compatible ones and
remove all the hacks we added to force v3 API calls.

Implements: bp keystonev3
Change-Id: If92d3e11b9a363454f77527783b6d25f4da9c249
2015-08-15 05:03:41 +00:00
Masaki Matsushita 597c902dfc use $SERVICE_HOST in multi-node doc
The change fix multi-node doc to use SERVICE_HOST.
It resolves duplicate IP address.

Closes-Bug: #1485159
Change-Id: If86393e9a37bcb911a9aa125829cd8ce684edd9f
2015-08-15 11:42:00 +09:00
Lucas Alvares Gomes 51bddb8c64 Ironic: Create nodes with names
This patch is setting a name for each node created in Ironic, when
testing stuff it's easier to refer to a nome by its name then uuid.

The format of the name is: node-0, node-1, ...

Change-Id: I60fcddbcb36d1b1da8b3846b6edf14c59401f102
2015-08-14 17:21:47 +01:00
Tim Buckley a83e90b560 Enable CSV logging output for DStat.
Future work toward visualization of DevStack and devstack-gate performance
would benefit greatly from the availability of machine-parsable DStat output.
This patch outputs an additional logfile to $LOGDIR, `dstat-csv.log`, using
DStat's built-in CSV logging functionality.

An additional instance of DStat is started during start_dstat that outputs
to CSV-formatted text without `--top-cpu-adv` and `-top-io-adv` enabled, as
these plugins are currently incompatible with CSV output. To facilitate this,
a new `dstat.sh` script is added to $TOP_DIR/tools/ to act as a daemon to
manage the two processes.

Change-Id: I826c94c35b6a109308b4f132c181ff7a1f63bc7b
Depends-On: I534fb1f9356a7948d2fec0aecc7f275e47362a11
2015-08-14 09:51:09 -06:00
Paul Michali e4289c88c8 Prevent spawning two VPN agents
Currently, if the VPN devstack plugin is enabled (which is
the method used for VPN in all test jobs), there will be
two VPN agent processes started. This doesn't seem to
affect the tests, but is incorrect.

To resolve this, the proposal is to do this in two steps.
With this commit, the script is modified to start the q-vpn
process, if q-vpn is enabled (legacy), and to only start
q-l3 process, if neither q-vpn nor neutron-vpnaas is enabled.

Once committed, the opertion will be the same - if no VPN
service is enabled, we get q-l3 (correct); if legacy q-vpn is
enabled (only), we get q-vpn (correct); if the plugin is used
(the default), we get two q-vpn processes started (wrong).

With a separate plugin commit (to be pushed next), the plugin
will be renamed to neutron-vpnaas, and then we'll get only
one agent process (q-vpn or neutron-vpnaas) runing. We can't
commit the plugin first, because both the VPN agent and the
q-l3 agent will be started at once (just as bad, if not worse).

Change-Id: I2bb7ac01e619c8a9b22bd517a4ff60d67035dfed
Partial-Bug: 1484141
2015-08-14 11:49:27 -04:00
Jenkins b1ea5eacbc Merge "Rename bad option value" 2015-08-14 07:27:19 +00:00
Jenkins 049c15926e Merge "Configure glance swift communication with v3" 2015-08-14 07:24:47 +00:00
Jamie Lennox dbdee69870 Use standard get_or_create_role to find role
The openstack role list command doesn't include any identity API version
information and so will fail when running purely with v3. We could add
this information to the command however we already have a function that
does what swift requires so we should use it.

Change-Id: I5d5417eaed432760bfb97cf35bd76a0919c6004d
2015-08-14 12:22:18 +10:00
Adam Kacmarsky 6b172c8dd5 Always add OVS port in _move_neutron_addresses_route
Added functionallity to allow _move_neutron_addresses_route to support
interfaces without a configured IP address. If PUBLIC_INTERFACE is set
to an interface without a configured IP, only the port will be
added to the OVS_PHYSICAL_BRIDGE.

Change-Id: I511ea5229ab871298086af5c96761390529bd85e
2015-08-13 15:29:56 -06:00
Jenkins 6c4dcb2e9d Merge "Fix creation of endpoints in multi-region" 2015-08-13 18:08:18 +00:00
Jenkins 5dda53884e Merge "Location of the "local.conf" file is confusing. It is updated." 2015-08-13 15:34:27 +00:00
venkatamahesh b237b93f2b Location of the "local.conf" file is confusing. It is updated.
It was shown that the local.conf is at root devstack directory, but
it is at devstack/samples directory. So the path is updated.

1.) Copy the file into root Devstack directory.

Change-Id: I6ff8a404a3664c892bb458023c57ccc5d0926fdf
Closes-Bug: #1464491
2015-08-13 15:56:48 +05:30
David Lyle 7b105c572e Move horizon apache root to /dashboard
With keystone's move to /identity, a conflict in for resources was
created as both keystone and horizon used /identity. The keystone
config took precedence and rendered API output in the horizon UI.

This patch sets the root for horizon to /dashboard and serves all
horizon content from there. Additionally, a RedirectMatch has been added
to the apache config for horizon to redirect '/' to '/dashboard' this
will allow the implementation to change without being immediately
painful to users.

Also made the path '/dashboard/' configurable in stackrc.

Closes-Bug: #1478306
Depends-On: I9a04f936ed6d8c14775a332dc28e903992806c42

for devstack-gate changes to remove hard coded horizon url structure
assumptions.

Change-Id: I6fbca5cea9e44df160afbccc71bd045437657320
2015-08-13 01:41:57 +00:00
Jamie Lennox 75c1dfe3b0 Rename bad option value
To disable tempest running the v2 tests when the identity v2 api is
disabled you need to set api_v2=False not v2_api=False.

Change-Id: Ied8a0593619dccb5985f9a1e51feb370754336c7
2015-08-13 10:44:51 +10:00
Daniel Gonzalez 1991e75993 Fix creation of endpoints in multi-region
Keystone API v3 does currently not support filtering for region names.
As a consequence an additional check is needed in get_or_create_endpoint
to check if an endpoint must be created for a given region or if it
already exists.
See related bug for more information regarding the missing region
filtering in keystone.

Closes-Bug: #1483784
Related-Bug: #1482772
Change-Id: Ia6a497b9fb58f7474636ab52dc01b99857bed3a2
2015-08-13 02:25:56 +02:00
Jamie Lennox 19c5e62a04 Configure glance swift communication with v3
With the aim of moving everything fully over to v3 authentication we
need to configure glance_store to use v3 when calling swift.

Requires glance_store 0.8.0

Change-Id: I61e8c5a4136404077f5505ebc2edfe49841c244f
Implements: bp keystonev3
2015-08-13 00:11:13 +00:00
Jenkins 9718b79f5f Merge "Add support to lib/tempest for using tempest test accounts" 2015-08-11 17:53:31 +00:00
Matthew Treinish df8f43b44a Add support to lib/tempest for using tempest test accounts
This commit adds support to lib/tempest for configuring tempest to use
the test accounts mechanism. It adds a new variable
TEMPEST_USE_TEST_ACCOUNTS which will be used to trigger using test
accounts. The generate tempest-account-generator utility packaged with
tempest is used to generate the users and projects and write an
accounts.yaml. Another option TEMPEST_CONCURRENCY is added to specify
the the number of accounts to create, the value defaults to the number
of processors on the system.

The auth configuration section is moved to the bottom of the
configure_tempest function to ensure the proper auth endpoint and
catalog entries are all set in the tempest.conf file because the
tempest-account-generator tool depends on tempest knowing how to talk
to keystone to create the accounts.

Change-Id: I8682f72ffe26fd133874f5c575df6389f787ffcc
2015-08-10 20:40:53 -04:00
Jenkins 2f605b0f4d Merge "Install cryptsetup on the n-cpu nodes" 2015-08-10 12:24:31 +00:00
Ian Wienand 144dbc62f8 Remove config_apache_wsgi mention
This has only ever appeared in
I3a5d1e511c5dca1e6d01a1adca8fda0a43d4f632 and has never been exported,
referenced, etc.

Remove it to avoid confusion
(e.g. Icfad40ee6998296727a95613199e5c2d87bd0a45)

Change-Id: Ic71e841f6f751ff43083e12ad734b9c84be7b645
2015-08-10 04:19:19 +00:00
Jerry Zhao 296c1e3809 Move policy.json creation to _configure_neutron_common
To allow separating neutron l3, metadata, or dhcp agent from neutron
server or controller, there is supposed to be policy.json on the nodes
with l3, dhcp, metadata agent enabled, so it would be more appropriate
to create policy.json in _configure_neutron_common.

Change-Id: I890d647ffca05482f36ebaaf9c2c6e9e6cb23e2b
2015-08-07 21:19:01 -04:00
Jenkins 4627ac1183 Merge "Remove the old meter.yaml path from devstack" 2015-08-07 14:11:15 +00:00
Ian Wienand c0057ed515 exercises/aggregates.sh: Only source openrc once
Only source openrc once, and remove the unnecessary re-sourcing of
"functions" which is done by openrc.

Change-Id: I61c87a0742de274d47753a0b216c56d96344d161
2015-08-07 12:37:53 +10:00
Sean Dague 2da606da2e add ebtables to world dump
I'm still at a loss about why guests stop being pingable in grenade,
so lets get ourselves some ebtables output as well.

Change-Id: I4e40eff6d0b1ef194e43b151a83206fbd50deb66
2015-08-06 10:02:43 -04:00
Attila Fazekas 6691907683 Install cryptsetup on the n-cpu nodes
test_encrypted_cinder_volumes.* tempest test failes,
when cryptsetup package is not installed.

The following error can be seen in the n-cpu log:
Stderr: u'/usr/bin/nova-rootwrap: Executable not found: cryptsetup
(filter match = cryptsetup)\n'

Change-Id: I86603f1301fa946c8bb22de3e69a2ec1ab7f1ef3
2015-08-06 11:49:46 +02:00
Ian Wienand 815db16c20 Clean up configuration documentation
The current format is just copy-paste after auto-conversion and very
inconsistent.  Move discussion of each option into a section and
reword some slightly so they read more clearly.  Group some together
into a section+sub-sections, such as the logging and ip-version option
discussions.

Add a top table-of-contents for the major sections, and then a
separate toc for each of the configuration options that are discussed
in detail.

Change-Id: Iddd27cb54f1d9f062b9c47ff9ad6a2bef3650d6b
2015-08-06 10:28:50 +10:00
Jenkins 5751017ae3 Merge "Add tempest run_validation option" 2015-08-05 12:11:28 +00:00
Jenkins 6972d1169e Merge "update cinder's key permission to allow nova snapshots" 2015-08-05 12:09:06 +00:00
Jenkins 57036ba2b7 Merge "fix multinode guide" 2015-08-04 13:50:46 +00:00
Sean Dague a6db5e30cc fix multinode guide
The multinode guide erroneously said to enable n-api on the worker
nodes, which is a typo. n-api-meta is the thing that's needed.

Change-Id: I733896681f7f6fe3bea0fdeeb8ffc9033d7fc761
2015-08-04 06:23:28 -04:00
lanoux 994db61738 Add tempest run_validation option
This change adds the tempest run_validation option to run
tests with ssh connection in the gate.

Change-Id: I140f79b06d2e85c1d5d07fa5f117d4f8b250fa3d
2015-08-04 08:05:49 +00:00
Clark Boylan 57aafb5a9a Clone reqs repo prior to using pip constraints
We pull the pip constraints from the requirements repo so need to clone
that repo prior to using the constraints. In fixup_stuff.sh devstack
attempts to install packages like prettytable using the constraints. It
is also possible to need constraints before fixup_stuff.sh if tracking
depends. To deal with this clone requirements repo before any possible
use of constraints in pip_install.

Change-Id: I42e981c8c5ce1b8a57b9f6cce213065c72d6af11
2015-08-03 10:42:48 -07:00
Nicolas Simonds e97cb825d2 update cinder's key permission to allow nova snapshots
Preparing the field for this patch:

https://review.openstack.org/205282

The client.cinder key needs to have write permission to the glance pool
in order to complete the snapshot process.

Change-Id: I98f16167db864ffd14e8c3dd5dec81fc16245448
2015-07-31 16:44:29 -07:00
Pradeep Kilambi d73df506f2 Remove the old meter.yaml path from devstack
This will let us defauilt to the path within the code,
we can add the right path in once we have the file in
the codebase.

Change-Id: I9de94c5ac6349c3b46adbacb77fc877b5201285c
2015-07-31 11:08:15 -04:00
Matthew Treinish 93c10571e8 Stop relying on the tempest sample config file
This commit stops using the sample config file as the base for tempest
configuration. The sample config isn't actually needed as a based for
configuration because all the options are commented out so from the
perspective of the config parser it's a blank file.

There are 2 reasons for making this change, first using the sample
like this creates a hard dependency on tempest having a sample config
file in tree. This is something that the project wants to change since
keeping the file in sync causes headaches because of new oslo
releases. The second aspect is that it makes the generated output
difficult to read. It includes *every* option and it's description in
the generated output which makes finding where devstack is actually
setting something more difficult to find.

Change-Id: I4064a041a965ed2419b68efc8dc31fce37b24cfd
2015-07-31 10:38:50 -04:00
Jenkins af68087be3 Merge "line wrapping for longer ceph commands" 2015-07-31 13:14:37 +00:00
YAMAMOTO Takashi 961643e404 configuration.rst: Document post-extra meta section phase
Change-Id: I81d121424057fd79c1a0a65d420df3ee1badb6f3
2015-07-31 13:45:27 +09:00
Jenkins 2246a8a6fe Merge "add -n --name flag to worlddump" 2015-07-29 22:02:54 +00:00
Jenkins 643e2f3167 Merge "Adds two new configuration files" 2015-07-29 19:08:56 +00:00
Sean Dague dd07c484e4 line wrapping for longer ceph commands
Some of the ceph commands had gotten quite long, so reviewing them in
gerrit is a bit problematic. Do some line wrapping just to bring these
back to a bit more managable state.

Change-Id: Ice5122702f2466d059dd275b038d5ff983bcda44
2015-07-29 14:10:00 -04:00
Jenkins e0eb1a159f Merge "Remove unused variable" 2015-07-28 09:04:46 +00:00
Jenkins 47b4951d0f Merge "Fix errors in tools/ping_neutron.sh" 2015-07-28 08:51:24 +00:00
Jenkins 820ff00cc0 Merge "Fix four typos on devstack documentation" 2015-07-28 08:37:58 +00:00
Jenkins 5cbd85738e Merge "Cleanup of ini test-case" 2015-07-27 20:43:50 +00:00
Jenkins 23e749d9bd Merge "ini-config : always reenable xtrace on return" 2015-07-27 20:41:13 +00:00
Jenkins 43ef53c2a2 Merge "update cinder's key permission to allow nova snapshots" 2015-07-27 19:22:13 +00:00
Sean Dague ac9313e5a5 add -n --name flag to worlddump
We're worlddumping at success points in grenade, and it would be much
handier to explain when that happens via a symbolic name in the
filename. Add a --name option to worlddump to allow it.

Change-Id: I644200fe08e404dc7ca2006478ae4e11ca020672
2015-07-27 13:33:30 -04:00
Sébastien Han 64ab8d1228 Re-enable direct URL
This parameter is needed in order to test the copy on write cloning
functionnality.

Change-Id: Ie8179a68827acba2dd8614ea9c6cecf2ddb20e29
Signed-off-by: Sébastien Han <seb@redhat.com>
2015-07-27 15:12:51 +02:00
Sébastien Han 089f044cbe update cinder's key permission to allow nova snapshots
Preparing the field for this patch:
https://review.openstack.org/#/c/205282/2

The client.cinder key needs to have write permission to the glance pool
in order to complete the snapshot process.

Change-Id: I90c6aa056b99944aa558783f3f81d06f918f3e26
Signed-off-by: Sébastien Han <seb@redhat.com>
2015-07-27 15:12:05 +02:00
Atsushi SAKAI 2040143409 Fix four typos on devstack documentation
behaviour => behavior
mechansim => mechanism
glustfs => glusterfs
pluggin => plugin

Change-Id: I3de6740e5d4b2b55009614007767458124036b75
Closes-Bug: #1478538
2015-07-27 20:43:59 +09:00
Jenkins a3210822ce Merge "Make it possible to upload ploop images" 2015-07-27 10:47:43 +00:00
Stanislaw Szydlo aa81e2ea73 Fix errors in tools/ping_neutron.sh
Due to errors in tools/ping_neutron.sh, exercise neutron-adv-test.sh
fails. Faults were: 'neutron net-list' took too much arguments and
variable REMAINING_ARGS was mistyped.

Change-Id: I681328bfb1e4445543ef9d94e3b3824dbc9c8346
Closes-Bug: #1478021
2015-07-27 10:54:44 +02:00
Mehdi Abaakouk eef5d8590f Adds two new configuration files
Ceilometer introduces two new configuration files

This change adds them.

Change-Id: I4da44f09eb0a839f36fef513aec41d9b1564155d
Depends-On: I5a202c30614d06821063e243d4e2330736aba5fd
2015-07-24 10:55:42 +02:00
Jenkins c90656a4a3 Merge "Explicitly set bind_ip in Swift server config files" 2015-07-24 05:49:36 +00:00
Hirofumi Ichihara 1c506c5c34 Remove unused variable
Change-Id: Ib3b50c0e34403311b529e116f39bf82dd03dca0e
2015-07-24 10:42:13 +09:00
Jenkins e8292ae1e7 Merge "Simplify start_neutron_other_agents" 2015-07-23 19:38:48 +00:00
Jenkins b488c81e03 Merge "Separate start/stop control of Neutron L2 agent." 2015-07-23 19:35:45 +00:00
Jenkins 3805b3770c Merge "Allow installing keystoneauth from git" 2015-07-23 14:17:49 +00:00
Jenkins d4da210ffb Merge "Remove osapi_v3 configuration" 2015-07-23 11:57:01 +00:00
Hirofumi Ichihara 22cf648cf6 Remove restraint on agent file from ml2 plugin
Ml2 plugin always needs agent file even if the agent is out of tree.
This patch removes the restraint and ofagent_agent.

Change-Id: I12de58e13da1fd162ad8b632d895779ae7560c3c
Closes-Bug: #1477459
2015-07-23 18:13:55 +09:00
Jens Rosenboom ff70dad892 Make image_list.sh independent of host IP address
We do not need the HOST_IP to be detected in order to be able to list
our images. So just set that to some dummy value before sourcing
functions.

This will allow tools like disk-image-builder to work regardless of
whether get_default_host_ip succeeds or not.

Change-Id: I9c22d2066e34309e70e56076e3d17c5db6ecee06
2015-07-23 10:34:58 +02:00
Jenkins c305120f48 Merge "neutron: add NOVA_ALLOW_DUPLICATE_NETWORKS config option" 2015-07-23 06:59:31 +00:00
Jenkins 9cdde34319 Merge "local call masks errors in subshells" 2015-07-22 23:36:02 +00:00
Ian Wienand cede787482 Add file creation test
Ensure that iniadd is creating files that don't exist, as it has
historically done.

Change-Id: I2798996f3d46ff1dce410b815a87395f1bf729f9
2015-07-23 06:46:24 +10:00
Ian Wienand f44a024f02 Add -sudo option to ini setting options
Add a -sudo option to allow these functions to operate on root-owned
files.  Test-case is updated, but not enabled by default as we can't
expect test-runner to have sudo access.

Change-Id: I134c3397314c7d9395996eb6c825ecb7e7fdfc69
2015-07-23 06:46:24 +10:00
Ian Wienand b997db602e Cleanup of ini test-case
Various cleanup to this file.

Firstly create a temporary space to test, rather than working in the
source directory.

We have "assert_equal" which simplifies a lot.  Add "assert_empty"
that is used in a couple of tests too.  Remove a couple of duplicate
tests.

Change-Id: I7fd476ed63026e67d66a8ac2891b2e4a6687d09c
2015-07-23 06:46:24 +10:00
Ian Wienand 92884ede5d ini-config : always reenable xtrace on return
These return paths doesn't renable xtrace, so output mysteriously goes
missing until the next time it is enabled.

Change-Id: I3a8018dfa9397c07534970c39fba8dc10afcbe41
2015-07-23 06:46:24 +10:00
Jenkins b5c3724388 Merge "fix typo in guide for nested kvm" 2015-07-22 19:12:18 +00:00
Hiroshi Miura c1dded9b91 fix typo in guide for nested kvm
Change-Id: Ie103a097830401248c75fcb16d4dd746bbbb7288
Signed-off-by: Hiroshi Miura <miurahr@nttdata.co.jp>
2015-07-22 12:18:53 +09:00
Tony Breeds 0294ddc735 mysql: Fix mysql config
devstack attempts to set bind-address, sql_mode, default-storage-engine,
max_connections, query_cache_type and query_cache_size.

However the bash command is missing some '&&'s and was omiting
max_connections, query_cache_type and query_cache_size.

Change-Id: I24388b5de777995f92d73076524122cf599d6371
2015-07-21 14:18:38 -05:00
Jenkins 411c43983d Merge "Include meter.yaml when devstack sets up ceilometer" 2015-07-21 06:34:03 +00:00
Jenkins d9b425df06 Merge "libvirt virt_type=parallels support enchancement" 2015-07-21 04:58:31 +00:00
Jenkins 56f4c3c819 Merge "Be more explicit about jenkins project config" 2015-07-20 22:53:32 +00:00
Pradeep Kilambi 3756687d17 Include meter.yaml when devstack sets up ceilometer
Partially Implements: blueprint declarative-notifications

Change-Id: Ia20f3558eb85b4e3478e33a9e54b7e696eb6c3fd
2015-07-20 16:16:40 -04:00
Rawlin Peters 92ad152512 Explicitly set bind_ip in Swift server config files
Currently, the Swift proxy, object, account, and container servers bind
to IPv4 address 0.0.0.0 by default. In the case of a user setting
SERVICE_IP_VERSION=6 in their local.conf file, these Swift servers still
listen on 0.0.0.0 instead of ::, which causes a ./stack.sh run to fail.

This change explicitly sets the bind_ip variable in the Swift server
config files so that the servers bind to either 0.0.0.0 (when
SERVICE_IP_VERSION != 6) or :: (when SERVICE_IP_VERSION == 6).

This patch is related to the following patch for devstack IPv6 support:
    https://review.openstack.org/#/c/192329

Change-Id: Ie268c6daf5374e67ef8710a731c3af50ffdb821e
2015-07-20 13:33:33 -06:00
Jenkins 53e01600d9 Merge "Always use volume v1 API for type create." 2015-07-17 11:03:45 +00:00
Ken'ichi Ohmichi 2fa8944057 Remove osapi_v3 configuration
Nova option osapi_v3 is used for Nova v2.1 API and the default value
was False(disabled). However Nova v2.1 API is CURRENT status and the
API should be enabled as the default as we discussed on
http://lists.openstack.org/pipermail/openstack-dev/2015-July/069624.html
We could not find it before because devstack makes it True, so this
patch removes it for avoiding confusion any more.

Change-Id: I4efd2036605a1a41ea297b44a5f31b2da7412593
Related-Bug: #1462901
Depends-on: I43f0352f9fa89401f79389a6dc1035d901f52ed2
2015-07-17 03:16:42 +00:00
Jenkins f0e86a7ac7 Merge "Add worlddump unit test" 2015-07-16 23:55:34 +00:00
Jenkins 469215d374 Merge "Check for nova-compute before running kill" 2015-07-16 23:49:21 +00:00
Jenkins 19533886ff Merge "Wait for command in worlddump" 2015-07-16 16:08:00 +00:00
Jenkins 474e96d02b Merge "Support fernet token provider" 2015-07-16 14:03:24 +00:00
Ian Wienand 11d276c73c local call masks errors in subshells
In another "things from the man page"

   The return status is 0 unless local is used outside a function, an
   invalid name is supplied, or name is a readonly variable.

Thus if anything fails in "cmd" of "local foo=$( cmd )" we don't
notice.

Change-Id: I22b10d5d39f014b6c92d2e101b167cbacf81afca
2015-07-16 13:44:47 +10:00
Jamie Lennox 7e5fb63b71 Always use volume v1 API for type create.
OpenStackClient doesn't currently support volume type create on the V2
API. Make sure that all requests use the V1 api until this has been
fixed in OpenStackClient.

Change-Id: I2fa133d30753e188d383d3de78c0022a3625cb34
Closes-Bug: #1475062
2015-07-16 10:40:43 +10:00
Mahito OGURA 54dc19ecad Add export_proxy_variables() tests to test_functions.sh
In test_functions.sh, There aren't export_proxy_variables() tests.
This patch add test of export_proxy_variables to test_funstions.sh.

Change-Id: I76f2bab84f4019961e612b0bff0ab66646b6e160
2015-07-15 23:31:51 +09:00
Maxim Nestratov e6f37b91e5 libvirt virt_type=parallels support enchancement
As soon as Parallels Cloud Server/Virtuozzo is based on CloudLinux distribution
this new rpm kind of distribution is introduced.
Also we setup vnc and set vnc_encoding parameter to None as soon it isn't
supported by parallels.

Change-Id: Ib97a09f397f950227498cfc2ce162d19b700f6f4
2015-07-15 11:59:53 +03:00
Maxim Nestratov 54ee8a82a8 Make it possible to upload ploop images
Add support of ploop images (*.hds extension) for both exe and hvm types.
In devstack we assume that images have '-exe' and '-hvm' suffixes in
their names correspondently.

Change-Id: I1c074876c530be0535a6e02e764d67a4ebcbbbe5
2015-07-15 11:53:12 +03:00
Jenkins 32a3e322b4 Merge "Use openstack cli for cinder type creation" 2015-07-15 05:35:31 +00:00
Jenkins a13e08707d Merge "Use Keystone V3 API for role creation" 2015-07-15 05:35:26 +00:00
Jenkins 07387ebdd5 Merge "Fix distribution link in documentation" 2015-07-15 03:11:16 +00:00
Isao Yamagata 7aaaf90901 Fix distribution link in documentation
Fix broken link to distributions of OpenStack

Closes-Bug: #1469433
Change-Id: Ica572e11c0dedfe0684fad1c4d48b248f7003d47
2015-07-15 00:45:20 +00:00
Jeffrey Zhang 11cf23e034 Fix the typo zaqar
Change-Id: Ic05b88a55f4110cd2e72985c7f3f544d0de8dd67
2015-07-15 08:20:26 +08:00
Jenkins 47e68afd67 Merge "Keystone also handle /identity and /identity_admin" 2015-07-14 19:27:42 +00:00
Jenkins aaae79b095 Merge "Use identity V3 API for endpoint creation" 2015-07-14 04:53:34 +00:00
Dirk Mueller a3c94468ba Remove support for enabling file injection
File injection is disabled in nova meanwhile, and devstack core
reviewers think it shouldn't be configureable in devstack anymore.
This basically reverts https://review.openstack.org/#/c/70560/

Change-Id: Ia7dd407da00c0b1c9641865aea1f7b74533d7357
2015-07-13 09:57:33 +02:00
Jenkins d523a71514 Merge "XenAPI: Update to a newer Cirros image" 2015-07-12 22:38:58 +00:00
Jenkins 67011910d2 Merge "Include domain variables in accrc" 2015-07-10 19:43:46 +00:00
Bob Ball ee61617203 XenAPI: Update to a newer Cirros image
Update to 0.3.4 as it has support for config drive v2

Change-Id: Id8143f16fb3f0b6ce82c1332e8f695ac739a9e8c
2015-07-10 14:11:59 +01:00
Jenkins 52ba3fb4d6 Merge "Correct logging_context_format_string for Ironic" 2015-07-10 08:54:52 +00:00
Jenkins 45f0e3d057 Merge "Use project instead of tenant in create_userrc" 2015-07-10 03:10:42 +00:00
Matt Riedemann 89ee585230 neutron: add NOVA_ALLOW_DUPLICATE_NETWORKS config option
Nova commit 322cc9336fe6f6fe9b3f0da33c6b26a3e5ea9b0c added the
neutron.allow_duplicate_networks config option in Juno and it defaults
to False. The option was deprecated in Kilo with commit
4306d9190f49e7fadf88669d18effedabc880d3b and removed in Liberty with
commit b06867c581541ed325ddc5e5b5a2d53b1b0261ac so it's the default
behavior in Liberty.

To test it in the gate with Tempest, we need to be able to set it to
True in devstack-gate and update tempest.conf (since tempest is branchless
and we don't want to try to test duplicate networks against kilo/juno code).

We can remove the change to lib/tempest when it's removed from Tempest
after kilo-eol.

Depends-On: I05f81d86cde249c23be06d5804fadbf40fc4a7f3

Change-Id: Ifd075420f57c9b60746f4a6af6520c0ef04800db
2015-07-09 13:48:41 -07:00
Jenkins 69ba244ca8 Merge "Update Centos/RHEL to use Kilo RDO packages" 2015-07-09 14:05:11 +00:00
Ian Wienand f0247ed21a Move xtrace early
I dug back through the history to see why xtrace is enabled where it
is.  Originally (like first commit originally), it was somewhat sanely
placed to turn on tracing after it had done the interactive
"read_password" prompt stuff.  Over time, it has just shuffled it's
way down as stuff got added around it.

This was noticed this because I was looking for tracing of earlier
commands when looking at the repo setup (see
Iec2ad7b5598fdaefbc2338ade702bc7b08963b96) and couldn't find it.

Putting this at the start means we both capture all output
unconditionally, and avoid needlessly getting this interleaved at some
odd place again.

Change-Id: I441d7eecbab9d204258c18a071ccc1cbf4f7512a
2015-07-09 15:49:16 +10:00
Zhang Jinnan 23cd71ac94 Update Centos/RHEL to use Kilo RDO packages
Update Centos/RHEL to use Kilo based RDO

Change-Id: I901c4e9dfb6bce377b6afb19bbce94c71dfe127f
2015-07-09 04:23:32 +00:00
Jenkins 229b95c477 Merge "Don't uninstall ceph packages at cleanup" 2015-07-09 03:33:39 +00:00
Jenkins 410949801e Merge "Glance: move connection_url from DEFAULT section to DB section" 2015-07-09 03:32:39 +00:00
Jenkins 58d56fedc8 Merge "Remove unused files from tools/xen." 2015-07-09 03:27:39 +00:00
Jenkins 29ed14af15 Merge "Replace pip-installed requests CA bundle with link" 2015-07-09 00:05:01 +00:00
Jenkins 09659eb298 Merge "Add IPv6 support for _move_neutron_addresses_route" 2015-07-08 23:58:55 +00:00
Jenkins d09f66ff43 Merge "Set ATTACH_ENCRYPTED_VOLUME_AVAILABLE=False if testing with Ceph" 2015-07-08 23:58:50 +00:00
Jenkins 56ecd79782 Merge "Log all input/output in rootwrap calls" 2015-07-08 23:58:44 +00:00
Jenkins f467986434 Merge "Add cleanup for br-tun with OVS" 2015-07-08 22:50:41 +00:00
Jenkins 10e6897cee Merge "Add tunnel_bridge configuration for openvswitch agent" 2015-07-08 22:46:18 +00:00
Matt Riedemann e446fc3f59 Set ATTACH_ENCRYPTED_VOLUME_AVAILABLE=False if testing with Ceph
The encrypted Cinder volume tests in Tempest don't actually work
properly for a Ceph backend in cinder since the volume encryption
support is not in Nova for RBD volume types.

This is needed for Cinder change
I03f8cae05cc117e14f7482115de685fc9f3fa54a which tells Nova that the rbd
volume connection is on an encrypted volume type.

Related-Bug: #1463525

Change-Id: I8548d41095513b9e669f773e3f35353e9228ead9
2015-07-08 12:10:15 -07:00
Jenkins 71828f756f Merge "Add IPv6 support to openrc files" 2015-07-08 12:49:41 +00:00
Jenkins ac3d3f336c Merge "Add IPv6 support to devstack infrastructure" 2015-07-08 12:44:51 +00:00
John Hua 6e121ff53e Remove unused files from tools/xen.
Most of unused files were used with build_domU_multi.sh which has been 
replaced by build_xva.sh. Besides tools/xen/scripts/templatedelete.sh 
was created for convenience purposes and now not in use.

Change-Id: I4282c779629e3413ee3cd3ff134c3b7b19eee487
Closes-Bug: #1470535
2015-07-08 05:59:26 +00:00
Jenkins 7eaaba4844 Merge "Remove duplication in ml2 and openvswitch_agent" 2015-07-07 23:15:31 +00:00
Jenkins 6b6dd5bfff Merge "Move failure trap after functions it uses" 2015-07-07 20:55:15 +00:00
Jamie Lennox c54d4ab910 Include domain variables in accrc
Include the user and project domain parameters in the generated user rc files.
This is fairly simplistic, if we were to follow the existing attitudes we
should iterate over the domains and add a new level of folders however this
would change the output location for files that may be depended upon.

Change-Id: I5e9e78406b11382751a591d91f711161bb98f47a
2015-07-07 19:33:18 +00:00
Jamie Lennox 9d6d8f8015 Use project instead of tenant in create_userrc
The create_userrc file is littered with references to a tenant. The tenant
concept has been deprecated long enough that we should use project instead.

I have not attempted to maintain compatibility with the --os-tenant-X flags
because I have not found reference to anyone using this script outside of
devstack.

Change-Id: I613f1bdc6673f0c4bfe29aaab7b514348a617a8c
2015-07-07 19:21:06 +00:00
Jamie Lennox 494f7cdf35 Use openstack cli for cinder type creation
This command was commented out so assumedly there used to be a bug. Switch to
OpenStackClient as the cinder CLI doesn't handle v3 auth correctly.

Implements: bp keystonev3
Change-Id: I1acdc04cf04b7056701bdded31ef2a015de5bce3
2015-07-08 05:17:00 +10:00
Jamie Lennox 72ce6acd22 Use Keystone V3 API for role creation
Always use the V3 API for role creation.

Groups only exist in the v3 identity API and so we must specify
--os-identity-api-version in these commands.

Implements: bp keystonev3
Closes-Bug: #1470668
Change-Id: I5e01d23ebcb5a0c7de56233071a4eb9b16d3b813
2015-07-08 05:17:00 +10:00
Jamie Lennox b17ad7560d Use identity V3 API for endpoint creation
Always use the keystone V3 API when creating services and endpoints. The syntax
here is slightly different but we maintain the function interface.

Change-Id: Ib3a375918a45fd6e37d873a1a5c0c4b26bdbb5d8
Implements: bp keystonev3
2015-07-08 05:17:00 +10:00
Jenkins 68f9172dbd Merge "Update Neutron section in README" 2015-07-07 18:46:11 +00:00
Jenkins e5c5f260d6 Merge "Added processing /compute URL" 2015-07-07 18:41:22 +00:00
Jenkins 6d7b259094 Merge "Search for service by type" 2015-07-07 17:25:06 +00:00
Jenkins ef59dc7f6a Merge "midonet: Provide has_neutron_plugin_security_group" 2015-07-07 16:32:28 +00:00
Adam Kacmarsky 11298a01f7 Add IPv6 support for _move_neutron_addresses_route
Added functionallity to allow IPv6 addresses to be moved to the
OVS_PHYSICAL_BRIDGE from PUBLIC_INTERFACE automatically using
_move_neutron_addresses_route. Only PUBLIC_INTERFACE and
OVS_PHYSICAL_BRIDGE need to be set in localrc.

HOST_IP must be set in localrc. HOST_IPV6 must be set in localrc if a
global IPv6 address is configured on PUBLIC_INTERFACE.

Change-Id: I8d2c055702e1c7cf08499a77f6843393762fd4c1
2015-07-07 10:30:36 -06:00
Eric Harney 9ef663a70f Don't uninstall ceph packages at cleanup
We stop the services, which should be sufficient.
Uninstalling the packages means that doing repeated
runs with devstack takes longer than necessary.

Change-Id: I5626e42ce83710690a3523439bb2c9c9af560cd9
2015-07-07 09:40:08 -04:00
Jenkins 39d9f87683 Merge "Move ceilometermiddleware installation to lib/swift" 2015-07-07 03:34:28 +00:00
Chris Dent 1848b837e6 Move ceilometermiddleware installation to lib/swift
lib/swift is where it is used so this makes the relationship more
clear and direct.

Change-Id: Ie6fc09e27a39295c92f0790856446edb7dedb995
2015-07-07 10:21:18 +10:00
Jamie Lennox 21a9077d7c Allow installing keystoneauth from git
Keystoneauth is not marked as stable yet however to ensure that the
integration between it, keystoneclient and other services don't break
compatibility we want to test it with tempest.

Unfortunately you can't put -e links in requirements.txt files so add
it to devstack so we can set the test environment. This will also make
it available when keystoneauth is released.

Change-Id: I43ca1df9c6ae2f0ac1a687c9ce1e2ccb97e81652
2015-07-06 23:17:15 +00:00
Jenkins 2d25c9290d Merge "Fixed detection of a project in projects.txt" 2015-07-06 18:22:33 +00:00
Jenkins 05e32fb51e Merge "Support identity API v3 when generate clouds.yaml" 2015-07-06 16:01:49 +00:00
Jenkins c1427fb5fe Merge "Fix library runs." 2015-07-06 01:54:01 +00:00
Jenkins 287fc59b40 Merge "Move USE_CONSTRAINTS normalization back to stackrc" 2015-07-05 07:46:42 +00:00
Hirofumi Ichihara 7ab3e39bc4 Add cleanup for br-tun with OVS
Change-Id: I5c4d28844f40eaad622ef7590c54e0e6647c85e3
Closes-Bug: #1471390
2015-07-04 23:11:52 +09:00
Hirofumi Ichihara d48d672a8d Add tunnel_bridge configuration for openvswitch agent
Change-Id: I0235aa05cf86b3ed9d9620dda3f16b69ced077e3
2015-07-04 22:58:44 +09:00
Hirofumi Ichihara 4f91f93557 Remove duplication in ml2 and openvswitch_agent
Configuration of local_ip is duplication in ml2 because there is
the configuration in both ml2 and openvswitch_agent.
It also should be set in each driver using openvswitch.

Change-Id: Ib0b874aed8db883d778426ed1ae01679fc0cc075
2015-07-04 20:45:24 +09:00
Robert Collins 7c838616c9 Fix library runs.
Libraries were resulting in two edit-constraints runs:
 - one for the library, which adds a non-editable file path
 - then one for the editable servers, but that fails becuse
   pkg-resources couldn't parse the prior entry.

This is fixed in two parts: the dependent patch which supports parsing
file urls that have egg names, and this patch which changes from a
file path to a file url with an egg name.

Change-Id: I0f07858e96ea3baf46f8a453e253b9ed29c7f7e2
2015-07-04 09:55:56 +12:00
Marian Horban e62c906baf Added processing /compute URL
With config option NOVA_USE_MOD_WSGI=True nova-api handles
requests on /compute URL.

Depends on I83bc4731507fa028377ae6701ed4d32adefa9251

Change-Id: Ic84b5c0dc0726662470ef9c076a0cadca55a3917
2015-07-03 06:10:00 -04:00
Jenkins 018c50c2e2 Merge "ceph: remove deprecated glance_store options" 2015-07-03 05:25:40 +00:00
Jenkins ac32cf5425 Merge "Replace RPC Backend text in README" 2015-07-03 01:41:54 +00:00
Jamie Lennox aedb8b97f6 Search for service by type
When you get or create service it first checks to see if an existing
service matching these parameters exists. The definition of existing is
having a service with the same name, however name is not a unique field.
Sahara for example creates two services, one with data-processing, one
with data_processing with the same sahara name.

Search for existing services by service type, not by service name.

Change-Id: I6148e2254aa3968039b0e7c178e7cabc53b6be68
2015-07-03 09:36:02 +10:00
Brian Haley 5d04db20ec Add IPv6 support to openrc files
Assumes devstack was configured with SERVICE_IP_VERSION in
local.conf

SERVICE_IP_VERSION is stored in .stackenv and checked in
openrc. If SERVICE_IP_VERSION is set to 6, openrc will use
IPv6.

NOTE: At first, I added a '-6' option to the openrc call
which would set the HOSTS accordingly. I then simplified
the code by saving SERVICE_IP_VERSION to the .stackenv file
which is sourced by openrc. After that, I simplified the
code even more by removing an extra, unnecessary, variable.

Change-Id: I5d46d5438d3e56fea788720ca17f0010caef3df1
2015-07-02 21:18:16 +00:00
Brian Haley 180f5eb652 Add IPv6 support to devstack infrastructure
By default, most Openstack services are bound to 0.0.0.0
and service endpoints are registered as IPv4 addresses.
With this change we introduce two new variables to control
this behavior:

SERVICE_IP_VERSION - can either be "4" or "6".

When set to "4" (default if not set) devstack will operate
as today - most services will open listen sockets on 0.0.0.0
and service endpoints will be registered using HOST_IP as the
address.

When set to "6" devstack services will open listen sockets on ::
and service endpoints will be registered using HOST_IPV6 as the
address.

There is no support for "4+6", more work is required for that.

HOST_IPV6 - if SERVICE_IP_VERSION=6 this must be an IPv6
address configured on the system.

Some existing services, like the Openvswitch agent, will continue
to use IPv4 addresses for things like tunnel endpoints.  This is
a current restriction in the code and can be updated at a later
time.  This change is just a first step to supporting IPv6-only
control and data planes in devstack.

This change is also partly based on two previous patches,
https://review.openstack.org/#/c/140519/ and
https://review.openstack.org/#/c/176898/

Change-Id: I5c0b775490ce54ab104fd5e89b20fb700212ae74
Co-Authored-By: Sean Collins <sean@coreitpro.com>
Co-Authored-By: Baodong Li <baoli@cisco.com>
Co-Authored-By: Sridhar Gaddam <sridhar.gaddam@enovance.com>
Co-Authored-By: Adam Kacmarsky <adam.kacmarsky@hp.com>
Co-Authored-By: Jeremy Alvis <jeremy.alvis@hp.com>
2015-07-02 15:16:34 -06:00
Jenkins 52844a11dd Merge "Already dead process tolerance in unstack.sh" 2015-07-02 20:13:06 +00:00
Jenkins 7a0f6833ad Merge "remove non RabbitMQ messaging" 2015-07-02 20:09:05 +00:00
Jenkins fee742ba72 Merge "Move Sahara into in-tree plugin" 2015-07-02 18:39:38 +00:00
Jenkins 17a16f3144 Merge "constraints file support for devstack." 2015-07-02 17:35:53 +00:00
Dean Troyer 0ffdb368a6 Move USE_CONSTRAINTS normalization back to stackrc
stackrc needs to do all of the initialization for situations (Grenade,
unstack.sh, etc) that do not run stack.sh

Change-Id: Ib8c7b923dde817b37f852515dd049fcf970b999a
2015-07-02 09:10:45 -05:00
Jenkins 1f9de18a1e Merge "Add new oslo libraries" 2015-07-02 01:57:20 +00:00
Robert Collins 635a5ba992 constraints file support for devstack.
Constraints files allow a global view of dependencies for devstack
without the side effect that requirements files have of installing
everything everytime. This is part of the cross project
requirements-management spec.

Change-Id: If089d30146629e6cf817edd634e5c2b80f1366dd
2015-07-02 11:37:22 +12:00
Assaf Muller a709b11a53 Update Neutron section in README
Change-Id: Ic4b354a587a1d5f83037fb5250e8e5c9cfe6d48c
2015-07-01 18:50:05 -04:00
Jenkins f60678ae64 Merge "Set compute-feature-enabled.attach_encrypted_volume Tempest option" 2015-07-01 20:49:53 +00:00
Jenkins c3bf2e7f56 Merge "Ironic: Fix iPXE Connection timed out" 2015-07-01 19:28:44 +00:00
Jenkins 742cd6f707 Merge "Fix typo in installation of vmware virtdriver" 2015-07-01 18:11:51 +00:00
Matt Riedemann e57a33224b Set compute-feature-enabled.attach_encrypted_volume Tempest option
This allows setting the new option in Tempest for toggling whether
or not the Cinder encrypted volume tests should run.

Depends-On: I48eba7c645cc1c979fd766ae9c05efb00957f787

Related-Bug: #1463525

Change-Id: I9e12f8dc9e3e6b68dc031351cb081ee2bc6e6cbb
2015-07-01 09:37:54 -07:00
Dean Troyer 9997038992 Replace RPC Backend text in README
Review https://review.openstack.org/#/c/192154/ removed support for RPC backends
other than RabbitMQ, but we should still document how to disable rabbit.

Change-Id: I1fd64b5f02573c58d7b0d1005c39a22c459a09a5
2015-07-01 11:28:40 -05:00
Sergey Lukjanov 3381e09f72 Move Sahara into in-tree plugin
Once the Sahara related code moved to Sahara repo and used, we can
remove Sahara specific code from Devstack.

Partial-Implements: bp sahara-devstack-intree

Change-Id: I34412b5cb2e86944b8555b8fd04b43556eb2bbe6
Depends-on: I2e00b2ebc59dd3be6a0539dea2985f2e801a1bd7
Depends-on: I07c3fede473030e8a110cbf5a08309f890905abf
2015-07-01 16:09:56 +00:00
Ihar Hrachyshka 2ba4a7214c Fixed detection of a project in projects.txt
Before the fix, requirements soft-update was used for projects that are
in the file.

Change-Id: I095d42521f54b45a6b13837e2f8375fa04532faa
Closes-Bug: #1469067
2015-07-01 13:42:14 +00:00
Attila Fazekas f750a6fedb Already dead process tolerance in unstack.sh
The gate/updown.sh calls the unstack.sh with
-ex option. Normally we do not use -e with unstack.sh.

The unstack.sh can fail if the service already stopped,
and it also can have flaky failures on the gate.

For example the stop_swift function tries to kill swift in two
different ways, and if the first one succeeds before the 2th attempt
the pkill fails the whole unstack.sh.

This change accepts kill failure.
Normally the kill can fail if the process does not exits,
or when you do not have permission to the kill operation.

Since the permission issue is very unlikely in our case,
this change does not tries to distinguish the two operation.

The behavior of the unstack.sh wen you are not using -ex should
not be changed by this change.

Change-Id: I64bf3cbe1b60c96f5b271dcfb620c3d4b50de26b
2015-07-01 12:17:35 +02:00
Jenkins 85a1c488df Merge "Fix typo: where is runs => where it runs" 2015-07-01 10:04:24 +00:00
Ian Wienand 5c7f39fdcd Add worlddump unit test
Add a worlddump unit test to avoid simple breakages

Change-Id: I6b87d4dbe22da2c1ca5ceb13134e9bb570f5cef2
2015-07-01 06:29:27 +10:00
Ian Wienand 3a9df1dab7 Check for nova-compute before running kill
Unconditionally running this can lead to confusing failure output from
kill as the pgrep matches nothing when nova-compute isn't yet running.

Change-Id: I37cb84fe8e0b393f49b8907af16a3e44f82c46a6
2015-07-01 06:18:47 +10:00
Ian Wienand 99440f9d59 Wait for command in worlddump
Wait for the command to complete and catch errors when running
commands.

Change-Id: I2c93b3bdd930ed8564e33bd2d45fe4e3f08f03f5
2015-07-01 06:14:01 +10:00
Davanum Srinivas 77a7d11dfa Add new oslo libraries
Full list for liberty is as follows:
* oslo.service
* oslo.reports
* automaton
* futurist

oslo.cache was already added in the earlier review

Some of the entries are already there, though automaton was
missing in one spot. Made sure all references have all five
libraries.

Change-Id: Iffb720d46058424924469695a3ae1e4f20655f99
2015-06-30 18:43:56 +00:00
Amey Bhide 432268b17b Fix NameError in worlddump.py
Change-Id: Ie87e5b5ead777c0153ed7fa5d1db5cc1ae444261
2015-06-30 11:41:13 -07:00
Jenkins 7bc1f3c15f Merge "Use Keystone v3 API for user creation" 2015-06-30 17:15:58 +00:00
Jenkins 474172490f Merge "Use keystone v3 API for projects" 2015-06-30 17:15:54 +00:00
Jenkins 3a2fdb04ef Merge "Add oslo.cache to devstack" 2015-06-30 17:06:59 +00:00
Jenkins d014727c45 Merge "Drop no longer needed and broken check for cinder in is_service_enabled" 2015-06-30 16:55:31 +00:00
Jenkins e439dbe9d4 Merge "Fixing the deprecated library function" 2015-06-30 16:55:24 +00:00
Jenkins 255794fccf Merge "Use ip route replace to avoid the existing route" 2015-06-30 16:55:18 +00:00
Jenkins 8f8fda1d07 Merge "Add cleanup for Linuxbridge-agent" 2015-06-30 16:52:05 +00:00
Ian Wienand 4ffb454145 Add header guard to functions/functions-common
To avoid sourcing this twice and getting globals mixed up,
particularly when using multiple plugins, add a "header guard" that
ensures we only source it once.

In general I don't think functions/functions-common have been written
or considered to be idempotent.  I don't think going down that path is
going to be a long-term solution as it's easy to break.

Change-Id: Idca49eb996d2b7ff3779ec27ed672a2da7852590
Closes-Bug: #1469178
2015-06-30 13:48:53 +10:00
Ian Wienand 04c0f0be26 Move failure trap after functions it uses
Move the failure trap after the functions it uses, so that
"delete_all" is defined when it is triggered.

Change-Id: Icb2465d0f834b8cb2d46dca3c7df4ae06e49d9b5
2015-06-30 13:48:53 +10:00
Jenkins 98b652419a Merge "Tune mysql a bit better for concurrent operations" 2015-06-30 03:19:23 +00:00
Jenkins 64f7b86c32 Merge "Install qemu-kvm package on centos/fedora" 2015-06-30 01:18:21 +00:00
Anandprakash Dnyaneshwar Tandale bde24cb7c2 Fixing the deprecated library function
os.popen() is deprecated since version 2.6. Resolved with use of
    subprocess module.

Change-Id: Ib6a91ee525e2e57d3901d2c0c1b2d1305bc4566f
2015-06-29 15:04:30 +05:30
Hirofumi Ichihara 5c0546e427 Add cleanup for Linuxbridge-agent
Change-Id: I53f445e7f8efd950823f79aca95b9e65d1544ee9
Closes-Bug: #1469609
2015-06-29 17:07:40 +09:00
Steve Martinelli 531017cf3e Add oslo.cache to devstack
as part of the graduation process, add oslo.cache to lib/oslo
and stackrc.

Change-Id: I2baf0384dd5d71d234a95b7acd0bfe5534f2732c
2015-06-27 15:10:51 +00:00
Chris Dent 53a8f7c7bc Fix typo in installation of vmware virtdriver
The probably got introduced in recent adjustments to cleanup the
virt driver installs.

Change-Id: Ic51411d5bd9b18d395dbdf948c58fea2d53eba0d
2015-06-27 15:07:20 +01:00
Chris Dent dcc8a30f2a Be more explicit about jenkins project config
In documentation like this (which is a huge boon) we should strive to be
as explicit and helpful as possible, so this change tries to be more
clear about what a project.yaml is and where one might go to create it
or change it.

Change-Id: Ia66a361fc7d79e511afa3ad903fffb122b86998b
2015-06-27 12:45:21 +00:00
Jenkins e4d57d6bed Merge "Fixes for Linux Bridge in the L3 agent" 2015-06-26 21:20:00 +00:00
Jenkins 71e51c09c0 Merge "make test_with_retry a function" 2015-06-26 20:42:08 +00:00
Brant Knudson cef5e40e0c Support fernet token provider
Keystone added the "fernet" token provider in Kilo. This adds
support for it.

Change-Id: I6b7342ea67157a40edc8b9ba3d84d118e39d86ed
2015-06-26 15:34:15 -05:00
Brant Knudson 68e6ae60e7 Support identity API v3 when generate clouds.yaml
When using IDENTITY_API_VERSION=3, the clouds.yaml must also set
auth/user_domain_id and project_domain_id.

Change-Id: If028f2935ea729276f40039a4003c07c08e91672
2015-06-26 19:59:41 +00:00
Dmitry Tantsur f2a05497a3 Drop no longer needed and broken check for cinder in is_service_enabled
There is properly working is_cinder_enabled now, and this check
actualy matches ironic-inspector, breaking its devstack plugin.

Change-Id: I659ec9b9b2b49690fd075f9766ae8cbf19e81848
Closes-Bug: #1469160
2015-06-26 15:22:01 +02:00
Ian Wienand 614ca26b47 Install qemu-kvm package on centos/fedora
Change I79a8d8ac7ad2fbd7d2fce696821d130218e43e03 removed the install
of python-libguestfs, which was actually hiding a dependency issue on
Centos.  The "kvm" package is ultimately missing some bios files from
"seabios-bin" -- however with python-libguestfs installed this was
coming in via a dependency chain that pulled in qemu-kvm, which has
the dependency.

qemu-kvm is not strictly required as all the functionality is within
qemu-system-x86.  But while we get [1] sorted out this restores the
job functionality.

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1235890

Change-Id: I3379bc497978befac48c5af0f1035b96d030b7eb
2015-06-26 14:45:04 +10:00
Sean M. Collins 71947d5fd0 Fixes for Linux Bridge in the L3 agent
Prior to this patch, the logic for configuring the interface used for
the L3 agent was OVS specific. This patch introduces code to correctly
identify the brq device that is used for the L3 agent when using the
Linux Bridge mechanism driver.

Change-Id: I1a36cad0fb790aaa37417a1176576293e4f2c87f
Co-Authored-By: Jens Rosenboom <j.rosenboom@x-ion.de>
2015-06-25 09:21:52 -06:00
Jenkins c782781a4c Merge "Add devstack-admin cloud to clouds.yaml" 2015-06-25 12:11:38 +00:00
Jenkins 065fdf2456 Merge "Update clouds.yaml" 2015-06-25 11:58:31 +00:00
Jenkins 9ef01b1f28 Merge "Use swift store config files in glance" 2015-06-25 11:45:28 +00:00
Jenkins 28b481ec0b Merge "Check if cinder is enabled before doing anything lvm2 related" 2015-06-25 10:35:08 +00:00
Tomoki Sekine 1e3a89eeff Fix typo: where is runs => where it runs
Change-Id: I7dad52c5b5ea91d727bd8ee7253a64422e4ec210
2015-06-25 06:35:07 +09:00
Sean Dague b0160d0fa9 Log all input/output in rootwrap calls
This should make it easier to understand possible interactions between
rootwrap processes calling commands that might be the cause of race
bugs.

Closes-Bug: 1081524
Change-Id: Ic1f1fa42e4478a9d30f0f582a68f648935d0097d
2015-06-24 21:01:00 +00:00
Brant Knudson 3bae7d48c0 Keystone also handle /identity and /identity_admin
When configured to run under Apache Httpd, keystone will also
handle requests on /identity (public) and /identity_admin (admin).

Change-Id: I4e6eb0cad1603aa0e612d0adc5431565da93870e
2015-06-24 15:58:47 -05:00
Sean Dague 442e4e9625 make test_with_retry a function
We have this pattern of timeout with while tests for a non infinite
while loop condition. It's enough of a pattern that we should probably
extract it into a function to make it more widely used.

Change-Id: I11afcda9fac9709acf2f52d256d6e97644d4727c
2015-06-24 13:24:02 -04:00
Sean Dague 7af8a1b9b3 only soft enforce requirements not in projects.txt
We're adding the ability to have devstack plugins, which should be
much more free to require new things not in global requirements. Our
old thinking of locking down all the requirements doesn't really work
in a plugin model.

Instead, if the project is in projects.txt, continue with the old
behavior. If it is not, do a soft update (update all the requirements
we know about, leave the ones we don't). This was previously the SOFT
requirements update mode, but now it will just be the default.

Change-Id: Ic0c6e01a6d7613d712ac9e7e4a378cc3a8ce75e6
2015-06-24 05:55:02 -04:00
gong yong sheng 348c6ace71 Use ip route replace to avoid the existing route
Change-Id: I3cc82aca1e3fd26e3beb4baee1f11a9b45e8b9f7
Closes-Bug: 1467762
2015-06-24 17:39:46 +08:00
Jenkins c4067a3cc0 Merge "Only install python-libguestfs bindings when needed" 2015-06-23 22:43:01 +00:00
Jenkins 261a23ece7 Merge "SUSE: Clean up libxslt/libxml2 related dependencies" 2015-06-23 21:52:11 +00:00
Jenkins a9d510604c Merge "Ensure yum-utils is installed before using yum-config-manager" 2015-06-23 20:09:04 +00:00
Jenkins ca4659931a Merge "Don't install pbr in a venv" 2015-06-23 18:31:38 +00:00
Jenkins 9f56aac3f1 Merge "Docs: Use RFC5737 for Provider Networking" 2015-06-23 16:39:05 +00:00
Lucas Alvares Gomes 010963c677 Correct logging_context_format_string for Ironic
We should use "tenant" and "user" instead of "project_name" and
"user_name" by calling setup_colorized_logging with these parameters.

Closes-Bug: #1467942
Change-Id: I484ef431ac422e25545391ed41fab45060a7b821
2015-06-23 14:16:55 +01:00
Lucas Alvares Gomes 365d11dfa9 Ironic: Fix iPXE Connection timed out
This patch fixes the problem of iPXE connection timing out when it's
trying to fetch the configuration files and images from the HTTP server
by accepting requests to HTTP server port on iptables.

Closes-Bug: #1467894
Change-Id: I43d66335a97c376ab64d604ff807540d0decc401
2015-06-23 11:52:10 +01:00
Robert Collins 7ebe8e0751 Don't install pbr in a venv
Because PIP_VIRTUAL_ENV was set for the installation of requirements,
and left around in scope, the installation of pbr no longer happened
in a global context, it instead landed inside the virtual
env. Unsetting the variable after requirements install gets us back to
where we expect.

This was an unintended side effect of the requirements-venv patch.

Change-Id: I2c4cb4305fec81a5fd237edabee78874ccd0da22
2015-06-23 06:31:02 -04:00
Dirk Mueller 0ae942b41c Only install python-libguestfs bindings when needed
Currently those bindings are missing from SLES12, and since
they're not actually used unless file injection is enabled
(which is not by default), only conditionally depend on it.

Change-Id: I79a8d8ac7ad2fbd7d2fce696821d130218e43e03
2015-06-23 12:22:21 +02:00
Dirk Mueller c7e89f2380 SUSE: Clean up libxslt/libxml2 related dependencies
libxml2-devel is a dependency of libxslt-devel, so we don't need
to explicitly include it. Also, since it is only really needed
by python-lxml, consolidate it into devlibs and remove the copies.
Also remove a non-existing package reference along the way

Change-Id: If9afaaa93f2c485baa1efff74d7ae58c59713de6
2015-06-23 12:07:39 +02:00
Jenkins 65c25e9e5e Merge "use pip_install_gr for ceilometermiddleware" 2015-06-23 00:03:07 +00:00
Jenkins 3904fb8832 Merge "Enable the volume bootable feature flag that was added in kilo" 2015-06-22 16:37:38 +00:00
Matt Riedemann 2f63da9e0e Ensure yum-utils is installed before using yum-config-manager
yum-utils provides yum-config-manager but the check for yum-utils is
currently being done after the first usage of yum-config-manager, which
fails if you don't have yum-utils already installed, so move it up
before the first usage of yum-config-manager.

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

Closes-Bug: #1467270

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

This reverts commit de8d29ed8c.

Related-Bug: #1464612

Change-Id: I889f4f8b116c413b300ab9eecc7b428a9a4afb1a
2015-06-12 16:42:32 +00:00
Jenkins 008f42a24c Merge "Revert "change the default to PyMYSQL"" 2015-06-12 14:02:00 +00:00
Dirk Mueller 987f83da5a SUSE: Add dependencies for L3 agent
Change-Id: If3f4f5ab9a3072273d2f440718ce0c75fd71fdf1
2015-06-12 13:32:39 +02:00
Sean Dague de8d29ed8c Revert "change the default to PyMYSQL"
The failure rate with neutron is too high to keep this
as the default.

Related-Bug: #1464612

This reverts commit b3798af474.

Change-Id: Ie9550aeb25d472a38e3d3ef6f3711622c9221c46
2015-06-12 10:43:28 +00:00
Jenkins 7a6f0b6bff Merge "guru meditation report for nova-compute in worlddump" 2015-06-12 07:50:17 +00:00
Julien Danjou 0f63eb3a37 Install PyMySQL if used
Change Ic609ce136061b753ca692b37509a0b29c60bb8b5 switched to PyMySQL by
default but does not make sure it is installed. This is causing gate
failure in Gnocchi for example:

  http://logs.openstack.org/25/186025/3/check/gate-gnocchi-dsvm-functional-file-mysql/eebd773/logs/devstacklog.txt.gz

Change-Id: I23d313220607fcc8acb95ab43f55b7d9899b9b1f
2015-06-12 09:05:12 +02:00
Jenkins 7b66c4f7af Merge "Create and initialize the nova api_db" 2015-06-11 22:16:42 +00:00
David Kranz d1d6667c6b Enable the volume bootable feature flag that was added in kilo
Change-Id: I5f8e0154a8b654b4c65b95f8b5c03e1a9be9e137
2015-06-11 13:09:37 -04:00
Jenkins 1e6b33377f Merge "change the default to PyMYSQL" 2015-06-11 11:35:38 +00:00
Jenkins 4e0defe109 Merge "Cleanup FAQ somewhat" 2015-06-11 03:06:25 +00:00
Dan Smith 03786b1cca Create and initialize the nova api_db
Going forward, nova will have another database at the API level (similar to how
current cells has an api-level cell, with its own database). This patch creates
and initializes it so that we can start testing the migrations with grenade.

Change-Id: I0dfae32102aeda9c5d17e134527b6a18f4b88014
2015-06-10 14:57:33 -07:00
Joshua Harlow e3a640d573 Add futurist to lib/oslo and stackrc
Part of blueprint adopt-futurist

Change-Id: I17e27a085c7c509bad6018016e90d0114543b073
2015-06-10 11:57:41 -07:00
Joshua Harlow 96c6b2deb3 Add automaton to lib/oslo and stackrc
Part of blueprint adopt-automaton

Change-Id: I520643b74aced431f7a46b7d7b94616bb2e6bf8e
2015-06-10 11:48:50 -07:00
Jenkins dd4e468448 Merge "Fix typo: _create_volume_group => _create_lvm_volume_group" 2015-06-10 18:33:45 +00:00
Louis Taylor 21afa42da6 ceph: remove deprecated glance_store options
glance_store has now been fully migrated, so we can stop setting these
options in the config files.

Change-Id: I3c6c2eea0171227b1ed362e74bcc5b10770721be
2015-06-10 12:55:10 +00:00
Jenkins dae868fcb0 Merge "Revert "Replace pip-installed requests CA bundle with link"" 2015-06-10 12:51:52 +00:00
Russell Bryant cfbc7918c5 Simplify start_neutron_other_agents
This patch just simplifies the start function a bit by removing some
unnecessary is_service_enabled checks that just wrap run_process
calls.  run_process does this exact check internally so it's not
needed here.

Change-Id: Id12a23f77ea0342854337c7d65821dd4e574dec2
Signed-off-by: Russell Bryant <rbryant@redhat.com>
2015-06-10 08:27:26 -04:00
Sean Dague 7272afdf8b Revert "Replace pip-installed requests CA bundle with link"
This does not gracefully handle the situation where requests
is not there at the beginning. Needs to be rethought.

This reverts commit 7d350720fe.

Change-Id: I101fac0dc6fdc97b7fb0b2955cffc6b4905152e5
2015-06-10 10:26:57 +00:00
Jenkins 84acb7a3a9 Merge "ceilometer: add tempest option to test events" 2015-06-09 23:06:39 +00:00
Jenkins 6108092d30 Merge "XenAPI: Increase OpenStack DomU usage again" 2015-06-09 23:00:16 +00:00
Jenkins c717d50923 Merge "Documentation for single interface Neutron networking with OVS" 2015-06-09 23:00:12 +00:00
Jenkins 1bbe71c856 Merge "Replace pip-installed requests CA bundle with link" 2015-06-09 23:00:07 +00:00
Jenkins 4c746084e2 Merge "Enable image deactivate feature which was added in kilo" 2015-06-09 22:30:32 +00:00
Jenkins 2f5598be91 Merge "Fix nova and glance discovery URLs when tls-proxy is enabled." 2015-06-09 22:26:21 +00:00
Jenkins 69c32dbfc1 Merge "Neutron: Add a cleanup function for Linux Bridge" 2015-06-09 22:26:12 +00:00
Jenkins f324cf2ae1 Merge "Fix sample multinode configuration" 2015-06-09 22:16:50 +00:00
Aaron Rosen d8ed29dcb3 Add vmware_nsx_v3 support
Sadly this is needed. We should refactor this out from all of the
plugins so we don't need to have all of these files. Adding this one
for now though.

Change-Id: Id382443fa7bef6b45237688c7e88d9e9a80a6ba1
2015-06-09 13:16:12 -07:00
Ben Nemec 64b2ebca15 Make sure iptables-services is installed
The iptables service files are no longer included by default on
Fedora.  This causes the systemctl calls in fixup_stuff.sh to fail
when disabling firewalld in favor of iptables.

Change-Id: If37691d03e3d07ca8b53c541717081beeb184c16
Closes-Bug: #1462347
2015-06-09 15:22:37 +00:00
Ian Wienand 64cf204408 Add note on openrc and zsh
Add a note about running openrc through bash for import into zsh, as
shown by Chmouel Boudjnah in I5b6c8cfedcdd36efb4cbc91831501ee5c9c3b1d1

Change-Id: I5f1c9fc3fdc045cf6fb69af13f6264a81bf5f763
Closes-Bug: #1460656
2015-06-09 12:39:30 +10:00
Ian Wienand 2f27addf66 Move FAQ to a section-based format
Move to a section-based format, and add a TOC so we can see an
overview of the questions.

Change-Id: Ie480f2ab759a5a7081d4dc7d2491b44a85b6503a
2015-06-09 12:39:23 +10:00
Ian Wienand a16e46100a Cleanup FAQ somewhat
Remove some old discussions that no longer seem relevant and cleanup a
few other points.

Change-Id: I175ddaf9362bf48d35b0e648904eeb21bdc3c793
2015-06-09 12:37:39 +10:00
Rob Crittenden ce2d75df01 Remove hardcoded http in URL in sahara exercise script
The script hardcoded http://$SERVICE_HOST/... which failed
when SSL or tls-proxy was enabled. Calculate the protocol
based on enabled services instead.

Change-Id: I192eeeafe7bf4dc5cbd382c505ffb9307651d78a
2015-06-08 17:30:35 -04:00
Russell Bryant 09b94603bb Separate start/stop control of Neutron L2 agent.
This patch separates out control of the Neutron L2 agent from
starting/stopping the rest of Neutron.  This is needed for the same
reason that control of nova-compute was separated out for Nova.  When
doing rolling upgrade testing with Grenade, we need to be able to stop
and upgrade everything except the L2 agent, as that is what would be
running on a compute node.

After this is in place, we can update grenade to support a partial
upgrade scenario with Neutron and run it in jenkins to ensure we don't
break live upgrade support of Neutron.

Change-Id: I7eb87fba778aff3e4514813c6232dafa99ee2912
Signed-off-by: Russell Bryant <rbryant@redhat.com>
2015-06-08 15:27:41 -04:00
Sean M. Collins 7bc2af7a6b Neutron: Add a cleanup function for Linux Bridge
Change-Id: Ia1bad5d2fa3b94afc662463b2e072f8482b0ce1f
2015-06-08 15:09:19 -04:00
Ramy Asselin 10e1fd420d Allow override of os-brick library used by cinder
os-brick code was pulled out of cinder and made into its own library
https://review.openstack.org/#/c/155552/

added to requirements:
https://review.openstack.org/#/c/177372/

Integration tests were added
https://review.openstack.org/#/c/188156/

But they still use the version of os-brick from pip.

This change updates devstack to pull in the changes from
os-brick patch sets instead, when configured to do so.

Needed-by: Id2bc10782847861fe4bb5e9e46245654450e38fd

Change-Id: I5359dd37dfe94bd469d5ca35f9fbaeda61b5fac4
2015-06-08 09:54:16 -07:00
Joe Gordon 2ebe993b25 guru meditation report for nova-compute in worlddump
Nova-compute is hanging in the multinode test, and its difficult to
figure out why. So trigger a guru meditation report for nova-compute in
worlddump so we can see what nova-compute is doing when it is hung.

Having a hung nova-compute causes tempest to fail and
I035fe8e3333034e44b403ed0f986220ab5b0e57a runs worlddump whenever
tempest fails.

Bug 1462305 is one of the last issues left before the multinode job is
stable enough to gate on, and this patch should make it much easier to
debug.

Change-Id: I87d7536b5992c47b8082684cc662f953113fd1a8
Related-Bug: #1462305
2015-06-07 17:01:52 +09:00
Chris Dent 027e2ea741 Allow ceilometer to run in virtualenv if USE_VENV
This requires three main changes:

* setting CEILOMETER_BIN_DIR appropriately
* running the various services with a full path
* explicitly installing optional python modules (for mongo and
  virt drivers, if configured) during the install phase

In the process of making this work it was discovered that setting
CEILOMETER_BACKEND to something like 'foo' would cause the backend
to be configured to use mongodb but for the mongodb system packages
and related python modules to not be installed. Fixing this was used
to validate the install process under USE_VENV.

Change-Id: I35fbfa76bdd60a22ba90b13666b06eeb961dddb3
2015-06-05 18:43:50 +00:00
Rob Crittenden 6254d5fd0d Fix nova and glance discovery URLs when tls-proxy is enabled.
Retrieving the root page in the nova and glance APIs include
URLs for the various versions supported. These are by default
reported using unsecure URLs. Configure the services to report
a SSL-based URL instead.

Change-Id: I220757e53b94a5f6d19291371407220fdf54c645
2015-06-05 13:56:27 -04:00
Kashyap Chamarthy a53ae68889 Remove Fedora 20 as supported distribution
Fedora 20 will reach end of life on 23-JUN-2015[1]; remove it as
supported distribution. Add Fedora 22 where applicable.

    - stack.sh: Remove Fedora 20 from list of supported distributions.
    - files/rpms/general: Remove 'f20' from NOPRIME.
    - lib/ceph: Remove 'f20' from the check_os_support_ceph()
      function.
    - doc/source/index.rst: s/Fedora 20/Fedora 21/

[1] https://lists.fedoraproject.org/pipermail/devel-announce/2015-May/001586.html

Change-Id: I8f2e1ddc24c071754b1cceb5bed5bdafdc9d9f79
2015-06-05 12:53:27 +02:00
Jenkins 21b7e975fa Merge "MAINTAINERS.rst: Add MidoNet section" 2015-06-05 00:41:37 +00:00
Jenkins 43be124e86 Merge "Add utopic and vivid as a supported distros" 2015-06-05 00:14:38 +00:00
Jenkins 62bc560bd8 Merge "Change the restart_rpc_backend loop to accomodate async rabbitmq" 2015-06-05 00:13:08 +00:00
afazekas 50a3edf1b7 Enable deactivate image tests in tempest
Deactivate image is new feature, so it cannot be default
enabled in tempest.

Change-Id: Ic33b3e2f7a9f62543680647312603bdd19b90198
Depends-On: I7880f0e2646ce8660e035ebaa19a60f5bf271b64
2015-06-03 14:45:30 +02:00
YAMAMOTO Takashi 3fe4c4e789 MAINTAINERS.rst: Add MidoNet section
While the most part of MidoNet code is now externally maintained
using the external plugin mechanism, it can be still useful to
have a contact list.

Change-Id: I3e0a0586c07875ca37ce101dd169eaf78f34f7a5
2015-06-03 17:39:34 +09:00
YAMAMOTO Takashi aa54511727 midonet: Provide has_neutron_plugin_security_group
Change-Id: I6ac12022bb8998fbec17cfa503db9277aa2eb8b7
Partial-Bug: #1458871
2015-06-03 17:12:59 +09:00
Rob Crittenden 7d350720fe Replace pip-installed requests CA bundle with link
If the version of python-requests required is higher than
that provided by the operating system, pip will install
it from upstream.

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

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

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

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

Change-Id: I349662ff8f851b4a7f879f89b8975a068f2d73dc
Closes-Bug: #1459789
2015-06-02 18:35:33 -04:00
Jenkins a1774b5704 Merge "Define PUBLIC_BRIDGE in the main Neutron lib" 2015-06-02 20:32:41 +00:00
Jenkins 89456aea8e Merge "Remove the code against flushing public bridge" 2015-06-02 20:32:37 +00:00
Jenkins 700af398ce Merge "Simplify add_user_to_group function" 2015-06-02 20:32:30 +00:00
Jenkins fc62127a5f Merge "Remove packaged rpm python libraries" 2015-06-02 20:32:21 +00:00
Jenkins e37d1dd1bc Merge "Add missing libmysqlclient-devel dependency for SUSE" 2015-06-02 20:32:17 +00:00
Jenkins 250fe6e9d0 Merge "Skip the .tox dir when building docs" 2015-06-02 20:25:18 +00:00
Jenkins 7757df5a88 Merge "Skip 'shocco' code when running tox" 2015-06-02 20:23:31 +00:00
Jenkins ab367dc42a Merge "Fixing keystone v3 version use for horizon" 2015-06-01 20:12:30 +00:00
Jenkins 83ac7645a9 Merge "optional pymysql support" 2015-06-01 20:08:02 +00:00
Sean M. Collins 64d5ecf3bf Define PUBLIC_BRIDGE in the main Neutron lib
This way, it can be used by both OVS and Linux Bridge

Change-Id: Iea5a8bb720d327b69f64791a23d414d4cde2e3ea
Closes-Bug: #1460758
2015-06-01 14:13:41 -04:00
Sergey Skripnick 25cb34606e Fix sample multinode configuration
There should not be c-sch and c-api services on compute node.

Change-Id: Ice057eb80e7ab6e917ca972abe7eaae7d635e8a5
Closes-Bug: 1393721
2015-06-01 19:06:46 +03:00
David Kranz f100e1cfe6 Enable image deactivate feature which was added in kilo
Change-Id: Ia1d3d811bd57d3de16d397cfab341e8d0f17cb69
2015-06-01 10:37:51 -04:00
Dirk Mueller 643779873a Remove packaged rpm python libraries
We want to use the pip versions instead, only python-devel
should be needed.

Change-Id: If7720d54c4ad3358f9dc2fceedd6f5897085eb8f
2015-06-01 12:48:32 +02:00
Dirk Mueller 1ebe4f1ff0 Add missing libmysqlclient-devel dependency for SUSE
Currently devstack unconditionally installs MySQL-python, so
we need to have its dependencies available. Since this is
transitional until the switch to PyMysql happened, lets just
add the dependency for now to have devstack working again.

Change-Id: I638b5999d35a06eee962679b1cd95950bbf2b1d7
2015-06-01 12:48:27 +02:00
Jenkins acdb7f6d52 Merge "Fix horizon files for SUSE" 2015-06-01 06:29:24 +00:00
Tony Breeds 0bedeb9062 Add utopic and vivid as a supported distros
Change-Id: I63843335bd70ab9701bbd10dcf61f3eaa45a10e8
2015-06-01 16:25:37 +10:00
Tony Breeds 6bc905c348 Change the restart_rpc_backend loop to accomodate async rabbitmq
Some distros have converted to systemd for starting RabbitMQ.  This has
resulted in:
---
[Call Trace]
./stack.sh:904:restart_rpc_backend
/home/stack/projects/openstack/openstack-dev/devstack/lib/rpc_backend:201:die
[ERROR] /home/stack/projects/openstack/openstack-dev/devstack/lib/rpc_backend:201 Failed to set rabbitmq password
Error on exit
World dumping... see /opt/stack/logs/worlddump-2015-05-29-031618.txt for details
---

Because 'restart_service rabbitmq-server' returns before the server is ready to
accept connections.

Alter the retry loop to only restart the rabbitmq-server every second time
through the loop.  Allowing time for the slow rabbit to start.

Closes-Bug: 1449056
Change-Id: Ibb291c1ecfd109f9ed10b5f194933364985cc1ce
2015-06-01 16:23:13 +10:00
Thomas Bechtold a858085afb Simplify add_user_to_group function
Current SLE12 and openSUSE13.X versions can handle usermod's '-a' and '-G'
switches so remove the special case.

Change-Id: If0f1390a0eb8f41ffffca74525a4648cfe8ea61d
2015-05-31 00:04:33 +02:00
Thomas Bechtold 06efa2ac5d Fix horizon files for SUSE
python-CherryPy and python-beautifulsoup are not needed so remove them
from the list of packages for horizon.

Change-Id: I45ddf98b5891a1f1f1da82bb4afa79ea43d156cc
2015-05-30 23:55:33 +02:00
Thomas Bechtold 4be092da3e Fix devlibs for SUSE
libmysqld-devel is needed for installing MySQL-python. Otherwise the
following error occurs:

EnvironmentError: mysql_config not found

Change-Id: Id84d3116d5987976169d8e2f9aca754ded205880
2015-05-30 23:28:48 +02:00
David Lyle 7ef246492c Fixing keystone v3 version use for horizon
The setting for overriding Horizon's OPENSTACK_API_VERSIONS is not
the correct format. The version should be a number, not a string.

so should be 3, not "v3".

Change-Id: I193d21514b196336796eac067417dc2aaec56433
Closes-Bug: #1460190
2015-05-29 13:49:03 -06:00
Sean M. Collins 02ae50dc99 Documentation for single interface Neutron networking with OVS
Change-Id: I7a72377f55952db629c2ce7ba4ed648635e581ef
2015-05-29 11:32:45 -04:00
Tony Breeds 6d50d95cae Skip the .tox dir when building docs
When running tools/build_docs.sh in a devstack dir that has also run tox
build_docs needlessly runs shocco on the .tox files.

Just skip them.

Change-Id: Ia561e49ea2214ac75bd55964f1b86872118b2031
2015-05-29 12:26:31 +10:00
Tony Breeds 31127a2a74 Skip 'shocco' code when running tox
when running tox in a devstack directory where you have previously run tox
-edocs the bashate testenv will fail as the shocco code doesn't match the
devstack style.

eg:
---
E003: Indent not multiple of 4: '           2>/dev/null ||'
 - /home/stack/projects/openstack/openstack-dev/devstack/shocco/shocco.sh : L352
<snip>
27 bashate error(s) found
---

Take the easy path and avoid running bashate in the shocco dir.

Change-Id: I5b0155332ec994afaffc5c5961902281864cff61
2015-05-29 12:21:09 +10:00
Jenkins 493d3b3aff Merge "Enable F22 without the FORCE flag" 2015-05-29 00:05:01 +00:00
Jenkins 588ea5b5ab Merge "Cleanup test_ip.sh to give more consistent output" 2015-05-28 20:29:48 +00:00
Attila Fazekas c550f21589 Enable F22 without the FORCE flag
F22 has a stable release and working with devstack.

The change also removes the version flags regarding to the
mariadb-devel.

NOTE: You may see yum deprecation warnings, unless
you set the YUM variable to dnf.

Change-Id: I05140765bffc16faef5a29dfaba291c290bfae02
2015-05-28 15:43:06 +02:00
Yalei Wang 75c4473712 Remove the code against flushing public bridge
As unstack.sh does destroy all bridges, we don't have to refresh bridge
interface any more, as what is done in commit
c2dc95add6. So in this commit we will continue to
remove the related statements in lib/neutron-legacy. These statements will also
cause undefined PUBLIC_BRIDGE error.

Change-Id: I4c7617f6a245ea4e2e08f518d873b1b8adc2b807
Closes-Bug: #1454475
2015-05-28 16:18:49 +08:00
Bob Ball 40c5ea67d3 XenAPI: Increase OpenStack DomU usage again
Devstack has continued to grow in memory requirements and now we cannot
reliably fit in 4GB, with several services being unable to start.  Increase
the minimum for DomU to 6GB to leave room for virtual machines

Change-Id: Idbdfa1f36015b6af347d1ce27eb28baa360af5ef
2015-05-28 06:42:03 +01:00
Shin Sato 9ee1ef6cb8 Fix typo: _create_volume_group => _create_lvm_volume_group
Change-Id: Ifb648c9eb4a57ac0fc97afb842e83286789801dd
2015-05-28 13:56:58 +09:00
Jenkins 35814a7b6e Merge "Ironic: Remove deprecated parameters" 2015-05-28 01:23:22 +00:00
Ian Wienand dd363a182f Cleanup test_ip.sh to give more consistent output
Minor changes to give more consistent output; no functional changes to
tests.

Change-Id: I6c4ef74587c59b786761735c7bd528f3d7f94905
2015-05-28 10:40:55 +10:00
Jenkins d986c59d6b Merge "Honor the flag for Identity v3 API only jobs" 2015-05-28 00:04:47 +00:00
Samuel de Medeiros Queiroz 3fd71d6893 Honor the flag for Identity v3 API only jobs
When the property ENABLE_IDENTITY_V2 is set to
False in the local.conf file, devstack will:

* Disable the v2 API in Keystone paste config;
* Set Tempest to skip Identity v2 tests and use
  v3 auth tokens to run all the other tests;
* Set Horizon to use v3 API and v3 auth tokens;
* Register the Identity endpoint as v3.

Change-Id: I2575a516244b848e5ed461e7f488c59edc41068d
2015-05-27 14:27:30 -03:00
Jenkins cfdb6fa940 Merge "Add test case to 'cidr2netmask'" 2015-05-27 15:43:26 +00:00
Jenkins 3fa092bc1c Merge "Fix msg argument to assert_equal" 2015-05-27 15:43:21 +00:00
Jenkins 11e17174be Merge "add the port_sec as default neutron/ml2 extension driver" 2015-05-27 14:41:41 +00:00
Lucas Alvares Gomes 73d24b2c1c Ironic: Remove deprecated parameters
Ironic have updated some parameters to have a consistent name
across drivers. This patch is updating devstack to stop using the
pxe_deploy_{kernel, ramdisk} parameters which have been deprecated since
early Kilo eliminating the deprecation warnings in the logs.

WARNING ironic.drivers.modules.pxe [-] The "pxe_deploy_kernel" parameter
is deprecated. Please update the node 267e42c8-df07-49f5-bc7f-48b566acb109
to use "deploy_kernel" instead.

WARNING ironic.drivers.modules.pxe [-] The "pxe_deploy_ramdisk" parameter
is deprecated. Please update the node 267e42c8-df07-49f5-bc7f-48b566acb109
to use "deploy_ramdisk" instead.

Change-Id: I3dcf8df130efc0c2ea35695018bedba31bf0570c
2015-05-27 12:22:05 +01:00
Jenkins 5d5e997755 Merge "Use correct conf file variable name in sahara" 2015-05-26 21:29:46 +00:00
Jenkins edfcb5f0bd Merge "Set IP_VERSION default value to 4+6" 2015-05-26 20:17:16 +00:00
Rob Crittenden aece9ff9ef Use correct conf file variable name in sahara
When the tls-proxy service is enabled then a separate
set of ports is used internally vs externally. The
services listen on the internal port and a proxy (stud)
listen on the "standard" port and forward requests to
the internal port.

An incorrect environment variable was being used to set
the internal port in the sahara configuration so it wasn't
listening on the correct port, causing stack.sh to fail
because it thought the service wasn't up (at least not
on the right port).

Change-Id: I3384039392be786d3c189f3e4f84e069ddaf4339
Closes-Bug: #1458984
2015-05-26 15:34:11 -04:00
Sean Dague b3798af474 change the default to PyMYSQL
As discussed in the Liberty Design Summit "Moving apps to Python 3"
cross-project workshop, the way forward in the near future is to
switch to the pure-python PyMySQL library as a default.

    https://etherpad.openstack.org/p/liberty-cross-project-python3

Change-Id: Ic609ce136061b753ca692b37509a0b29c60bb8b5
2015-05-26 15:39:28 +00:00
Jenkins 7b71d376f9 Merge "Fix remove_disabled_extensions to remove an extension at the last position" 2015-05-26 12:35:49 +00:00
Mahito d82d3f1340 Add test case to 'cidr2netmask'
'cidr2netmask' of function doesn't have enough test case
and test code isn't smart.
This patch adds test case and refactors test code.

Change-Id: Iab20ef06fe78316a78198ab75c0afe738a577dd6
Closes-bug: #1457989
2015-05-26 15:33:32 +09:00
fumihiko kakuma 8606c98c53 Fix remove_disabled_extensions to remove an extension at the last position
remove_disabled_extensions do matching by '$ext_to_remove","'. So it doesn't
match an extension at the last position in extensions_list.
This patch fixes that.

Closes-Bug: #1443254
Change-Id: I194b483de797697ba06b320cf33f1bac67fc0cc7
2015-05-26 12:38:35 +09:00
Guillaume Giamarchi 93ee8c876c Set IP_VERSION default value to 4+6
This is actually the default value since 645114b

Change-Id: Ib6603b4f6ea0b4079f9a4ea46e723ecbb2ea371d
2015-05-26 02:15:27 +02:00
Gary Kotton fcefb0a910 VMware: add support for simple DVS
Add the file vmware_dvs that will enable the external CI to be
run.

The patch in the VMware repo for the DVS support is:
https://review.openstack.org/#/c/177597/

Change-Id: I6dee978fd2be3818c5ce57b1dcb2917234ab61e2
2015-05-25 01:09:06 -07:00
Jenkins 9ff021f206 Merge "Update the glance image-list with openstack image list" 2015-05-25 03:43:38 +00:00
Ian Wienand 165afa2377 Fix msg argument to assert_equal
I noticed this was taking an argument but not dealing with it.  In
general the functions were undocumented, so I added some terse usage.

Also, the intent of the test-case was to expand the values before
using them as the message; make sure this happens by using a temp
variable.

Change-Id: Ib317ad1e9dd2a5d2232b9c64541fe4a601a2b8da
2015-05-25 11:29:48 +10:00
Jenkins cf56d4e35c Merge "Remove KEYSTONE_AUTH_CACHE_DIR" 2015-05-22 02:09:57 +00:00
Jenkins 3d1ef5f3de Merge "Remove setting nonexistant [ec2] driver option in keystone" 2015-05-22 02:09:03 +00:00
Jenkins 22658fc9f4 Merge "Disable firewalld always" 2015-05-21 23:29:50 +00:00
Jenkins 4164795413 Merge "Do not set OS_CACERT if there is no CA cert" 2015-05-21 23:28:28 +00:00
Jenkins eb38bd7602 Merge "Write out a clouds.yaml file" 2015-05-21 16:01:08 +00:00
Sean Dague 37421991b4 optional pymysql support
This allows you to specify MYSQL_DRIVER=PyMySQL and get it in the
environment.

Change-Id: Ic9d75266640b7aa6d7efb6e882d3027e81414059
2015-05-20 14:58:50 -07:00
Jenkins 0b1b647096 Merge "Add new options to baremetal config section" 2015-05-20 13:32:01 +00:00
Jenkins 5dd889f4e1 Merge "Support for running Nova with oslo.rootwrap daemon" 2015-05-19 20:26:14 +00:00
Jenkins 0479bc101c Merge "Infer rootwrap arguments from project" 2015-05-19 20:24:33 +00:00
Yalei Wang a48e5dc4bd add the port_sec as default neutron/ml2 extension driver
Neutron ML2 plugin introduces the first extension driver port_security, this
patch add it to be a default extension driver as a example. And also, if not
set it by default, networks like public/private which are created after the
neutron-db-manage's update, will not include the port-sec value.

Change-Id: I3035317c83d22804855517434bd8578719ce0436
Partially Implements: blueprint ml2-ovs-portsecurity
2015-05-18 14:10:29 +08:00
Jenkins c9e842871b Merge "Don't set tempest fixed_network_name with neutron" 2015-05-18 02:34:04 +00:00
Jenkins db7809880b Merge "Use stevedore for keystone backends" 2015-05-15 22:59:18 +00:00
Matthew Treinish 4b684aed31 Don't set tempest fixed_network_name with neutron
If neutron is enabled then there isn't a shared private network
between all tenants which is what is required for the
fixed_network_name config option. This commit adds a conditional
to not set that option when neutron is enabled. While not necessarily
fatal to tempest it does emit a warning on almost every server create
call if it is set with a non-existent network name.

Change-Id: I1a42fa6b0b5a93b411c08ec35df043d6ea69d453
2015-05-15 14:24:47 -04:00
Ian Wienand 3380a16974 Disable firewalld always
We've bike-sheded over this before
(I5252a12223a35f7fb7a4ac3c58aa4a3cd1bc4799) but I have just traced
down further issues to firewalld with neutron+ipv6 (see the bug).

In fact, as mentioned in the comments, RDO disables firewalld and the
neutron guide says to disable it [1].  The force flag is left if
anyone really wants this; but nobody is testing (or, as far as I can
tell, working on) this so bring devstack back into line and disable it
always.  Note we do not remove the package; as has been found in the
puppet scripts this can lead to dependency issues.

[1] http://docs.openstack.org/developer/devstack/guides/neutron.html

Change-Id: Ief7cb33d926a9538f4eb39c74d906ee0c879de35
Partial-Bug: 1455303
2015-05-15 19:14:19 +10:00
Davanum Srinivas 8afbaa1c80 Support for running Nova with oslo.rootwrap daemon
Nova is being enhanced to use rootwrap as a daemon. For this effort,
we need an additional entry for nova-rootwrap-daemon in the
sudoers.d/ directory.

Needed by:
I57dc2efa39b86fa1fa20730ad70d056e87617c96

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

Change-Id: I7c6a9fa106948ae5cbcf52555ade6154623798f1
2015-05-15 14:01:20 +10:00
Monty Taylor 61045ca58a Write out a clouds.yaml file
os-client-config consumes clouds.yaml files, which is now supported in
python-openstackclient and shade. It also makes for a non-envvar way of
getting config info into functional tests.

Change-Id: I1150b943f52f10d19f8434b27e8dde73a14d7843
2015-05-14 13:58:19 -04:00
James E. Blair 9e220b9b2b Move trove into in-tree plugin
Once the trove code is copied into the trove repo and it is used
as a devstack-plugin, we can remove trove-specific code from
devstack.

Change-Id: I8f9f1a015edb7ec1033e2eaf0b29ab15d89384ce
Depends-On: I3506dec0e6097f9c2e9267110fdfb768faa23c85
2015-05-14 07:57:23 -07:00
Jenkins bf5de0aee4 Merge "Prevent setting tempest fixed_network_name for cells" 2015-05-14 03:23:17 +00:00
Jenkins 589bef2d09 Merge "Cinder: Set os_privileged_user credentials (for os-assisted-snapshots)" 2015-05-14 02:24:49 +00:00
Jenkins 632b83d2f3 Merge "dump compute consoles on fail as well" 2015-05-14 00:55:55 +00:00
Dean Troyer 6816234dc8 Save stackenv values more often
Having these for debugging can be handy

Change-Id: I18c2658eec83a0f20f697a3c4c36aa1cf46b7a92
2015-05-13 15:54:10 -05:00
Jenkins a79de45497 Merge "glance: remove deprecated store options" 2015-05-13 16:30:52 +00:00
Jenkins 92619ddb61 Merge "Add python_version function to functions-common" 2015-05-13 11:41:06 +00:00
Sean Dague 737e94202f dump compute consoles on fail as well
This provides a dump of the compute consoles as well on failure.

Change-Id: Ib253537a54a1b9d83a930bbefa4512e039575fd1
2015-05-13 05:58:41 -04:00
Swapnil Kulkarni a747cd25f7 Update the glance image-list with openstack image list
Change-Id: I0f0f15cb204daf12fbc12384f04a2cd9618c4bef
2015-05-13 09:27:48 +00:00
Jordan Pittier 38bee18a2c Cinder: Set os_privileged_user credentials (for os-assisted-snapshots)
When calling os-assisted-snapshots APIs, Cinder often (by default) needs
 to pass an admin token to Nova. Currently it uses the credentials of
 the current user.

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

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

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

Change-Id: I6fae9b8b081355b45e7c8d622d8db2482d41b464
Closes-Bug: #1454467
2015-05-12 20:07:10 -07:00
John Griffith ce8e6f6aa6 Add ability to specify cinder lvm_type option
Cinder has had an lvm_type option for quite a while
that allows the LVM driver to be configured to use
thin provisioning.

This required an additional PPA in Precise, but is
available in the default Trusty packages.

This patch adds the lvm_type option, and we'll use
it to do gate testing against the lvm_thin configuration.

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

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

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

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

Change-Id: I39f95bd487c152925f8fadd1799149db35cffd52
2015-05-11 14:56:49 -04:00
Brant Knudson eb7a0d9b2d Remove KEYSTONE_AUTH_CACHE_DIR
Keystone doesn't use a cache directory.

Change-Id: I569b406db46cf6bdabcbfd8c5eb6f3cbdbc3cff7
2015-05-11 12:54:33 -05:00
Jenkins 75bae7076a Merge "nova: remove allow_migrate_to_same_host config usage" 2015-05-11 15:43:23 +00:00
Brant Knudson 71a8eccdc3 Remove setting nonexistant [ec2] driver option in keystone
There's no [ec2] driver option in keystone.

Change-Id: Ifee92127f32db85d4d55f665471c8da1c9a970e7
2015-05-11 10:37:18 -05:00
Brant Knudson 331a64f9d0 Use stevedore for keystone backends
With bp stevedore, keystone will load backend drivers using
stevedore entrypoints. Using the qualified class name is
deprecated.

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

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

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

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

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

This patch fixes the issue and add test patterns.

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

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

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

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

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

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

guides users to use

    SCHEDULER=nova.scheduler.simple.SimpleScheduler

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

    ImportError: No module named simple

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

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

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

Related-Bug: #1364851

Change-Id: If051f43fb75d57c118db4e8e97895ff06fbb54e2
2015-05-08 06:59:39 -07:00
Vladyslav Drok 41309002fa Add new options to baremetal config section
This change adds setting of deploy_img_dir and node_uuid baremetal
config options during tempest configuration to enable ironic w/o
glance scenario testing.
Needed for change I171e85cb8a21fae4da45028f1f798988a36f6c95

Change-Id: I6fd393390389c4c643b93198fa461fc2adc415ae
2015-05-08 16:17:25 +03:00
Yuki Nishiwaki 0a9d03d505 Move install_infra before execute build_wheels.sh
The pip_install_gr function in build_wheels.sh use requirements project.
So requirements project must exist before execute build_wheels.sh.
Then we moved install_infra function which install requirements project.

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

The related Tempest change: I5c6fd3de7ea45d1851bb40037c64ad7fb5e6dc48

Change-Id: I3a83e43d252b88c234438a224e2fbebc0a81eaff
Related-Bug: #1305062
2015-05-07 19:54:39 +00:00
Waldemar Znoinski d4c89289f9 Set datapath to $OVS_DATAPATH_TYPE for bridges
This change extends devstack to configure the br-ex,
br-<phy> and Xenserver's br-$GUEST_INTERFACE_DEFAULT
datapaths when OVS_DATAPATH_TYPE is set.

Change-Id: I71e590de86e7526e8423140463752d6b3ad14214
Closes-Bug: #1416444
2015-05-07 19:01:40 +01:00
Jens Rosenboom 9fd75f57fd Update default cirros version
Update the default CIRROS_VERSION to 0.3.4, which has better support
for IPv6 and some other bugfixes.

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

Change-Id: Ia31736ef2cb0221586d30c089473dfdc1db90e23
2015-05-07 08:57:28 -04:00
Jenkins 641dd9ff23 Merge "Fix negated services with common prefix" 2015-05-07 02:48:20 +00:00
Clint Byrum 52a3bebcfc Do not set OS_CACERT if there is no CA cert
In openrc, if we set OS_CACERT, some things will expect it to be there
in pre-flight checks. But it may very well be missing. This "fails
closed" because if we find the file, we try to use it, but if we don't
find the file, and the user thought we should be using it, we'll just
not be able to verify the server's name, and the libs will fail on that.

Change-Id: Ia5d06afa74bc645c2f19711cfa37e57a377c329b
Closes-Bug: #1452036
2015-05-06 13:54:42 -07:00
Jenkins 5ed2ba896f Merge "cinder setup now refers to CINDER_VOLUME_CLEAR and volume_clear" 2015-05-06 17:45:22 +00:00
Jenkins 872cdf62ce Merge "Set local_ip only when TENANT_TUNNELS are enabled" 2015-05-06 17:34:53 +00:00
Sean Dague 5a59ac7d43 create a more generic work around for cffi & wheels
This is an attempt to fix the cffi vs. wheels bug in a more generic
way by just ensuring that pip has installed cffi with a pip understood
version into the venv before we try to do any builds.

Related-Bug: #1451992

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

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

Depends-On: I6a9d64277974933ae9b7bbe2a40b8a0eb0fa8c6a

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

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

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

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

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

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

Change-Id: I91e02465240e704a1a0c0036f5073c0295be018e
2015-05-04 12:15:14 +10:00
Jenkins 5270144030 Merge "don't source openrc" 2015-04-30 18:15:39 +00:00
Jenkins 459c793060 Merge "Add n-cauth into defalut services" 2015-04-29 12:36:49 +00:00
Jenkins 43dcab990f Merge "fix warn function" 2015-04-28 21:31:58 +00:00
Jenkins 6d45e29bbb Merge "Set DevStack to dual stack by default in Kilo+" 2015-04-28 19:36:30 +00:00
Sean Dague 7efba991f7 don't source openrc
There is actually no reason why we need openrc for these tests, don't
source it as it prevents some ip math errors from randomly killing
tests.

Change-Id: Iface7c21898d92e14e840379938b25844cd85565
2015-04-28 13:15:22 -04:00
Sean Dague e4af92987a fix warn function
The warn function was putting content into a side log file which made
it kind of hard to keep an eye on when warnings were actually being
issued. Let's just get this into the main output stream.

The calling of the warn function in git_timed was also incorrect, so
the output would not have been what we expected. This solves that as
well.

This will hopefully give us trackable data about how often we need to
recover from git clone errors.

Change-Id: Iee0d2df7fb788a4d34044d29ab10afdcafb9bb5a
2015-04-28 08:57:57 -04:00
Jenkins c9197f6c72 Merge "Acknowledge API_WORKERS in glance-registry" 2015-04-24 20:25:23 +00:00
Jenkins a3f0fbc62c Merge "testr requires python's gdbm" 2015-04-24 13:51:13 +00:00
Jenkins f0267d3faa Merge "Set policy_file in the oslo_policy group" 2015-04-24 13:12:31 +00:00
Jenkins 2d603a3c5c Merge "Remove the lvm.conf filter during cleanup" 2015-04-24 13:10:29 +00:00
Yalei Wang 2443c37c1d Add n-cauth into defalut services
n-cauth work with n-novnc to provide the vnc service for VMs.

Change-Id: Ia5c53aaaf7fe4f881d525a31b097b167fdb8e5c8
Closes-Bug: #1447774
2015-04-24 10:58:52 +08:00
Dan Smith 6cdb2e0f1a Remove the lvm.conf filter during cleanup
This avoids us leaving the filter in the global lvm config. Without cleaning
this up, we can hit some failures to run stack.sh because devices are excluded
that we need to be able to see. This resets it to what it was before when
we do a cleanup.

Also, do this before we add the line, so we don't add multiple lines on
successive runs.

Closes-bug: #1437998
Change-Id: Idbf8a06b723f79ef16a7c175ee77a8c25f813244
2015-04-23 22:12:15 +00:00
Jenkins 5ea9fb1305 Merge "Fix issue with ml2 plugin on using provider network" 2015-04-23 17:45:49 +00:00
Robert Li 2c5d462d91 Add /usr/local/bin to exec_dirs in rootwrap.conf
devstack installs neutron utilities into /usr/local/bin such as
neutron-keepalived-state-change and neutron-ns-metadata-proxy.
In stead of adding individual filters to allow them to run from that
directory, this patch adds /usr/local/bin into exec_dirs.

Please also refer to I3abd1c173121dc8abb5738d1879db8ac9a98b690 for
discussion on the approach to fix the bug.

Change-Id: Iade8b5b09bb53018485c85f8372fb94dbc2ad2da
Closes-Bug: 1435971
2015-04-23 09:34:14 -04:00
Ian Wienand 2796a82ab4 Fix negated services with common prefix
The current sed matching mixes up common-prefix matching;
e.g. "-q-lbaas,q-lbaasv2" is changed into just "v2"

This is more verbose, but I think more reliable.  See also
Ib50f782824f89ae4eb9787f11d42416704babd90.

Change-Id: I3faad0841834e24acc811c05015625cf7f848b19
2015-04-23 15:10:25 +10:00
Jenkins cd7655cbfc Merge "made several changes to guides to comply to doc conventions" 2015-04-23 04:04:58 +00:00
Chris Dent 74a85b0f29 Set policy_file in the oslo_policy group
policy_file in DEFAULT is deprecated

Change-Id: I6698a810d5e6c395a18aed8066e61f8c4bae2408
2015-04-22 18:02:39 +00:00
Sean Dague fad7b43abe testr requires python's gdbm
Debian/Ubuntu have *helpfully* removed gdbm from the base python
package and put it into another package, which is not dragged in by
installing python. Testr doesn't function without this.

We should ensure this always gets installed.

Depends-On: If48a8444b02ee1e105bc1d9ce78a0489ea0c405b

Change-Id: I85a0ffe5ee384e055e78fd3164c27d42a86bc39d
2015-04-21 22:59:51 +00:00
Shilla Saebi 2ed09d88fb made several changes to guides to comply to doc conventions
“Speed not required” is not a sentence
Gb should be GB
added a , after floating IPs
fixed sentence around “To implement a true multi-node test of Swift
since it did not make sense
removed extra underline line after Machines
removed capitalization of service names to comply with docs conventions
https://wiki.openstack.org/wiki/Documentation/Conventions
changed to DevStack for consistency throughout
Change-Id: I531bf6b2bad62fbf9d1417b2b1ce06de3715e0f0
2015-04-21 15:50:22 -04:00
Jenkins 4ab283fea1 Merge "Add response time to keystone access log" 2015-04-21 09:43:42 +00:00
Ramakrishnan G 8f5fe871a4 Fix issue with ml2 plugin on using provider network
This commit fixes the issue that ml2 plugin
sets 'flat_networks' in ml2 configuration file as
empty.  The value of 'flat_networks' need to be set 
as the name of the physical network that was specified 
in the localrc file (or it's default value).

Change-Id: Ib4c31f6576da57534b36aefebd1ca8cd397c6c1a
2015-04-21 04:57:55 +00:00
Jenkins 14d1cf90ed Merge "Add a peak memory tracker to dstat" 2015-04-20 19:16:58 +00:00
Morgan Fainberg a80cb815ff Add response time to keystone access log
Add the response time to keystone's access log for each request. This
will be the last element in the log-line and will be represented in
microseconds.

Change-Id: I19204369af5cdf06df2237550c350dfb3ffc995d
2015-04-20 17:43:44 +00:00
Jenkins c2a3d3f16b Merge "Clone external plugins before overriding defaults" 2015-04-20 17:12:55 +00:00
Ian Wienand 72a8be60cd Add a peak memory tracker to dstat
We can see at-a-glance memory usage during the run with dstat but we
have no way to break that down into an overview of where memory is
going.

This adds a peer-service to dstat that records snapshots of the system
during peak memory usage.  It checks periodically if there is less
memory available than before and, if so, records the running processes
and vm overview.

The intent is to add logic into the verify-pipeline jobs to use this
report and send statistics on peak memory usage to statsd [1].  We can
then build a picture of memory-usage growth over time.  This type of
report would have allowed better insight into issues such as
introduced by Idf3a3a914b54779172776822710b3e52e751b1d1 where
memory-usage jumped dramatically after switching to pip versions of
libraries.  Tracking details of memory usage is going to be an
important part of future development.

[1] http://graphite.openstack.org/

Change-Id: I4b0a8f382dcaa09331987ab84a68546ec29cbc18
2015-04-20 12:27:32 -04:00
gordon chung 71e4e6f601 ceilometer: add tempest option to test events
event support in Ceilometer was implemented in Kilo. to enable
tests in tempest, we add an option to run tests only on Kilo+
branch.

Change-Id: Ia4a73b7df343e31e6301f8314490fd42a01b7cd0
2015-04-20 15:15:37 +00:00
Jenkins db20059b76 Merge "Add logging config to cinder.conf" 2015-04-20 14:28:32 +00:00
Jenkins e62ebd60b7 Merge "Catalog Index Service - glance devstack" 2015-04-20 14:27:25 +00:00
Jenkins 9aad1b99fd Merge "refactor ping_check" 2015-04-20 13:39:33 +00:00
Jenkins c8305cd124 Merge "run dstat with run_process" 2015-04-20 11:34:53 +00:00
Jenkins eb52c80ca6 Merge "Append command to screenrc after we update it" 2015-04-20 00:09:36 +00:00
John Griffith 95b994d548 Add logging config to cinder.conf
Part of the effort to clean up the Cinder logs is to use
the resource tag in the log format.  We also want to have
some consistency with other projects in how we do logging.

This change adds the logging format to cinder.conf similar to
what Nova and others use, and most importantly turns on the use
of the resource tag that's in olso_log.

We're slowly cleaning up the logging in Cinder by doing things
like replacing "Delete volume %(volume_id)s compoleted" with
("Delete volume completed successfully.", resource=volume)

It woudl be good to have these picked up as we transition so we're
not missing info.  Also, there's sure to be cases where "volume"
isn't a valid dbref and we find issues that need fixed.

Change-Id: I193637fea14d97183f6a9782f37d8edcf929e0c4
2015-04-18 16:30:47 -06:00
Jenkins e52cfc5524 Merge "Create config file in merge_config_file" 2015-04-17 19:32:24 +00:00
Jenkins d749518bf9 Merge "Remove old comment in run_tests.sh" 2015-04-17 19:32:18 +00:00
Jenkins 2112945dbc Merge "Convert test_functions.sh to use unittest helpers" 2015-04-17 19:32:09 +00:00
Jenkins e5008e002b Merge "Fix die_if_not_set tests" 2015-04-17 19:32:01 +00:00
Jenkins 4593593ebe Merge "Move function.sh to test_functions.sh" 2015-04-17 19:31:52 +00:00
Jenkins f1e2db756d Merge "Fix return of test_ini_config & test_meta_config" 2015-04-17 19:31:44 +00:00
Jenkins 739b24e78d Merge "Use unittest help in test_ip.sh" 2015-04-17 19:31:34 +00:00
Jenkins 082a0bca3a Merge "Add "passed" and "failed" functions" 2015-04-17 19:30:35 +00:00
Jenkins 23e1dd7f28 Merge "Fixing n-crt removal from stackrc" 2015-04-17 17:42:19 +00:00
Jenkins 3894170067 Merge "Remove keystone public/admin_endpoint options" 2015-04-17 17:36:35 +00:00
Jenkins a4cad71fbd Merge "Added support of sahara with tls-proxy service" 2015-04-17 15:49:32 +00:00
Jenkins 87bb99d9e4 Merge "Switching Sahara to https in case of USE_SSL=True" 2015-04-17 15:49:22 +00:00
Jenkins 4c354b9f07 Merge "Added ceilometer-agent-ipmi support" 2015-04-17 15:49:17 +00:00
Jenkins e350d3aa53 Merge "Assurance status of rabbitmq is running" 2015-04-17 15:49:12 +00:00
Jenkins 3064cee10a Merge "Added libxml2-dev package as a pre-requisite when installing tempest. This is required so that devstack can be installed on vanilla Ubuntu systems." 2015-04-17 15:49:07 +00:00
Jenkins f1d7f8899e Merge "Remove unused IPv6 setup from DevStack neutron script" 2015-04-17 15:49:00 +00:00
Jenkins abfa858f79 Merge "Revert "List all CIRROS ARCH images in image_list.sh"" 2015-04-17 15:47:27 +00:00
Sean M. Collins 645114b713 Set DevStack to dual stack by default in Kilo+
This patch sets DevStack to run in dual stack networking, with both IPv4
and IPv6 networking configured. This change is required for dual stack
testing at the gate.

A different patch was created against devstack-gate to make this the
default, but the Juno branch of Neutron is missing required fixes to the
L3 agent that are present in Kilo. This was the suggested alternative.

Related-change: I3d416275f77913769b98e77f7e47bed17fc4d1cc

Co-Authored-By: Henry Gessau <gessau@cisco.com>
Co-Authored-By: Andrew Boik <dboik@cisco.com>

Depends-On: Ib66a9109cc1c7999474daca5970d0af1f70886e4
Depends-On: I0f9ea98cb84aa72cb1505fb9ff8ac61561cc1376
Depends-On: I85fe68782bc54f28f3e14aa4a1d042cb15959dac
Depends-On: I9395834f673038dc23b25eaeefe14895fe154e0e

Change-Id: If0e0b818355e4cb1338f7fa72af5e81e24361574
2015-04-17 14:52:54 +00:00
Sean Dague af9bf8663b refactor ping_check
Encapsulate all the neutron specific things you have to do ping a
neutron guest into a separate script. Refactor the main ping_check so
all logic is contained within it.

Change-Id: Ic79d8e3a2473b978551a5635a11dba07e1020bb2
2015-04-17 07:39:28 -04:00
Ian Wienand fa3e841286 Create config file in merge_config_file
Change If132a94e53545d9134859aa508da7b9819ede2f8 introduced a small
regression; it added an "inidelete" which looks in the config file to
delete rows.

However, at least for the test-case, the config file isn't created
yet.  The end result is that the test fails but we don't notice.

 2015-04-17 00:55:03.169 | merge_config_file test-multiline: sed: can't read test-multiline.conf: No such file or directory
 2015-04-17 00:55:03.195 | OK

So fix this up by creating the config-file if it isn't there.

Also, add "-e" to the test file so we catch things like this in the
future.

Change-Id: I43a4ecc247f19cccf51d5931dfb687adbd23d6b1
2015-04-17 13:23:25 +10:00
Ian Wienand 9b64bbf06e Remove old comment in run_tests.sh
The scope of this has expanded to run everything in ./tests

Change-Id: I640b0a8b7aa578ddd24dd3e58d5b2a1e09fe0284
2015-04-17 13:23:25 +10:00
Ian Wienand 09f4ad2279 Convert test_functions.sh to use unittest helpers
This currently does not exit with any failure code when tests are
failing.  Convert it to use the helper functions from unittest.sh so
it correctly reports failures.

Change-Id: I2062d9c00ebffcc98ba75a12f480e4dd728ee080
2015-04-17 13:23:25 +10:00
Ian Wienand 9b845da478 Fix die_if_not_set tests
The "die_if_not_set" test has the LINENO as a positional argument.
The existing tests are not passing this in, so they are failing.

Along with this, remove the "-x" from the invocation and hide the
output of the tests that are expected to fail to avoid confusion.

Change-Id: Ibf6b9d7bb72b9f92831e1a90292ff8b0bec7faea
2015-04-17 13:23:25 +10:00
Ian Wienand 9b0ebc44f4 Move function.sh to test_functions.sh
run_tests.sh runs tests starting with test_*

The existing test_functions.sh is really testing true/false.  Move
that to test_truefalse.sh

Then move functions.sh to test_functions.sh.  This will ensure it is
run during unit testing from run-tests.sh

Change-Id: I959ac38c946da1fb47458b8c4f09157f74f0e644
2015-04-17 13:23:25 +10:00
Ian Wienand fcdca05de5 Fix return of test_ini_config & test_meta_config
Convert test_ini_config to use the "passed / failed" functions in
unittest.sh.  test_meta_config wraps everything into a function; it's
not work unrolling this so just make sure it exits with non-zero if a
test fails.

Change-Id: I9e9883fdad42358255383eede9121b1d361799c8
2015-04-17 13:23:25 +10:00
Ian Wienand f56348bcb2 Use unittest help in test_ip.sh
Use the unittest helper to track test runs and correctly exit with a
failure code if there is a problem

Change-Id: Ie62f354a8cd3b8fd5986e6943a073f7955fb55ba
2015-04-17 13:23:25 +10:00
Ian Wienand 1cb809d8ef Add "passed" and "failed" functions
Add two generic "passed" and "failed" functions to the unittest
helper.  Also keep a count of passed and failed tests.  Later changes
will use these functions to ensure they exit with a correct return
code.

Change-Id: I8574dcb1447b04fcda3d72df0bf8605cf7488d3c
2015-04-17 13:23:20 +10:00
Jenkins 7c17f2684e Merge "doc changes to devstack overview.rst" 2015-04-17 00:22:56 +00:00
Wayne Okuma dd62293591 Catalog Index Service - glance devstack
Implements: blueprint catalog-index-service

The changes to lib/glance incorporate the new g-search service.
The g-search service is optional.
To enable it add the following line to devstack/local.conf:
enable_service g-search

In addition to deploying g-search, the changes will also populate a
search type of keystone service and adds in appropriate endpoints.

Change-Id: I0272d56bc2e50e8174db78bd449f65f60f7f4000
2015-04-16 15:33:09 -07:00
Jenkins 6f2d9b1f7d Merge "Fix readme for multi-node setup" 2015-04-16 19:22:13 +00:00
Jenkins cb88e2b7cb Merge "clean.sh needs to load plugin settings." 2015-04-16 19:19:05 +00:00
Jenkins 69cb0a1343 Merge "Use openstack CLI instead of keystone" 2015-04-16 18:32:31 +00:00
Jenkins 44a969b110 Merge "Setting LOGFILE to a file in root directory wipes everything" 2015-04-16 18:32:22 +00:00
Jenkins 5d552e44c9 Merge "Add support for arm64 images" 2015-04-16 18:29:50 +00:00
Shilla Saebi cae97da9c7 doc changes to devstack overview.rst
changed to comply with doc conventions
When referring to services, use "Compute," "Image service"
and "Identity" instead of "nova," "glance," and "keystone."
Use the project names like "nova" and "keystone"
glance is officially Image service not storage
removed extra .

Change-Id: I39457c20dc2ede775fe3f3c63077133fbb6c917b
2015-04-16 13:59:52 -04:00
Ian Wienand b28b27082c Append command to screenrc after we update it
If a group is specified we modify the command to run under "sg".  This
currently isn't reflected in screenrc so rejoining fails

Change-Id: I5c18ba664a6ae9ba9aaa4439a9086bc85085cd75
Closes-Bug: #1444267
2015-04-16 08:43:43 +10:00
Lianhao Lu 37b779c3bc Acknowledge API_WORKERS in glance-registry
Change-Id: Ifaf671439480719255c07673b54dc49c0c2ca4f6
Closes-Bug: #1444231
2015-04-15 10:27:06 +08:00
Lianhao Lu c39f640525 Added ceilometer-agent-ipmi support
Enable devstack to start ceilometer-agent-ipmi.

Change-Id: Ia5f4c78760415a50f329fc2f1cf2f20be2e3c221
Closes-Bug: #1410614
2015-04-15 09:59:53 +08:00
Jenkins 1235581559 Merge "Add ironic files to .gitignore" 2015-04-14 21:25:54 +00:00
Jenkins 48deba3a03 Merge "Fix docs about heat in devtack" 2015-04-14 20:50:18 +00:00
Jenkins 45ebe9a4d0 Merge "rpc: Allow to configure the rabbitmq heartbeat" 2015-04-14 20:43:59 +00:00
Jenkins c2c174a863 Merge "Ignore *.img images in files folder" 2015-04-14 20:36:28 +00:00
Thiago Paiva 73af846ca0 Fixing n-crt removal from stackrc
The commit 279cfe7519 removed the n-crt
service from the default devstack setup. As such, the stack.sh script
begun to thrown the following error when trying to "nova x509-create-cert":

  ERROR (ClientException): The server has either erred or is incapable of
  performing the requested operation. (HTTP 500)

This patches reintroduces the n-crt as a default service.

Change-Id: Id9695a37e1c6df567f2c86baa4475225adcfb0ee
Closes-bug: #1441007
2015-04-14 20:22:03 +00:00
Andrew Lazarev 0479d37878 Added support of sahara with tls-proxy service
Now devstack will configure tls-proxy for sahara as well as for
other openstack services.

Change-Id: I7b0f2f0773cd3619a33cac66d40f3d0ce0f5432c
Closes-Bug: #1419163
2015-04-14 11:40:30 -07:00
Andrew Lazarev 5ccbd0ae0f Switching Sahara to https in case of USE_SSL=True
Sahara will work over https in case if USE_SSL is set.

Note, this patch requires https://review.openstack.org/#/c/145383/
which is not merged yet.

Change-Id: I9e0069cfe72323a069a4205ca2f882c7a3ad17e0
Closes-Bug: #1419162
2015-04-14 11:37:24 -07:00
Ian Wienand c00d2a5313 run dstat with run_process
It is not clear to me why this can't use run_process?  Currently we
end up with two log-files both with the same thing

- dstat.txt.gz which comes from the "tee" and is symlinked into
  SCREEN_LOGDIR, so gets picked-up by the gate scripts
- screen-dstat.txt.gz which comes from screen_it

Change-Id: I00b9e09b8d44f72ff14e69dc6e4a4bd5e2a0439e
2015-04-14 09:42:23 +10:00
ajmiller e6843e5ea1 clean.sh needs to load plugin settings.
Change-Id: Id957f585d2aa93075b138d462d6076d2d70d450e
2015-04-13 08:16:30 -07:00
Peter Stachowski 9a808922c1 Use openstack CLI instead of keystone
When running './stack.sh' messages are output stating that
the keystone CLI has been deprecated. These calls should be
replaced to ones utilizing the openstack CLI program instead.

Documentation examples were also updated to reflect the new syntax.

Change-Id: Ib20b8940e317d150e5f6febb618e20bd85d13f8b
Closes-Bug: #1441340
2015-04-13 10:09:13 -04:00
Daniel Gonzalez e53e158451 Fix readme for multi-node setup
The readme currently states that a compute node in a multi-node setup
requires the glance-api service to be enabled. But actually
the glance-api service is only required on the controller node where
glance-registry is running.
Running the glance-api service on a node without glance-registry will
even lead to a failure of glance-api, as the glance cache directory
will not be created without enabling glance-registry.

Change-Id: Ie92533f3333f3fe3e2d747762e60f2f42a233e79
Closes-bug: #1441198
2015-04-13 12:57:28 +02:00
Jenkins 156244df1c Merge "Avoid flushing br-ex during stacking" 2015-04-12 13:30:29 +00:00
Pavlo Shchelokovskyy 8768ee39c4 Ignore *.img images in files folder
Some (qcow) images have .img file name extension (e.g. Cirros).
Ignore such files in files/ folder too (as we already do
with .qcow2 and .gz images).

Change-Id: Iac8593b65205e25fd3f94244a136c584d9af8eab
2015-04-12 10:24:57 +00:00
Davanum Srinivas 93d09c24e3 Setting LOGFILE to a file in root directory wipes everything
clean.sh picks the parent of LOGFILE and wipes it clean! So if you
set it to a log file in the users root directory, you lose everything

We should delete just the LOGFILE and cleanup LOGDIR and SCREEN_LOGDIR if
they are explicitly set.

Change-Id: I45745427dcaed3dcf0b78cc9ed680833d9d555e8
2015-04-11 18:45:17 -04:00
melanie witt f5b550ee29 Prevent setting tempest fixed_network_name for cells
Instead of creating a network in both the API cell and child cell,
let tempest use the old behavior of not querying networks from the
API for testing server create.

Change-Id: I9809d2b2e796ff1a5ea7e4f25bbeb21bd4817a72
2015-04-10 22:20:07 +00:00
Jenkins 10f832e3ad Merge "Specify network UUID for network create with cells" 2015-04-10 15:31:46 +00:00
Ghe Rivero 13a95a2dc1 Add ironic files to .gitignore
Add pxe booting related files to the .gitignore list

Change-Id: I08cfc98bcdd89f6a9a922f86c86551b661d69fff
2015-04-10 10:14:15 +02:00
armando-migliaccio c2dc95add6 Avoid flushing br-ex during stacking
This operation seems vestigial, as it was added to the code when stack.sh
did not have a robust cleanup procedure. These days, unstack.sh does destroy
all bridges, therefore during subsequent stack.sh runs (or even initially, from
a clean environment), the flush operation has become superfluous.

Its removal has also been deemeded necessary to enable certain multi-node
cloud deployments, like the one available in OpenStack infra [1].

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

Change-Id: I6b4e5b82958e6d29dd450f1c4c9513f6a9e5053a
2015-04-09 23:00:20 -07:00
melanie witt d394e59b5c Specify network UUID for network create with cells
When the n-cell service is enabled, we create networks in both the
API cell and the child cell. Recent changes to tempest have tests
querying networks from the API and passing them for a server create.
In order for this to work in cells, the UUIDs for the network in
the API cell and the child cell must match, else the network won't
be found in the child.

This change adds the --uuid option to the nova-manage network create
command for cells only.

Related-Bug: #1441931

Depends-On: Ib29e632b09905f557a7a6910d58207ed91cdc047

Change-Id: Ib5933b1405c0761ff727e04cda0c502a826c8eaf
2015-04-09 21:49:05 +00:00
Mehdi Abaakouk 7cf7a8f88f rpc: Allow to configure the rabbitmq heartbeat
For testing we can need to disable or change the rate of the heartbeat
Currently we have to set the value manually in each componments or
to write multiple [[post-config|$<APP>_CONF]] section in local.conf.

This change will allow to configure all componments at once with only two
lines.

Also, we don't set default values to continue to use oslo.messaging
defaults.

Change-Id: Ieaca60ca1cd6d7455b66ce490a9b023df431e9c3
2015-04-09 15:56:44 +02:00
Jenkins 72bdc8c271 Merge "Make screen sleep time configurable" 2015-04-09 13:15:47 +00:00
Sean Dague 4d7ee095a1 Make screen sleep time configurable
the sleep 3 in screen_it was added to make devstack pass in the gate
with exceptionally slow test cloud nodes. In the gate we now bypass
the screen path entirely. However the sleep 3 remains and can add a
couple minutes delay into local development runs.

We're not sure yet how low this can safely be tuned, so step 1 is to
make it configurable, then get devstack team members to try various
options to see what works.

Change-Id: I0e6476176fc8589efc4e40e78c2231f704d14e45
2015-04-09 07:21:27 -04:00
Clark Laughlin fcc3f6ee98 Add support for arm64 images
This patch enables proper support for arm64 images by disabling VNC support
and adding several properties to the image in glance that are necessary to
boot correctly:
  hw_cdrom_bus=virtio
  hw_machine_type=virt
  os_command_line='console=ttyAMA0'

Change-Id: I68c9a5e0e083af2f92875c3bdf70df750f6e4d8f
2015-04-09 08:55:56 +00:00
Amrith Kumar 9860876f5d perform install_infra sooner in stack.sh
The install_infra() call needs to be done earlier since
pip_install_gr() depends on it. Also the fact that python module names
are supposed to be lower case but some use camel case is a problem
(for example with XenAPI).

Change-Id: I7012d77134fa0d9c746d87e837934e7dcb337e5c
Closes-Bug: #1441820
2015-04-08 16:28:34 -04:00
Sean Dague 60996b1b60 introduce pip_install_gr
This creates a new pip_install_gr that installs from global
requirements allowed versions. Now that stable branches are getting
capped all of devstack needs to be fixed to do things like this.

Change-Id: I8fd0ef2bfc544ca2576fab09d3018f760b8848fe
2015-04-08 10:28:17 -04:00
Davanum Srinivas 97aa81d905 Fix docs about heat in devtack
In 279cfe7519, we disabled heat by default.
So fixing the README to reflect that.

Change-Id: I3da257158b37e235eed1c78e0c4df432caeefa1d
2015-04-07 16:23:57 -04:00
Bharat Kumar Kobagana 7b9341e178 Clone external plugins before overriding defaults
This patch clones external plugin repositories before overriding
default configuration parameters.

Closes-Bug: 1441058
Change-Id: Ie14fcb897cb40b1604bfb5869baa0dec58e51bce
2015-04-07 14:59:03 +05:30
Yuki Nishiwaki 0089035504 Assurance status of rabbitmq is running
I changed it so that rabbitmq always restart.

Current devstack don't restart rabbitmq in case of ubuntu. Because
rabbitmq is running at default.
But this approach have the following bug.
If rabbitmq is already installed and not running ,  stack.sh will
fail.
So I change it so that rabbitmq always restart.

Closes-bug: #1030798
Change-Id: Ie45446d3817b2f15631f03b2af84749fe936c67b
2015-04-07 04:16:25 +00:00
Jenkins d1549d624d Merge "Creates SWIFT_DATA_DIR if it does not exist" 2015-04-07 00:21:20 +00:00
Raseel Bhagat 8c6276ea0a Added libxml2-dev package as a pre-requisite when installing tempest.
This is required so that devstack can be installed on vanilla Ubuntu systems.

Closes-Bug: 1225395

Change-Id: Id9116e00e18c23e8e6391d8aa652c04d8bdb86c3
2015-04-07 05:24:49 +05:30
Jenkins 4a640c6847 Merge "Add pluggability for matchmaker-redis" 2015-04-06 23:40:05 +00:00
Joe Gordon 33ba738b05 Revert "List all CIRROS ARCH images in image_list.sh"
This reverts commit 71e82f52bd.

aioppcu now uses x86_64 so no need to list the i386 images for caching.

Change-Id: If500367c8bf3fdb4590c866e007ecd7de1ab5781
Depends-On: I839e1c724821ba2624beddb5233eda24b50c149f
2015-04-06 10:27:57 -07:00
Jenkins a333ce2b18 Merge "Update qemu package name for Ubuntu aarch64" 2015-04-06 16:59:25 +00:00
Jenkins 628a21e1b2 Merge "install euca2ools for tempest preparation" 2015-04-06 13:35:30 +00:00
Andrew McDermott bcef63ed43 Update qemu package name for Ubuntu aarch64
The qemu-system package, and not qemu-kvm, should be installed on either
trusty- or utopic-based ARMv8 (aarch64) Ubuntu releases. Additionally,
libguestfs is not available so that is not installed.

No changes are required for vivid.

Change-Id: Id9dc1fc465bd7acab17c991c292fb531016758ad
Signed-off-by: Andrew McDermott <andrew.mcdermott@linaro.org>
2015-04-05 17:10:32 +00:00
Jenkins 75e0f99461 Merge "Use ec2 and s3 urls from keystone catalog" 2015-04-04 09:00:15 +00:00
Jenkins 0f173a4821 Merge "Update libvirt cpu map before starting nova" 2015-04-03 20:21:21 +00:00
Dane LeBlanc a79e1011ca Remove unused IPv6 setup from DevStack neutron script
With the implementation of dual-stack gateway support
as part of the Neutron multiple-ipv6-prefixes
blueprint, some of the code in the IPv6 setup in the
DevStack neutron legacy script must be removed. This
code had been added temporarily, with a TODO note
indicating that this code should be removed when
the Neutron L3 agent is modified to support
dual-stack.

Without this change, DevStack will fail to configure
the Neutron router gateway interface (there will be
no external connectivity) whenever IP_VERSION is set
to '4+6' in localrc/local.conf, since
first DevStack and later the Neutron L3 agent will be
trying to ADD the IPv6 address to the router gateway
interface.

This change also includes a modification of the
default prefix to be used for the public IPv6
subnet. The new value (2001:df8::/64) is a special
reserved prefix that will be treated as non-routable
external to the OpenStack instance.

Change-Id: I85fe68782bc54f28f3e14aa4a1d042cb15959dac
Partially-implements: blueprint multiple-ipv6-prefixes
2015-04-03 16:53:57 +00:00
Jenkins 7061dd5204 Merge "fix bashate target" 2015-04-03 16:49:04 +00:00
Jenkins ecdb788362 Merge "Fixes devstack stackrc" 2015-04-03 16:28:35 +00:00
Jenkins 9e63b59a8e Merge "Add inc/rootwrap" 2015-04-03 16:25:00 +00:00
Jenkins 67ca2d5004 Merge "Add basic Makefile" 2015-04-03 16:24:49 +00:00
Jenkins 7eb65492cf Merge "Add a target for, and link to, minimal config docs" 2015-04-03 16:19:08 +00:00
Jenkins 12909c0a76 Merge "If cells enabled create a fixed network in the API cell" 2015-04-03 16:18:46 +00:00
Jenkins ca84e85157 Merge "Fixes ovs-vsctl add port issue" 2015-04-03 16:18:41 +00:00
Jenkins 9942db6d87 Merge "Add roles when we create groups" 2015-04-03 16:18:30 +00:00
Jenkins 70843539a4 Merge "Set qcow image file location with right cirros version" 2015-04-03 16:18:23 +00:00
Jenkins 6aabbbf47f Merge "iptables rule for heat pip mirror" 2015-04-03 16:18:14 +00:00
Jenkins 2ab5f94628 Merge "Swift PyEClib build requires 'make'" 2015-04-03 16:16:40 +00:00
Jenkins d64fbaa2a0 Merge "functions-libvirt: Enable DEBUG_LIBVIRT config attribute by default" 2015-04-03 14:29:08 +00:00
Sean Dague 5e5a29cc8c fix bashate target
there was a missing -or which meant we weren't running this on most of
the files in the repository.

Change-Id: If926afc8f12f6beb80d7a9af7c787b3dcc360a89
2015-04-03 08:52:29 -04:00
Sushil Kumar 72a3312904 Fixes devstack stackrc
One of the earlier patchset while updating stackrc
missed on adding "+=" while adding multiple services.

Closes-Bug: #1439983
Change-Id: I74f788e15b7da05a93fc8d99c562e51386b65053
2015-04-03 09:33:22 +00:00
Raman Budny db02bbf107 Fixes ovs-vsctl add port issue
Setup of OVS may fail, if ports that are added,
are already exist. Add "--may-exist" directive to OVS
add-port command to prevent this behaviour.

Change-Id: I2280be9a63a4a6fbc747b5e32b602697b555ffa8
Closes-Bug: #1394162
2015-04-03 11:44:08 +03:00
Andrew Laski b58e22d170 If cells enabled create a fixed network in the API cell
Now that tempest is querying for a network before making server create
calls the fixed network needs to be known by the API cell.  Server
creates should work for networks defined in both databases, but defining
a new network via the API will continue to not work.

Change-Id: I32461add0d20940a55385c8b34cd493e2561615e
2015-04-02 17:56:43 -04:00
Jenkins 113991b58c Merge "remove extraneous +x bits from lib files" 2015-04-02 19:56:44 +00:00
Jenkins 53ded8ceda Merge "minimize the default services" 2015-04-02 19:56:37 +00:00
Jenkins b56031ead1 Merge "Prepare devstack for Ironic cleaning testing" 2015-04-02 19:55:39 +00:00
Andrey Pavlov 40e652af0e Use ec2 and s3 urls from keystone catalog
In current implemetation these two urls are defined from Nova
definitions. And urls point to nova. But standalone EC2API
project has another urls that are defined in keystone catalog
in plugin setup.
I suggest to use urls from catalog to be able to test
stackforge/ec2-api by current tempest.

Change-Id: Ibec8c36a8c2fc7ea3d8fab57819adae5f7378045
2015-04-02 22:39:59 +03:00
Andrey Pavlov 7cc3907ff1 install euca2ools for tempest preparation
euca-bundle-image can be run only if euca2ools is installed.
but now it doesn't installed and several tests for EC2 doesn't run.

Change-Id: Ib3824052d5f4155d3cb5c0ef6fe334d44de5153c
2015-04-02 22:33:43 +03:00
Matthew Treinish d2cb234be4 Set qcow image file location with right cirros version
This commit ensures we also set the qcow image location in the
tempest config when we update qcow version. The tempest config has
a default value for img_file (which is incorrect) but before we can
remove the defaults in tempest we need to ensure devstack is using
it properly first. The only reason the tests weren't failing here is
because tempest falls back to using uec images (which devstack was
correctly setting config for) if qcow isn't found. The img_dir was
also hardcoded assuming a uec image, however if qcow is intended to be
used you'll need to be able to override that, which is added as
part of this commit.

Change-Id: I05af346b3c9be9560dc8846dd1f437cfbb2d5005
2015-04-02 12:28:24 -04:00
Jenkins 5cb3d6b7ee Merge "Install packaged pyOpenSSL" 2015-04-02 11:39:40 +00:00
Jay Faulkner 6c0da09b00 Prepare devstack for Ironic cleaning testing
This patch changes the two config options required for Ironic to
successfully test cleaning in devstack.

First, we disable erase_devices clean step. Erase devices in VMs
ends up running shred on the drives for the agent driver, which is
incredibly slow and completely unneeded in devstack.

Additionally, we allow Ironic more time to complete the unprovision
after the nova instance is deleted. This time is spend in the CLEANING
state to clean up the node.

This is related to the Ironic blueprint "implement-cleaning-states".

Change-Id: I77081165a80491da3e66d8a4554b6d71fc3d9353
2015-04-01 09:52:15 -07:00
Sean Dague ba1c56bf5e remove extraneous +x bits from lib files
2 files had execute bits set on them, fix as a cleanup. These files
should not be directly executed.

Change-Id: Ic0fdb85d77a3b47ef777524faf4fcdb0d8cedece
2015-04-01 07:40:10 -04:00
Sean Dague 279cfe7519 minimize the default services
This changes the default service list in devstack to minimize what is
running out of the box, so that it's likelihood of working in a 4G vm
is much higher.

This removes heat from the default enabled service list.

It drops the ec2 only needed n-obj and n-crt services.

It drops all the alternative consoles (xvnc, consoleauth). novnc is
fine for libvirt which is the default.

It adds dstat, because that's turned out to be so useful in debugging
things.

Change-Id: I84457260dff6f42a5c6ebcc2c60fb6e01aec9567
2015-04-01 07:33:55 -04:00
Kashyap Chamarthy d3cfb82c65 functions-libvirt: Enable DEBUG_LIBVIRT config attribute by default
Enabling it by default because:

  - This allows you to get the relevant logs right away when something
    in the libvirt code path fails, without having to submit another
    change and keep doing a 'recheck' to re-run the CI check/gate jobs
    until you hit the bug.

  - The libvirt log filters specified in the function
    'configure_libvirt' are much more _selective_ and not a catch-all
    debug option where you end up with the unhelpful situation of having
    to find a "specific piece of hay in a haystack"[1].

FWIW, I always have it enabled in local test environments, and I don't
see the resulting libvirtd.log growing beyond a couple of MB for
three-four days of usage.

[1] http://lists.openstack.org/pipermail/openstack-dev/2014-January/024414.html

Change-Id: I5e0b35446075b419fe473e1db8d0bfedd7009741
2015-04-01 12:05:07 +02:00
Jenkins b0e3733cb3 Merge "functions-libvirt: Enable 'qemu_monitor' logging filter for libvirt" 2015-03-31 23:00:24 +00:00
Clark Boylan edd6048168 Update libvirt cpu map before starting nova
We are trying to get a working 64bit qemu cpu model in the gate for nova
live migration testing. It appears that we need to make this change
prior to nova starting.

Make the change in configure_libvirt() to handle this along with the
other libvirt config updates. This allows us to restart the libvirt
service once. This function calls a python tool which parses and updates
the XML if necessary.

Change-Id: I00667713bfba67ab8cedbcb1660ff94d4f4bcc07
2015-03-31 15:06:30 -07:00
Kashyap Chamarthy ae7b4f9b9e functions-libvirt: Enable 'qemu_monitor' logging filter for libvirt
A lot of libvirt interactions with QEMU are via the QEMU monitor
console, which allows you to either query or modify the state of a
virtual machine. Spefici examples include: querying the status of live
block operations, live snapshot operations, live migration, etc.

Enabling the 'qemu_monitor' log filter allows us to capture precisely
what commands libvirt is sending to QEMU.

Note that the log level was intentionally set to '1' (i.e. debug) for
this specific filter, because (a) it's not extremely verbose, (b) when
something breaks, it's helpful to have the exact sequence of
interactions between libvirt and QEMU.

Change-Id: Iba95b6bd7c9f197c8d48c7d978f538e50d4e31fa
2015-03-31 21:35:05 +02:00
Dean Troyer f3d52335e7 Add basic Makefile
There are a couple of targets in here that some might find useful in
doing DevStack testing in multiple remote VMs.

There are some of the usual boring targets too, like stack and unstack,
that do exactly what you would expect.

Change-Id: I7974cac4cc527bacf6f183ac1f344428b05f2fdc
2015-03-31 11:16:36 -05:00
Adam Gandelman 84ee55b3ee Set fixed_network_name in Tempest config
This previously defatuled to 'private' and aligned with devstack's
defaults but it has since been updated to 'None'.  This sets the config
value according to devstack's.

Change-Id: I3f480d5480521a93992bedfe602eb20a4999263d
Closes-bug: #1438415
2015-03-30 14:25:27 -07:00
Sean Dague 206c596d69 add back python-guestfs
This is needed otherwise we fall back to the nbd code path which is
super hacky. This shouldn't have been deleted for the venv path.

Change-Id: If5cb6cb4944bd0ed3548d53c98443b76725d1c0c
2015-03-30 13:56:11 -04:00
Jenkins f46945495d Merge "Remove symlink for lib/neutron compat" 2015-03-30 17:40:06 +00:00
Jordan Pittier 0c04c12b3f Swift PyEClib build requires 'make'
PyEClib was introduced recently to swift-master. It tries
to build liberasurecode which requires the `make` binary.

Change-Id: I8acfed4f7b46a29eac36f6acbe1d66e7fff800db
2015-03-30 18:15:25 +02:00
Jenkins d7c874bca6 Merge "Move back isset to the functions-common" 2015-03-30 15:05:59 +00:00
James Polley 5f2eb6dade Add a target for, and link to, minimal config docs
Reading through the docs for the first time, the reader encounters an
instruction to provide a minimal configuration, with a link that they'd
expect to tell them how to do this.

At present the link actually takes them to the top of
configuration.html, where they read some history about how devstack's
configuration has changed over time.

This is interesting and important and should be in the docs - but in my
opinion a link about setting up a minimal configuration would be more
useful if it takes me to a place that tells them about a minimal
configuration.

To get this, I've had to an an explicit link target into
configuration.rst. I'm not hugely keen on this approach, as I don't
think it scales well. I'd be open to suggestions about other
approaches. The only idea I've had so far though is to simply move the
minimal configuration section right to the top of the page, so that a
link to the doc is a link to the minimal config - the historical
information could be moved to its own topic somewhere further down the doc.

Change-Id: I231ca1b7f17b55f09a4e058dab8ee433893f737e
2015-03-30 17:41:25 +11:00
Jamie Lennox e929fdd47e Remove keystone public/admin_endpoint options
The public_endpoint and admin_endpoint options are used to set the base
hostname when listing versions. If they are not provided then the
response will use the same hostname as the request was made with - which
is almost always what you actually want.

This means devstack will respond correctly to a version list when behind
a floating IP for example.

Change-Id: Idc48b9d7bee9751deb24d730fdc560b163f39dfe
2015-03-30 15:11:11 +11:00
Dean Troyer 32d6bc6ad1 Add inc/rootwrap
Rootwrap shouldn't be a unique snowflake.  Plus the binaries tend
to be called assuming PATH will find them.  Not so with venvs
so we need to work around that brokenness.

Configure Cinder and Nova to use configure_rootwrap().

Change-Id: I8ee1f66014875caf20a2d14ff6ef3672673ba85a
2015-03-29 22:29:28 -05:00
Jenkins 43479db910 Merge "Mostly docs cleanups" 2015-03-29 23:23:51 +00:00
Dean Troyer dc97cb71e8 Mostly docs cleanups
Fix documentation build errors and RST formatting

Change-Id: Id93153400c5b069dd9d772381558c7085f64c207
2015-03-28 14:35:12 -05:00
Dean Troyer 3bb5a6f445 Remove symlink for lib/neutron compat
Depends-On: I146910403879c9a85d644bd07a53830ea17ca77d
Change-Id: Ia25331fc74fd26df347024a8314bc4c6ed54428e
2015-03-28 13:46:49 -05:00
Dean Troyer bba4742e8c Add parent id to worlddump output
Helpful in tracking down some process-doesn't-die problems.

Change-Id: I146910403879c9a85d644bd07a53830ea17ca77d
2015-03-28 13:37:41 -05:00
Jenkins 2914118d69 Merge "Always set the Heat deferred auth method" 2015-03-27 20:35:22 +00:00
Jenkins 0471e588df Merge "Add lioadm cinder iscsi helper support" 2015-03-27 20:35:10 +00:00
Jenkins c443459f50 Merge "Remove the compute-admin section from tempest config" 2015-03-27 20:21:15 +00:00
Jenkins 9720239618 Merge "Install Nova into its own venv" 2015-03-27 17:34:10 +00:00
Jenkins 9513b31fa2 Merge "Clean up additional INSTALL_TESTONLY_PACKAGES bits" 2015-03-27 17:34:05 +00:00
Ian Wienand 9e98f9435e Install packaged pyOpenSSL
pyOpenSSL has done a rewrite of itself in Python.  This may be good
for many reasons, but memory usage is not one of them.  It just about
doubles the size of at least swift, which usually consumes about 6% of
a CI testing vm's 8gb RAM.  This is enough to push centos hosts into
OOM conditions and then everything falls apart.

The distro packages of pyOpenSSL are the older C-based versions, which
doesn't bring in the kitchen sink of cffi & pycparser.

Change-Id: Icd4100da1d5cbdb82017da046b00b9397813c2f2
2015-03-27 14:43:14 +11:00
YAMAMOTO Takashi 909fa8f49e Fix Q_USE_PUBLIC_VETH regression
A recently merged change Ie35cb537bb670c4773598b8db29877fb8a12ff50
and I71e2594288bae1a71dc2c8c3fb350b913dbd5e2c broke Q_USE_PUBLIC_VETH.
This commit fixes the regression.

Closes-Bug: #1436637
Change-Id: I1447bf98607143ba4954ce5ec3ed94010320baa5
2015-03-27 10:56:16 +09:00
Jenkins e57a1e04d5 Merge "Install Cinder into its own venv" 2015-03-27 00:25:38 +00:00
Jenkins 932340bd7a Merge "lib/ironic: Do not check for database or message queue" 2015-03-26 23:53:39 +00:00
Jenkins a5c058da0e Merge "Add a note on default values of globals" 2015-03-26 22:54:11 +00:00
Jenkins 0e348aaeec Merge "Install Glance into its own venv" 2015-03-26 20:36:49 +00:00
Dean Troyer 41d6f858be Clean up additional INSTALL_TESTONLY_PACKAGES bits
The original removal is in https://review.openstack.org/#/c/167669/

Change-Id: I3c59f040523d2cd1453465e80280955218880634
2015-03-26 15:36:23 -05:00
Jenkins a33e804aa0 Merge "Install Keystone into its own venv" 2015-03-26 20:35:02 +00:00
Jenkins c392fd3b5f Merge "Add global venv enable/disable knob" 2015-03-26 20:32:31 +00:00
Steve Baker 11cf7b64a7 iptables rule for heat pip mirror
This is required for guest VMs to reach http://$HOST_IP:8899

Change-Id: I814c682fb02974ae05dfbe5e212409cdd11d16ac
2015-03-27 09:10:15 +13:00
Adam Gandelman fab7880bcd lib/ironic: Do not check for database or message queue
Only check for OpenStack services, not specific database or
messaging backends.

Change-Id: I7960718defa3f521d1c2128d8523e8ee9328da64
2015-03-26 13:03:49 -07:00
Dean Troyer 4533eeec1f Install Nova into its own venv
Install a couple of optional feature prereqs in hypervisor plugins.

rootwrap is horribly called indirectly via PATH.  The choice, other than fixing
such nonsense, is to force the path in sudo.

TODO:
* python guestfs isn't in pypi, need to specifically install it to not
  use the distro package

Change-Id: Iad9a66d8a937fd0b0d1874005588c702e3d75e04
2015-03-26 14:54:00 -05:00
Jenkins 3cfc03156c Merge "Support for single interface Neutron networking with OVS" 2015-03-26 19:44:04 +00:00
Attila Fazekas c70605d101 Add lioadm cinder iscsi helper support
The Linux-IO is a modern way of handling targets.
Per the IRC discussions lioadm as default
seams like a better default for everyone, for now it will be
optional, but the tgtadm admin support expected to be removed when
lioadm works well with all CI (including third party).

Change-Id: Ia54c59914c1d3ff2ef5f00ecf819426bc448d0a9
2015-03-26 20:41:18 +01:00
Jenkins 2a5f1addf2 Merge "Provide an option to force pip --upgrade" 2015-03-26 19:35:05 +00:00
Jenkins c9b24ffdf5 Merge "provide an override-defaults phase" 2015-03-26 19:17:03 +00:00
Jenkins 8c03e20725 Merge "Add support running sahara in distributed mode" 2015-03-26 17:56:56 +00:00
Jenkins 5061048ede Merge "Add variable to indicated if Tempest should have admin" 2015-03-26 17:14:56 +00:00
Jenkins a22942ba52 Merge "Recreate tox venv for tempest on stack.sh run" 2015-03-26 17:14:47 +00:00
Jenkins c8944720ef Merge "Make ironic's service check flexible" 2015-03-26 17:13:41 +00:00
Sean Dague 6e275e170c provide an override-defaults phase
during the glusterfs integration it was seen that plugins might need
to set new defaults on projects before the project files load. Create
a new override-defaults phase for that.

Intentionally not adding to the documentation yet until we're sure
this works right in the glusterfs case.

Reported-By: Deepak C Shetty <deepakcs@redhat.com>
Change-Id: I13c961b19bdcc1a99e9a7068fe91bbaac787e948
2015-03-26 20:50:11 +05:30
Chris Dent ebdd9ac5b4 Provide an option to force pip --upgrade
Make it possible for someone to config

  PIP_UPGRADE=True

in local.conf and thus force pip_install calls to upgrade. In
automated testing this is probably a bad idea, but in manual testing
or situations where devstack is being used to spin up proof of
concepts having the option to use the latest and greatest Python
modules is a useful way of exploring the health of the ecosystem.

To help with visibility of the setting, and section has been added
in configuration.rst near other similar settings.

Change-Id: I484c954f1e1f05ed02c0b08e8e4a9c18558c05ef
2015-03-26 14:27:54 +00:00
Jenkins e59d2c6783 Merge "Print kernel version" 2015-03-26 14:17:40 +00:00
Sean M. Collins 00e16a9d53 Support for single interface Neutron networking with OVS
When running Neutron on a single node that only has a single interface,
the following operations are required:

    * Remove the IP address from the physical interface
    * Add the interface to the OVS physical bridge
    * Add the IP address from the physical interface to the OVS bridge
    * Update the routing table

The reverse is done on cleanup.

In order run Neutron on a single interface, the $PUBLIC_INTERFACE and
$OVS_PHYSICAL_BRIDGE variables must be set.

Co-Authored-By: Brian Haley <brian.haley@hp.com>
Change-Id: I71e2594288bae1a71dc2c8c3fb350b913dbd5e2c
2015-03-26 10:00:33 -04:00
Matthew Treinish 0fc946ddc8 Remove the compute-admin section from tempest config
This commit removes the compute-admin section from the tempest config
file that devstack generates. These options have been removed from
the tempest config and aren't being used, so there is no reason to
keep them around.

Change-Id: I7500fe3b329b913c60fa505a5230db4a5d35d7f1
2015-03-26 13:45:13 +00:00
Attila Fazekas 1bd79596c3 Move back isset to the functions-common
isset function was moved to config file related functions by accident,
this change also simplfies the isset in a bash >=4.2 way.

All supported distro has at least bash 4.2. (RHEL6 used 4.1)

Change-Id: Id644b46ff9cdbe18cde46e96aa72764e1c8653ac
2015-03-26 14:00:02 +01:00
Jenkins 4cc060e77c Merge "Increase Swift disk size up to 2GB if Glance is enabled" 2015-03-26 12:51:03 +00:00
Matthew Treinish 7ced150f8c Add variable to indicated if Tempest should have admin
This commit adds a new flag, TEMPEST_HAS_ADMIN, to enable or disable
setting admin credentials in the tempest config file. This allows for
devstack / tempest configurations where tempest doesn't have admin to
ensure it would work in public cloud scenarios.

Change-Id: Id983417801e4b276334fb9e700f2c8e6ab78f9ba
2015-03-26 08:17:52 -04:00
Jenkins 1840f70d0b Merge "Stop using deprecated rabbit related config options" 2015-03-26 11:59:52 +00:00
Attila Fazekas d9de1199bd Print kernel version
Adding `uname -a` to stack.sh to make easy to see from the devstack logs
what was the actually running kernel version.

Change-Id: I0068504bf055a588b155b0a60215440d365bf53e
2015-03-26 09:25:02 +01:00
Jenkins 27ee05bb2c Merge "Always defines tempest_roles as Member" 2015-03-26 04:23:37 +00:00
Jenkins 067d13ae6b Merge "Rename lib/neutron to lib/neutron-legacy" 2015-03-26 04:23:28 +00:00
Jenkins 82145dcd51 Merge "Do not download Fedora cloud image for heat" 2015-03-26 03:18:08 +00:00
Angus Salkeld 93b906d53e Always set the Heat deferred auth method
Otherwise in standalone mode we use the new default of "trusts"
which won't work.

Change-Id: If18db711faf7810217af0a89d1e38590a94d8e5b
Closes-bug: 1436631
2015-03-26 12:53:51 +10:00
Dean Troyer 5a9739a4ca Rename lib/neutron to lib/neutron-legacy
Preparing to refactor lib/neutron to support Neutron as the default
network config.  lib/neutron will be renamed internally and refined
to support a couple of specific configurations.

Change-Id: I0d3773d14c4c636a4b915734784e7241f4d15474
2015-03-25 22:22:11 -04:00
Alessandro Pilotti 85c98b3e18 Revert "Support for single interface Neutron networking with OVS"
This patch is causing blocking failures in some 3rd party CIs.
The issue can be tracked to the fact that the PUBLIC_INTERFACE
interface might have no address assigned.

This reverts commit 93b2100c98.

Partial-Bug: #1436607
Change-Id: I0943aa542b911fbcebb100543e0adbb38159b233
2015-03-26 00:32:54 +01:00
Jenkins 8a64851689 Merge "eliminate TEST_ONLY differentiation" 2015-03-25 22:06:16 +00:00
Andrea Frittoli (andreaf) 72f026b60d Always defines tempest_roles as Member
Because tests might force the auth version to v3, we always need
to have Member in the list of roles.

Change-Id: I06fd043e1b31ae0e5e33f4dcf898fb58f2907267
2015-03-25 17:25:56 -04:00
Jenkins b2f1fc3c74 Merge "Added devstack-with-lbaas-v2 installation documentation" 2015-03-25 19:19:06 +00:00
Jenkins 5939ec1fa1 Merge "Support for single interface Neutron networking with OVS" 2015-03-25 18:37:24 +00:00
Jenkins b3d7cfd416 Merge "Until we prebuild wheels don't build wheels for deb installed libs" 2015-03-25 16:32:29 +00:00
Sean Dague eeb7bda510 eliminate TEST_ONLY differentiation
devstack is a development and test environment, but by default we were
only installing the runtime dependencies. We should install all the
testing required packages as well.

Change-Id: I7c95927b9daad15766aac9d1276b10ca62efb24c
2015-03-25 11:55:32 -04:00
Sean M. Collins 93b2100c98 Support for single interface Neutron networking with OVS
When running Neutron on a single node that only has a single interface,
the following operations are required:

    * Remove the IP address from the physical interface
    * Add the interface to the OVS physical bridge
    * Add the IP address from the physical interface to the OVS bridge
    * Update the routing table

The reverse is done on cleanup.

In order run Neutron on a single interface, the $PUBLIC_INTERFACE and
$OVS_PHYSICAL_BRIDGE variables must be set.

Co-Authored-By: Brian Haley <brian.haley@hp.com>

Change-Id: Ie35cb537bb670c4773598b8db29877fb8a12ff50
2015-03-25 11:42:45 -04:00
Jenkins b23054c4b4 Merge "Allow external ENV setup for conf files" 2015-03-25 15:20:06 +00:00
Ian Wienand 51c48d4c80 Add a note on default values of globals
Add a note on default values of globals in plugin settings

Change-Id: I0d5d3a7e0597abe7e2401f8bae30ccc5682eab03
2015-03-25 21:52:14 +11:00
Steve Baker 89983b6dfe Do not download Fedora cloud image for heat
Tempest can now do all heat tests with cirros, and heat functional
tests now load a custom test image from tarballs.o.o, so devstack
no longer needs to register the fedora cloud image.

Depends-On: I6041b8d6e7e9422f6e220d7aef0ca38857085e4b
Change-Id: I9b3ea2c157b96dee139a24f0fa6f68f6764a7d67
2015-03-25 00:11:44 +00:00
Peter Stachowski 668749ae85 Allow external ENV setup for conf files
In order to keep redstack in synch with devstack, the conf files
referenced within devstack need to be able to be declared externally.

This change allows *_CONF values to be specified, and uses the
original values as defaults.

Change-Id: Ic67f6347b92b05619103a77e9f7ea80a299a6869
2015-03-24 19:28:25 +00:00
Jenkins 4e81d247a4 Merge "Add some discussion about review criteria" 2015-03-24 14:52:53 +00:00
Jenkins d16b946b06 Merge "Keystone use new section for eventlet server options" 2015-03-24 14:51:00 +00:00
Joe Gordon 16e0656bd0 Until we prebuild wheels don't build wheels for deb installed libs
Until we have the ability to prebuild wheels so we don't spend time
compiling them during devstack runs, stop building wheels for libraries
that we still install from deb packages.

Long term we want to move away from using deb packages to install python
packages and use wheels. But until the wheel building logic is in place
so we don't have to compile wheels on each devstack run, don't waste
time compiling python libraries that we just use the packaged version of
anyway.

Change-Id: I962e2cfff223f7ab8efd5766ee0ef22229ab27bf
2015-03-24 07:28:11 -07:00
Li Ma 0f20ad41f3 Add pluggability for matchmaker-redis
This commit introduces stevedore to matchmaker-redis:

https://review.openstack.org/#/c/161615/

Change-Id: I547157c02c9e0536add6949910a911540f27fb2d
2015-03-23 23:05:15 -07:00
Jenkins 1b8c4678cd Merge "Add support for Oracle Linux 7 and later." 2015-03-23 23:08:55 +00:00
Joe Gordon d01ff96e3f Stop using deprecated rabbit related config options
Stop services from throwing the following warning:
  Option "rabbit_password" from group "DEFAULT" is deprecated. Use option
  "rabbit_password" from group "oslo_messaging_rabbit".
Same for rabbit_hosts and rabbit_userid

Change-Id: I7da503ef50b3653b888cb243caa74b4253a495e2
2015-03-23 15:05:39 -07:00
Jenkins e467cdfeb1 Merge "Install missing heat agent projects" 2015-03-23 18:34:53 +00:00
Jenkins 952f9a9116 Merge "Config driver: use "True" instead of "always"" 2015-03-23 18:34:46 +00:00
Aishwarya Thangappa 7c57306c33 Added devstack-with-lbaas-v2 installation documentation
This document explains the steps to configure Load-Balancer in
kilo.

Change-Id: Ic8c2f3cca80e331b7275f689051c07d863d918ea
Depends-On: I64a94aeeabe6357b5ea7796e34c9306c55c9ae67
2015-03-23 09:31:14 -07:00
Sergey Reshetnyak 435cd4dc6e Add support running sahara in distributed mode
Sahara supports running in distributed mode. Need to add this ability in
devstack.

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

Change-Id: I4fb9d5746b08c9b1fee0d283bcf448e47a87089b
2015-03-23 14:15:20 +03:00
Gary Kotton d2287cfb9f Config driver: use "True" instead of "always"
Commit c12a78b35dc910fa97df888960ef2b9a64557254 has set the
"always" flag to be deprecated in liberty. This moves to using
"True" instead.

Change-Id: Idecf7966968369d2f372abffcab85fbf9aa097c7
2015-03-23 00:05:36 -07:00
Mahito OGURA a519f429cf Fix unstack.sh to stop stop_dstat when it is disabled.
unstack.sh always stop dstat process, however unstack.sh show 'dstat: no process
found' when dstat is disabled.
This patch stop function of stop_dstat, when dstat is disabled.

Change-Id: If9054826bed8a7fedd4f77ef4efef2c0ccd7f16e
Closes-Bug: #1435148
2015-03-23 15:19:57 +09:00
Wiekus Beukes ec47bc1d72 Add support for Oracle Linux 7 and later.
Most of the changes revolves around using MySQL rather than MariaDB,
plus enabling the addon repos on public-yum.oracle.com.
The patch just touch the areas where there is a divergence between the
Fedora and Oracle distributions and in all other cases the is_fedora
will result in the correct decision to be made and left as is.

Collapsed the is_suse and is_oraclelinux into a single check in
configure_database_mysql and cleanup_database_mysql

Added Oracle Linux to MAINTAINERS.rst

Rather than duplicating most of the Redhat version check code, added
a check in the block to do the determination if it is Oracle Linux

Change-Id: I5f1f15106329eec67aa008b17847fa44863f243f
2015-03-22 21:28:35 -07:00
Ian Wienand c7df4df0b1 Add some discussion about review criteria
An attempt to layout some of the ratioanle behind devstack reviews.

Change-Id: I9f4878653b5c746159206cd44b49255d9fdd32ef
2015-03-23 14:07:32 +11:00
Jenkins 404d3afa5c Merge "Fix typo in devstack/stack.sh" 2015-03-23 02:07:54 +00:00
Jenkins 743d03bf7d Merge "iniset_rpc_backend default section" 2015-03-22 02:41:03 +00:00
Jenkins d5532b5255 Merge "Set compute-feature-enabled.preserve_ports=True in tempest.conf" 2015-03-21 19:21:58 +00:00
Mitsuhiro SHIGEMATSU 10ba751a78 Fix typo in devstack/stack.sh
Change-Id: Ie13f1ae7fb5a46bb654aa3ab526933107c485b0b
2015-03-21 06:59:51 +09:00
Geronimo Orozco 2f6576bfaf Creates SWIFT_DATA_DIR if it does not exist
If SWIFT_DATA_DIR is set on local.conf we need to make sure to create
the directory with proper permissions

Change-Id: If29fa53f01b4c0c8a881ec3734383ecffac334ce
Closes-Bug: 1302893
2015-03-20 10:05:05 -06:00
Dean Troyer 6aaad5f723 Install Cinder into its own venv
rootwrap is horribly called indirectly via PATH.  The choice, other than fixing
such nonsense, is to force the path in sudo.

Change-Id: Idac07455359b347e1c617736a515c2261b56d871
2015-03-20 10:47:44 -05:00
Dean Troyer aed6079205 Install Glance into its own venv
Change-Id: Ib46b89dafa1fc81a2d0717150203b848b87ea323
2015-03-20 10:47:41 -05:00
Dean Troyer f8ae647f2e Install Keystone into its own venv
Configure Apache to use the Keystone venv.

Change-Id: I86f1bfdfd800f5b818bfb5c4d2750ff732049107
2015-03-20 10:47:37 -05:00
Jenkins 2dc61b2a63 Merge "Move contributing into HACKING" 2015-03-20 15:38:45 +00:00
Jenkins 2949f4bffe Merge "Remove packaged rpm python libraries" 2015-03-20 15:27:29 +00:00
Brant Knudson 7448edb031 Keystone use new section for eventlet server options
Configuration options that are only relevant when running keystone
under eventlet (rather than Apache httpd) were moved to the
[eventlet_server] and [eventlet_server_ssl] groups in the
keystone.conf file to avoid confusion. This change updates devstack
to use the new non-deprecated group for these options.

Change-Id: I651a278d09f6a3a32b2e96fac87f1e5ea0f18c39
2015-03-20 09:51:43 -05:00
Dean Troyer 5686dbc45d Add global venv enable/disable knob
Adds USE_VENV to globally enable/disable use of virtual environments.

ADDITIONAL_VENV_PACKAGES is used to manually add packages that do not
appear in requirements.txt or test-requirements.txt to be installed
into each venv.  Database Python bindings are handled this way when
a dataabse service is enabled.

Change-Id: I9cf298b936fd10c95e2ce5f51aab0d49d4b7f37f
2015-03-20 09:48:43 -05:00
Jenkins 05163d66ac Merge "Use install(1) where possible" 2015-03-20 14:30:06 +00:00
Jenkins 597fd75f41 Merge "Add defaults for yum proxy variables" 2015-03-20 14:29:54 +00:00
Jenkins 889d76b4cf Merge "Stop using deprecated oslo_concurrency and sql_connection config options" 2015-03-20 14:29:44 +00:00
Jenkins e64bd629b4 Merge "Swift use v3 auth_token credentials" 2015-03-20 14:29:36 +00:00
Jenkins 8e71fabb57 Merge "Keystone stop using config refs" 2015-03-20 14:29:25 +00:00
Jenkins a4904128ff Merge "Change datastore version for Mysql datastore" 2015-03-20 14:28:29 +00:00
Ian Wienand 6f6e2fd2cc Move contributing into HACKING
contributing.rst doesn't add very much over the extant HACKING.rst, so
move some of the unique bits into HACKING.rst and then link that into
the documentation.

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

Closes-Bug: #1434314
Change-Id: Ie81352ebd5691afc6d0019f71d5b62370e8bb95f
2015-03-19 16:32:24 -07:00
Jenkins d4c95233d6 Merge "create install_default_policy" 2015-03-19 18:22:51 +00:00
Jenkins 948970928c Merge "Set heat stack role in tempest config to _member_" 2015-03-19 15:27:54 +00:00
Ivan Kolodyazhny 9ebd65be32 Increase Swift disk size up to 2GB if Glance is enabled
Minimum Cinder volume size is 1GB so if Swift backend for Glance is only
1GB we can not upload volume to image.

Change-Id: Ifd4cb42bf96367ff3ada0c065fa258fa5ba635d9
2015-03-19 15:41:57 +02:00
yuntongjin f26deea6b1 create install_default_policy
Recent versions of oslo policy allow the use of a policy.d to break up
policy in a more user understandable way. Nova is going to use this in
Kilo to break out v2 and v2.1 API policy definitions.

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

Change-Id: Iec23b095176332414faf76a9c329f8bb5f3aa6c3
2015-03-19 09:10:37 -04:00
Steve Martinelli 4599fd174c Add roles when we create groups
We should prime the groups that were created with some roles on
projects. Eventually we can add users directly to the groups
and not have to resort to individual user assignments.

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

Change-Id: Id98a83f0a716de0fdb5f36d03407364830e8fa5f
2015-03-18 22:03:01 -04:00
Jenkins d9a7ae8056 Merge "Allow devstack plugins to specify prereq packages" 2015-03-19 00:35:34 +00:00
Jenkins aea87e2dc2 Merge "Create global_filter to avoid scan of missing devs" 2015-03-18 23:43:27 +00:00
Steve Baker 1681995103 Install missing heat agent projects
This change adds the dib-utils repo, and adds git_clone calls for the
required os-*-config projects.

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

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

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

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

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

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

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

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

Change-Id: I5d5c48e188cbb9b4208096736807f082bce524e8
Closes-Bug: #1373513
2015-03-18 10:29:29 -06:00
Pavlo Shchelokovskyy 199c6048fd Recreate tox venv for tempest on stack.sh run
Sometimes when certain dependencies are changed, recreating an existing
DevStack fails, as tempest is using an old existing venv for tox run,
where dependencies are not met.

This change should help developers who are reusing
their existing DevStack.
The gate should not be affected as there the vev is freshly created
anyway.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Change-Id: I4d842744793455d44a633dee8920a60552e8075e
2015-03-16 12:35:45 +08:00
Anand Shanmugam 1577663f4a Fix Traceback exceptions in g-api and g-reg
The log_context format specified in glance-api and glance-reistry
are causing tracebacks.  This fix changes the
project_id and user_id to tenant and user which are supported
in oslo-context.  This is the format used by other projects

Change-Id: Ifbf268e9765039a0085c9af930dabf8a5cc681b8
Closes-Bug: #1431784
2015-03-15 08:51:55 +00:00
Brant Knudson 2dd110ce86 iniset_rpc_backend default section
iniset_rpc_backend should know what section it needs to set the
config options in better than the callers. The config options
have actually been moved to different sections and the options
in the DEFAULT section are deprecated.

Change-Id: I0e07fe03c7812ef8df49e126bf71c57588635639
2015-03-14 17:53:54 +00:00
Brant Knudson 5dfecc8966 Keystone RPC backend config consistency
lib/keystone was setting up rabbit config directly rather than
using the iniset_rpc_backend function that other projects use.

Change-Id: Ic368f102c808cdbd2e4cbc1ff457cdf17a681332
2015-03-14 12:29:58 -05:00
Matt Riedemann 58065f26b6 Set compute-feature-enabled.preserve_ports=True in tempest.conf
Because of branchless Tempest we have to set a compute-feature-enabled
flag to test preserving preexisting ports from Neutron since the code
only works starting in Kilo and won't be backported to stable/juno or
stable/icehouse.

We can remove this flag once juno-eol happens.

Depends-On: I95469e4c2f4aa2bc4e6342860a9c222fb4fa7e16

Related-Bug: #1431724

Change-Id: I214baa3b861e29bedf6bb7b50534ac2286676dd1
2015-03-14 06:13:56 -07:00
Andrea Frittoli 7b2eaedabf Adding tempest_roles when auth_version is v3
With identity v3 the _member_ role is not added on the projects
automatically for the user when it's created.

Setting _member_ to tempest_roles so that tempest adds the role.

Change-Id: Iaae9286ecc6f019d36261a5c450068a650e24a28
2015-03-14 10:18:44 +00:00
Jenkins f6fd39f974 Merge "Fail if run in POSIX compatability mode" 2015-03-13 17:27:28 +00:00
gordon chung b6197e6ab0 switch to use ceilometermiddleware
swift middleware contained in ceilometer is now deprecated. the
middleware is available in ceilometermiddleware.

Change-Id: I6e41986245f4d95a9385dc7829479ed1199f10ac
2015-03-13 15:41:13 +00:00
Ian Wienand e52f6ca11f Remove packaged rpm python libraries
Let's just use pip versions

Change-Id: Idf3a3a914b54779172776822710b3e52e751b1d1
2015-03-13 14:14:49 +11:00
Jenkins 68ed19b696 Merge "install missing elasticsearch client" 2015-03-13 02:00:22 +00:00
Jenkins 69b1551452 Merge "Shut down ironic services in the modern way" 2015-03-13 01:32:23 +00:00
Jamie Lennox 6ac97deba6 Swift use v3 auth_token credentials
The keystonemiddleware 1.5.0 released 2015-03-11 supports configuring
auth plugins from the paste config file. This means that swift can now
use authentication plugins for auth_token middleware.

Change-Id: Icb9f008a57b6f75e0506cbecd0a1e0f28b7dadda
2015-03-13 10:30:21 +11:00
gordon chung 3011ec7549 install missing elasticsearch client
elasticsearch client must be explicitly installed as it's an
optional backend requirement. this patch installs the client when
installing elasticsearch

Change-Id: I534cf0c78ab1fe7d309ef5f808bbe7b5422b403e
2015-03-13 09:39:53 +11:00
Joe Gordon 23d6d50687 Stop using deprecated oslo_concurrency and sql_connection config options
As per the logs:
 Option "lock_path" from group "DEFAULT" is deprecated. Use option "lock_path" from group
"oslo_concurrency".

Option "sql_connection" from group "DEFAULT" is deprecated. Use option
"connection" from group "database".

Change-Id: I2109cec07ebee916c9ce0ccd24bd9a47d8d3c688
2015-03-12 22:01:06 +00:00
Attila Fazekas b1a094d289 Install rsync-daemon on f22
swift requires to have rsyncd running as service or behind xinetd.
/etc/xinetd.d/rsync is not shipped with f22 and the daemon mode
 requires an additional package.
Adding rsync-daemon as swift dependency for f22 and f23(rawhide).

Change-Id: I33222719cabed59a261ce1b8ddedc457aa03800e
2015-03-12 16:26:47 +00:00
Jenkins 518ca616ae Merge "Don't use packaged unittest2" 2015-03-12 15:28:30 +00:00
Jenkins a055557705 Merge "Move configuration functions into inc/*" 2015-03-12 15:22:47 +00:00
Jenkins 0d8b9b31d2 Merge "Set os_region_name for cinder" 2015-03-12 15:22:39 +00:00
Jenkins 3d223fc2ce Merge "Remove the kesytone admin token from swift" 2015-03-12 15:22:29 +00:00
Jenkins e7577b7189 Merge "Add package mongodb to files/rpms/zaqar-server" 2015-03-12 15:22:20 +00:00
Jenkins a6c054747a Merge "Remove my_ip from cinder.conf" 2015-03-12 15:08:26 +00:00
Chris Dent cf3b41fa8b Shut down ironic services in the modern way
Instead of killing the screen, use stop_process which will
shut the processes when USE_SCREEN is False.

Change-Id: If0f714cb112dbf5fe9e4fdd7291cb4fb1df87f42
2015-03-12 13:33:12 +00:00
Jenkins ed2c38a0f3 Merge "Comment log_file for Zaqar" 2015-03-12 03:28:42 +00:00
Vincent Hou 41daa208d9 Remove my_ip from cinder.conf
The current issue is that if we deploy c-vol service on a separate
machine, my_ip and SERVICE_HOST will be different, because my_ip is
the machine where c-vol service is running and SERVICE_HOST points
to the machine where the cinder api service is running. If my_ip of
c-vol in cinder.conf is set to the IP of c-api, it will cause the
issue that the volume is unable to attach. The issue can be resolved
by removing my_ip from cinder.conf.

Change-Id: I699c0b5297c60e9f9934f74684abf563f4b0e977
closes-bug: #1428013
2015-03-12 10:17:52 +08:00
Adam Gandelman de77c471f3 Make ironic's service check flexible
We currently assume we are deploying ironic with the rest of
a cloud and assert that glance/neutron/nova are enabled. This
makes it a bit more flexible and allows deploying with only
the minimum required services if desired, and asserts the others
are enabled when we intend on testing nova+ironic integration.

This is required for in-tree python-ironicclient functional tests,
which we aim to run against a minimal devstack deployment.

Change-Id: I99001d151161fa225b97c3ba6b167a61aa9b59fe
2015-03-11 17:17:49 -07:00
Flavio Percoco e32c868f22 Comment log_file for Zaqar
Instead of logging to a file, let it use stdout so we can see the output
in the screen logs.

Change-Id: I0e5e12a6ddc5ad91dd37e97362ac9a5bed238e32
2015-03-12 09:04:58 +11:00
Adam Gandelman 7ca90cded3 Allow devstack plugins to specify prereq packages
We offer main devstack components the ability to install their own
system package preqreqs via files/{debs, rpms}/$service.  This adds
similar functionality for plugins, who can now do the same in their
own tree at ./devstack/files/{debs, rpms}/$plugin.

Change-Id: I63af8dc54c75a6e80ca4b2a96c76233a0795aabb
2015-03-11 14:46:35 -07:00
Jenkins 44d4ec2a86 Merge "Configure neutron->nova with identity v3" 2015-03-11 19:18:32 +00:00
Jenkins df89b2931b Merge "README.md: Correct the defaults of some of Q_ML2_PLUGIN variables" 2015-03-11 19:17:53 +00:00
Christian Berendt d28ea9cbcb Add package mongodb to files/rpms/zaqar-server
The command mongo, used in lib/zaqar, is part of the package mongodb.
At the moment only mongodb-server is listed in files/rpms/zaqar-server,
mongodb has to be added there.

Change-Id: I60edeae6760addad62b9b61c3dcdecc2ff01cba7
Closes-bug: #1430939
2015-03-11 18:55:24 +01:00
YAMAMOTO Takashi 10a8c88ccc README.md: Correct the defaults of some of Q_ML2_PLUGIN variables
Also, tweak Q_AGENT description and note its default.

Change-Id: Ie24d14f58c09ccd375fd981683dba2efd5211f24
2015-03-11 17:15:19 +09:00
Jenkins df16842d04 Merge "Check for new versions of get-pip.py" 2015-03-11 04:50:06 +00:00
Jenkins b62e934073 Merge "Add sudo to yum example" 2015-03-11 04:49:56 +00:00
Ian Wienand 4d74e0f495 Fail if run in POSIX compatability mode
This is mostly to detect if someone is running the script with "sh
./stack.sh" where sh is the bash-symlink that puts it in POSIX mode
(this can be invoked in other ways, but much less common).

In this case POSIXLY_CORRECT is set; so if we see that, bail out early
before we start hitting syntax errors.

Closes-Bug: #1430535
Change-Id: I7bbc4b0f656df9f6d9da2243c8caeb42d30ace95
2015-03-11 12:40:13 +11:00
Ian Wienand b0595235a2 Don't use packaged unittest2
Let pip install unittest2; pip installation can conflict with the
packaged version.

Change-Id: Iec9b35174ac68ebf713cd7462d7b5a82583d6e22
Partial-Bug: #1430592
2015-03-11 12:07:20 +11:00
kieleth a72a393d65 Add sudo to yum example
Add sudo to yum example so following along with copy-paste works

Change-Id: I5e64b3d751b55989a353bfe2bb691ea6e51690e3
2015-03-10 23:07:05 +00:00
Ian Wienand 7c4ce9edba Check for new versions of get-pip.py
People can leave their devstack installs around for a long time, and
in the mean time new versions of pip can be released.

The current check does not download a new version if an old one
exists.  We want to check for new versions, but we also don't want the
gate jobs trying this sometimes unreliable fetch.

So add a flag-file that tells devstack if it downloaded get-pip.py
originally.  If so, on each run check for a new version using curl's
"-z" flag to request only files modified since the file's timestamp.

Change-Id: I91734528f02deafabf3d18d968c3abd749751199
Closes-Bug: #1429943
2015-03-11 09:40:13 +11:00
Jenkins d8b66662d5 Merge "Document use of plugins for gate jobs" 2015-03-10 13:25:16 +00:00
Jenkins b8c74c1108 Merge "Remove setting use_floating_ips values" 2015-03-10 11:51:14 +00:00
Ian Wienand db1152c96e Document use of plugins for gate jobs
Document use of plugins for gate jobs.  See also [1]

[1] http://lists.openstack.org/pipermail/openstack-dev/2015-January/054291.html

Change-Id: I9ed82f5d195511fb612517745f93f2a54475091a
2015-03-10 07:12:15 -04:00
Ken Chen 360839e0ad Remove setting use_floating_ips values
We remove the code to set use_floating_ips. In old code it was set
false if we do not use neutron. However, we cannot deploy clusters
with floating ips by that. So we just use the default value, which
is set True in Sahara.

Closes-Bug: #1426226
Change-Id: Idfcdc5ab776681ddc740dc12035e04da349ea089
2015-03-10 16:53:06 +08:00
Ethan Lynn 679f395fbb Set os_region_name for cinder
Region name should be set to nova.conf and cinder.conf so that
cinder volume can work in multiregion env.

Closes-Bug: #1429738
Change-Id: Ib20911c24d8daabc07e6515f4a23a745d77593ff
2015-03-10 15:15:26 +08:00
Takashi NATSUME 4de0f1cd0b Fix typo in devstack-with-nested-kvm.rst
'succesfully' has been fixed to 'successfully'.

Change-Id: Ib14b1b8cb612aba759f3fe8b94d35cf47eb9b339
Closes-Bug: #1430149
2015-03-10 14:51:39 +09:00
Dean Troyer bf2ad7015d Move configuration functions into inc/*
* config/INI functions from functions-common to to inc/ini-config
* local.conf meta-config functions from lib/config to inc/meta-config

Change-Id: I00fab724075a693529273878875cfd292d00b18a
2015-03-09 22:52:19 -05:00
Jenkins c5ab3e0c86 Merge "Fix ironic port-create deprecated option" 2015-03-10 03:44:44 +00:00
Attila Fazekas fbb3e773f0 Remove the kesytone admin token from swift
The keystone admin token supposed to be used only
for setting up keystone and it should not be used
in any other service config.

Change-Id: Iaa9be1878e89a6bc3a84a0c57fc6f5cecc371d2f
2015-03-09 15:08:22 +00:00
Jenkins 924079b890 Merge "Set rootfstype=ramfs for low memory Ironic nodes" 2015-03-09 12:04:49 +00:00
Jenkins 261f7c61c0 Merge "neutron-nec: Vendor code split" 2015-03-09 11:09:12 +00:00
Jenkins 8ae3b4f017 Merge "XenAPI: Default JEOS VM to only use 1GB RAM" 2015-03-09 11:07:39 +00:00
Jamie Lennox dc757dd850 Configure neutron->nova with identity v3
Use authentication plugins for neutron -> nova communications and
default to using the password plugin, which defaults to using the
v3 Identity API.

Neutron config change: 13427a40768f1a4646520c6b7e3e8c988ce6e18c
Change-Id: If152b97f940286ed08767225b13dedf6ef8c2342
2015-03-09 05:41:45 +00:00
Jenkins 4ce9ec6167 Merge "Fix typo of setings to settings" 2015-03-09 01:09:30 +00:00
Akihiro Motoki a3c103be7d neutron-nec: Vendor code split
Neutron NEC plugin support is configured using DevStack external
plugin mechanism. The following needs to be added in local.conf:

Q_PLUGIN=nec
enable_plugin networking-nec https://git.openstack.org/stackforge/networking-nec

Also removes lib/neutron_thirdparty/trema and files/debs/trema.
DevStack external plugin for Trema Sliceable Switch is available
and the following is needed to enable it in DevStack.

enable_plugin trema-devstack-plugin https://github.com/nec-openstack/trema-devstack-plugin

Change-Id: If983b986355fcc0118b6e0446b3b295f23b3c40e
2015-03-08 18:27:14 +09:00
Joe Gordon 40ce320bb0 Temporarily stop building mumpy wheel
It turns out we aren't actually using this wheel since we are still
installing the deb python-numpy, and building numpy takes several
minutes which is a lot considering we do it on every single dsvm job.

So until we have wheel caching in place, and are actually using the
version we build ourselves, stop wasting time.

Change-Id: I7643c55598e5ecc29ea708c537818b37a8047d4b
2015-03-06 15:35:51 -08:00
Bob Ball 1340ee72bf XenAPI: Default JEOS VM to only use 1GB RAM
While Devstack needs 4GB RAM (or more!) the JEOS
used as the base for the Devstack VM for XenServer
needs much less.  Allowing the initial install to
use 1GB means we have lower requirements overall

Change-Id: Iecaeeb4db0dffcc43c5532b5d57cb041d47047a6
2015-03-06 21:15:59 +00:00
Jenkins bf8881e6c2 Merge "Add support for oslo.versionedobjects" 2015-03-06 16:04:59 +00:00
Jenkins ad91baf1bc Merge "Remove lib/dib" 2015-03-06 15:09:03 +00:00
Baohua Yang 82450a5ebc Fix typo of setings to settings
The typo happens at the head part, and only one time occurs.

Change-Id: Ic6d3d8e17447066fe5e8ab867b10516dc8f185cc
2015-03-06 10:34:33 +08:00
Joe Gordon cd8824ac04 Pass PIP_FIND_LINKS through sudo to pip
We weren't actually using the wheels since PIP_FIND_LINKS environmental
variable was getting lost during the sudo

Change-Id: I4a89a70df63772a16ee5a8c3f1cd86e9c7bb5242
2015-03-06 01:33:31 +00:00
Steve Baker 249e36dec6 Remove lib/dib
diskimage-builder is a utility rather than a service, and is already
installed in devstack via pip when required.

lib/dib was created to allow an image to be created during a devstack
run for the heat functional tests, however this approach is no longer
being taken and there are no other known uses for lib/dib.

This change removes lib/dib and moves the pip mirror building to
lib/heat so that snapshot pip packages of the heat agent projects can
be made available to servers which the heat functional tests boot.

This also removes tripleo-image-elements, which has never
been utilised, and since images won't be created
during heat functional test runs it is no longer required.

Change-Id: Ic77f841437ea23c0645d3a34d9dd6bfd1ee28714
2015-03-06 10:57:52 +13:00
Adam Gandelman 8c32e0df7b Set rootfstype=ramfs for low memory Ironic nodes
When running with low memory (<1024), we need to switch from the default
rootfstype from tmpfs to ramfs to ensure nodes can decompress deployment
ramdisks.

Change-Id: I1b9dd614e592d99b2f59dea899b1ed3859ae0811
2015-03-05 11:34:41 -08:00
Jenkins 7a678bfcb2 Merge "Do not install the python-virtualenv on Fedora" 2015-03-05 14:44:14 +00:00
Jenkins ca2465f70d Merge "Add cryptography to list if files to build before hand" 2015-03-05 08:48:30 +00:00
Joe Gordon ab7df5ea1d Add cryptography to list if files to build before hand
building this takes 20 seconds or so

Change-Id: I95c71b1d0255c02038006bc743125ff2c49d9da9
2015-03-04 23:23:10 -06:00
Jenkins 38c8d84e24 Merge "Don't cleanup ceph config when REMOTE_CEPH=True" 2015-03-05 04:40:48 +00:00
Jenkins 8ce0485830 Merge "Fix defaulting of REMOTE_CEPH" 2015-03-05 04:37:08 +00:00
Zhenzan Zhou e2d2d65aa5 Fix ironic port-create deprecated option
A recent ironicclient commit If05d51b09d787ccfbf6f6d35d8e752d42f673601
deprecated --node_uuid, now it should use --node.

Change-Id: Ia97074bd2ce92645ac4b4151824098cb99434117
2015-03-05 12:26:33 +08:00
Jenkins cfbf8a1659 Merge "Add guestagent to defined Trove conf variables" 2015-03-04 17:23:55 +00:00
Jenkins 16e2704bb4 Merge "Complete the support of MatchMakerRedis driver" 2015-03-04 17:23:35 +00:00
Jenkins 81077cc87a Merge "Add support for using IPA with iSCSI" 2015-03-04 17:22:50 +00:00
Jenkins 52606dfab4 Merge "Add bash completion for OSC" 2015-03-04 17:11:32 +00:00
Attila Fazekas 802473e45a Do not install the python-virtualenv on Fedora
The files/rpms/general:python-virtualenv explicitly
installed this package on Fedoras.

This package is not installed on other distros by devstack
by default.

If you stack/unstack the package gets reinstalled,
and confuses the system about the installed virtual-env version.
The uninstall works in CI, but it can be problematic when you do
reinstalls on the same machine.

The uninstall introduced by
834b804d3e, this commit deos not
has any reference to the external bug what it supposed to solve.

Related RDO thread started here:
https://www.redhat.com/archives/rdo-list/2015-March/msg00015.html

Change-Id: I4a723f179bdc28d39a4910fb9e3787e9e67c354b
2015-03-04 14:57:44 +01:00
Jenkins f6a4305ccf Merge "Revert change to remove lbaas from devstack; it breaks grenade." 2015-03-04 00:21:15 +00:00
Jenkins 17d2059835 Merge "Add data-processing service for Sahara" 2015-03-03 23:47:52 +00:00
Doug Wiegley 93e682c558 Revert change to remove lbaas from devstack; it breaks grenade.
Change-Id: Ie2adaeb7f27d6d646ca2e6e575fb430b9b74b276
2015-03-03 10:31:30 -07:00
Dan Smith aca8a7fd99 Add support for oslo.versionedobjects
Change-Id: I01dba39259a3b264d4ec2b21db8429d340751979
2015-03-03 08:50:27 -08:00
Matthew Booth 0fdf34959e Don't cleanup ceph config when REMOTE_CEPH=True
If REMOTE_CEPH=True then we didn't write the contents of /etc/ceph, so
we shouldn't delete them.

Change-Id: I6291c6562a2864de775b1acb4be0be35b866f30d
2015-03-03 16:37:35 +00:00
Matthew Booth e3ceaedbd7 Fix defaulting of REMOTE_CEPH
A typo in lib/ceph was causing REMOTE_CEPH to be defaulted whenever
lib/ceph was sourced, regardless of its existing value. The
`trueorfalse` function takes a variable name as its second argument,
not a value.

Change-Id: Iec846e0b892eaa63a0a2a59aa045bc56d5606af1
2015-03-03 16:13:31 +00:00
Jenkins aff8fb9be8 Merge "Remove debs for diablo volumes" 2015-03-03 15:10:29 +00:00
Jenkins c7c39b35d6 Merge "Use the Member role with horizon" 2015-03-03 15:10:18 +00:00
Peter Stachowski dd4bafd7ef Add guestagent to defined Trove conf variables
When the Trove configuration files were defined in variables, the
guestagent wasn't included. In order for profiling to continue on the
guestagent, its configuration file must be defined as well.
(See https://bugs.launchpad.net/devstack/+bug/1421403)

TROVE_GUESTAGENT_CONF is now defined.

Change-Id: Ie7cb531e2a1eca74100e2466a430e85eaf936263
Closes-Bug: #1427506
2015-03-03 10:08:53 -05:00
Jenkins d263023bc0 Merge "vmware-nsx: Vendor code split" 2015-03-03 15:00:46 +00:00
Jenkins bafa4a0ef5 Merge "elasticsearch event support in ceilometer" 2015-03-03 14:12:08 +00:00
Jenkins 23678b033c Merge "Change the Guest Agent log_dir to /var/log/trove" 2015-03-03 14:11:34 +00:00
Jenkins a4306f65ea Merge "Handle proxy environment variables for epel-release install" 2015-03-03 14:11:25 +00:00
Jenkins 7e80bf21fb Merge "Optionally install tempest and disable by default" 2015-03-03 14:00:57 +00:00
Roey Chen 8b5406e228 vmware-nsx: Vendor code split
Devstack support is added using Devstack's external plugins:
https://review.openstack.org/#/c/156526

Asside to the environment variables, the following should be added to
local.conf file:

enable_plugin vmware-nsx https://git.openstack.org/stackforge/vmware-nsx

for the nsx plugin:
    Q_PLUGIN=vmware_nsx
    enable_service vmware_nsx

for the nsx_v plugin:
    Q_PLUGIN=vmware_nsx_v

Partially-Implements: blueprint vmware-nsx-v

Change-Id: I4e03d4953bf9b5112ff75a252b61c27fadd04bf1
Signed-off-by: Roey Chen <roeyc@vmware.com>
2015-03-03 02:04:29 -08:00
Attila Fazekas c4c27232c8 Use the Member role with horizon
Horizon by default using the _member_ role,
which is considered as a legacy role.

The tools/create_userrc.sh already creates the regular users,
with Member role.

Change-Id: Ibc07a0f28d0729f8a717a54e94fe014853363592
Closes-Bug: #1421616
2015-03-03 11:02:49 +01:00
Jenkins 81dcb64b0d Merge "Remove LBaaS support from devstack" 2015-03-02 20:43:09 +00:00
Jenkins 473d83d57b Merge "Fix curl issue when SERVICE_HOST is defined to IPv6 address" 2015-03-02 20:42:57 +00:00
gordon chung 76e724b9f7 elasticsearch event support in ceilometer
add support to store events in elasticsearch in ceilometer.

Change-Id: I9c9801d2b83af8332df21f221c2ac8579898d56b
2015-03-02 15:59:00 +00:00
sridhargaddam b5ab6468c9 Fix curl issue when SERVICE_HOST is defined to IPv6 address
When SERVICE_HOST is defined to literal IPv6 address
(i.e., [fdf8:f53b:82e4::179]) we will have to include
--globoff option for curl to be able to reach the various
openstack services. Using globoff works for both IPv6 and
IPv4 urls, so its safe to include this option for all curl
statements in devstack.

Closes-Bug: #1424943
Change-Id: I2afc16f2f94d7d7069b0ba61bc8348c03413e4e7
2015-03-02 07:42:36 +00:00
Jenkins db56ee8ef2 Merge "VPNaaS Support for StrongSwan driver." 2015-03-01 21:12:41 +00:00
Telles Nobrega 37a06f017b Add data-processing service for Sahara
When registering endpoint with data_processing keystone transforms it
into data-processing. This problem causes sahara to not find the
endpoint afterwards

We need to have two endpoints for correct working tempest and horizon
with devstack. After resolving bug in tempest and horizon need to remove
old data_processing endpoint

Change-Id: I97827d23ffe8a1218abd61e76804b918b1b7cbe0
Partial-bug: #1356053
2015-02-28 19:40:21 +00:00
Noboru Iwamatsu a67ef00a6d Handle proxy environment variables for epel-release install
Use yum_install() to support proxy environment variables when
epel-release package is installed from epel-bootstrap repo.

Change-Id: I45f7a38c6c71bbce07bd0d21c1ac8a75c04113cb
Closes-Bug: 1426221
2015-02-28 14:48:56 +09:00
Li Ma c24b399b7e Complete the support of MatchMakerRedis driver
MatchMakerRedis is the only tested routing method
for ZeroMQ driver. For others, like MatchMakerLocalhost
and MatchMakerRing, it still takes some time to work
on and completely test.

MatchMakerRedis is enough to run under real-world
deployment.

Change-Id: I3b2e8e68ceebd377479d75bbb8b862ae60cfc826
Partially-Implements: blueprint zeromq
2015-02-27 21:31:20 -08:00
Jenkins c8b2f60a54 Merge "Fix devstack running behind a proxy" 2015-02-28 00:15:34 +00:00
Peter Stachowski 84c9ceff7b Change the Guest Agent log_dir to /var/log/trove
In trove-integration, a patch was submitted to change the value
of the log_dir variable in the trove-guestagent.conf.sample file.
This should be changed here as well so that devstack uses the same
location.

The devstack trove-guestagent.conf file is created by devstack, not
from the sample file, so it needs to be changed here.

(For reference, an actual trove-guestagent.conf file is created by
the cloud provider implementing Trove, who may or may not use the
sample file provided.)

See: https://review.openstack.org/#/c/157973

Change-Id: I41b8e6fe443a2eff376ffc1f92c2ed90c94530b0
2015-02-27 22:10:22 +00:00
Joe Gordon c82c30c55a Remove debs for diablo volumes
Diablo is long gone. Remove debs for diablo nova volumes

Original commit that added this: I3e7c412ff125dbadd18b59af55fb7dea9ea17b07

Move open-iscsi requirement over to ironic, (ironic conductor calls
iscsiadm)

libvirt driver uses iscsiadm for iscsi based volume attaches as well.
lvm backend is supported for libvirt driver

Change-Id: I536ba0ebdb6e3fa68f0a82b3027e70d8e2f35085
2015-02-27 12:58:48 -08:00
Jenkins b554c39dc6 Merge "Fix Ironic for Syslinux >= 5.00" 2015-02-27 20:36:25 +00:00
Lucas Alvares Gomes 1d3a6ec0de Add support for using IPA with iSCSI
This patch is adding a new boolean that can be toggled to indicate
that we should use the IPA ramdisk instead of the normal ramdisk when
deploying a node with the iSCSI methodology. Defaults to False.

Depends-On: Iaabc6ada729461f18d69ee12d01b9f1465944454
Change-Id: If4004078866d833eb946be40b6dfb204aa4a6840
2015-02-27 18:31:22 +00:00
Paul Michali 6fd4720e60 VPNaaS Support for StrongSwan driver.
The StrongSwan driver under development for kilo-3 will replace the
default reference OpenSwan driver.

In the interim though, we need to be able to run functional tests
for both drivers. This change is intending to do the additional
steps that are needed to set up for Strongswan, so that when a
functional test has IPSEC_PACKAGE=strongswan, everything will be
correct.

The intent here is to explicitly set the device driver class in
vpn_agent.ini, so that this will work for when OpenSwan is the
default (currently), when no drivers are specified, and will work
for when StrongSwan is made the default in the code.

For Ubuntu, AppArmor is disabled for charon and stroke.

Note: Both OpenSwan and StrongSwan cannot be installed on the
host at the same time.

Change-Id: Ib8467e24633230d6643d812068e4ed6ffb33f104
Partial-Bug: 1424757
2015-02-27 12:05:15 -05:00
Al Miller b124f4d595 Remove LBaaS support from devstack
Devstack support for LBaaS is being migrated to an external
plugin in the neutron-lbaas repository.  The only LBaaS-
specific code that remains in devstack is a hook to support
existing configs that enable q-lbaas.  In that case, load
the external plugin if necessary.

Change-Id: I592f64407ccf1e722b8d9788917879d0236acf0b
Depends-On: I64a94aeeabe6357b5ea7796e34c9306c55c9ae67
2015-02-27 16:36:51 +00:00
Jenkins 172fae6a3e Merge "Change config of keystone_authtoken in lib/ironic" 2015-02-27 05:18:22 +00:00
Jenkins 36373c0655 Merge "Enable CDH and Spark plugin by default in Sahara" 2015-02-27 00:02:19 +00:00
Jenkins 8cf3e5911b Merge "Improve MidoNet integration" 2015-02-26 23:55:03 +00:00
Jenkins 9175adb79b Merge "Add error checks to provider net and subnet creation" 2015-02-26 23:50:52 +00:00
Ramy Asselin db29a7cf0c Fix devstack running behind a proxy
As suggested by dtroyer to resolve wheels not buildings
behind a proxy. Issue introduced in I0283b0dff9146b1b63bd821358505a93566270c6

Change-Id: Ib376469aff73a22ac2bc9d7d5a7f90081004aa8d
Closes-bug: 1426146
2015-02-26 14:40:51 -08:00
Jenkins 3ffd5475bf Merge "List all CIRROS ARCH images in image_list.sh" 2015-02-26 18:19:37 +00:00
Andreas Scheuring 15d40a5683 Add quotation marks to parse string correclty on rhel7
Problem:
On rhel7 the lvm.conf filter is generated wrongly

Root Cause:

bash-4.2 (rhel7/centos7) incorrectly splits herestrings 
when combined with IFS.  See [1] and [2]

Quoting the argument is a safe work-around

[1] http://stackoverflow.com/questions/20144593/trying-to-split-a-string-into-two-variables
[2] https://bugzilla.redhat.com/show_bug.cgi?id=1196566

Closes-Bug #1425839
Change-Id: Ie82fcd7ef0deacbb6aaf18c5c466a5d5baf52681
2015-02-26 10:18:41 +00:00
Lucas Alvares Gomes c08d5470aa Fix Ironic for Syslinux >= 5.00
Syslinux >= 5.00 pxelinux.0 binary is not "stand-alone"
anymore, it depends on some c32 modules to work correctly.
See: http://www.syslinux.org/wiki/index.php/Library_modules

Closes-Bug: #1419867
Change-Id: Ia62e980052ece3d5e2abf090b5609dea31f0d6b8
2015-02-26 09:54:37 +00:00
Naohiro Tamura 907d41c262 Add error checks to provider net and subnet creation
Error checks are added to detect provider network and subnet
creation.

Closes-Bug: #1423766
Change-Id: I4d4323d1c3159f84ce3d19924a569b153038d542
2015-02-26 08:52:18 +09:00
Joe Gordon 71e82f52bd List all CIRROS ARCH images in image_list.sh
image_list.sh is used to make a list of all possible images. Loop over
both x86_64 and i386 instead of just using the default arch of x86_64

For live migration we are starting to use the i386 arch based images and
don't want to cache them like all other images.

Change-Id: I47da72a0e9da3689cb085bb43ac6536094445112
2015-02-25 11:39:18 -08:00
Jenkins da533fa790 Merge "Fedora-21 has openjdk-1.8.0 only" 2015-02-25 16:34:58 +00:00
Sergey Reshetnyak 32ac55abb8 Enable CDH and Spark plugin by default in Sahara
Spark and CDH plugins enabled by default in Sahara.
Need to enable these plugins in devstack.

Change-Id: Idb57966c67c3e7da71ae3a408fbd83ba82e4321f
2015-02-25 15:56:59 +03:00
Attila Fazekas 99b598887b Fedora-21 has openjdk-1.8.0 only
Fedora-21 does not have openjdk-1.7.0 it has only 1.8.0.

This change also fixing the no op statement in the configure.

Change-Id: I6012aeb17b8e8fafa37d48aa29482702fa3491fd
2015-02-25 09:53:39 +01:00
Jaume Devesa 9826093202 Improve MidoNet integration
Since midonet has become open source, we can build it from
external plugin scripts. The way to enable it is using the devstack
plugin approach:

    disable_service n-net
    enable_service q-svc
    enable_service q-dhcp
    enable_service q-meta
    enable_plugin networking-midonet \
        http://github.com/stackforge/networking-midonet
    Q_PLUGIN=midonet

and should download and build the last master branch of midonet.

Change-Id: I795f92f9d3c97b2c35bac712c6edfc032eff345a
2015-02-25 08:40:44 +00:00
Vigneshvar.A.S 834b804d3e Upgrades pip under virtualenv
The version of pip supported by python-virtualenv has issues in
environment under proxy, hence uninstalling python-virtualenv package
and installing the latest version using pip.

Change-Id: Id749c37ab7fefa96b35f11816b56b9def5ef4b08
Closes-Bug: 1421541
2015-02-25 08:18:18 +00:00
Jenkins 7cffc6c992 Merge "Remove duplicated isset function" 2015-02-25 01:33:31 +00:00
Jenkins 5c053a6c56 Merge "Add debtcollector to lib/oslo and stackrc" 2015-02-25 00:19:13 +00:00
Jenkins a2be5e3a2d Merge "msgpack-python requires g++" 2015-02-24 22:42:00 +00:00
Joshua Harlow ee9064b762 Add debtcollector to lib/oslo and stackrc
Ensure that the debtcollector library is pulled in
like the other oslo libraries so that devstack can
use it where appropriate.

Also fixes 'test_libs_from_pypi.sh' to not have a huge
single line of libraries; and splits it into multiple
lines so the diffs and code can be easily looked at.

Change-Id: I35ab0ed0e20b6092a41ecb3b6f1aaf0a05f5180e
2015-02-24 12:55:13 -08:00
Jenkins 231a3e5587 Merge "Changed the log format for horizon's apache configuration" 2015-02-24 20:09:18 +00:00
Jenkins 6239919ea4 Merge "Create service definition for nova-serialproxy" 2015-02-24 19:18:33 +00:00
Jenkins 2960ea1dea Merge "Install python-redis from pip" 2015-02-24 12:54:33 +00:00
Attila Fazekas b8cf38c05d Remove duplicated isset function
stackrc defines the isset function, but this function is already
declared in functions-common.

The stackrc sources the `functions` which sources the `functions-common`.

Change-Id: I0772c42d049833334107c2e6da3700e544ce094f
2015-02-24 13:02:39 +01:00
Tony Breeds a339efcd67 Create service definition for nova-serialproxy
Nova has the ability to do remote interactive consoles but there is no
easy way to enable this in devstack.  This change defines a service
called n-serial to enable the service.  Documentation is added to a
new guide on nova, describing how to set further options in local.conf

Change-Id: I401d94b2413c62bfae9b90d2214d77bd4cfc15d5
2015-02-24 18:36:36 +11:00
Jenkins b5d1de0a93 Merge "Install openstackclient after other services" 2015-02-24 04:14:54 +00:00
Jenkins e2b95ff2a2 Merge "F21 requires redhat-rpm-config for mariadb-devel" 2015-02-24 01:08:06 +00:00
Jenkins beeef93013 Merge "mysql: disable query logging by default" 2015-02-23 21:30:19 +00:00
Jenkins 4e17005359 Merge "Add oslo.policy to lib/oslo and stackrc" 2015-02-23 21:28:04 +00:00
Jenkins 95f9a7febd Merge "Ensure lvm2-lvmetad service running on Fedora" 2015-02-23 21:27:22 +00:00
George Peristerakis e7b51362fd Changed the log format for horizon's apache configuration
The default apache log format is noisy. Added a custom log format
that matches the other apache log format of projects like keystone

Closes-Bug: #1222900
Change-Id: Id9a8c3a4413c778e009c56ffde6b646b8a120c8b
2015-02-23 19:10:51 +00:00
Attila Fazekas 0fda343c18 msgpack-python requires g++
msgpack-python when installed from source requires a C++ compiler
installed on the system, otherwise it falls back to the python
implementation.

Change-Id: Iffe1f90f3a70780be22459c3f7a3cddfe47f01ca
2015-02-23 14:33:52 +01:00
Attila Fazekas d5004a3802 F21 requires redhat-rpm-config for mariadb-devel
As you can see in the f21 job, the python-MYSQL compilation
fails without this library.

At the first look it seams like packaging issue, so
I created bug related to this. [1]
Until the issue is addressed, the redhat-rpm-config will be
considered as build time dev dependency for f21.

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1195207

Change-Id: I731828cac912d1b11eaf2269364411c77a57d76c
2015-02-23 13:50:36 +01:00
Flavio Percoco b592454e51 Install python-redis from pip
Following the leads of  I47b7e787771683c2fc4404e586f11c1a19aac15c and as
an attempt to fix a bug blocking Zaqar's gate, this patch installs
python-redis from pypi instead of using the distro package.

Change-Id: Idfef2fe1b41b44c4cba6b6948b621bc44e77659b
2015-02-23 09:23:55 +00:00
Jenkins 889f604642 Merge "Recent virtualenv review cleanups" 2015-02-23 01:26:30 +00:00
Jenkins 07a0109fae Merge "clean.sh needs to call "run_phase clean" for external plugins" 2015-02-23 01:25:52 +00:00
Joe Gordon c9b245bb43 Optionally install tempest and disable by default
In I78d51f04ed01da4ce8aa0e127be028f969d3b4f8 we turned off installing
tempest because we install it on stable branches where the stable reqs
do not equal the tempest master (branchless) reqs.

Leave this off by default since that is the behaviour we have in the
gate, and make default devstack as similar to the gate as possible. But
add an option to install tempest by default so developers can opt and
reproduce the previous behaviour.

Update the tempest section of the README with how to run tempest tests
and how to install tempest if desired.

Change-Id: Ie4ea7335a57917244873ec54658ca269ab765ce1
2015-02-20 15:46:49 -08:00
Jenkins d070ad22fd Merge "Ensure we install tempest-lib from git in tempest's tox venv" 2015-02-20 21:04:09 +00:00
Jenkins 7ac35fc110 Merge "purge all pure python libraries" 2015-02-20 16:45:21 +00:00
Al Miller a1701fabcf clean.sh needs to call "run_phase clean" for external plugins
Change-Id: I67b970992479e50dc054f8c4a77a20e724e3e305
2015-02-20 08:22:25 -08:00
Ihar Hrachyshka 1ffa33210d Install openstackclient after other services
Let's see whether openstackclient will trigger unneeded version bump for
clients if its installation is put below all other services that are
expected to intall client libraries on proper versions on their own.

Change-Id: Ifa774219b7057112fc794a5e3d93bc963c55ba90
2015-02-20 17:12:46 +01:00
Dean Troyer 99c463d56d Recent virtualenv review cleanups
This is a follow-on to comments in https://review.openstack.org/156356
and https://review.openstack.org/#/c/151513/

* Remove work-around for /var/cache/pip
* Remove WHEELHOUSE setting in tools/build_wheels.sh and use the pip
  default directory '<cwd>/wheelhouse'
* Remove bogus MySQL-python install
* Removed unused bits and clean up pip commands in from tools/build_venvs.sh

Closes-Bug: #1423720
Change-Id: I0283b0dff9146b1b63bd821358505a93566270c6
2015-02-20 08:56:53 -06:00
Matthew Treinish 83e166b707 Ensure we install tempest-lib from git in tempest's tox venv
This commit adds installing tempest-lib from git to the tempest full
job's tox venv. Since by default tempest isn't being installed
globally anymore and when we do run tempest it is normally within a
tox venv that means previously the install from git flag isn't being
taken into account.

Change-Id: I98b0754c4a91690c9402fa2ae2c3e9ba9195d444
2015-02-20 09:50:34 -05:00
Sean Dague aa8d31ac8b fix missing TOP_DIR which can break sourcing
There were a couple of places where TOP_DIR is missing when we do a
source of content in tools. Given that working directory can change
quite often during devstack, we need to always be explicit here.

Change-Id: I14b5699637d7f5db745bccf116f440cdcbaa8d91
2015-02-20 06:10:48 -05:00
Jenkins 86b3a920e9 Merge "Virtual environment groundwork" 2015-02-20 06:45:09 +00:00
Mikhail S Medvedev 69741a99c7 Fix package names that cause f20/f21 breakage
Closes-Bug: #1423720
Change-Id: I8fdea7d24d1ec09885d2a395d4ba656f4194d39f
2015-02-19 19:05:28 -06:00
Jenkins 37e03c906b Merge "Build wheel cache for venvs" 2015-02-19 17:20:45 +00:00
Attila Fazekas 380d92cc7a Ensure lvm2-lvmetad service running on Fedora
When the lvm package gets installed the meta service does
not gets started automatically, but it becomes enabled so it would be
running on the next reboot.

The lvm commands are configured to use this service.
In the past this issue just causes warnings in the cinder log,
but now it can lead to a real issue.

It is better to ensure it is really running,
because it speeds up the lvm related commands.

Change-Id: I17fe2c3bcf77a6505ed2b6c824c5b20807beb725
2015-02-19 07:55:26 +01:00
Steve Martinelli 20b027b79c Add oslo.policy to lib/oslo and stackrc
As per the graduation work items, any new libraries should be
added to lib/oslo and stackrc

partially implements bp graduate-policy

Change-Id: Ief8f28715ecff5a602d6d840d736ea07b5e7ff39
2015-02-18 23:21:20 -05:00
Jenkins 9f86ec2f4d Merge "Add qemu-utils to n-cpu debs" 2015-02-19 03:21:35 +00:00
Dean Troyer 8c2ce6ea72 Virtual environment groundwork
Introduce the tooling to build virtual environments.

* tools/build_venv.sh: build a venv
* introduce lib/stack to house functionality extracted from stack.sh that
  is needed in other places, such as Grenade; start with stack_install_service
  to wrap the venv install mechanics
* declare PROJECT_VENV array to track where project venvs should be installed
* create a venv for each project defined in PROJECT_VENV in stack_install_service()

Change-Id: I508588c0e2541b976dd94569d44b61dd2c35c01c
2015-02-18 20:19:38 -06:00
Jenkins 7591be5466 Merge "Remove is_rackspace function from functions-common" 2015-02-19 01:11:54 +00:00
Jenkins 20585f5b23 Merge "Remove no longer used definitions for Ryu" 2015-02-19 01:08:48 +00:00
Joe Gordon b787b684f3 Add qemu-utils to n-cpu debs
Qemu-utils is needed by nova-cpu, we are hitting issues with this in
multi node testing where fewer services are installed on the second
node.

Change-Id: I4b0a217a252c7862014443230dda2bcced355c93
2015-02-18 15:20:31 -08:00
Daniel P. Berrange 20a3dbdfa1 mysql: disable query logging by default
Having DATABASE_QUERY_LOGGING enabled results in devstack turning
on verbose mysql query logging. This results in a log file
/var/log/mariadb/mariadb-slow.log that grows to 10's of GB in
size in very little time (few weeks if that). Developers never
seem to notice this exists until their host OS runs out of disk
space due to this logfile that is never truncated.

Very few people will ever look at this logged data, so a more
sensible default is False, to make the out of the box setup be
suitable for the majority. Those few people who want to debug
mysql query performance can enable it in local.conf, as will
the devstack gate setup scripts.

Depends-On: I6970d61474528f554134d0aa333cd52b7b20f309
Change-Id: Ia4a366c839ac51623bc1fbee3560dc4d848cce14
2015-02-18 22:17:20 +00:00
Jenkins 0573f3d8a0 Merge "Stop referring to grizzly" 2015-02-18 21:48:38 +00:00
Dean Troyer b1d8e8e274 Build wheel cache for venvs
Building a bunch of virtual envs later is going to be tedious if we do not
pre-cache certain annoying-to-build packages.

* tools/build_wheels.sh: pre-build some wheels for annoying package installs
* list distro package dependencies in files/*/venv
* list packages to pre-build as wheels in files/venv-requirements.txt
* install database Python modules when setting up the database

Change-Id: Idff1ea69a5ca12ba56098e664dbf6924fe6a2e47
2015-02-18 15:13:00 -06:00
Jenkins 4a9b154f5e Merge "Fix is_keystone_enabled()" 2015-02-18 21:00:14 +00:00
Jenkins a6de7e962c Merge "Teach pip_install() about virtual envs" 2015-02-18 20:59:20 +00:00
Joe Gordon 6b9debaa24 Stop referring to grizzly
I am pretty sure that won't even work.

Also fix tiny typo in the faq

Change-Id: Ie2e5640b8d4214a271d5af3b652b1a18db010b61
2015-02-18 11:30:23 -08:00
Yuki Nishiwaki d5323979ad Change config of keystone_authtoken in lib/ironic
This commit is temporary work-around until Ironic is fixed(bug#1422632)

The reason of creating temporary work-around is following
Ironic re-uses specific values from the keystone_authtoken middleware.
So we should specify admin_user, admin_password and so on instead of username, password.

Change-Id: If8869e16a167eea0af87afda0eabcbb803627db6
Closes-Bug: #1418341 at devstack
2015-02-18 13:53:45 +00:00
Jenkins 2e9d32baf2 Merge "XenAPI: Recommend using xl console rather than vncviewer" 2015-02-18 12:57:32 +00:00
Jenkins a804c071b7 Merge "add ceilometermiddleware lib" 2015-02-18 11:32:51 +00:00
YAMAMOTO Takashi 606f3478b1 Remove no longer used definitions for Ryu
Change-Id: Ie6dcf1569aacfa8d20e905d694847594b136fed1
2015-02-18 13:56:35 +09:00
Jenkins 471a203695 Merge "define variables for Trove to be used in local.conf" 2015-02-18 01:09:09 +00:00
Jenkins f55af826a5 Merge "Add new function get_from_global_requirements" 2015-02-17 23:47:54 +00:00
Jenkins d5e934e23c Merge "Fix an error message in the neutron script" 2015-02-17 22:00:27 +00:00
Joe Gordon d5ac785247 Add new function get_from_global_requirements
Instead of specifying the version of a library in devstack, use the version from
global-requirements

Add new function get_from_global_requirements and use it
where it makes sense.

Change-Id: I6b2f062761ac05ef72fc6cc9993bc204faf06fa5
2015-02-17 11:48:06 -08:00
Jenkins c19a3795de Merge "Don't prepend $DATA_DIR to volume path that already has it" 2015-02-17 19:45:30 +00:00
Jenkins ce873f5e1f Merge "ofagent: Vendor code split" 2015-02-17 17:22:22 +00:00
Jenkins c134fe7c59 Merge "Add admin role back to ceilometer service user" 2015-02-17 15:45:33 +00:00
Sean Dague 39282bf769 purge all pure python libraries
python libraries should be installed from upstream, not from the
distro, as much as possible. The following is a first attempt at
purging all the python libraries and making it so that they instead
should fall back to the pypi versions.

Libraries which are known to include native code are left behind.

Change-Id: I47b7e787771683c2fc4404e586f11c1a19aac15c
2015-02-17 10:26:36 -05:00
Bob Ball e356d8cff6 XenAPI: Recommend using xl console rather than vncviewer
Some vncviewers do not support the -via option, so default to suggesting
xl console.  XenCenter continues to be an option for those running
Windows.

Change-Id: I1e53fd33d309e30a60031965e589167dcbacfbbe
2015-02-17 15:05:34 +00:00
Naohiro Tamura 4abc4d1b61 Fix an error message in the neutron script
The $PHYSICAL_NETWORK in the error message should be
$PRIVATE_NETWORK_NAME, because the command just before this error
message refers to $PRIVATE_NETWORK_NAME.

Change-Id: I9a648f8bd0e61abde8e93bc08282c14b35ec06bd
2015-02-17 22:20:19 +09:00
Brian Hunter 236fd078c0 define variables for Trove to be used in local.conf
This defines a number of variables for Trove configuration files
and options
In addition to general cleanup within devstack, this also enables 
consumers to enable features such as Openstack profiling, without
the need to repeat the hardcoding of these parameters in their
local.conf

Change-Id: Ieaa999ea3ca5c4f7d320416a8d2375c9a1d03d39
closes-bug: #1421403
2015-02-17 00:32:23 +00:00
Chris Dent 230e03af2d Add admin role back to ceilometer service user
admin is required for the discovery process in the polling agents.

Change-Id: I255184c544c6cc43c832d7c5d19d09b9f43adb10
Closes-Bug: 1422488
2015-02-16 22:09:22 +00:00
Jenkins 9f362d3ab6 Merge "XenAPI: Move where os-vpx is set" 2015-02-16 22:04:23 +00:00
Chris Dent 4c20607e0a Don't prepend $DATA_DIR to volume path that already has it
Otherwise the test is testing the wrong file.

Change-Id: Ia7dcda8d4f3a1fe87e74f4605a7010b66c38fa14
2015-02-16 21:56:29 +00:00
Jenkins b2b19040d4 Merge "XenAPI: Move some boot-time functions to install-time" 2015-02-16 21:49:17 +00:00
Jenkins bae736e1e0 Merge "Revert "Remove NoVNC from the default enabled services"" 2015-02-16 18:12:14 +00:00
Dean Troyer 5ce44cd63b Fix is_keystone_enabled()
is_keystone_enabled() was calling is_service_enabled(), which is what called
is_keystone_enabled() in the first place.  Make it work as designed and
also change calls to use the full service name.  Note that this is all
still comptible with the prior usage of 'is_service_enabled key'.

Change-Id: I9c28377ecf074b7996461d2a4ca12d88dfc4d47e
2015-02-16 10:52:18 -06:00
YAMAMOTO Takashi 183a9c0386 ofagent: Vendor code split
Install networking-ofagent from StackForge, using DevStack's
external plugins mechanism.

The following line needs to be added to the existing local.conf settings:
    enable_plugin networking-ofagent https://git.openstack.org/stackforge/networking-ofagent

Remove neutron_thirdparty/ryu, as Ryu is installed via
networking-ofagent's requirements.

Change-Id: I12287a47eac4689414f70b517ee37fb98b260e60
Partially-implements: blueprint core-vendor-decomposition
Partial-Bug: #1412653
2015-02-13 10:00:26 +09:00
Jenkins 13c7ccc9d5 Merge "Make swift user an admin" 2015-02-12 23:08:52 +00:00
gordon chung ad61e7f9dd add ceilometermiddleware lib
middleware in ceilometer has been broken into it's own lib. this
first patch adds the package.

Change-Id: I63795787b909effcc4fcdee7f262207bb59fd8c2
2015-02-12 18:07:02 -05:00
Sean Dague b9f2e25fa8 Revert "Remove NoVNC from the default enabled services"
Reverting this is probably appropriate because until we can
get Debian/Ubuntu to fix their underlying dependencies. 
It's confusing a lot of people that this is no longer
available

This reverts commit 2bfb9af0c9.

Change-Id: Id352db9dcd40bfb5eb771dad42cdf04e0ce72313
2015-02-12 20:31:58 +00:00
Dean Troyer 2b564763aa Teach pip_install() about virtual envs
Set PIP_VIRTUAL_ENV to install the package(s) into an existing virtual
environment.  This works by simply using the pip command already
in the venv, and not using sudo.

Change-Id: I910e1752e58a666174f83b4f97e547851e66e655
2015-02-12 12:19:20 -06:00
Jenkins 314723962b Merge "Make EC2 compatible with current AWS CLI." 2015-02-12 17:48:54 +00:00
Jenkins c309e357ae Merge "Add eval message when setting Cinder lvm.conf" 2015-02-12 15:39:36 +00:00
Jenkins a8fad91cdf Merge "Remove deprecated vars" 2015-02-12 15:36:30 +00:00
Jenkins c235b51251 Merge "Enable colorized logging for glance" 2015-02-12 15:35:43 +00:00
Jim Rollenhagen ae74ed778a Make swift user an admin
This breaks Ironic's use of temp URLs, which the key for the service
account is configured via the Swift user.

Change-Id: I69f6f6eef4ad573f406d64d579a9811c70ac5d28
Closes-Bug: #1421006
2015-02-12 07:33:36 -08:00
Bob Ball 0df75a7288 XenAPI: Move where os-vpx is set
os-vpx is only true after we know it's not a JEOS we're creating
Move the location we set the os-vpx flag to as we're starting to
prepare the VM for devstack

Change-Id: If736f3a7de171b8090b0bb905e04accb70470a90
2015-02-12 11:59:46 +00:00
Jenkins 16c886e1fd Merge "guides: devstack-with-nested-kvm: Fix typo - s/AMD/Intel" 2015-02-12 11:40:50 +00:00
John Griffith c3c94ca6bc Add eval message when setting Cinder lvm.conf
We added an lvm filter for use when using Cinder's
LVM driver that would only scan devices that we have
actually deployed Cinder Volume Groups on.

This patch adds a simple output message to the setup
routine so we can more easily inspect what was found
and what has been set during devstack setup.

Change-Id: Iba5012caffd45dfb5143b6df954eed277445a60e
2015-02-11 20:46:56 -07:00
David Shrewsbury cdfcd4b88d Restore Ironic admin user privilege
Change Id7a9366d2c6a36139240f64371002362dc2d8d3b broke the Ironic gate
by removing admin level privileges. This restores the privilege and adds
a comment to prevent the removal again (hopefully).

Change-Id: Ida1c05d9e429e24d060aef2548fc2a0c225350b8
Closes-Bug: #1421006
2015-02-11 16:12:26 -08:00
Jenkins d26da45b98 Merge "add gating up/down script for devstack" 2015-02-11 20:53:44 +00:00
Louis Taylor 701276a800 Enable colorized logging for glance
Extensive QA has found this makes glance 100% more fabulous.

Change-Id: I1cf94096d6bd5033ef0f9e3ed2a77108677581f0
2015-02-11 19:37:57 +00:00
Daniel P. Berrange a99e5c9b0e Revert "Exit when printing error about database config"
This reverts commit 2d7c346f0c.

Not setting DATABASE_TYPE is not a fatal error since it is
valid to create nodes which only run a subset of services,
and so a database may not be needed.

Change-Id: I7d957e628141ba333b6f38940b39845b18fba4df
2015-02-11 17:25:38 +00:00
Kashyap Chamarthy a7c655850c guides: devstack-with-nested-kvm: Fix typo - s/AMD/Intel
In section "Configure Nested KVM for Intel-based Machines", this
sentence:

  Procedure to enable nested KVM virtualization on AMD-based machines.

should (obviously) read as:

  Procedure to enable nested KVM virtualization on Intel-based machines.

Change-Id: I9872a5d20a23f1cce7bf2a79bf29e1b11511b418
2015-02-11 17:58:15 +01:00
Dean Troyer 311f487644 Remove deprecated vars
These have been emitting deprecated warnings for over a full release cycle:
Q_AGENT_EXTRA_AGENT_OPTS, Q_AGENT_EXTRA_SRV_OPTS, CINDER_MULTI_LVM_BACKEND

Change-Id: I3aa5cabd6ce3a0072cba08bbca1ad23d4a831219
2015-02-11 10:56:47 -06:00
Jenkins 2a811912c6 Merge "Use the site-wide boto.cfg" 2015-02-11 16:14:42 +00:00
Jenkins 6bcd7009b5 Merge "qpid: plain auth needs cyrus-sasl-plain package" 2015-02-11 16:11:20 +00:00
Jenkins ee2e53592b Merge "Reduce service user permissions" 2015-02-11 15:55:41 +00:00
Jenkins 6f0efa06b9 Merge "Unconfigure the devstack CA when USE_SSL is True" 2015-02-11 13:57:01 +00:00
Jenkins e196544e23 Merge "Set ca_certificates_file in tempest, fix test for "keystone"" 2015-02-11 13:49:56 +00:00
Mehdi Abaakouk d1e3ff14b8 qpid: plain auth needs cyrus-sasl-plain package
On fedora 21, qpidd cannot authenticate user, because
cyrus-sasl-plain is no more automatically installed.

This change fixes that.

Change-Id: I74452f40723881291b8c7577e5509da1c0e4e6e5
2015-02-11 14:27:11 +01:00
Bob Ball 5b9adb60de XenAPI: Move some boot-time functions to install-time
The boot-time script (prepare_guest.sh) is one of the less reliable parts
of the install process.  This change enables SSH into the host as well as
reporting of the IP address.  This significantly helps debugging issues
now and enables moving of all other setup code to being executed over SSH.

Change-Id: I1555f1d91353ba8b75e2de4607df33ee20307a6e
2015-02-11 11:15:02 +00:00
Sean Dague 9a413abcd4 add gating up/down script for devstack
This adds the test infrastructure for testing that unstack.sh and
clean.sh do the right thing, and actually stop what's expected. This
is designed to be used in upstream testing to make unstack and clean a
bit more certain.

It includes numerous fixes to make these pass in an errexit
environment with the gate config. The scripts still don't run under
errexit because we don't assume we've handled all possible cleanup safely.

Change-Id: I774dfb2cc934367eef2bb7ea5123197f6da7565b
2015-02-11 06:10:38 -05:00
Jamie Lennox 9b215db569 Rename get_or_add_user_role
get_or_add_user_role is specific to adding a role on a project.
Rename it to get_or_add_user_project_role to allow room for adding a
domain specific role function.

Change-Id: I999308098d22be9800578ae67144a3b687fbc3be
2015-02-11 14:51:22 +11:00
Jamie Lennox e8bc2b82a0 Reduce service user permissions
Most of the services create the service user with the admin permission.
This is unnecessary for token validation and they should be restricted
to only having the service role.

Change-Id: Id7a9366d2c6a36139240f64371002362dc2d8d3b
2015-02-11 14:49:56 +11:00
Jenkins 8ed3e40be8 Merge "Remove OpenDaylight from being in-tree for devstack" 2015-02-11 02:54:11 +00:00
Jenkins f957b49ede Merge "Adds elasticsearch support as a pre-req for the glance-index." 2015-02-11 01:28:36 +00:00
Jenkins 5fc64f1fcb Merge "remove lib/stackforge" 2015-02-10 16:36:01 +00:00
Jenkins 5bdb2204bd Merge "Configure sahara to work with other secured services" 2015-02-10 14:27:26 +00:00
Sean Dague 117c6c2048 remove lib/stackforge
Now that we have a working external plugin mechanism stackforge
projects definitely don't need to be directly in devstack. These were
largely unused previously anyway.

Change-Id: I300686b2ac976d9b454404842b3f210fd7c239d9
2015-02-10 07:53:36 -05:00
Rob Crittenden e1d013f926 Set ca_certificates_file in tempest, fix test for "keystone"
Configure tempest with the location of the devstack CA bundle.

Fix a conditional that was looking for the "keystone" service
when it should be "key". This affected users who set
USE_SSL=True

Change-Id: I7171d7bd539443dce9f3b1a80274b7861abdcfdb
2015-02-09 22:46:00 -05:00
Rob Crittenden ebcb849634 Unconfigure the devstack CA when USE_SSL is True
Change-Id: I17cb5e5d93bfe6fc6746ee530f639e2ed42da85a
2015-02-09 22:45:22 -05:00
Jenkins fdb00b4b56 Merge "update plugin doc" 2015-02-10 02:53:55 +00:00
Jenkins 7840d9dc30 Merge "XenAPI: Use round-robin mirror for Ubuntu" 2015-02-10 01:34:38 +00:00
Jenkins 612656b7a8 Merge "gantt is a dead project, remove it" 2015-02-10 01:34:30 +00:00
Jenkins 0ed629cf08 Merge "remove tuskar" 2015-02-10 01:34:21 +00:00
Jenkins 220e6e73d8 Merge "Stop installing tempest" 2015-02-09 23:15:16 +00:00
Sean Dague 33127a1287 update plugin doc
After doing a couple of external plugins I found that basically things
don't work unless you enable_service in the settings file. Document
that as a requirement, and clean up the rest of the docs around the
external plugins to be consistent with that.

Change-Id: I13aee7dbf112ce9663e8338b555a208327f89b61
2015-02-09 15:17:27 -05:00
Wayne Okuma 00d0da36af Adds elasticsearch support as a pre-req for the glance-index.
Add elastic search pkg installation and start into the glance install
and start paths.

Change-Id: I53fc37225dd606f627c9f967083007613eb1f1bb
Implements: blueprint catalog-index-service
2015-02-09 11:35:00 -08:00
Joe Gordon 1368b98669 Stop installing tempest
We run tempest inside of tox so no nee to install it. By not installing
it we decouple one more thing from the requirements sync.

Without this patch, due to branchless tempest, tempest must work with
master and all stable branch global requirements.

Although installing tempest should work on master, don't install it
anyway to make the user experience more uniform across master and
stable branches.

Note: Long term we can install this inside of a virtualenv
(I92648fffc1ad6af53006a0970722fd15f4e79dc2) but that logic hasn't landed
yet and installing tempest is breaking us. So leave moving this to a
virtualenv for a later patch.

Change-Id: I78d51f04ed01da4ce8aa0e127be028f969d3b4f8
2015-02-09 11:32:52 -08:00
Jenkins 7ec3772d5f Merge "Add postgresql dev package as testonly neutron dep" 2015-02-09 19:26:07 +00:00
Sean Dague b36a13a76a gantt is a dead project, remove it
The gantt source trees are dead projects, we should remove them from
devstack.

Change-Id: I0f271891846d2ad7a7a8edd975cdfb4f08419f0c
2015-02-09 13:32:47 -05:00
Sean Dague fa94dfcb17 remove tuskar
Tuskar server support is proposed as an external plugin here
I67dc8420582a40e18de7d5e00094bccc1184a7f9, we should remove Tuskar
from the main devstack tree.

Change-Id: I93e97e7ae8fd03cabc1245a10588c4474d7e3728
2015-02-09 13:32:46 -05:00
Jenkins 5e781bd9d0 Merge "Isolate creating service users" 2015-02-09 17:59:36 +00:00
Jenkins 63f67e2101 Merge "implement elasticsearch pkg for devstack" 2015-02-09 17:58:56 +00:00
Jenkins 2c45a60b01 Merge "Removed confusing duplication of ca config for keystone" 2015-02-09 16:36:17 +00:00
Jenkins 24419a87de Merge "Keystone set debug in config file" 2015-02-09 16:35:49 +00:00
Jenkins f297064c53 Merge "lib/neutron: Update comments about entry points" 2015-02-09 16:13:31 +00:00
Jenkins 867574aff1 Merge "guides: Notes to setup DevStack with Nested KVM Virtualization" 2015-02-09 16:12:50 +00:00
Bob Ball 347e30877b XenAPI: Use round-robin mirror for Ubuntu
ANL has discontinued their Ubuntu mirror.  Update the target
to be the official round-robin mirror which should be more stable long-term

Change-Id: I1271301d96a44888f45664537435e31dd38ff30d
2015-02-09 12:02:51 +00:00
YAMAMOTO Takashi b1a153ed71 plugins.rst: Fix a typo
Change-Id: I3f85166a1e0f2fea02055dae6871746ad1b8d897
2015-02-09 12:43:12 +09:00
Jamie Lennox 85ff5323ff Isolate creating service users
The code for creating service users is almost exactly the same. Abstract
this into a function that can be reused and standardized.

Change-Id: I3a4edbff0a928da7ef9b0097a5a8d508fdfab7ff
2015-02-09 14:36:20 +11:00
Brant Knudson 0fc336df89 Keystone set debug in config file
Change keystone so that the debug setting is always in the config
file. This way the debug setting is done consistently whether it's
run as keystone-all or in Apache httpd.

Change-Id: I10f091e32b8b12ac71f0e7f613c5d1d3f4a8cbec
2015-02-08 11:03:02 -06:00
Jenkins 0a52f5597e Merge "Add Service token to conf in single vm documentation" 2015-02-07 14:32:28 +00:00
Andrew Lazarev 76549e332e Removed confusing duplication of ca config for keystone
More general check is performed at line 157. No need for this one.

Change-Id: I7de820ca2b2954313b1f591ece7785891868cd27
2015-02-06 16:33:56 -08:00
Andrew Lazarev 4f7e0f27e8 Configure sahara to work with other secured services
Registering SSL parameters in sahara.conf for all openstack
services.

Change-Id: I63dd8a0f6e7b37cfd8140d2783af04505f29285f
Closes-Bug: #1419195
2015-02-06 16:29:51 -08:00
Jenkins f2b8969465 Merge "isolate unit tests from stackrc HOST_IP check" 2015-02-07 00:08:51 +00:00
Jenkins a9198a8ff9 Merge "Document where we are going" 2015-02-06 21:54:39 +00:00
Kyle Mestery 76a08f5a93 Remove OpenDaylight from being in-tree for devstack
Now that we have a patch to make this pluggable [1], lets remove this
from the devstack repository.

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

Change-Id: Ia23f99476ec16df9cc12f63864189835a09eb644
2015-02-06 21:43:52 +00:00
Jenkins 3273b6d280 Merge "Split functions-common: python functions" 2015-02-06 20:45:45 +00:00
Jenkins f9222da73f Merge "Stop neutron services more explicitly" 2015-02-06 20:34:23 +00:00
Sean Dague 365421b99a isolate unit tests from stackrc HOST_IP check
The HOST_IP check in stackrc is useful for real users, but some cloud
nodes that infra runs don't detect it correctly, and it's not actually
required for unit tests to work right.

Change-Id: Id2aaa713aea91825021e9d8d49d19f3e40a8e6c9
2015-02-06 15:27:43 -05:00
Andrey Pavlov 0ea8b72a20 Make EC2 compatible with current AWS CLI.
Nova listens for EC2 calls now at the URL without path -
http://some.server.com:8773/
I was made in review -
https://review.openstack.org/#/c/152496/

So I suggest to change EC2 urls in keystone catalog.

Change-Id: Ia2975ce0f6a30eed6016733e12c98b5f97648307
Closes-Bug: 1417555
2015-02-06 22:51:07 +03:00
Sean Dague f8b4f85aeb implement elasticsearch pkg for devstack
the first implementation of arbitrary installation in tree for
components for elasticsearch.

Change-Id: I88e852ad009735ae77c6d4c19c4f4838c49cc0ad
2015-02-06 10:40:28 -08:00
Jenkins e79678af5e Merge "Remove the default project from all users" 2015-02-06 16:16:36 +00:00
Maru Newby cbfe93bb48 Add postgresql dev package as testonly neutron dep
The neutron functional job needs to build psycopg2 which has a
dependency on postgresql dev packages.

Change-Id: Ie5c8e2bd02e148d6638f4a4c1fbf6667c30313d5
2015-02-06 15:45:12 +00:00
Kashyap Chamarthy 75afd6d33c guides: Notes to setup DevStack with Nested KVM Virtualization
Add a document with procedure to configure KVM-based nested
virtualization on the physical host and to configure DevStack (in a VM)
to take advantage of it.

Current topics:

   - Configure nested virt on Intel hosts
   - Configure nested virt on AMD hosts
   - Expose virt extensions to DevStack VM
   - Ensure DevStack VM is using KVM

Change-Id: Ibe6fa482cc0d51183438d99680a0e10d0da652cb
2015-02-06 11:39:29 +01:00
Jenkins 70157976ae Merge "Remove --skip-redirect form the tgtd service restart" 2015-02-06 05:35:56 +00:00
Sean Dague 2e17d85d80 Document where we are going
Somewhat opinionated document on where we want to be going, should be
an accurate first approximation of what Dean and I have chatted about
over the last few weeks. Hopefully helpful in framing where we are
going.

Change-Id: Ia153af27a08203ffc44e37c7db73e04573d3be9f
2015-02-05 16:20:52 -05:00
Jenkins 3f80eb59a4 Merge "Revert "Make neutron the default in devstack"" 2015-02-05 15:31:00 +00:00
Jenkins d7be20853b Merge "Add default for YUM" 2015-02-05 13:40:00 +00:00
Chris Dent 36891dc143 Stop neutron services more explicitly
After an unstack.sh several neutron services are left running. This
change tries to do a better (but not always successful) job of
stopping neutron agents.

stop_process does its own checking to see if a service is enabled
so we don't need to check before calling.

Change-Id: I8becbe9db56121cbc619a6d156b18f6c6d31a6e7
2015-02-05 12:39:13 +00:00
Sean Dague e3e9b226d0 Revert "Make neutron the default in devstack"
The simple case of a single interface doesn't work
out of the box, and this is now failing for lots of 
people. We need to back up and get that working.

This reverts commit c906bb3885.

Change-Id: If20df670e06cda2d65028bceb46d257d011cf917
2015-02-05 12:34:12 +00:00
YAMAMOTO Takashi 1a669dce05 lib/neutron: Update comments about entry points
Change-Id: Iefb8057f71d4a3589cb3f0b18375779dd3896916
2015-02-05 11:54:12 +09:00
Jenkins 8458b458a0 Merge "add event pipeline yaml" 2015-02-05 00:12:50 +00:00
Davanum Srinivas 005b1db5c0 Add Service token to conf in single vm documentation
This is probably the 3rd time i got bitten by this, So
filing a review :)

Change-Id: Icd0834dda9c7ef806eb0fe976de85130e0220781
2015-02-04 23:55:06 +00:00
Jenkins e24729ce28 Merge "Update minimum bash version" 2015-02-04 23:39:49 +00:00
Jenkins da352c7b4b Merge "Ceph: wait for services to shutdown during cleanup" 2015-02-04 22:46:27 +00:00
Dean Troyer d97ee3095e Update minimum bash version
Clarify our position on bash and other shells.

Change-Id: I30e801afa03f8d7235556b0933d0205a30310899
2015-02-04 12:50:35 -06:00
Attila Fazekas 58e694e223 Use the site-wide boto.cfg
The boto.cfg in the TEMPEST_DIR is not read by any tool at the momement,
including tempest and euca2ools.

Adding the ssl setings to the site-wide config file.

Change-Id: Ibeab5671ac81e5092da0ee7ec1ecf867f8555082
2015-02-04 12:45:50 +01:00
Jenkins fdae448a05 Merge "Add param for turning on debug logs on opendaylight's net-virt" 2015-02-04 03:50:39 +00:00
Jenkins fb468cb32e Merge "Refactor lib/neutron rootwrap conf for reuse" 2015-02-04 03:50:29 +00:00
Jenkins 6262152064 Merge "Copy neutron service conf files into NEUTRON_CONF_DIR" 2015-02-04 03:42:50 +00:00
Jenkins 8942585c96 Merge "Fix unbound literal in trueorfalse()" 2015-02-04 03:04:59 +00:00
Jenkins c195b643fe Merge "Increase the suggested minimum ram to 4gb" 2015-02-04 02:00:26 +00:00
Jenkins aad7b99c97 Merge "Workflow documentation is now in infra-manual" 2015-02-04 00:26:39 +00:00
Jenkins 3f55319d6d Merge "Updated supported OS releases listed in stack.sh" 2015-02-04 00:25:37 +00:00
Ian Wienand 36298eec00 Add default for YUM
This allows tools/* to use install_packages, etc, without having to
pull in stackrc for the $YUM definition.  Alternative to
Ief944af1ab177638bf818624a216751821e6330b

Change-Id: I7fe37079240e8cabbdffdcae5ad9d21e122e43c2
2015-02-04 10:29:31 +11:00
Sean M. Collins 1add6fc222 Increase the suggested minimum ram to 4gb
Change-Id: I4f098d731693e635ebcc89357d382674c7730201
2015-02-03 16:25:01 -05:00
Flavio Fernandes 0413d2db8d Add param for turning on debug logs on opendaylight's net-virt
When looking at issues related to opendaylight and openstack, it
helps to bump up the logs on ovsdb and neutron northbound. This
commit introduces a param for doing that:

ODL_NETVIRT_DEBUG_LOGS=True

Change-Id: I109fc61ddc44255de031341fb41bef8db5f0714f
2015-02-03 18:49:07 +00:00
Jeremy Stanley 3eeed23751 Workflow documentation is now in infra-manual
Replace URLs for workflow documentation to appropriate parts of the
OpenStack Project Infrastructure Manual.

Change-Id: Idf519ff362731c106bbd9b63135f8dab4c7b7b92
2015-02-03 18:44:56 +00:00
Doug Wiegley 37da4592c2 Copy neutron service conf files into NEUTRON_CONF_DIR
As part of splitting neutron into pieces, one of the steps was splitting
the various bits of configuration into their respective repos. That just
happened, and this change propagates those config files into /etc/neutron
in the same manner that devstack is using for neutron.conf (and which is
done via setup.cfg, like neutron, for regular package installs.)

Required for neutron review: https://review.openstack.org/#/c/151541/

Change-Id: Ic9aec4401925eca9e1678d84662b96d346a911e3
2015-02-03 10:59:37 -06:00
gordon chung 99f5bcc353 add event pipeline yaml
Ceilometer as added support for an event pipeline to enable
transformations and publishing of events. this patch adds the new
event_pipeline.yaml file

Change-Id: I7018a57e7db3690d72fd7c7d5090e6e61cf73e18
2015-02-03 09:23:39 -05:00
Jenkins 18e0a335b6 Merge "Bump up the count of workers for heat" 2015-02-03 10:11:26 +00:00
Jenkins 02e0d8cfbb Merge "Add q-l3 conntrack dependency for ubuntu" 2015-02-03 10:03:51 +00:00
Jenkins 393acc0a24 Merge "Make neutron the default in devstack" 2015-02-02 20:09:54 +00:00
Jenkins e263aad9c6 Merge "Configure auth_token middleware manually in swift." 2015-02-02 15:44:04 +00:00
Jenkins 5733abbc55 Merge "Fix oslo_messaging package and related object names" 2015-02-02 15:38:21 +00:00
Jenkins a08590dbf2 Merge "XenAPI: Replace remaining instances of 'devstack.succeeded'" 2015-02-02 15:38:12 +00:00
Jenkins 3e3104f899 Merge "Define extra_elements inside disk_image_create_upload" 2015-02-02 15:38:02 +00:00
Jenkins b702750803 Merge "Fix wrong grep regular expression for tap ports" 2015-02-02 15:37:35 +00:00
Jenkins 0121d983e1 Merge "dstat: avoid creating self-referential symlink" 2015-02-02 14:25:51 +00:00
Martin Falatic 5bee0cd4ce Updated supported OS releases listed in stack.sh
Updated the supported OS release versions mentioned in stack.sh to be
consistent with what is listed in doc/source/index.rst

Change-Id: Ie9045927779a063865115e3aff1b92450a104946
Closes-Bug: #1414205
2015-02-01 21:25:30 -08:00
Jenkins e256022a16 Merge "Fixes SCREEN_HARDSTATUS default value" 2015-01-31 00:08:29 +00:00
Maru Newby 952fd90ff1 Refactor lib/neutron rootwrap conf for reuse
This change separates out the creation and permision setting for
the /etc/neutron so that it can be reused by functional test
setup in rootwrap deployment.

Change-Id: Ib2ad5b21630ac82a3d7ffc7b088600b2168f1ecd
2015-01-30 22:27:12 +00:00
Maru Newby c4b871f613 Add q-l3 conntrack dependency for ubuntu
The conntrack binary is included with conntrackd on rpm-based
distros but needs to be explicitly installed on ubuntu.

Change-Id: I615627c85d6aa5a465355c0ea27148f24d863a01
2015-01-30 22:24:30 +00:00
Dean Troyer 490430dbe3 Split functions-common: python functions
Move Python-related functions into inc/python

Should be transparent to all callers as it is sourced from functions-common

Change-Id: I88043830cef9211b4e0baa91bfcc7a92125afa9f
2015-01-30 14:59:48 -06:00
Dean Troyer a1b82cc1b5 Fix unbound literal in trueorfalse()
Change-Id: I4c465819c311604e97d24e081389ff531f8a42fa
2015-01-30 14:59:40 -06:00
Daniel P. Berrange 901dbecd4c dstat: avoid creating self-referential symlink
If the SCREEN_LOGDIR and LOGDIR environment variables point to the
same location, devstack creates a dstat.log which is a symlink
pointing to itself. The second invokation of devstack then fails
trying to reference this broken symlink

Change-Id: I1de2bb7983e7535b41b28f526083a0d77312ff85
2015-01-30 17:03:32 +00:00
Jamie Lennox 38c95b8eba Configure auth_token middleware manually in swift.
Swift doesn't use olso.config and so the method of configuring swift via the
[keystone_authtoken] config options will not work. Go back to configuring swift
manually.

This will need to be fixed in either keystonemiddleware or swift as configuring
via plugin is the path to v3 authentication, service domains and new forms of
service user authentication.

Closes-Bug: #1415795
Change-Id: Ibe27116a11756072d5a300a6d3691c5f8c32317e
2015-01-30 02:18:26 +00:00
Jenkins b9a7d3b5e4 Merge "Revert "Exit after printing error about RPC config"" 2015-01-29 22:56:32 +00:00
Jenkins d84d93d8ae Merge "Init default lvm volume group only if required" 2015-01-29 22:55:50 +00:00
Dean Troyer b43b359506 Create LOGDIR if it doesn't exist
Create LOGDIR when LOGFILE is not set.  This fix is rather blunt
as logging setup will be further tweaked as
https://github.com/openstack/qa-specs/blob/master/specs/devstack/devstack-logging-and-service-names.rst
progresses.

Change-Id: I4a574f295eb6d55c7196ec563bd356d6c0bc8833
2015-01-29 12:05:47 -06:00
Clark Boylan d8267b74ae Revert "Exit after printing error about RPC config"
This reverts commit c1dbf10562.

Reverting because it is valid to run devstack without enabling an rpc
backend. For example when you run devstack on a multinode deployment
compute hosts probably shouldn't run rabbit and instead will just talk
to the rabbit server set up on the controller node. As a result we
should not die when no rpc backends are set.

Change-Id: If9a31e031552f4161d42094fa960221b4d9e893c
2015-01-29 09:26:51 -08:00
Attila Fazekas ec89fa039b Remove --skip-redirect form the tgtd service restart
skip-redirect was intruduced with the first commit related
to cinder support, nobody remembers why was this undocumented option
there those times.

Change-Id: If579a93090392327bce96ddd1b562977edf762de
2015-01-29 11:17:42 +01:00
Jenkins e605b39400 Merge "Configure region name in neutron & ceilometer config files" 2015-01-29 09:24:56 +00:00
Zhenzan Zhou 9a704486a9 Fix wrong grep regular expression for tap ports
The regular expression used in neutron_ovs_base_cleanup omit
prefix in ovs tap ports, so wrong names are returned and used.
E.g. tap devices created for ironic in devstack are brbm-tap1
and ovs-tap1.

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

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

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

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

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

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

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

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

This change removes el6 and py26 support from devstack.

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

Several comment related to el6 also removed or modified.

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

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

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

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

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

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

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

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

Closes-bug: #1413761
Change-Id: Ifbb9ce45694095ff9e30f3ca4c3859a07de8df73
2015-01-22 16:01:11 -08:00
Steve Martinelli bbe771a8d0 Add bash completion for OSC
use openstackclient to generate bash completion script, and move
the file to the right location.

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

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

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

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

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

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

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

   "No database enabled"

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

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

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

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

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

Related-Bug: #1413034

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

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

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

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

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

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

Also uppercase the variables to adhere to the style.

Related: I02aba9ca82c117a1186dafc1d3c07aa04ecd1dde
Change-Id: I76d358f8ebf5145cd3c65f9a470c83d4af67fd32
2015-01-20 11:11:05 -06:00
Jenkins 46d4769f8c Merge "Use os role list instead of os user role list" 2015-01-20 16:10:40 +00:00
Jenkins b73f1c1592 Merge "Remove unneeded word" 2015-01-20 16:10:21 +00:00
Jenkins 0f6122fb3e Merge "[Sahara] Set use_floating_ips=false for nova network" 2015-01-20 15:46:34 +00:00
Jenkins 955f80a7ef Merge "Enforce UTF-8 encoding when creating databases" 2015-01-20 15:44:07 +00:00
Jenkins d4a81a895e Merge "Gracefully add provider network port" 2015-01-20 15:16:02 +00:00
Kevin Benton 59d52f307b Disable shallow cloning with GIT_DEPTH=0
The recent patch to enable shallow cloning added a method to skip
it by checking if GIT_DEPTH was null. However, this could never
be triggered because if the user specified it as null, the default
setting code would take over and set it to 1.

This patch allows the user to specify GIT_DEPTH=0 to skip the
shallow clone.

Change-Id: I00ea7ab54ed51dc3ede9ceb9ff0f11575a035d1c
2015-01-20 09:35:34 -05:00
Jenkins 6d6e471f4c Merge "Clone neutron_lbaas for midonet plugin" 2015-01-20 14:25:03 +00:00
Jenkins 191007479a Merge "Set password irrespective of mysql server version" 2015-01-20 14:24:29 +00:00
Jenkins ff31fc06cb Merge "Adds support for LVM ephemeral storage in Nova" 2015-01-20 14:24:15 +00:00
Jenkins 256b8234a9 Merge "Rename screen logfiles" 2015-01-20 14:24:00 +00:00
JordanP 37b7a665d0 Fix doc: API_RATE_LIMIT has been removed
Ib0538bdd23b17e519b9c917018ccc9fa8c6425c5 removed the option
API_RATE_LIMIT. So don't mention it in the documentation.

Change-Id: I9df67c3dd1b800f6a51de2cd78aeaad10ca38f7e
2015-01-20 14:28:22 +01:00
Kennan 3566310ea8 Remove unneeded word
Change-Id: Ic3f7fb5bc992e1a8c5b9fc433572d7e39f81f08a
2015-01-20 16:23:59 +08:00
Steve Martinelli 789af5ccfa Update osc server create to have type as positional arg
In Keystone, for v2 and v3 service creation, there was a bug that
allowed a service to be created with no type, which made it useless.

See reference bug for details.

Change-Id: I5d095007fe2ebc8219dc012c5b16cb4c122179cd
Related-Bug: #1404073
2015-01-19 16:11:44 -05:00
Steve Martinelli 5541a618de Use os role list instead of os user role list
Since `os user role list` is being deprecated, we should start
migrating to `os role list`, which now has the required ability
to list a users role on a project as of v1.0.2 of osc.

Change-Id: I3fa8bf8f1feaac16e1cde5c55b1be00b92eaa5f6
2015-01-19 15:58:49 -05:00
Daniel Genin d470867f08 Adds support for LVM ephemeral storage in Nova
DevStack currently lacks support for LVM ephemeral storage in Nova.
This support is important for testing of Nova's LVM backend. The
proposed change adds a default volume group, to be shared by Cinder
and Nova. It also adds a configuration option NOVA_BACKEND, which
must be LVM if it is set, that determines whether Nova should be
configured to use LVM ephemeral storage.

Change-Id: I4eb9afff3536fbcd563939f2d325efbb845081bb
2015-01-19 11:51:16 -05:00
Bob Ball 9033343733 Set password irrespective of mysql server version
Ubuntu recently upgraded from 5.1 to 5.5 so the previous debconf
settings no longer work.  Removing the version number should make
the settings work for all versions of mysql

Change-Id: I6b399a06232364d3ba3bf74430b663e0b8b922ed
2015-01-19 13:20:44 +00:00
Jenkins 62002dd88b Merge "clean mysql better" 2015-01-17 22:47:58 +00:00
Jenkins ca5b5485d9 Merge "Make changes such that -o nounset runs" 2015-01-17 17:45:29 +00:00
venkata anil 9b1df57634 neutron should log user_name and project_name by default like in nova
neutron doesn't log user_name and project_name along side req-id in
devstack logs. So, Openstack jenkins neutron check and gate jobs also
not logging user_name and project_name along side req-id.
Without knowing the user and tenant, its hard to understand what the
logs are doing when multiple tenants are using the cloud.

Nova is logging user_name and project_name by default.
So porting the same changes to neutron.

Change-Id: I10eac2e4177a898e9bcc60c08f3bd39a2ec9f31b
Closes-Bug: #1399788
2015-01-17 07:35:31 +00:00
Jenkins c34cb7b5ef Merge "Add a group create function, and a sample group" 2015-01-17 06:03:07 +00:00
Dean Troyer ad5cc986d8 Rename screen logfiles
This renames the log files in logs/screen that contain timestamps to put
the timestamp after '.log' and '.log.summary' in the names.  This will
simplify devstack-gate's search for log files to copy to '*.log'.

dstat.txt is also renamed to dstat.log

Make LOGDIR and LOGFILE local

bp:devstack-logging-and-service-names
Change-Id: I02aba9ca82c117a1186dafc1d3c07aa04ecd1dde
2015-01-16 13:58:25 -06:00
Rob d06a6d9d8b Create initial network when using Cisco N1k plugin
This patch creates an initial network when using the Cisco n1k plugin,
as it fails otherwise.

Change-Id: Ieceac0e2518bf5ca4cd808f6719b73aad0db903b
Closes-Bug: 1399389
2015-01-16 17:35:27 +00:00
Bob Ball 1e3a5d2d6c XenAPI: Use SCREEN_LOGDIR rather than assuming a static value
This value was defined in Citrix's install-devstack-xen script, so
only worked for those using that script.

Change-Id: Iab63389f41760865f2b67f6dccd57d774e889905
2015-01-16 14:50:40 +00:00
Bob Ball 0686dae661 XenAPI: Fix another race condition
Fix it properly this time by forcing a PID from run.sh and using that to track.

A second issue is that upstart may run services twice, introduce a flock test
to ensure that we only run stack.sh once as running in parallel causes issues.

Change-Id: I05990c7154366350b0f9cc3e6c70d6f34238486f
2015-01-16 13:53:47 +00:00
Ryu Ishimoto 5bc957711d Clone neutron_lbaas for midonet plugin
MidoNet plugin needs the 'neutron_lbaas' module available when it
starts up without needing to start the LBaaS service.  After the
advanced service split, however, devstack clones 'neutron_lbaas'
only when the 'lbaas' service is enabled.  To get around this
conflict, clone 'neutron_lbaas' everytime midonet is configured
as the Neutron plugin.

Change-Id: Ide620db383fc44a66a84d00b2365ec2e846469fe
Closes-Bug: 1402242
2015-01-16 12:09:29 +09:00
Jenkins 116f9f826e Merge "Allow specification of ironic callback timeout" 2015-01-16 03:08:15 +00:00
Zhongyue Luo 37026f5366 Avoid VM configuration with Ironic hardware mode.
If "IRONIC_HARDWARE" is True, VMs are not required when using Ironic.

Change-Id: I33ba294f1e2ea583cd4c24c392637a4ee60a39ab
2015-01-16 08:36:08 +08:00
Jenkins 0f4942c784 Merge "Fix TRACKING_DEPENDS mode" 2015-01-16 00:22:15 +00:00
Sean Dague 537532931d Make changes such that -o nounset runs
This makes a bunch of variable cleanups that will let -o nounset
function, for the time being we hide nounset behind another setting
variable so that it's not on by default.

Because this is bash, and things are only executed on demand, this
probably only works in the config it was run in. Expect cleaning up
all the paths to be something that takes quite a while.

This also includes a new set of unit tests around the trueorfalse
function, because my change in how it worked, didn't. Tests are good
m'kay.

Change-Id: I71a896623ea9e1f042a73dc0678ce85acf0dc87d
2015-01-15 13:06:14 -05:00
Jenkins 5f6f43ed9f Merge "log dstat top io" 2015-01-14 19:45:58 +00:00
Steve Martinelli b74e01c34d Add a group create function, and a sample group
Slowly trying to introduce more v3 concepts into a generic
devstack installation.

Work with description of none and description with spaces

Change-Id: I7d2fde58363698ff020f92f129f1ff7378f945a8
2015-01-14 14:37:13 -05:00
Jenkins f3c2eaa183 Merge "delete cinder configuration file before config it" 2015-01-14 18:50:29 +00:00
Jenkins 22fd69e232 Merge "Add 'acl' package to neutron deps" 2015-01-14 18:42:32 +00:00
Sean Dague 8f90f765fa clean mysql better
The purge that was previously removed was actually kind of important
to burning mysql back down to a stateless zero point. Bring this back
with the addition of doing it for mariadb as well.

Change-Id: If608db8731d9ddfb2440a37387409798619b163c
2015-01-14 12:25:14 -05:00
Jenkins 3a94866668 Merge "fix mysql clean on ubuntu" 2015-01-14 15:28:23 +00:00
Zhongyue Luo 56b7efbf93 Gracefully add provider network port
Patch 5ec6f8f1 introduced the provider network support in DevStack. However, this patch
does not include a port clean up routine during ./unstack that openvswitch complains
that the PUBLIC_INTERFACE already exists and exits when you run DevStack multiple times.
Adding --may-exist to ovs add-port command solves this problem.

Change-Id: I89dc560ffb35fccf6ceed2557047adca37054ce7
2015-01-14 06:43:11 +00:00
Ethan Lynn a134f652e5 Configure region name in neutron & ceilometer config files
Because of lacking some options in multi-region env, neutron and
ceilometer can not work after setup a multi-region env using
devstack.
This patch adds related options for multi-region env.

Change-Id: I4de890b233366f9526fa283aa9078a4d6ed0ca23
Closes-Bug: #1409589
2015-01-14 10:38:25 +08:00
Jenkins b31f4cc3e5 Merge "Depreciated pip option PIP_DOWNLOAD_CACHE removal" 2015-01-13 23:05:46 +00:00
Jenkins 07e329875b Merge "Change default nova service name in cinder.conf" 2015-01-13 22:29:31 +00:00
Jenkins 8891fbc998 Merge "wget less verbose" 2015-01-13 21:49:11 +00:00
Jenkins 5734d08174 Merge "Ability to use a remote Ceph cluster" 2015-01-13 18:16:02 +00:00
Moshe Levi d97d2cb017 fix mysql clean on ubuntu
Closes-Bug: 1409902
Change-Id: I72900eb2c7f3c6f66d829b10e9bb73b6d186da98
2015-01-13 15:02:19 +02:00
Attila Fazekas 057d6ae225 wget less verbose
wget is too verbose in devstack logs [1] on image download.

Changing the progress bar style to giga, in order
to be less verbose.

http://logs.openstack.org/73/146573/2/check/
check-tempest-dsvm-full-juno/41ba988/logs/devstacklog.txt.gz#_2015-01-13_11_34_15_330

Change-Id: Ic5304893f4c97c50e7a2f29ad5cd77dba3d5a9dd
2015-01-13 14:01:26 +01:00
Jenkins cc6dbee0a6 Merge "neutron: use config files from neutron-*aas repos" 2015-01-13 12:51:13 +00:00
Sébastien Han 4eb04a5f9e Ability to use a remote Ceph cluster
Sometimes we want to run some benchmarks on virtual machines that will be
backed by a Ceph cluster. The first idea that comes in our mind is to
use devstack to quickly get an OpenStack up and running but what about
the configuration of Devstack with this remote cluster?

Thanks to this commit it's now possible to use an already existing Ceph
cluster. In this case Devstack just needs two things:

* the location of the Ceph config file (by default devstack will look
for /etc/ceph/ceph.conf
* the admin key of the remote ceph cluster (by default devstack will
look for /etc/ceph/ceph.client.admin.keyring)

Devstack will then create the necessary pools, users, keys and will
connect the OpenStack environment as usual. During the unstack phase
every pools, users and keys will be deleted on the remote cluster while
local files and ceph-common package will be removed from the current
Devstack host.

To enable this mode simply add REMOTE_CEPH=True to your localrc file.

Change-Id: I1a4b6fd676d50b6a41a09e7beba9b11f8d1478f7
Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
2015-01-13 09:49:58 +01:00
Radoslaw Smigielski 6ce071b796 Depreciated pip option PIP_DOWNLOAD_CACHE removal
Fix warning:
DEPRECATION: --download-cache has been deprecated and will be removed in the
future. Pip now automatically uses and configures its cache.

1. Since version 6.0 (2014-12-22) pip has deprecated PIP_DOWNLOAD_CACHE
   and now automatically uses and configures its cache.
   Default new location is $HOME/.cache/pip.
2. pip gets upgraded to the latest version in tools/install_pip.sh
   but if pip version<6, exit with error: "Currently installed pip version
   ${pip_version} does not meet meet minimum requirements"

Change-Id: I8b203ffc6d9cf588462d0d65a9703a9941d8fa71
2015-01-13 06:29:31 +00:00
Joe Gordon 0600572392 log dstat top io
We aren't always cpu bound, track top io usage as well.

Change-Id: I3c16b851ebab61ef96a6e3016237a294038561de
2015-01-13 16:36:43 +13:00
Jenkins 3eaa0781e3 Merge "Fix get_packages when $DISTRO is not set" 2015-01-12 17:17:41 +00:00
Jenkins cfadf07465 Merge "Clean database ubuntu/RHEL/SUSE use uninstall_package and clean /var/lib/mysql" 2015-01-12 13:58:04 +00:00
Jenkins 992fbe3c59 Merge "Add support for enabling heat adopt and abandon" 2015-01-12 13:56:16 +00:00
Ihar Hrachyshka 5893cc7c5f neutron: use config files from neutron-*aas repos
Now that we split the neutron repository and have service configuration
files maintained in their own repos, start using them.

The old files are going to be cleaned up from the Neutron tree.

Change-Id: Iaeff0b9de88e9bcca87da1092cc888c4cc1bedfd
2015-01-12 10:48:08 +01:00
Jenkins bd7fd71791 Merge "Remove Fedora 19 as supported distribution" 2015-01-12 05:24:20 +00:00
Jenkins e9431ed6a9 Merge "Fix service start sequence" 2015-01-12 05:22:29 +00:00
Jenkins eef1545298 Merge "Fix matchmaker-redis dependencies for zeromq driver" 2015-01-12 05:22:19 +00:00
Jenkins a41ad4d183 Merge "Fix comments to use 'local.conf' instead of 'localrc'" 2015-01-12 03:39:12 +00:00
Jamie Lennox 78b7726ddd Configure auth_token middleware by auth plugin
As of release 1.3 auth_token middleware can be configured to use any
authentication plugin. This allows us to move to the more generic
password mechanism which will default to using keystone v3 if available.

This will allow in future revisions to move the devstack service users
out of the default domain.

Work will need to be done in heat to remove it's dependency on the
(supposed to be private) keystone_authtoken CONF values.

Change-Id: Ieac26806bd420aa08fc79bbc6a11eb6a1c15c7df
2015-01-12 10:46:49 +10:00
Jenkins 69ef526ac9 Merge "Enroll Ironic nodes /w IRONIC_KEY_FILE" 2015-01-10 03:42:16 +00:00
Andrew Lazarev b31304829f Register heat image in sahara image registry for fake plugin
Fake plugin can work with heat image. Even more, sahara uses heat
to provision instances. So, registering image in sahara image
registry.

Change-Id: Ie498fc05d0afe7f276b6f29f20a61abb58a5c676
Closes-Bug: #1402856
2015-01-09 12:07:08 -08:00
Maru Newby 5ecf46b581 Add 'acl' package to neutron deps
The acl package has been added as a test-only dependency of neutron.
It is used by the functional job in configuring postgres.

Change-Id: Ie28da793237b51cced3bd0a9b35273d9c50472e8
2015-01-09 13:40:12 +00:00
Maru Newby 13519e8a5b Fix get_packages when $DISTRO is not set
Sourcing the tools/install-prereqs.sh script with TOP_DIR set results
in GetDistro being called in get_packages and echoing the result.
Since all output from get_packages is assumed to be package names,
this results in the attempted installation of the non-existant 'Found'
'Distro' and '[distro name]' packages.  This change removes the echo
statement to avoid this problem.

Change-Id: Idd05c31b9eec9e6209666fa16fa425cdf1f35aa2
2015-01-09 13:06:56 +00:00
git-harry afc1423e70 Change default nova service name in cinder.conf
In cinder the config options nova_catalog_info and
nova_catalog_admin_info define values to be matched when searching for
the correct compute service in the catalog.

The commit 5ad15c040fdc115bca9efb1c952279988a2a48b3 in the cinder
project has changed these defaults.

This commit sets the options in cinder.conf to the values set by
devstack.

Change-Id: I2a0b09c34fac5f63a5cdbbe05761a0857f243465
Closes-Bug: #1408734
2015-01-08 17:47:47 +00:00
Shuichiro MAKIGAKI b968b0c36b Fix comments to use 'local.conf' instead of 'localrc'
Instead of 'localrc', 'local.conf' should be used.
Example codes to enable neutron also should follow local.conf syntax.

Change-Id: I4f4c03fdbf0f612e5b518177b29669fb202d9f7a
Closes-Bug: #1407391
2015-01-08 19:12:04 +09:00
Li Ma 26ac3d7ebb Fix service start sequence
1. zmq-receiver should be started in advance
2. when using zeromq driver, nova-compute relies
on nova-conductor's rpc to be initialized

This fix is totally safe and won't influence
on other services.

Change-Id: I9d7b682df4d411af24a1ff6bcad79697e32fa723
Partially-Implements: blueprint zeromq
2015-01-08 07:19:44 +00:00
Li Ma d3ca1418c4 Fix matchmaker-redis dependencies for zeromq driver
Add an option 'ZEROMQ_MATCHMAKER' to indicate which
matchmaker driver to use.

When it indicates 'redis', the dependencies will be
installed.

Change-Id: I910b48347bad0685ea10083a3b0b243524f32095
Partially-Implements: blueprint zeromq
2015-01-08 07:17:58 +00:00
Bharat Kumar Kobagana 441ff07b97 Fixing the problem in loading plugins
This patch fixes the problem in loading the plugins in devstack
by defining the "plugins" variable in "run_plugins" function of
devstack/functions-common file.

Change-Id: I9fb0e24bf1fd282931a8489e0a8ec0c9ea078520
Closes-Bug: 1408571
2015-01-08 12:26:30 +05:30
Jenkins 29e34f7c9f Merge "Actually run all the Cinder cert tests." 2015-01-08 03:00:28 +00:00
Jenkins 8ba4d17e97 Merge "Adding installation Heat package after cloning" 2015-01-08 03:00:22 +00:00
Jenkins 05a12cb0bf Merge "Trove configure authtoken via conf file" 2015-01-08 03:00:13 +00:00
Jenkins da03c9dba5 Merge "uuidgen binary is needed by lib/{neutron,ceph}" 2015-01-08 02:25:06 +00:00
Jenkins 4ebaeb3720 Merge "Customizing tempest configuration for libvirt-lxc" 2015-01-08 01:40:25 +00:00
Adam Gandelman f303d7ed0b Allow specification of ironic callback timeout
We need to be able to adjust Ironic's timeout for a node's deployment
callback.  The default is much longer than Tempest's server build
timeout, causing Ironic deployment issues to be masked by more generic
server timeouts in the tempest logs.  Being able to set this to be
lower than the nova timeout, we'll have Ironic errors that we can
fingerprint.

Change-Id: I7b8eeda504da7ffd64967bbcfa2625acf418f263
Related-bug: #1408067
2015-01-07 16:39:23 -08:00
Jenkins e5cbde3158 Merge "Fix proper oslo.messaging object for zeromq driver" 2015-01-07 23:05:21 +00:00
Jenkins c7acc12ad2 Merge "Clear multi-line sections before adding lines" 2015-01-07 22:32:15 +00:00
Jenkins 9cedfcfda2 Merge "Implement devstack external plugins" 2015-01-07 18:11:07 +00:00
Angus Salkeld 826e450936 Add support for enabling heat adopt and abandon
This is by default disabled, but we need to enable
it to test it in the gate.

Change-Id: I2339ebcaf4bd6308041675bcd35c0b70206e2e5e
2015-01-07 18:04:16 +10:00
Jenkins a6613851ab Merge "Fix wsgi dir cleanup in Keystone" 2015-01-06 23:41:20 +00:00
Sean Dague 2c65e71ab8 Implement devstack external plugins
This is an initial pass at plugin infrastructure for devstack which
allows specifying an external repository via:

enable_plugin <name> <giturl> [branch]

It implements the devstack specification for this at
I173dee3d57967b1d2ffd30e4868a2832aeac97ce

Change-Id: I8e4175313b3cf0b12e981122358b1288a7eb0746
2015-01-06 12:30:25 -05:00
Kashyap Chamarthy 7c9df1017c Remove Fedora 19 as supported distribution
Fedora 19 will reach its end of life on 6-JAN-2015

  https://lists.fedoraproject.org/pipermail/announce/2014-December/003243.html

Remove it as a supported distribution and add Fedora 21

  - stack.sh: Remove Fedora 19 from list of 'supported' distributions.
  - tools/fixup_stuff.sh: Remove Fedora 19. Also remove the workaround
    of disabling firewalld for Fedora 21.

Change-Id: If92b87d2f9a2bb95469730cda201a7981670f727
2015-01-06 11:42:26 +01:00
Nels Nelson 7b47c47308 Customizing tempest configuration for libvirt-lxc
In order to support the continued testing of the libvirt driver
with lxc virtualization, certain compute features must be disabled
including rescue, resize, and suspend.

Change-Id: I52150fef11ba6e3ab2fd0acacaa3c64413c0c0d1
2015-01-05 23:06:05 -06:00
Yalei Wang cecbd1ff6f delete cinder configuration file before config it
Some misleading configuration item will remain if we don't delete the cinder
conf everytime before we configure it.

Change-Id: Iab6a5d7bc5fdcb05b28d24b0419c0bf380a140c1
Closes-bug: #1405301
2015-01-06 12:56:37 +08:00
Doug Wiegley f9512d6459 Initialize neutron service db with neutron
Partially-Implements: blueprint services-split
Change-Id: I407a4bb3c60ab6a491669b4ddd16aee1239808f1
2015-01-05 11:22:04 -07:00
Ihar Hrachyshka 157c84b876 Enforce UTF-8 encoding when creating databases
We use InnoDB everywhere, so there should be no issues with long unicode
keys. Dropped charset parameter for recreate_database since it's not
needed anymore.

Change-Id: Ib768402a9337c918309030a92ab81da17269f4f6
2015-01-05 15:57:23 +01:00
Jenkins 5c0a3cfb71 Merge "Install Juno RDO repos for RHEL7" 2015-01-05 14:30:47 +00:00
Jenkins e754f871cd Merge "Improve firewall recommendations for Neutron documentation" 2015-01-05 14:29:59 +00:00
Donagh McCabe 7faceb67ad Allow swift keystoneauth reseller_prefix in sample file
The reseller_prefix option cannot be added to the
swift-proxy-server.conf-sample file because it
inadvertently gets set to "TEMPAUTH" and Tempest
tests fail.

Change-Id: Ib08d6fa1926531b8966151258eae6771c99c41ca
Closes-Bug: 1404226
2015-01-05 13:58:58 +00:00
Hirofumi Ichihara cc5715531b Fix configure to metadata_agent.ini
Devstack set auth_uri to metadata_agent.ini in _neutron_setup_keystone function.
But Metadata_agent use auth_url not auth_uri.

This is regression caused by https://review.openstack.org/#/c/122882/

Change-Id: Iac8f240558abcdc5bcee3d3c87cef5ad3bb007e8
Closes-bug: #1373859
2015-01-05 15:31:36 +09:00
Jamie Lennox 2de47465bd Trove configure authtoken via conf file
Configure auth_token middleware in trove via the conf file rather than
the paste pipeline. This is the standard and expected mechanism.

Change-Id: Iec6bf74c9321082c35465d332aba7f5fa240cc1a
2015-01-05 10:11:57 +10:00
Steven Dake 3a6b128f3a Improve firewall recommendations for Neutron documentation
The documention does not mention that either ufw or firewalld should be
disabled to operate a devstack+Neutron environment.  This change adds a
description of fault symptoms as well as a simple workaround.

Change-Id: Ie0ec614dfa56febbf6588836d2e1fc057aa8830f
2015-01-02 16:21:55 -07:00
Jenkins 27f0339f86 Merge "Update the default ODL to Helium SR1.1" 2015-01-02 17:11:52 +00:00
Jenkins 1051e39e76 Merge "remove brackets around boolean condition expression" 2015-01-02 17:11:44 +00:00
Jenkins 9103d4390b Merge "Stop installing setuptools from distros" 2014-12-31 16:02:47 +00:00
Sergey Kraynev a38bc5b3c2 Adding installation Heat package after cloning
There are two important reasons for this change:
 - Other OpenStack components contain this code already.
 - Heat store references on client/constraint/version plugins in
   setup.cfg and and stevedore uses these references, so we should
   install Heat after changing this part of code. As example look patch
   https://review.openstack.org/#/c/86978/ for grenade job, where
   heat-engine can not find two constrainsts due to changing their code
   place between releases.

Change-Id: Ic6b1f70ec2d2c06002eb6877a747b7b84213c710
Closes-Bug: #1402985
2014-12-30 09:25:08 +00:00
Zhi Yan Liu 0f52d93d6d Setup notification properly for Zaqar
As we integrated OSprofiler with Zaqar by change
I32565de6c447cd5e95a0ef54a9fbd4e571c2d820 , then service
zaqar-server requires using notification API sends profiling
data to ceilometer, so zaqar needs relevant options to make
it work.

Change-Id: Ib09b241f60dd9961e9366f69cf7fbe8388179f96
Signed-off-by: Zhi Yan Liu <zhiyanl@cn.ibm.com>
2014-12-30 14:37:02 +08:00
Jenkins e9cac494d7 Merge "Add missing space before ] in lib/trove" 2014-12-29 17:13:45 +00:00
gong yong sheng 1eb4c6a375 remove brackets around boolean condition expression
Change-Id: Ia550d4603d9520ddea84a144e5e042903456d96d
Closes-Bug: 1405319
2014-12-29 12:21:51 +08:00
Haomeng, Wang 7b5c4e6797 ironic scripts should support $Q_USE_NAMESPACE
add logic for ironic to support $Q_USE_NAMESPACE, if it is false,
will not call 'ip netns' with network namespace

Change-Id: Idc4dfb49ee478486476973a41b420b9b7e11a4e0
2014-12-28 03:22:24 +00:00
Adam Gandelman 130efefe6c Call sudo /w -H in install_pip.sh as well
We updated other usage of sudo to pass -H when installing pip things,
to avoid creating a .cache directory in $STACK_USER's $HOME that is
owned by root. get-pip.py also ends up creating a ~/.cache, so we
need to update sudo usage there as well.

Closes-bug: #1405626
Related-bug: #1405732

Change-Id: If791b9b25d6a4280dab19117004184e57e78d038
2014-12-27 14:09:07 -08:00
Monty Taylor 18a81a2058 Stop installing setuptools from distros
We go through a bunch of trouble to install setuptools via pip. Having
it in the distro install too is confusing.

Change-Id: I6875fe2a1ee6b7d296f7f44b4b1601794b136440
2014-12-26 09:53:21 -06:00
Jenkins fe2f986816 Merge "Fixes Heat tempest issue due to hardcoded qcow2 extension" 2014-12-24 18:20:57 +00:00
Jenkins 17061f9c3c Merge "Fix redis service restarting for Ceilometer" 2014-12-24 18:20:35 +00:00
Clark Boylan 013f52b015 Always install latest pbr
When not installing pbr from source always install the latest version of
pbr. It turns out that python-pbr is a system package that satisfies
many of our requirements files pbr requirements but breaks under
setuptools 8.0. Fix this by passing the -U flag to pip when installing
pbr so that we install the latest version of pbr always.

Note that we likely need to make this more generic to avoid other system
package leakage when installing packages not from source.

We should also probably bump our pbr requirements across the board to
reflect the new setuptools 8.0 world needs.

Change-Id: I23dd21cea37d26f879aa8d864ee7d371e70221ea
Fixes-bug: 1405318
2014-12-23 17:20:30 -08:00
Ilya Tyaptin fe5164aeef Fix redis service restarting for Ceilometer
In Ubuntu redis service is named as redis-server. So in this
patchset different restarting for this service at different
OSes have been added.

Change-Id: I406e3556c7b9a2bef8277f34862375c5ffd3888e
Closes-bug: #1405147
2014-12-23 14:58:46 +04:00
Jeremy Stanley 6ec66bb3d1 Install prettytable>=0.7 to satisfy pip 6/PEP 440
Also use sudo -H with pip so that it doesn't create a ~stack/.cache
other things can't write to as the stack user later.

Change-Id: I2134c7d8f58f8b83f33150c9ed86d87f8ccba2f3
2014-12-23 01:05:42 +00:00
Gary W. Smith 5840253735 Add missing space before ] in lib/trove
Change-Id: Ic852f642f03124c4a878c92ea8b6b11519c51e59
Fixes-Bug: 1404939
2014-12-22 09:15:08 -08:00
Li Ma ce1524d084 Fix proper oslo.messaging object for zeromq driver
Currently, as almost all the rpc driver of projects
have been switched to oslo.messaging, the object should
be imported via oslo.messaging rather than its own rpc lib.

Change-Id: I9633446e78cb5af21f61a26f6fb365a8ed57a85f
Partially-Implements: blueprint zeromq
Closes-Bug: #1395721
2014-12-21 11:43:36 -08:00
Jenkins e92eee3e26 Merge "Fix typo errors in devstack documentation" 2014-12-20 17:19:38 +00:00
Guillaume Delacour 95d1a43f1f uuidgen binary is needed by lib/{neutron,ceph}
When using unstack.sh script on Debian Wheezy, i saw a failing call on
uuidgen binary:

    $ ./unstack.sh
    /home/stack/devstack/lib/neutron: line 83: uuidgen: command not found
    Site keystone disabled.
    [...]

Change-Id: I47e158abce9d090eb839c6e97d9191dc99ccfe55
2014-12-20 17:10:59 +01:00
Jenkins 59fcbb282b Merge "Comment option to enable Setuptools warnings" 2014-12-19 20:10:48 +00:00
Jenkins 9de03569d1 Merge "Revert "Revert "Revert "Pin version of setuptools"""" 2014-12-19 19:04:15 +00:00
saradpatel 933827ccce Fix typo errors in devstack documentation
This submission fixes typo errors in following files
  1. contributing.rst
  2. exerciserc.rst
  3. faq.rst
  4. local.conf.rst
  5. openrc.rst

Change-Id: I2b2d61673c3c95f60c56978b5a81016603fef252
2014-12-19 12:11:38 +00:00
Peter Pentchev 5107556a79 Actually run all the Cinder cert tests.
Change the tests to run on the tox invocation line, too, not just in
the message logged.

Change-Id: I86e02ea5a5eace92397bc18e08c494c6fd009880
2014-12-19 11:31:43 +02:00
Jenkins 738b92a8ac Merge "Revert "Revert "Pin version of setuptools""" 2014-12-18 23:57:17 +00:00
Jeremy Stanley 9d0d3fb468 Revert "Revert "Revert "Pin version of setuptools"""
This reverts commit 2191f838a7.

Approve once Setuptools 8 is silencing runtime warnings by default,
e.g. via https://github.com/jaraco/setuptools/pull/23 or a similar
patch.

Change-Id: I3c97a4d7810870c9ac058350b362930ce2af713b
2014-12-18 23:15:20 +00:00
Dean Troyer 305c4debde Fix wsgi dir cleanup in Keystone
Change-Id: I8350d2de8602472e5a7d80b490d2c24f43865e19
2014-12-18 17:11:07 -06:00
Jeremy Stanley 2191f838a7 Revert "Revert "Pin version of setuptools""
This reverts commit b7ebc4765a.

We weren't quite ready yet... :/

Change-Id: Idccc4b79a700ca34a80f590e942e1647cdfdefb0
2014-12-18 22:14:04 +00:00
Jenkins c9bd06e03c Merge "Revert "Pin version of setuptools"" 2014-12-18 21:34:37 +00:00
Jeremy Stanley 35b5283a8f Comment option to enable Setuptools warnings
Change-Id: I9fc247ab343c2cea0a8a5b7a3823b5525d6c311f
2014-12-18 17:41:43 +00:00
Jeremy Stanley b7ebc4765a Revert "Pin version of setuptools"
This reverts commit 3b782d304e.

The blockers for setuptools 8 compatibility should all be resolved
now.

Change-Id: I6d2d63746f98f0f885816395f36022a2706fb9c5
2014-12-18 17:09:25 +00:00
Jenkins 7d6df5225b Merge "Fix rabbit_userid for multi node devstack" 2014-12-18 10:47:55 +00:00
Jenkins 7ed4318d15 Merge "Add WSGIPassAuthorization to the admin port too" 2014-12-18 09:47:41 +00:00
Jenkins 56a7477a7e Merge "Don't install sphinx from distro" 2014-12-18 09:47:37 +00:00
Jenkins e26bafba39 Merge "remove $KEYSTONE_TOKEN_HASH_ALGORITHM" 2014-12-18 09:46:53 +00:00
Jenkins 301927e02b Merge "lib/swift : fix misleading typo in a code comment" 2014-12-18 09:46:29 +00:00
Jenkins 3bdc9619f3 Merge "Fix rabbitmq retry for error checking" 2014-12-18 00:57:08 +00:00
Andrew Lazarev 0943e07662 [Sahara] Set use_floating_ips=false for nova network
There is no sense in using floating IPs in case of nova network.
Sahara doesn't support assigning floating IPs from
default_floating_pool. The best solution is to use private network
for management.

Change-Id: I4b3e1d52cab28fe5c8d398ca896216b47b9c4ee0
Closes-Bug: #1403680
2014-12-17 16:09:40 -08:00
Monty Taylor 684e9e9ce2 Don't install sphinx from distro
We don't generate docs in devstack. But also, sphinx depends on babel
which has a hard depend that breaks with setuptools 8. However, pip
installed babel/sphinx should not have this problem.

Change-Id: I84a82e56f6540724d50c6201a68c480ba7645add
2014-12-17 11:48:59 -05:00
JordanP fc0ff92777 lib/swift : fix misleading typo in a code comment
The code comment was picked from lib/keystone but not changed.

Change-Id: Idebe5af84d481d52d529575e666105e4b0e06a59
2014-12-17 12:39:36 +01:00
Jenkins 062e8f1487 Merge "Adds missing rabbit_userid to trove configs" 2014-12-16 22:02:41 +00:00
Joe Gordon f6287c2adb Fix rabbit_userid for multi node devstack
I43a231c9611b4cc2e390b603aa3bfb49c915bdc5 introduced a new setting
RABBIT_USERID but only set it if rabbit is enabled. In multi node
devstack the second node uses RABBIT_USERID but the service rabbit isn't
enabled on it.

Always set RABBIT_USERID, if a different message queue is used the
variable will just be ignored.

Change-Id: I8568bddda2a5c66235ecae23af58983ee94c720a
2014-12-16 13:32:41 -08:00
Kyle Mestery 5c66ff6f20 Update the default ODL to Helium SR1.1
Per a nasty security vulnerability, OpenDaylight has released a security
update for Helium, SR1.1. You can read more about this here [1].

[1] https://lists.opendaylight.org/pipermail/discuss/2014-December/004135.html

Change-Id: I8b9f436b5bf7cabd2d32aaf7388f3f82f9617c3e
2014-12-16 16:50:46 +00:00
Joe Gordon 981ed299ab Fix TRACKING_DEPENDS mode
TRACKING_DEPENDS mode was added in I89677fd54635e82b10ab674ddeb9ffb3f1a755f0

TRACKING_DEPENDS creates a global virtualenv and assumes it exists for
all pip_installs (except for installing virtualenv), so we need to set
this up before any other pip install

Change-Id: Iebe6295913094b32124295e7c5e674e1cebaaa87
2014-12-15 21:13:17 -08:00
Steve Martinelli b57f636ec8 Add WSGIPassAuthorization to the admin port too
Accidentally only added WSGIPassAuthorization to the public port,
like all the other WSGI props, it should be added for both ports.

Change-Id: I4e52e0881df464dfb7b28e22581f462e14e37bdb
2014-12-15 20:55:54 -05:00
Zhang Jinnan fc99426a90 Install Juno RDO repos for RHEL7
RHEL7 does not include Open vSwitch in the default repos, but it
is available via the RDO repo.  This patch automatically
configures the RDO repo for RHEL7.

Move this into the existing rhel6/rhel7 section.  We update RHEl6 to
the latest icehouse release, but it is not supported with Juno

Closes-Bug: #1402390
Change-Id: I4707cf68e39d9e900ec6c01331d7e124c8c4f6c4
2014-12-16 10:42:14 +11:00
Ian Wienand 64b56a53d8 Fix rabbitmq retry for error checking
I think this retry check has been broken since we introduced "set -e".
Unfortunately it seems the issue of rabbitmq not starting first-time
persists on centos 7 hosts occasionally, e.g. [1]:

---
 + rabbit_setuser stackrabbit secretrabbit
 + local user=stackrabbit pass=secretrabbit found= out=
 ++ sudo rabbitmqctl list_users
 Error: unable to connect to node 'rabbit@devstack-centos7-rax-iad-100675': nodedown

 DIAGNOSTICS
 ===========

 nodes in question: ['rabbit@devstack-centos7-rax-iad-100675']

 hosts, their running nodes and ports:
 - devstack-centos7-rax-iad-100675: [{rabbitmqctl29293,39511}]

 current node details:
 - node name: 'rabbitmqctl29293@devstack-centos7-rax-iad-100675'
 - home dir: /var/lib/rabbitmq
 - cookie hash: KieJnx1pnllKbHVihGcDqA==
---

Fix up this retry while we investigate [2]

[1] http://logs.openstack.org/64/141864/1/check//check-tempest-dsvm-centos7/4308f0c/logs/devstacklog.txt.gz
[2] https://bugzilla.redhat.com/show_bug.cgi?id=1144100

Change-Id: I11fb3728e08adc1e0f7acca63e5a308d24dce78e
2014-12-16 10:13:04 +11:00
Sean Dague ef844fd08d remove $KEYSTONE_TOKEN_HASH_ALGORITHM
Now that Keystone is back to UUID token defaults the use case for this
in devstack is extremely dubious, and it can be set through via
local.conf if anyone *really* cares.

Part of bp:devstack-nounset

Change-Id: I644b5b1579952959d253758b2a12b97d8a704657
2014-12-15 16:33:53 -05:00
Alessandro Pilotti f3e75bf979 Fixes Heat tempest issue due to hardcoded qcow2 extension
The orchestration image_ref is set incorrectly if the extension is not
qcow2, as a result tempest cannot find the Glance image and the
associated tests fail.

This patch fixes the issue by handling any extension.

Change-Id: I32ffe021714590a1b1bab232b1d4f5da238bd4d8
Closes-Bug: #1402774
2014-12-15 20:05:19 +02:00
Sean Dague 1cbb5d3f0c Clean database ubuntu/RHEL/SUSE use uninstall_package and clean /var/lib/mysql
Change-Id: I72c9df06903e536320a807fae8b817379e448444
Related-Bug: #1395776
2014-12-15 10:19:42 -05:00
Jenkins 7f80280698 Merge "Add WSGIPassAuthorization to the keystone apache template" 2014-12-15 14:40:48 +00:00
Doug Wiegley 1f65fd64ce Clear multi-line sections before adding lines
With multiline support for local.conf, the first line is created with
iniset, which will set *all* previous lines to the same thing, and then
subsequent lines will be added. Modify the multiline support to first
clear existing lines from the section.

This causes fatal errors with neutron.conf, which defines drivers with a bunch
of service_provider= options, and the current code ends up with the first
driver defined in local.conf being present twice.

Change-Id: If132a94e53545d9134859aa508da7b9819ede2f8
2014-12-14 20:50:00 -07:00
Jenkins affcf87181 Merge "Remove NoVNC from the default enabled services" 2014-12-14 14:42:47 +00:00
Steve Martinelli dc31f76a27 Add WSGIPassAuthorization to the keystone apache template
For the OS-OAUTH1 Keystone extension to fully work under Apache,
the WSGIPassAuthorization parameter must be set to On, rather
than the default of Off. This will make functional testing of
this extension much easier.

Change-Id: I5dcbdd27e7ef7a60fe3c7cb8b9c3c83b4197dfc1
2014-12-13 23:34:15 -05:00
Ruslan Kamaldinov 3b782d304e Pin version of setuptools
Latest release of setuptool 8.0 made several versions used in
requirements.txt of OpenStack projects invalid. Instances:
* SQLAlchemy>=0.8.4,<=0.8.99,>=0.9.7,<=0.9.99 in oslo.db 1.2.0
* python-neutronclient 2.3.9.40.g9ed73c0 in openstackclient

Cap '<8.0' is set as a temporary fix until a better solution
comes up.

Change-Id: I4cfe2e4c86474ec9bf69a3c2007c0277288ea2b6
2014-12-13 23:19:34 +03:00
Sushil Kumar 7bb9a73b8c Adds missing rabbit_userid to trove configs
- rabbit_userid was only updated in trove.conf leaving other
  trove configuration files not having this value.
- Trove service setup was broken because of this.
- Added rabbit_userid to trove-taskmanager.conf,
  trove-conductor.conf and trove-guest.conf.

Change-Id: I60bd160600ec4a02c94ee5e33e4bc91c9f2aa2ed
Closes-Bug: #1402227
2014-12-13 16:34:01 +00:00
Jenkins bfdddebc28 Merge "Change Cinder Cert script to run all Volume tests" 2014-12-13 16:07:31 +00:00
Adam Gandelman d4a6e355ca Enroll Ironic nodes /w IRONIC_KEY_FILE
Do not compose a full path to the ironic ssh keyfile.  Instead,
use IRONIC_KEY_FILE which will be set to the full path to the key.
This is required when IRONIC_KEY_FILE is user-specified, otherwise
we're still enrolling nodes with the default path that is only
used when generating a key.

Change-Id: Icf1ba97becc3e800caf9329a16b79cf106ac3c9a
2014-12-12 16:14:55 -08:00
Jenkins 3e6fe6fd47 Merge "Poll resource tracker for ironic cpus as well as count" 2014-12-12 23:52:48 +00:00
Jenkins 2e4ba6ff57 Merge "XenAPI: Simplify installed packages" 2014-12-12 23:03:24 +00:00
Jenkins d304125a76 Merge "Generate an IPv6 address when PUBLIC_BRIDGE does not have one" 2014-12-12 23:03:21 +00:00
Jenkins 178f9610a4 Merge "Take an optional rabbit user name as input" 2014-12-12 23:03:16 +00:00
Jenkins 60cdf02482 Merge "Delete is_ironic function" 2014-12-12 22:10:06 +00:00
Jenkins bfed4850b7 Merge "Tempest allow_tenant_isolation in auth section" 2014-12-12 17:14:37 +00:00
Bob Ball be485221b3 XenAPI: Simplify installed packages
Remove duplicate packages.
pip is handled by devstack, so don't try and install it here.

Change-Id: I6f22e0f86ae071d30bf69de9ed5dec6b28ebc92b
2014-12-12 13:14:46 +00:00
Zhongyue Luo 31f70b4016 Delete is_ironic function
This function is not used in DevStack anymore.

Change-Id: I4a4430e451094d638704a2da1eb2de7f22f25b84
2014-12-12 15:44:38 +08:00
Jenkins f344758fb4 Merge "Revert "Update used Fedora images to version 21"" 2014-12-12 02:35:52 +00:00
Steve Baker 6d012cf16f Revert "Update used Fedora images to version 21"
This breaks check-heat-dsvm-functional-mysql which assumes the previous glance image name.

This reverts commit 21dbe99334.

Change-Id: I77749f3f9f1a64719447ddd25ee95bc6d3afa5b3
2014-12-12 00:52:59 +00:00
Abhishek Chanda d5b74c688f Take an optional rabbit user name as input
Newer versions of rabbitmq (3.3 and later) do not allow the 'guest'
user to access on non-local interfaces.

- Added a new config RABBIT_USERID which defaults to stackrabbit
- Invoked config scripts using that variable

Adopted from:
https://review.openstack.org/#/c/107779/

Change-Id: I43a231c9611b4cc2e390b603aa3bfb49c915bdc5
Closes-Bug: #1343354
Co-Authored-By: Scott Moser <smoser@ubuntu.com>
2014-12-12 02:20:09 +05:30
Adam Gandelman 0c99e2f65b Poll resource tracker for ironic cpus as well as count
When ironic nodes are enrolled, their resources are not available
to the nova scheduler until after a round of ironic and nova periodic
tasks have run  In addition to waiting for ironic nodes to show up in
the resource tracker, also wait for associated CPU resources.  In
the worst case, this means waiting for 3 total rounds of periodic
tasks.

Change-Id: Idbbc43bf74ff5fff3d50f3494148454bb51e378f
Closes-bug: #1398128
2014-12-11 12:43:00 -08:00
Jenkins 1fc6e18c4a Merge "add the kernel/ramdisk id to driver_info" 2014-12-11 16:16:21 +00:00
Jenkins d35a5dbadf Merge "Use latest version of python-openstackclient" 2014-12-11 16:16:05 +00:00
Jenkins fa2193823d Merge "Update used Fedora images to version 21" 2014-12-11 15:28:45 +00:00
Jenkins 5f953dd1fe Merge "Allow use of dnf instead of yum on Fedora" 2014-12-11 14:26:10 +00:00
Christian Berendt 21dbe99334 Update used Fedora images to version 21
Change-Id: I26a3d7d0842f9d4c5fc33350992a19f597f39b2e
2014-12-11 11:53:24 +11:00
Jenkins d7af0fe7a6 Merge "Update devstack to work with new split neutron services repos" 2014-12-10 23:01:40 +00:00
Dean Troyer 2bfb9af0c9 Remove NoVNC from the default enabled services
Preparing to remove all non-stackforge git repos

Change-Id: I91f628f09fcdfd1aefbc40c9e26be0509eee484d
2014-12-10 16:59:14 -06:00
Daniel P. Berrange 63d25d978b Allow use of dnf instead of yum on Fedora
Since Fedora 20 it has been possible to use 'dnf' as a drop-in
replacement for 'yum', and it is targetted to become the default
in Fedora 22

   http://fedoraproject.org/wiki/Changes/ReplaceYumWithDNF

There are many benefits of 'dnf' over 'yum' but the biggest
from the POV of an openstack developer is its speed.

Assuming an existing running devstack install ie all required
RPMs already installed on the system. Now look at how long it
takes to run stack.sh, during which yum does not have to
actually install anything

 # ./unstack.sh
 # time ./stack.sh
 real 11m12.193s
 user 10m17.129s
 sys  0m15.275s

Now, with 'export YUM=dnf' set in local.conf, run the same
test again

 # ./unstack.sh
 # time ./stack.sh
 real 0m48.610s
 user 0m28.939s
 sys  0m7.801s

So, this is showing that devstack is wasting 10 minutes just
for yum to figure out that everything is already installed.
The overhead of yum vs dnf is even worse when yum has to
acutally depsolve to install new packages.

Change-Id: Ia01a5f330a47b32207586902a861bedfc8a0f6e2
2014-12-11 09:37:55 +11:00
Jenkins d09a1db5a4 Merge "add shebang lines to all lib files" 2014-12-10 20:32:15 +00:00
Sabari Kumar Murugesan 342ac4b774 Use latest version of python-openstackclient
Some options in openstack client like --or-show are available only
from 1.0.0. Adding this 'requirement' explictly as openstackclient
is not as part of requirements of other projects.

Change-Id: I96a98331ece15da869a3ea7af80d16fab2351329
2014-12-10 12:00:52 -08:00
Jenkins 3fe578d41d Merge "Tempest: configure exact set of extensions to test" 2014-12-10 16:33:28 +00:00
Sean Dague e263c82e48 add shebang lines to all lib files
With gerrit 2.8, and the new change screen, this will trigger syntax
highlighting in gerrit. Thus making reviewing code a lot nicer.

Change-Id: Id238748417ffab53e02d59413dba66f61e724383
2014-12-10 11:28:05 -05:00
John Griffith 19d22bd19a Change Cinder Cert script to run all Volume tests
The Cinder Cert script currently only runs the Tempest
tests tagged with volume.api, should be all Volume tests
to make sure we get things like attach and other commands
fully tested.

Change-Id: Ic15d2ad6d3616bfde4838873d0c79664b009ef1f
2014-12-09 21:50:33 -07:00
Jenkins f8cf2777d5 Merge "XenAPI: Add another plugin directory" 2014-12-10 02:41:50 +00:00
Jenkins 099dd6ce8a Merge "Fix variable typo of use_syslog in lib/tempest" 2014-12-10 00:10:26 +00:00
Jenkins 805887e4ee Merge "Add tooz support from Oslo" 2014-12-10 00:02:13 +00:00
Sean M. Collins fc09465508 Generate an IPv6 address when PUBLIC_BRIDGE does not have one
Closes-Bug: #1400823
Change-Id: Ic79fd003aea2af7b258397ec2cdfd70c8568743c
2014-12-09 13:17:48 -07:00
Jenkins 614de25756 Merge "Remove heat_stack_owner role" 2014-12-09 18:56:32 +00:00
Jenkins 49945604fc Merge "Use --or-show for get_or_create_user/project/role function" 2014-12-09 18:34:45 +00:00
Bob Ball f3b49e23b0 XenAPI: Add another plugin directory
Buildroot on 64-bit systems may use /usr/lib64 to store the XAPI plugins
Add this as an option to search for.

The list is getting of acceptable paths is getting longer but some work is going
on in XAPI to allow us to query for this path, which will mean we can get
rid of this list in future.

Change-Id: I79aafb6a86032c7ab04937c9e9bec08661ecdefa
2014-12-09 17:37:03 +00:00
Jenkins 8dab398545 Merge "Fix path to network interfaces configurations" 2014-12-09 17:30:19 +00:00
Jenkins 00111b59d2 Merge "Fixes lib/tempest to accomodate Storage Protocol name with spaces" 2014-12-09 17:24:34 +00:00
Jenkins b23cdf294b Merge "Configure boto.cfg in tempest to point to SSL bundle" 2014-12-09 17:24:30 +00:00
Jenkins ce3ba964ed Merge "Remove TEMPEST_ENABLE_NOVA_XML_API from Tempest config" 2014-12-09 17:21:49 +00:00
Jenkins b8491cd8b9 Merge "Fix the variable substitution" 2014-12-09 17:21:46 +00:00
Jenkins 7411bf2574 Merge "Move ironic ssh key creation early in preparation" 2014-12-09 17:21:41 +00:00
Jenkins c9ccaaa956 Merge "Do not regenerate ironic ssh key if one exists" 2014-12-09 17:15:08 +00:00
Jenkins c29c73c7d1 Merge "Tighten up parsing of neutron tap device for ironic" 2014-12-09 17:14:59 +00:00
Jenkins e7c144649a Merge "Fix tools upload_image.sh utility" 2014-12-09 17:14:55 +00:00
Jenkins a0e811ef75 Merge "remove legacy work around for nova paste.ini" 2014-12-09 17:06:07 +00:00
Salvatore 33e8ee20a4 Tempest: configure exact set of extensions to test
So far devstack configures tempest either for testing all extensions
or a specific subset. It does not allow users for specifying a set
of extensions which should not be exercised.

This patch adds this support. To this aim, the tempest configuration
process will scan API endpoints for active extensions using the
verify_tempest_config.py tool, and then will remove those extensions
which have been explicitly disabled by the user.

If an explicit subset of extensions to enable is passed to devstack,
tempest will use this subset, rather than the list of active
extensions.

Implements blueprint branchless-tempest-extensions

Change-Id: I263bcf04668953f414a4ef18cb98c1c373e142ad
2014-12-09 11:54:02 -05:00
Julien Danjou c187b88e69 Add tooz support from Oslo
Change-Id: I4ccf4bf08e10c0ba651f973aa62562af85ea0f19
2014-12-09 15:41:55 +01:00
Jenkins 5853160c6e Merge "Simplify docs build" 2014-12-09 05:12:16 +00:00
Jenkins 9abe094c1d Merge "Document local.conf settings for ceilometer" 2014-12-08 23:47:24 +00:00
Chris Dent a9c2594442 Document local.conf settings for ceilometer
Describe the various settings that can be made to control the
behavior of Ceilometer. Doing in lib/ceilometer for now. When there
is more something under doc may be warranted.

Change-Id: I9cd47085a5e91bae0a88f6e26f6c8bdc86c02978
2014-12-08 19:35:57 +00:00
Davanum Srinivas 092c124b16 Sort oslo libraries and add missing oslo.context
Ensure both lists of oslo libraries are sorted and
add the missing oslo.context in install_oslo method

Change-Id: I5b849c97b681e65425304e05534a61140e4e1fda
2014-12-08 13:48:25 -05:00
Jenkins 37768a2e56 Merge "Fix typos in the configuration documentation" 2014-12-08 18:17:50 +00:00
Kyle Mestery 6accb136d3 Fix fwaas service plugin location
This was missed during the services split.

Change-Id: I8b51ca2c6ef734bf2747cec48a2f751eb682afe5
2014-12-08 17:35:15 +00:00
Jenkins 53aaf15af3 Merge "Horizon front page test fix" 2014-12-08 14:58:14 +00:00
Kyle Mestery 20b839fd51 Update devstack to work with new split neutron services repos
This commit udpates devstack to work with the latest neutron services, which
are now in their own repositories. This will also unblock third party CI for
services testing. This also allows devstack users to run neutron with
services again.

Change-Id: I9cdd51f09edaccf218988240b48ce733d5771a65
2014-12-08 11:06:43 +00:00
Yuiko Takada b7d5bf6e9d add the kernel/ramdisk id to driver_info
Because bp https://blueprints.launchpad.net/ironic/+spec/add-node-instance-info
has been completed,
add the deploy_kernel_id and deploy_ramdisk_id to ironic node's driver_info
in stead of to flavor.

Change-Id: I90ffae49212e68749b8331edc278228419317453
2014-12-08 13:02:28 +09:00
Steve Martinelli 245daa27da Use --or-show for get_or_create_user/project/role function
Exploit the --or-show functionality of openstackclient,
rather than issuing two different commands at the shell level,
let the CLI handle things.

Change-Id: I1db239fd3473eb580def1c5fb28ce472a1363569
2014-12-07 21:20:38 -05:00
Jenkins 7adfe91ca6 Merge "libvirt plugin "parallels" support" 2014-12-07 18:17:46 +00:00
Jenkins 238f55f749 Merge "Explicitly pass in SLAPPASS when setting up LDAP" 2014-12-07 18:17:38 +00:00
Jenkins 1dc2a20261 Merge "remove nova baremetal driver support" 2014-12-07 18:17:29 +00:00
Jenkins e1cbc05e20 Merge "Adding tempest install to devstack" 2014-12-06 18:26:52 +00:00
Adam Gandelman 0354640587 Move ironic ssh key creation early in preparation
SSH creds should be in place before nodes are enrolled.  If not,
ironic cannot sync power state causing nova to skip nodes in
its resource tracker.

Change-Id: I6b98ae57ce33783f69e2cf9ba357807d384b3012
Closes-bug: #1398128
2014-12-05 16:49:12 -08:00
Emily Hugenbruch fb3ce0bd6b Adding tempest install to devstack
Stack.sh doesn't install tempest, but it would be useful if it did.

Change-Id: I2eba3738342cb4835a992aa1152939a8dc2f74da
2014-12-05 21:10:20 +00:00
Jenkins 55d8f1df95 Merge "VMware: add default image metadata for hw_vif_model" 2014-12-05 13:40:17 +00:00
Sean Dague 2f8e08b572 remove nova baremetal driver support
This has been deleted from the nova tree, we should purge it from
devstack, as it will not work any more.

Change-Id: I20501fec140998b91c9ddfd84b7b10168624430a
2014-12-05 08:31:16 -05:00
Jenkins 129166c2d9 Merge "Fix NOVA_API_VERSION option" 2014-12-05 07:46:58 +00:00
Sabari Kumar Murugesan 88cde0b3da VMware: add default image metadata for hw_vif_model
During glance image-create we are currently setting a null value
for the hw_vif_model, if we are unable to introspect from the vmdk
file.

This patch adds a default value if not found.

Change-Id: I6d0f551b18f03e2a799ae14c3347652a285693f0
2014-12-04 20:33:41 -08:00
Jenkins 2dba66f328 Merge "Rework the old logo" 2014-12-05 00:38:38 +00:00
Adam Gandelman 6c74932bf7 Do not regenerate ironic ssh key if one exists
Gets rid of redundant globals and avoids regenerating an ssh key
for ironic if one exists.  Also allows key file to be user-specified,
letting ironic use pregenerated keys.

Change-Id: Iaa6f8918bf14dae2116269a0be5039fc5afaecfa
2014-12-04 15:38:23 -08:00
Adam Gandelman 9bc3459927 Tighten up parsing of neutron tap device for ironic
The current parsing of the interfaces from the neutron network namespace
fails if there are other things that match 'tap' (ie, gretaps created
for other purposes)  This tightens up the parsing to only match devices
starting 'tap' instead of anything containing 'tap'

Change-Id: I9a31ec8ad253da0b3c5bd7f5eb105c49850f3060
2014-12-04 15:38:23 -08:00
Ken'ichi Ohmichi a883698ca7 Fix NOVA_API_VERSION option
lib/nova checks NOVA_API_VERSION for setting Nova v2.1 API endpoint,
but the name of the initialization is different.
This patch fixes it.

Change-Id: I2fa234d66fe76b2a7146288adc1384b33921e178
2014-12-04 23:08:10 +00:00
Jenkins dead777ea3 Merge "Add NOVA_API_VERSIONS" 2014-12-04 21:47:24 +00:00
Jenkins bc2ded3020 Merge "Enable Zaqar to run in debug mode" 2014-12-04 18:44:00 +00:00
Sean Dague c30d3213f8 remove legacy work around for nova paste.ini
This code goes *way* back and is not needed any more

Change-Id: I23716d88899a7fc18b7d4ccfa12b563d288810b0
2014-12-04 11:04:04 -05:00
Ken'ichi Ohmichi 0f176d8bc2 Add NOVA_API_VERSIONS
This provides a mechanism for overriding v2 endpoint with v2.1 so that
tests can be run against a devstack to provide equivalency between the
APIs.

Change-Id: Iaaa530bda6bcdae75e86be8dbe572abe4396e8e9
2014-12-04 11:04:02 -05:00
Jenkins e750f9c1c6 Merge "Wait for hypervisor-stats to reflect ironic nodes" 2014-12-04 14:03:33 +00:00
Victoria Martinez de la Cruz 5bef3e1633 Enable Zaqar to run in debug mode
Change-Id: Ia751f04119ce1b4c6213be75d087ef24de904498
2014-12-04 10:36:03 -03:00
JordanP 82a7d93929 Fixes lib/tempest to accomodate Storage Protocol name with spaces
Change-Id: Ic711b2bb69f78b10ff6cb48e670df2d35646d8e9
Closes-Bug: #1278835
2014-12-04 14:09:16 +01:00
Gary Kotton ffc1f8d426 Fix tools upload_image.sh utility
The utility would fail due to the fact that the GLANCE_SERVICE_PROTOCOL
was not set.

Change-Id: Iff0b59274fa909895abd70c3a6d1da63dbd70483
Closes-bug: #1396567
2014-12-04 04:59:26 -08:00
Steven Hardy 8b469c1c5e Remove heat_stack_owner role
Since https://review.openstack.org/#/c/128509/ heat no longer requires
the "heat_stack_owner" role by default, as we now delegate all roles
via the trust.  So remove the now unnecessary role creation and assignment
from lib/heat.

Change-Id: Ia097ac9a76b3242ed6e62b11ca64c7ac7680b97c
2014-12-04 10:43:52 +00:00
Steven Hardy bfadd227ec heat remove copy of sample config file
We're moving to a model like nova where we don't maintain a static
sample config, instead providing a readme showing how to generate
it in https://review.openstack.org/#/c/138800/, so this change
is needed before we can land that change.

Change-Id: I335a33646eef72962c9036dcd1de50144d8575c8
2014-12-03 23:15:08 +00:00
Jenkins 47a81c9123 Merge "drop tempest xml variable setting" 2014-12-03 15:57:05 +00:00
Jenkins 5f332766fe Merge "Add support for tuskar-api service" 2014-12-03 15:56:56 +00:00
Jenkins 20132c1aeb Merge "Rename apts to debs" 2014-12-03 15:56:53 +00:00
Jenkins 9955d4bd34 Merge "Use the service catalog when talking to cinder" 2014-12-03 15:56:49 +00:00
Jenkins 327afc9962 Merge "Use new cafile option in nova cinder options" 2014-12-03 15:56:44 +00:00
Jenkins 85eff17436 Merge "Ceph: undefine secret from nova.conf when deleting secret" 2014-12-03 15:47:40 +00:00
Jenkins 3a9770f1aa Merge "Return mysql-server to default for all ubuntu installs" 2014-12-03 15:47:35 +00:00
Jiri Tomasek 6623049ec4 Horizon front page test fix
Fixes the test string in horizon front page test so it is not failing
when header tag gets new attributes

Change-Id: Ibf62bf6f6300eeb0ab2f22086b0ff1c05c69d86b
2014-12-03 11:33:17 +01:00
Ken'ichi Ohmichi 505b96afbe Remove TEMPEST_ENABLE_NOVA_XML_API from Tempest config
I5b3e221d942e09134024b82acaf179dc869357e0 has removed xml_api_v2 from
Tempest config, and xml_api_v2 setting of DevStack is unnecessary now.
This patch removes it.

Change-Id: Ic85fbfda13fd352c4d513859915aaca27e894b58
2014-12-03 02:09:29 +00:00
Adam Gandelman c78e467109 Wait for hypervisor-stats to reflect ironic nodes
When enrolling nodes into Ironic, poll nova's hypervisor-stats until
the hypervisor count reflects the number of enrolled nodes.  This
eliminates a race where devstack completes and an instance is spawned
before the first post-enrollment periodic task ticks on the Nova side,
which has recently started popping up in the gate.

Change-Id: Ib3d8005e0094ee8af2d5fcb65aca6cd92736da90
Closes-bug: #1398128
2014-12-02 12:40:49 -08:00
Masayuki Igawa 5a252d9a0e Fix variable typo of use_syslog in lib/tempest
TEMPEST_CONF is not set but used it. As a result the meaningless file
'DEFAULT' is created. So this commit fixes to use proper variable name.

Closes-bug: #1394969
Change-Id: If6e58f269319df3c4f71b4fc13aa855c63f7e3a3
2014-12-02 20:04:33 +00:00
Juan Antonio Osorio Robles b7c1ce4d0f Fix path to network interfaces configurations
This commit changes the path that is used as reference in the
documentation to one that is widely used in both ubuntu and debian. This
was made in order to avoid confusions (that actually happened while I
was trying out the devstack guide).

Change-Id: Ic3ce40816f79f9f522fc33ed8b4a574d7a57d586
2014-11-28 14:19:19 +02:00
Juan Antonio Osorio Robles fe6dccb0a8 Fix typos in the configuration documentation
Change-Id: I0089c195f4cda313c3b68a7c5c215b9dbff94db2
2014-11-28 13:12:14 +02:00
Sean Dague f10c81869e drop tempest xml variable setting
tempest has dropped xml support, this variable no longer does
anything.

Change-Id: Iab4dbb88f6f01fe301fd54b3ac53995bed1c485a
2014-11-27 07:13:35 -05:00
Jenkins 3b1647310d Merge "Copy nova-api-paste.ini if n-api* is enabled" 2014-11-26 15:42:29 +00:00
Jenkins ca7aa301b2 Merge "Move sgabios setup to hypervisor-ironic" 2014-11-26 15:41:54 +00:00
Evgeny Antyshev 19354585e1 libvirt plugin "parallels" support
We're in the process of establishing the CI testing with
Parallels Cloud Server plugin for libvirt.
Currently we use local clone of devstack in our infrastructure,
but we want to switch to upstream

requires extra customization of nova.conf and glance-api.conf:
nova.conf should have "images_type" and "connection_uri"
defined, and glance-api.conf to have "ploop" in disk formats

Implements: blueprint pcs-support
Change-Id: I0b073359fda8b4531cae7b8946eb52a561c82857
2014-11-26 19:04:28 +04:00
Julie Pichon a3d60c80d9 Explicitly pass in SLAPPASS when setting up LDAP
Change-Id: Ibcceabf2c76aaeeb8902a670557cc0093943a3e4
Closes-Bug: #1373750
2014-11-26 14:36:20 +00:00
Jenkins f4fed56e93 Merge "Update the ODL support to Helium SR1." 2014-11-26 09:05:25 +00:00
Jenkins a726cc08ad Merge "ovs_base: Fix debug-agent config for Q_USE_PROVIDERNET_FOR_PUBLIC=True" 2014-11-26 04:20:05 +00:00
Joe Gordon ea70cc9471 Copy nova-api-paste.ini if n-api* is enabled
In multi node devstack using multi-host nova-networking, n-api-meta runs
on every machine but n-api only runs on the API node. So copy
nova-api-paste.ini if any version of n-api* is running.

Change-Id: I323f39f5080b94e22907a173a1a2bc4a324567b8
2014-11-25 19:16:09 -08:00
Jenkins 8fcccca9be Merge "IPA Ramdisk should log to console in devstack" 2014-11-26 02:18:57 +00:00
Adam Gandelman 9eb8177eb7 Move sgabios setup to hypervisor-ironic
This moves setup of sgabios ROM to the ironic hypervisor library.
This is failing to backport to juno because of an error in the sideways ironic
grenade. install_ironic() is expected to setup only python things and happens
earlier than initial package installation.

Fixes-bug: #1396352
Change-Id: I75f0052045143571619e6712d57014228abf7a20
2014-11-25 22:22:36 +00:00
Jenkins e50db39baa Merge "Install bash completion for glanceclient" 2014-11-25 21:01:45 +00:00
Jenkins 86ef60e688 Merge "switch to use ceilometer specific connections" 2014-11-25 20:53:10 +00:00
Eric Harney b01fb940c9 Ceph: undefine secret from nova.conf when deleting secret
At teardown time we delete the libvirt secret but leave
nova.conf referencing the stale UUID.  Remove it to make
debugging and repeated runs less error-prone.

Additionally, only try to delete secret if it Cinder is
enabled (causing it to be defined when deploying devstack).

Change-Id: Id5e1290b8dcfd79238f02e31084ab12c3d6aed5f
2014-11-25 08:33:32 -05:00
Jenkins 979d50fab0 Merge "Restore linuxbridge-agent compatibility" 2014-11-25 10:11:49 +00:00
Jenkins f5197f1e4c Merge "Enable admin mode by default" 2014-11-25 10:03:22 +00:00
Kyle Mestery ff8de0c707 Update the ODL support to Helium SR1.
This commit updates the default ODL package to be tested with to the
first stable release of Helium. Critically, this includes ODL fixes
for some IPV6 issues.

Change-Id: I4eaa52a8baffdcc3a5e74cabca2f9cd7ea4ec237
2014-11-25 02:31:04 +00:00
Jamie Lennox d7af484338 Use the service catalog when talking to cinder
The cinder endpoints should be correctly established in the service
catalog. There is no reason to provide an overriding endpoint_template.

Change-Id: I9b206fa22a8271a0fb65789d139ead35dfb1ea0d
2014-11-25 12:10:07 +10:00
Jamie Lennox 55c7ebbdba Use new cafile option in nova cinder options
ca_certificate_file is deprecated in favour of using the standard
options from keystoneclient session.

Change-Id: I611da719fb3a95d0a9c2f6ad43e2c083ea7d6862
2014-11-25 12:09:58 +10:00
Jenkins db3225c126 Merge "Documentation: Using Neutron with DevStack" 2014-11-24 22:22:48 +00:00
Jay Faulkner 7f8a27da52 IPA Ramdisk should log to console in devstack
Setting these kernel command line parameters will have journald log
everything to the console, which means it'll end up in the appropriate
log in the ironic-bm-logs/ directory.

Change-Id: I0f4c79436c4856a5aa72f00f1ac8c2ed534b702e
2014-11-24 11:20:46 -08:00
pcrews 6de7dba863 Return mysql-server to default for all ubuntu installs
Change: I97cbede806e5c00363c7174fa1e9f286de96aab6 altered
the logic in lib/databases/mysql from installing mariadb only if
one was using rhel7 to installing it by default unless one was using
rhel6.

Change: Iae9a7a1c09f1fc83573c3926b3470955c244c401
Attempted to fix this, but only does so for precise.

Unless mariadb has become the default, I strongly prefer to keep
standard mysql as the database on ubuntu (precise or otherwise).

Closes-Bug: 1395776

Change-Id: I3afb89ae6d55405313b7219dd6daa24d9ca80f70
2014-11-24 08:04:39 -08:00
Flavio Percoco b64738f1c9 Enable admin mode by default
Zaqar has an admin mode which enables certain endpoints. This mode
should be enabled by default in devstack so that tests environments can
rely on those endpoints to be present.

Change-Id: Ic50875f4515bb631a6bf800c9338d3b6bbeaafae
2014-11-24 16:44:50 +01:00
Monty Taylor 81a016dbcd Rename apts to debs
apts aren't a thing, debs are. apt-get installs debs, like yum installs
rpms. Another option would be to rename rpms to yums, but that is even
sillier, considering then for suse we'd have to call it "zypper-suse" or
something, even though it would want to consume yums-general as a base.

Include a symlink to the old name to help out with grenade. The symlink
should go away later.

This is a long-standing annoyance of mine.

Related-to: I915f0e59c13d8cf5fb3549c6202f8aa2f8be0856
Change-Id: I0416180db5b6add996ce5b48c6966c1b68adbcb0
2014-11-24 09:51:17 -05:00
Jenkins 59bfc08489 Merge "Set libvirt live_migration_uri" 2014-11-23 19:27:00 +00:00
mathieu-rohon 50187eec28 Restore linuxbridge-agent compatibility
This patch partially reverts commit
15130cd5fd.

This commit was desupporting ovs and linuxbridge plugins.
But the ML2 plugin can be deployed with the linuxbridge agent.

The current patch restores the linuxbridge agent configuration
file.

Closes-Bug: #1393429

Change-Id: If824185b22e22a1de6498f1f0f2742a279235675
2014-11-21 22:31:52 +01:00
Jenkins 08ea7d16a8 Merge "add unit tests for GIT* definitions" 2014-11-21 18:14:55 +00:00
Jenkins 10dc2da5db Merge "fix tempest-lib setup" 2014-11-21 15:17:28 +00:00
Jenkins 74a8ccf3b4 Merge "Remove unused and deprecated SWIFT_CONFIG_DIR variable" 2014-11-21 03:24:30 +00:00
Dean Troyer af14029553 Rework the old logo
* Re-work the old banner logo for the Sphinx docs
* Remove the remaining leftover assets from the old web site

So this is one possibility, I retained the other logo files so we have
options to play with.

Change-Id: Iac15899780072450dc30600a719283c0e2b0c0ae
2014-11-20 21:22:00 -06:00
Jenkins 15ab23b565 Merge "Remove neutron ryu-plugin support" 2014-11-21 03:08:35 +00:00
Rob Crittenden 90c2020908 Configure boto.cfg in tempest to point to SSL bundle
The boto client uses the ca_certificate_files value in the
Boto section of /etc/boto.cfg when making an SSL client
connection. Configure that to be the devstack SSL CA bundle
so the boto tests will pass when running against an SSL or
TLS-proxy configured devstack environment.

Change-Id: I55ae6d6e0c5b3adb4370ec93f40ae1cd47741457
2014-11-20 21:42:40 -05:00
YAMAMOTO Takashi 98a0ad4472 ovs_base: Fix debug-agent config for Q_USE_PROVIDERNET_FOR_PUBLIC=True
Set up external_network_bridge correctly for the case
of Q_USE_PROVIDERNET_FOR_PUBLIC=True.

This is an oversight in commit 6a633fd024.

Closes-Bug: #1394826
Change-Id: I33f0fe15bafb7071d8a09899d636471f49031606
2014-11-21 11:27:53 +09:00
Adam Gandelman a1ffcfab47 Set libvirt live_migration_uri
Sets up n-cpu to migrate domains via SSH.  By default, hosts attempt
to connect to each other as root, so this specifies STACK_USER instead.

Change-Id: Ic6e868091c89a2cc6b2f0fada3f7e95002aaff8b
2014-11-20 16:42:32 -08:00
Sean Dague 86b65dd77b fix tempest-lib setup
The setup should have been with setup_dev_lib, which looks up the path
from GITDIR. This should let tempest-lib src jobs function.

Change-Id: Ia160708c089adce469d878030196b6fed8acc92d
2014-11-20 17:23:04 -05:00
Jenkins b103e1abd8 Merge "Add IPv6 support for tenant data network" 2014-11-20 20:09:43 +00:00
JordanP a6dfe81998 Remove unused and deprecated SWIFT_CONFIG_DIR variable
Change-Id: Id9b9f2300288b98e4952ef8da6732232a683338d
2014-11-20 18:06:23 +01:00
Sean M. Collins 3429601663 Documentation: Using Neutron with DevStack
Change-Id: I75f30a6809a6276dbd8a61e73535913be63b54f0
2014-11-20 11:31:38 -05:00
Sean Dague aecd189f80 add unit tests for GIT* definitions
This adds unit tests for all the GIT* definitions, ensuring that for
libraries we think should be defined, they are. It exposed a bug in
glance_store definitions in the process.

The GITDIR definition for python-openstackclient is moved to stackrc
for testability.

Change-Id: Ibd9ab665f0362a84f4f7e80e80da56a4737f584e
2014-11-20 08:32:26 -05:00
Louis Taylor 8df690c525 Install bash completion for glanceclient
This installs the new bash-complete file in the standard location,
alongside the rest of the completion files:

    /etc/bash_completion.d/glance.bash_completion

Change-Id: I2944c47d857f7125f370b2b1ee041d1282db09c5
2014-11-20 13:16:46 +00:00
Jenkins 576aaae6f7 Merge "use a more common rst header hiearchy" 2014-11-20 01:45:06 +00:00
Jenkins 70f0a77567 Merge "Ensure syslog option is honored by neutron and tempest" 2014-11-19 23:34:21 +00:00
Jenkins 63743fff93 Merge "Add agent_ipmitool support" 2014-11-19 23:32:07 +00:00
gordon chung 48bbfe93f5 switch to use ceilometer specific connections
in Juno/Kilo, we added ceilometer purpose specific connections for:
metering, alarms, event. Rather than piggyback off oslo.db's
connection option (which gives misleading sql help message), we
should use Ceilometer specific connections.

Change-Id: I7703b73708a5807fb8de89fbb828f06b488acf69
2014-11-19 15:57:45 -05:00
Jenkins 2d7f196277 Merge "lib/dstat: Include page stats" 2014-11-19 13:20:33 +00:00
Jenkins aa29090fe2 Merge "add LIBS_FROM_GIT to docs" 2014-11-19 11:49:35 +00:00
Oleg Gashev 9d09f09802 Remove is_rackspace function from functions-common
is_rackspace function never used and can be removed from code.

Change-Id: Ic5d1dc419bdea3619fe248afad027e7d7c602b4f
Closes-Bug: #1394076
2014-11-19 00:29:03 -05:00
Jenkins dcffc70b67 Merge "Fixed conditions to determine if current distribution is a Fedora based distribution" 2014-11-19 05:28:35 +00:00
Jenkins 5477b082f8 Merge "Deal with different django-admin executables" 2014-11-19 05:28:26 +00:00
Jenkins 2dab788c85 Merge "Remove hardcoded protocol from backup_swift_url" 2014-11-19 05:28:18 +00:00
Jenkins a74ae5d713 Merge "Use mysql in Ubuntu 12.04 (precise)" 2014-11-19 03:04:30 +00:00
Jenkins 6a622889be Merge "Do not hardcode ironic svc port, protocol" 2014-11-19 00:59:21 +00:00
salvatore e4e535b0bf Ensure syslog option is honored by neutron and tempest
Syslog settings were not configured at all for these two
projects. As a result, regardless of the value of the
SYSLOG environment variable, the use_syslog options for
these two projects was always set to False.

Change-Id: Iba6155d62beffa06e5bb9ac16b06082ec64d0926
Closes-Bug: #1394024
2014-11-19 01:39:00 +01:00
Jenkins 3f054b48d4 Merge "Add oslo.context" 2014-11-18 23:24:03 +00:00
yunhong jiang fe96ed66f5 Add agent_ipmitool support
This patch enables to use the agent_ipmitool deploy driver to
deploy the ironic on real hardware, instead of virtual machine.

It also append the deploy driver name to the kernel/ramdisk
path, so that if developer switch the deploy driver after
./unstack.sh, devstack will use the correct kernel/ramdisk.

Change-Id: Iac0415f6895d037c876e137aa4f2bf2990eb47c5
2014-11-18 15:36:18 -07:00
Mikhail S Medvedev 088e66028c Deal with different django-admin executables
After the recent patch [1] the devstack is broken for Fedora 20 with
the error "django-admin.py: command not found" during horizon setup.

This is due to differences in how django currently packaged for Fedora,
where we should use "django-admin", without the .py

This patch sets up executable alias by checking if "django-admin"
exists, and falling back on "django-admin.py".

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

Change-Id: I2b6de25fe32446edbdc0418674fea8579ec739d9
2014-11-18 16:35:12 -06:00
Jenkins 99225de8cf Merge "make run_tests.sh run devstack unit tests" 2014-11-18 21:37:04 +00:00
Sébastien Han 849d0b8ebb Fix the variable substitution
Prior to that commit if ceph_version was equal to 0.80.5, the variable
substitution ${ceph_version%.*} was returning 0.80 and not 0. Using
${ceph_version%%.*} returns the desired value.
Also refactoring the version output to get a X.X format since only
major and minor are important.

Change-Id: Iab50f3c4b24a01a68acda417eae0501f00038f54
Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
2014-11-18 13:04:12 -08:00
Jenkins da7b77e166 Merge "fixes cleaning up of ironic directory from /etc" 2014-11-18 20:30:40 +00:00
Jenkins 51c20e7361 Merge "apparently the upstream naming is tempest-lib" 2014-11-18 20:26:59 +00:00
Adam Gandelman 4b45fca7bb Do not hardcode ironic svc port, protocol
The Ironic API server's port and protocol are hardcoded in various
places.  This updates the ironic bits to use configured values instead
and fixes a bug around iptables rule creationl.

Change-Id: I1ace68affff3afdbc0058be4d32f8044a24e9338
Closes-bug: #1393498
2014-11-18 11:57:20 -08:00
Jenkins db0fa80c59 Merge "Remove rackspace/centos7 work-around" 2014-11-18 19:24:08 +00:00
Steven Hardy d591a25e42 Add support for tuskar-api service
Adds initial support for configuring and starting the tuskar-api
service.

To enable, add the following to your localrc:

enable_service tuskar
enable_service tuskar-api

The aim of this addition is to provide a more accessible (non devtest)
way for developers to run up tuskar in a familiar devstack environment.

See the official repos for more information:
https://github.com/openstack/tuskar/
https://github.com/openstack/python-tuskarclient

Change-Id: Id0c3c0d3a38100c66dbe6e3adf1f715162f99742
2014-11-18 18:28:58 +00:00
Jenkins dd69403ff4 Merge "Add Ironic hardware deployment support" 2014-11-18 17:09:27 +00:00
Jenkins 8012a9654c Merge "Add TEMPEST_ENABLE_NOVA_XML_API option" 2014-11-18 17:02:16 +00:00
Jenkins 9b4b2913f9 Merge "Log early boot of Ironic VMs to serial with sgabios" 2014-11-18 15:21:36 +00:00
Sean Dague 91b229058c apparently the upstream naming is tempest-lib
tempest_lib was how this was generally referred to, however that meant
that the job naming wasn't specifying the correctly src
library. Change to tempest-lib to actually test these things before
release.

Change-Id: I4c0712156d7ff71ee43747f30ab940e249d12ebc
2014-11-18 07:13:35 -05:00
Sean Dague 3293046d30 use a more common rst header hiearchy
While rst doesn't actually care about the order of headers, reviewers
sometimes do. And the build in emacs mode has a certain order
specified that it can easily rotate between.

Standardize on == h1, = h2, - h3, ~ h4 in the code.

Change-Id: I80ff6df6ef0703a3c3005809069428018bb355d4
2014-11-18 06:51:16 -05:00
Sean Dague 07d7e5b1f9 add LIBS_FROM_GIT to docs
Also reformat common configuration variables to have an additional
header level which makes it easy to direct link to specific
configuration vars when directing someone.

Reformat header markup to us a more standard == = - for h1, h2, h3

Change-Id: I10bac5a93529cdfbcde0a05f9ebdbc1799d403cd
2014-11-18 06:44:20 -05:00
Sean Dague 9f20ea1382 make run_tests.sh run devstack unit tests
run_tests.sh was created as an entry point for bashate. We stopped
using it now that we know how to run bashate directly in the gate. 
We lost running an unrelated bashate test when that happened.

Devstack does have unit tests. We don't run them. We should. 
Especially when working on things like the LIBS_FROM_GIT which is
sufficiently tricky that we really need to add unit tests to ensure
that we don't break it.

Change-Id: Ife067855569e2eae4c085471d326e8086de37332
2014-11-18 11:33:47 +00:00
Jenkins 5e3e8610aa Merge "Moving horizon compression offline" 2014-11-18 11:12:48 +00:00
Oleg Gashev 1f26c0ef61 Fixed conditions to determine if current distribution is a Fedora based distribution
stack.sh line 223:
if [[ is_fedora && $DISTRO == "rhel6" ]]; then

stack.sh line 234:
if [[ is_fedora && ( $DISTRO == "rhel6" || $DISTRO == "rhel7" ) ]]; then

stack.sh line 358:
if [[ is_fedora && $DISTRO == "rhel6" ]]; then

Condition [[ is_fedora && $DISTRO == "rhel6" ]] return wrong result.
This condition is equivalent to the
[[ -n is_fedora && $DISTRO == "rhel6" ]]. First expression -n is_fedora
always not null, therefore this condition the same is
[[ $DISTRO = "rhel6" ]].

Change-Id: Ida9eaa7950554bcd2f183dede7ad19522f9ca558
Closes-Bug: #1393684
2014-11-18 02:16:01 -05:00
Jenkins e883ad228c Merge "lib/dstat: Fix a comment" 2014-11-18 05:56:30 +00:00
lokesh 683ed9eeb2 fixes cleaning up of ironic directory from /etc
Closes-Bug: 1391083

Change-Id: Ic47161ab375716cc39ee1a7dd57034782717e323
2014-11-18 10:42:54 +05:30
Akihiro Motoki 8f003ef9bf Use mysql in Ubuntu 12.04 (precise)
After commit 6d20f090, devstack does not work on Ubuntu 12.04
because Ubuntu 12.04 does not provide mariadb but devstack expects it.

Change-Id: Iae9a7a1c09f1fc83573c3926b3470955c244c401
2014-11-18 13:41:58 +09:00
David Lyle 45ce98275c Moving horizon compression offline
Making the horizon scss compilation and compression happen offline.
Potentially fixing an issue with parallel compression in devstack.

Related-Bug: #1345955
Change-Id: I066c80e06a92302a3f8dc5fd45d127fbde6cf99c
2014-11-18 15:07:10 +11:00
YAMAMOTO Takashi 44f4e205aa lib/dstat: Include page stats
Add -g option for dstat.

From the man page:

       -g, --page
              enable page stats (page in, page out)

Change-Id: I865304483af0a529ea8722ed0a9f35ab350670d2
2014-11-18 13:03:08 +09:00
YAMAMOTO Takashi 42373c7bfe lib/dstat: Fix a comment
Apparently this file was copied from lib/apache.

Change-Id: Ie89d423ca225c697122820a1d9e859769aea9f86
2014-11-18 12:30:58 +09:00
Davanum Srinivas 958111e188 Add oslo.context
Treat the new oslo.context library just like the other Oslo
libraries. i.e. make it possible to either test with upstream
released library, or with git versions of oslo.context.

Change-Id: I2dc498324d6c405655a8e2e249465c5b351ca960
2014-11-17 17:35:44 -05:00
Adam Gandelman ffd66ad77f Log early boot of Ironic VMs to serial with sgabios
This adds sgabios to the list of packages for Ironic and configures
the libvirt domain to redirect BIOS messages to serial via sgabios,
when console logging is enabled.  The sgabios package in Ubuntu
currently has an apparmor bug, so that is worked around here.

This allows visibility into early boot of Ironic nodes and should
help get to the bottom of a frequent failure we're seeing in the gate.

Change-Id: Ifd18851e2d23d198d36e67883a81afc6a92d2a58
Related-Bug: #1393099
2014-11-17 12:32:27 -08:00
Dean Troyer b3fdb1c935 Simplify docs build
Remove unnecessary old code from tools/build_docs.sh; it now only builds
docs for the current branch in the current working directory.

Fix the merging if the git log changes into changes.html.

Change-Id: I965dc3383b6317807ca0d47fe42648a19e96b57b
2014-11-17 12:45:12 -06:00
John Davidge 21529a50e3 Add IPv6 support for tenant data network
Define IP_VERSION with one of the three values 4, 6, or 4+6 in
your localrc to indicate if you intend to run your tenant data network
as either IPv4, IPv6, or dual stack respectively. Default value is 4.

If your IP_VERSION is set to 6 or 4+6, then the following variables
should be defined in your localrc:
  - FIXED_RANGE_V6: The IPv6 prefix for your tenant network
  - IPV6_PRIVATE_NETWORK_GATEWAY: The gateway IP with the same prefix
  - IPV6_RA_MODE (with default as slaac)
  - IPV6_ADDRESS_MODE (with default as slaac)

If you're going to use IPV6_RA_MODE/IPV6_ADDRESS_MODE settings other
than the defaults then you should make sure your VM image has dhcpv6
client enabled at bootup, otherwise you'll need to run it manually
after the VM is booted.

It's recommended to run the latest version of dnsmasq 2.68.
If you intend to enable internet access in your VM, make sure
your network node has IPv6 internet access, and the IPv6 prefix for
your tenant network is a GUA and routable.

Implements: blueprint ipv6-support
Change-Id: I848abf18e00e2a869697c5ef6366bc567dde448a
Co-Authored-By: John Davidge <jodavidg@cisco.com>
2014-11-17 05:16:07 -08:00
Rob Crittenden 7d0a0f7d48 Remove hardcoded protocol from backup_swift_url
Use SWIFT_SERVICE_PROTOCOL when configuring backup_swift_url for
cinder configuration.

Change-Id: I09de62e8deca86b473cee969ba2c5919d4f9892d
Closes-Bug: #1393554
2014-11-17 00:03:47 -05:00
Ken'ichi Ohmichi dc73d39a30 Add TEMPEST_ENABLE_NOVA_XML_API option
XML support of Nova API has been deprecated with the following
message:
  XML support has been deprecated and may be removed as early
  as the Juno release.
Now Kilo development cycle started, so we should disable Nova
API XML tests on Tempest.

This patch adds TEMPEST_ENABLE_NOVA_XML_API option for setting
Tempest test by devstack-gate. The default value is True because
of keeping the test coverage. After merging a devstack-gate patch
which specifes True for stable/icehouse and stable/juno, we will
set False for the master blanch.

I4acc15ce5f487738bb34a95c2261a5d05d827d8d is a Nova patch which
removes XML API support.

Change-Id: I2ab8f5c3d15b496e0b639c99bb8592533a69a265
2014-11-17 04:04:32 +00:00
Monty Taylor 0eed532ce3 Remove nose things
We don't use nose anywhere in anything related to devstack. The only
legitimate OpenStack things that are still nose are horizon and swift
unittests, and it turns out we don't really run those in devstack.

Change-Id: I215e0f3664f269e0e1b8f5d5f9c70553dededddd
2014-11-17 11:10:16 +11:00
Ian Wienand 6a41ba20e7 Remove rackspace/centos7 work-around
The current centos 7 images from rackspace do not have cloud-init
installed via pip, so this is no longer needed.  This work around is
actually a little wrong too, see the bug.

Change-Id: I6642593ca2248d9e01f653cc8e70c70ba8372e50
Partial-bug: #1393073
2014-11-17 10:46:56 +11:00
Jenkins 9bfdea87a6 Merge "Pass through the rest of the docs" 2014-11-16 20:38:45 +00:00
Jenkins e260a1050d Merge "One last format and content cleanup for the index page" 2014-11-16 20:38:37 +00:00
Jenkins 4c6ceb56cf Merge "Initial support for Fedora 21" 2014-11-16 17:32:18 +00:00
Jenkins b76746333d Merge "move keystonemiddleware to pypi libs" 2014-11-16 14:59:06 +00:00
Jenkins af05a2d4e7 Merge "support installing django_openstack_auth from pypi" 2014-11-16 14:58:57 +00:00
Jenkins 42fbce5641 Merge "Fix a typo of python-cinderclient GITBRANCH" 2014-11-14 20:10:52 +00:00
Jenkins d2efd246ac Merge "Add 'net-tools' package dependency" 2014-11-14 17:38:37 +00:00
Sean Dague 658312ca2f move keystonemiddleware to pypi libs
Make keystonemiddleware install from pypi releases by default

Change-Id: I3dc4b096b4184f4cf00fb0df66b76fcc8f19785b
2014-11-14 11:36:45 -05:00
Sean Dague 3c8973a90a support installing django_openstack_auth from pypi
Part of the libs from pypi conversion, convert django_openstack_auth
to this format.

Change-Id: I97c8ea19d8aed1e0bdd62c06cfadd1d616573d76
2014-11-14 10:40:46 -05:00
Chris Dent 425e8447f1 Fix a typo of python-cinderclient GITBRANCH
A left out N. Causes various failures in shell evaluation.

Change-Id: Icc09998c645ef2b975cb24b56d0f71c60289c188
2014-11-14 11:10:30 +00:00
yunhong jiang ae9ee6bf97 Add Ironic hardware deployment support
Currently devstack create VMs and then deploy Ironic on these VMs.
Sometimes developer may want to deploy on real platform.

A separated file is required to provide the baremetal compute node
information, which includes four fields for each hardware platform,
the ipmi address, the mac address, the ipmi user name and the
password.

Change-Id: I422b43eae6edc95f15b8c40383d0ba7fbcd9b1ff
2014-11-14 04:04:35 -07:00
Jenkins c98ae29aa9 Merge "further pypi libs conversions" 2014-11-14 11:01:00 +00:00
Jenkins a3794a3418 Merge "fix python-* lib from git installation" 2014-11-14 04:31:19 +00:00
Jenkins d4732d76fc Merge "Allow installing tempest only with keystone" 2014-11-14 03:17:19 +00:00
Sean Dague ee5ae7b923 further pypi libs conversions
glance_store and saharaclient were missed in the last round, make
them install from released clients in this patch.

Change-Id: I2e0ed2b7fb5994ae6abd92612a67ce5fd82b3f7e
2014-11-13 17:17:45 -05:00
Sean Dague e08ab104e6 fix python-* lib from git installation
We're using all the magic variables based on python-fooclient, however
all the inline code was using fooclient for variables. So we had a
mismatch, which was kindly pointed out by some of the 3rd party ci
testers.

Change-Id: I27a56222c7e8e610fba8bf97672d2a42f5cf14ca
2014-11-13 17:17:38 -05:00
Jenkins 94f8bea9e4 Merge "Devstack Nuage Plugin correct the ovs_bridge parameter" 2014-11-13 16:55:38 +00:00
Kashyap Chamarthy 91e4018afd Add 'net-tools' package dependency
Noticed this on a freshly installed, minimal Fedora-21 (from
development repos):

  $ ./stack.sh
  [. . .]
  2014-11-13 10:56:22.442 | + local exitcode=0
  2014-11-13 10:56:22.453 | + sudo route add -net 10.1.0.0/24 gw 172.24.4.2
  2014-11-13 10:56:22.479 | sudo: route: command not found
  2014-11-13 10:56:22.488 | + exit_trap
  [. . .]

Also added it to files/rpms-suse/general, just in case.

Change-Id: I77954d97e654e8f384a2016631df14e73be927fe
2014-11-13 12:27:59 +01:00
Jenkins 8f8e2d1fbf Merge "support installing clients at released versions" 2014-11-12 19:50:44 +00:00
Jenkins 51d203f5a0 Merge "Includes a validation to disable creating initial networks for Neutron" 2014-11-12 18:00:59 +00:00
Jenkins ffb4ce8884 Merge "Drop PIP_USE_MIRRORS environment variable" 2014-11-12 18:00:54 +00:00
Jenkins 32360dd175 Merge "Passing config for flat type network" 2014-11-12 17:58:05 +00:00
Pavel Sedlák 6d20f09045 Initial support for Fedora 21
Initial support for Fedora 21.  Add f21 to the distribution lists for
rpms, ensure "mariadb" is used over "mysqld" and enable it in the
distro check, as we have several reports of it working.

Tested with [1]

[1] http://download.fedoraproject.org/pub/fedora/linux/releases/test/21-Beta/Cloud/Images/x86_64/Fedora-Cloud-Base-20141029-21_Beta.x86_64.qcow2

Change-Id: I97cbede806e5c00363c7174fa1e9f286de96aab6
2014-11-12 17:46:40 +01:00
Sean Dague 52f13a4087 remove the trove exercise
The trove cli has been changed in an incompatible way. Exercises
are the requirements of projects to keep functioning, if they aren't
we should fast delete them.

Related-Bug: #1391840

Change-Id: I3b61194ff220525aed202c7f7851faa0be446646
2014-11-12 06:41:38 -05:00
YAMAMOTO Takashi b2631211ab Remove neutron ryu-plugin support
Ryu plugin was marked deprecated in Juno and will be removed for Kilo.

We (Ryu team) recommend users to migrate to ofagent, on which
we aim to concentrate our development resources by this deprecation.

Partial-Bug: #1391714
Change-Id: I1ef28818e9400664ae3d83758dc2dcf71c02f185
2014-11-12 02:25:23 +00:00
Jenkins ce9581ac95 Merge "Fix DevStack Ceph on the Giant release" 2014-11-11 11:02:08 +00:00
Attila Fazekas c411fcfc92 Allow installing tempest only with keystone
Modify the lib/tempest to not fail
 if no nova or glance available.

* This allows performance test of keystone and neutron with
  tempest (or tempest stress runner) without having system
  noise from another components.
* Depending on not required components for tempest is bad practice,
  tempest service decorators expected to allow tempest,
  to run in more minimal system out-of-the-box.

Change-Id: Ifc40b1eb5c4b79d96a5fae919b88afecca642ca0
2014-11-10 11:50:51 +01:00
Attila Fazekas af81d67293 Drop PIP_USE_MIRRORS environment variable
The PIP_USE_MIRRORS does not do anything else than adding
 the --use-mirrors option to the pip command line.

The --use-mirrors is deprecated since pip-1.5,
and does not do anything else than printing a warning message.

For using alternate pypi index url this option is not required and
not sufficient. The current way for using alternate mirrors
is to defining them in the .pip/pip.conf either manually (before
devstack), or by using the PYPI_ALTERNATIVE_URL and PYPI_OVERRIDE
environment variables.

Change-Id: Ia33e783360e5661c2ef03b77e9f7af32b2633f2f
2014-11-10 09:04:54 +01:00
Sébastien Han 90f77fb015 Fix DevStack Ceph on the Giant release
As of the Ceph Giant release, pools 'data' and 'metadata' (used for
CephFS) were removed. Thus applying the pool change command fails on
Giant since those pools don't exist anymore. Now we are checking for
every release prior to Giant and apply proper commands accordingly.

Change-Id: Ia12042899c0e6809f5b98c2e0de177bb61c8a790
Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
2014-11-08 15:59:04 +01:00
Dean Troyer ea3cdfad1f Pass through the rest of the docs
Do the link cleanups and update a handful of things that were
out of date.

Change-Id: I758027bf3577c66cfb13df963516823a5c247080
2014-11-08 08:29:20 -06:00
Dean Troyer 26dd21be8c One last format and content cleanup for the index page
Update the form of the links to other documents in the tree;
the generated HTML links must remain in the original form.
The layout is changed from the previous tables to a more Sphinx-y
TOC-like list.

Also editorial changes to the index page and guide titles

Change-Id: I52df0cc542754c386fb3c99d9efdf2524c11bf48
2014-11-07 12:12:21 -06:00
Jenkins e6165e80ba Merge "Move platform check after localrc" 2014-11-07 16:28:03 +00:00
Jenkins e09fbdf063 Merge "Update index page doc links" 2014-11-07 16:27:34 +00:00
Jenkins 52605b9a96 Merge "Add ODL_NAME variable for OpenDaylight configuration" 2014-11-07 15:16:58 +00:00
sailajay a12dee433c Devstack Nuage Plugin correct the ovs_bridge parameter
This commit fixes the name of ovs_bridge parameter and the section it is set in nova.conf by the nuage plugin

Closes-Bug: 1390256

Change-Id: I63c929e827db10d0cf5450907a273d880fc757f6
2014-11-07 00:23:09 +00:00
Dean Troyer d224ae1086 Update index page doc links
This updates the form of the links to other documents in the tree;
the generated HTML links must remain in the original form.

Change-Id: I6c2179e3b7cb5b8e2589ede84ab7d02340812e80
2014-11-06 10:32:09 -06:00
Kyle Mestery 6a709ab25a Add ODL_NAME variable for OpenDaylight configuration
This makes the name of the unzipped package configurable so you can run
with releases other than the default specified in lib/opendaylight.

Change-Id: Iad879c558d742da03375cb61b0c2ef141573ffec
2014-11-06 12:43:34 +00:00
Dean Troyer 0986a7b760 Remove old HTML headers
Change-Id: I39107df88aeb89d3364ad479d8c313b7a79b9440
2014-11-06 06:40:45 -06:00
Dean Troyer 63baba2711 Clean up index page
There were a lot of artifacts left from the HTML translation.

The toctree at the end is to suppress the errors until the remaining
docs are cleaned up.

Change-Id: I4a8f29f0be524d0a15c7c6f590ffc3ceed6ff811
2014-11-06 06:40:45 -06:00
Edgar Magana 7bce8fa317 Includes a validation to disable creating initial networks for Neutron
Neutron external and internal networks are created by default
This commit let developers by configuration to decide if those
networks needs to be created. This is needed to test Neutron DVR
in a distributed Multi-node environment

Change-Id: I17d891d072f189925676b4557094cde1c7a71579
Closes-Bug: 1389288
2014-11-05 11:53:30 +01:00
yunhong jiang 73d32161df Passing config for flat type network
Add support to passing the flat_network configuration. User can
either passing the physical network name, or use the physical
network definition

Change-Id: Ie42679f207eb14620883778314f74abf378b5cbc
2014-11-05 03:31:29 -07:00
Jenkins bd4fe54fa4 Merge "Remove old guides" 2014-11-05 08:13:48 +00:00
Ian Wienand c973e6c96c Move platform check after localrc
This got moved around with some of the recent cleanups I think.  My CI
was putting FORCE=yes into localrc which used to work.  Noticed doing
some bring-up on F21

Change-Id: I7c0ea6b67b42b768278de0fd41d0c0bfbb572387
2014-11-05 09:52:27 +11:00
Jenkins e3822cf01d Merge "Add options to enable using DHCP agent Metadata-proxy" 2014-11-04 10:08:20 +00:00
Jenkins 88df4f07bb Merge "Don't hardcode glance protocol when finding trove guest image" 2014-11-04 09:38:26 +00:00
Sean Dague 5cb190697c support installing clients at released versions
expand the devstack support for libraries from released versions to
support python-* clients and tempest_lib.

Depends-On: I81b0d228e7769758c61e5b0323ecfce8c8886d39

Change-Id: I26fac0ccf8fd4818e24618d56bf04b32306f88f6
2014-11-04 10:18:58 +01:00
Jenkins 1827b48766 Merge "Only sysctl reserverd ports when available." 2014-11-03 15:49:22 +00:00
Jenkins 3073a93f6a Merge "USe trueorfalse for INSTALL_TESTONLY_PACKAGES" 2014-11-03 12:11:15 +00:00
Jenkins 182c0c459d Merge "added the localrc section to the local.conf" 2014-11-03 12:09:10 +00:00
Jenkins 4710282ef6 Merge "Set permissions on sahara cache" 2014-11-03 12:03:02 +00:00
Jenkins c1d7dead4c Merge "Workaround openrc failure on zsh" 2014-11-03 12:01:41 +00:00
Jenkins 1995f38c0c Merge "Add iptables rule for Ironic VMs -> Swift" 2014-11-03 11:53:54 +00:00
Jenkins 83df08d30e Merge "Allow ceilometer to use redis for coordination" 2014-11-03 11:53:27 +00:00
Tan Lin 27a196e260 Add options to enable using DHCP agent Metadata-proxy
Add options to support DHCP agent providing metadata-proxy.
In some cases, users have to disable L3 Agent. But people still
need metadata services.

Change-Id: I4664fc3a4937c3b7b5c27e74f509b683ffbedd09
2014-11-03 09:37:17 +08:00
Rob Crittenden 213f13a283 Don't hardcode glance protocol when finding trove guest image
This allows configuration of trove when devstack is configured
for SSL or tls-proxy.

Change-Id: I680effda94926951f9068e2df1e354c708aa4495
2014-11-02 19:08:36 -05:00
Flavio Percoco 5a91c35483 USe trueorfalse for INSTALL_TESTONLY_PACKAGES
INSTALL_TESTONLY_PACKAGES is assumed to be set to `True` or `False`.
However, in devstack-gate this variable is set to 0 or 1. The patch uses
the already existing `trueorfalse` function to evaluate
INSTALL_TESTONLY_PACKAGES and normalize its value.

Change-Id: I0e4a31e422bad2a31d919d9f871e24833a0faa99
2014-10-31 18:48:00 +01:00
Jenkins 219a58e57b Merge "[Sahara] Copy policy.json if it exists" 2014-10-31 13:28:54 +00:00
Chmouel Boudjnah 8fceb49820 Only sysctl reserverd ports when available.
Only set the keystone reserved ports when available, on some system
(like when running under containers) where this sysfs interface is not
exposed we are almost pretty sure these ports would be exclusive for our
devstack.

Change-Id: I06d7d227ae94d564c91c16119e4bbbcc6564a280
2014-10-31 13:57:02 +01:00
Kashyap Kopparam cd1c3c7adb added the localrc section to the local.conf
Change-Id: Iffcc61ca886df96e1dc7c0df3c02125cb2b4a7dc
2014-10-31 17:34:47 +05:30
Jenkins 956960e1b2 Merge "Stop setting deprecated OVS.enable_tunneling option" 2014-10-31 11:23:43 +00:00
Jenkins 3b806e3577 Merge "Desupport neutron openvswitch and linuxbridge monolithic plugins" 2014-10-31 11:23:39 +00:00
Jenkins 0f765ff21a Merge "XenAPI: workaround for unsupp. associative arrays" 2014-10-31 11:23:36 +00:00
Jenkins b95c4e65ec Merge "XenAPI: Remove non-used functions" 2014-10-31 11:23:33 +00:00
Jenkins ca6156bc03 Merge "XenAPI: move Neutron plugin install to domU" 2014-10-31 11:23:29 +00:00
Jenkins 2d18b83600 Merge "Configure glance CA certificate path in cinder" 2014-10-31 10:31:43 +00:00
Jenkins 84ff9b09e6 Merge "correct templated catalog driver class" 2014-10-31 10:31:33 +00:00
Jenkins 918f68b8bd Merge "XenAPI: Always update proxy settings" 2014-10-31 10:30:42 +00:00
Jenkins 26e1e4c7d1 Merge "Fix a minor comments" 2014-10-31 10:29:57 +00:00
YAMAMOTO Takashi 292b2a7ee6 Workaround openrc failure on zsh
The recent GIT_DEPTH change introduced a [[ ]] construct
which doesn't work for zsh 5.0.2.  Workaround it by tweaking the test.

The following is a demonstration to show how zsh behaves:

    % if [[ "" ]];then echo hoge;fi
    zsh: parse error near `]]'
    % if [[ "x" ]];then echo hoge;fi
    zsh: parse error near `]]'
    % if [[ -n "" ]];then echo hoge;fi
    % if [[ -n "x" ]];then echo hoge;fi
    hoge
    %

Closes-Bug: #1387943
Change-Id: Ia88de876dacb3664a7c3d8f5a035e8e50fddb678
2014-10-31 14:29:17 +09:00
Jim Rollenhagen 74b28bc43b Add iptables rule for Ironic VMs -> Swift
The agent ramdisk gets instance images from swift, set firewall
rules to allow this.

Also configure Ironic API port using the correct variable, and
use SWIFT_DEFAULT_BIND_PORT for Swift ports everywhere.

Change-Id: Ieec8cc64e504b04a21daa49e90e2d4925f4838ee
2014-10-30 16:10:03 -07:00
Andrew Lazarev 28d4392d56 Set permissions on sahara cache
Signing certificate directory should have 700 mode.
Before the change it was created with 755.

As a visual impact this CR removes warning from 
keystonemiddleware.

Change-Id: I8483e73447348b9a9e33dfd382543978a70a9d43
Closes-Bug: #1387416
2014-10-30 19:47:04 +00:00
Dean Troyer 17314d242e Remove old guides
Change-Id: I2f8cd36aef1e0018ed4d5619c934dc9772823656
2014-10-29 22:14:11 -05:00
Jenkins bd5263cd37 Merge "Make allow_{resize|migrate}_to_same_host configurable" 2014-10-30 00:22:50 +00:00
Jenkins cb8d7d17d0 Merge "Revert "Single quote iniset argument in merge_config_file"" 2014-10-30 00:12:34 +00:00
Jenkins d65a7be11f Merge "Fix up file-matching in bashate tox test" 2014-10-30 00:12:25 +00:00
Andrew Lazarev 627ca74b51 [Sahara] Copy policy.json if it exists
To enable policy check in Sahara we need gate tests passed.
Tests will not pass until Sahara has default policy.json (
e.g. http://logs.openstack.org/09/131609/1/check/check-tempest-dsvm-full/536d5e7/console.html). 
New code will copy of policy.json if it exists.

So, for now this code will do nothing.
Once policy.json appears in etc/sahara, the code will start coping
it to sahara conf dir. This will allow to merge auth support with
gate tests passed.

Related blueprint: auth-policy

Change-Id: I98e108ff02aacb91570f97e457d67dd02779ae3d
2014-10-30 00:11:06 +00:00
Joe Gordon 18d6298ea1 Make allow_{resize|migrate}_to_same_host configurable
In preparation for supporting 2 node devstack jobs, where the first node
is an all in one and the second is a compute node. Make nova config
options allow_resize_to_same_host and allow_migrate_to_same_host
configurable so we can turn them off when we have two compute nodes.

Change-Id: If6989200b56c4597d6e8506d0dda2cc75d0881f1
2014-10-29 14:05:39 -07:00
Akihiro Motoki 20522e3b0e Add pcre devel package for Horizon
pyScss python module uses pcre if available for performance
and it is better to be installed.
This commit adds it for files/{apts,rpms}/horizon.

Change-Id: If711fa222d3f395efd670334c8a84f35d195dc25
2014-10-29 15:51:38 -04:00
Jenkins 483940350e Merge "allow for soft updating of global-requirements" 2014-10-29 19:08:03 +00:00
Mate Lakat 518fb760d3 XenAPI: workaround for unsupp. associative arrays
Dom0's bash does not support associative arrays, however we source
`functions` and therefore our scripts fail. This change breaks the
dependency of dom0 tools on domU functions.

Fixes bug: 1379804

Change-Id: I229e2d5f07070a9236ec612d4032c94c4361a9f6
2014-10-29 18:10:43 +01:00
Mate Lakat dec5ca0f20 XenAPI: Remove non-used functions
Remove the no-longer used functions that were used to download plugins
to dom0.

Change-Id: I8dfd476781b683a8378efdae45d3cb1b46e7063c
2014-10-29 17:31:45 +01:00
Mate Lakat 6df648920c XenAPI: move Neutron plugin install to domU
Use the same mechanism as used for nova plugin installation, thus
avoiding the need for variables in dom0. This change will also help to
move XenServer CI to neutron in the future, as the dom0 part of the
script is not executed there.

With this change, the neutron related network will always be created and
attached even if the user wants to use nova-network.

Change-Id: I8669c94e9f0aacce2990469dbabde1ff702a2769
2014-10-29 17:31:26 +01:00
Jenkins 33d079bcca Merge "Use updated trove mysql image location" 2014-10-29 14:16:16 +00:00
Ian Wienand 46b0be3137 Fix up file-matching in bashate tox test
The current test does not match file files in /lib/* because the
-wholename command is missing the preceeding \*.  The whole command is
a little difficult to understand.

This re-lays the find command, using -prune to skip dot directories
and keeping a hopefully clearer flow of what is being matched.

Change-Id: Idd856e897ff97095fb116294a9187ff4b198fa26
2014-10-29 11:21:07 +00:00
Ian Wienand f3bf8b6cc0 Revert "Single quote iniset argument in merge_config_file"
This reverts commit e2c9fee8ed.

We have decided that we don't want to support the json-style argument
as described by bug#1374118 (see thread at [1]).

This restores the old behavior of sending the argument in
double-quotes so environment variables get expanded.  As a bonus,
tests for this are added.

[1] http://lists.openstack.org/pipermail/openstack-dev/2014-October/049341.html

Change-Id: I9fc99f3716cc53366907878adb00ae6cf3898f14
Closes-Bug:#1386413
2014-10-29 22:12:17 +11:00
YAMAMOTO Takashi d16197b689 Stop setting deprecated OVS.enable_tunneling option
The option has been deprecated in IceHouse and now being removed.

Related-Bug: #1195374
Change-Id: I38d962551173892144c369df71e0524b43e1fc89
2014-10-29 02:27:55 +00:00
Chris Dent 2112743b10 Allow ceilometer to use redis for coordination
If redis is desired by local.conf via CEILOMETER_COORDINATION_URL
then make sure redis is installed and restarted.

Change-Id: Idfb7b902478049fbc240bf416db6c7d6acd67a51
2014-10-28 12:31:51 +00:00
wanghong 7fb5082c5c correct templated catalog driver class
Now the templated catalog driver class "TemplatedCatalog" is removed
in this patch https://review.openstack.org/#/c/125708/2 use
"keystone.catalog.backends.templated.Catalog" instead.

Change-Id: Ib9c8ea557e7171ff0c78a1e10d752ed564aff9e7
Closes-Bug: #1386562
2014-10-28 19:20:54 +08:00
Jenkins 6fe32059de Merge "Docs: Fix exercise table in index.rst" 2014-10-28 08:56:29 +00:00
Nikhil Manchanda 3ec8a90327 Use updated trove mysql image location
Use the updated trove mysql image at:
tarballs.openstack.org/trove/images/ubuntu/mysql.qcow2
instead of the older deprecated image at:
tarballs.openstack.org/trove/images/ubuntu_mysql.qcow2/ubuntu_mysql.qcow2

Change-Id: If76f25dfe0f975faf1883f0a6d993c21b26e1b29
2014-10-28 00:47:08 -07:00
Jenkins f5487832fd Merge "Remove no_wait ovs flag from vmw_nsx 3rd party lib" 2014-10-28 03:32:23 +00:00
Jenkins 2e34754325 Merge "Use ALT_INSTANCE_USER for image_alt_ssh_user" 2014-10-28 03:25:09 +00:00
Jenkins 18c007451a Merge "Configure an authorized user for the QPID broker" 2014-10-28 03:25:05 +00:00
Jenkins 89d378e4bb Merge "Install ldappool when LDAP is enabled" 2014-10-28 03:24:15 +00:00
Jenkins f5046412ca Merge "Move swift CLI commands to OSC commands" 2014-10-28 03:16:28 +00:00
Jenkins 7fb5d296a2 Merge "Add NetApp Cinder backend support" 2014-10-28 03:16:25 +00:00
Jenkins 005a47e1a0 Merge "Enable Swift's newer feature of container-sync" 2014-10-28 03:16:21 +00:00
Jenkins 26167569d6 Merge "Add the ability to activate Nova ceph without Cinder" 2014-10-28 03:16:18 +00:00
Jenkins 1b899cdfc9 Merge "Always install latest EPEL" 2014-10-28 03:16:07 +00:00
Jenkins 3c92eb9b7f Merge "Add swift user and project in non-default domain" 2014-10-28 03:16:03 +00:00
YAMAMOTO Takashi 15130cd5fd Desupport neutron openvswitch and linuxbridge monolithic plugins
These plugins were removed in Juno.
Note: this doesn't affect the corresponding ML2 mechanism drivers.

Partial-Bug: #1323729
Change-Id: Ia8da1e20a03fef5657ba1584bf83ddd224b5d5f2
2014-10-28 11:55:19 +09:00
Jenkins 7f55e0d36e Merge "Remove usage of $[ for arithmetic, take 2" 2014-10-28 02:05:39 +00:00
Jenkins 4b6f744e7f Merge "Allow depth limiting git clones" 2014-10-27 22:21:47 +00:00
Jenkins eab94dbc2a Merge "Update docs section for new build" 2014-10-27 21:18:39 +00:00
taturiello e7f071b49f Remove no_wait ovs flag from vmw_nsx 3rd party lib
The no_wait flag can trigger a race conditon with ip addr flush
if the public bridge is not yet up. Due to this race condition
the local route for the external subnet might not be added.

The patch also renames br-ex to $PUBLIC_BRIDGE in some places

Change-Id: I11335c99dba580e7ca26b0b15b0df8dead367fdc
2014-10-27 15:58:34 -04:00
Sean Dague def1534ce0 allow for soft updating of global-requirements
This creates a devstack REQUIREMENTS_MODE which is how we handle
syncing of global requirements. The default is 'strict', which is
current behavior. There is a new 'soft' mode which does a
--soft-update for projects *not* found in projects.txt, which lets
them specify additional requirements.

Change-Id: I4aa606514131b5dde67d87f5c8db5a3f3e50fc03
Depends-On: I1f195ef9ff1509659848e14ec9936ff6f66a6496
2014-10-27 12:26:04 -04:00
Sean M. Collins f76ed01665 Docs: Fix exercise table in index.rst
Change-Id: I305414a5a38c6837a765110e726771ba2f94fe45
2014-10-27 11:36:41 -04:00
yunhong jiang 0d6e992d90 Fix a minor comments
A minor mismatch in lib/neutron since now unstack.sh invokes
three functions and also start_neutron_agents() is called before
create_neutron_initial_network().

Change-Id: Ibbe68501cce4c062a9ac610cbc44188dc9bab6c8
2014-10-27 03:41:54 -07:00
Jenkins ce1f133732 Merge "Remove copyright footer from RST docs" 2014-10-27 01:14:19 +00:00
Jenkins e1b2dfe708 Merge "Use service tenant id for Ironic agent swift auth" 2014-10-24 16:16:30 +00:00
Dean Troyer f5cb1ce4c6 Update docs section for new build
The devstack.org build process was recently changed to run as a CI post
job, publishing the site after every commit.

Change-Id: I05ddb353fae524178a25f28f2437d4fc635167f9
2014-10-24 10:08:42 -05:00
Sean M. Collins 0f3bafc74e Remove copyright footer from RST docs
Change-Id: I2fe6aac7caec21af26983636d6ec827b3525ee15
2014-10-24 10:48:46 -04:00
Jamie Lennox 51f0de5c5d Allow depth limiting git clones
Depending on how you are using devstack you probably don't need the
entire history of a project so we should allow people to specify a clone
depth to speed up the devstack process.

Change-Id: I804a5abcc80f6a81e915c0bb4dceae72486441a7
Blueprint: git-depth
2014-10-24 10:24:13 +02:00
Jenkins 514c82030c Merge "Convert all HTML doc to RST" 2014-10-24 03:11:47 +00:00
Joe Gordon cac1317676 Move to download.fedoraproject.org
download.fedoraproject.org is the mirror system, while
dl.fedoraproject.org is just one system. We have seen performance issues
with dl.fedoraproject.org and using download.fedoraproject.org was a
recommended as a solution by the folks at #fedora-admin.

Local testing on a rackspace server with dl.fedoraproject.org got about
70K/s while download.fedoraproject.org got over 1M/s

Move over to https as well.

Related-Bug: #1383928
Change-Id: I318d8844cfcfbc42c1e552e443c6b793d20f321f
2014-10-23 11:40:18 -07:00
Jenkins 26c9d02b31 Merge "Update multiple backend configuration in tempest script" 2014-10-23 11:50:08 +00:00
Patrick East 1c0628f83c Fix an issue with setting tempest volume vendor_name with spaces
If the volume vendor has spaces in it, for example “Open Source”, we
need to have quotes around the uses of the variables or the behavior
will not be as expected.

Change-Id: Ie1e99b6d6de2313e5b5b5a5d3057c136c9b34601
2014-10-22 16:23:05 -07:00
Jenkins f367fd4dbc Merge "Make screen_service() useful for more than services" 2014-10-22 22:23:26 +00:00
Adam Gandelman ab50c702a7 Use service tenant id for Ironic agent swift auth
Config of ironic conductor currently references a non-existent variable.
This corrects it by obtaining and using the correct tenant id.

Change-Id: I4340f75b2b22a8fd3fd8dd5cb30d7e91bce4f654
2014-10-22 13:35:25 -07:00
Jenkins da61a1f711 Merge "Remove internal bash8" 2014-10-22 18:14:58 +00:00
Jenkins 108f3dc3c5 Merge "Set Tempest storage protocol and vendor w/o setting driver" 2014-10-22 18:04:39 +00:00
Sean M. Collins 09e550c370 Convert all HTML doc to RST
The motivation for this conversion is to have DevStack's docs be
generated using a more familair workflow for OpenStack projects, using
Sphinx.

Changing from raw HTML to RST will also make it easier to contribute
more documentation, as well as making edits less of a hassle.

The majority of the work was done by using Pandoc to convert from HTML
to RST, with minor edits to the output to remove errors in Sphinx.

Change-Id: I9636017965aeade37b950ddf5bdb0c22ab9004bd
2014-10-22 12:27:00 -04:00
Jenkins 58f1405665 Merge "Reference git.o.o DevStack repo rather than GitHub" 2014-10-22 12:43:49 +00:00
Jenkins 167dd5fd69 Merge "Move generation of baremetal VM names to lib/ironic" 2014-10-22 01:45:36 +00:00
Ian Wienand ed077b2846 Always install latest EPEL
Having issues with the centos7 job, that seem to be because they use
an old snapshot that hasn't updated to the latest EPEL.  Thus we
re-install it to ensure we're getting the latest.

Change-Id: I7930f3e05ee953dab80b06142c17d6aa70f2c2d1
2014-10-22 12:00:44 +11:00
Rob Crittenden 4b109297d5 Configure glance CA certificate path in cinder
A new configuration option is available in cinder for setting
the CA path. Configure this option in devstack when native SSL
or TLS proxy is configured.

Change-Id: I2cf9a3b8ba8e4896bd98efe0fb6f7d62fb279d90
Closes-Bug: 1384267
2014-10-21 18:17:48 -04:00
Alistair Coles 24779f65a6 Add swift user and project in non-default domain
Swift has functional tests that check access controls
between users and projects in differing domains. Those tests
are currently skipped by default since swift tests are
configured to use keystone v2 API. In order for those
tests to pass when using keystone v3 API, a user and
project must be setup in a non-default domain.

This patch creates a domain, and a user and project in
that domain, in support of swift functional tests moving
to using keystone v3 API.

Changes:
lib/swift
    - create a new domain, project and user for
      swift testing
    - add new project and user credentials to swift
      test config file
    - set correct identity service url in swift test
      config file according to kesytone API version

functions-common
    - add function get_or_create_domain
    - modify get_or_create_user and get_or_create_project
      functions to optionally specify a domain

Change-Id: I557de01bf196075f2f3adcdf4dd1b43756d8a0ae
2014-10-21 14:36:15 +01:00
Dean Troyer 50e9b9e25b Remove internal bash8
We use the one installed from pypi in the tox venv, so dump
the original.  Fix up run_tests.sh.

Change-Id: I6b0aa1da9bfa4d742a7210e6ff800d72492a2178
2014-10-21 08:30:25 -05:00
Adrien Cunin eaff3e1b8c Reference git.o.o DevStack repo rather than GitHub
In docs, use git.o.o URLs rather than GitHub URLs for the DevStack repo,
and don't mention GitHub when git.o.o is more appropriate.
Also, replaced GitHub logo with Git logo in quickstart.png.

Change-Id: Iab0006144f008963b8cb5be2d10ce0f360c0e6ca
2014-10-21 13:52:24 +02:00
Ian Wienand 761c456a4e Remove usage of $[ for arithmetic, take 2
I did a similar change in I8ba180be036836f37ebdbb6da36ff0be486c043e
but I guess somehow missed these ... maybe I forgot to add them to the
change.

As described originally, this causes TOT bashate to fail, so fix this
up before it gets released.

Change-Id: I5580cb46f1c8bd71c631549aab78428d95a6dc51
2014-10-21 14:19:23 +11:00
Jenkins 572a4c4c3c Merge "Allow use of ceilometer agent coordination" 2014-10-20 23:19:34 +00:00
Jenkins 61df8580ea Merge "Fix empty functions causing stack failure" 2014-10-20 23:18:56 +00:00
Adam Gandelman 8543a0f763 Make screen_service() useful for more than services
screen_service() can currently only be used to launch things that
pass the 'is_service_enabled' check, even though its calling functions
will have already done this.  This removes such check, renames it
to screen_process() and updates its usage elsewhere.

Change-Id: I480a4560a45b131a95c1b2d2d2379aeba542a9bc
2014-10-20 13:42:52 -07:00
Adam Gandelman 22ec45e63a Move generation of baremetal VM names to lib/ironic
The create-nodes script currently receives a total # of VMs to create
and creates them all, generating their names on the fly.  This moves
that name generation to lib/ironic and makes the script create only
single VMs as directed.  This centralizes the naming of things to
lib/ironic and will make it easier to reference these things elsewhere.

Change-Id: I98e61f7188e027e690303e32aff7cd2347f6d2c2
2014-10-20 13:42:39 -07:00
Rob 2a6215dd11 Fix empty functions causing stack failure
This patch adds a return value to several empty functions that are causing stack.sh to fail when the
Cisco Neutron plugin is enabled.

Change-Id: I43987d9cc5edc53de41c27354c3a737643d1cd43
Closes-bug: 1383273
2014-10-20 13:37:30 +01:00
Chris Dent 8abd8598b3 Allow use of ceilometer agent coordination
Juno brings tooz-based coordination of ceilometer central, compute
and alarm agents. If CEILOMETER_COORDINATION_URL is set it will be
used as the value for a tooz coordination backend. If memcached is
chosen, its package will be installed. Other backends, such as
zookeeper can be configured, but installation is left as an exercise
for the devstacker.

In the default devstack setup having coordination will do little as
there are only one of each agent, but this makes it a bit easier for
multi-node or multi-agent setups.

Change-Id: Ib85ccd435de3bc0ae56b5fe8c2fce6c2af9ff8d0
2014-10-20 09:36:29 +01:00
Akihiro Motoki 6518c0b88e Compile Horizon message catalogs during stack.sh
Recently compiled message catalogs (mo files) were removed
in Horizon and django_openstack_auth repositories.
We need to compile message catalogs to make translations
available for Horizon users. It is useful for developers too.

Change-Id: I0831e8308205c116d8e3bb8b43be7f0dd6fa0c0a
2014-10-18 06:40:08 +09:00
Jenkins 56d4919a1a Merge "ofagent: Support physical_interface_mappings" 2014-10-17 16:09:46 +00:00
Jenkins 5dae0f0364 Merge "Update the OpenDaylight support to the Helium release" 2014-10-17 16:09:19 +00:00
Mate Lakat e35785d910 XenAPI: Always update proxy settings
If a user wants to re-use an xva just with different proxy settings, he
can now do it, as this change will always update /etc/apt/apt.conf to
reflect the settings in the user's localrc.

Change-Id: I8a6e9c88304bc887ea8269d946e89a5ba258b126
2014-10-17 13:21:18 +02:00
Jenkins 18cf4f1004 Merge "Use $() instead of ``" 2014-10-17 11:03:58 +00:00
Jenkins fa893dbb49 Merge "XenAPI: Always update apt sources" 2014-10-17 11:02:42 +00:00
YAMAMOTO Takashi 0f18c23de8 ofagent: Support physical_interface_mappings
Also, add a knob to create a veth pair instead of a bridge
to provide host connectivity for l3-agent.  (Q_USE_PUBLIC_VETH)

Related: blueprint ofagent-physical-interface-mappings
Change-Id: I4c2538f0fd3fb05bfdb69e7e4c3a8462af42ba10
2014-10-17 01:18:40 +00:00
Jenkins a2c241774a Merge "Allow multi-line config items in meta-section of local.conf" 2014-10-16 22:51:25 +00:00
Kyle Mestery 3d6d89935f Update the OpenDaylight support to the Helium release
The OpenDaylight project recently released their latest release, codenamed
Helium. This commit updates the devstack support for OpenDaylight to this
new version, which includes changes to configuration files as well as the
startup of OpenDaylight itself.

Also update my email address in MAINTAINERS.rst.

Change-Id: I124b5e7e8ef7feb6c90de907916a9530409c4ad4
2014-10-16 20:39:19 +00:00
Swapnil Kulkarni 09fb7baff5 Update multiple backend configuration in tempest script
Currently when we configure the tempest with multiple LVM
backends the backend names are created as LVM_iSCSI and
LVM_iSCSI_2 which fails since the backends created by cinder
are lvmdriver-1 and lvmdriver-2.

This patch updates the backend names. Added support for
CINDER_ENABLED_BACKENDS and added todo to remove
CINDER_MULTI_LVM_BACKEND once its formally removed

Closes-Bug:#1369946
Closes-Bug:#1369942

Change-Id: If44f5eb206616afb0fbaf333f3fa6a296d4650cd
2014-10-16 12:03:17 -05:00
Jenkins 664830a16f Merge "XenAPI: Add exit point after JEOS installation" 2014-10-16 16:36:40 +00:00
Jenkins 77490b5eae Merge "XenAPI: Fix vimrc" 2014-10-16 15:25:36 +00:00
Robert Li 751ad1aadf Allow multi-line config items in meta-section of local.conf
It would behave such as the contents from each meta-section in
local.conf is copied to the destination files. One exception is the multiline
options not grouped together. In that case, the contents will be grouped
together in its destination config file.

Check tests/test_config.sh for examples.

This was originally committed in https://review.openstack.org/128805.
But the original change used AWK syntax that is not supported in AWK
3.1.8, and caused syntax error on servers with that AWK version. This
patch makes the necessary change so that it's compatible with AWK
3.1.8.

Change-Id: Id1e1fe01f05bd0f19ea6e89c4f4c0f8be695dfce
Partial-Bug: #1374118
2014-10-15 21:44:31 -04:00
Jenkins ddfbacef9f Merge "support proposed/* branches" 2014-10-15 22:02:08 +00:00
Mate Lakat fff07e864e XenAPI: Always update apt sources
If an appliance is used as a base OS, the user might want to use that in
a different region. With this change we always update the used mirrors
in the template.

Change-Id: I7a119664efac1124e54064311c243c63c2a7944b
2014-10-15 19:40:00 +02:00
Mate Lakat a1707c7ef0 XenAPI: Fix vimrc
DevStack installs a default minimal .vimrc file for the stack user.
Unfortunately the `syntax on` config line is not recognised by the vim
installed in DomU. It results in an annoying message being displayed
whenever the user is using vi. To avoid this issue, removing the `syntax
on` line.

Change-Id: I224465cc3cdba3464ea0a9a751f250ecb6ddc9f3
2014-10-15 19:38:01 +02:00
Mate Lakat 2a324dd2ec XenAPI: Add exit point after JEOS installation
If the user only want to run the installation of Ubuntu - to export the
template as an xva, it just needs to specify a non-empty value for:

EXIT_AFTER_JEOS_INSTALLATION

And the script will exit after the jeos template has been created.

Change-Id: I558e2f2b18ee23c15c7e46e2f7e74543cf26b750
2014-10-15 19:37:28 +02:00
Eric Harney 014564873e Set Tempest storage protocol and vendor w/o setting driver
Set TEMPEST_STORAGE_PROTOCOL and TEMPEST_VOLUME_VENDOR if
they are changed from their defaults, or if
TEMPEST_VOLUME_DRIVER is changed.

This maintains the current behavior of setting these options if
TEMPEST_VOLUME_DRIVER is set to something other than "default".

Change-Id: I1fb7f5db0446f97de48b97a6f451882cc51c51a4
2014-10-14 18:58:29 -04:00
Adam Gandelman 8f38572588 support proposed/* branches
Provide support for named proposed branches for selection logic

This syncs the get_release_name_from_branch() function from grenade.

Change-Id: I1adabf07cdc3ea6863cd30d8b6454fb40fc20288
2014-10-14 15:51:56 -07:00
Jenkins e9c70ab409 Merge "Cleanup create_accounts functions" 2014-10-14 21:00:36 +00:00
Chris Dent efdaafc0f9 Use $() instead of ``
There are other instances of this in other files, just tidying
ceilometer at the moment.

Change-Id: I136a20d7ac50fdf02cbd1102613e324e313b7b0a
2014-10-14 21:08:32 +01:00
Monty Taylor 0cbddea50d Move the doc paths to match other repos
In order to build in the Infra system, we'd like to be able to reuse the
existing doc build macros. To support that, move docs/source to
doc/source and docs/html to doc/build/html.

Change-Id: Ibd8e8e82e54c69b182120df67e6ec6908fed2908
2014-10-14 12:13:07 -04:00
Monty Taylor ebb983d3f2 Make the tox docs env build the docs
The tools/build_docs script builds the docs for devstack. Use it.

Change-Id: I530ff6c8090f2c58160cb11bee35534b79db52ed
2014-10-14 12:13:07 -04:00
Kevin Benton e0d6a46b8a Add test case for colon in value
Adds a test case for a colon in a value

Change-Id: Ica56b8af5fa59a008cfe96424b1d3e17fd6cf7d6
2014-10-14 04:54:42 -07:00
Kevin Benton a7eb07a3e2 Revert "Allow multi-line config items in meta-section of local.conf"
This reverts commit 6ff21acf4c.

This commit has broken config options with colons in them.
The following is a sample configuration that no longer works:

[[post-config|/etc/neutron/plugins/ml2/ml2_conf.ini]]
[restproxy]
server_ssl=False
servers=10.211.1.9:80
server_ssl=False

With the above config and the code present that this reverts,
the 'servers' option will come out blank.

Change-Id: I328852d2d941605051a1bf5eaf0f7674191f8c48
2014-10-14 04:38:56 -07:00
Jenkins a647898275 Merge "Allow multi-line config items in meta-section of local.conf" 2014-10-14 03:19:32 +00:00
Jenkins e6f4ad7c3e Merge "local.conf processing doesn't handle '=' in values" 2014-10-13 23:12:36 +00:00
Jenkins 50381a46e8 Merge "Set Glance default_store to rbd in [glance_store]" 2014-10-13 23:12:13 +00:00
Jenkins f854c730a5 Merge "Fix account rc files creation for Swift users" 2014-10-13 15:20:46 +00:00
Robert Li 6ff21acf4c Allow multi-line config items in meta-section of local.conf
It would behave such as the contents from each meta-section in
local.conf is copied to the destination files. One exception is the multiline
options not grouped together. In that case, the contents will be grouped
together in its destination config file.

Check tests/test_config.sh for examples.

Change-Id: I8c046b558eeb98ed221f6f1a59182d4179956ced
Partial-Bug: #1374118
2014-10-10 12:53:24 -04:00
Fergal Mc Carthy cc87c2871d local.conf processing doesn't handle '=' in values
When attempting to add a libvirt section with a volume_drivers entry
to $NOVA_CONF, via a post-config block in the local.conf file, I
encountered problems; the value for this attribute takes the form

    driver=python.import.path.to.driver

but the value actually populated in the $NOVA_CONF was truncated at the
equals.

Taking the iscsi driver setting specified in the official nova.conf
documentation as an example, if I have the following in my local.conf
file:

[[post-config|$NOVA_CONF]]
[libvirt]
volume_drivers = iscsi=nova.virt.libvirt.volume.LibvirtISCSIVolumeDriver

I will see that the generated $NOVA_CONF has the following:

[libvirt]
volume_driver = iscsi

This occurs because the existing handling for a post-config setion, as
implemented in merge_config_file(), splits the line on the equals sign,
and then uses the first and seconds elements of the resulting array as
attribute name and value respectively.

However when an equals occurs as part of the value this results in the
value being truncated at the first equals in the value.

The fix I've implemented, based upon review feedback, extracts the
contents of $0 before the first equals as the attr name, and extracts
the remainder after the equals as the value. Then it strips the leading
and trailing whitespaces from both as appropriate.

I've also added test5 to tests/test_config.sh to test for, and verify,
correct operation when this scenario is encountered.  Similarly I've
added test6 to ensure that trailing spaces in values are stripped
correctly.

Change-Id: Id0cb1e6e1cece21bc5dbf427c4d756af86fbd927
Closes-Bug: #1374482
2014-10-10 08:25:38 -04:00
Jenkins 284492cc11 Merge "Enable DIB service to build with minimal net access" 2014-10-10 09:25:07 +00:00
Jenkins 1180eb16c6 Merge "Replace deprecated conf option for heat" 2014-10-10 09:24:33 +00:00
Jenkins f9c282d31c Merge "Single quote iniset argument in merge_config_file" 2014-10-09 23:08:36 +00:00
Sébastien Han fa16ae92cd Add the ability to activate Nova ceph without Cinder
Prior to this patch, if we wanted to boot a VM in Ceph using
libvirt_image_type we must had Cinder enabled. This patch allows you to
use libvirt_image_type without having Cinder enabled.

Change-Id: Ia61e6effc5a4ccba69f4fa48f6e9984f15bb8979
Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
2014-10-09 19:25:23 +02:00
Jenkins 77001dd64a Merge "Install latest EPEL release" 2014-10-09 12:33:50 +00:00
Sirushti Murugesan 2f92c8d723 Replace deprecated conf option for heat
Change-Id: I0419b188ecc2bd946c1c1f565875c6a04f4afd9b
Closes-Bug: #1379234
2014-10-09 14:38:14 +05:30
JordanP 7c6d005eed Fix account rc files creation for Swift users
Id02ebdfa5cb3f6c763293876c6bb031184ebd663 introduced a small
regression which makes the command x509-create-cert fail with
'ERROR (CommandError): Invalid OpenStack Nova credentials.' for
Swift users.

The handling of specific password for Swift users was introduced
in Ifb57a43aad439ffe041e98465719a8a8eceae544

Change-Id: I3f328b1358bad0bdf7056796eabfe846dd5bae3a
2014-10-09 09:58:51 +02:00
Steve Martinelli bf1b8ed470 Move swift CLI commands to OSC commands
Only a few instances in exercises/swift.sh

Change-Id: I0a39b11f660453a378d44e4f9f28a4a57352f4a8
2014-10-09 01:18:36 -04:00
Jenkins af03045726 Merge "Stop n-cpu by correct process name /w fake" 2014-10-09 00:59:21 +00:00
Daisuke Morita d03915f9c0 Enable Swift's newer feature of container-sync
Newer version of container-sync feature is introduced in Swift ver. 1.12.0.

The spec:
http://docs.openstack.org/developer/swift/overview_container_sync.html

Before this commit, Devstack does not configure any realm used in
container-sync, therefore this feature does not work.
To test this feature in CI system, moreover to show the sample
configuration of realms, Devstack now edits realms configuration file.

Change-Id: I9f1e3224403e08e725a989162729470357fe90b0
Closes-Bug: 1378646
2014-10-09 00:40:31 +00:00
Jenkins ee2e3ddfdb Merge "Correct swift service name in docs" 2014-10-09 00:17:10 +00:00
Ian Wienand 3682b6de55 Install latest EPEL release
Use a little trick cribbed from [1] to install the latest EPEL
release, rather than hard-coding versions

[1] http://stackoverflow.com/questions/14016286/how-to-programmatically-install-the-latest-epel-release-rpm-without-knowing-its

Closes-bug: #1376321
Change-Id: Ib89d73d669efe2e2d61fc0b12b46395fce113386
2014-10-09 10:55:59 +11:00
Jenkins e5dbec252a Merge "Fix docs build errors" 2014-10-08 22:14:51 +00:00
Adam Gandelman 0f72625fba Enable DIB service to build with minimal net access
Adds two new options to lib/dib that will help devstack slaves
use cached content and content local to cloud provides:

 * DIB_BUILD_OFFLINE: This will enable DIB to rely entirely on
   cached images without making any additional calls to cloud-images.ubuntu.com
   to validate hashes/freshness.

 * DIB_APT_SOURCES: Used to specify alternatve sources.list for image builds.
   Setting this enables the addition of the apt-sources element during image
   builds and is only supported for ubuntu/debian builds.

Change-Id: I9b9ca72ec551565d454610aacb86c585f0384f13
Partial-bug: #1375488
2014-10-08 12:08:34 -07:00
Eric Harney 9a706107d6 Set Glance default_store to rbd in [glance_store]
Glance is moving from [DEFAULT] to [glance_store] for this option.
Since lib/glance sets both, let's also set it in both places for now.

Failing to do this causes g-api to fail to start with error:
"Store for scheme swift not found"

Change-Id: I9e33ababf7c51f5c750f90b8b366b9892bb4c8cd
2014-10-08 11:10:31 -04:00
Chris Dent 67bc8e8ab9 Cleanup create_accounts functions
lib/nova and lib/ceilometer had function calls not in the desired
form.

Change-Id: I6b848e51654a48fe2df6084efdb0f67fd5e180f0
2014-10-08 12:07:46 +01:00
Steve Martinelli e321e305f3 Correct swift service name in docs
The docs incorrectly show an example of:

  enable_service swift

This does not work, it must be enabled on a per swift service
basis, like:

  enable_service s-proxy s-object s-container s-account

Change-Id: Ib4ed8b43f777d308f5464d45dc87735e843c0daf
2014-10-07 13:08:58 -04:00
Jenkins f33e76bf9b Merge "Add Nova v2.1 API endpoint" 2014-10-07 03:51:05 +00:00
Ian Wienand e2c9fee8ed Single quote iniset argument in merge_config_file
If we don't single quote the extracted argument to iniset we drop any
quotes from the source.  Add a simple test-case for this.

Partial-bug: #1374118

Change-Id: If2f47b64b11015e727a011c7e5f6e8ad378b90eb
2014-10-07 12:16:00 +11:00
Adam Gandelman d29ca35e79 Stop n-cpu by correct process name /w fake
When VIRT_DRIVER=fake, n-cpu processes are numbered (ie, n-cpu-1) in
start_nova. However, this scheme is not taken into account when
stopping nova, resulting in leftover n-cpu processes that fail
grenade's stop-base if USE_SCREEN=False. This special cases for the
fake driver in stop_nova_compute and ensures n-cpu(s) is shutdown
correctly.

Change-Id: Icebece9eadc4e10bb12fe4fdd2fa37d5f3983f66
Close-bug: #1378112
2014-10-06 15:17:13 -07:00
Davanum Srinivas 690e3c2574 Fix Typos found with misspell
git ls-files | grep -v locale | misspellings -f -

Change-Id: I0dc56ba64ae4bdc681ccf4a1d2d23238f541650d
2014-10-05 20:06:33 -04:00
Jenkins 552459cbcc Merge "Added libvirt-dev[el] as a required system package" 2014-10-05 13:59:35 +00:00
Jenkins bb67896cd9 Merge "Relocate SERVICE_TIMEOUT to stackrc" 2014-10-04 20:52:21 +00:00
Jenkins 048da844db Merge "Source functions from stackrc" 2014-10-04 19:57:36 +00:00
Jenkins be80b67dc7 Merge "Refactor swift config services" 2014-10-04 19:57:26 +00:00
Jenkins 822b4cb2d1 Merge "Use service role for neutron instead of admin" 2014-10-04 12:52:18 +00:00
Jenkins 608491c0f7 Merge "Add support for redis to Zaqar's lib" 2014-10-04 09:25:55 +00:00
Jenkins 39ceb484a4 Merge "Drop workaround for pip < 1.4" 2014-10-04 09:25:47 +00:00
Chmouel Boudjnah 6c585d739d Refactor swift config services
Make the sed the command to change the recon_cache_path into the renamed
generate_swift_config_services

Change-Id: I6092c26836320fab607eb9cd07f63189a9ba1ddd
2014-10-04 08:14:30 +02:00
Adam Gandelman 0e4cd03828 Source functions from stackrc
stackrc now requires GITREPO, GITBRANCH, GITDIR and has been
dependent on functions for a while (is_package_installed).  Ensure
we source the required functions file when stackrc is loaded.  Avoids
unexpected issues in grenade where they may or may not have been loaded
depending on the configuration.

Closes-bug: #1377274

Change-Id: I5027cfad07af0de7ff39f424601d6f7ec5dcadae
2014-10-03 13:29:46 -07:00
Kirill Shileev 608f884edb Use ALT_INSTANCE_USER for image_alt_ssh_user
Change-Id: Ib9cfb6e989575d62c493cbe92fdefd8c90256bcd
Closes-Bug: 1377914
2014-10-03 22:50:57 +04:00
Sean Dague 24516d04fb restructure stackrc into groupings
in order to support installing from stable libraries we first need to
actually sort out all the categories our giant list of git repos fit
into. This will make it much easier to not lose one in the process.

Change-Id: I708c65428fdc7442e1661037f425e466048166d3
2014-10-03 08:04:00 -04:00
Sean Dague b7cda38937 fix olso != oslo typos
Apparently oslo is the hardest word in the world for me to understand
that I didn't spell correctly.

Change-Id: Id1b52529001319eaf41321118ab560711c752003
2014-10-03 08:04:00 -04:00
Mike Spreitzer 3edd4540b9 Added libvirt-dev[el] as a required system package
Added libvirt-dev as a system package to install with apt-get and
libvirt-devel as a system package to install with rpm.

Early drafts qualified with "testonly" (meaning to install only if
INSTALL_TESTONLY_PACKAGES is true).  This is needed because installing
libvirt-python version 1.2.5 on Ubuntu 14.04 was observed to fail in
the building step if libvirt-dev is missing.  Later drafts removed
that qualification, because Sean Dague said he thinks libvirt-dev[el]
is always required.

Change-Id: Ie6a272f60059a1f363630f307416b32c450a1ebb
Closes-Bug: 1362948
2014-10-02 23:23:18 -04:00
Jenkins 27974ee361 Merge "Adds qemu packages to ironic's apts" 2014-10-03 01:39:01 +00:00
Jenkins 5e02da7c84 Merge "use released library versions by default" 2014-10-03 01:38:36 +00:00
Dean Troyer a08ba1c5e3 Add NetApp Cinder backend support
Supports both iSCSI and NFS, and now both 7mode and cluster mode

Change-Id: If590a7a255268fcce4770c94956607251c36fdf5
2014-10-02 15:51:45 -05:00
Jenkins 38aad4cfd7 Merge "don't set nova.conf auth_strategy" 2014-10-02 20:36:57 +00:00
Dean Troyer 3324f19f5a Fix docs build errors
Fix shocco errors during docs generation

Closes-Bug: 1362691
Change-Id: I2b7fb008c89f0b4e7280b2d0a054320765e83e47
2014-10-02 15:30:50 -05:00
Jenkins 4e10843812 Merge "Install dib from pip" 2014-10-02 18:28:57 +00:00
Jenkins fa812614d9 Merge "Specialize Zaqar's cleanup function" 2014-10-02 18:28:45 +00:00
Adam Gandelman 6566f21ddf Adds qemu packages to ironic's apts
Nodepool images have recently migrated to being built with DIB, resulting
in strange changes in how the package dependency chain works out.  This
explicitly adds required qemu packages to Ironic's apts to avoid some
not being pulled in by package dependencies alone.

Change-Id: I60373ee5ad7445cd54c8c013085b28d82bb0d085
Closes-bug: #1376863
2014-10-02 11:25:03 -07:00
Jenkins f156ebfaeb Merge "Ensure sbin is in PATH." 2014-10-02 16:11:39 +00:00
Flavio Percoco e29a55ade1 Add support for redis to Zaqar's lib
A new redis driver has landed in Zaqar. This patch adds support for that
driver to Zaqar's lib.

Change-Id: I97629a303c55ee098e3bfbc534bfb05ccab94649
2014-10-02 09:24:58 +02:00
Flavio Percoco dec13c336d Specialize Zaqar's cleanup function
Instead of having mongodb specific cleanup logic in `cleanup_zaqar`,
specialize it to perform clean ups based on the driver that has been
enabled.

Change-Id: I5807a83443b87b2c8d184e0cd2d5563a649c6273
2014-10-02 09:23:19 +02:00
Jenkins d38675cd9e Merge "remove deprecated pip option" 2014-10-02 04:08:21 +00:00
Joe Gordon 944b28280b Drop workaround for pip < 1.4
Now that we are on pip 1.5.6 lets drop the workaround to make pip 1.4
work. As this is a development/testing tool requiring a newer pip
shouldn't be an issue. Also stack.sh installs pip by default.

Work around introduced in https://github.com/pypa/pip/issues/709

Change-Id: I0e7aad1d21f4fce4c020ce36685bb56893c66bdc
2014-10-01 19:52:23 -07:00
Jenkins aaee3dc777 Merge "Allow heat standalone to work devstack stack" 2014-10-02 02:40:18 +00:00
Sean Dague cc52406a78 use released library versions by default
This patch provides a new path for installing libraries in devstack so
that it's possible to either test with upstream released libraries, or
with git versions of individual libraries.

Libraries are added by name to 3 associative arrays GITREPO,
GITBRANCH, GITDIR. When we get to the library install phase we inspect
LIBS_FROM_GIT and look for libraries by name (i.e. "oslo.config") and
if they exist we'll clone and install those libraries from
git. Otherwise we won't, and just let pip pull them as dependencies
when it needs them.

This patch provides the conversion of the oslo libraries, including
pbr.

Devstack-gate jobs for these libraries will need to change to support
actually forward testing their content.

Change-Id: I6161fa3194dbe8fbc25b6ee0e2fe3cc722a1cea4
2014-10-01 16:20:22 -04:00
Kenneth Giusti 062a3c3e70 Configure an authorized user for the QPID broker
If QPID_USERNAME is set, add the user to the QPID broker's
authentication database.  Use the value of QPID_PASSWORD as the
password for the user, prompting for a password if QPID_PASSWORD is
not set.  This requires that all clients provide this username and
password when connecting to the QPID broker, or the connection will be
rejected.

If QPID_USERNAME is not set (the default), disable QPID broker
authentication. This allows any client to connect to the QPID broker
without needing authentication.

Change-Id: Ibd79873379740930ce5f598018c1ca1fffda7c31
Closes-Bug: 1272399
2014-10-01 16:06:52 -04:00
Joe Gordon 82d6e53752 don't set nova.conf auth_strategy
keystone is the default value, so no need to override it.

Change-Id: I8e00071612d79959531feffc7e7993fa8c536359
2014-10-01 12:11:42 -07:00
Sean Dague c53e83601a remove deprecated pip option
--build is a deprecated option in pip, remove it

Change-Id: I8cb5f570431dcbd3389cd3b8d54d9ef40aa66dee
2014-09-30 22:37:52 -04:00
Monty Taylor 50495b0163 Install dib from pip
diskimage-builder makes releases to PyPI and is not part of the
integrated release. Since it's not, we don't need to consume its
master branch - rather, we can consume its releases.

Change-Id: If9297a28604612140c39dfe44e77107d1372f0bb
2014-09-30 09:54:36 -07:00
Jenkins 8e087fa83b Merge "XenAPI: Upgrade built-VM to Trusty" 2014-09-30 07:08:48 +00:00
Kevin Benton 08a5fcc7fa Use service role for neutron instead of admin
When creating the account for neutron to use in keystone,
give it a service role instead of an admin role so it isn't
overprivileged with the ability to create and delete tenants.
Also set the Neutron policy.json file to allow the Neutron
account to administer Neutron.

Closes-Bug: #1344463
Change-Id: I86b15cfcffe549654c28f425c2bcf99403ac10bc
2014-09-29 21:48:54 -07:00
John Griffith 44e16e01da Relocate SERVICE_TIMEOUT to stackrc
cinder_driver_cert.sh restarts volume services
and needs the SERVICE_TIMEOUT variable set, but
that was being declared in stack.sh.

Rather than create another duplicate variable in
the cert script, just move the SERVICE_TIMEOUT
variable to stackrc so it can be shared like other
common variables.

Change-Id: I650697df015fed8f400101a13b6165ac39626877
Closes-Bug: 1350221
2014-09-29 15:13:58 -06:00
Jenkins 7c11e28cf3 Merge "Re-order stack.sh 3: logging and error traps" 2014-09-29 16:59:33 +00:00
Bob Ball 3cd1771408 XenAPI: Upgrade built-VM to Trusty
If you're not using an XVA then the built-VM was previously Saucy, which is
not supported by openstack any more.

Change-Id: I1040d9e43d517582e76f2e1df787986b5ffbc42c
2014-09-29 12:55:10 +01:00
Jenkins 114dc2adbf Merge "XenAPI: Fix race condition waiting for VM to start" 2014-09-29 10:28:57 +00:00
Jenkins 14c8b0c43e Merge "Install haproxy on SUSE distros" 2014-09-29 07:05:29 +00:00
Jenkins 44799c4987 Merge "Allow ceilometer-api to run under mod_wsgi" 2014-09-29 06:13:57 +00:00
Jenkins d844513156 Merge "Ensure that keystone uses global debug setting" 2014-09-29 06:04:26 +00:00
Julie Pichon ac937bc06e Install ldappool when LDAP is enabled
Keystone expects ldappool to be installed when using the LDAP backend.

Change-Id: I35e6585ec8416153ed6d0c6fa8c10c992bf0de6d
Closes-Bug: #1373750
2014-09-29 05:03:26 +01:00
Chris Dent ae6fb18ff2 Allow ceilometer-api to run under mod_wsgi
If CEILOMETER_USE_MOD_WSGI is True then the API app will
run under mod wsgi. The default is false (for now).

The changes are modeled on keystone's use of apache.

Note that these changes are dependent on
https://review.openstack.org/#/c/121823/ in ceilometer.

Using mod_wsgi allows the ceilometer api to handle "concurrent"
requests. This is extremely useful when trying to benchmark
various aspects of the service.

Change-Id: I4c220c3b52804cd8d9123b47780a98e0346ca81e
2014-09-28 17:55:59 +01:00
Sean Dague 68e9f05f7c remove kombu from package lists
This is a pure python library that we should probably let pip
handle so that we don't accidentally only test whatever patched
version is in trusty instead of the upstream versions.

Change-Id: I93d2f9344b9f83d2397466b4bc29c97210919ed9
2014-09-28 10:38:29 -04:00
Gary Kotton 3fcd2baf95 Ensure that keystone uses global debug setting
When setting ENABLE_DEBUG_LOG_LEVEL the keystone screen would ignore
this setting and always use the debug mode.

Change-Id: I934443c2976e936198fc93da4cca717e6cb84e6f
2014-09-27 23:15:54 -07:00
Jenkins 9241e36bf1 Merge "Remove Nova v3 API endpoint" 2014-09-28 02:24:26 +00:00
Jenkins b4aad373ae Merge "Stop setting nova.conf settings that mean nothing" 2014-09-28 01:22:33 +00:00
Jenkins 6145ed0c62 Merge "Fix pkg name for mysql-connector-python on SUSE" 2014-09-28 01:22:26 +00:00
Jenkins f95fe33dcb Merge "Cleanup nova-cinder nova.conf section" 2014-09-27 20:28:22 +00:00
Jenkins e419746ec0 Merge "Enable security group extension in PLUMgrid plugin" 2014-09-27 17:54:55 +00:00
Jenkins 22eeb1f1f3 Merge "Remove the Cisco Nexus monolithic plugin support" 2014-09-27 17:44:24 +00:00
Jenkins 32ec8358c1 Merge "Update Horizon Neutron-related settings" 2014-09-27 17:44:04 +00:00
Joe Gordon 1f79bad7ec Stop setting nova.conf settings that mean nothing
* DEFAULT.fixed_range isn't a valid option in nova anymore
* DEFAULT.osci_compute_workers was never a thing, it should be
  DEFAULT.osapi_compute_workers

Change-Id: Ib08f3e20e4685b331385431276f890205fa76da6
2014-09-26 09:59:47 -07:00
Joe Gordon a7bde1fdf7 Cleanup nova-cinder nova.conf section
Stop using deprecated conf names, don't override default values with
default values.

Change-Id: I2c7e0833a61926b9fc9b5de4e38fdd626501d78d
2014-09-26 09:52:13 -07:00
Jenkins d60c10d6db Merge "XenAPI: stackrc now depends on nproc" 2014-09-25 10:44:51 +00:00
Jenkins da4f28fb84 Merge "Use correct WSGI dir on SUSE distros" 2014-09-25 09:41:56 +00:00
Thomas Bechtold 293869fbac Fix pkg name for mysql-connector-python on SUSE
The correct package name on SUSE distros is python-mysql-connector-python.

Change-Id: I5250356f782f149f87f3d0ffba3380911fa437be
2014-09-25 07:55:15 +02:00
Jenkins 14f6c50b18 Merge "Use mod_version to clean-up apache version matching" 2014-09-25 03:43:29 +00:00
Ken'ichi Ohmichi 3feaa383ce Add Nova v2.1 API endpoint
In Juno cycle, we started to implement Nova v2.1 API and most part
has been implemented now.
For using/testing the API, this patch adds the endpoint setting to
devstack.

Change-Id: I25557cb2b0a1384ee11d3e1ae7d424828e766e50
2014-09-25 02:10:24 +00:00
Ken'ichi Ohmichi fa4ece89f7 Remove Nova v3 API endpoint
Nova v3 API has disappeared in Juno cycle, and we don't test the API
now on the gate since If63dcdb2d05aa0fab0b6848a1248b6678f1ee9ad .
This patch removes the endpoint of Nova v3 API.

Change-Id: I85f87b37558a15d1eaaa781b02fec5b02bd2ab44
2014-09-25 02:08:10 +00:00
Rob Crittenden 18d4778cf7 Configure endpoints to use SSL natively or via proxy
Configure nova, cinder, glance, swift and neutron to use SSL
on the endpoints using either SSL natively or via a TLS proxy
using stud.

To enable SSL via proxy, in local.conf add

ENABLED_SERVICES+=,tls-proxy

This will create a new test root CA, a subordinate CA and an SSL
server cert. It uses the value of hostname -f for the certificate
subject. The CA certicates are also added to the system CA bundle.

To enable SSL natively, in local.conf add:

USE_SSL=True

Native SSL by default will also use the devstack-generate root and
subordinate CA.

You can override this on a per-service basis by setting

<SERVICE>_SSL_CERT=/path/to/cert
<SERVICE>_SSL_KEY=/path/to/key
<SERVICE>_SSL_PATH=/path/to/ca

You should also set SERVICE_HOST to the FQDN of the host. This
value defaults to the host IP address.

Change-Id: I36fe56c063ca921131ad98439bd452cb135916ac
Closes-Bug: 1328226
2014-09-24 18:36:37 -04:00
Thomas Bechtold cbd892b436 Install haproxy on SUSE distros
haproxy package is available for SUSE distros, so install it.

Change-Id: If363dbf439dbea9aafd265c2c665ff4c2b733738
2014-09-24 14:53:30 +02:00
Akihiro Motoki 0843f0ab05 Update Horizon Neutron-related settings
- Horizon no longer has "enable_security_group" setting
  so we need to remove it.
- There is no need to set enable_lb/firewall/vpn to True
  when q-lbaas/q-fwaas/q-vpn is enabled because Horizon now checks if
  Neutron ext-list and enables corresponding dashboards accordingly.

Change-Id: I37073d73e4cba0103ab1a3d935302f1cd0ef73c5
2014-09-24 04:51:57 +09:00
Pritesh Kothari 107278fa5b Remove the Cisco Nexus monolithic plugin support
The Cisco Nexus monolithic plugin does not work without the Open
vSwitch plugin. The Open vSwitch plugin is scheduled to be removed
as per #1323729. This patch removes the Nexus Hardware switch
related code from devstack. The N1KV virtual switch related code
will still remain in the tree as it doesn't depend on Open vSwitch
plugin.

Closes-Bug: #1350387
Change-Id: I82ebb09c64589fc9b7bb790982541bc87c66e6e3
2014-09-23 09:53:01 -07:00
Bob Ball 0be63f3979 XenAPI: stackrc now depends on nproc
Install it automatically in the devstack DomU

Change-Id: Ie282dd128ebc92377d85800585962bc8767483fe
2014-09-23 11:24:04 +01:00
Steve Baker e389aed5bd Allow heat standalone to work devstack stack
For functional testing of heat-standalone it is desirable for
heat to orchestrate on the rest of the cloud which is brought up
by devstack. This change makes the following changes to enable
this when HEAT_STANDALONE=True:

- Don't register the orchestration endpoint or create any dedicated
  heat accounts
- Install and configure the heat keystone V2 auth plugin instead of
  the default v3
- set heat.conf [clients_heat] url so that heat can call its own
  API when no orchestration endpoint is registered
- Modify create_userrc.sh to set the required heat client env
  variables to work with the standalone heat

Change-Id: Idae33bf1a9d550e2575e6390d2d7c8d3b94c401d
2014-09-23 17:18:04 +12:00
Jenkins 8fe3f70efd Merge "Configurable token hashing algorithm" 2014-09-22 19:05:08 +00:00
Jenkins 4c996a75bb Merge "Function for auth_token middleware config" 2014-09-22 19:04:48 +00:00
Thomas Bechtold 8732afe2f9 Use correct WSGI dir on SUSE distros
The current default (/var/www) leads to:

AH01797: client denied by server configuration:
/var/www/keystone/admin

For /var/www the needed permissions on SUSE are not set.
For /srv/www/htdocs/ the permissions are correct on SUSE systems.

Change-Id: I3f2df896daecdfe510d45ff121af2a8433a4d5be
2014-09-22 19:11:03 +02:00
Brant Knudson 3951a94499 Configurable token hashing algorithm
The Keystone server and auth_token middleware were enhanced to
support a configurable hash algorithm.

With this change, the user can set

 KEYSTONE_TOKEN_HASH_ALGORITHM=sha256

in their localrc to use the SHA256 algorithm rather than the
default md5. Any hash algorithm supported by Python's hashlib can
be used. The MD5 algorithm doesn't provide enough protection from
hash collisions and some security standards mandate a SHA2 hash
algorithm.

Change-Id: I8b373291ceb760a03c4c14aebfeb53d8d0dfbcc1
Closes-Bug: #1174499
2014-09-21 13:55:39 -05:00
Jenkins 47ccb7fa36 Merge "Updates DevStack to match Zaqar's API name change" 2014-09-21 17:41:38 +00:00
Brant Knudson 0595237e8a Function for auth_token middleware config
Each project was configuring the auth_token middleware using several
lines of inisets. Since all the projects should configure the
auth_token middleware in the same way create a function and call it.

Change-Id: I3b6727d5a3bdc0ca600d8faa23bc6db32bb32260
2014-09-21 11:18:01 -05:00
Jenkins d13eb8ec40 Merge "Add Core, Ram and Disk filter to fake virt setting" 2014-09-20 19:38:52 +00:00
Jenkins 9f263219ea Merge "Install MySQL-python for keystone with rpm system" 2014-09-20 19:38:49 +00:00
Jenkins 00e3893250 Merge "Configurable Keystone admin workers" 2014-09-20 19:38:44 +00:00
Jenkins a20ab63842 Merge "Make Swift uses API_WORKERS" 2014-09-20 13:03:50 +00:00
Jenkins 94242862b9 Merge "Add trove-api to $API_WORKERS" 2014-09-20 12:52:18 +00:00
Brant Knudson 85a17ea1de Configurable Keystone admin workers
The API_WORKERS option wasn't setting the number of admin workers
for the Keystone server when running in eventlet mode. This will
allow for control of throughput and memory usage.

Change-Id: Iecbce4a601f93784164e53d8b0c542d48f7b5650
2014-09-19 23:27:53 -05:00
Jenkins 106b379741 Merge "Set default API_WORKERS" 2014-09-20 03:46:26 +00:00
Victoria Martínez de la Cruz f080e89307 Updates DevStack to match Zaqar's API name change
Zaqar is a messaging service which provides support for different
messaging patterns and messaging related semantics.
This fix changes the old API name -queuing- to a more accurate name, -messaging-.

Change-Id: I07ca6ca704a4f07d88c192a5ce1a7c626de1fcea
2014-09-19 19:15:02 -03:00
Joe Gordon ecad2f277e Add trove-api to $API_WORKERS
Ie4bb075310a61a0873c9e56e4974600dbb4794a1 missed trove when adding
support for $API_WORKERS.

Change-Id: Iaeb43ef63596a61ad9c128e57d6a2d68b688719e
2014-09-19 11:39:01 -07:00
Chmouel Boudjnah 55dc2c2b1f Make Swift uses API_WORKERS
Keep the default to 1 instead of going wild, cause Swift really would
kill the VM if we let it go (and keeps the old behavior).

Change-Id: I7449c1bb485459169b8870c871b887cbab8be865
2014-09-19 15:40:02 +00:00
Dean Troyer 05bd7b803d Set default API_WORKERS
Set the API_WORKERS default to control memory usage. Maximum is nproc / 2 and
minimum is 2.

* Also updates https://review.openstack.org/#/c/117517/ to remove the
  conditional test as API_WORKERS should always be set.
* Update https://review.openstack.org/#/c/109058/ for ceilometer to use API_WORKERS

The following reviews can move forward either as-is or with minor tweaks:
* Keystone: https://review.openstack.org/#/c/121384/ - remove the if check
* Swift: https://review.openstack.org/#/c/121456/ - unabandon, the default
  to 1 is fine, or remove it to match the others.
* Trove: https://review.openstack.org/#/c/121438/ - remove the if check

https://etherpad.openstack.org/p/devstack-workers has the details

Change-Id: Id28d72ebf01c88b7df301edf7d1dd7ec23fcd0d6
2014-09-19 09:06:21 -05:00
Chmouel Boudjnah 8093f31f1c Install MySQL-python for keystone with rpm system
MySQL-python is needed for keystone and we were installing it
implicitely only for apts and not for rpms. Fix keystone only devstack
install on a pristine vm.

Change-Id: I0d117513af4e2ad58635f7a7b22f7a6e3ff36a38
2014-09-19 10:01:41 +02:00
Jenkins 12294d2b19 Merge "Debian: use libvirt-bin when needed" 2014-09-19 00:21:42 +00:00
Gonéri Le Bouder a214363cf0 Debian: use libvirt-bin when needed
libvirtd is the new name of the init script in Debian testing.
libvirt-bin is still in use on Debian Wheezy.

Since I222b71962f49896063910ff2a25e4f57be4bf819, libvirtd is the
default for Debian, this break the compatibility with Debian Wheezy.

With this patch, we use libvirt-bin only if there is no
/etc/init.d/libvirtd init script.

Change-Id: I13694fef93d36c2e128e15e7dbfaec9230335585
2014-09-18 18:07:39 +02:00
Jenkins a422c85371 Merge "Install tempest-lib as part of install_tempest" 2014-09-18 15:52:50 +00:00
Jenkins 5278b8a0ec Merge "ceilometer compute agent not started correctly" 2014-09-18 09:48:28 +00:00
Jenkins 4c8af972e9 Merge "Set allow_migrate_to_same_host as True by default" 2014-09-18 05:50:06 +00:00
Jenkins 19d1c37a11 Merge "Switch config to use Ironic driver from Nova's tree" 2014-09-18 05:50:02 +00:00
Jenkins 3148d8a713 Merge "neutron: use non-deprecated notification_driver" 2014-09-18 05:49:58 +00:00
Jenkins 5e2654c354 Merge "Add RBD as a known store" 2014-09-18 05:49:54 +00:00
Jenkins 3454209005 Merge "The python-qpid packages must be installed when qpidd is configured" 2014-09-18 05:27:49 +00:00
gordon chung bdeea69d72 ceilometer compute agent not started correctly
command isn't properly parsed after switch to run_process. this
patch corrects the regression

Change-Id: Ib28d4bbf6f150854fc5aa04e3fa4eed92005ce19
Closes-Bug: #1370673
2014-09-17 14:54:21 -04:00
Bob Ball 6a95b605bc XenAPI: Fix race condition waiting for VM to start
Buildroot on Ubuntu Trusty is slow to populate the vnc-port.
Wait for 20 seconds until the port is populated.

Change-Id: I50e5b5a161207d46e8ce0e304d816e8e5b68dbe8
2014-09-17 12:39:50 +01:00
Matthew Treinish 3472386273 Install tempest-lib as part of install_tempest
This commit adds support to devstack to install the newly created
tempest-lib project.

Change-Id: Ifcf56639757ec4814dcd31f791931afe61f5a672
2014-09-16 21:52:03 -04:00
Jenkins 7672ad1dbc Merge "Split keystone mod wsgi config from start/stop" 2014-09-16 13:26:27 +00:00
Jenkins 1d8261f59a Merge "Add an option to enable version 1.0 of the AMQP messaging protocol" 2014-09-16 08:22:48 +00:00
Jenkins 10b2b72344 Merge "Clean up local variable usage - LDAP" 2014-09-16 02:44:27 +00:00
Adam Gandelman c4b067134c Split keystone mod wsgi config from start/stop
We currently cleanup keystone apache config during stop_keystone
when mod wsgi is enabled, but only create it during initial keystone
configuration.  Grenade expects to be able to stop and start the
service without reconfiguring it, using only the respective functions.
This moves cleanup of config from stop_keystone to cleanup_keystone,
and enables/disables the apache vhost during start/stop.

Closes-bug: #1365105

Change-Id: I9e57c9a763fbdb8c5737decfe797ba0e9894150b
2014-09-16 04:36:25 +02:00
Sébastien Han 7c9abcad0d Add RBD as a known store
Adding RBD as a known store in the glance-api.conf file allows us to use
Ceph as a backend for Glance.

Closes-Bug: 1369578

Change-Id: I02cbafa68ca3293cedc9fef7535e79930cc4ee5c
Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
2014-09-15 23:42:42 +02:00
Kenneth Giusti a1875b7b67 The python-qpid packages must be installed when qpidd is configured
The python-qpid package is available for Ubuntu trusty, precise, and
all the supported RHEL based platforms.  This package is necessary if
qpidd is configured as the RPC backend.  It is the client API used to
talk to the broker, and must be installed on each system that
communicates with the broker.

Change-Id: I635d3e857aa4b769a80cb7cde405cfd6cae44d32
2014-09-15 14:21:55 -04:00
Jenkins a1c7256946 Merge "Fix keystone auth parameter to neutron conf" 2014-09-15 16:41:45 +00:00
Jenkins 8800f1c88f Merge "Fix the warning message of CINDER_MULTI_LVM_BACKEND" 2014-09-15 16:41:37 +00:00
Jenkins 6fa3803f5f Merge "ofagent: Switch to IptablesFirewallDriver" 2014-09-15 16:41:23 +00:00
Jenkins 530e69712e Merge "Clean up local variable usage - Neutron" 2014-09-15 16:41:14 +00:00
Dean Troyer ef66a77a67 Clean up local variable usage - LDAP
Change-Id: I9545884eeabcd6c41f3cc5f091a71e726dc44e87
2014-09-15 10:06:48 -05:00
JordanP d4d4a34419 neutron: use non-deprecated notification_driver
Neutron is now using oslo.messaging so it should be
using 'messaging' as its notification driver and not the now deprecated
full python path to the oslo-incubator notification driver.

Change-Id: Ie4a4020e59473473ad62059c66507f5b73b93375
2014-09-15 09:26:53 +00:00
Ian Wienand 887fb54013 Fix preparation of aki/ari/ami images on Ubuntu
The boto tests currently don't run because euca-bundle-image fails on
Ubuntu; e.g.

---
 ++ euca-bundle-image -r x86_64 \
  -i /opt/stack/new/devstack/files/images/cirros-0.3.2-x86_64-uec/cirros-0.3.2-x86_64-vmlinuz \
  --kernel true \
  -d /opt/stack/new/devstack/files/images/s3-materials/cirros-0.3.2

 euca-bundle-image: error: No such file or directory: /opt/stack/new/devstack/files/images/s3-materials/cirros-0.3.2
---

I noticed this in debugging why Fedora tests are running slower.  I
think that the version of euca-bundle-image in Fedora must create the
directory if it doesn't exist, while the Ubuntu one fails.

I also think this doesn't get caught by errexit because it's running
in a special sub-shell to use other credentials.

Change-Id: I79125e956088353aa76a3f7d6d81af1e4f6a27d4
2014-09-14 23:57:25 +00:00
Jay Lau 04e3e502e4 Set allow_migrate_to_same_host as True by default
After OpenStack was installed with devstack on a single node, cold
migration always failed because the default value of
allow_migrate_to_same_host is False. This means that devstack do not
support cold migrate a VM to a same host by default.

Normally, a developer will set up OpenStack with devstack on a single
node, so it is better that we change this value to True to enable
cold migration with a single node after installed by devstack.

Change-Id: I961395f1c79d9600917b6186964c13c92a8a6266
2014-09-14 09:23:30 -04:00
YAMAMOTO Takashi fec7b15cf7 ofagent: Switch to IptablesFirewallDriver
The latest version of ofagent
(ie. after blueprint ofagent-port-monitor)
follows IptablesFirewallDriver naming scheme.

Closes-Bug: #1364731
Related: blueprint ofagent-port-monitor
Change-Id: I690aab71b1cb222ffb8b458c90740ba623b0b37e
2014-09-14 01:26:10 +00:00
Dean Troyer ffd17680d5 Re-order stack.sh 3: logging and error traps
Part 3 of a series

Re-order the setup and check bits in the top portion of stack.sh to
have a logical flow with similar things done together.

No behaviour changes are intended aside from the order of execution.
Any such changes are bugs.

* Move logging and error configuration earlier to cover initial project setup.

Change-Id: Ib16bbe20f224b1cf5e86c7a2fda0d9472c108873
2014-09-13 18:18:43 -05:00
Jenkins 0a49fa517b Merge "Fix Ironic agent ramdisk URL" 2014-09-13 18:40:08 +00:00
Jenkins 7dfe91a803 Merge "Add VMware vmdk cinder backend" 2014-09-13 17:25:04 +00:00
Jenkins b3ae835d7c Merge "don't install boto from packages" 2014-09-13 15:46:27 +00:00
Jenkins 9b2c2296b9 Merge "Update parameter checking with provider network" 2014-09-13 12:38:40 +00:00
Jenkins efa18c73ab Merge "Replace screen_it() with run_process() throughout" 2014-09-13 12:38:34 +00:00
Jenkins b325ea28d2 Merge "Add $TOP_DIR to the path when calling worlddump script" 2014-09-13 12:38:31 +00:00
Jenkins d577fdc794 Merge "Allow setting the number of workers to be used." 2014-09-13 07:18:05 +00:00
Jenkins e2d0795403 Merge "Remove usage of $[ for arithmetic" 2014-09-13 04:45:21 +00:00
Jenkins 62a66f7121 Merge "Configure enabled and disabled extensions in tempest" 2014-09-12 17:41:51 +00:00
Dean Troyer 188493d50d Clean up local variable usage - Neutron
Change-Id: I3e19efd46cadcf0b4129a0f923fa7881f702d65c
2014-09-12 10:50:48 -05:00
Jenkins a915de2c22 Merge "Clean up local variable usage - Zaqar" 2014-09-12 11:26:17 +00:00
Jenkins 56eda9b06d Merge "Add docs environment to tox.ini" 2014-09-12 11:00:23 +00:00
Mauro S. M. Rodrigues 4f58c42972 Add $TOP_DIR to the path when calling worlddump script
The missing reference to $TOP_DIR cause stack.sh to fail when called
from outside devstack's directory

Change-Id: I7faec7720896e7dcfe60fa87fb417f22c8801eef
2014-09-12 02:21:13 +00:00
Jenkins fa5282e89c Merge "Increase CEPH_LOOPBACK_DISK_SIZE_DEFAULT to 4GB" 2014-09-12 02:12:56 +00:00
Jenkins 07810d8a40 Merge "Add ryu team to the MAINTAINERS file for ofagent and ryu" 2014-09-12 01:18:48 +00:00
Jenkins 2b9acae9f2 Merge "Test against latest glance_store code" 2014-09-12 01:07:23 +00:00
Jim Rollenhagen 4cb0d8c8bb Fix Ironic agent ramdisk URL
This URL was wrong in the first place, not sure how that happened.

Change-Id: I8a9a19c9776c06d062751becf8382b9a014e45eb
2014-09-11 16:45:58 -07:00
Chris Dent 2f27a0ed3c Replace screen_it() with run_process() throughout
run_process will use screen if USE_SCREEN=True (the default),
otherwise it will simply start the requested service. Therefore
wherever screen_it used, run_process can be instead.

Where stop_screen was found it has been replaced with stop_process.

A tail_log function has been added which will tail a logfile in a
screen if USE_SCREEN is True.

lib/template has been updated to reflect the use of the new
functions.

When using sg the quoting in run_process gets very complicated.
To get around this run_process and the functions it calls accepts
an optional third argument. If set it is a group to be used with sg.

Change-Id: Ia3843818014f7c6c7526ef3aa9676bbddb8a85ca
2014-09-11 18:59:39 +01:00
Kenneth Giusti 7e58c06a06 Add an option to enable version 1.0 of the AMQP messaging protocol
This change adds the RPC_MESSAGING_PROTOCOL configuration option that
selects the messaging protocol that is used by the RPC backend and
client.

Some brokers can support different kinds of 'on the wire' messaging
protocols.  Qpid, for example, supports both AMQP 0-10 (the default),
and AMQP 1.0.  Use the RPC_MESSAGING_PROTOCOL configuration variable
to override the default protocol for those brokers that support
multiple protocol options.

This new option is necessary in order to enable the new AMQP 1.0
oslo.messaging transport as described in the blueprint.

Note well: currently this AMQP 1.0 functionality is only available on
fedora 19+ platforms.  Support is WIP on ubuntu/debian and rhel/centos
7. Enabling the RPC_MESSAGING_PROTOCOL option on an unsupported
platform will cause devstack to exit with an approriate error
message.

Change-Id: Ib8dea59922844e87d6c947b5dca557f5b5fc1160
Implements: blueprint amqp10-driver-implementation
2014-09-10 14:53:01 -04:00
Jenkins 58deafcd63 Merge "Source lib/dstat in unstack.sh" 2014-09-10 17:23:46 +00:00
Jenkins 6eaaa780bd Merge "Set flavor id for Ironic's baremetal flavor" 2014-09-10 13:31:40 +00:00
Jenkins f94854811c Merge "Run processes without screen" 2014-09-10 12:00:40 +00:00
Ken'ichi Ohmichi f787919b3c Fix the warning message of CINDER_MULTI_LVM_BACKEND
CINDER_MULTI_LVM_BACKEND is marked as deprecated and we recommend
to use CINDER_ENABLED_BACKENDS instead now. However current warning
message shows that CINDER_ENABLED_BACKENDS will be removed.
This patch fixes the message.

Change-Id: I3ca25e4273c3abebce1cfefe1ae4af622b71e993
2014-09-10 11:48:27 +00:00
Jenkins 319054f3bb Merge "Fix regression in Cinder volume type creation" 2014-09-10 09:17:41 +00:00
Jenkins f25baf37c8 Merge "Initialize metadata definitions catalog" 2014-09-10 01:18:44 +00:00
Thang Pham 3e13d60005 Add VMware vmdk cinder backend
The following patch adds VMware vmdk as a cinder backend.

Change-Id: I9c7fd99c3307278326e81758c0b74fc84428d237
2014-09-09 17:30:54 -04:00
Ivan Kolodyazhny 18b9dcc669 Increase CEPH_LOOPBACK_DISK_SIZE_DEFAULT to 4GB
CEPH_LOOPBACK_DISK_SIZE_DEFAULT should be more than 2GB
to make volume snapshot feature works. 2GB is not enough
because min Cinder volume size is 1GB and no snapshot
could be created.

This also fixes related Tempest tests and experimental
check-tempest-dsvm-full-ceph gate job.

Change-Id: Ifa41d0d1764d68ea02dcb32a5fc62f7f6282904d
2014-09-09 22:57:49 +03:00
Bob Ball 2f72050ace Allow setting the number of workers to be used.
Environments with large numbers of CPUs will create a large
number of workers which can have an unnecessarily large
impact on memory usage, particular where you know how many
workers are needed.

Change-Id: Ie4bb075310a61a0873c9e56e4974600dbb4794a1
2014-09-09 15:54:36 +01:00
Monty Taylor 81fa6c7b4b Add docs environment to tox.ini
As per the governance resolution https://review.openstack.org/119875,
projects should have a docs environment in their tox.ini testing
interface. Add one.

Change-Id: Ib3548bc23713e120089ae29b5c4e851de48cf8d3
2014-09-09 10:06:46 -04:00
Dean Troyer 3159a821c2 Run processes without screen
This introduces new run_process() and screen_service() functions and sets the
groundwork to change how DevStack starts services.  screen_service() is simply a
direct call to the screen portion of the old screen_it() function and is intended
to run commands that only need to run under screen, such as log file watchers.

run_process() is a replacement for screen_it() (which remains until all of the
services are updated).  The usage is similar but requires updates to every current
screen_it() call to remove everything that requires the command to be interpreted
by a shell.

The old run_process() and _run_process() functions are still present as
old_run_process() and _old_run_process() to support the deprecated screen_it()
function.  These will all go away in the future once all services have been
confirmed to have been changed over.

There is a similar new set of stop process functions stop_process() and
screen_stop_service().  The old screen_stop() will also remain for the deprecation
period.

As an initial test/demostration this review also includes the changes for
lib/cinder to demonstrate what is required for every service.

I included the scripts I used to test this; tests/fake-service.sh and
tests/run-process.sh are quite rough around the edges and may bite.  They should
mature into productive members of the testing ecosystem someday.

Change-Id: I03322bf0208353ebd267811735c66f13a516637b
2014-09-09 13:54:01 +01:00
Satoru Moriya af9b2516ff Update parameter checking with provider network
Currently, devstack can't deploy OpenStack with flat provider network.

devstack checks whether SEGMENTATION_ID is provided or not when it
deploys openstack with provider network. If it is not provided devstack
prints a error message and dies.
On the other hand, devstack also gets an error from "neutron net-create"
command even if it sets SEGMENTATION_ID with flat option.

In addition to that, because neutron allows partial specs these days,
SEGMENTATION_ID checking should be removed completely.

Also, devstack uses PHYSICAL_NETWORK both as "network name" and "physical
network name" in neutron command. If it is not provided, the command fails
to create network. So devstack should check whether PHYSICAL_NETWORK is
provided.

See also:
https://blueprints.launchpad.net/neutron/+spec/provider-network-partial-specs

Change-Id: I2273e3369c688bbce1a6e39b43635b5548cc2b98
Closes-Bug: #1362382
2014-09-09 19:45:17 +09:00
Flavio Percoco 4f78f8f391 Test against latest glance_store code
Install glance_store from git so we can test Glance against master. This
is useful for both, glance and glance_store gates, to make sure nothing
is broken there.

Change-Id: I6c01165c4384c41f46f2c32d64475703b3178dab
2014-09-09 09:37:42 +02:00
Jenkins 4bd4264960 Merge "Allow devstack to build ironic agent ramdisk" 2014-09-09 03:04:49 +00:00
Jenkins 68fd37e029 Merge "Fix another_role variable for swift" 2014-09-09 00:42:50 +00:00
Pawel Koniszewski 76e3925dc4 Initialize metadata definitions catalog
This patch copies all files from /etc/metadefs to
/etc/glance/metadefs and calls glance-manage db_load_metadefs
after successful database migration. This covers whole
process of initializing the metadata catalog.

Change-Id: I2ffd19bf543708b42229ef78dd17ee317f58e6ad
Implements: blueprint glance-metadata-definitions-support
Co-Authored-By: Travis Tripp <travis.tripp@hp.com>
2014-09-08 13:38:04 -06:00
Devananda van der Veen d0023fd7dd Switch config to use Ironic driver from Nova's tree
Change the Nova config to use the IronicDriver from the Nova tree,
so that the copy of this driver in Ironic's tree may be deleted.

Also removes the unneeded [ironic] "sql_connection" config parameter
which was cruft copied from the nova_bm configuration in commit
06fb29c661

Change-Id: I35473b54d760bfa7395decbe6b086f64db60ab10
2014-09-08 11:27:16 -07:00
Jenkins ba842f5374 Merge "Keystone access log in key-access screen" 2014-09-08 16:23:20 +00:00
Jenkins 8b3217e310 Merge "Change httpd Keystone access log to keystone_access.log" 2014-09-08 16:23:11 +00:00
Masayuki Igawa d3654058e5 Fix another_role variable for swift
An error occurs because ANOTHER_ROLE variable in lib/swift is not set.
This patch gets and sets the value to another_role variable.

Change-Id: I9d67ce243eb6bb42ed7e3522ef816295847d48fa
Closes-Bug: #1363884
2014-09-08 16:41:41 +02:00
Martin André 48a75c14a1 Source lib/dstat in unstack.sh
`stop_dstat` function was extracted into $TOP_DIR/lib/dstat in commit
e0b08d04ab but the new lib was not sourced in
unstack.sh.

Change-Id: I6878552d9f384fdd7882e52000b37ac6a60844c3
Closes-Bug: 1366713
2014-09-08 09:02:44 +00:00
Jenkins 7a68f21b29 Merge "Simplify ironic-python-agent download" 2014-09-08 07:16:38 +00:00
Noboru Iwamatsu b4495eb410 Use mod_version to clean-up apache version matching
This change uses mod_version (shipped by default on everything we care
about) to set-up version-specific config within apache rather than
within devstack scripts.

Clean up the horizon and keystone config file generation to use the
internal apache matching.

Since I6478db385fda2fa1c75ced12d3e886b2e1152852 the apache matching in
'functions' is actually duplicated.  just leave get_apache_version in
lib/apache as it is used for config-file name matching in there.

Change-Id: I6478db385fda2fa1c75ced12d3e886b2e1152852
2014-09-08 15:59:29 +10:00
Jenkins 5ecb1ef86a Merge "FAQ: Removed LXC not being supported on Fedora" 2014-09-08 04:38:10 +00:00
Jenkins 3d458eb703 Merge "Fix to avoid undefined variables in initial sanity checks" 2014-09-08 00:36:53 +00:00
Jenkins 154b400e3b Merge "Add oslo.log" 2014-09-07 17:05:45 +00:00
Jenkins 1821200bc5 Merge "Add oslo.concurrency and oslo.middleware" 2014-09-07 13:00:02 +00:00
Jenkins 6971690873 Merge "Add oslo.utils and oslo.serialization" 2014-09-07 00:00:01 +00:00
Jenkins 01e5f721b4 Merge "Pull dstat logic into its own function so grenade can use it" 2014-09-06 23:59:11 +00:00
Jenkins 17b6938125 Merge "install test-reqs when TESTONLY packages are installed" 2014-09-06 13:28:13 +00:00
Jenkins 0740577371 Merge "Move to epel 7-1 release" 2014-09-06 07:32:54 +00:00
Jenkins 81c5ec1050 Merge "Set configs for glance_store" 2014-09-06 01:25:55 +00:00
YAMAMOTO Takashi c8601e11da Add ryu team to the MAINTAINERS file for ofagent and ryu
Change-Id: I02fa641c34248c9e6bbaab5caa66892165308c36
2014-09-05 12:21:19 +09:00
Hirofumi Ichihara 469a6d8f66 Fix keystone auth parameter to neutron conf
Devstack set auth_uri to  metadata_agent.ini.
But auth_uri is wrong parameter for metadate_agent.

This is regression caused by https://review.openstack.org/#/c/94545/

Change-Id: I3dcf1d619b5d204937f072b3fbb9966069793680
Closes-bug: #1364684
2014-09-05 11:26:02 +09:00
Jenkins 630ef31c37 Merge "Remove sahara-dashboard" 2014-09-05 02:12:24 +00:00
Shuichiro MAKIGAKI 3710eece14 Fix to avoid undefined variables in initial sanity checks
This commit moves check to see if screen is already running after reading
stackrc, and changes messages in check if root is running DevStack.
STACK_USER is defined in stackrc, and SCREEN_NAME can be replaced with
"a non-root account".

Change-Id: I022ed1099169a3549b7e31883abe33d6298f6fa5
Closes-Bug: #1362091
2014-09-05 01:36:05 +00:00
Gilles Dubreuil a8008f0909 FAQ: Removed LXC not being supported on Fedora
Change-Id: Ie62e3d81170702c1b87077f6a1a82f407587c684
2014-09-05 10:35:41 +10:00
Jim Rollenhagen 792dc5f8cf Simplify ironic-python-agent download
The kernel and ramdisk for IPA are now uploaded separately, this
commit simplifies the download by downloading them separately.

Change-Id: I630b0a9c3d1179a6b97754f1474f62ae7da068a5
2014-09-04 16:57:46 -07:00
Jenkins 61a6e253f2 Merge "Use correct class path for token persistence backend" 2014-09-04 23:40:48 +00:00
Jim Rollenhagen f00766b8bb Allow devstack to build ironic agent ramdisk
This provides a way to test Ironic-python-agent code that is
not yet merged.

Change-Id: I85084c383263173a33250592a95a17f46827b347
2014-09-04 16:31:02 -07:00
Brant Knudson 966463c802 Keystone access log in key-access screen
When Keystone was run in Apache Httpd the access log wasn't in a
screen. A new screen called key-access is now started with
Keystone's access log.

Change-Id: Ie1f4d4b679e1b9c87f0cea37deb25f7b6636fe01
Closes-Bug: #1359995
2014-09-04 18:12:37 -05:00
Davanum Srinivas 13249f8709 Add oslo.log
Install the oslo.log library from source so the gate tests
are run against master.

Change-Id: Id2925ce733773d8189ecc0d24b0384c44fad7b72
2014-09-04 13:17:46 +00:00
Davanum Srinivas 0b9464d406 Add oslo.concurrency and oslo.middleware
Install the oslo.concurrency and oslo.middleware libraries from source so
the gate tests are run against master.

Change-Id: I194fc160127ab8b4b7d0086586d8ba7f92c67076
2014-09-04 13:17:13 +00:00
Ian Wienand 62cae13d7e Fix tools/xen/functions for bashate errors
Change I205d675ff231c0403dd135eacc8d57b45317859f modified the matching
for bashate and it has started running on this file, whereas before it
wasn't.  This fixes the errors it is now picking up.

Change-Id: I7876b5c94d90f15e3b0228999c0750bfbebcaa1c
2014-09-04 21:50:06 +10:00
Sean Dague bcd3f63a99 don't install boto from packages
installing boto from packages pins some other pure python libraries
(like requests) in an unexpected way. As this is pure python we should
instead let this be install from pip and thus be controlled by global
requirements.

Change-Id: If5df9de8c3e1ad8faceab4b43c86134dbbc55a51
2014-09-03 11:30:54 -04:00
Flavio Percoco fe65e2dffa Set configs for glance_store
glance_store uses a new section to keep its configs. This patch
duplicates the existing, store related, config options and sets them
under the glance_store section.

Once glance is fully migrated, the old options will be removed.

Change-Id: Ie3de87cf07a321415d111e644ccbb360c7491151
2014-09-03 16:37:38 +02:00
Jenkins 6131ff06a3 Merge "Add myself to the MAINTAINERS file for Swift" 2014-09-03 07:52:54 +00:00
Jenkins 0a8c555079 Merge "Faster nova fixed key generation" 2014-09-02 22:06:15 +00:00
Adam Gandelman 29c3d63b28 Set flavor id for Ironic's baremetal flavor
An existing trove bug prevents it from functioning when Nova flavors exist
with an id that is a UUID instead of an integer, causing Tempest failures.
This sets an integer ID when creating the baremetal flavor for Ironic's use.

Change-Id: Ic090f61a9a47421117dc86b640422f00f468112c
Related-bug: #1333852
2014-09-02 11:49:28 -07:00
Ian Wienand bdab7c74ed Move to epel 7-1 release
EPEL7 has updated.  AFAIK there is no better way to determine this; we
could possibly scrape [1] but this just seems to replace one problem
with another (maintaining the scraping)

[1] http://download.fedoraproject.org/pub/epel/7/x86_64/repoview/epel-release.html

Change-Id: Iadf66c92fcf31edeb0f364a5b1de5d87630e9a42
2014-09-02 09:10:39 +10:00
Masayuki Igawa 264174500c Remove sahara-dashboard
sahara-dashboard has been removed in the commit:
  Change-Id: I1f0e93e1dee3d065c4f00d8bf2042bebc8d45a22
However, there is still sahara-dashboard in extras.d/70-sahara.sh. This
causes an error.

/opt/stack/new/devstack/extras.d/70-sahara.sh: line 7:
/opt/stack/new/devstack/lib/sahara-dashboard: No such file or directory

So this commit just removes it.

Change-Id: Iae76dc5f92a1f0a557d43d74b9b5d2c347cc23a9
Closes-Bug: #1363828
2014-09-01 15:36:15 +09:00
Jenkins a672e02818 Merge "Use the apache 2.4 ErrorLogFormat directive" 2014-08-31 08:32:58 +00:00
Jenkins 312fafd228 Merge "Support GlusterFS cinder backend" 2014-08-31 08:26:51 +00:00
Jenkins 38f5fb7252 Merge "Support ipset for security group" 2014-08-31 06:38:04 +00:00
Chmouel Boudjnah 23a99ff09a Add myself to the MAINTAINERS file for Swift
Change-Id: I9daeadabab9048234d946ea99be7f05254f5bc0c
2014-08-30 22:29:06 +02:00
Jenkins 1fe1670cf1 Merge "Ubuntu: Start openvswitch-switch service after install" 2014-08-30 18:27:01 +00:00
Jenkins 9a59e81eb0 Merge "Add graphviz package to general list for building docs" 2014-08-30 15:43:18 +00:00
Jenkins b6f183ad09 Merge "Detect when Debian is used to launch libvirtd" 2014-08-30 04:09:08 +00:00
Morgan Fainberg 947d7468c8 Use correct class path for token persistence backend
Keystone has moved over to using a new location for the token
persistence backends (drivers). The old values will continue to
work, but this will limit the deprecation warnings for an out
of the box devstack install.

Change-Id: I7c437788c8aee0106fa7f3c37617fbd1220291ef
bp: non-persistent-tokens
2014-08-29 13:26:31 -07:00
Jenkins 434982c96d Merge "Additional Cinder backend: solidfire" 2014-08-29 11:20:28 +00:00
Jenkins b0f7271298 Merge "remove tools/jenkins" 2014-08-29 01:36:54 +00:00
Jenkins 78d7c60aea Merge "scope warnings to only display if the services are enabled" 2014-08-28 22:04:10 +00:00
Sean M. Collins d738a9ecf7 Ubuntu: Start openvswitch-switch service after install
Change-Id: I73a7cec67d0f0782de1598c4ebb1815726e38199
Closes-Bug: #1362782
2014-08-28 15:54:40 -04:00
Morgan Fainberg d074dc7f7e Use the apache 2.4 ErrorLogFormat directive
Use the new ErrorLogFormat directive to make the Keystone logs
under Apache to look like the standard oslo log format.

Change-Id: Ie823abf2fa06b8ce22027c21bef455808a4a768e
2014-08-28 08:39:50 -07:00
mathieu-rohon 62ec61c211 Detect when Debian is used to launch libvirtd
this patch checks if os_VENDOR is ubuntu to launch
libvirt-bin service. Previously, is_ubuntu() was used, but
this function only detects if a deb packaging is used, so
there were no distinction between Ubuntu and Debian.

Change-Id: I222b71962f49896063910ff2a25e4f57be4bf819
Closes-Bug: 1361260
2014-08-28 16:40:14 +02:00
Dean Troyer a25922b961 Fix regression in Cinder volume type creation
The local-vars cleanup (Iedeafa15def1fa26d4ddcbc5f670129f66e38b9d)
spanned (and missed) this fix (Ib35ffc09f6582354010ac8ca35da581ea508877a)
for volume type creation.

Change-Id: I2b95cbc946727d7708283eca0c07ba1eaddf5db8
2014-08-28 09:29:51 -05:00
Ian Wienand d968f2b2bb Remove usage of $[ for arithmetic
$[ is deprecated for the more familiar $((

Required when bash8 starts testing from tox and [1] goes in

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

Change-Id: I8ba180be036836f37ebdbb6da36ff0be486c043e
2014-08-28 16:16:10 +10:00
shihanzhang 9ec58aec64 Support ipset for security group
Install ipset if the q-agt service is enabled.

Partially implements blueprint: add-ipset-to-security

Change-Id: Ic0820a03e9823be39e26254e7c99fe2c4c811c8b
2014-08-28 10:42:03 +08:00
Sergey Lukjanov a90898d904 Move sahara client installation to lib/sahara
All other projects installs their clients in the same lib file as the
main services.

Remove sahara-dashboard installation

Sahara dashboard is now merged into the Horizon and enabled by default
(when data_processing endpoint is available), so, we should stop
installing it as separated dashboard.

Change-Id: I1f0e93e1dee3d065c4f00d8bf2042bebc8d45a22
2014-08-27 17:00:01 -07:00
Doug Hellmann 5cd17f71ca Add oslo.utils and oslo.serialization
Install the oslo.utils and oslo.serialization libraries from source so
the gate tests run against master.

Change-Id: I2cb35c9dfd18588e4caa11134e6a34d83324e136
2014-08-27 09:53:22 -04:00
Attila Fazekas f71b500bea Faster nova fixed key generation
Using bc 64 times in loop is too verbose and slow,
replacing the echo/bc loop with hexdump and urandom.

The hexdump approach is 75 times faster and
does not floods the debug logs.

Using the common function for generating,
this kind of string with lib/heat and by the read_password.

Change-Id: If6a86dfaf0c21e2635c6de0a7b96a8ed7ec5b507
2014-08-27 09:21:13 +02:00
Jenkins a7a2b883b2 Merge "Add and document $NOVA_VNC_ENABLED for forcing VNC on" 2014-08-27 04:13:05 +00:00
Joe Gordon e0b08d04ab Pull dstat logic into its own function so grenade can use it
In order to use dstat on the new side of grenade, pull dstat code into
its own lib with the function start_dstat

Change-Id: I5c908d594a6f3a90ed4b3f744002bf606841cf07
2014-08-26 17:10:52 -07:00
Brant Knudson 2a6ce7197e Change httpd Keystone access log to keystone_access.log
Keystone's access log was going to httpd/access.log, which is the
common place for all access logging. This made it difficult to see
Keystone accesses apart from other access. Keystone's access log
will now be keystone_access.log

This makes the Keystone configuration similar to Horizon which uses
horizon_access.log.

Change-Id: I6e5ac121302b3d138758e6c49dffa9f05ad2fb85
Partial-Bug: #1359995
2014-08-26 18:43:41 -05:00
Jenkins 11d6bde264 Merge "Add mysql devel as testonly alongside mysql-server" 2014-08-26 20:28:56 +00:00
Jenkins 464d48ab32 Merge "Update deprecated service_neutron_metadata_proxy variable" 2014-08-26 14:59:02 +00:00
Jenkins 9292b07202 Merge "Re-order stack.sh 2: target dir setup" 2014-08-26 09:52:43 +00:00
Jenkins fad07b0104 Merge "Re-order stack.sh 1: sanity checks" 2014-08-26 05:15:32 +00:00
Jenkins c73176b5e2 Merge "Change httpd Keystone log level to default" 2014-08-25 23:59:57 +00:00
Jenkins ddcde92e90 Merge "Centralize neutron config file argument generation" 2014-08-25 21:59:50 +00:00
Jenkins 73ad94c9b4 Merge "Don't try to regenerate existing ssl certificates" 2014-08-25 14:42:35 +00:00
Jenkins 40564a2b35 Merge "Adds xiv_ds8k cinder driver support" 2014-08-25 14:42:32 +00:00
Jenkins 38417fc9e0 Merge "Migrate from using glance image-list to openstackclient" 2014-08-25 14:05:53 +00:00
Jenkins 03082affad Merge "Sahara script modified with notification configuration" 2014-08-25 14:05:50 +00:00
Jenkins 6f579e66fd Merge "Set suspend feature flag in tempest for ironic" 2014-08-25 13:58:05 +00:00
Brant Knudson e1d004aa44 Change httpd Keystone log level to default
Having Keystone's log level at debug caused a lot of uninteresting
Httpd-related log lines to be displayed which makes debugging more
difficult than it should be.

Rather than set the log level explicitly, Keystone will use the
Httpd server's setting, which defaults to warn.

Partial-Bug: #1359995
Change-Id: Ieef882944bafd98f7b27497a5276124b21c3e576
2014-08-24 17:53:46 -04:00
Jenkins a8f0d966a1 Merge "Change httpd Keystone log to keystone.log" 2014-08-24 21:31:35 +00:00
Jenkins 7d9596781c Merge "Remove firewalld on Fedora 20 by default" 2014-08-24 01:23:14 +00:00
Maru Newby 1a332836df Add mysql devel as testonly alongside mysql-server
Neutron needs to be able to install MySQL-python in the functional
test job, which requires devstack to install mysql devel libraries as
testonly.

As per sdague's recommendation mysql devel libraries are now installed
for nova as well.  In the future, any service that installs
mysql-server should also install mysql devel libraries for consistency.

Related-bug: #1346444

Change-Id: Ie715841e33a2c2d31cb4ac724b302eb98ed3366a
2014-08-23 20:28:21 +02:00
Jenkins 3224f602f9 Merge "XenApi: Fix domu typo in neutron setup" 2014-08-23 10:54:12 +00:00
Jenkins 04f9b898a2 Merge "Clean up local variable usage - Keystone" 2014-08-23 09:59:43 +00:00
Jenkins 45e2d979d7 Merge "Clean up local variable usage - Horizon" 2014-08-23 09:59:40 +00:00
Jenkins 3a2837a564 Merge "Clean up local variable usage - Swift" 2014-08-23 09:59:36 +00:00
Jenkins f9ae6aed61 Merge "Fix missing --container-format options" 2014-08-23 09:59:33 +00:00
Jenkins 47290ee1b2 Merge "Clean up local variable usage - cinder" 2014-08-23 09:59:30 +00:00
Jenkins 03dd65900c Merge "Clean up local variable usage - Remainder" 2014-08-23 09:56:54 +00:00
Jenkins 7470b4485a Merge "Add some known contacts" 2014-08-23 09:56:50 +00:00
Jenkins 7e585f6370 Merge "Source fixup_stuff..." 2014-08-23 08:25:39 +00:00
Jenkins dc85b3a772 Merge "Clean up local variable usage - Account setup" 2014-08-23 08:25:35 +00:00
Jenkins 50d4158d6c Merge "Use tox for bashate testing" 2014-08-23 08:24:57 +00:00
Jenkins 8dc661c2d2 Merge "Install sqlalchemy-migrate from master if requested" 2014-08-23 07:39:40 +00:00
Jenkins 15370b84e2 Merge "Share the fixed network for Ironic" 2014-08-23 07:39:37 +00:00
Jenkins 37b5481f3d Merge "Remove API_RATE_LIMIT variable since it's wrong anyway" 2014-08-23 07:39:33 +00:00
Jenkins 0eee740a4f Merge "Rename Marconi to Zaqar" 2014-08-23 01:43:29 +00:00
Brant Knudson cfc9465ee0 Change httpd Keystone log to keystone.log
The normal extension for log files is .log. Log rotation should
work because the extension is as expected.

Change-Id: Ia5e42ea9d953e8395b86ab58cdef6c2d852efc94
Related-Bug: #1359995
2014-08-22 16:49:02 -05:00
Jenkins 219e9c2278 Merge "Build an image for heat functional tests" 2014-08-22 09:21:28 +00:00
Jenkins 276b158de2 Merge "Utility functions for building test images" 2014-08-22 09:16:38 +00:00
Flavio Percoco 4059e3ae7b Rename Marconi to Zaqar
2 files missed the rename patch, this patch renames those files.

Change-Id: Ic0393fe577a6bfc170ebb9de5a7db4f27d76d28c
2014-08-22 09:06:58 +00:00
Jenkins 53cfcc1c2b Merge "Ironic: Setup/Configure iPXE" 2014-08-22 07:16:04 +00:00
Steve Baker 2a6009cd00 Build an image for heat functional tests
This is only triggered if HEAT_CREATE_TEST_IMAGE is True

This custom image contains the following:
* heat-cfntools from git rather than the packaged version, which
  will allow gating on heat-cfntools changes
* os-collect-config, os-apply-config, os-refresh-config, which
  will allow gating on these projects, and will allow heat
  software-config tests to be written
* software-config hooks from heat-templates, which will allow tempest
  tests to be written for software-config with different configuration
  tools (script, puppet, cfn-init etc)

The heat functional tests will soon replace the heat-slow tempest job,
so heat-slow tempest configuration will be removed after the heat
functional test job is gating.

Change-Id: I2e0490c1662a184d4c6d8c7e9ebb128e1912f1b0
2014-08-22 15:02:26 +12:00
Steve Baker da786b2fd9 Utility functions for building test images
These functions allow images to be built using diskimage-builder which
contain packages built from local project checkouts:
build_dib_pip_repo() - Builds a local pip repo from local projects and configures
                       apache to serve it
disk_image_create_upload() - Creates and uploads a diskimage-builder built image

The unused function lib/heat disk_image_create has been deleted.

Change-Id: Ia75c7c35bfd48dbe6ae3cb9c3241de0b598cbf84
2014-08-22 15:02:26 +12:00
Salvatore Orlando 3046bc68c0 Configure enabled and disabled extensions in tempest
This patch adds support for configuring the api_extensions
option of the various feature-$service-(enabled|disabled)
sections in tempest's configuration file.

Please note that enabled extensions for the object storage
service are specified in tempest using the discoverable_apis
configuration options.

Partially-implements: Blueprint branchless-tempest-extensions

Change-Id: Ib64c0a474b153f42f3a4a427d86275c85f107997
2014-08-21 15:41:33 -07:00
Matt Riedemann ad9776e107 Remove API_RATE_LIMIT variable since it's wrong anyway
The api_rate_limit config option in nova has defaulted to False since
Havana per commit cfdc59860ef1482e3b064f90f719ec9e484590ce. This change
removes the variable and code that's used to set it in nova.conf since
if we left it in we'd change the default to False to match the code, and
we'd be breaking anyone that is relying on this to be True anyway.

Note that this variable exists in devstack essentially for Tempest so we
can set it in devstack-gate, which is kind of a moot point now given the
code defaults to it anyway.

Change I21dbd72f9959a4e3d62c36831df03b351a51172e removes it from
devstack-gate.

Change-Id: Ib0538bdd23b17e519b9c917018ccc9fa8c6425c5
2014-08-21 13:40:13 -07:00
Ihar Hrachyshka cf355aa012 Install sqlalchemy-migrate from master if requested
Added possibility to install sqlalchemy-migrate from master instead of
pypi packages.

Change-Id: I8af92cbb03609799442b05db9772e3c82b76725b
2014-08-21 12:28:30 +02:00
Jenkins 89a263bc41 Merge "A service to install diskimage-builder" 2014-08-21 05:46:12 +00:00
Jenkins 8d5a84029f Merge "Install heat-cfntools and heat-templates repos" 2014-08-21 05:43:39 +00:00
Jenkins cfe247eeaa Merge "Ironic and baremetal install diskimage-builder with pip" 2014-08-21 05:21:50 +00:00
Matt Riedemann 18d5db8452 Add graphviz package to general list for building docs
A few projects are now gating on docs not having warnings/errors in them
during the docs build with sphinx, so developers are going to want to be
able to run 'tox -e docs' locally and fix issues.

The graphviz package is used by sphinx when building docs but you have
to get it from the distro, so this change adds the package to the
various distro lists.

Closes-Bug: #1359749

Change-Id: I7b7dee5e5d0dce6d5020b3e711f500118be163f8
2014-08-20 18:09:44 -07:00
Robbie Harwood (frozencemetery) 4e07fdcba7 Add and document $NOVA_VNC_ENABLED for forcing VNC on
This allows multinode setups to function correctly without enabling the
unneeded n-novnc and n-xvnc services on pure compute nodes.

Change-Id: Ie02734bb598d27560cf5d674c9e1d9b8dca3801f
Closes-Bug: 1342155
2014-08-20 17:09:59 -04:00
K Jonathan Harker 0c256abd76 Use tox for bashate testing
Create a tox.ini file to install bashate into a virtualenv for running
tests. It can be run with a command such as "tox -v -ebashate". The find
command being used is equivalent to the default list of files discovered
by bashate plus the exclusion of the .tox/ directory. Also add the .tox/
directory to the .gitignore file.

Change-Id: I94cab4e4a9118d62edfce29ead1f1e2a5f48e529
2014-08-20 12:53:42 -07:00
Lucas Alvares Gomes 5851e5f698 Ironic: Setup/Configure iPXE
Setup the enviroment and configure Ironic to use iPXE for deployments. If
IRONIC_IPXE_ENABLED enviroment variable is True, DevStack will now start
and configure an Apache HTTP server to serve the images, will copy the
undionly.kpxe boot file in place of the standard pxelinux.0 and will set
the right configuration to Ironic to deploy the images using iPXE+HTTP.

Implements: blueprint ipxe-boot
Change-Id: I0ea40cb8bbf9236c634f803c2bde1081634679ff
2014-08-20 17:32:32 +01:00
Clark Boylan 33dc8699e6 Latest tox should work for openstack now, use it
Remove the tox pin that was in place to avoid issues with tox 1.7.0 and
1.7.1. Latest tox (1.7.2) is compatbile with openstack's tox.ini files
again and should work with tempest. This change is self testing and will
confirm this.

Making this change is important so that devs can stop worrying about
package version pins and helps ensure we don't get left behind by
upstream.

Change-Id: Ibf2102d6ad439dd354ae687f7aafec9ceca6cf9c
2014-08-19 22:37:10 -07:00
Dean Troyer 6430919f05 Clean up local variable usage - Zaqar
Change-Id: Ie274ce587134d3a3a928a3825dc4452298c5c4d0
2014-08-19 22:17:54 -05:00
Dean Troyer 16ef976007 Clean up local variable usage - Account setup
This does the local var cleanup for the account creation in the following projects:
* Ceilometer
* Glance
* Sahara
* Trove

Change-Id: I67631578f79eeaaf2814db84f0f5c19d93aee4f3
2014-08-19 19:31:38 -05:00
Dean Troyer b1e3d0f222 Clean up local variable usage - Remainder
Minor cleanups in a couple ofplaces:
* Config funtions
* Stackforge
* TLS

Combined a couple of smaller changesets that are loosly related

Change-Id: Ifa16f2e4c0eca0ef3401c0dfdc4f3d91809021a5
2014-08-19 19:14:04 -05:00
Dean Troyer e8a35acd1d Clean up local variable usage - cinder
Change-Id: Iedeafa15def1fa26d4ddcbc5f670129f66e38b9d
2014-08-19 19:12:27 -05:00
Jenkins 58f8f429c8 Merge "enable multiple collector workers" 2014-08-19 23:50:24 +00:00
Jenkins b939caea45 Merge "Avoid using deprecated Q_AGENT_EXTRA_AGENT_OPTS in ML2 setup" 2014-08-19 23:48:41 +00:00
Jenkins b0b62431c8 Merge "Set display name in apache processes" 2014-08-19 23:48:33 +00:00
Jenkins f6b450bc6a Merge "Remove code tagged as "can be removed after Icehouse"" 2014-08-19 23:48:24 +00:00
Jenkins 2be82b129a Merge "Allow cinder types to be created without be file" 2014-08-19 23:48:10 +00:00
Jenkins fb2ce943cf Merge "Add ability to switch database driver" 2014-08-19 21:34:50 +00:00
Steve Baker 122ab70330 A service to install diskimage-builder
Enabling service 'dib' will install the following repos:
* diskimage-builder
* tripleo-image-elements
* os-collect-config
* os-refresh-config
* os-apply-config

These repos are already pre-fetched in devstack-gate.

This will facilitate gating on changes in these projects by building
a custom image then running the heat-slow job against that image.

diskimage_builder is pip installed from the current git checkout
if the dib service is enabled. This allows devstack gating on
diskimage-builder changes while also allowing diskimage-builder to
be installed from releases for other scenarios (for example, ironic).

Change-Id: Ia911cdee86f5b2e2ba1557e5aa8bf392b92ef555
2014-08-20 09:06:34 +12:00
Steve Baker 315971d972 Install heat-cfntools and heat-templates repos
These projects contain agents which can be installed on custom
images. Installing these repos will allow a future change to
build a custom image containing these projects. This will allow
gating on any changes in these projects by running heat-slow
on the custom image.
The corresponding devstack-gate change is
https://review.openstack.org/#/c/92055/
Change-Id: I7b1343c094f755f79ddeb1bac3ff4c0daa3fb70c
2014-08-20 09:06:34 +12:00
Steve Baker cbfb3ae1c8 Ironic and baremetal install diskimage-builder with pip
This change installs diskimage-builder with pip instead
of from git, and only if the executable ramdisk-image-create
isn't already installed.

This allows the ironic and baremetal to consume the latest
release of diskimage-builder by default, and gives the option of
defining version constraints for which version to install.

If the dib service is enabled (which it isn't by default) then
diskimage-builder will already be installed from git and will
not be re-installed for ironic and diskimage-builder.

Change-Id: Ic6613a11e2c4fb7a1261b81cdc2cf958515e60cd
2014-08-20 09:06:31 +12:00
Jenkins f8f97a677a Merge "Guard for worlddump in case LOGDIR is undefined" 2014-08-19 20:39:27 +00:00
Dean Troyer 68c9adbad3 Add some known contacts
These were taken from frequent committers for the area.

Change-Id: I3bdcb3e54cfb1a8e3d53748ab39da009b428c593
2014-08-19 14:17:48 -05:00
Adam Gandelman cec9792f7f Share the fixed network for Ironic
When using Ironic, ensure the private Neutron network is shared across
all tenants.  This allows connectivity to the host's TFTP server from
nodes booted accross multiple tenants and more closely resembles the current
real world Ironic PXE+IPMI use cases.

Change-Id: I5d293493bafa37b1796f47aa738cfff2e3be9f59
2014-08-19 11:09:07 -07:00
Dean Troyer 85ebb3a868 Remove firewalld on Fedora 20 by default
firewalld interacts badly with the libvirt on f20, causing slow-downs
so great that it can timeout the gate.

Developers who want to leave it enabled should set FORCE_FIREWALLD=True

Change-Id: I5252a12223a35f7fb7a4ac3c58aa4a3cd1bc4799
2014-08-19 11:18:15 -05:00
Malini Kamalambal 9504bb376d Rename Marconi to Zaqar
This patch changes all Marconi references to Zaqar.

Change-Id: Iec4aeca54c0f383c995fba564bc59daa550d3747
Implements: blueprint project-rename
2014-08-18 14:59:49 -04:00
Rick Harris 2696e5a067 Guard for worlddump in case LOGDIR is undefined
If LOGDIR is undefined, we'll end up calling worldump with the `-d` option but
pass in an empty string as the option value. This causes an argument parsing
error inside worlddump.

The proposed fix is to detect if LOGDIR is undefined, and if so, omit the `-d`
argument.

Change-Id: I77968849ebd3e3bebd2e5929b87b60fc1b6541bf
Closes-Bug: 1333321
2014-08-18 13:55:23 -05:00
gordon chung 80786e0d23 enable multiple collector workers
currently, a single worker thread writes received samples into
database. this is fine for most occasions but during message
spikes, it is not enough. this patch increase amount of workers to
half the number of processors (so we can ensure ceilometer maintains
lightweight design)

this will also help validate mulitple worker setup works.

Partial-Bug: #1336755
Change-Id: I33037f2f9ebfda43238e5cd0cff75adbed65d055
2014-08-18 09:08:13 -04:00
Dean Troyer 010269341e Fix missing --container-format options
Cooresponding fix to https://review.openstack.org/114619 for lib/baremetal.

Closes-bug: 1357602
Change-Id: I1f4482f218b51ce7d7617cbd5771790c8dcb631a
2014-08-18 01:29:35 +00:00
Ramy Asselin 57f8b52326 Allow cinder types to be created without be file
3rd party ci tests have not whitelisted errors:
"Not Whitelisted Volume type with name * could not be found."

These are creating noise. Instead of requiring a backend file
for each vendor, remove the if statement and just create the
necessary type for each defined back-end.

Change-Id: Ic88efa20eb53864e4f3d22d3306841797dcd118d
2014-08-15 16:21:40 -07:00
Dean Troyer 04a351133a Source fixup_stuff...
...so it can pick up config variables from local.conf

Change-Id: I0991f59881f16c72789e3b0342c26a2419ba0878
2014-08-15 14:03:55 -05:00
Jim Rollenhagen a6a45467c4 Add ironic-python-agent support to devstack
This adds support for using ironic-python-agent with Ironic.

Change-Id: I8f1e93e09ddde447996ecbedceb091f51d60040e
2014-08-15 18:09:14 +00:00
Jim Rollenhagen 722284f24b Fix image create functions for Ironic
This fixes an issue where --container-format was not passed to
'openstack image create'.

Change-Id: If1431c8dc8ff8e940f99e984939f5b2732bb0ee0
Closes-Bug: 1357495
2014-08-15 18:04:58 +00:00
Christian Berendt 21cb67c1e5 Remove code tagged as "can be removed after Icehouse"
Change-Id: Ib78f3d55c9dcd46e0dfc3343c32e077cf530b5f7
2014-08-15 16:40:15 +02:00
ihrachyshka cbea3447c7 Add ability to switch database driver
Also added mysqlconnector packages into default installation.

blueprint enable-mysql-connector

Change-Id: Ib2cda7cb183dc8f0ff4759cc6e9ecab469fd121c
2014-08-15 15:47:22 +02:00
Jenkins 735f4d340f Merge "Hide output when configuring apt retry" 2014-08-15 07:16:18 +00:00
Jenkins 9b4e65baff Merge "Add keepalived, conntrackd as dependencies" 2014-08-15 06:16:34 +00:00
Jenkins 5e4a42db0e Merge "Work around pip installed pkgs on Rackspace image" 2014-08-15 05:07:17 +00:00
Jenkins c85e428f95 Merge "Add swift tempurl support to devstack" 2014-08-15 04:51:28 +00:00
Jenkins a3ecab6618 Merge "Modify glance image-create commands to use openstackclient" 2014-08-15 00:50:41 +00:00
Dean Troyer 0e8dcedf71 Re-order stack.sh 2: target dir setup
Part 2 of a series

Re-order the setup and check bits in the top portion of stack.sh to
have a logical flow with similar things done together.

No behaviour changes are intended aside from the order of execution.
Any such changes are bugs.

* Consolidate DEST dir setup
* Move rpc & database init to just before project init

Change-Id: I2af1d4ed32ec34417c04592bf94fe645bb97f831
2014-08-14 15:34:25 -05:00
Dean Troyer d3bf9bdbda Re-order stack.sh 1: sanity checks
Part 1 of a series

Re-order the setup and check bits in the top portion of stack.sh to
have a logical flow with similar things done together.

No behaviour changes are intended aside from the order of execution.
Any such changes are bugs.

* Do sanity checks that have no configuration needs earlier
* Do supported distro check earlier

Change-Id: I7d15bac199d6c4382d4a4d222784d34f2707da56
2014-08-14 15:34:25 -05:00
Thang Pham eae7c9979a Support GlusterFS cinder backend
Commit 0971833 added support for multiple cinder backend types.
It initially only contains lvm and nfs. The following patch adds
glusterfs to the backends supported.

Change-Id: I9d5c1dfd4e0d05fcbfe3c35172150c57aa4e6eb2
2014-08-14 15:43:55 -04:00
Andrea Frittoli 122a16fb95 Tempest allow_tenant_isolation in auth section
Tempest change 107685 moves allow_tenant_isolation from compute
group to auth group, making the old format deprecated.
Switching to the new format.

Change-Id: Iff79986c2564610efde4791b7e61df3db859e199
2014-08-14 17:16:58 +01:00
Felipe Reyes 2c95fcd60c Set display name in apache processes
This change makes apache set process group name in the process name,
so when listing the processes the user can easily identify what's
running in each apache process. This is specially useful to debug
memory consumption or when a process consumming too much CPU.

Change-Id: I9787980052f451f452d3b8e5e51385ad5aa01e6a
2014-08-14 17:48:33 +02:00
Jenkins 5dd1778909 Merge "Setup AMQP properly for glance-registry" 2014-08-14 15:11:15 +00:00
Jenkins 4c99da8f23 Merge "Remove AUTHORS" 2014-08-14 13:12:31 +00:00
Assaf Muller 7f31a93ba0 Add keepalived, conntrackd as dependencies
Neutron L3 HA blueprint l3-high-availability requires
keepalived and conntrackd in order to work for developers as
well as for functional tests.

Change-Id: Ic32d913c2bc6fae339b4d5ec509a77df5a21de72
2014-08-14 14:41:17 +03:00
Jenkins 6db41b9716 Merge "Exact match rhel6" 2014-08-14 04:40:54 +00:00
Ian Wienand 27fc42d2bc Remove AUTHORS
AUTHORS isn't really relevant in the days of git.  devstack has no
formal release where it would make sense to auto-generate an AUTHORS
file either.

If you really want to see who contributes, you can run

 $ git log --format='%aN <%aE>' | sort -f | uniq > AUTHORS

Change-Id: I9e154f7fdf814b4bd21a9d4cf82e46ec3db2f1ca
2014-08-14 13:52:28 +10:00
Jenkins 3c24a21c5b Merge "Allow to use flat providernet for public network" 2014-08-13 23:17:06 +00:00
Jenkins c24889cf67 Merge "Cleanup lib/ironic" 2014-08-13 23:16:08 +00:00
Akihiro Motoki 2307f9de75 Avoid using deprecated Q_AGENT_EXTRA_AGENT_OPTS in ML2 setup
Q_AGENT_EXTRA_AGENT_OPTS is deprecated now and stack.sh displays
the warning that it will be removed early in "K" cycle.
Neutron ML2 devstack uses Q_AGENT_EXTRA_AGENT_OPTS to pass tunnel
configurations to Neutron plugin agents.

This commit removes the usage of Q_AGENT_EXTRA_AGENT_OPTS and
configures these config options directly.

Change-Id: I7fc1613ff78c0a8b1e80cc041b06f5d4680c34f2
Closes-Bug: #1354670
2014-08-14 08:11:56 +09:00
Jenkins 0824c175ce Merge "Add MAINTAINERS.rst" 2014-08-13 21:50:58 +00:00
Jenkins 629ba0630e Merge "Disable in-band control for PUBLIC_BRIDGE" 2014-08-13 21:47:25 +00:00
Dean Troyer 1bbfcc7a79 Clean up local variable usage - Horizon
Change-Id: I1924ecdd68a9c7bf947c06f33aa79c38ada1d3b4
2014-08-13 11:26:46 -05:00
Boris Pavlovic 0d02924639 Setup AMQP properly for glance-registry
As we integrated OSprofiler with Glance:
https://review.openstack.org/#/c/105635/

glance-registry service started using notification API so it requires
proper seted up AMQP.

Change-Id: I0c4bb8a10960ed3ee06b67a209703d7ee81cf1ca
2014-08-13 19:21:56 +04:00
David Shrewsbury cf21b71024 Set suspend feature flag in tempest for ironic
Suspend isn't a feature supported by ironic/baremetal.

Change-Id: I49b3b07f9ffd3fcbda8e32e48dcf20062ac7f7d8
2014-08-13 07:03:58 -04:00
Chris Dent 4922bfa846 Change ordering of ceilometer service startup
If the compute-agent starts before the collector directly
after a start or restart of the AMQP service, samples published from
the compute-agent can be lost before the collector has had a chance
to establish connections. These lost samples impact the reliability
of tests which run immediately after the service [re]start.

Note: if there is a restart of the ceilo service, but not the AMQP
service, the problem does not present itself becaue the messaging
service maintains some state on the exchanges it keeps.

Change-Id: I1c06d0511fbf93050cda56d9d2de0ff00813dfb6
Closes-bug: 1355809
2014-08-12 21:57:25 +01:00
Jenkins fe3be5c38e Merge "Don't set tunnel_types on VLAN network type" 2014-08-12 09:32:51 +00:00
Jenkins 1316ff1140 Merge "Enable custom BUILD_TIMEOUT" 2014-08-12 06:43:14 +00:00
Gary Kotton dd74550581 Update deprecated service_neutron_metadata_proxy variable
Commit c2697f8735a38fb05d54ff4f82110829ead85ee9 moved
service_neutron_metadata_proxy to the neutron section.

Change-Id: I08cdaae9bded1797c663d1bfeaae61535ce64099
2014-08-11 23:40:53 -07:00
Adam Gandelman 7614d21fe1 Centralize neutron config file argument generation
Moves dynamic generation of the --config-file list from local functions
to global utility functions.  This breaks up the current non-obvious
dependency between start_neutron_agents and _configure_neutron_l3_agent
for setting the correct arguments for the vpn agent.   This also similarly
updates generation of arguments for neutron-server and neutron-l3-agent to
use said functions.  Finally, this cleans lib/neutron up a bit and moves
all default paths to config files and binaries out of local functions and
into the top-level, allowing external tools like Grenade to make use of the
library for starting Neutron services and agents currently.

Change-Id: I927dafca8a2047d6c0fd3c74569ed2521f124547
Closes-bug: #1355429
2014-08-11 14:45:22 -07:00
Alon Marx d178cf401e Adds xiv_ds8k cinder driver support
To use xiv_ds8k, set the following in localrc:
CINDER_ENABLED_BACKENDS+=,xiv:<volume-type-name>
XIV_DRIVER_VERSION=<version-string>
SAN_IP=<storage-ip-or-hostname>
SAN_LOGIN=<storage-admin-account>
SAN_PASSWORD=<storage-admin-password>
SAN_CLUSTERNAME=<cluster-name>
CONNECTION_TYPE=<connection-type> iscsi|fc
XIV_CHAP=<chap-type> disabled|enabled

Change-Id: I084ad2b2cb8e34c4a8aed77a52e90f9a9739f1f3
2014-08-11 19:42:29 +03:00
Vitaly Gridnev e50fcb12d5 Sahara script modified with notification configuration
This change enable Sahara notifications if ceilometer is used

Partially implement: blueprint ceilometer-integration

Change-Id: I4ec79052194206481cfbbf0d848aa43bcb0c0660
2014-08-11 15:40:51 +00:00
Ian Wienand f901dd0049 Add MAINTAINERS.rst
Add a MAINTAINERS.rst file with two goals

1) to help seed initial reviews with relevant people.  Devstack by its
nature attracts new contributors, so when they hit some obscure bug,
this will help them find out who to put on a review.

2) core reviewers can't know everything about everything.  Having
someone who has flagged themselves as interested in an area sign-off
off on relevant changes can help move changes through.

Change-Id: Idf0914f55d72832a829ac99edf763ff51f71ca6c
2014-08-11 12:03:16 +10:00
Jenkins 84744d8e38 Merge "Adds support for Hyper-V image formats" 2014-08-09 00:35:05 +00:00
Jenkins 067106e477 Merge "Makes vpn plugin configurable" 2014-08-08 20:11:54 +00:00
Jenkins 1357d0977a Merge "remove kernel override ability" 2014-08-08 15:54:06 +00:00
Jenkins 9039614a65 Merge "remove saucy support" 2014-08-07 23:38:01 +00:00
Sean Dague 5bae6ca0be scope warnings to only display if the services are enabled
On my devstack environments I'm now always getting the Q_AGENT
warnings even though I don't have neutron enabled. This is mostly
confusing.

For these juno warnings lets just make sure that the whole thing
only prints out in the case where we've actually got that service
enabled.

Change-Id: I7d1bb2e65594c8bee2f572ca58a1b666e5d6caed
2014-08-07 19:28:41 -04:00
Jim Rollenhagen abbb0e9a0d Add swift tempurl support to devstack
This commit adds the ability to automatically set a tempurl key
in swift for service accounts.

Change-Id: I0d5d16c5601d022f034df2cc291106c5dc13511e
2014-08-07 17:45:28 +00:00
Alessandro Pilotti ca8239449f Adds support for Hyper-V image formats
Adds support for VHD and VHDX image formats, including gz compression.

Change-Id: I9b143c9883b947397b435a671f13703f78019d23
Closes-bug: #1353726
2014-08-07 19:30:34 +03:00
Jenkins 4407315ae9 Merge "Support Router Advertisement Daemon (radvd) for IPv6" 2014-08-07 15:05:37 +00:00
Jenkins 1dde567e75 Merge "Use Mongo DB as the default backend" 2014-08-07 15:05:22 +00:00
Kevin Benton e3cfbf1580 Don't set tunnel_types on VLAN network type
The current code sets tunnel types for the neutron agent
even when the network type is 'vlan'. This results in the
agent not starting because 'vlan' is not a valid tunnel type.
This patch changes it so tunnel_types is not populated when
vlans are used.

This bug just now surfaced because of commit
8feaf6c951 requiring Q_ML2_TENANT_NETWORK_TYPE
to be set to avoid being set to the 'local' type.

Change-Id: If2bc57b36dad2bfb34df573581acce176604812e
2014-08-07 04:56:24 -07:00
Yong Sheng Gong 5988e623c3 Makes vpn plugin configurable
Currently, it is hardcoded and not good for those who have their
own vpn plugin developed.

Change-Id: I6244040dd2abea016556cd515e06f53edbb993a0
Closes-bug: 1339977
2014-08-07 04:07:15 +00:00
Malini Kamalambal f7ae9ff5dd Use Mongo DB as the default backend
With the gate upgrade to Trusty, Marconi should now be able to run with
Mongo DB at the gate.

Change-Id: I7bfe25d42c9429606ee209860685077806eb6756
2014-08-06 20:59:17 -04:00
Adam Gandelman 6d27148eb6 Cleanup lib/ironic
This moves around a bunch of functionality and attempts to isolate setup
steps into discrete functions (new or existing), making them easier to
consume from outside of Devstack (ie, Grenade).

Change-Id: I480167dcc008506ec2fe8c412db4114b74496e60
2014-08-06 16:48:35 -07:00
Adam Gandelman fdfe7a010e Set Tempest feature flags for Ironic
Many features tested by Tempest are not relevant to baremetal deployments.
This sets compute-feature-enabled flags accordingly.

Change-Id: I8a1820946bfc5d8f8c25692f9db67df59506126e
2014-08-06 16:42:01 -07:00
Jenkins d8baf23634 Merge "NSX: remove req_timeout as it's not longer used" 2014-08-06 13:47:46 +00:00
Jenkins 8f847ef53b Merge "Revert "cleanup potentially installed older oslo.config"" 2014-08-06 03:34:16 +00:00
Jenkins 1fc022f947 Merge "Clean up local variable usage - Heat" 2014-08-06 01:51:14 +00:00
Jenkins 75ee80cfef Merge "Clean up local variable usage - Ironic" 2014-08-06 00:49:31 +00:00
Sean Dague 34bd2313f8 remove tools/jenkins
The last non bashate change in this directory was from 2012, which
means I assume nothing down here is useful any more as this is largely
the precursor to devstack-gate.

Remove it for cleanliness reasons and to not confuse people setting
up 3rd party ci.

Change-Id: I54f06c2ff5a49a9f811df07a7cdfda4a675953c8
2014-08-05 17:37:36 -04:00
Sean Dague 01796fad29 remove kernel override ability
This was landed to try to address an issue with netns vs nbd during
icehouse development. It never really got us anywhere, and is now
just cruft.

Change-Id: Ie498fae8d1f796c1fc83459c65d0de948d1d50ce
2014-08-05 17:37:36 -04:00
Sean Dague ab5b5dedf8 remove saucy support
ubuntu 13.10 is no longer supported by ubuntu. We should remove it.

Change-Id: Ie0f92c3ba5df4848a0ff101ef52139c3a16a9dec
2014-08-05 17:37:36 -04:00
Sean Dague f3f4b0ac78 install test-reqs when TESTONLY packages are installed
INSTALL_TESTONLY_PACKAGES in devstack only impacts .deb/.rpm files
even though most of our test requirements are actually specified
in python. This will do an explicit install of test-requirements.txt
if pip_install is called with args that look like a directory,
and test-requirements.txt exists in that directory.

Change-Id: Id21e282ddc945c819c9c8c4d724658e28bfde785
2014-08-05 17:01:16 -04:00
Aaron Rosen 2988497b5d NSX: remove req_timeout as it's not longer used
This patch removes req_timeout from devstack as it's no longer used.
This was removed from neutron here:
    Id7244cd4d9316931f4f7df1c3b41b3a894f2909a

Change-Id: Ife901479605323e32f24e11266a232fddbd6bdca
2014-08-05 12:20:54 -07:00
Mate Lakat 1a247e8393 XenApi: Fix domu typo in neutron setup
A typo has been introduced during a previous refactor, leaving us with
two neutron config files, one with domu and one with domU extension.
This fix corrects the mistake, thus always the .domU file is used.

Change-Id: Iffb6e2f70915f50ee590c375494c6f642412b543
2014-08-05 14:39:10 +01:00
Chmouel Boudjnah 9246d96e5c Hide output when configuring apt retry
Change-Id: I063995d52b66e4023e360ba423684753e50a291c
2014-08-05 12:44:07 +00:00
Ian Wienand bdc90c5f02 Work around pip installed pkgs on Rackspace image
The upstream rackspace image has a bunch of pip installed packages as
cloud-init was installed via pip due to a lack of available system
packages.  This can break further system package installs, such as
markdown, which fails with

---
 Error unpacking rpm package python-markdown-2.4.1-1.el7.noarch
  error: unpacking of archive failed on file
   /usr/lib/python2.7/site-packages/Markdown-2.4.1-py2.7.egg-info: cpio: rename
---

Because that is a directory for the pip-installed package, and a file
in the RPM

Remove all pip installed packages on rackspace images before we start
to work around this.  I have filed an upstream issue with Rackspace
(ticket-id 140804-ord-0000134) and the issue is being worked on.

Change-Id: Id12d175143ed3b8e024d057d65fa67505c08042a
2014-08-05 14:45:02 +10:00
Ian Wienand a36167e381 Exact match rhel6
With rhel6 & rhel7 having a common prefix, use an exact match to make
sure we don't mix them up.  This is breaking Centos7.

Change-Id: Ia4665ea78f0bafeaa2b2284a6d3de4474ea195e9
2014-08-05 11:32:25 +10:00
Jenkins 829f1b731b Merge "Add libssl-dev for Ubuntu" 2014-08-04 21:12:33 +00:00
Steve Martinelli 5c206c2b7d Migrate from using glance image-list to openstackclient
Modify instance of `glance image-list` to `openstack image list`,
in an effort to migrate all commands to unified CLI.

Change-Id: Ieef661d209606e088fbf6a3a394f9a6577667618
2014-08-04 17:00:18 -04:00
Jenkins d127ce38a6 Merge "Remove unused tools" 2014-08-04 15:26:51 +00:00
Jenkins 7c1ea5339c Merge "Clean up local variable usage - Backends" 2014-08-04 15:08:22 +00:00
Jenkins 8827d2f61d Merge "Fixes tempest script to accomodate Storage Vendor Names with spaces." 2014-08-04 14:59:41 +00:00
Jenkins 363e15bb94 Merge "Workaround for overwriting setuptools on RHEL" 2014-08-04 13:57:51 +00:00
David Shrewsbury 6eee49fc89 Add libssl-dev for Ubuntu
Rebuilding pyOpenSSL requires the SSL development libraries. This is
present in files/rpms/general, but was missed in files/apts/general.

Change-Id: Ie3c688e2d74485eb7f981363633bbddab5da7046
2014-08-04 09:38:21 -04:00
Steve Martinelli 8d3ac2df58 Modify glance image-create commands to use openstackclient
Change `glance image-create` commands to use `openstack image create`,
in an effort to unify the CLI.

Change-Id: I96cef118daf931b648c0483525ac7d2287fec2e0
2014-08-02 23:47:15 -04:00
Jenkins 5acf159c72 Merge "Clean up local variable usage - upload_image()" 2014-08-02 21:49:29 +00:00
Jenkins a0c6d1e954 Merge "vxlan default ml2 tenant network type" 2014-08-02 02:09:52 +00:00
Jenkins d91cef35c6 Merge "Resolve circular dependency when tracking dependencies." 2014-08-02 02:09:09 +00:00
Jenkins bfc6631be8 Merge "Fix log_error calls" 2014-08-02 01:21:47 +00:00
Jenkins 3acde946e6 Merge "Avoid uploading trove guest image twice" 2014-08-02 00:52:13 +00:00
Jenkins fb2bf8cb9d Merge "Clean up local variable usage - misc functions" 2014-08-02 00:36:17 +00:00
Jenkins cdef3aa4d5 Merge "devstack.org site updates" 2014-08-01 20:31:41 +00:00
Robert Li 72b3e448af Support Router Advertisement Daemon (radvd) for IPv6
Install radvd if the l3 service is enabled.

Partially implements blueprint: neutron-ipv6-radvd-ra

Change-Id: I749b31dcaad072a35e5921579b50f1ca451b1383
2014-08-01 16:10:01 -04:00
Jenkins f73c9b9e78 Merge "Install gettext from apt on Trusty (Ubuntu 14.04)" 2014-08-01 17:38:27 +00:00
Jenkins dd39fc36f7 Merge "XenAPI: Fix declare definition" 2014-08-01 16:47:35 +00:00
YAMAMOTO Takashi 6a633fd024 Allow to use flat providernet for public network
The support of ancillary bridges (aka br-ex) is planned to be
dropped for ofagent.  This commit prepares the deprecation by
providing devstack support for an alternative way to connect
public network.

Related to blueprint ofagent-port-monitor
Change-Id: I6c2ce646070db0ed248665216071499a9b5567ab
2014-08-01 14:26:28 +09:00
YAMAMOTO Takashi ea3dac9a3c Disable in-band control for PUBLIC_BRIDGE
By default, Open vSwitch installs internal flows for in-band control
to bridges with controller setting.  "with controller setting" part
is false for openvswitch agent but can be true for ofagent.
Unfortunately the internal flows are incompatible with our use of
the local port here to communicate with neutron router.  This commit
avoids the problem by disabling the in-band control functionality.

Related to blueprint ofagent-port-monitor
Change-Id: Ia79d12da3c2224366425be5f6927859181e18909
2014-08-01 11:33:56 +09:00
Dean Troyer 4a3d590fd9 Remove unused tools
Remove old tools for building ramdisk images and the original
PXE boot environment.

Change-Id: I81dcc823387c610d3090e5397ed5e42244d6dc3d
2014-07-31 13:29:38 -05:00
Robbie Harwood (frozencemetery) 1229a0879f Resolve circular dependency when tracking dependencies.
When TRACK_DEPENDS=True, there is a circular dependency wherein virtualenv is
used to install virtualenv before a virtualenv has been established.
TRACK_DEPENDS does not work in any use case without this fix.

Change-Id: I7a6652ba091cb95dac3871b6c71edcd762a7be62
Closes-Bug: 1208867
2014-07-31 13:58:46 -04:00
Dean Troyer bcd2ba4b23 Additional Cinder backend: solidfire
Change-Id: I465a77e9862a00885bdccc560404ffcbb26547f8
2014-07-31 10:44:23 -05:00
Jenkins 307cfcb9d1 Merge "neutron: set connection string in neutron.conf" 2014-07-31 11:05:07 +00:00
Jenkins 9414334972 Merge "Add architecture to tempest configuration" 2014-07-31 06:09:23 +00:00
Jenkins f4c67b9e53 Merge "Fix cinder volume type creation and rename variable" 2014-07-31 06:09:13 +00:00
Jenkins 54650ce137 Merge "Support of an alternate pypi server" 2014-07-31 06:09:10 +00:00
Jenkins b3b672b82c Merge "Clean up local variable usage - Nova" 2014-07-31 02:58:54 +00:00
Jenkins 73e8deb09d Merge "Implement Ceph backend for Glance / Cinder / Nova" 2014-07-31 01:15:32 +00:00
Jenkins 2f48395054 Merge "Use Q_PORT variable rather than hardcoded port" 2014-07-31 01:05:52 +00:00
Jenkins 7a3e7d0c39 Merge "Fix trove guest confing to ignore user os_admin" 2014-07-31 00:55:49 +00:00
Jenkins 9d47135531 Merge "Configure the OVS datapath type with devstack." 2014-07-31 00:14:35 +00:00
Jenkins f2572e7fcc Merge "Add support for ironicclient bash completion" 2014-07-31 00:14:33 +00:00
Jenkins ff98b144d6 Merge "Clean up local variable usage - git functions" 2014-07-30 20:06:27 +00:00
Dean Troyer d5dfa4c5c7 Clean up local variable usage - misc functions
A catch-all for a bunch of smaller functions

Change-Id: I3f97a514f9964ef36bff2f24a2f0a98614871a9f
2014-07-30 09:26:21 -05:00
Ian Wienand 8fdb42fc0b Workaround for overwriting setuptools on RHEL
This old setuptools egg-info file causes havoc and really weird pip
install errors.  I think possibly not everyone has the
python-setuptools package installed, so it may only appear in some
situations.

Change-Id: I7ef0fa35c650e323a8945ed7c5c7754ca62a0ca5
2014-07-30 22:04:15 +10:00
Attila Fazekas 8feaf6c951 vxlan default ml2 tenant network type
ovs vxlan become supported on most distribution and provides
isolated `multi tenant` networking without special `vlan` aware switch.

In single node deployment you will just see the br-tun ovs bridge
created.

In multi-node setup you might need to adjust the MTU settings.

If your physical switch supports >=1550 MTU size
 probably you will not see any issue.

If your guest image honors the MTU size offered via dhcp,
you can adjust your dnsmask settings with the correct (likely 1450 byte)
MTU size.

cirros (udhcp) does not honors these setting, you might need to
set lower MTU size on br-ex and/or adjust network_device_mtu option
in your local.conf.

The default changed, because it will be used with the multi-node neutron
jobs.

If you want the original behavior for whatever reason add these to your
`local.conf`:
ENABLE_TENANT_TUNNELS=False
Q_ML2_TENANT_NETWORK_TYPE=local

Change-Id: Id33ff0eca44905b3996618f1035ad984a6819b5b
2014-07-30 11:36:44 +02:00
Ed Balduf 2f23d75733 Fixes tempest script to accomodate Storage Vendor Names with spaces.
Change-Id: Ic651fbffaba9a9723ab572e8e8b732f6bea6d1c6
Closes-Bug: 1329597
2014-07-29 14:42:27 -06:00
Dean Troyer e9f7667050 Clean up local variable usage - upload_image()
Cleans up the rather coplex upload_image() function

Change-Id: Ie1ef200b905dd5d17ef887390d620817208f2bf5
2014-07-29 15:40:45 -05:00
Bob Ball 5fb83a0a33 XenAPI: Fix declare definition
Some versions of bash do not initialise a variable with declare -a
therefore with set -u bash can terminate the script.

Be more verbose in declaring the array if it is not set

Change-Id: I6ec2b6e986aeffe539a2ab93432fa7af9e5a4f5d
2014-07-29 13:40:57 +01:00
Ihar Hrachyshka b816e5d2a0 neutron: set connection string in neutron.conf
it's not recommended to put the connection string in plugin specific
config file [1].

[1]:
https://github.com/openstack/neutron/blob/master/etc/neutron.conf#L534

Change-Id: I3c9d7fe3d34385185f483b509dadf7e2ba920a45
2014-07-29 13:24:48 +02:00
Ihar Hrachyshka a89a0dc624 Revert "cleanup potentially installed older oslo.config"
Icehouse is for long behind our back, so let's remove that hack.

Conflicts:
	lib/oslo

This reverts commit db5fadb5cb.

Change-Id: I06d3b0a8779ba51e05c439832ef3b7dbdc97ded1
2014-07-29 13:13:12 +02:00
Jenkins 5d21e0b777 Merge "[Fedora] Install dnsmasq on n-cpu less host" 2014-07-29 08:47:09 +00:00
Dean Troyer 1c42599a3b devstack.org site updates
Includes:
* Change Precise to Trusty
* Add the new plugin phase
* Remove deprecated config options
* much, much more

Change-Id: I0385f18a3256ad37a611e505e49572f27b3bcc10
2014-07-28 17:51:29 -05:00
Greg Lucas e6aeb5912b Avoid uploading trove guest image twice
When creating the trove datastore, get the guest image id from glance.
The trove guest image gets uploaded along with all the other
images specified in $IMAGE_URLS. It is not necessary to upload
it again in init_trove.

Also: add xenapi case to stackrc for trove guest image

Closes-Bug: 1339818
Change-Id: I2973af27ab93182fcd674f874daba1036d767d52
2014-07-28 15:22:16 -04:00
Arx Cruz 1bde9b4baf Enable custom BUILD_TIMEOUT
The BUILD_TIMEOUT is hardcoded in lib/tempest. This patch
enables people to pass a custom BUILD_TIMEOUT parameter

Change-Id: I260c32e7ed6bf9a49a6bc40272a5535afbca2731
2014-07-28 12:48:50 -03:00
Dean Troyer 0038a1ac6e Clean up local variable usage - Nova
Change-Id: Ia4896746a2f574b7fcb95f85640e0d31c50c372b
2014-07-28 10:15:09 -05:00
Jenkins c6a5126f4a Merge "Remove configuration parameter Q_DHCP_EXTRA_DEFAULT_OPTS" 2014-07-28 00:08:48 +00:00
Jenkins b76a4e62a4 Merge "Remove configuration parameter EXTRA_OPTS" 2014-07-27 21:45:41 +00:00
Christian Berendt f6f42c6a64 Remove configuration parameter Q_DHCP_EXTRA_DEFAULT_OPTS
According to the comments in stack.sh the configuration parameter
Q_DHCP_EXTRA_DEFAULT_OPTS should be removed during the Juno cycle.

Change-Id: I3b38ff57f00e93e6d9692f516291f7129584bc74
2014-07-26 21:54:18 +02:00
Christian Berendt 4a67885629 Remove configuration parameter EXTRA_OPTS
According to the comments in stack.sh the configuration parameter
EXTRA_OPTS should be removed during the Juno cycle.

Change-Id: Ic71d38d6f9b8a8949e45ce3321d593ee2f8feb40
2014-07-26 21:52:26 +02:00
Jenkins e8ebb4901f Merge "Move SERVICE_PROTOCOL from stack.sh to stackrc" 2014-07-26 19:51:22 +00:00
Jenkins 0f087c1846 Merge "Fix exercises for Trove" 2014-07-26 19:51:14 +00:00
Jenkins fdcb410034 Merge "Remove configuration parameter Q_SRV_EXTRA_DEFAULT_OPTS" 2014-07-26 19:44:51 +00:00
Jenkins 00ca11d63d Merge "Remove configuration parameter EXTRA_BAREMETAL_OPTS" 2014-07-26 19:44:48 +00:00
Jenkins 368c45467b Merge "Use one name for neutron database after healing" 2014-07-26 19:38:10 +00:00
Aaron Rosen 186119c39e Use Q_PORT variable rather than hardcoded port
Change-Id: I647c6bdf14f2551bd120821a16044cec2b03b197
closes-bug: 1348834
2014-07-25 15:36:26 -07:00
Matt Riedemann 6a4aa78fa3 Fix cinder volume type creation and rename variable
Commit 7062b12b9b introduced
a bug where the default_volume_type is set to 'lvm' but
that is not the volume-type that's actually created, that
is 'lvmdriver-1' in gate runs, so we see a ton of
VolumeTypeNotFoundByName for the 'lvm' volume type in the
cinder-api logs.

This simply sets the default_volume_type to the volume
type that's created in the create_volume_types function.

Also renames the default_type variable to default_name to
be consistent with variable naming in the rest of the
cinder script.

Change-Id: Ib35ffc09f6582354010ac8ca35da581ea508877a
Closes-Bug: #1348786
2014-07-25 14:46:12 -07:00
Dean Troyer 3ef23bceec Clean up local variable usage - Backends
Combines cleanup for mysql, postgresql and rpc

Change-Id: I37b928a669146671c946fc1ccb8e3ef1a27a3891
2014-07-25 16:24:00 -05:00
Dean Troyer c50c983c56 Clean up local variable usage - Keystone
Change-Id: I8e5506e9d29879459158ef796854ce7a67107d89
2014-07-25 15:57:48 -05:00
Dean Troyer 084f51f7bb Clean up local variable usage - Swift
Change-Id: Id02ebdfa5cb3f6c763293876c6bb031184ebd663
2014-07-25 15:08:52 -05:00
Dean Troyer b52caa386c Clean up local variable usage - Ironic
Change-Id: I7a455299c6aa079de02b75d4d53df43074880ff7
2014-07-25 14:12:19 -05:00
Dean Troyer 7d31bdcfda Clean up local variable usage - Heat
Change-Id: Ia912a8d3ea764dc713e8fdc380175ab98f887a60
2014-07-25 14:05:24 -05:00
Dean Troyer 50cda69f3c Clean up local variable usage - git functions
Cleans up the git-related functions in functions-common

Change-Id: I5f1851c0473e92c61b1e8af60e7ef32c3019f719
2014-07-25 13:58:36 -05:00
Jenkins 3348ca40f5 Merge "debian: do not enbable grizzly repository from gplhost" 2014-07-25 16:14:04 +00:00
Dean Troyer 14fd979a81 Fix log_error calls
There is no log_error function, these should have been calls to
die() all along...

Change-Id: I6d853711bcf645de5ceb306f980ef654d5fabac5
2014-07-25 10:34:15 -05:00
Gonéri Le Bouder 5420992a2c debian: do not enbable grizzly repository from gplhost
There is not reason to enable this additional repository anymore.
All the important packages are either in wheezy or wheezy-backports.

Change-Id: I47af16ba6b507fc929b0d2948c757f4060ba93a5
2014-07-25 14:49:57 +02:00
Gael Chamoulaud d3121f649d Fixes some typos in stack.sh
Change-Id: Ia627d1793c6db76590844d51854dce35a87206b7
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
2014-07-24 23:53:02 +02:00
Jenkins b13ebee873 Merge "Remove unfubar_setuptools" 2014-07-24 20:08:07 +00:00
Jenkins d8b04c2a74 Merge "Add SERVICE_TOKEN to the sample local.conf" 2014-07-24 12:01:58 +00:00
Christian Berendt a5b70a1082 Remove configuration parameter Q_SRV_EXTRA_DEFAULT_OPTS
According to the comments in stack.sh the configuration parameter
Q_SRV_EXTRA_DEFAULT_OPTS should be removed during the Juno cycle.

Change-Id: I2a00c924cd51dab00b56cdab1e48e32ffa007de4
2014-07-24 12:50:48 +02:00
Christian Berendt 9e8ac9942d Remove configuration parameter EXTRA_BAREMETAL_OPTS
According to the comments in stack.sh the configuration parameter
EXTRA_BAREMETAL_OPTS should be removed during the Juno cycle.

Change-Id: I8564d16e56d1f77d3afa4af9a50fbffa3da8bfe5
2014-07-24 12:37:13 +02:00
Ramakrishnan G c294c503e1 Add support for ironicclient bash completion
This commit adds statement to copy the file /ironic.bash_completion
file to the default bash completion directory.

Change-Id: I436d46dbac0895a8ca14d085fec041981435936c
2014-07-24 16:05:18 +05:30
Jenkins dbcffa7497 Merge "Add DVR support to DevStack" 2014-07-24 09:59:06 +00:00
Jenkins 703f17e536 Merge "Fixed NO_UPDATE_REPOS variable usage" 2014-07-24 04:25:16 +00:00
galstrom21 053364cf60 Install gettext from apt on Trusty (Ubuntu 14.04)
The binary 'msgfmt' is not installed as part of python-gettext for Trusty
(Ubuntu 14.04), so gettext needs to be installed from apt.

Change-Id: I415814559d82be453e978a0d92a0cdb38f105683
Closes-Bug: 1331328
2014-07-23 22:02:32 -05:00
Rob Crittenden 26867a63c1 Move SERVICE_PROTOCOL from stack.sh to stackrc
This ensures that SERVICE_PROTOCOL is available to other consumers
of the devstack environment like grenade.

Change-Id: I702d7d239e50dd1446d55c076c7a7c57768486ff
Closes-Bug: 1335953
2014-07-23 22:12:03 -04:00
Sean Dague 4f3b66f538 add is_keystone_enabled
This is missing, and makes logic much harder for the grenade use
case.

Change-Id: Ib6670096d190e69273256b87e6a67e2b46945a0d
2014-07-23 16:45:12 -04:00
Sean Dague f0bd8dbe37 stop leaking service as a global var
the tls code was leaking out $service as a global variable, which
was causing all manner of confusing errors in grenade trying to
use that variable name. All lower case vars should be localize.

Change-Id: I74fa597f20ee7c714cab83490b42d874ea93db02
2014-07-23 15:14:07 -04:00
Jenkins 27eefd8729 Merge "Remove output filter on rabbitmq install" 2014-07-23 15:06:11 +00:00
Jenkins 9f8bf58ba3 Merge "Add conntrack-tools to nova dependencies" 2014-07-23 15:06:07 +00:00
Denis Makogon 3e57427bf2 Fix exercises for Trove
Reasons:
 - trove.sh should use native python client to exercise Trove API

Changes:
 - adding datastore and datastore version exercises

Change-Id: I041465e5bda6ad9ec3f597ecc290612b8baef09c
Closes-Bug: #1346743
2014-07-23 17:31:29 +03:00
Sébastien Han 36f2f024db Implement Ceph backend for Glance / Cinder / Nova
The new lib installs a full Ceph cluster. It can be managed
by the service init scripts. Ceph can also be installed in
standalone without any other components.
This implementation adds the auto-configuration for
the following services with Ceph:

* Glance
* Cinder
* Cinder backup
* Nova

To enable Ceph simply add: ENABLED_SERVICES+=,ceph to your localrc.
If you want to play with the Ceph replication, you can use the
CEPH_REPLICAS option and set a replica. This replica will be used for
every pools (Glance, Cinder, Cinder backup and Nova). The size of the
loopback disk used for Ceph can also be managed thanks to the
CEPH_LOOPBACK_DISK_SIZE option.

Going further pools, users and PGs are configurable as well. The
convention is <SERVICE_NAME_IN_CAPITAL>_CEPH_<OPTION> where services are
GLANCE, CINDER, NOVA, CINDER_BAK. Let's take the example of Cinder:

* CINDER_CEPH_POOL
* CINDER_CEPH_USER
* CINDER_CEPH_POOL_PG
* CINDER_CEPH_POOL_PGP

** Only works on Ubuntu Trusty, Fedora 19/20 or later **

Change-Id: Ifec850ba8e1e5263234ef428669150c76cfdb6ad
Implements: blueprint implement-ceph-backend
Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
2014-07-23 16:13:45 +02:00
Jenkins 1ecd43da54 Merge "Users in service group should not have email addresses" 2014-07-23 14:06:50 +00:00
Jenkins cd8da9307e Merge "Fix install_ceilometer and install_ceilometerclient" 2014-07-23 13:03:19 +00:00
Ian Wienand 7ccf4e025a Remove output filter on rabbitmq install
The original workaround was for an init script that grabbed stdout.
This was some time ago and I think it's safe to remove.

It can be a problem on Fedora; out-of-the-box some old F20 images can
have a broken dependency when rabbitmq installs.  With this in place,
all helpful output goes into the temp log file, but it is never shown
because the install_packages function exits the script.  Thus things
just stop and you have no idea why.

Change-Id: I2f5b934492a8c9d7b93e89fdcfa776bf15f25cb8
2014-07-23 14:24:11 +10:00
Joe Gordon 13344bd975 Fix install_ceilometer and install_ceilometerclient
Other projects do a setup_develop in install_*. This standard is used by
grenade to do installations. Currently grenade uses install ceilometer
as part of the upgrade script, but this doesn't actually install the new
ceilometer.

Change-Id: I4e44bec6574e6a4fcfc252418bc267191aef28fb
Closes-Bug: #1347178
2014-07-22 14:26:05 -07:00
Adalberto Medeiros 5397153987 Add architecture to tempest configuration
Cirros may be also built in other architectures other than
x86_64 (ex: ppc). This option should be broader,
so adding a new variable CIRROS_ARCH

Change-Id: I9fcd3f15e04bb581cf647ad49172c7d698e8e574
2014-07-22 17:49:13 -03:00
Jenkins f16ebbe085 Merge "Fix trivial typo in HACKING.rst: tec. -> etc." 2014-07-22 16:37:14 +00:00
Gael Chamoulaud 6dd8a8bee4 Users in service group should not have email addresses
Change-Id: Ieed9dffce5cf1e735e482dd3494ac1e103b50955
Closes-Bug: 1185201
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
2014-07-22 17:29:04 +02:00
Jenkins 2bb05fdb84 Merge "Promote libffi-dev as a general dependency" 2014-07-22 14:38:24 +00:00
Roger Luethi c21cfc9286 Fix trivial typo in HACKING.rst: tec. -> etc.
Change-Id: Ibdb119249b53e95bdf963ce349703c79611e0720
2014-07-22 15:35:02 +02:00
Attila Fazekas 40f4438f9b Add conntrack-tools to nova dependencies
'Error deleting conntrack entries' appears in all
n-net. Adding conntrack-tools/conntrack as nova dependency,
in order to eliminate this issue.

Change-Id: Ief9deeb3349a07e22fb365e58f3368c847f845ef
2014-07-22 14:31:03 +02:00
Georges Dubus 5753eb8e26 Add SERVICE_TOKEN to the sample local.conf
I expect the sample local.conf file to contain all the required
variables. However, after copying samples/local.conf, the stack.sh
script still asks for SERVICE_TOKEN.

This commit adds the SERVICE_TOKEN definition to local.conf so that a
new user can just copy samples/local.conf, edit it, and have a running
stack.sh without the mild annoyance of having more variables to set.

Change-Id: Ifb163c7f67c80037d8b10458f2df458a20da4667
2014-07-22 09:50:10 +00:00
Jenkins 89a8a15ebe Merge "XenAPI: Always add latest Cirros euc image" 2014-07-22 01:14:19 +00:00
Jenkins 2ebcd3817f Merge "XenAPI: Use GUEST_PASSWORD when installing DomU" 2014-07-22 00:42:47 +00:00
Jenkins 01450acf55 Merge "Do a proper tls/ca cleanup in unstack" 2014-07-22 00:42:43 +00:00
Jenkins 035742cdfd Merge "Fix default_volume_type for Cinder multi backend" 2014-07-21 22:12:41 +00:00
Jenkins 15ae2101ba Merge "XenAPI: Fix race condition on tailing stack.log" 2014-07-21 22:12:33 +00:00
Jenkins 8304ba6928 Merge "Add WSGISocketPrefix to apache keystone config" 2014-07-21 21:58:48 +00:00
Angus Lees 7df9d1be17 Ensure sbin is in PATH.
Some distros (Debian) don't have sbin in PATH for non-root users.

Nova (and possibly other services) assumes that it can invoke "sysctl"
without sudo.

Change-Id: Iced21fc1378af309fb49688f9b63f2cd8383e304
Closes-Bug: #1300800
2014-07-21 15:54:21 +10:00
Jenkins 2983291bd9 Merge "Add argparse for RHEL6" 2014-07-21 00:58:39 +00:00
Jenkins 24729ab388 Merge "Lower default IRONIC_VM_SPECS_RAM" 2014-07-19 01:43:03 +00:00
Jenkins 290b62d7ba Merge "Added Oracle Linux distribution support" 2014-07-18 22:34:22 +00:00
Ian Wienand dcdcb5ace8 Add WSGISocketPrefix to apache keystone config
I think since probably fdf1cffbd5
devstack on RHEL6 fails and it comes down to:

---
2014-07-17 05:05:49.235 | +++ openstack role create admin -f value -c id
2014-07-17 05:05:49.615 | ERROR: cliff.app Service Unavailable (HTTP 503)

[Thu Jul 17 15:05:46 2014] [error] [client 10.0.2.15]
  (13)Permission denied: mod_wsgi (pid=30125): Unable to connect to WSGI
   daemon process 'keystone-public' on
   '/etc/httpd/logs/wsgi.30098.0.1.sock' after multiple attempts.
---

The apache user doesn't have permissons to this directory.  Adding
WSGISocketPath to /var/run solves it

Change-Id: If4b74019b6bd389b576fc981154bb1b3aa471c9b
2014-07-18 17:52:11 +10:00
Jenkins 828e382e23 Merge "Make apache restarts a little more forgiving" 2014-07-18 02:25:07 +00:00
anju Tiwari 6c639c9dd7 Added Oracle Linux distribution support
Enabled devstack to support oracle Linux Server

Change-Id: I1749cd3c7756a9903d2a0b0ab19606f87a4937d4
2014-07-18 09:59:59 +10:00
Ian Wienand f565bf2d3a Add argparse for RHEL6
python2.6 doesn't have argparse, required by outfilter.py.  This
package is a dependency on cloud-init, so this problem is often masked
in many testing environments.

Change-Id: Ia564f1b8a7b540faa7bbdbd1a1a290c591901682
2014-07-17 14:50:29 +10:00
Monty Taylor 72ab17b830 Remove unfubar_setuptools
It is no longer used for anything, nor does it seem to be
needed in the modern world of get-pip.py.

Change-Id: I5554514dd862a2004454daf295abbcf9cf9f2bfb
2014-07-17 05:56:59 +02:00
Sébastien Han 7062b12b9b Fix default_volume_type for Cinder multi backend
The default_volume_type option doesn't support comma separated
arguments. We can only select one default volume type.
We have a variable that contains the default volume type, so we simply use it.

Closes-Bug: 1342569

Change-Id: Ibd080442f00f3d446ec374fc5906f0778d449007
Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
2014-07-16 15:36:49 +02:00
Bob Ball 5c64a463d8 XenAPI: Always add latest Cirros euc image
Some tests, such as test_minimum_basic_scenario, assume qcow and if
a qcow image does not exit, falls back to the euc image.
This change ensures these tests work in the stock XenServer environment.

Change-Id: I718f178f7e5e0fa4eebd17a49caf5254124092e3
2014-07-16 13:14:11 +01:00
Jenkins 5e93727a23 Merge "FAQ: Clarification - Devstack is a gating project" 2014-07-16 02:55:37 +00:00
Henry Gessau 0fc1cc29ac Use one name for neutron database after healing
Now that the Neutron database is healed we no longer need a
plugin-specific name for it.

Related Blueprint: db-migration-refactor

Change-Id: If25e77444f115817e5570bb447bde5b9c8d6e686
2014-07-15 21:29:29 -04:00
Fawad Khaliq 242c098498 Enable security group extension in PLUMgrid plugin
Implements: blueprint plumgrid-neutron-security-groups
Change-Id: I30392adff5e3250a1c4f9f1f04fc7e0587007226
2014-07-15 17:52:05 -07:00
Nikhil Manchanda 9c4f24afd9 Fix trove guest confing to ignore user os_admin
This value of ignore_users in the guest config needs to be set
correctly to ignore the local os_admin user for the trove functional
tests to pass in a devstack-gate environment.

Change-Id: Ia31dfe8f2eab4b24790b6be0dbc474cf50f39afa
2014-07-15 14:31:04 -07:00
Jenkins df2cc34db6 Merge "Fix Neutron configuration if Ceilometer is enabled" 2014-07-15 21:03:39 +00:00
Jenkins 95764eb0fd Merge "Support multiple Cinder backend types" 2014-07-15 19:33:02 +00:00
Brian Haley eea7621d23 Add DVR support to DevStack
This patch introduces a new Neutron  config option: Q_DVR_MODE.

The possible values are:

- legacy  : No DVR functionality
- dvr_snat: Controller/single node DVR
- dvr     : Compute node in multi-node DVR

When DVR is enabled the following configuration changes will be
in place:

- neutron.conf
  - router_distributed=True

- l3_agent.ini
  - agent_mode=$Q_DVR_MODE

- ovs_neutron_plugin.ini:
  - enable_distributed_routing=True
  - l2_population=True
  - tunnel_types=vxlan

Supports-blueprint: neutron-ovs-dvr

Change-Id: I669e054a8489fe7ac7f5c00df6535349d477e8c4
2014-07-15 12:07:21 -07:00
Jenkins faa46f0014 Merge "Add a Tunnel end-point variable for Neutron configuration" 2014-07-15 18:29:58 +00:00
Morgan Fainberg 2df0046fa7 Make apache restarts a little more forgiving
Apache sometimes is slow to release the port (from the kernel's
perspective) which can cause restarts of apache to fail due to the
requested port already being bound. This fix introduces a small sleep
between the stop and start to help make apache deployments a bit
more resilient.

Change-Id: I9697d71f3cb2d8d5da8fe7ffa8b3e1ade9d52afd
Closes-Bug: #1342256
2014-07-15 11:06:36 -07:00
Bob Ball d6b43a09c4 XenAPI: Fix race condition on tailing stack.log
Stack.log is created by stack.sh, which is started by run.sh.  Using
the pid from run.sh doesn't mean that stack.log has been created yet
so wait for the log to be created before tailing

Change-Id: I86e563478949cb7bbe0d1afd80b790ba70328e3a
2014-07-15 17:45:47 +01:00
Dean Troyer 097183356e Support multiple Cinder backend types
This is the first step in supporting multiple Cinder backend types at
once.  It initially converts the existing hard-coded multi-lvm support
to a new cinder_backends driver form.  Eventually the cinder_plugins
will be converted to this form so they can be enabled more than just
one at a time using CINDER_ENABLED_BACKENDS.

The default configuration should be identical to the previous defaults,
including for both True and False values of CINDER_MULTI_LVM_BACKEND.

The existing cinder_plugins are expected to be removed when this is
complete. They should continue to work until they have been converted.

Add wait for c-api to ensure it is started before continuing.

Change-Id: I93b8ef32832269d730c76a6dc24ddb4f20c6d9df
2014-07-15 16:03:42 +02:00
Sean Dague 0ae54daa4a add python-mock to testonly package list
Python-mock is needed by most of OpenStack for testability. Add
this is a testonly package. This should fix current issues with
functional tests in OpenStack that use devstack, but not tox to
run their tests.

Closes-Bug: #1341507

Change-Id: I26cbe42ace75554bae993a6d849c3b4ac649c78e
2014-07-15 10:37:14 +02:00
Gilles Dubreuil a216254a13 FAQ: Clarification - Devstack is a gating project
Change-Id: I52fdfc5c865e864939df49fecb71b8e615a28cbf
2014-07-15 14:30:26 +10:00
James Chapman c83cc75e61 Configure the OVS datapath type with devstack.
This feature provides the user with a means of easily configuring
the required Openvswitch datapath type. (Netdev, dpdk, etc)

Define the OVS_DATAPATH_TYPE variable in the devstack configuration file
local.conf.

This feature enables Intel(R) DPDK vSwitch and netdev DPDK vhost.

Implements blueprint config-ovs-datapath-type

Change-Id: I5698720960b1ac532c790d3e5735c5cef36d5e3d
2014-07-14 21:40:27 +00:00
Bob Ball 105eaee2c0 XenAPI: Use GUEST_PASSWORD when installing DomU
We know what the GUEST_PASSWORD will be, so set it during DomU
installation; therefore if the installation fails for any reason
we have a correct GUEST_PASSWORD set rather than the obscure and
undocumented 'r00tme'

Change-Id: I684646a74f2cede43667a40556e247955e042ae4
2014-07-14 15:21:07 +01:00
Paul Linchpiner 9e17974a62 Fixed NO_UPDATE_REPOS variable usage
Change-Id: I50a2fd73f30321e97c99947b62fb1729870a2c14
2014-07-13 22:23:00 -07:00
Jenkins f29569db7a Merge "Add pre-install phase for extras.d plugins" 2014-07-13 19:02:40 +00:00
Jenkins c856f51ed7 Merge "Fix Swift config for Ceilometer usage" 2014-07-13 15:09:51 +00:00
Dina Belova 58adaa6b75 Fix Neutron configuration if Ceilometer is enabled
Previously if Ceilometer service was enabled,
configuration option to enable Neutron network
notifications was not set. This fixes it.

Change-Id: Ia53d9db1828ef2daa0ce637b2a2635795856502c
Closes-Bug: #1340754
2014-07-13 17:30:35 +04:00
Jenkins d727754c92 Merge "Configure rabbitmq credentials in keystone.conf" 2014-07-11 14:33:21 +00:00
Jenkins fdf1cffbd5 Merge "Enable Keystone under Apache by default" 2014-07-10 23:06:57 +00:00
Edgar Magana 6f335b9a4b Add a Tunnel end-point variable for Neutron configuration
The HOST_IP address is being used as IP address
for end-point tunnel configruation. A new variable is
needed to specify a different IP address for the tunnel
end-point that Neutron will use

Change-Id: Ic7fb4853df167e78bf882af6a712b903db754dc2
Closes-bug: #1340433
2014-07-10 15:49:44 -07:00
Matt Riedemann 94c654ef37 Set postgresql max_connections=200
Now that we have multiple workers running by default
in various projects (nova/cinder/glance/trove), the
postgresql job is failing intermittently with connection
failures to the database.

The default max_connections for postgresql is 100 so here
we double that.

Note that the default max_connections for mysql used to
be 100 but is now 151, so this change brings the postgresql
configuration more in line with mysql.

Change-Id: I2fcae8184a82e303103795a7bf57c723e27190c9
Closes-Bug: #1338841
2014-07-09 12:53:30 -07:00
Attila Fazekas 87d74a0bdd Promote libffi-dev as a general dependency
libffi-dev/libffi-devel can be requested for rebuilding the
python clients which is an un-skipable part of the devstack install.

Promoting the libffi-devel to a general dependency.

Change-Id: I1dac7fd536b94de1e49aaf335ac29ffae1bd39d1
2014-07-09 20:18:04 +02:00
Dean Troyer 5c3a63e633 Add pre-install phase for extras.d plugins
An additional call hook for the extras.d plugins that is called before
any service installation occurs turns out to be needed by Ceph and
useful for other plugins.

This is called between the installation of the system packages listed
as prerequisites and the installation of the actual services.

Change-Id: Id723bdc7542182d2b2eff40c0dc0127307f094c5
2014-07-09 11:35:16 -05:00
Sergey Skripnick 8464a4cba3 Configure rabbitmq credentials in keystone.conf
Rabbitmq credentials in keystone.conf should be updated according
to localrc

This is done mostly to enable keystone notifications.

There are 2 cases where we can use notifications from keystone:
A) Collect audit notifications in ceilometer
B) Collect profiling data

Change-Id: I381d4d670755aa691743caa02df7dc55e05784c2
2014-07-09 03:36:51 +04:00
Jenkins 2efb9781c4 Merge "Generate recent changes list from git log" 2014-07-08 14:34:10 +00:00
Morgan Fainberg e6dd4e665d Enable Keystone under Apache by default
Make the default run mode of Keystone HTTPD + mod_wsgi. This will
enable gating on Keystone under mod_wsgi.

Depends On: https://review.openstack.org/#/c/100764/

Change-Id: I4b664a1d6c9bbb1ff999158f3a8c8ab3bd8d891b
2014-07-08 00:11:20 +00:00
Jenkins 49d14407c5 Merge "Update Apache + mod_wsgi deployment mechanisms" 2014-07-07 23:53:26 +00:00
Jenkins 3876d77d92 Merge "Avoid huge libvirtd.log files on Ubuntu hosts" 2014-07-07 20:25:55 +00:00
Morgan Fainberg 46455a34d5 Update Apache + mod_wsgi deployment mechanisms
Added a global toggle for enabling HTTPD + mod_wsgi for services
that default deploy to running under Apache. When the variable
``ENABLE_HTTPD_MOD_WSGI_SERVICES`` is set to ``True`` any service
that recommends deploying under HTTPD + mod_wsgi, will be run
under Apache.

If ``ENABLE_HTTPD_MOD_WSGI_SERVICES`` is set to ``False`` the
any service that is defaulted to running under HTTPD + mod_wsgi
will (if capable) be run in an alternate deployment strategy (e.g.
eventlet).

Updated Swift and Keystone to have individual toggles for deploying
under HTTPD + mod_wsgi. This is done to allow for gate to run on
the services under mod_wsgi where appropriate. Toggles are
``KEYSTONE_USE_MOD_WSGI`` and ``SWIFT_USE_MOD_WSGI`` and are both
defaulted to "False" (do not deploy under HTTPD + mod_wsgi).

Change-Id: Id3b121b8f1cde369d184b586e0d875bdbda34813
2014-07-07 08:46:28 -07:00
Jenkins 9c0f077dd5 Merge "Fixed tunnel ranges variable inconsistency." 2014-07-07 13:09:24 +00:00
Jenkins cfcd8cf2f8 Merge "Adds support for multi-region" 2014-07-04 16:53:01 +00:00
gordon chung 4ede37aa86 Revert "Add missing config option os_auth_url"
This reverts commit 524bbed05c.

Change-Id: I0dc3ec7a55cb65bd2a5ff76f32b3d99f8962597b
2014-07-04 07:40:37 +00:00
Adam Gandelman ea335f4e06 Lower default IRONIC_VM_SPECS_RAM
Revert the default required RAM for Ironic nodes from 1024MB to 512MB.
Ironic now passes a kernel parameter to deploy ramdisks that avoids use
of tmpfs and lowers minimum memory requirements.

Change-Id: I20226c496fdd06ecfc6769a60b6d6f82887130a8
2014-07-03 17:57:49 -07:00
Jenkins 053aec2fd8 Merge "Install oslo.i18n from source" 2014-07-04 00:02:53 +00:00
Jenkins 2fac95910f Merge "Only enable auth_token in swift with keystone" 2014-07-04 00:01:20 +00:00
Dean Troyer 926c99d072 Generate recent changes list from git log
The list of recent commits to the DevStack repo is now generated
by tools/build_docs.sh from the last 6 month of the git log.

Change-Id: Idefdb5d5188ab7e743af131e3d6cb132382d25d4
2014-07-03 15:57:38 -05:00
Anant Patil 3827dc03d8 Fixed tunnel ranges variable inconsistency.
Change-Id: I7108a3ebd597e1dc808917be9213457df2322100
2014-07-03 22:20:08 +05:30
Jenkins e4368c6abb Merge "Add libyaml-devel package dependancy" 2014-07-03 09:51:16 +00:00
Jenkins 2a5666f387 Merge "Add ability to enable OSprofiler" 2014-07-03 06:34:21 +00:00
Doug Hellmann cd5c81369d Install oslo.i18n from source
Add a step to install oslo.i18n from source.

Change-Id: Ie041d4b82ca75a1c2ff99563a7a87447adc57ad2
2014-07-02 11:58:35 -07:00
Boris Pavlovic 46e1abafa5 Add ability to enable OSprofiler
To enable OSprofiler we should be able to add "profiler" notification
topic to ceilometer notification topics.

More about OSprofiler:
https://github.com/stackforge/osprofiler

More about ceilometer plugin:
https://review.openstack.org/#/c/100239/

Sample of trace (via Cinder and Nova Services):
http://pavlovic.me/rally/profiler/

Change-Id: I6137174a3ecddd58f62e0f98b235b71b1c070f13
2014-07-02 15:55:27 +00:00
Jenkins 86aa441253 Merge "Switch to Fedora-x86_64-20-20140618-sda" 2014-07-02 15:19:51 +00:00
Jenkins 134609f9a6 Merge "fix trove image addition" 2014-07-01 19:55:08 +00:00
Jenkins 8a88f2728c Merge "Add keystone middleware to devstack" 2014-07-01 19:46:16 +00:00
Daniel P. Berrange a12f996778 Avoid huge libvirtd.log files on Ubuntu hosts
The libvirt log filter settings match against the filename of
the libvirt source emitting the log message. Normally these
file names are relative to the source tree root, but in the
Ubuntu binary packages these have somehow ended up as absolute
filenames from the OS root. This means that a log filter of
'1:libvirt' which is only intended to match src/libvirt.c
will in fact match every single file. This caused enourmous
log files on Ubuntu hosts running the gate.

The fix is to use '1:libvirt.c' as a more specific filename
match, but we can't do this unconditionally because libvirt
>= 1.2.3 does not use filenames for log filter matching
anymore. So only change the match on Ubuntu hosts for now,
since that's where the original problem lies.

While doing this, also turn off the logging of object ref
and unref operations, since those pollute the logs with lots
of noise.

Change-Id: I71b67507a4e68a7bff0c358857aaaac08ef0c420
2014-07-01 17:27:29 +01:00
Bartosz Górski 0abde393c5 Adds support for multi-region
Change-Id: Ib85fe7cb375692b04aca4c46f61ba7e1fbfa501b
Implements: blueprint multi-region
2014-07-01 14:58:35 +00:00
Sean Dague fafb62b93e fix trove image addition
the previous addition to trove was done in a way that it was not
possible to discover from nodepool. This fixes our ability to do
that, especially with non-default on services.

Change-Id: I8ca682354e0d4e2eb9cf05f40c6dd783de1c6355
2014-06-30 16:49:30 -04:00
Jenkins c06c9e1f90 Merge "Do not clean docs directory" 2014-06-30 17:34:51 +00:00
Morgan Fainberg 58936fdbcd Add keystone middleware to devstack
Add the keystonemiddleware repository to devstack to support testing
with tempest and stable branches.

Change-Id: Ib635465e6568d9cd51d6e432ec8b8633a27d19ce
2014-06-30 09:29:45 -07:00
Chmouel Boudjnah 254fd55245 Only enable auth_token in swift with keystone
We don't need to enable auth_token in pipeline when we don't have
keystone enabled.

Change-Id: I4695817766fc39fcceed32f71156d4123d5bdfa1
2014-06-30 12:42:57 +00:00
Stanislaw Pitucha bd5dae0618 Do a proper tls/ca cleanup in unstack
Certificates and the index were left in the data directory after
running unstack. That would break devstack on the next run.

partial blueprint devstack-https
Change-Id: I6eb552a76fb29addf4d02254c027e473d6805df1
2014-06-30 10:52:25 +01:00
ZhiQiang Fan ecd05637a3 Do not clean docs directory
The docs/source has been introduced by change-id:
Ide5f7d980a294c7a9f8a3decaed0939f1c239934, but clean.sh try to clean
whole docs direcotry, which is not right.

Meanwhile, there are directories in FILES_TO_CLEAN variable, which means
rm -f will not work. We need to use rm -rf.

Change-Id: I4e10d70d5638ce7e7a9215f5bd848422aa90aad3
Closes-Bug: #1335399
2014-06-30 09:27:31 +08:00
Jenkins e33379658f Merge "Revert "Build retry loop for screen sessions"" 2014-06-28 16:00:33 +00:00
Jenkins f094546726 Merge "use setup_install for django_openstack_auth" 2014-06-28 14:16:25 +00:00
Jenkins d82e793c8a Merge "Add missing config option os_auth_url" 2014-06-28 12:59:11 +00:00
Jenkins 87e49f1478 Merge "Default cinder enable_v1_api to true" 2014-06-28 12:46:32 +00:00
Jenkins f4c490c186 Merge "Stud is available in new distributions" 2014-06-28 11:58:04 +00:00
Jenkins 21a2bda8cb Merge "Cleanup postgresql-server on openSUSE" 2014-06-28 08:33:00 +00:00
Jenkins 98e3236d44 Merge "Update trove to install guest image and datastores" 2014-06-27 22:06:26 +00:00
Kashyap Chamarthy 2b5c14d2d8 Add libyaml-devel package dependancy
Without libyaml-devel package installed (on Fedora-20),
running ./stack throws:

  [. . .]
  build/temp.linux-x86_64-2.7/check_libyaml.c:2:18: fatal error: yaml.h:
  No such file or directory #include <yaml.h> ^ compilation terminated.

  libyaml is not found or a compiler error: forcing --without-libyaml
  [. . .]

Adding this dependency to files/rpms/general resolves it. Also added to
files/apts/general.

Change-Id: If1aa23bf3fc76ea2b321c3725dd07050ddd4b825
2014-06-28 02:20:09 +05:30
Sean Dague ea22a4fdba Revert "Build retry loop for screen sessions"
This reverts commit 0afa912e99.

This possibly made things worse, though it times in with the
trusty add, so it's hard to tell. Revert to see if grenade gets
better.

Change-Id: Ic399957fc9d4a7da28b030cdf895df061b2567c8
Related-Bug: #1331274
2014-06-27 15:22:28 -04:00
Stanislaw Pitucha 2e0f0544ec Comment fix - correct function names
Change-Id: Idecc6cd9bc255ab20d3bc8f4b3a3e7f248b585f0
2014-06-27 16:10:55 +01:00
Jenkins bfa5817c50 Merge "Add rhel7 as supported distro" 2014-06-27 14:23:59 +00:00
Stanislaw Pitucha 317ecdb865 Stud is available in new distributions
Stud was marked as precise-only. In reality it's only not available in
lucid. All supported distributions are ok now.

partial blueprint devstack-https
Change-Id: Ie86f345102cfddcca5387be514b67641ef750313
2014-06-27 13:36:52 +01:00
Ian Wienand 3171cb98a9 Add rhel7 as supported distro
rhel7 testing has been fairly stable with redhatci bot testing beta
and RC builds for some time.  Centos7 testing is now coming online
with the nightly builds.  Thus no need to require the unsupported flag
any more.

Change-Id: Iceab5c1d8b713f1f96b5751cf988fe060cfeff58
2014-06-27 13:26:27 +10:00
Jenkins f05dc966fa Merge "Don't install openvswitch-datapath-dkms on newer kernels" 2014-06-26 21:05:37 +00:00
Jenkins a9c6c2174f Merge "soft-qemu handling with F20 could image" 2014-06-26 16:40:25 +00:00
Longgeek 524bbed05c Add missing config option os_auth_url
Without this option will appear as an error:
Skip interval_task because Keystone error:
Authorization Failed: Unable to establish connection to
http://localhost:5000/v2.0/tokens

Closes-Bug: #1325383

Change-Id: I42fe92596d9d475f2c5b2a6aa6b49d2b7b821c54
2014-06-26 14:27:24 +00:00
Attila Fazekas bfcb2ff732 Switch to Fedora-x86_64-20-20140618-sda
The heat-slow job using the Fedora-20 image as L2 guest, the
currently used version is affected by the heartbleed issue and
the Mb-Bios bug issue observed with emulation.

This version of the  Fedora cloud image uses the no_timer_check
kernel parameter, which solves the MP-Bios Bug issue.

The Image tested with ~3000 heat-slow job, without any issue.

Change-Id: I9ce9b7769c2d91e630b0362f2c2c6ac9066defbc
Closes-Bug: #1312199
Closes-Bug: #1297560
2014-06-26 12:38:20 +02:00
Jenkins 945ccecb68 Merge "Always check keystone using http" 2014-06-25 21:14:35 +00:00
Jenkins 4fabfe73b3 Merge "Add explicit libkrb5-dev dependency for keystone" 2014-06-25 21:14:24 +00:00
Attila Fazekas b3e722df60 soft-qemu handling with F20 could image
When the qume used with Linux image without
a para-virtualized timer, various timing issues can happen,
if the qemu process preempted in the wrong time, for example
at timer test.

The issues less like happens on low load, high core number
host system, but it can happen.

For soft qemu (TCG) generally recommended to explicitly disable the
timer check.

Pre-caching the Fedora `gate edition` image, which contains the
the no_timers_check option.

Related-Bug: #1297560
Partial-Bug: #1312199

Change-Id: Id5cd01a92a047b7859914e5bb017c15ee443b4d5
2014-06-25 20:15:47 +00:00
Jenkins 002ab9374c Merge "Build retry loop for screen sessions" 2014-06-25 19:37:51 +00:00
Doug Hellmann 45400b0072 Add explicit libkrb5-dev dependency for keystone
Our Trusty test nodes do not include libkrb5-dev by default, and it is
needed to install some of the python libraries keystone uses (kerberos,
brought in by requests-kerberos).

Partial bug: #1334326

Change-Id: I1fdaa46c4590e69da82365dee578c1aa0ec95e80
2014-06-25 11:27:13 -07:00
Stanislaw Pitucha be4c953e5a Always check keystone using http
The check to $service_port must be done using http. It's
$KEYSTONE_SERVICE_PORT that may use either the http or https protocol.

partial blueprint devstack-https
Change-Id: I8ae081e9710c54396b765210336a7de331947086
2014-06-25 16:17:17 +00:00
Mike Perez f64f43b533 Default cinder enable_v1_api to true
As of Juno, Cinder will be deprecating the Cinder V1 API and setting it
to not be enabled by default. We'll make it enabled in devstack to
continue tests while it's supported.

Change-Id: Ia09eed0375a73c69a29b1aa379b5bd9fd3a1f5b7
2014-06-25 08:53:55 -07:00
Kyle Mestery 86af4a0e5d Don't install openvswitch-datapath-dkms on newer kernels
On kernels >= 3.13 for Ubuntu, there is no need to install the
openvswitch-datapath-dkms package anymore. Consequently we don't need the
dkms package anymore, nor the linux headers.

Update the opendaylight devstack code to correctly check for this and make
the right decision.

While here, also utilize get_packages() and common code where possible.

Change-Id: Idd6a71951f6f77b6e3c4e536e735dfead6a40bc1
Closes-Bug: #1331111
2014-06-25 10:31:44 -04:00
Stanislaw Pitucha 2f69c6b853 Don't try to regenerate existing ssl certificates
Rerunning stack.sh after some failure unrelated to ssl setup will fail
due to certificates already existing in the CA index. Don't regenerate
them instead. This is a workaround making devstack development easier
rather than something typical user would run into.

Change-Id: Icfd4cb5132c8c9297eb73159e592b7006295184f
2014-06-25 15:07:48 +01:00
Nikhil Manchanda afefaa7822 Update trove to install guest image and datastores
Update the trove bits to actually upload the trove guest image to
glance, and create the datastore and datastore version objects that
are associated with the guest image ID.

Change-Id: I6c5c56b3fac981e91cdd7ed60079a5649b8dfea8
2014-06-24 23:38:50 -07:00
Jenkins c6dc3deb25 Merge "Bump EPEL release rpm for RHEL 7 to 7.0-2" 2014-06-24 18:00:41 +00:00
Jenkins 0b8b18d840 Merge "XenAPI: Tail output from stack.sh" 2014-06-24 18:00:30 +00:00
Jenkins a26fc1815f Merge "Add an environment variable to enable extensions in keystone" 2014-06-24 18:00:26 +00:00
Jenkins 690fd92096 Merge "Handle failure of openstack endpoint" 2014-06-24 17:54:18 +00:00
Jenkins 51df53bb14 Merge "Use curl to download from github.com" 2014-06-24 17:54:14 +00:00
Jenkins 9ad8f98901 Merge "retry apt operations to avoid network issues" 2014-06-24 17:53:55 +00:00
Bob Ball dc7ebbb9a4 XenAPI: Tail output from stack.sh
While installing devstack in XenServer's DomU we can easily
track the output so end-users have much more visibility of
both what is going on and what (if anything!) went wrong.

Change-Id: I7d12a13cea9dffda6c1388ce711b6adf76cae72c
2014-06-24 14:37:36 +01:00
Dina Belova eedfdee060 Fix Swift config for Ceilometer usage
Ceilometer filter was previously removed from the Swift
configuration to avoid useless Ceilometer logs in the Swift
ones. This was fixed by setting only warning log level for
this Ceilometer part of the pipeline to keep only important
ones.

Change-Id: I8c41355bb98dbf3bb59ec792221b05ea936086b7
Partial-Bug: #1294789
2014-06-24 16:52:46 +04:00
Bob Ball 8230296ec3 Use curl to download from github.com
Github recently removed some sslv3 ciphers - wget seems to only
enable a subset of the ciphers available so fails now, but curl
continues to succeed.

Use --no-sessionid to work around
https://bugzilla.redhat.com/show_bug.cgi?id=1098711

Change-Id: Ia110bd2d0a222e438189c10a9c1a236bd7ea3d0e
2014-06-24 11:36:47 +01:00
Julien Vey 00da58a0da Add an environment variable to enable extensions in keystone
Following https://review.openstack.org/#/c/44401/3

Change-Id: I8e0391cd68e29e6d57c0f35517bf4155110861c7
Closes-Bug: #1218733
Co-Authored-By: Yong Sheng Gong <gongysh@unitedstack.com>
2014-06-24 10:09:08 +02:00
Ian Wienand bcdce9ea12 Handle failure of openstack endpoint
Change 4f7bf6963a introduced finding the
endpoint via "openstack endpoint show" only.  Previously that output
was piped through grep, etc. so it handled fell back to a blank
output when the endpoints were not available.

Ignore failures of this command so the blank output is matched

Change-Id: Iae2f09784ffa38efd2f858513bf284c84c32edac
2014-06-24 15:06:02 +10:00
Franck Yelles 683ff42d3c Support of an alternate pypi server
Currently pip will get the package from the https://pypi.python.org server.
For CI, it's a problem as Internet connection can be down,
the pypi server down, etc...

The usecase is for a company/user that maintain a local pypi mirror
and give the option to use this server instead of the official one

Change-Id: I83aac4646cb78827a92c9636d78238f8a6118642
Implements: blueprint support-local-pypi-server
2014-06-23 15:19:46 -07:00
Jenkins 4fcda870e6 Merge "Do not install openvswitch-datapath-dkms on Ubuntu 14.04" 2014-06-23 18:39:24 +00:00
Jenkins 399a2640bc Merge "Use Keystone's default token format if not set" 2014-06-23 13:43:30 +00:00
Jenkins d4f3ab9c1f Merge "Move static docs into master branch" 2014-06-23 13:42:55 +00:00
Sean Dague e83f7785a7 retry apt operations to avoid network issues
One of the major gate failures is do to something being wrong with
the apt mirrors. The Acquire group provides an implicit retry on
network operations which seems like it might be helpful here.

Ref: http://linux.die.net/man/5/apt.conf

Change-Id: I099f47ed86ad6a3d4296bff4cce75e7f7d946d27
Related-Bug: #1286635
2014-06-23 09:06:22 -04:00
Sean Dague e837714244 use setup_install for django_openstack_auth
This is fundamentally a library. As such we should setup_install
so that we can possibly pin it, otherwise we *always* get the
git version instead.

Change-Id: Ia815f2675cf535bb05a7e8eda853690171559b86
2014-06-23 08:21:07 -04:00
Brad P. Crochet e66da49c29 Bump EPEL release rpm for RHEL 7 to 7.0-2
Change-Id: I67aca97770cd6f89072e881ae37e39d70bfaba53
2014-06-23 08:17:54 -04:00
Thomas Bechtold a650901837 Cleanup postgresql-server on openSUSE
During database cleanup, delete postgresql-server package also on
openSUSE.

Change-Id: I4dff0ac6493ab9b9a8c6ed15b7cfcdb35264da27
2014-06-23 13:47:36 +02:00
Henry Gessau c48afe4bc0 Do not install openvswitch-datapath-dkms on Ubuntu 14.04
Change-Id: I8c58d998011427a202c79c45b87b5eca5ceaaa71
Closes-bug: #1331111
2014-06-22 16:10:56 -04:00
Jenkins 4adc16f7e4 Merge "add worlddump tool to devstack" 2014-06-22 17:40:15 +00:00
Jenkins f94b44dd97 Merge "Glance: start to use nova's glance configuration section" 2014-06-22 17:32:06 +00:00
Jenkins 51018faa06 Merge "Add support for django_openstack_auth" 2014-06-22 17:19:18 +00:00
Sean Dague 97fcc7b27b add worlddump tool to devstack
when we exit poorly, start building a tool for doing a capture
as to why. This tool is expected to be consumed directly from
grenade as well.

Change-Id: Ia1bc1c2e259587035ca7252baceec25fa464cb82
2014-06-22 11:37:51 -04:00
Dean Troyer 54b9732339 Move static docs into master branch
The hand-maintained static HTML docs for DevStack have been in a
GitHub gh-pages branch; move them into the master branch in
preparation for hosting them in openstack.org infrastructure.

By default tools/build_docs.sh now builds the static HTML output
into docs/html.

Change-Id: Ide5f7d980a294c7a9f8a3decaed0939f1c239934
2014-06-20 18:04:55 -05:00
Jenkins cab1eb12c6 Merge "cinder: use non-deprecated notification_driver" 2014-06-20 16:20:16 +00:00
Jenkins 3cb9b434a7 Merge "Install oslo.db from source" 2014-06-20 09:26:50 +00:00
Gary Kotton 8f8ea9ac91 Glance: start to use nova's glance configuration section
Commit 4b6e75b5f8037adbf63ac2f03dca17f0c8c0bc08 added support
of a neutron section. This updates the code to make use of
that section.

Change-Id: Ib9a0f2aeb0d91adeb567f79917804f0a89fdb6e1
2014-06-20 00:51:09 -07:00
Jenkins e0ccdd1488 Merge "Use oslo-messaging-zmq-receiver to start zeromq receiver" 2014-06-20 00:45:12 +00:00
Jenkins 056b7c1193 Merge "PKIZ is the default token provider" 2014-06-19 23:00:13 +00:00
Jenkins 711a4d2ff7 Merge "Install ryu's requirements" 2014-06-19 22:49:50 +00:00
Jenkins f3939bf077 Merge "Use correct path when extracting tar.gz image" 2014-06-19 22:47:39 +00:00
Jenkins 47e7a14319 Merge "Remove external attribute from the Provider Network" 2014-06-19 22:06:41 +00:00
Brant Knudson 1e1fce856d Use Keystone's default token format if not set
Devstack was setting its own default for Keystone's token format, so
when Keystone's default token format changed then devstack needed to
be updated. With this change, devstack will only override Keystone's
token format if KEYSTONE_TOKEN_FORMAT is set explicitly. PKI setup
is assumed to be needed unless the KEYSTONE_TOKEN_FORMAT is set to
UUID.

Change-Id: Idfa78e93abd80273dadcf37007a024bb6a783a48
2014-06-19 16:59:09 -05:00
Jenkins fcebd2b5e6 Merge "Call ironic-dbsync with proper --config-file option" 2014-06-19 16:57:32 +00:00
Sean Dague 0afa912e99 Build retry loop for screen sessions
There is a timing window where we might lose the commands being
stuffed into screen because bash is spawning. In those cases, loop
around and try building screen sessions again.

Change-Id: I49247de06bbd59424cb10fb9a8db145907be5138
Related-Bug: #1331274
2014-06-19 12:07:43 -04:00
Jenkins a887acb934 Merge "Remove obsolete sahara keystone auth conf" 2014-06-19 12:38:01 +00:00
Elena Ezhova 2d451967be Use oslo-messaging-zmq-receiver to start zeromq receiver
The project-specific receiver command nova-rpc-zmq-receiver
has been replaced with oslo-messaging-zmq-receiver.

We need to update devstack code accordingly.

Change-Id: I7696c649fa818ecb523b698ea4a23f70da60147d
Closes-Bug: 1279739
2014-06-19 16:25:23 +04:00
Jenkins e54a2b5057 Merge "Save OPENSTACK_KEYSTONE_URL to horizon local_settings" 2014-06-19 11:34:10 +00:00
Sergey Lukjanov 0d286089b2 Remove obsolete sahara keystone auth conf
Change-Id: I9005d99540572bd1e9251683b1e9cc6638afa7e7
2014-06-19 10:41:39 +00:00
Jenkins 8c2164dbfd Merge "Neutron: start to use nova's neutron configuration section" 2014-06-18 18:54:59 +00:00
Doug Hellmann c7297945d9 Install oslo.db from source
Add oslo.db to the list of Oslo libraries we install from source.

Change-Id: Ie97ab6bfac19fbce9aeda5a96c6d7a805dfa6c35
2014-06-18 11:39:52 -07:00
Jenkins af86e43d7b Merge "Fix unsubstituted filename creation" 2014-06-18 11:16:14 +00:00
Jenkins 0099487f18 Merge "Wait for OVS to reconfigure when creating PUBLIC_BRIDGE" 2014-06-18 11:14:36 +00:00
Gary Kotton 13d385e402 Neutron: start to use nova's neutron configuration section
Commit 5cacad3508570ce70b1f9ef620e0508169687fda added support
of a neutron section. This updates the code to make use of
that section.

Change-Id: I86119476fde5066182d3aadcee5985019202647a
2014-06-17 23:26:44 -07:00
Zhenguo Niu e385d1e030 Add support for django_openstack_auth
It would be useful for development, reviewing and testing to add
support for django_openstack_auth to devstack.

This change adds the integration tests to the openstack_auth
list of test: https://review.openstack.org/#/c/86528/

Change-Id: Ifbd336b83f6b2beb23996b599ec820232c13efdd
Closes-Bug: #1262121
2014-06-18 14:04:34 +08:00
Jenkins 5bdabd070b Merge "Add $TOP_DIR to the path when calling tools' scripts" 2014-06-17 19:51:28 +00:00
Jenkins ef837e4c7f Merge "Configure heat keystone client for SSL when keystone uses SSL" 2014-06-17 19:47:12 +00:00
Jenkins a4de9a9c35 Merge "devstack should put admin_tenant_id in tempest.conf file while setup" 2014-06-17 19:47:10 +00:00
Jenkins e32526d146 Merge "Add basic echo_* functions for grenade" 2014-06-17 19:44:30 +00:00
Jenkins 7c5a02c48c Merge "Add optional repo enablement for RHEL 7" 2014-06-17 16:47:22 +00:00
Jenkins 902a760829 Merge "Invoke create_nova_conf_neutron from odl-compute post-install only if nova is enabled." 2014-06-17 16:31:13 +00:00
Jenkins 5b3d97044b Merge "Add flag to set nova v3 api for tempest" 2014-06-17 16:31:06 +00:00
Jenkins 53e1750c08 Merge "Fix Apache Site configuration for openSUSE" 2014-06-17 16:09:06 +00:00
Jenkins da2fe19e24 Merge "Use identity_uri instead of auth fragments" 2014-06-17 16:06:48 +00:00
Jenkins b15413c252 Merge "Cut the heat flavor" 2014-06-17 08:17:51 +00:00
Ryota MIBU 410f5c0016 Fix unsubstituted filename creation
Since merge_config_file() tries to create an unsubstituted config file,
stack.sh fails due to permission denied in the file creation when you
use '[[post-config|/$Q_PLUGIN_CONF_FILE]]' and the file does not exist.

This patch deletes unnecessary 'touch' command, because the file will
be made by 'iniset' function in the next command line with evaled
string from 'configfile'.

This patch also fixes merge_config_group() to use evaled 'configfile'
when it checks the directory of the config file exists.

Change-Id: I608847a34143b5c6a1708c180186dd88a32dd44b
Closes-bug: #1294213
2014-06-17 15:43:07 +09:00
Jenkins f04abfe865 Merge "Support option for Keystone PKIZ token provider" 2014-06-17 06:14:29 +00:00
Mark McLoughlin dc0938e1c9 cinder: use non-deprecated notification_driver
Cinder has been using oslo.messaging since Icehouse so it should be
using 'messaging' as its notification driver and not the now deprecated
full python path to the oslo-incubator notification driver.

Change-Id: I3edca1ff54e51b464cc1b23935c8530e2e242fee
2014-06-17 06:37:43 +01:00
Mauro S. M. Rodrigues dae1152518 Add $TOP_DIR to the path when calling tools' scripts
The missing reference to $TOP_DIR prevent us to run stack.sh from a different
directory.

Change-Id: Ie15b89734264789bef9a8efcfdbbf2cdb89c936e
2014-06-17 02:07:11 +00:00
Jenkins 4fbb8137af Merge "Reserve Keystone ports from the ephemeral range" 2014-06-17 01:24:47 +00:00
Jenkins 0dfc5230cc Merge "make mysql run in strict mode" 2014-06-16 20:57:53 +00:00
Jenkins 56a564021d Merge "double the screen sleep timeout" 2014-06-16 19:58:37 +00:00
Sean M. Collins 21e6c62c15 Remove external attribute from the Provider Network
Co-Authored-By: Sridhar Gaddam <sridhar.gaddam@enovance.com>

Related-Bug: #1284718
Change-Id: Iad2f051a2b7b0a324dff4e716b8d2469a4f20895
2014-06-16 11:24:04 -04:00
Brad P. Crochet c359921cce Add optional repo enablement for RHEL 7
The RHEL 7 and RHEL 6 optional repos have different names. This enables
the correct repo depending on the release.

Change-Id: I6772c9903a5b9e98cb870d586629564126a6119a
2014-06-16 10:30:02 -04:00
Flavio Fernandes 51783ccf38 Invoke create_nova_conf_neutron from odl-compute post-install
only if nova is enabled.

Change-Id: I4627ab97eccd7fd4a2ffc31b6a0bb939b2343659
2014-06-16 10:27:42 -04:00
Jenkins 3723814bf2 Merge "convert devstack from awk to outfilter" 2014-06-16 14:24:06 +00:00
Sean Dague 43d8f1cddd double the screen sleep timeout
HP Cloud 1.1 is quite slow per core. So much so that grenade is
often failing to start services because bash in a screen session
isn't ready in 1.5s. Double this to 3s to try to decrease failures
in the gate.

We should instead do this via some readiness check to decrease
races.

Change-Id: I2b066a687916742e966190f00b5b06a795d4a014
2014-06-16 09:39:19 -04:00
Jenkins 906ffb7b77 Merge "XenAPI: Fix deprecated config options" 2014-06-16 12:13:34 +00:00
Ralf Haferkamp 633a1290e5 Fix Apache Site configuration for openSUSE
We can use the mechnism as on Fedora for openSUSE.

Change-Id: Ic0d1734df3bdc9ec66e1592109b2d3770d6e0144
2014-06-16 14:10:05 +02:00
Sean Dague 62cb563ddc convert devstack from awk to outfilter
The complexity of the awk script was pretty high, and it would
be good to do it in summaries as well, which starts to get a bit
squirelly. Instead bring over the outfilter.py from grenade and
use it for the timestamping.

Any additional overhead from python should be offset from not
shelling out to date on every line of output.

Change-Id: Ic2b86ddba3e7f6520a0fd35599b01143936c6deb
2014-06-16 07:03:23 -04:00
Bob Ball 786a3a3849 XenAPI: Fix deprecated config options
I346ee0248c03e60716bd7dc4a5ee4493610867cb broke the XenServer CI as
devstack was still setting the deprecated config options.

Change-Id: Icd84212e97a9d5e007745be8096fa552bc23cb6f
2014-06-16 08:37:05 +01:00
Jamie Lennox 3561d7f9ed Use identity_uri instead of auth fragments
auth_token middleware now accepts a standard URL string as the parameter
identity_uri instead of specifying protocol etc individually. Change the
services over to use this.

Also changes over some other places in which the auth fragments are used
individually to the new variables and fixes up some misconfigurations of
auth_token.

identity_uri option was release in keystoneclient 0.8.0

Change-Id: Iac13bc3d08c524a6a0f39cdfbc1009e2f5c45c2a
2014-06-16 15:16:48 +10:00
Jenkins 7006105997 Merge "VMware NSX: fix typo" 2014-06-15 18:50:54 +00:00
Jenkins df97cf3676 Merge "Remove unnecessary ini commenting from nova" 2014-06-15 01:49:44 +00:00
Jenkins a1a601316e Merge "Install 'ipmitool' package for Ironic" 2014-06-15 01:49:08 +00:00
Jenkins 1e2417b302 Merge "a more proper default nic selection criteria" 2014-06-15 01:32:23 +00:00
Attila Fazekas 51557a5025 Cut the heat flavor
1024Mb memory is too much for single instance.
approximately 4 GiB memory used even without a booted VM.

The heat auto-scaling scenario needs to boot 3 VM
(currently disabled), if any other test running in parallel
and boots up a vm it would easily can cause OOM an
issue.

The heat-slow job can work with 128 MiB instance memory,
but this change reduces it just to 512 MiB (safer for the guest),
and enough to avoid OOM issues on the host,
and let us to heve more vm at the same time.

The m1.tiny flavor is not good because now it has a hard coded
1 GiB disk limit and the f20 image requires 2 GiB.
Setting the disk size to '0' -> automatically use the virtual size
of the image.

Using multiple cores does not really helps in boot time :(,
but it might cause higher host load. (More locking)
Reducing the core number to 1.

Change-Id: Ice7c1253d15e91fd1c02bc8c6809335aaebfff4a
2014-06-14 22:00:04 +00:00
Jenkins 135adf7884 Merge "selinux permissive on Fedora" 2014-06-14 18:56:29 +00:00
Jenkins fcd03d71bf Merge "Use apache2ctl after apache is installed." 2014-06-13 22:49:24 +00:00
Morgan Fainberg 6cae83efd7 Reserve Keystone ports from the ephemeral range
Reserve Keystone ports from the ephemeral range as early as reasonably
possible in the fixup_stuff.sh process to reduce the likelihood that the
port will be in use. This does not completely resolve the issue
where Keystone's IANA assigned port falls into Linux's ephemeral
range, but this should reduce the occurrences. The default ports
are 35357 and 35358.

Change-Id: I8cfb53d8f90c1ff1fb1083c59fefabca3d14323b
Partial-Bug: #1253482
2014-06-13 21:33:52 +00:00
Jenkins e9b343c3c9 Merge "[Fedora] Devstack fails to install in firewalld less system" 2014-06-12 22:23:10 +00:00
Jenkins 73ed4880a6 Merge "Ironic: Add deploy kernel and deploy ramdisk to driver_info" 2014-06-12 18:52:40 +00:00
Jenkins 27c29e8959 Merge "remove the build timeouts" 2014-06-12 18:31:32 +00:00
Matthew Treinish d514d60f5f Add flag to set nova v3 api for tempest
This commit adds a new env variable, TEMPEST_NOVA_API_V3 to set
whether the tempest api v3 tests are enabled.

Change-Id: If14deb80f271061e70fae6c3d13b210ac0dd9399
2014-06-12 14:31:21 -04:00
Devananda van der Veen 23a64e2af8 Install 'ipmitool' package for Ironic
Ironic's reference / recommended driver is the "pxe_ipmitool" driver,
which requires the 'ipmitool' package and system binary. Thus,
devstack should install it.

Also, Ironic will soon be validating that ipmitool is present in the
system path when loading the pxe_ipmitool driver, as it does for other
drivers (seamicro, pyghmi) that have external dependencies.

Causing devstack to install this package when Ironic is enabled will
also help users who wish to test Ironic against physical hardware that
has IPMI support, without having to perform additional manual steps
(like enabling the pxe_ipmitool driver and installing the ipmitool
packge by hand).

Change-Id: I13da5f8978b280b192f9b033c348a11bfc44c9d2
2014-06-12 10:45:11 -07:00
Attila Fazekas d7967a4879 selinux permissive on Fedora
The f20 gate job is failing on hpcloud images
(official F20 cloud image), with enforcing selinux.

Setting selinux to permissive on all Fedoras.

Currently selinux policies are violated, when
 - horizon/httpd tries to access a files without
httpd_t friendly security label.
 - horizon/httpd_t tries to connect to openstack
   service port, without an allowing policy.
 - swift tryes rsync content without an authorized
   security label and without rsync_full_access sebool.
 - ..

In permissive mode you will be able to track,
the missing policies and labels by checking
the /var/log/auidit/audit.log*

The enforcing mode might be turned on in the future,
when all label and policy configured correctly.

Change-Id: I6dad705dd11b9eb5f01ce67814f05d294b3979a5
2014-06-12 11:41:54 +02:00
Jenkins f46ac27999 Merge "Set default value for IPv6 subnet attribute flag" 2014-06-12 09:22:02 +00:00
Ian Wienand 83afcfe9a9 [Fedora] Devstack fails to install in firewalld less system
The official F20 cloud image does not contains the firewalld,
there is nothing to restart, and it fails the installation.

The previous workaround change, assumed all is_fedoras has
a restartable firewalld without ensuring is it installed at all.

RHEL6 even does not have a firewalld.

Closes-bug: #1329102
Change-Id: I3d119ce48af81b30bf02b01c2cd386612ac6ef90
2014-06-12 10:25:07 +10:00
Dave Tucker f60e8c0fbe Wait for OVS to reconfigure when creating PUBLIC_BRIDGE
The '--no-wait' flag will not wait for ovs-vswitchd to reconfigure after
changes have been made to the database. This causes a race condition as
the bridge may or may not be up when 'ip addr flush dev $PUBLIC_BRIDGE' is
called. This commit removes the '--no-wait' flag which is safe as the
openvswitch services are already started earlier in stack.sh

Change-Id: I73ef1b731295d03b0f064c5f786196284c3e39ce
Closes-bug: #1328962
2014-06-12 00:09:06 +01:00
Lucas Alvares Gomes cd7cfef429 Ironic: Add deploy kernel and deploy ramdisk to driver_info
Pass deploy kernel and deploy ramdisk as parameters to the driver
to enable Ironic to support different deploy provisioning
methods using the same flavor. This patch is part of the
https://blueprints.launchpad.net/ironic/+spec/add-node-instance-info
work which is separating the instance-level data from the driver-leval
data in the Node's resource of Ironic, once it's finished another patch
will be submitted to DevStack to remove the part of the code which is
adding the deploy kernel and deploy ramdisk parameters to the flavor,
for now a TODO was left inline as a reminder.

Change-Id: Id7cfb17cc6f6133964be139bfedbca1dc644b9cd
Implements: blueprint add-node-instance-info
2014-06-11 15:40:48 +01:00
Gary Kotton b405256309 VMware NSX: fix typo
Fix typo in the Neutron VMware NSX driver

Change-Id: I0519e30469c5cfbf285b2ad1032d110f8e9fdbb4
2014-06-11 04:18:08 -07:00
Jenkins 1469a04f18 Merge "Don't set nova api/conductor workers since nova handles this" 2014-06-11 10:06:49 +00:00
Jenkins b93e230807 Merge "Setup color logging for Ironic" 2014-06-11 10:06:46 +00:00
Jenkins c3fd0b5298 Merge "make get-pip.py download failures more clear" 2014-06-10 15:16:04 +00:00
Jenkins 3ce3ee6db9 Merge "Update again and retry a failed package install" 2014-06-10 15:15:57 +00:00
Jenkins b27d50e301 Merge "Fix Apache site config handling on Fedora" 2014-06-10 14:31:48 +00:00
Jenkins f0d9138987 Merge "Enable horizon on Fedoras" 2014-06-10 11:56:22 +00:00
Jenkins f8d4efc058 Merge "Update setuptools to latest for .dist-info support" 2014-06-09 20:28:10 +00:00
Morgan Fainberg 970ee9083e Use apache2ctl after apache is installed.
Ensure that apache2ctl is only called if apache2 is being used when
setting up Keystone. This patch corrects a case where apache2ctl
is being called at the time lib/keystone is being sourced. This
error breaks attempts to deploy Keystone under apache unless
apache is already installed at the time stack.sh is run.

Change-Id: I02d426438fa1246effd68c6bb3c3358910ed4c05
2014-06-09 12:09:33 -07:00
Greg Lucas 50e53925e1 Use correct path when extracting tar.gz image
Fix issue with file:/ image urls.

Change-Id: I8c5f5b27b5d6ebe5be84dc58d37752adbd12f89b
Closes-Bug: 1277609
2014-06-09 12:06:40 -04:00
Jenkins c1699c27d1 Merge "Add flag for ceilometer tests" 2014-06-08 15:34:39 +00:00
Jenkins c1095c74c4 Merge "Remove Fedora/libvirt workaround" 2014-06-08 12:39:08 +00:00
Adam Gandelman ab592931e2 Setup color logging for Ironic
If enabled, setup colorized logging for Ironic API and Conductor.

Change-Id: I8c6d60185dd7907a0f9aa46fd1ae7a92f53406d0
2014-06-06 15:12:32 -07:00
Dean Troyer 444a8d53ca Fix Apache site config handling on Fedora
Allow enable/disable_apache_sites() on Fedora to gracefully fail if the
config is not present.  This is primarily an issue when the config from
a previous run is not completely cleaned out (unstack.sh vs clean.sh).

Make APACHE_CONFIG_DIR fully qualified and overrideable in local.conf.

Also fix Horizon's handling of its Apache config file to be removed
in clean.sh.

Change-Id: I78a5de579dd3b02fa2e4e7e00ac0aabe71b531ad
2014-06-06 16:52:20 -05:00
Matt Riedemann 9800256ba7 Don't set nova api/conductor workers since nova handles this
The changes to devstack to set nova api/conductor workers to 4 predated
commit 75c96a48fc7e5dfb59d8258142b01422f81b0253 to default the workers
equal to the number of CPUs, so this change just removes the hard-coding
from devstack and relies on nova's defaults for number of workers.

Change-Id: I384fc9eeb7a7eddf4679a6852203307a92d88a93
2014-06-06 11:52:30 -07:00
Monty Taylor 5cc6d2cd0c Update again and retry a failed package install
On ubuntu, if we run into an error installing the package, it can be
because of transient upstream errors with repo sync state. Although
retrying the update won't fix it all of the time, it's low cost enough
to be worth a try before we totally give up.

Related-bug: 1286818
Change-Id: I522ac0d0bd8f82dc98f386c89f66c2b743efa525
2014-06-06 17:34:28 +00:00
Brant Knudson 0b0cbd1378 PKIZ is the default token provider
Keystone changed the default token provider to PKIZ from PKI.

Change-Id: I56b975383ded450308a8fe01908b6e5549e7cd74
2014-06-06 10:55:42 -05:00
Sean Dague fdb920c31d a more proper default nic selection criteria
look at all interfaces that ip link shows as being up, then filter
them for ^e or ^p devices. Should hold even after the bridges get
built.

Change-Id: If6b1e623f9d146c2430dc8a4a007997290b90846
2014-06-05 19:09:57 -04:00
Mathieu Gagné 76ed427ca1 Update setuptools to latest for .dist-info support
Support for .dist-info directories was added in setuptools 0.6.28.

At this moment, Ubuntu Precise 12.04 provides setuptools 0.6.24
which is too old for our needs.

Six is installed from wheel which uses the .dist-info directory.
For six to be found, we need to install setuptools >= 0.6.28.

Updating setuptools to the latest version using pip will provide use
the needed version to make six discoverable.

Closes-bug: #1326811
Change-Id: I761d0aeb2b8b593cee38d512afc8fed6a2d1fe37
2014-06-05 18:11:16 -04:00
Attila Fazekas 23b12a6e40 [Fedora] Install dnsmasq on n-cpu less host
The libvirt-daemon-driver-network pulls the dnsmasq,
on hosts where the n-cpu installed with libvirt backend.

But nothing installs it if you have only n-net or q-dhcp,
on the given hosts.

dnsmasq-utils does not depends on dnsmasq,
because it can work with other local dhcp servers.

Change-Id: I17a769df3bd51ca608c1728e892009125eea42ed
2014-06-05 18:59:03 +02:00
Sean Dague f625ffe24f make get-pip.py download failures more clear
curl dying ends up being a really unclear failure condition, and
hard to fingerprint in the gate. We should make this much more
explicit when we die.

Also, don't trust the upstream filename, because all the rest of
our logic would break if it changes anyway.

Change-Id: Ibc2a96b33471d24c597af0d7af896fb10523156f
2014-06-05 14:01:56 +00:00
Sean Dague 7b63c5ec9e be opinionated: only use get-pip.py
get-pip.py is now on a CDN, and is the prefered way to get pip.

Remove the default path of using pip tarballs from pypi and use
get-pip.py on from here on.

Closes-Bug: #1326539

Change-Id: I0661f7c6913ba6b3e1d00b30e22740d150bfd060
2014-06-04 22:53:25 +00:00
Brant Knudson 754c4408b3 Support option for Keystone PKIZ token provider
Keystone added support for a compressed token provider, PKIZ. This
change adds support to devstack. Set the KEYSTONE_TOKEN_FORMAT
option to "PKIZ" to configure Keystone to use it.

Change-Id: I123eef661c85cc805e950f1179b48e885078d40f
2014-06-04 09:07:32 -05:00
Haiwei Xu 98a181713c Save OPENSTACK_KEYSTONE_URL to horizon local_settings
OPENSTACK_KEYSTONE_URL is not saved to local_settings correctly,
this patch fixes this bug.

Change-Id: I4275f035be3d8ab013840d8b5e3f9a5e292a366b
2014-06-04 19:26:40 +09:00
Attila Fazekas afda4efb2c Enable horizon on Fedoras
The previous apache/horizon a688bc6510
change left horizon disabled on Fedora.

Closes-Bug: #1326126

Change-Id: I79f84bb63471f84c6b37538e8dfe2bcca3ce3eac
2014-06-04 07:34:13 +02:00
Sean Dague e56c137edb make mysql run in strict mode
this might obviate the need for postgresql in the gate, as it will
make mysql act more strict. Suggested by Monty during Atlanta
summit on test matrix.

Change-Id: Ibfcb0959159f3b84fe35a1198d481bff308da0d4
2014-06-03 05:57:30 -04:00
Vadim Rovachev 2541d611ff Add flag for ceilometer tests
Added flag for enable or disable tests for ceilometer
feature of fast work with databases

Change-Id: If68c2b733358a98f56265b70c31366e6a9120dfa
2014-06-03 13:44:56 +04:00
Ian Wienand 54e3910f2d Add basic echo_* functions for grenade
Grenade, and possibly other components, re-use parts of devstack
libraries.  This provides basic echo_* functions to avoid missing
commands in several libraries.

Change-Id: I972d6208055a8c4ca4c9bfd5383ad3c7159d5cbe
2014-06-03 17:16:38 +10:00
sridhargaddam fe733ae676 Set default value for IPv6 subnet attribute flag
This patch would set the IPv6 subnet extended attributes flag
to True. The following thread has some additional information.
https://review.openstack.org/#/c/96723/

Change-Id: Ie6ac42646cc2a4d808c05126bf7dd51f2b03ee6b
Partially implements: bp tempest-ipv6-attributes-support
2014-06-03 09:03:57 +05:30
Jenkins ea937baee6 Merge "Fix the way Apache site configuration files are used, to improve OS portability" 2014-06-03 03:16:08 +00:00
Jenkins 142adec5d6 Merge "Remove copy of cinder.conf.sample file" 2014-06-02 22:45:07 +00:00
Dmitry Tantsur 0c6a6545b2 Call ironic-dbsync with proper --config-file option
Without --config-file option ironic-dbsync creates SQLite database
in the current directory, instead of migrating MySQL database.

Change-Id: Ib733dbf9198a037114f6221e974acb29d109ff22
2014-06-02 20:21:03 +02:00
Jamie Lennox 25e548be3c Remove unnecessary ini commenting from nova
Nova does not ship these options in it's api-paste.conf any more so the
functions have no effect.

Change-Id: Ie4527a0639e977e83e6bfc07751ba062839e0600
2014-06-02 10:42:14 +10:00
Jenkins 47ae725f13 Merge "be a little more clever about interface default" 2014-06-01 09:39:52 +00:00
Jenkins 14916d4c54 Merge "Create an IPv6 network that uses an external router for IPv6" 2014-05-30 18:16:36 +00:00
John Griffith 55c0b225e2 Remove copy of cinder.conf.sample file
Rather than continue to be bit by conf updates
from external sources, Cinder is going to join
the party and cease generation of the sample.conf
as part of the unit tests.

First step however is to not attempt to copy it
from cinder/etc/cinder in the devstack setup.

This just removes that cp operation, nothing
in that sample conf was modfied from defaults
so it wasn't really doing anything anyway.

Change-Id: I727b1747ff36d775ef881e93e3b9a8528a17a4df
2014-05-30 15:46:13 +00:00
Gabriel Assis Bezerra a688bc6510 Fix the way Apache site configuration files are used, to improve OS portability
On Ubuntu 14.04, the site configuration file must have a .conf suffix for a2ensite and a2dissite to
recognise it. a2ensite and a2dissite ignore the .conf suffix used as parameter. The default sites'
files are 000-default.conf and default-ssl.conf.

On Ubuntu 12.04, the site configuration file may have any format, as long as it is in
/etc/apache2/sites-available/. a2ensite and a2dissite need the entire file name to work. The default
sites' files are default and default-ssl.

On Fedora, any file in /etc/httpd/conf.d/ whose name ends with .conf is enabled.

On RHEL and CentOS, things should hopefully work as in Fedora.

This change puts all distribution-related site configuration file name differences in lib/apache and
the other services gets the file name for its sites using the new exported function
apache_site_config_for <sitename>.

It also makes Fedora disabled sites use the .conf.disabled suffix instead of removing the .conf from
the file name.

The table below summarizes what should happen on each distribution:
+----------------------+--------------------+--------------------------+--------------------------+
| Distribution         | File name          | Site enabling command    | Site disabling command   |
+----------------------+--------------------+--------------------------+--------------------------+
| Ubuntu 12.04         | site               | a2ensite site            | a2dissite site           |
| Ubuntu 14.04         | site.conf          | a2ensite site            | a2dissite site           |
| Fedora, RHEL, CentOS | site.conf.disabled | mv site.conf{.disabled,} | mv site.conf{,.disabled} |
+----------------------+--------------------+--------------------------+--------------------------+

Change-Id: Ia2ba3cb7caccb6e9b65380f9d51d9d21180b894e
Closes-bug: #1313765
2014-05-30 12:07:24 +00:00
Jenkins ced4ba63cd Merge "Add support for creating provider networks" 2014-05-30 03:49:00 +00:00
Jenkins 3a15ccdd54 Merge "Update readme.md, heat is now enabled by default" 2014-05-30 02:52:09 +00:00
Sean Dague 1100717753 be a little more clever about interface default
the interface default of eth0 has become more wrong since we've
got a generation of Linux distros that don't use eth* as their
interface naming. Instead of that do a slightly more clever, but
probably still wrong thing, of picking an interface that exists
and is a physical interface.

This is still overridable, however won't cause really cryptic
failures in nova-compute because it's trying to use an interface
that doesn't exist *really* late in the network creation.

Change-Id: I93016ff5a25678de76254418155c839a269486a0
2014-05-28 17:30:10 -04:00
Sean Dague b57cda9866 remove the build timeouts
the defaults in tempest will be set to 1s in a related change,
so we can remove these.

Change-Id: I05d8b4f08614fdf92611e3ff34d124fe918bd457
Depends-On: If8332d4be8515ac574cbbf4e00cbe0a75b6ebc5d
2014-05-28 07:41:58 -04:00
Rob Crittenden fefd64b878 Configure heat keystone client for SSL when keystone uses SSL
When SSL is enabled in Keystone, the path to the Keystone CA file
needs to be set in ca_file in the clients_keystone section.

Change-Id: Ic324e09b42a96d0ba31e13f8e8042cb3ac24d0b6
Closes-Bug: 1324207
2014-05-27 22:27:15 -04:00
Chris Dent a0ced4df00 chown stack/data/nova/networks to $STACK_USER
$USER may be undefined (resulting in an error exit from stack.sh)
or may be the current $USER rather than the target $STACK_USER
(which may or may not be the same) which could lead to errors
later.

This change brings about consistency: the rest of stack.sh always
uses $STACK_USER.

This same problem may be present in lib/marconi.

Change-Id: Idff2bee88de4e1da11cd5765a03646caf3ede24f
2014-05-27 22:18:21 +01:00
Ian Wienand e6d99a946f Remove Fedora/libvirt workaround
An updated libvirt package to address [1] is in Fedora 20 now, so we
don't need this work-around.  Modify the comments of the other part of
the work-around (restart of services) and link to the most relevant
bug

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1098376

Change-Id: I47fba7b4f273162c2af1e37902a512041449750b
2014-05-27 13:58:12 +10:00
JordanP 97eb9bbec6 Update readme.md, heat is now enabled by default
Change-Id: Ia36879711aa440f4fba657159afeba2105c6aae4
2014-05-26 09:38:50 +02:00
YAMAMOTO Takashi f12a434bbf Install ryu's requirements
Install packages ryu requires explicitly becuase they are
no longer covered by neutron's requirements.
(They used to be until very recently.)

Closes-Bug: #1323136
Change-Id: I6a603d95c053ac1deba59d8e479dbaf1a70293f3
2014-05-26 11:34:02 +09:00
Jenkins 1e6e4289bc Merge "Fix syntax error in script" 2014-05-25 13:32:04 +00:00
Harshada Mangesh Kakad 4912623321 devstack should put admin_tenant_id in tempest.conf file while setup
Some of the test cases in tempest related to quota use
admin_tenant_name, ideally it should use admin_tenant_id.
As tempest.conf file does not contains admin_tenant_id
it should also be updated. tempest.conf file is generated
by devstack while setup of openstack, changes should be made
in devstack so as to put admin_tenant_id in tempest conf file.

Change-Id: I62baf5b1e21ebf8d3b511624c54741015b304955
Closes-Bug: #1321624
2014-05-23 09:16:52 +00:00
Malini Kamalambal 22ab3b9f31 Fix syntax error in script
One of the recent patches introduced a syntax error in the marconi
script. This patch fixes the issue & gets marconi running in
devstack again.

Change-Id: I46a039f72174c4898869983de03a1e29cbe435bf
2014-05-22 16:26:25 -04:00
Jenkins 5069ae9eef Merge "Add oslo.db" 2014-05-22 19:29:17 +00:00
Jenkins e95a13f750 Merge "Fix notify_nova options" 2014-05-22 19:27:39 +00:00
Jenkins 0cf98966fd Merge "Add support for the IPv6 extended attributes in Tempest" 2014-05-22 18:09:19 +00:00
Jenkins eccd8952f7 Merge "Revert "ceilometer.conf configuration option missing os_auth_url"" 2014-05-22 18:09:12 +00:00
Jenkins 2109d74db5 Merge "Fix getting EC2 and S3 urls in create_userrc" 2014-05-22 18:04:54 +00:00
Jenkins 85c02af074 Merge "Remove *_url inisets since now come from catalog" 2014-05-22 17:51:45 +00:00
Sean M. Collins e13fd6006d Create an IPv6 network that uses an external router for IPv6
Change-Id: Id1498d74db816b3edbb8376ca5acb7cc5792ea5c
2014-05-22 11:47:00 -04:00
Sean M. Collins 5ec6f8f15d Add support for creating provider networks
Implements blueprint neutron-provider-networking

Change-Id: I4bad9483b92875ea5e143b0e11652e01faed35a4
2014-05-22 11:47:00 -04:00
Jenkins d158fda947 Merge "Add options to configure provider network mappings for OpenDaylight" 2014-05-22 14:33:43 +00:00
Mat Lowery ba8635a247 Remove *_url inisets since now come from catalog
Another proposed change fetches endpoints from the Keystone catalog as
long as the *_url opts are not present. This change will make Trove on
DevStack use the catalog.

Note: This must merge after https://review.openstack.org/68015.

Change-Id: I397254e72823ab7c7b28014d4fa18e2cefb79e6d
Closes-Bug: #1222891
2014-05-22 05:35:44 +00:00
Gordon Chung d24afa190c Revert "ceilometer.conf configuration option missing os_auth_url"
patch breaks gate (see any logs/screen-ceilometer-acentral.txt.gz
after this patch)

This reverts commit 4c11089739.

Change-Id: I684d50be1b4d580d385a8bb74b3539b1305ec330
2014-05-21 16:05:38 -04:00
ftersin 4f7bf6963a Fix getting EC2 and S3 urls in create_userrc
Invalid parsing of openstackclient output was introduced in
I03c17cfc9740c3eb257152c95d9c4f021db2c89e. Here command lines
was changed to get urls with no parsing.

Also default EC2_URL was fixed.

Change-Id: Ic46a9989321cf6310c56edeeb737c603a4f9c1ed
2014-05-21 22:09:46 +04:00
Jenkins 9d57dc8b04 Merge "ceilometer.conf configuration option missing os_auth_url" 2014-05-21 10:30:45 +00:00
Joe Gordon 7a15a0e04b Add Core, Ram and Disk filter to fake virt setting
The FakeVirt driver shouldn't need custom scheduling options, so it run
instead of a real virt driver for testing purposes. This simplifies the
use case where someone wants to run the FakeVirt driver along side a
real driver so someone can test there cloud application without wasting
real instances.

Since the FakeVirt driver should look like it has near infinite resources,
turn on Core, Ram and Disk filters to make sure the drive works with them
enabled.

Change-Id: Ic7ec87e4d497d9db58eec93f2b304fe9770a2bbc
Related-Bug: #1268943
2014-05-21 14:22:04 +09:00
Jenkins 740822b18b Merge "Use daemon flag only when USE_SCREEN=False" 2014-05-20 19:38:41 +00:00
Sam Hague 09b56b1c31 Add options to configure provider network mappings for
OpenDaylight

OpenDaylight needs to know the physical network mapping
used with vlan tenant isolation. This is similar to how
the bridge_mappings cofig is used to map the physical
network to the bridge,
i.e. bridge_mappings=physnet1:br-eth1,physnet2:br-eth2.

OpenDaylight needs the physical network device itself:
provider_mappings=physnet1:eth1,physnet2:eth2.

OpenDaylight needs the mapping because the device port is
used when pushing flows. The neutron API's provide the
physical provider network value for example as physnet1.

DocImpact:
Use of VLANs with ML2 and the OpenDaylight mechanism driver
requires OpenDaylight Helium or newer to be installed.

Closes-Bug: #1315492
Change-Id: If7af9ce5735b01c35315a54c79355ca87b72c4b4
2014-05-20 18:35:52 +00:00
Terry Wilson f06c4434f5 Fix notify_nova options
This patch fixes various typos that prevent the neutron nova
notification options from working.

Change-Id: Ia3fb1e02008b338e2d08e927346397292be4e398
Closes-Bug: #1321347
2014-05-20 10:56:48 -05:00
Longgeek 4c11089739 ceilometer.conf configuration option missing os_auth_url
ceilometer-agent-centrol error connection keystone: \
Skip interval_task because Keystone error: \
Authorization Failed: Unable to establish connection to
http://localhost:5000/v2.0/tokens

Fixed bug #1320951

Change-Id: Iae722595cb51e11e604d373779d74a8968ea3324
2014-05-20 15:02:25 +00:00
Jenkins d65f7a2858 Merge "Upgrade to cirros 0.3.2" 2014-05-19 19:20:00 +00:00
Jenkins 3d11c189c6 Merge "Add new configuration files for ceilometer" 2014-05-19 18:38:54 +00:00
Jenkins 9c2962a255 Merge "XenAPI: Fix final script to include functions" 2014-05-19 18:38:48 +00:00
Jenkins 0b2ee8fd4d Merge "Workaround Fedora libvirtd issues on Xen instances" 2014-05-19 18:38:41 +00:00
Ian Wienand 3ca91b2186 Workaround Fedora libvirtd issues on Xen instances
Fedora libvirtd fails to start on Xen instances (i.e. rackspace
instances) due to [1].  This works around the issue until it can be
fixed upstream.

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1098376

Change-Id: I3790b5025982730263a6a84fce596e80f09efd5a
2014-05-19 18:37:56 +10:00
Malini Kamalambal b0c3859c30 Use daemon flag only when USE_SCREEN=False
This patch removes the daemon option, when devstack is started
with USE_SCREEN=True.

Change-Id: Ib3b1c0b2abf9111b767b3d557dacdc7a89a38f59
2014-05-18 09:03:43 -04:00
Attila Fazekas 692011593e Move gcc to general
Lot of packages explicitly requires gcc now, but almost all of
the components needs it.

Always keep gcc in hand-range.

files/rpms/general: always installs the libxlst2-devel, not just on
RHEL 6, package recompile capability always handy and these are small
packages anyway.

Change-Id: Ia7d0e1938fb2453e3c02b979f99d6d179c6a24c6
2014-05-18 09:40:23 +02:00
ZhiQiang Fan 95053cf4d0 Add new configuration files for ceilometer
According to patch: https://review.openstack.org/#/c/77957/, and patch:
https://review.openstack.org/#/c/42713/15, new configuration files named
api_paste.ini and event_definitions.yaml are introduced, this patch
adds them to ceilometer configuration directory.

Change-Id: I57165d588da35f13b2d22629b48dc087502598a7
2014-05-16 16:52:49 +08:00
Jenkins f2fd04924f Merge "Add an option in lib/swift to increase max_header_size" 2014-05-15 21:20:54 +00:00
Jenkins 40c4313edd Merge "Use urandom rather than openssl for password gen" 2014-05-15 21:20:52 +00:00
Bob Ball d06d4550de XenAPI: Fix final script to include functions
Generally a ubuntu template is supplied - but in the case
where it is not, we need to source functions before sourcing
stackrc (Through xenrc)

Change-Id: I8325cf1c6f83946b7798e6d1bb8278e86831d3c4
2014-05-15 21:12:50 +01:00
Sean M. Collins bb2908b7e7 Add support for the IPv6 extended attributes in Tempest
Implements blueprint tempest-ipv6-attributes-support

Change-Id: I96bb78828eeb5548bb075f936342a027b9d11652
2014-05-15 10:24:31 -04:00
Radoslaw Smigielski 8c666cf22b README.md reformatting.
Break the very long lines into less than 80 characters long lines.

Change-Id: I40deb0f2b6170308fe192971a3edbf48ca6190ad
2014-05-14 12:38:08 +01:00
Ian Wienand 26a28b4af5 Use urandom rather than openssl for password gen
I tried using devstack on a cloud image that didn't have openssl, so
it generated blank passwords and gave an error about openssl missing.
Using urandom should not require more than minimal shell tools.

Change-Id: Ib3091183eb1d85fc8cf7c76e47da24a04ae4791f
2014-05-14 14:10:47 +10:00
Jenkins 8cedabcea8 Merge "stack.sh fails for Cisco plugin with missing cisco_plugins.ini error" 2014-05-10 12:24:16 +00:00
Jenkins 72f32d3b97 Merge "Fix incorrect comparisions" 2014-05-09 22:12:40 +00:00
Jenkins c63a7034d9 Merge "Use public gateway for Trove if neutron is enabled" 2014-05-08 23:13:12 +00:00
Bob Ball 8901245ef5 client-env requires admin permissions
openstack endpoint show identity will not be successful without
admin permissions; this causes exercise.sh to fail because it
claims keystone is not present

Change-Id: I769d70d0439c0b4c7e174a0adad7adcf1938095e
Closes-bug: 1317507
2014-05-08 13:36:33 +01:00
Kyle Mestery bd0855056b Fix incorrect comparisions
The files changed in this commit had incorrect bash syntax in that they were
assigning variables (=) instead of checking if they were equal (==). The
incorrect checks were preventing the configuration of VLANs with the Neutron
ML2 plugin.

Change-Id: I4b54bb5c69cc836c22900bd7a966197e9c616076
2014-05-08 10:29:34 +00:00
Nikhil Manchanda bc22e918d5 Use public gateway for Trove if neutron is enabled
Fix Trove to use the PUBLIC_NETWORK_GATEWAY if neutron is enabled.
This is needed since in this case the guestagent is able to reach
the devstack host only via the public PUBLIC_NETWORK_GATEWAY and
not via the private NETWORK_GATEWAY.

Change-Id: I61ee707e16d0222e7f479369e769cbe7ef2de7d7
2014-05-08 03:02:44 -07:00
Jenkins ceda7cfe65 Merge "Update create_userrc to openstackclient commands" 2014-05-08 05:34:27 +00:00
Jenkins a6c5552258 Merge "Add driver parameter for PLUMgrid configuration file" 2014-05-08 03:24:11 +00:00
Julien Vey 63024d9125 Add an option in lib/swift to increase max_header_size
With the increasing number of entries in the service_catalog header,
some projects will have a header bigger than 8192 and Swift cannot
handle headers of this size. Solum is the first one to have this issue

As a temporary hack to fix Solum's gate, we are increasing
the value of the max_header_size parameter in our "lib" script.

This patch makes this settings global to all projects using devstack,
so that in a near future, if a project has a service_catalog header
bigger than 8192, it doesn't have the same problems we had.

Closes bug 1316585

Change-Id: I5c15f8f9531839353c3d99e46d920688058ec33c
2014-05-06 15:18:47 +02:00
Jenkins 6445bd6c15 Merge "Force TFTP to listen on IPv4 endpoint" 2014-05-06 11:49:19 +00:00
Jenkins 1bb05a9631 Merge "Fix logging for keystone under mod_wsgi" 2014-05-06 11:36:02 +00:00
Jenkins 9d229e499e Merge "Better "exec 3>&1" comment" 2014-05-06 09:56:28 +00:00
Jenkins 0d59da9dc7 Merge "Cleanup WSGI config for keystone on stop" 2014-05-05 21:18:51 +00:00
Jenkins eaedff2f1b Merge "Run all-in-one instead of sahara-api" 2014-05-05 19:22:24 +00:00
Attila Fazekas 522cfe0951 tempest py26 setup
Simplifying the steps between devstack install and tempest run, by
 * installing tox<1.7, bacuse 1.7 is not compatible with our tox.ini
 * installing and patching 'discover' when the python version is 2.6

Change-Id: I8008837d2fae6cebeeeb051b63066279ca477e01
2014-05-05 07:36:49 +02:00
Jenkins 03c01a3bef Merge "Add support for ephemeral disk to ironic" 2014-05-04 16:05:12 +00:00
Jun Wu 8710b6501b Better "exec 3>&1" comment
"Copy stdout to fd 3" is confusing. Explain the intention behind `exec 3>&1`.

Change-Id: Id19434121876e65a14c709beac26b9daf4a36a0a
2014-05-04 10:26:28 +08:00
Jenkins 376a4a1a40 Merge "Ensure neutron configuration files are cleaned by clean.sh" 2014-05-03 18:57:11 +00:00
Jenkins 98673027dc Merge "Fixes README.md on APACHE_ENABLED_SERVICES=keystone" 2014-05-03 01:52:24 +00:00
Jenkins 64162aaace Merge "Insert required iptables rules for Ironic" 2014-05-02 21:28:24 +00:00
Sergey Lukjanov 850e0fbdd4 Run all-in-one instead of sahara-api
We're upgrading sahara architecture, so, we've added an alias to run
sahara in all-in-one process.

Change-Id: I7f92e13c1a9b15070c5ec46428ca3949190abfc9
2014-05-03 00:53:01 +04:00
Jenkins 0154badc2b Merge "Kill spinner process when stack.sh exits" 2014-05-02 19:20:29 +00:00
Jenkins 0daf26b880 Merge "Fedora mysql log dir is /var/log/mariadb" 2014-05-02 18:20:14 +00:00
Jenkins 584e65cfc1 Merge "Configure Horizon to use SSL-enabled Keystone" 2014-05-02 12:12:02 +00:00
Dmitry Tantsur 8c0bd9fe46 Force TFTP to listen on IPv4 endpoint
On Fedora with the default configuration TFTP will listen only
on IPv6 endpoint, making imporrible for a node to reach TFTP.
This patch forces TFTP to listen on IPv4 endpoint by modifying
Xinet.d template.

Change-Id: I1ed315fae38816c8e0c2a736261d1c3736f437ff
2014-05-02 13:03:25 +02:00
Jenkins 24c4ad6fa1 Merge "Add support for deprecated configuration vars in Juno" 2014-05-02 10:18:26 +00:00
Jenkins a6c21928d2 Merge "Enable console logging for Ironic baremetal VMs" 2014-05-02 10:08:08 +00:00
Jenkins 613af92d04 Merge "Re-enable Swift3 middleware support in DevStack" 2014-05-02 10:08:05 +00:00
Jenkins 6af61ad2e2 Merge "Bump minimum default RAM for Ironic nodes to 1GB" 2014-05-02 08:22:19 +00:00
Jenkins 6d0ea94527 Merge "Remove lib/tempest errexit handling" 2014-05-02 08:16:48 +00:00
Morgan Fainberg c11d6e0b09 Cleanup WSGI config for keystone on stop
Ensure that the VHOST and the scripts used to enable keystone under
mod_wsgi are properly cleaned up.

Change-Id: I76a748b0fd5f1a5182d10e425202857c5621e25a
2014-05-01 22:57:06 -07:00
Morgan Fainberg 2c2b1cccc9 Fix logging for keystone under mod_wsgi
When Keystone is configured under mod_wsgi, Keystone configuration 
requires debugging to be enabled as the debug flag cannot be passed
via cli arguments.

Because Apache 2.2 (default for a number of distributions) does not 
support passing an explicit format to the ErrorLog, Keystone under 
mod_wsgi ends up with duplicated timestamps in the Keystone log. 
This patchset eliminates the %(asctime) and %(msecs) substitution 
targets from the log format options when Keystone is configured 
under mod_wsgi.

Change-Id: I0bf32db6e53cb653921162cb1957eb988b819815
2014-05-02 05:12:21 +00:00
Edgar Magana 41a4f27ef7 Add driver parameter for PLUMgrid configuration file
PLUMgrid plugin for Neutron supports to load dynamically a back-end driver.
This parameter has been added in the plugin configuration file.

Change-Id: I1698a8fa558841aeb94476bc8c7f103b21f2a2d3
Closes-bug: #1315466
2014-05-01 16:38:10 -07:00
Jenkins 020d8611d5 Merge "Closes-Bug:1313755 adding code to remove heat conf files" 2014-05-01 19:38:08 +00:00
Jenkins 33e6a94827 Merge "Fix ceilometer-acompute rejoin problems" 2014-05-01 17:22:17 +00:00
David Shrewsbury 3e4612b2f7 Add support for ephemeral disk to ironic
Add a new variable, IRONIC_VM_EPHEMERAL_DISK, to specify the size
of the ephemeral disk. Default will be zero to match the current
behavior.

Change-Id: Ia8a8ef364a85fc803b93fb936212de0894a19bd8
2014-05-01 11:40:46 -04:00
Gary Kotton b00e4181a8 Ensure neutron configuration files are cleaned by clean.sh
Add the /etc/neutron directory to the list of directories
that are deleted.

Change-Id: Ia560179a3cf121f8d09a0c10c8b68375fdd13be7
2014-05-01 05:16:59 -07:00
Adam Gandelman c1f0db2b1d Insert required iptables rules for Ironic
Devstack gate slaves have locked down local iptables firewalls.
Ironic nodes boot on an 'external' network and require TFTP
and Ironic API access back to the node via its HOST_IP.  This inserts
the required rules to the top of the INPUT chain.

Change-Id: I2e5dfa2346d45fdd549a3a3fbc255f190195cdd6
2014-04-30 11:21:47 -07:00
Gabriel Assis Bezerra 71fd1c4707 Fixes README.md on APACHE_ENABLED_SERVICES=keystone
The documentation stated that, to enable Keystone running on Apache,
one should set:
APACHE_ENABLED_SERVICES+=keystone,swift

However, it actually works with:
APACHE_ENABLED_SERVICES+=key,swift

Change-Id: I8cc92e9426d7fc3117b30df01babdb50576328af
Closes-bug: #1311461
2014-04-30 13:13:47 -03:00
Victor Sergeyev da945f3161 Add oslo.db
blueprint oslo-db-lib

Change-Id: If952099fa4dcf8638cad70d42a12ebcdac28de84
2014-04-30 19:08:43 +03:00
Attila Fazekas 3b53aebabd Fedora mysql log dir is /var/log/mariadb
/var/log/mysql does not exists on f20, f19, rhel7 by default,
but the /var/log/mariadb exists.

Change-Id: I0def3eaead491a00e6f8467db6b31502b9376188
2014-04-30 11:57:22 +02:00
Roger Luethi 73919cbcdd Remove lib/tempest errexit handling
lib/tempest had code to set -o errexit and restore the setting after
configure_tempest had run. This code didn't work, but it is no longer
necessary since we set errexit for all of devstack (see change 88521;
Change-Id Ia477e04567046a7fcdedf699423165bc577b72ad).

This changeset removes the errexit handling code from lib/tempest.

Change-Id: I2b0bc3c55a5d9bbb688f1e2e8e0fe133830a4172
2014-04-30 07:12:19 +02:00
Rob Crittenden c31fa40b77 Configure Horizon to use SSL-enabled Keystone
SSL can be enabled in Keystone when devstack is executed.
Horizon was not being configured to use the SSL port so
authentication was failing.

Change-Id: I253766d359aaab0bd1f844a8a637adc77e8eee2b
Closes-Bug: 1293749
2014-04-29 23:32:59 -04:00
Adam Gandelman 74eafa4b49 Bump minimum default RAM for Ironic nodes to 1GB
Set the default RAM for Ironic BM VMs to 1GB to ensure DIB produced deployment
ramdisks function correctly across older and newer kernels, regardless of
rootfstype.

Change-Id: Ifc15a4430aa63c3599e7fd76f5116dc7b728ead0
Closes-bug: #1311987
2014-04-28 14:06:42 -07:00
lokesh 559145253d Closes-Bug:1313755 adding code to remove heat conf files
Change-Id: Iefe1a34b09958d21d2516fdce0937e00e32afcb5
2014-04-28 20:48:09 +05:30
Bob Ball 527f21c7e7 Only use heat image where support
Glance will reject images that it doesn't understand, and only certain drivers can
use qcow2 images.  This means for systems without qcow2 support, devstack
will fail to run until this change is merged.

Change-Id: Ic92815f3d32880e987456c0428953dddaa81c94c
2014-04-28 11:54:21 +01:00
JordanP ea9c24b15f Re-enable Swift3 middleware support in DevStack
Because *swift* in no more allowed in ENABLED_SERVICES (see
I78222d7ee2ea8a281962129d5bcf06c118469510) swift3 middleware to
swift could not be installed anymore. This patch thighten a check
to allow swift3 (but not swift) in ENABLED_SERVICES.

Change-Id: I194f66ae7e5163e0e6178561b09f55024fdaa607
2014-04-28 08:42:20 +00:00
Jenkins 5ee1cd3b47 Merge "update heat image to the 64bit one we cached previously" 2014-04-27 15:27:57 +00:00
Roger Luethi de56ee15c7 Kill spinner process when stack.sh exits
The last spinner process active in non-verbose mode does not get killed
when stack.sh exits -- the spinner keeps spinning indefinitely.

Killing the spinner in err_exit cleans up no matter how the program
got terminated.

Because the code to kill the spinner is now called regardless of
whether spinners are in use, it has to check LAST_SPINNER_PID or the
kill command without an argument will trigger the ERR trap (or EXIT
with an error status, depending on where program execution stops).

This patch resurrects and fixes an abandoned changeset, hence:

Co-Authored-By: Adalberto Medeiros <adalbas@linux.vnet.ibm.com>

Fixes bug 1302112

Change-Id: I2d5b27971889b672361e9173bf6faf38fb1a1ec6
2014-04-26 15:06:23 +02:00
Gary Kotton 51c681d605 Add support for deprecated configuration vars in Juno
Just like the beginning of every other release, remove the deprecated
config option aliases that were marked as deprecated in Icehouse.

Nova patch - https://review.openstack.org/#/c/88456/

Change-Id: Idd051c516002030e8e191c7b8d31f1ff408e1c7d
2014-04-26 01:45:27 -07:00
Jenkins b61fc03102 Merge "Replace DEFAULT section with service_credentials" 2014-04-26 05:32:08 +00:00
Jenkins 1ab0ddceb4 Merge "lib/tempest: $HEAT_CREATE_TEST_IMAGE is not used anymore" 2014-04-25 13:21:56 +00:00
Sergey Lukjanov 10f416136b Expose enabled plugins for Sahara
Make devstack users able to specify enabled plugins. By default enable
vanilla, hdp and fake plugins. Fake plugin is needed for gate testing.

Change-Id: Ia557eafe19b7d8eb62b6511d8d5331a106ef4bc2
2014-04-25 11:42:41 +04:00
Jenkins f26668f66d Merge "Also pass FWAAS conf to VPN agent if enabled" 2014-04-24 23:15:39 +00:00
Jenkins a4d56939ca Merge "Add bridge_mappings to extras/80-opendaylight.sh to support vlan isolation." 2014-04-24 22:40:05 +00:00
Jenkins f63ee0e38d Merge "Some smaller fixes for openSUSE 13.1 support" 2014-04-24 22:04:30 +00:00
Sean Dague 4418d1fb5b update heat image to the 64bit one we cached previously
start caching the next 64bit update image to deal with heat
breaks we see from time to time.

Change-Id: If62840f4807151ada1598046fb7ad47c7210df12
2014-04-24 16:06:51 -04:00
Jenkins 79698041d0 Merge "Don't use deprecated nova libvirt conf names" 2014-04-23 23:18:52 +00:00
Jenkins dce6ff3071 Merge "Add "daemon" flag to marconi script" 2014-04-23 21:55:52 +00:00
Jenkins d191ade014 Merge "Add missing function neutron_plugin_configure_service to brocade specific file" 2014-04-23 16:57:21 +00:00
Jenkins b183a42994 Merge "Fix Sahara auth configs" 2014-04-23 16:05:35 +00:00
Sam Hague 408efd2170 Add bridge_mappings to extras/80-opendaylight.sh to support vlan isolation.
OpenDaylight integration with Openstack requires some extra configuration
information to be set in the ovsdb via the other_config value. Currently
only the local ip address is set. bridge_mappings needs to be added to support
vlan isolation.

This requires changing the form of the existing ovs-vsctl command to set
the other_config value. The current command does a replace so the last
command to run overwrites any other values. The command is changed to
append values instead.

Change-Id: Ia001ecf27c8f5ace05af014ecce0b13f6d490ac1
2014-04-23 11:19:28 -04:00
Dina Belova 0f6d4537e1 Fix ceilometer-acompute rejoin problems
The problem was in the screenrc file generated, where the
following command appeared:

sg libvirtd "ceilometer-agent-compute
                 --config-file /etc/ceilometer/ceilometer.conf"^M"

The final "^M" was not then parsed.

Change-Id: Ie6c5b1c9e3d196a3a9c343c2afb46435711c10f5
Closes-bug: #1311666
2014-04-23 17:51:50 +04:00
Obulapathi N Challa 9b2c5796ed Add "daemon" flag to marconi script
This patch adds daemon flag to marconi script. This change was
needed to run the latest build of marconi-server in background.
Since mongodb can not be used with marconi until gate is updated
to Ubuntu 14.04, we are changing our backend to sqlite.

Change-Id: I1a4148bd545818d5e943257be2f6e752ce43f793
2014-04-23 09:34:35 -04:00
Jenkins 17f52dcd8b Merge "Don't set nova.conf values to there default value" 2014-04-23 00:03:59 +00:00
Jenkins 6cb4f09aca Merge "Rename ironic option drivers_whitelist -> enabled_drivers" 2014-04-22 19:35:52 +00:00
Jenkins ce7ff0c4b5 Merge "Fixed pip with http(s)_proxy" 2014-04-22 19:34:48 +00:00
Jenkins e22df1771d Merge "VMware: update to latest cirros image" 2014-04-22 16:03:09 +00:00
Sergey Lukjanov 65dabd378a Fix Sahara auth configs
* auth_ host/port/protocol should use corresponding $KEYSTONE_AUTH_
* add missed auth_ host/port/protocol to [keystone_authtoken]

Change-Id: I0fc6434d552cdd03eb8d886681e57bb374e5bb61
2014-04-22 18:38:53 +04:00
JordanP 34f2f13bd4 lib/tempest: $HEAT_CREATE_TEST_IMAGE is not used anymore
Ridiculous patch to remove a not true anymore code comment. If
one wants to have Devstack get a heat compatible image, one
should add HEAT_FETCHED_TEST_IMAGE=Fedora-i386-20-20131211.1-sda
in his localrc

Change-Id: I2702a322fe1332be5c1301bb32710288ec683350
2014-04-22 15:39:30 +02:00
Adam Gandelman cf1ef23b72 Also pass FWAAS conf to VPN agent if enabled
If q-vpn is enabled, the Neutron neutron-vpn-agent is started
instead of the neutron-l3-agent, but only neutron-l3-agent receives
the fwaas_driver config when q-fwaas is enabled.  This ensures the FW driver
config is passed to either so that a properly configured agent is running
when the FWAAS extensions are enabled.

Closes-bug: #1310858

Change-Id: I237d2831a6b87ae46dfef047d3dc0b85fa6423d3
2014-04-21 17:35:22 -07:00
Eric Brown 641722b85a VMware: update to latest cirros image
The default image used is cirros 0.3.0, which is out-dated and
does not support cloud-init for config drive.  By upgrading to
0.3.2, we gain config drive support testing in our tempest runs.

Change-Id: Ibe7f70f1fb457d210b891b19ba3b5be94b2343f0
2014-04-21 08:49:35 -07:00
Devananda van der Veen 83eeed0ebc Rename ironic option drivers_whitelist -> enabled_drivers
There were competing patches to implement this feature in Ironic.

Patch I2da37409cea98731a2ca18dfe7298861fde37783 calls the option
'enabled_drivers', which is more consistent with other option names.

Change-Id: Ifa7eae594c6d9ea743a17b4c31e407501bba8467
2014-04-18 23:31:08 +00:00
Sean Dague b623860c37 add Fedora x86_64 image for nodepool
Change-Id: I54fdc81e2a233fdcf90534aff6be7984e28f6133
2014-04-17 21:56:53 -04:00
Joe Gordon 3317437cac Don't set nova.conf values to there default value
No need to set osapi_compute_extension and volume_api_class to there
default values.

Change-Id: I1f5345fa2e0ac3a3fbb96a63f36207d2233d7837
2014-04-17 17:05:12 -07:00
Joe Gordon 1cd8efc890 Don't use deprecated nova libvirt conf names
libvirt_cpu_mode was renamed to libvirt.cpu_mode
libvirt_type was renamed to libvirt.virt_type

This patch is needed before I346ee0248c03e60716bd7dc4a5ee4493610867cb can
land.

Change-Id: Ie8a39147ece3a3c86f4b146fa0af3641b1079319
2014-04-17 16:47:28 -07:00
Jenkins 6ee8cf8e72 Merge "Do not modify rsyslog files if rsyslog is not used." 2014-04-17 21:19:44 +00:00
Jenkins 1593db2422 Merge "Devstack support for Neutron VPNaaS" 2014-04-17 21:09:08 +00:00
Jenkins 279d2bef69 Merge "Remove sshd reconfig from lib/ironic" 2014-04-17 21:07:50 +00:00
Yves-Gwenael Bourhis f894c2ab80 Do not modify rsyslog files if rsyslog is not used.
Swift was missing an 'if [[ $SYSLOG != "False" ]]' statement which is used
by other services, and therefor failed with a 'No such file or directory'
error when 'SYSLOG=False' was set in localrc.

Closes-Bug: 1308461

Change-Id: I8655a955ebb322516d92bee418b93d4cc23bdc5c
2014-04-17 14:07:51 +02:00
ZhiQiang Fan 1af4afb004 Replace DEFAULT section with service_credentials
Some options defined in ceilometer.service should be in service_credentials
section instead of DEFAULT, which is deprecated since Havana.

Change-Id: I69077394a77f379db2be593a9fa15d414015610a
2014-04-16 14:55:26 +08:00
Steve Martinelli bce8899cde Update create_userrc to openstackclient commands
Updated keystoneclient commands in tools/create_userrc.sh
to their openstackclient equivalents.

Change-Id: I03c17cfc9740c3eb257152c95d9c4f021db2c89e
2014-04-16 00:32:53 -05:00
Ralf Haferkamp 65aaa183f4 Some smaller fixes for openSUSE 13.1 support
* dnsmasq-utils is also required on openSUSE 13.1 (for dhcp_release)
* make sure that iscsid is actually started. On openSUSE it's not
  started by default.

Change-Id: Ibceb7ce1372ca74010bdc9f44258a5a25182adc6
2014-04-15 17:56:58 +02:00
Adam Gandelman 867651049a Remove sshd reconfig from lib/ironic
The sshd reconfiguration to listen on port 2222 provides no
benefit and complicates deployment on some systems.  This removes
the reconfiguration and instead just confirms SSH connectivity.
Default SSH host and ports are left configurable, but the port now
reflects the default 22.

Change-Id: Iaf7c71854c3741a505a79037ffb8c86ace74fc27
2014-04-14 11:57:13 -07:00
Yves-Gwenael Bourhis d79a8acbb7 Fixed pip with http(s)_proxy
pip failed to insall packages with the http_proxy and https_proxy localrc
environment variables. indeed, the case of the variables was uppercase
and these variables are normally lowercase.

Change-Id: I73054aafd353ccf53986f0ec05426f6a2c4e2240
Closes-Bug: 1307492
2014-04-14 14:49:07 +02:00
Adam Gandelman 8af6faed81 Enable console logging for Ironic baremetal VMs
Logs console output of VMs created for use by Ironic to
$DATA_DIR/ironic/logs. This gives Jenkins something to archive
that will be useful for debugging any deployment ramdisk issue
blocking provisioning.

Change-Id: I7d234a6a13dbe8579f685e46d7712dae497272a5
2014-04-11 18:14:16 -07:00
Paul Michali 746dceeb68 Devstack support for Neutron VPNaaS
Includes two enhancements to support VPNaaS and allow other
vendor implementation support. Goal is to provide a solution
for VPN .ini files until a more general solution can be defined
to handle all reference and vendor .ini files.

First, the /opt/stack/neutron/etc/vpn_agent.ini file is copied
to /etc/neutron, to allow the selected device drivers for agent
to be specified. Both reference and vendor implementations can
be uncommented in this file, prior to stacking.

Second, to allow vendor VPN implementations to provide an .ini
file to the agent at start-up time, an environment variable is
defined and can be set in the localrc to specify one or more
.ini files. The desire is NOT to include vendor settings in the
global vpn_agent.ini.

Change-Id: Ia8250db660216a5296cb6ba2af1538b8c90d187c
Closes-Bug: 1301552
2014-04-10 11:29:20 +00:00
Shiv Haris 815ef98fa2 Add missing function neutron_plugin_configure_service to
brocade specific file

Closes bug: 1304701

Change-Id: I18f90865a015b9dc6db4123d46492140ca67a38f
2014-04-08 17:22:35 -07:00
Dane LeBlanc c68a8f67a7 stack.sh fails for Cisco plugin with missing cisco_plugins.ini error
When the Cisco Nexus monolithic plugin is configured in the localrc,
stack.sh fails with the error message:
     sed: can't read /etc/neutron/plugins/cisco/cisco_plugins.ini:
          No such file or directory

This failure was introduced with the merge of change set 76992
(bug #1285884). Change set 76992 removed the copying of
Q_PLUGIN_EXTRA_CONF_FILES from the neutron project area to directories
under /etc/neutron. This copy from neutron to /etc is required by the
Cisco Nexus monolithic plugin, since this plugin follows the original
model for generating extra config files based on localrc settings:
 - Copy default config file(s) from neutron project to /etc using
   a relative path (relative to neutron and relative to /)
 - Modify the copies of the config file(s) using localrc settings
 - Add a --config-file command line setting for neutron server which
   points to the modified config file(s) under /etc

The fix is to add the copying of the default versions of the extra
config files from neutron to /etc into the cisco devstack script.

Change-Id: Ifbae197ed591f7cccfd6d51eae2b21e31eb0a409
Closes-Bug: #1295411
2014-03-20 19:25:03 -04:00
Attila Fazekas 2d4c8da803 Upgrade to cirros 0.3.2
Cirros 0.3.2 is fixing the host name setting issue, which
is required for turning on the tempest instance validation tests.

Change-Id: I1b87740ab02c4eb0a8df653a35e1f85d40abda51
Related-Bug: #1132686
2014-03-20 23:12:58 +01:00
364 changed files with 20965 additions and 15771 deletions
+26 -14
View File
@@ -1,23 +1,35 @@
proto
*~
.*.sw?
*.log
*.log.[1-9]
src
localrc
local.sh
*.pem
.localrc.auto
.localrc.password
.prereqs
.tox
.stackenv
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
stack-screenrc
*.pem
accrc
.stackenv
.prereqs
devstack-docs-*
docs/
docs-files
.localrc.auto
files/get-pip.py*
files/ir-deploy*
local.conf
local.sh
localrc
proto
shocco
src
stack-screenrc
userrc_early
AUTHORS
ChangeLog
+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/ocata
+1
View File
@@ -4,3 +4,4 @@
Jiajun Liu <jiajun@unitedstack.com> <iamljj@gmail.com>
Jian Wen <jian.wen@canonical.com> <wenjianhn@gmail.com>
Joe Gordon <joe.gordon0@gmail.com> <jogo@cloudscaling.com>
Sean Dague <sean.dague@samsung.com> <sdague@linux.vnet.ibm.com> <sean@dague.net>
+73
View File
@@ -0,0 +1,73 @@
- project:
templates:
- integrated-gate
- integrated-gate-py35
- publish-openstack-sphinx-docs
check:
jobs:
- 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:
irrelevant-files:
- ^.*\.rst$
- ^doc/.*$
- neutron-tempest-linuxbridge:
irrelevant-files:
- ^.*\.rst$
- ^doc/.*$
- tempest-multinode-full:
voting: false
irrelevant-files:
- ^.*\.rst$
- ^doc/.*$
gate:
jobs:
- 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/.*$
- 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/.*$
-50
View File
@@ -1,50 +0,0 @@
Aaron Lee <aaron.lee@rackspace.com>
Aaron Rosen <arosen@nicira.com>
Adam Gandelman <adamg@canonical.com>
Akihiro MOTOKI <motoki@da.jp.nec.com>
Andrew Laski <andrew.laski@rackspace.com>
Andy Smith <github@anarkystic.com>
Anthony Young <sleepsonthefloor@gmail.com>
Armando Migliaccio <armando.migliaccio@eu.citrix.com>
Brad Hall <brad@nicira.com>
Chmouel Boudjnah <chmouel@chmouel.com>
Dan Prince <dprince@redhat.com>
Dean Troyer <dtroyer@gmail.com>
Devin Carlen <devin.carlen@gmail.com>
Doug hellmann <doug.hellmann@dreamhost.com>
Eddie Hebert <edhebert@gmail.com>
Edgar Magana <emagana@gmail.com>
Eoghan Glynn <eglynn@redhat.com>
Eric Windisch <ewindisch@cloudscaling.com>
Gabriel Hurley <gabriel@strikeawe.com>
Gary Kotton <gkotton@redhat.com>
Hengqing Hu <hudayou@hotmail.com>
Hua ZHANG <zhuadl@cn.ibm.com>
Isaku Yamahata <yamahata@private.email.ne.jp>
Jake Dahn <admin@jakedahn.com>
James E. Blair <james.blair@rackspace.com>
Jason Cannavale <jason.cannavale@rackspace.com>
Jay Pipes <jaypipes@gmail.com>
Jesse Andrews <anotherjesse@gmail.com>
Jian Wen <jian.wen@canonical.com>
Joe Gordon <jogo@cloudscaling.com>
Johannes Erdfelt <johannes.erdfelt@rackspace.com>
John Postlethwait <john.postlethwait@nebula.com>
Josh Kearney <josh@jk0.org>
Justin Shepherd <galstrom21@gmail.com>
Ken Pepple <ken.pepple@rabbityard.com>
Kiall Mac Innes <kiall@managedit.ie>
Matt Joyce <matt.joyce@cloudscaling.com>
Osamu Habuka <xiu.yushen@gmail.com>
Russell Bryant <rbryant@redhat.com>
Scott Moser <smoser@ubuntu.com>
Sean Dague <sdague@linux.vnet.ibm.com>
Sumit Naiksatam <sumitnaiksatam@gmail.com>
Thierry Carrez <thierry@openstack.org>
Todd Willey <xtoddx@gmail.com>
Tres Henry <tres@treshenry.net>
Vincent Untz <vuntz@suse.com>
Vishvananda Ishaya <vishvananda@gmail.com>
Yun Mao <yunmao@gmail.com>
Yong Sheng Gong <gongysh@cn.ibm.com>
Zhongyue Luo <lzyeval@gmail.com>
+113
View File
@@ -0,0 +1,113 @@
=============
Quo Vadimus
=============
Where are we going?
This is a document in Devstack to outline where we are headed in the
future. The future might be near or far, but this is where we'd like
to be.
This is intended to help people contribute, because it will be a
little clearer if a contribution takes us closer to or further away to
our end game.
==================
Default Services
==================
Devstack is designed as a development environment first. There are a
lot of ways to compose the OpenStack services, but we do need one
default.
That should be the Compute Layer (currently Glance + Nova + Cinder +
Neutron Core (not advanced services) + Keystone). It should be the
base building block going forward, and the introduction point of
people to OpenStack via Devstack.
================
Service Howtos
================
Starting from the base building block all services included in
OpenStack should have an overview page in the Devstack
documentation. That should include the following:
- A helpful high level overview of that service
- What it depends on (both other OpenStack services and other system
components)
- What new daemons are needed to be started, including where they
should live
This provides a map for people doing multinode testing to understand
what portions are control plane, which should live on worker nodes.
Service how to pages will start with an ugly "This team has provided
no information about this service" until someone does.
===================
Included Services
===================
Devstack doesn't need to eat the world. Given the existence of the
external devstack plugin architecture, the future direction is to move
the bulk of the support code out of devstack itself and into external
plugins.
This will also promote a more clean separation between services.
=============================
Included Backends / Drivers
=============================
Upstream Devstack should only include Open Source backends / drivers,
it's intent is for Open Source development of OpenStack. Proprietary
drivers should be supported via external plugins.
Just being Open Source doesn't mean it should be in upstream Devstack
if it's not required for base development of OpenStack
components. When in doubt, external plugins should be used.
========================================
OpenStack Services vs. System Services
========================================
ENABLED_SERVICES is currently entirely too overloaded. We should have
a separation of actual OpenStack services that you have to run (n-cpu,
g-api) and required backends like mysql and rabbitmq.
===========================
Splitting up of Functions
===========================
The functions-common file has grown over time, and needs to be split
up into smaller libraries that handle specific domains.
======================
Testing of Functions
======================
Every function in a functions file should get tests. The devstack
testing framework is young, but we do have some unit tests for the
tree, and those should be enhanced.
==============================
Not Co-Gating with the World
==============================
As projects spin up functional test jobs, Devstack should not be
co-gated with every single one of those. The Devstack team has one of
the fastest turn arounds for blocking bugs of any Open Stack
project.
Basic service validation should be included as part of Devstack
installation to mitigate this.
============================
Documenting all the things
============================
Devstack started off as an explanation as much as an install
script. We would love contributions to that further enhance the
comments and explanations about what is happening, even if it seems a
little pedantic at times.
+113 -26
View File
@@ -6,42 +6,82 @@ General
-------
DevStack is written in UNIX shell script. It uses a number of bash-isms
and so is limited to Bash (version 3 and up) and compatible shells.
and so is limited to Bash (version 4 and up) and compatible shells.
Shell script was chosen because it best illustrates the steps used to
set up and interact with OpenStack components.
DevStack's official repository is located on GitHub at
https://github.com/openstack-dev/devstack.git. Besides the master branch that
DevStack's official repository is located on git.openstack.org at
https://git.openstack.org/openstack-dev/devstack. Besides the master branch that
tracks the OpenStack trunk branches a separate branch is maintained for all
OpenStack releases starting with Diablo (stable/diablo).
Contributing code to DevStack follows the usual OpenStack process as described
in `How To Contribute`__ in the OpenStack wiki. `DevStack's LaunchPad project`__
contains the usual links for blueprints, bugs, tec.
contains the usual links for blueprints, bugs, etc.
__ contribute_
.. _contribute: http://wiki.openstack.org/HowToContribute
.. _contribute: http://docs.openstack.org/infra/manual/developers.html
__ lp_
.. _lp: https://launchpad.net/~devstack
The `Gerrit review
queue <https://review.openstack.org/#/q/project:openstack-dev/devstack,n,z>`__
is used for all commits.
The primary script in DevStack is ``stack.sh``, which performs the bulk of the
work for DevStack's use cases. There is a subscript ``functions`` that contains
generally useful shell functions and is used by a number of the scripts in
DevStack.
The ``lib`` directory contains sub-scripts for projects or packages that ``stack.sh``
sources to perform much of the work related to those projects. These sub-scripts
contain configuration defaults and functions to configure, start and stop the project
or package. These variables and functions are also used by related projects,
such as Grenade, to manage a DevStack installation.
A number of additional scripts can be found in the ``tools`` directory that may
be useful in supporting DevStack installations. Of particular note are ``info.sh``
to collect and report information about the installed system, and ``install_prereqs.sh``
that handles installation of the prerequisite packages for DevStack. It is
suitable, for example, to pre-load a system for making a snapshot.
Repo Layout
-----------
The DevStack repo generally keeps all of the primary scripts at the root
level.
``doc`` - Contains the Sphinx source for the documentation.
``tools/build_docs.sh`` is used to generate the HTML versions of the
DevStack scripts. A complete doc build can be run with ``tox -edocs``.
``exercises`` - Contains the test scripts used to sanity-check and
demonstrate some OpenStack functions. These scripts know how to exit
early or skip services that are not enabled.
``extras.d`` - Contains the dispatch scripts called by the hooks in
``stack.sh``, ``unstack.sh`` and ``clean.sh``. See :doc:`the plugins
docs <plugins>` for more information.
``files`` - Contains a variety of otherwise lost files used in
configuring and operating DevStack. This includes templates for
configuration files and the system dependency information. This is also
where image files are downloaded and expanded if necessary.
``lib`` - Contains the sub-scripts specific to each project. This is
where the work of managing a project's services is located. Each
top-level project (Keystone, Nova, etc) has a file here. Additionally
there are some for system services and project plugins. These
variables and functions are also used by related projects, such as
Grenade, to manage a DevStack installation.
``samples`` - Contains a sample of the local files not included in the
DevStack repo.
``tests`` - the DevStack test suite is rather sparse, mostly consisting
of test of specific fragile functions in the ``functions`` and
``functions-common`` files.
``tools`` - Contains a collection of stand-alone scripts. While these
may reference the top-level DevStack configuration they can generally be
run alone. There are also some sub-directories to support specific
environments such as XenServer.
Scripts
-------
@@ -110,8 +150,8 @@ follows:
* Global configuration that may be referenced in ``local.conf``, i.e. ``DEST``, ``DATA_DIR``
* Global service configuration like ``ENABLED_SERVICES``
* Variables used by multiple services that do not have a clear owner, i.e.
``VOLUME_BACKING_FILE_SIZE`` (nova-volumes and cinder) or ``PUBLIC_NETWORK_NAME``
(nova-network and neutron)
``VOLUME_BACKING_FILE_SIZE`` (nova-compute, nova-volumes and cinder) or
``PUBLIC_NETWORK_NAME`` (nova-network and neutron)
* Variables that can not be cleanly declared in a project file due to
dependency ordering, i.e. the order of sourcing the project files can
not be changed for other reasons but the earlier file needs to dereference a
@@ -126,14 +166,9 @@ and can stay in the project file.
Documentation
-------------
The official DevStack repo on GitHub does not include a gh-pages branch that
GitHub uses to create static web sites. That branch is maintained in the
`CloudBuilders DevStack repo`__ mirror that supports the
http://devstack.org site. This is the primary DevStack
documentation along with the DevStack scripts themselves.
__ repo_
.. _repo: https://github.com/cloudbuilders/devstack
The DevStack repo now contains all of the static pages of devstack.org in
the ``doc/source`` directory. The OpenStack CI system rebuilds the docs after every
commit and updates devstack.org (now a redirect to docs.openstack.org/developer/devstack).
All of the scripts are processed with shocco_ to render them with the comments
as text describing the script below. For this reason we tend to be a little
@@ -144,6 +179,8 @@ uses Markdown headers to divide the script into logical sections.
.. _shocco: https://github.com/dtroyer/shocco/tree/rst_support
The script used to drive <code>shocco</code> is <code>tools/build_docs.sh</code>.
The complete docs build is also handled with <code>tox -edocs</code> per the
OpenStack project standard.
Exercises
@@ -182,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
@@ -213,8 +250,7 @@ These scripts are executed serially by ``exercise.sh`` in testing situations.
database access from the exercise itself.
* If specific configuration needs to be present for the exercise to complete,
it should be staged in ``stack.sh``, or called from ``stack.sh`` (see
``files/keystone_data.sh`` for an example of this).
it should be staged in ``stack.sh``, or called from ``stack.sh``.
* The ``OS_*`` environment variables should be the only ones used for all
authentication to OpenStack clients as documented in the CLIAuth_ wiki page.
@@ -235,8 +271,12 @@ DevStack defines a bash set of best practices for maintaining large
collections of bash scripts. These should be considered as part of the
review process.
We have a preliminary enforcing script for this called bash8 (only a
small number of these rules are enforced).
DevStack uses the bashate_ style checker
to enforce basic guidelines, similar to pep8 and flake8 tools for Python. The
list below is not complete for what bashate checks, nor is it all checked
by bashate. So many lines of code, so little time.
.. _bashate: https://pypi.python.org/pypi/bashate
Whitespace Rules
----------------
@@ -248,6 +288,7 @@ Whitespace Rules
Control Structure Rules
-----------------------
- then should be on the same line as the if
- do should be on the same line as the for
@@ -269,6 +310,7 @@ Example::
Variables and Functions
-----------------------
- functions should be used whenever possible for clarity
- functions should use ``local`` variables as much as possible to
ensure they are isolated from the rest of the environment
@@ -277,3 +319,48 @@ Variables and Functions
- function names should_have_underscores, NotCamelCase.
- functions should be declared as per the regex ^function foo {$
with code starting on the next line
Review Criteria
===============
There are some broad criteria that will be followed when reviewing
your change
* **Is it passing tests** -- your change will not be reviewed
thoroughly unless the official CI has run successfully against it.
* **Does this belong in DevStack** -- DevStack reviewers have a
default position of "no" but are ready to be convinced by your
change.
For very large changes, you should consider :doc:`the plugins system
<plugins>` to see if your code is better abstracted from the main
repository.
For smaller changes, you should always consider if the change can be
encapsulated by per-user settings in ``local.conf``. A common example
is adding a simple config-option to an ``ini`` file. Specific flags
are not usually required for this, although adding documentation
about how to achieve a larger goal (which might include turning on
various settings, etc) is always welcome.
* **Work-arounds** -- often things get broken and DevStack can be in a
position to fix them. Work-arounds are fine, but should be
presented in the context of fixing the root-cause of the problem.
This means it is well-commented in the code and the change-log and
mostly likely includes links to changes or bugs that fix the
underlying problem.
* **Should this be upstream** -- DevStack generally does not override
default choices provided by projects and attempts to not
unexpectedly modify behavior.
* **Context in commit messages** -- DevStack touches many different
areas and reviewers need context around changes to make good
decisions. We also always want it to be clear to someone -- perhaps
even years from now -- why we were motivated to make a change at the
time.
* **Reviewers** -- please see ``MAINTAINERS.rst`` for a list of people
that should be added to reviews of various sub-systems.
+92
View File
@@ -0,0 +1,92 @@
MAINTAINERS
===========
Overview
--------
The following is a list of people known to have interests in
particular areas or sub-systems of devstack.
It is a rather general guide intended to help seed the initial
reviewers list of a change. A +1 on a review from someone identified
as being a maintainer of its affected area is a very positive flag to
the core team for the veracity of the change.
The ``devstack-core`` group can still be added to all reviews.
Format
~~~~~~
The format of the file is the name of the maintainer and their
gerrit-registered email.
Maintainers
-----------
.. contents:: :local:
Ceph
~~~~
* Sebastien Han <sebastien.han@enovance.com>
Cinder
~~~~~~
Fedora/CentOS/RHEL
~~~~~~~~~~~~~~~~~~
* Ian Wienand <iwienand@redhat.com>
Neutron
~~~~~~~
MidoNet
~~~~~~~
* Jaume Devesa <devvesa@gmail.com>
* Ryu Ishimoto <ryu@midokura.com>
* YAMAMOTO Takashi <yamamoto@midokura.com>
OpenDaylight
~~~~~~~~~~~~
* Kyle Mestery <mestery@mestery.com>
OpenFlow Agent (ofagent)
~~~~~~~~~~~~~~~~~~~~~~~~
* YAMAMOTO Takashi <yamamoto@valinux.co.jp>
* Fumihiko Kakuma <kakuma@valinux.co.jp>
Swift
~~~~~
* Chmouel Boudjnah <chmouel@enovance.com>
SUSE
~~~~
* Ralf Haferkamp <rhafer@suse.de>
* Vincent Untz <vuntz@suse.com>
Tempest
~~~~~~~
Xen
~~~
* Bob Ball <bob.ball@citrix.com>
Zaqar (Marconi)
~~~~~~~~~~~~~~~
* Flavio Percoco <flaper87@gmail.com>
* Malini Kamalambal <malini.kamalambal@rackspace.com>
Oracle Linux
~~~~~~~~~~~~
* Wiekus Beukes <wiekus.beukes@oracle.com>
+100
View File
@@ -0,0 +1,100 @@
# DevStack Makefile of Sanity
# Interesting targets:
# ds-remote - Create a Git remote for use by ds-push and ds-pull targets
# DS_REMOTE_URL must be set on the command line
#
# ds-push - Merge a list of branches taken from .ds-test and push them
# to the ds-remote repo in ds-test branch
#
# ds-pull - Pull the remote ds-test branch into a fresh local branch
#
# refresh - Performs a sequence of unstack, refresh and stack
# Duplicated from stackrc for now
DEST=/opt/stack
all:
@echo "This just saved you from a terrible mistake!"
# Do Some Work
stack:
./stack.sh
unstack:
./unstack.sh
docs:
tox -edocs
# Just run the shocco source formatting build
docs-build:
INSTALL_SHOCCO=True tools/build_docs.sh
# Just run the Sphinx docs build
docs-rst:
python setup.py build_sphinx
# Run the bashate test
bashate:
tox -ebashate
# Run the function tests
test:
tests/test_ini_config.sh
tests/test_meta_config.sh
tests/test_ip.sh
tests/test_refs.sh
# Spiff up the place a bit
clean:
./clean.sh
rm -rf accrc doc/build test*-e *.egg-info
# Clean out the cache too
realclean: clean
rm -rf files/cirros*.tar.gz files/Fedora*.qcow2
# Repo stuffs
pull:
git pull
# These repo targets are used to maintain a branch in a remote repo that
# consists of one or more local branches merged and pushed to the remote.
# This is most useful for iterative testing on multiple or remote servers
# while keeping the working repo local.
#
# It requires:
# * a remote pointing to a remote repo, often GitHub is used for this
# * a branch name to be used on the remote
# * a local file containing the list of local branches to be merged into
# the remote branch
GIT_REMOTE_NAME=ds-test
GIT_REMOTE_BRANCH=ds-test
# Push the current branch to a remote named ds-test
ds-push:
git checkout master
git branch -D $(GIT_REMOTE_BRANCH) || true
git checkout -b $(GIT_REMOTE_BRANCH)
for i in $(shell cat .$(GIT_REMOTE_BRANCH) | grep -v "^#" | grep "[^ ]"); do \
git merge --no-edit $$i; \
done
git push -f $(GIT_REMOTE_NAME) HEAD:$(GIT_REMOTE_BRANCH)
# Pull the ds-test branch
ds-pull:
git checkout master
git branch -D $(GIT_REMOTE_BRANCH) || true
git pull $(GIT_REMOTE_NAME) $(GIT_REMOTE_BRANCH)
git checkout $(GIT_REMOTE_BRANCH)
# Add the remote - set DS_REMOTE_URL=htps://example.com/ on the command line
ds-remote:
git remote add $(GIT_REMOTE_NAME) $(DS_REMOTE_URL)
# Refresh the current DevStack checkout nd re-initialize
refresh: unstack ds-pull stack
+37 -315
View File
@@ -2,13 +2,18 @@ DevStack is a set of scripts and utilities to quickly deploy an OpenStack cloud.
# Goals
* To quickly build dev OpenStack environments in a clean Ubuntu or Fedora environment
* To describe working configurations of OpenStack (which code branches work together? what do config files look like for those branches?)
* To make it easier for developers to dive into OpenStack so that they can productively contribute without having to understand every part of the system at once
* To quickly build dev OpenStack environments in a clean Ubuntu or Fedora
environment
* To describe working configurations of OpenStack (which code branches
work together? what do config files look like for those branches?)
* To make it easier for developers to dive into OpenStack so that they can
productively contribute without having to understand every part of the
system at once
* To make it easy to prototype cross-project features
* To provide an environment for the OpenStack CI testing on every commit to the projects
* To provide an environment for the OpenStack CI testing on every commit
to the projects
Read more at http://devstack.org.
Read more at http://docs.openstack.org/developer/devstack
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
@@ -20,9 +25,9 @@ in a clean and disposable vm when you are first getting started.
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 grizzly OpenStack cloud:
following to create a Newton OpenStack cloud:
git checkout stable/grizzly
git checkout stable/newton
./stack.sh
You can also pick specific OpenStack project releases by setting the appropriate
@@ -30,7 +35,7 @@ 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
@@ -42,327 +47,44 @@ your VM. To start a dev cloud run the following NOT AS ROOT (see
./stack.sh
When the script finishes executing, you should be able to access OpenStack endpoints, like so:
When the script finishes executing, you should be able to access OpenStack
endpoints, like so:
* Horizon: http://myhost/
* Keystone: http://myhost:5000/v2.0/
We also provide an environment file that you can use to interact with your cloud via CLI:
We also provide an environment file that you can use to interact with your
cloud via CLI:
# source openrc file to load your environment with OpenStack CLI creds
. openrc
# list instances
nova list
If the EC2 API is your cup-o-tea, you can create credentials and use euca2ools:
# source eucarc to generate EC2 credentials and set up the environment
. eucarc
# list instances using ec2 api
euca-describe-instances
# 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 for disappointment, or worse. Alas, we're all in the virtualization business here, so run it in a VM. And take advantage of the snapshot capabilities of your hypervisor of choice to reduce testing cycle times. You might even save enough time to write one more feature before the next feature freeze...
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
for disappointment, or worse. Alas, we're all in the virtualization business
here, so run it in a VM. And take advantage of the snapshot capabilities
of your hypervisor of choice to reduce testing cycle times. You might even save
enough time to write one more feature before the next feature freeze...
``stack.sh`` needs to have root access for a lot of tasks, but uses ``sudo``
for all of those tasks. However, it needs to be not-root for most of its
work and for all of the OpenStack services. ``stack.sh`` specifically
does not run if started as root.
``stack.sh`` needs to have root access for a lot of tasks, but uses
``sudo`` for all of those tasks. However, it needs to be not-root for
most of its work and for all of the OpenStack services. ``stack.sh``
specifically does not run if started as root.
This is a recent change (Oct 2013) from the previous behaviour of
automatically creating a ``stack`` user. Automatically creating
user accounts is not the right response to running as root, so
that bit is now an explicit step using ``tools/create-stack-user.sh``.
Run that (as root!) or just 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).
DevStack will not automatically create the user, but provides a helper
script in ``tools/create-stack-user.sh``. Run that (as root!) or just
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
You can override environment variables used in `stack.sh` by creating file
name `local.conf` with a ``localrc`` section as shown below. It is likely
that you will need to do this to tweak your networking configuration should
you need to access your cloud from a different host.
[[local|localrc]]
VARIABLE=value
See the **Local Configuration** section below for more details.
# Database Backend
Multiple database backends are available. The available databases are defined in the lib/databases directory.
`mysql` is the default database, choose a different one by putting the
following in the `localrc` section:
disable_service mysql
enable_service postgresql
`mysql` is the default database.
# RPC Backend
Multiple RPC backends are available. Currently, this
includes RabbitMQ (default), Qpid, and ZeroMQ. Your backend of
choice may be selected via the `localrc` section.
Note that selecting more than one RPC backend will result in a failure.
Example (ZeroMQ):
ENABLED_SERVICES="$ENABLED_SERVICES,-rabbit,-qpid,zeromq"
Example (Qpid):
ENABLED_SERVICES="$ENABLED_SERVICES,-rabbit,-zeromq,qpid"
# Apache Frontend
Apache web server is enabled for wsgi services by setting
`APACHE_ENABLED_SERVICES` in your ``localrc`` section. Remember to
enable these services at first as above.
APACHE_ENABLED_SERVICES+=keystone,swift
# 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.
If you would like to enable Swift you can add this to your `localrc` section:
enable_service s-proxy s-object s-container s-account
If you want a minimal Swift install with only Swift and Keystone you
can have this instead in your `localrc` section:
disable_all_services
enable_service key mysql s-proxy s-object s-container s-account
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).
# Swift S3
If you are enabling `swift3` in `ENABLED_SERVICES` DevStack will
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
services are started in background and managed by `swift-init` tool.
# Neutron
Basic Setup
In order to enable Neutron a single node setup, you'll need the
following settings in your `local.conf`:
disable_service n-net
enable_service q-svc
enable_service q-agt
enable_service q-dhcp
enable_service q-l3
enable_service q-meta
enable_service q-metering
# Optional, to enable tempest configuration as part of DevStack
enable_service tempest
Then run `stack.sh` as normal.
DevStack supports setting specific Neutron configuration flags to the
service, Open vSwitch plugin and LinuxBridge plugin configuration files.
To make use of this feature, the settings can be added to ``local.conf``.
The old ``Q_XXX_EXTRA_XXX_OPTS`` variables are deprecated and will be removed
in the near future. The ``local.conf`` headers for the replacements are:
* ``Q_SRV_EXTRA_OPTS``:
[[post-config|/$Q_PLUGIN_CONF_FILE]]
[linuxbridge] # or [ovs]
* ``Q_AGENT_EXTRA_AGENT_OPTS``:
[[post-config|/$Q_PLUGIN_CONF_FILE]]
[agent]
* ``Q_AGENT_EXTRA_SRV_OPTS``:
[[post-config|/$Q_PLUGIN_CONF_FILE]]
[linuxbridge] # or [ovs]
* ``Q_SRV_EXTRA_DEFAULT_OPTS``:
[[post-config|$NEUTRON_CONF]]
[DEFAULT]
Example extra config in `local.conf`:
[[post-config|/$Q_PLUGIN_CONF_FILE]]
[agent]
tunnel_type=vxlan
vxlan_udp_port=8472
[[post-config|$NEUTRON_CONF]]
[DEFAULT]
tenant_network_type=vxlan
DevStack also supports configuring the Neutron ML2 plugin. The ML2 plugin
can run with the OVS, LinuxBridge, or Hyper-V agents on compute hosts. This
is a simple way to configure the ml2 plugin:
# VLAN configuration
Q_PLUGIN=ml2
ENABLE_TENANT_VLANS=True
# GRE tunnel configuration
Q_PLUGIN=ml2
ENABLE_TENANT_TUNNELS=True
# VXLAN tunnel configuration
Q_PLUGIN=ml2
Q_ML2_TENANT_NETWORK_TYPE=vxlan
The above will default in DevStack to using the OVS on each compute host.
To change this, set the `Q_AGENT` variable to the agent you want to run
(e.g. linuxbridge).
Variable Name Notes
-------------------------------------------------------------------------------------
Q_AGENT This specifies which agent to run with the ML2 Plugin (either `openvswitch` or `linuxbridge`).
Q_ML2_PLUGIN_MECHANISM_DRIVERS The ML2 MechanismDrivers to load. The default is none. Note, ML2 will work with the OVS and LinuxBridge agents by default.
Q_ML2_PLUGIN_TYPE_DRIVERS The ML2 TypeDrivers to load. Defaults to all available TypeDrivers.
Q_ML2_PLUGIN_GRE_TYPE_OPTIONS GRE TypeDriver options. Defaults to none.
Q_ML2_PLUGIN_VXLAN_TYPE_OPTIONS VXLAN TypeDriver options. Defaults to none.
Q_ML2_PLUGIN_VLAN_TYPE_OPTIONS VLAN TypeDriver options. Defaults to none.
# Heat
Heat is disabled by default. To enable it 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
If tempest has been successfully configured, a basic set of smoke tests can be run as follows:
$ cd /opt/stack/tempest
$ nosetests tempest/scenario/test_network_basic_ops.py
# DevStack on Xenserver
If you would like to use Xenserver as the hypervisor, please refer to the instructions in `./tools/xen/README.md`.
# Additional Projects
DevStack has a hook mechanism to call out to a dispatch script at specific
points in the execution of `stack.sh`, `unstack.sh` and `clean.sh`. This
allows upper-layer projects, especially those that the lower layer projects
have no dependency on, to be added to DevStack without modifying the core
scripts. Tempest is built this way as an example of how to structure the
dispatch script, see `extras.d/80-tempest.sh`. See `extras.d/README.md`
for more information.
# Multi-Node Setup
A more interesting setup involves running multiple compute nodes, with Neutron networks connecting VMs on different compute nodes.
You should run at least one "controller node", which should have a `stackrc` that includes at least:
disable_service n-net
enable_service q-svc
enable_service q-agt
enable_service q-dhcp
enable_service q-l3
enable_service q-meta
enable_service neutron
You likely want to change your `localrc` section to run a scheduler that
will balance VMs across hosts:
SCHEDULER=nova.scheduler.simple.SimpleScheduler
You can then run many compute nodes, each of which should have a `stackrc` which includes the following, with the IP address of the above controller node:
ENABLED_SERVICES=n-cpu,rabbit,g-api,neutron,q-agt
SERVICE_HOST=[IP of controller node]
MYSQL_HOST=$SERVICE_HOST
RABBIT_HOST=$SERVICE_HOST
Q_HOST=$SERVICE_HOST
MATCHMAKER_REDIS_HOST=$SERVICE_HOST
# Cells
Cells is a new scaling option with a full spec at http://wiki.openstack.org/blueprint-nova-compute-cells.
To setup a cells environment add the following to your `localrc` section:
enable_service n-cell
Be aware that there are some features currently missing in cells, one notable one being security groups. The exercises have been patched to disable functionality not supported by cells.
# Local Configuration
Historically DevStack has used ``localrc`` to contain all local configuration and customizations. More and more of the configuration variables available for DevStack are passed-through to the individual project configuration files. The old mechanism for this required specific code for each file and did not scale well. This is handled now by a master local configuration file.
# local.conf
The new config file ``local.conf`` is an extended-INI format that introduces a new meta-section header that provides some additional information such as a phase name and destination config filename:
[[ <phase> | <config-file-name> ]]
where ``<phase>`` is one of a set of phase names defined by ``stack.sh``
and ``<config-file-name>`` is the configuration filename. The filename is
eval'ed in the ``stack.sh`` context so all environment variables are
available and may be used. Using the project config file variables in
the header is strongly suggested (see the ``NOVA_CONF`` example below).
If the path of the config file does not exist it is skipped.
The defined phases are:
* **local** - extracts ``localrc`` from ``local.conf`` before ``stackrc`` is sourced
* **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 ``extra.d`` are executed
* **post-extra** - runs after files in ``extra.d`` are executed
The file is processed strictly in sequence; meta-sections may be specified more than once but if any settings are duplicated the last to appear in the file will be used.
[[post-config|$NOVA_CONF]]
[DEFAULT]
use_syslog = True
[osapi_v3]
enabled = False
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.
[[local|localrc]]
FIXED_RANGE=10.254.1.0/24
ADMIN_PASSWORD=speciale
LOGFILE=$DEST/logs/stack.sh.log
Note that ``Q_PLUGIN_CONF_FILE`` is unique in that it is assumed to *NOT*
start with a ``/`` (slash) character. A slash will need to be added:
[[post-config|/$Q_PLUGIN_CONF_FILE]]
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.
+46 -16
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash
# **clean.sh**
@@ -18,7 +18,7 @@ source $TOP_DIR/functions
FILES=$TOP_DIR/files
# Load local configuration
source $TOP_DIR/stackrc
source $TOP_DIR/openrc
# Get the variables that are set in stack.sh
if [[ -r $TOP_DIR/.stackenv ]]; then
@@ -26,7 +26,7 @@ if [[ -r $TOP_DIR/.stackenv ]]; then
fi
# Determine what system we are running on. This provides ``os_VENDOR``,
# ``os_RELEASE``, ``os_UPDATE``, ``os_PACKAGE``, ``os_CODENAME``
# ``os_RELEASE``, ``os_PACKAGE``, ``os_CODENAME``
# and ``DISTRO``
GetDistro
@@ -41,19 +41,18 @@ source $TOP_DIR/lib/rpc_backend
source $TOP_DIR/lib/tls
source $TOP_DIR/lib/oslo
source $TOP_DIR/lib/lvm
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/ceilometer
source $TOP_DIR/lib/heat
source $TOP_DIR/lib/neutron
source $TOP_DIR/lib/baremetal
source $TOP_DIR/lib/ironic
source $TOP_DIR/lib/trove
source $TOP_DIR/lib/neutron-legacy
set -o xtrace
# Extras Source
# --------------
@@ -77,6 +76,9 @@ fi
# ==========
# Phase: clean
load_plugin_settings
run_phase clean
if [[ -d $TOP_DIR/extras.d ]]; then
for i in $TOP_DIR/extras.d/*.sh; do
[[ -r $i ]] && source $i clean
@@ -84,13 +86,16 @@ if [[ -d $TOP_DIR/extras.d ]]; then
fi
# Clean projects
cleanup_oslo
cleanup_cinder
# BUG: cinder tgt doesn't exit cleanly if it's not running.
cleanup_cinder || /bin/true
cleanup_glance
cleanup_keystone
cleanup_nova
cleanup_neutron
cleanup_swift
cleanup_horizon
if is_service_enabled ldap; then
cleanup_ldap
@@ -102,7 +107,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
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/*
@@ -111,18 +116,43 @@ sudo rm -f /etc/tgt/conf.d/*
cleanup_rpc_backend
cleanup_database
# Clean out data, logs and status
LOGDIR=$(dirname "$LOGFILE")
sudo rm -rf $DATA_DIR $LOGDIR $DEST/status
# Clean out data and status
sudo rm -rf $DATA_DIR $DEST/status
# Clean out the log file and log directories
if [[ -n "$LOGFILE" ]] && [[ -f "$LOGFILE" ]]; then
sudo rm -f $LOGFILE
fi
if [[ -n "$LOGDIR" ]] && [[ -d "$LOGDIR" ]]; then
sudo rm -rf $LOGDIR
fi
if [[ -n "$SCREEN_LOGDIR" ]] && [[ -d "$SCREEN_LOGDIR" ]]; then
sudo rm -rf $SCREEN_LOGDIR
fi
# Clean up venvs
DIRS_TO_CLEAN="$WHEELHOUSE ${PROJECT_VENV[@]} .config/openstack"
rm -rf $DIRS_TO_CLEAN
# Clean up files
FILES_TO_CLEAN=".localrc.auto docs-files docs/ shocco/ stack-screenrc test*.conf* test.ini*"
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"
for file in $FILES_TO_CLEAN; do
rm -f $TOP_DIR/$file
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
+21
View File
@@ -0,0 +1,21 @@
.. 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
==========================
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>=0.6,!=0.7,<1.0
Pygments
docutils
sphinx>=1.1.2,<1.2
oslosphinx
nwdiag
blockdiag
sphinxcontrib-blockdiag
sphinxcontrib-nwdiag
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 378 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

+263
View File
@@ -0,0 +1,263 @@
# -*- coding: utf-8 -*-
#
# Tempest documentation build configuration file, created by
# sphinx-quickstart on Tue May 21 17:43:32 2013.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All configuration values have a default; values that are commented out
# serve to show the default.
import sys
import os
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#sys.path.insert(0, os.path.abspath('.'))
# -- General configuration -----------------------------------------------------
# If your documentation needs a minimal Sphinx version, state it here.
#needs_sphinx = '1.0'
# 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' ]
todo_include_todos = True
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
# The suffix of source filenames.
source_suffix = '.rst'
# The encoding of source files.
#source_encoding = 'utf-8-sig'
# The master toctree document.
master_doc = 'index'
# General information about the project.
project = u'DevStack'
copyright = u'2014, OpenStack Foundation'
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
#language = None
# There are two options for replacing |today|: either, you set today to some
# non-false value, then it is used:
#today = ''
# Else, today_fmt is used as the format for a strftime call.
#today_fmt = '%B %d, %Y'
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
exclude_patterns = ['_build']
# The reST default role (used for this markup: `text`) to use for all documents.
#default_role = None
# If true, '()' will be appended to :func: etc. cross-reference text.
#add_function_parentheses = True
# If true, the current module name will be prepended to all description
# unit titles (such as .. function::).
add_module_names = False
# If true, sectionauthor and moduleauthor directives will be shown in the
# output. They are ignored by default.
show_authors = False
# The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'sphinx'
# A list of ignored prefixes for module index sorting.
modindex_common_prefix = ['DevStack-doc.']
# -- Options for man page output ----------------------------------------------
man_pages = []
# -- Options for HTML output ---------------------------------------------------
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
html_theme = 'nature'
# 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
# documentation.
#html_theme_options = {}
# Add any paths that contain custom themes here, relative to this directory.
#html_theme_path = []
# The name for this set of Sphinx documents. If None, it defaults to
# "<project> v<release> documentation".
#html_title = None
# A shorter title for the navigation bar. Default is the same as html_title.
#html_short_title = None
# The name of an image file (relative to this directory) to place at the top
# of the sidebar.
#html_logo = None
# The name of an image file (within the static path) to use as favicon of the
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
# pixels large.
#html_favicon = None
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
# using the given strftime format.
git_cmd = "git log --pretty=format:'%ad, commit %h' --date=local -n1"
html_last_updated_fmt = os.popen(git_cmd).read()
# If true, SmartyPants will be used to convert quotes and dashes to
# typographically correct entities.
#html_use_smartypants = True
# Custom sidebar templates, maps document names to template names.
#html_sidebars = {}
# Additional templates that should be rendered to pages, maps page names to
# template names.
#html_additional_pages = {}
# If false, no module index is generated.
html_domain_indices = False
# If false, no index is generated.
html_use_index = False
# If true, the index is split into individual pages for each letter.
#html_split_index = False
# If true, links to the reST sources are added to the pages.
#html_show_sourcelink = True
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
#html_show_sphinx = True
# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
#html_show_copyright = True
# If true, an OpenSearch description file will be output, and all pages will
# contain a <link> tag referring to it. The value of this option must be the
# base URL from which the finished HTML is served.
#html_use_opensearch = ''
# This is the file name suffix for HTML files (e.g. ".xhtml").
#html_file_suffix = None
# Output file base name for HTML help builder.
htmlhelp_basename = 'DevStack-doc'
# -- Options for LaTeX output --------------------------------------------------
latex_elements = {
# The paper size ('letterpaper' or 'a4paper').
#'papersize': 'letterpaper',
# The font size ('10pt', '11pt' or '12pt').
#'pointsize': '10pt',
# Additional stuff for the LaTeX preamble.
#'preamble': '',
}
# Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title, author, documentclass [howto/manual]).
latex_documents = [
('index', 'DevStack-doc.tex', u'DevStack Docs',
u'OpenStack DevStack Team', 'manual'),
]
# The name of an image file (relative to this directory) to place at the top of
# the title page.
#latex_logo = None
# For "manual" documents, if this is true, then toplevel headings are parts,
# not chapters.
#latex_use_parts = False
# If true, show page references after internal links.
#latex_show_pagerefs = False
# If true, show URL addresses after external links.
#latex_show_urls = False
# Documents to append as an appendix to all manuals.
#latex_appendices = []
# If false, no module index is generated.
#latex_domain_indices = True
# -- Options for Texinfo output ------------------------------------------------
# Grouping the document tree into Texinfo files. List of tuples
# (source start file, target name, title, author,
# dir menu entry, description, category)
texinfo_documents = [
('index', 'DevStack-doc', u'DevStack Docs',
u'OpenStack DevStack Team', 'DevStack-doc', 'DevStack documentation',
'Miscellaneous'),
]
# Documents to append as an appendix to all manuals.
#texinfo_appendices = []
# If false, no module index is generated.
#texinfo_domain_indices = True
# How to display URL addresses: 'footnote', 'no', or 'inline'.
#texinfo_show_urls = 'footnote'
# -- Options for Epub output ---------------------------------------------------
# Bibliographic Dublin Core info.
epub_title = u'DevStack Documentation'
epub_author = u'OpenStack DevStack Team'
epub_publisher = u'OpenStack DevStack Team'
epub_copyright = u'2014, OpenStack DevStack Team'
# The language of the text. It defaults to the language option
# or en if the language is not set.
#epub_language = ''
# The scheme of the identifier. Typical schemes are ISBN or URL.
#epub_scheme = ''
# The unique identifier of the text. This can be a ISBN number
# or the project homepage.
#epub_identifier = ''
# A unique identification for the text.
#epub_uid = ''
# A tuple containing the cover image and cover page html template filenames.
#epub_cover = ()
# HTML files that should be inserted before the pages created by sphinx.
# The format is a list of tuples containing the path and title.
#epub_pre_files = []
# HTML files shat should be inserted after the pages created by sphinx.
# The format is a list of tuples containing the path and title.
#epub_post_files = []
# A list of files that should not be packed into the epub file.
#epub_exclude_files = []
# The depth of the table of contents in toc.ncx.
#epub_tocdepth = 3
# Allow duplicate toc entries.
#epub_tocdup = True
+798
View File
@@ -0,0 +1,798 @@
=============
Configuration
=============
.. contents::
:local:
:depth: 1
local.conf
==========
DevStack configuration is modified via the file ``local.conf``. It is
a modified INI format file that introduces a meta-section header to
carry additional information regarding the configuration files to be
changed.
A sample is provided in ``devstack/samples``
The new header is similar to a normal INI section header but with double
brackets (``[[ ... ]]``) and two internal fields separated by a pipe
(``|``). Note that there are no spaces between the double brackets and the
internal fields. Likewise, there are no spaces between the pipe and the
internal fields:
::
'[[' <phase> '|' <config-file-name> ']]'
where ``<phase>`` is one of a set of phase names defined by ``stack.sh``
and ``<config-file-name>`` is the configuration filename. The filename
is eval'ed in the ``stack.sh`` context so all environment variables are
available and may be used. Using the project config file variables in
the header is strongly suggested (see the ``NOVA_CONF`` example below).
If the path of the config file does not exist it is skipped.
The defined phases are:
- **local** - extracts ``localrc`` from ``local.conf`` before
``stackrc`` is sourced
- **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
``extra.d`` are executed
- **post-extra** - runs after files in ``extra.d`` are executed
The file is processed strictly in sequence; meta-sections may be
specified more than once but if any settings are duplicated the last to
appear in the file will be used.
::
[[post-config|$NOVA_CONF]]
[DEFAULT]
use_syslog = True
[osapi_v3]
enabled = False
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.
::
[[local|localrc]]
IPV4_ADDRS_SAFE_TO_USE=10.254.1.0/24
ADMIN_PASSWORD=speciale
LOGFILE=$DEST/logs/stack.sh.log
Note that ``Q_PLUGIN_CONF_FILE`` is unique in that it is assumed to
*NOT* start with a ``/`` (slash) character. A slash will need to be
added:
::
[[post-config|/$Q_PLUGIN_CONF_FILE]]
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/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
.. _minimal-configuration:
Minimal Configuration
=====================
While ``stack.sh`` is happy to run without a ``localrc`` section in
``local.conf``, devlife is better when there are a few minimal variables
set. This is an example of a minimal configuration that touches the
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 (``IPV4_ADDRS_SAFE_TO_USE``
and ``FLOATING_RANGE``, commented out below)
- set the host IP if detection is unreliable (``HOST_IP``, commented
out below)
::
[[local|localrc]]
ADMIN_PASSWORD=secret
DATABASE_PASSWORD=$ADMIN_PASSWORD
RABBIT_PASSWORD=$ADMIN_PASSWORD
SERVICE_PASSWORD=$ADMIN_PASSWORD
#IPV4_ADDRS_SAFE_TO_USE=172.31.1.0/24
#FLOATING_RANGE=192.168.20.0/25
#HOST_IP=10.3.4.5
If the ``*_PASSWORD`` variables are not set here you will be prompted to
enter values for them by ``stack.sh``.
The network ranges must not overlap with any networks in use on the
host. Overlap is not uncommon as RFC-1918 'private' ranges are commonly
used for both the local networking and Nova's fixed and floating ranges.
``HOST_IP`` is normally detected on the first run of ``stack.sh`` but
often is indeterminate on later runs due to the IP being moved from an
Ethernet interface to a bridge on the host. Setting it here also makes it
available for ``openrc`` to set ``OS_AUTH_URL``. ``HOST_IP`` is not set
by default.
``HOST_IPV6`` is normally detected on the first run of ``stack.sh`` but
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.
Historical Notes
================
Historically DevStack obtained all local configuration and
customizations from a ``localrc`` file. In Oct 2013 the
``local.conf`` configuration method was introduced (in `review 46768
<https://review.openstack.org/#/c/46768/>`__) to simplify this
process.
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
----------------------
The DevStack install directory is set by the ``DEST`` variable. By
default it is ``/opt/stack``.
By setting it early in the ``localrc`` section you can reference it in
later variables. It can be useful to set it even though it is not
changed from the default value.
::
DEST=/opt/stack
Logging
-------
Enable Logging
~~~~~~~~~~~~~~
By default ``stack.sh`` output is only written to the console where it
runs. It can be sent to a file in addition to the console by setting
``LOGFILE`` to the fully-qualified name of the destination log file. A
timestamp will be appended to the given filename for each run of
``stack.sh``.
::
LOGFILE=$DEST/logs/stack.sh.log
Old log files are cleaned automatically if ``LOGDAYS`` is set to the
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``.
::
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``.
::
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
Example Logging Configuration
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
For example, non-interactive installs probably wish to save output to
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
Database Backend
----------------
Multiple database backends are available. The available databases are defined
in the lib/databases directory.
``mysql`` is the default database, choose a different one by putting the
following in the ``localrc`` section:
::
disable_service mysql
enable_service postgresql
``mysql`` is the default database.
RPC Backend
-----------
Support for a RabbitMQ RPC backend is included. Additional RPC
backends may be available via external plugins. Enabling or disabling
RabbitMQ is handled via the usual service functions and
``ENABLED_SERVICES``.
Example disabling RabbitMQ in ``local.conf``:
::
disable_service rabbit
Apache Frontend
---------------
The Apache web server can be enabled for wsgi services that support
being deployed under HTTPD + mod_wsgi. By default, services that
recommend running under HTTPD + mod_wsgi are deployed under Apache. To
use an alternative deployment strategy (e.g. eventlet) for services
that support an alternative to HTTPD + mod_wsgi set
``ENABLE_HTTPD_MOD_WSGI_SERVICES`` to ``False`` in your
``local.conf``.
Each service that can be run under HTTPD + mod_wsgi also has an
override toggle available that can be set in your ``local.conf``.
Keystone is run under Apache with ``mod_wsgi`` by default.
Example (Keystone)
::
KEYSTONE_USE_MOD_WSGI="True"
Example (Nova):
::
NOVA_USE_MOD_WSGI="True"
Example (Swift):
::
SWIFT_USE_MOD_WSGI="True"
Example (Heat):
::
HEAT_USE_MOD_WSGI="True"
Example (Cinder):
::
CINDER_USE_MOD_WSGI="True"
Libraries from Git
------------------
By default devstack installs OpenStack server components from git,
however it installs client libraries from released versions on pypi.
This is appropriate if you are working on server development, but if
you want to see how an unreleased version of the client affects the
system you can have devstack install it from upstream, or from local
git trees by specifying it in ``LIBS_FROM_GIT``. Multiple libraries
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
--------------------
Enable the use of Python virtual environments by setting ``USE_VENV``
to ``True``. This will enable the creation of venvs for each project
that is defined in the ``PROJECT_VENV`` array.
Each entry in the ``PROJECT_VENV`` array contains the directory name
of a venv to be used for the project. The array index is the project
name. Multiple projects can use the same venv if desired.
::
PROJECT_VENV["glance"]=${GLANCE_DIR}.venv
``ADDITIONAL_VENV_PACKAGES`` is a comma-separated list of additional
packages to be installed into each venv. Often projects will not have
certain packages listed in its ``requirements.txt`` file because they
are 'optional' requirements, i.e. only needed for certain
configurations. By default, the enabled databases will have their
Python bindings added when they are enabled.
::
ADDITIONAL_VENV_PACKAGES="python-foo, python-bar"
A clean install every time
--------------------------
By default ``stack.sh`` only clones the project repos if they do not
exist in ``$DEST``. ``stack.sh`` will freshen each repo on each run if
``RECLONE`` is set to ``yes``. This avoids having to manually remove
repos in order to get the current branch from ``$GIT_BASE``.
::
RECLONE=yes
Upgrade packages installed by pip
---------------------------------
By default ``stack.sh`` only installs Python packages if no version is
currently installed or the current version does not match a specified
requirement. If ``PIP_UPGRADE`` is set to ``True`` then existing
required Python packages will be upgraded to the most recent version
that matches requirements.
::
PIP_UPGRADE=True
Guest Images
------------
Images provided in URLS via the comma-separated ``IMAGE_URLS``
variable will be downloaded and uploaded to glance by DevStack.
Default guest-images are predefined for each type of hypervisor and
their testing-requirements in ``stack.sh``. Setting
``DOWNLOAD_DEFAULT_IMAGES=False`` will prevent DevStack downloading
these default images; in that case, you will want to populate
``IMAGE_URLS`` with sufficient images to satisfy testing-requirements.
::
DOWNLOAD_DEFAULT_IMAGES=False
IMAGE_URLS="http://foo.bar.com/image.qcow,"
IMAGE_URLS+="http://foo.bar.com/image2.qcow"
Instance Type
-------------
``DEFAULT_INSTANCE_TYPE`` can be used to configure the default instance
type. When this parameter is not specified, Devstack creates additional
micro & nano flavors for really small instances to run Tempest tests.
For guests with larger memory requirements, ``DEFAULT_INSTANCE_TYPE``
should be specified in the configuration file so Tempest selects the
default flavors instead.
KVM on Power with QEMU 2.4 requires 512 MB to load the firmware -
`QEMU 2.4 - PowerPC <http://wiki.qemu.org/ChangeLog/2.4>`__ so users
running instances on ppc64/ppc64le can choose one of the default
created flavors as follows:
::
DEFAULT_INSTANCE_TYPE=m1.tiny
IP Version
----------
``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.
::
IP_VERSION=4+6
The following optional variables can be used to alter the default IPv6
behavior:
::
IPV6_RA_MODE=slaac
IPV6_ADDRESS_MODE=slaac
IPV6_ADDRS_SAFE_TO_USE=fd$IPV6_GLOBAL_ID::/56
IPV6_PRIVATE_NETWORK_GATEWAY=fd$IPV6_GLOBAL_ID::1
*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
~~~~~~~~~~~~~~~
DevStack can enable service operation over either IPv4 or IPv6 by
setting ``SERVICE_IP_VERSION`` to either ``SERVICE_IP_VERSION=4`` or
``SERVICE_IP_VERSION=6`` respectively.
When set to ``4`` devstack services will open listen sockets on
``0.0.0.0`` and service endpoints will be registered using ``HOST_IP``
as the address.
When set to ``6`` devstack services will open listen sockets on ``::``
and service endpoints will be registered using ``HOST_IPV6`` as the
address.
The default value for this setting is ``4``. Dual-mode support, for
example ``4+6`` is not currently supported. ``HOST_IPV6`` can
optionally be used to alter the default IPv6 address
::
HOST_IPV6=${some_local_ipv6_address}
Multi-node setup
~~~~~~~~~~~~~~~~
See the :doc:`multi-node lab guide<guides/multinode-lab>`
Projects
--------
Neutron
~~~~~~~
See the :doc:`neutron configuration guide<guides/neutron>` for
details on configuration of Neutron
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.
If you would like to enable Swift you can add this to your ``localrc``
section:
::
enable_service s-proxy s-object s-container s-account
If you want a minimal Swift install with only Swift and Keystone you
can have this instead in your ``localrc`` section:
::
disable_all_services
enable_service key mysql s-proxy s-object s-container s-account
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
++++++++
If you are enabling ``swift3`` in ``ENABLED_SERVICES`` DevStack will
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
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
~~~~~~~
If tempest has been successfully configured, a basic set of smoke
tests can be run as follows:
::
$ cd /opt/stack/tempest
$ tox -efull tempest.scenario.test_network_basic_ops
By default tempest is downloaded and the config file is generated, but the
tempest package is not installed in the system's global site-packages (the
package install includes installing dependences). So tempest won't run
outside of tox. If you would like to install it add the following to your
``localrc`` section:
::
INSTALL_TEMPEST=True
Xenserver
~~~~~~~~~
If you would like to use Xenserver as the hypervisor, please refer to
the instructions in ``./tools/xen/README.md``.
Cells
~~~~~
`Cells <http://wiki.openstack.org/blueprint-nova-compute-cells>`__ is
an alternative scaling option. To setup a cells environment add the
following to your ``localrc`` section:
::
enable_service n-cell
Be aware that there are some features currently missing in cells, one
notable one being security groups. The exercises have been patched to
disable functionality not supported by cells.
Cinder
~~~~~~
The logical volume group used to hold the Cinder-managed volumes is
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_NAME="stack-volumes"
VOLUME_NAME_PREFIX="volume-"
VOLUME_BACKING_FILE_SIZE=10250M
Keystone
~~~~~~~~
Multi-Region Setup
++++++++++++++++++
We want to setup two devstack (RegionOne and RegionTwo) with shared
keystone (same users and services) and horizon. Keystone and Horizon
will be located in RegionOne. Full spec is available at:
`<https://wiki.openstack.org/wiki/Heat/Blueprints/Multi_Region_Support_for_Heat>`__.
In RegionOne:
::
REGION_NAME=RegionOne
In RegionTwo:
::
disable_service horizon
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
+++++++++++++++++++++++++
The Identity API v2 is deprecated as of Mitaka and it is recommended to only
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
+140
View File
@@ -0,0 +1,140 @@
==========================
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 in a `screen
<https://www.gnu.org/software/screen/manual/screen.html>`_
session.
.. code-block:: bash
os3:~> screen -list
There is a screen on:
28994.stack (08/10/2016 09:01:33 PM) (Detached)
1 Socket in /var/run/screen/S-sdague.
You can attach to this screen session using ``screen -r`` which gives
you a view of the services in action.
.. image:: assets/images/screen_session_1.png
:width: 100%
Basic Screen Commands
---------------------
The following minimal commands will be useful to using screen:
* ``ctrl-a n`` - go to next window. Next is assumed to be right of
current window.
* ``ctrl-a p`` - go to previous window. Previous is assumed to be left
of current window.
* ``ctrl-a [`` - entry copy/scrollback mode. This allows you to
navigate back through the logs with the up arrow.
* ``ctrl-a d`` - detach from screen. Gets you back to a normal
terminal, while leaving everything running.
For more about using screen, see the excellent `screen manual
<https://www.gnu.org/software/screen/manual/screen.html>`_.
Patching a Service
==================
If you want to make a quick change to a running service the easiest
way to do this is:
* attach to screen
* navigate to the window in question
* ``ctrl-c`` to kill the service
* make appropriate changes to the code
* ``up arrow`` in the screen window to display the command used to run
that service
* ``enter`` to restart the service
This works for services, except those running under Apache (currently
just ``keystone`` by default).
.. 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 Apache Based Services
========================================
When testing changes to Apache based services, such as ``keystone``,
you can either use the Testing a Patch Series approach above, or make
changes in the code tree and issue an apache restart.
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
Because libraries are used by many services, library changes really
need to go through a full ``./unstack.sh && ./stack.sh`` to see your
changes in action.
To figure out the repo / branch names for every library that's
supported, you'll need to read the devstack source.
+192
View File
@@ -0,0 +1,192 @@
===
FAQ
===
.. contents::
:local:
General Questions
=================
Can I use DevStack for production?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
DevStack is targeted at developers and CI systems to use the raw
upstream code. It makes many choices that are not appropriate for
production systems.
Your best choice is probably to choose a `distribution of OpenStack
<https://www.openstack.org/marketplace/distros/>`__.
Why a shell script, why not chef/puppet/...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The script is meant to be read by humans (as well as ran by
computers); it is the primary documentation after all. Using a recipe
system requires everyone to agree and understand chef or puppet.
I'd like to help!
~~~~~~~~~~~~~~~~~
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
usual process as described in the `developer guide
<http://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
deployments.
Why isn't $MY\_FAVORITE\_DISTRO supported?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
DevStack is meant for developers and those who want to see how
OpenStack really works. DevStack is known to run on the distro/release
combinations listed in ``README.md``. DevStack is only supported on
releases other than those documented in ``README.md`` on a best-effort
basis.
Are there any differences between Ubuntu and CentOS/Fedora support?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Both should work well and are tested by DevStack CI.
Why can't I use another shell?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
DevStack now uses some specific bash-ism that require Bash 4, such as
associative arrays. Simple compatibility patches have been accepted in
the past when they are not complex, at this point no additional
compatibility patches will be considered except for shells matching
the array functionality as it is very ingrained in the repo and
project management.
Can I test on OS/X?
~~~~~~~~~~~~~~~~~~~
Some people have success with bash 4 installed via homebrew to keep
running tests on OS/X.
Can I at least source ``openrc`` with ``zsh``?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
People have reported success with a special function to run ``openrc``
through bash for this
.. code-block:: bash
function sourceopenrc {
pushd ~/devstack >/dev/null
eval $(bash -c ". openrc $1 $2 >/dev/null;env|sed -n '/OS_/ { s/^/export /;p}'")
popd >/dev/null
}
Operation and Configuration
===========================
Can DevStack handle a multi-node installation?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Yes, see :doc:`multinode lab guide <guides/multinode-lab>`
How can I document the environment that DevStack is using?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
DevStack includes a script (``tools/info.sh``) that gathers the
versions of the relevant installed apt packages, pip packages and git
repos. This is a good way to verify what Python modules are
installed.
How do I turn off a service that is enabled by default?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Services can be turned off by adding ``disable_service xxx`` to
``local.conf`` (using ``c-vol`` in this example):
::
disable_service c-vol
Is enabling a service that defaults to off done with the reverse of the above?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Of course!
::
enable_service q-svc
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.
Note: it's also possible to manually adjust the ``*_BRANCH`` variables
further if you would like to test specific milestones, or even custom
out of tree branches. This is done with entries like the following in
your ``local.conf``
::
[[local|localrc]]
GLANCE_BRANCH=11.0.0.0rc1
NOVA_BRANCH=12.0.0.0.rc1
Upstream DevStack is only tested with master and stable
branches. Setting custom BRANCH definitions is not guaranteed to
produce working results.
What can I do about RabbitMQ not wanting to start on my fresh new VM?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This is often caused by ``erlang`` not being happy with the hostname
resolving to a reachable IP address. Make sure your hostname resolves
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?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
You may have run into the package prerequisite installation
timeout. ``tools/install_prereqs.sh`` has a timer that skips the
package installation checks if it was run within the last
``PREREQ_RERUN_HOURS`` hours (default is 2). To override this, set
``FORCE_PREREQ=1`` and the package checks will never be skipped.
Miscellaneous
=============
``tools/fixup_stuff.sh`` is broken and shouldn't 'fix' just one version of packages.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Stuff in there is to correct problems in an environment that need to
be fixed elsewhere or may/will be fixed in a future release. In the
case of ``httplib2`` and ``prettytable`` specific problems with
specific versions are being worked around. If later releases have
those problems than we'll add them to the script. Knowing about the
broken future releases is valuable rather than polling to see if it
has been fixed.
+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>`.
@@ -0,0 +1,110 @@
Configure Load-Balancer Version 2
=================================
Starting in the OpenStack Liberty release, the
`neutron LBaaS v2 API <http://developer.openstack.org/api-ref-networking-v2-ext.html>`_
is now stable while the LBaaS v1 API has been deprecated. The LBaaS v2 reference
driver is based on Octavia.
Phase 1: Create DevStack + 2 nova instances
--------------------------------------------
First, set up a vm of your choice with at least 8 GB RAM and 16 GB disk space,
make sure it is updated. Install git and any other developer tools you find useful.
Install devstack
::
git clone https://git.openstack.org/openstack-dev/devstack
cd devstack
Edit your ``local.conf`` to look like
::
[[local|localrc]]
# Load the external LBaaS plugin.
enable_plugin neutron-lbaas https://git.openstack.org/openstack/neutron-lbaas
enable_plugin octavia https://git.openstack.org/openstack/octavia
# ===== BEGIN localrc =====
DATABASE_PASSWORD=password
ADMIN_PASSWORD=password
SERVICE_PASSWORD=password
RABBIT_PASSWORD=password
# Enable Logging
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
# Glance
ENABLED_SERVICES+=,g-api,g-reg
# Neutron
ENABLED_SERVICES+=,q-svc,q-agt,q-dhcp,q-l3,q-meta
# Enable LBaaS v2
ENABLED_SERVICES+=,q-lbaasv2
ENABLED_SERVICES+=,octavia,o-cw,o-hk,o-hm,o-api
# Cinder
ENABLED_SERVICES+=,c-api,c-vol,c-sch
# Tempest
ENABLED_SERVICES+=,tempest
# ===== END localrc =====
Run stack.sh and do some sanity checks
::
./stack.sh
. ./openrc
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=$(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..
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
::
MYIP=$(ifconfig eth0|grep 'inet addr'|awk -F: '{print $2}'| awk '{print $1}')
while true; do echo -e "HTTP/1.0 200 OK\r\n\r\nWelcome to $MYIP" | sudo nc -l -p 80 ; done&
Phase 2: Create your load balancers
------------------------------------
::
neutron lbaas-loadbalancer-create --name lb1 private-subnet
neutron lbaas-loadbalancer-show lb1 # Wait for the provisioning_status to be ACTIVE.
neutron lbaas-listener-create --loadbalancer lb1 --protocol HTTP --protocol-port 80 --name listener1
sleep 10 # Sleep since LBaaS actions can take a few seconds depending on the environment.
neutron lbaas-pool-create --lb-algorithm ROUND_ROBIN --listener listener1 --protocol HTTP --name pool1
sleep 10
neutron lbaas-member-create --subnet private-subnet --address 10.0.0.3 --protocol-port 80 pool1
sleep 10
neutron lbaas-member-create --subnet private-subnet --address 10.0.0.5 --protocol-port 80 pool1
Please note here that the "10.0.0.3" and "10.0.0.5" in the above commands are the IPs of the nodes
(in my test run-thru, they were actually 10.2 and 10.4), and the address of the created LB will be
reported as "vip_address" from the lbaas-loadbalancer-create, and a quick test of that LB is
"curl that-lb-ip", which should alternate between showing the IPs of the two nodes.
@@ -0,0 +1,139 @@
=======================================================
Configure DevStack with KVM-based Nested Virtualization
=======================================================
When using virtualization technologies like KVM, one can take advantage
of "Nested VMX" (i.e. the ability to run KVM on KVM) so that the VMs in
cloud (Nova guests) can run relatively faster than with plain QEMU
emulation.
Kernels shipped with Linux distributions doesn't have this enabled by
default. This guide outlines the configuration details to enable nested
virtualization in KVM-based environments. And how to setup DevStack
(that'll run in a VM) to take advantage of this.
Nested Virtualization Configuration
===================================
Configure Nested KVM for Intel-based Machines
---------------------------------------------
Procedure to enable nested KVM virtualization on Intel-based machines.
Check if the nested KVM Kernel parameter is enabled:
::
cat /sys/module/kvm_intel/parameters/nested
N
Temporarily remove the KVM intel Kernel module, enable nested
virtualization to be persistent across reboots and add the Kernel
module back:
::
sudo rmmod kvm-intel
sudo sh -c "echo 'options kvm-intel nested=y' >> /etc/modprobe.d/dist.conf"
sudo modprobe kvm-intel
Ensure the Nested KVM Kernel module parameter for Intel is enabled on
the host:
::
cat /sys/module/kvm_intel/parameters/nested
Y
modinfo kvm_intel | grep nested
parm: nested:bool
Start your VM, now it should have KVM capabilities -- you can verify
that by ensuring ``/dev/kvm`` character device is present.
Configure Nested KVM for AMD-based Machines
-------------------------------------------
Procedure to enable nested KVM virtualization on AMD-based machines.
Check if the nested KVM Kernel parameter is enabled:
::
cat /sys/module/kvm_amd/parameters/nested
0
Temporarily remove the KVM AMD Kernel module, enable nested
virtualization to be persistent across reboots and add the Kernel module
back:
::
sudo rmmod kvm-amd
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
host:
::
cat /sys/module/kvm_amd/parameters/nested
1
modinfo kvm_amd | grep -i nested
parm: nested:int
To make the above value persistent across reboots, add an entry in
/etc/modprobe.d/dist.conf so it looks as below::
cat /etc/modprobe.d/dist.conf
options kvm-amd nested=y
Expose Virtualization Extensions to DevStack VM
-----------------------------------------------
Edit the VM's libvirt XML configuration via ``virsh`` utility:
::
sudo virsh edit devstack-vm
Add the below snippet to expose the host CPU features to the VM:
::
<cpu mode='host-passthrough'>
</cpu>
Ensure DevStack VM is Using KVM
-------------------------------
Before invoking ``stack.sh`` in the VM, ensure that KVM is enabled. This
can be verified by checking for the presence of the file ``/dev/kvm`` in
your VM. If it is present, DevStack will default to using the config
attribute ``virt_type = kvm`` in ``/etc/nova.conf``; otherwise, it'll fall
back to ``virt_type=qemu``, i.e. plain QEMU emulation.
Optionally, to explicitly set the type of virtualization, to KVM, by the
libvirt driver in nova, the below config attribute can be used in
DevStack's ``local.conf``:
::
LIBVIRT_TYPE=kvm
Once DevStack is configured successfully, verify if the Nova instances
are using KVM by noticing the QEMU CLI invoked by Nova is using the
parameter ``accel=kvm``, e.g.:
::
ps -ef | grep -i qemu
root 29773 1 0 11:24 ? 00:00:00 /usr/bin/qemu-system-x86_64 -machine accel=kvm [. . .]
+164
View File
@@ -0,0 +1,164 @@
================================
All-In-One Single LXC Container
================================
This guide walks you through the process of deploying OpenStack using devstack
in an LXC container instead of a VM.
The primary benefits to running devstack inside a container instead of a VM is
faster performance and lower memory overhead while still providing a suitable
level of isolation. This can be particularly useful when you want to simulate
running OpenStack on multiple nodes.
.. Warning:: Containers do not provide the same level of isolation as a virtual
machine.
.. Note:: Not all OpenStack features support running inside of a container. See
`Limitations`_ section below for details. :doc:`OpenStack in a VM <single-vm>`
is recommended for beginners.
Prerequisites
==============
This guide is written for Ubuntu 14.04 but should be adaptable for any modern
Linux distribution.
Install the LXC package::
sudo apt-get install lxc
You can verify support for containerization features in your currently running
kernel using the ``lxc-checkconfig`` command.
Container Setup
===============
Configuration
---------------
For a successful run of ``stack.sh`` and to permit use of KVM to run the VMs you
launch inside your container, we need to use the following additional
configuration options. Place the following in a file called
``devstack-lxc.conf``::
# Permit access to /dev/loop*
lxc.cgroup.devices.allow = b 7:* rwm
# Setup access to /dev/net/tun and /dev/kvm
lxc.mount.entry = /dev/net/tun dev/net/tun none bind,create=file 0 0
lxc.mount.entry = /dev/kvm dev/kvm none bind,create=file 0 0
# Networking
lxc.network.type = veth
lxc.network.flags = up
lxc.network.link = lxcbr0
Create Container
-------------------
The configuration and rootfs for LXC containers are created using the
``lxc-create`` command.
We will name our container ``devstack`` and use the ``ubuntu`` template which
will use ``debootstrap`` to build a Ubuntu rootfs. It will default to the same
release and architecture as the host system. We also install the additional
packages ``bsdmainutils`` and ``git`` as we'll need them to run devstack::
sudo lxc-create -n devstack -t ubuntu -f devstack-lxc.conf -- --packages=bsdmainutils,git
The first time it builds the rootfs will take a few minutes to download, unpack,
and configure all the necessary packages for a minimal installation of Ubuntu.
LXC will cache this and subsequent containers will only take seconds to create.
.. Note:: To speed up the initial rootfs creation, you can specify a mirror to
download the Ubuntu packages from by appending ``--mirror=`` and then the URL
of a Ubuntu mirror. To see other other template options, you can run
``lxc-create -t ubuntu -h``.
Start Container
----------------
To start the container, run::
sudo lxc-start -n devstack
A moment later you should be presented with the login prompt for your container.
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 devstack | awk '/IP/ { print $2 }')``).
Run Devstack
-------------
You should now be logged into your container and almost ready to run devstack.
The commands in this section should all be run inside your container.
.. Tip:: You can greatly reduce the runtime of your initial devstack setup by
ensuring you have your apt sources.list configured to use a fast mirror.
Check and update ``/etc/apt/sources.list`` if necessary and then run
``apt-get update``.
#. Download DevStack
::
git clone https://git.openstack.org/openstack-dev/devstack
#. Configure
Refer to :ref:`minimal-configuration` if you wish to configure the behaviour
of devstack.
#. Start the install
::
cd devstack
./stack.sh
Cleanup
-------
To stop the container::
lxc-stop -n devstack
To delete the container::
lxc-destroy -n devstack
Limitations
============
Not all OpenStack features may function correctly or at all when ran from within
a container.
Cinder
-------
Unable to create LVM backed volume
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
In our configuration, we have not whitelisted access to device-mapper or LVM
devices. Doing so will permit your container to have access and control of LVM
on the host system. To enable, add the following to your
``devstack-lxc.conf`` before running ``lxc-create``::
lxc.cgroup.devices.allow = c 10:236 rwm
lxc.cgroup.devices.allow = b 252:* rwm
Additionally you'll need to set ``udev_rules = 0`` in the ``activation``
section of ``/etc/lvm/lvm.conf`` unless you mount devtmpfs in your container.
Unable to attach volume to instance
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
It is not possible to attach cinder volumes to nova instances due to parts of
the Linux iSCSI implementation not being network namespace aware. This can be
worked around by using network pass-through instead of a separate network
namespace but such a setup significantly reduces the isolation of the
container (e.g. a ``halt`` command issued in the container will cause the host
system to shutdown).
+419
View File
@@ -0,0 +1,419 @@
==============
Multi-Node Lab
==============
Here is OpenStack in a realistic test configuration with multiple
physical servers.
Prerequisites Linux & Network
=============================
Minimal Install
---------------
You need to have a system with a fresh install of Linux. You can
download the `Minimal
CD <https://help.ubuntu.com/community/Installation/MinimalCD>`__ for
Ubuntu releases since DevStack will download & install all the
additional dependencies. The netinstall ISO is available for
`Fedora <http://mirrors.kernel.org/fedora/releases/>`__
and
`CentOS/RHEL <http://mirrors.kernel.org/centos/>`__.
Install a couple of packages to bootstrap configuration:
::
apt-get install -y git sudo || yum install -y git sudo
Network Configuration
---------------------
The first iteration of the lab uses OpenStack's FlatDHCP network
controller so only a single network will be required. It should be on
its own subnet without DHCP; the host IPs and floating IP pool(s) will
come out of this block. This example uses the following:
- Gateway: 192.168.42.1
- Physical nodes: 192.168.42.11-192.168.42.99
- Floating IPs: 192.168.42.128-192.168.42.254
Configure each node with a static IP. For Ubuntu edit
``/etc/network/interfaces``:
::
auto eth0
iface eth0 inet static
address 192.168.42.11
netmask 255.255.255.0
gateway 192.168.42.1
For Fedora and CentOS/RHEL edit
``/etc/sysconfig/network-scripts/ifcfg-eth0``:
::
BOOTPROTO=static
IPADDR=192.168.42.11
NETMASK=255.255.255.0
GATEWAY=192.168.42.1
Installation shake and bake
===========================
Add the DevStack User
---------------------
OpenStack runs as a non-root user that has sudo access to root. There is
nothing special about the name, we'll use ``stack`` here. Every node
must use the same name and preferably uid. If you created a user during
the OS install you can use it and give it sudo privileges below.
Otherwise create the stack user:
::
groupadd stack
useradd -g stack -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
password:
::
echo "stack ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
From here on use the ``stack`` user. **Logout** and **login** as the
``stack`` user.
Set Up Ssh
----------
Set up the stack user on each node with an ssh key for access:
::
mkdir ~/.ssh; chmod 700 ~/.ssh
echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCyYjfgyPazTvGpd8OaAvtU2utL8W6gWC4JdRS1J95GhNNfQd657yO6s1AH5KYQWktcE6FO/xNUC2reEXSGC7ezy+sGO1kj9Limv5vrvNHvF1+wts0Cmyx61D2nQw35/Qz8BvpdJANL7VwP/cFI/p3yhvx2lsnjFE3hN8xRB2LtLUopUSVdBwACOVUmH2G+2BWMJDjVINd2DPqRIA4Zhy09KJ3O1Joabr0XpQL0yt/I9x8BVHdAx6l9U0tMg9dj5+tAjZvMAFfye3PJcYwwsfJoFxC8w/SLtqlFX7Ehw++8RtvomvuipLdmWCy+T9hIkl+gHYE4cS3OIqXH7f49jdJf jesse@spacey.local" > ~/.ssh/authorized_keys
Download DevStack
-----------------
Grab the latest version of DevStack:
::
git clone https://git.openstack.org/openstack-dev/devstack
cd devstack
Up to this point all of the steps apply to each node in the cluster.
From here on there are some differences between the cluster controller
(aka 'head node') and the compute nodes.
Configure Cluster Controller
----------------------------
The cluster controller runs all OpenStack services. Configure the
cluster controller's DevStack in ``local.conf``:
::
[[local|localrc]]
HOST_IP=192.168.42.11
FLAT_INTERFACE=eth0
FIXED_RANGE=10.4.128.0/20
FIXED_NETWORK_SIZE=4096
FLOATING_RANGE=192.168.42.128/25
MULTI_HOST=1
LOGFILE=/opt/stack/logs/stack.sh.log
ADMIN_PASSWORD=labstack
DATABASE_PASSWORD=supersecret
RABBIT_PASSWORD=supersecret
SERVICE_PASSWORD=supersecret
In the multi-node configuration the first 10 or so IPs in the private
subnet are usually reserved. Add this to ``local.sh`` to have it run
after every ``stack.sh`` run:
::
for i in `seq 2 10`; do /opt/stack/nova/bin/nova-manage fixed reserve 10.4.128.$i; done
Fire up OpenStack:
::
./stack.sh
A stream of activity ensues. When complete you will see a summary of
``stack.sh``'s work, including the relevant URLs, accounts and passwords
to poke at your shiny new OpenStack. The most recent log file is
available in ``stack.sh.log``.
Configure Compute Nodes
-----------------------
The compute nodes only run the OpenStack worker services. For additional
machines, create a ``local.conf`` with:
::
[[local|localrc]]
HOST_IP=192.168.42.12 # change this per compute node
FLAT_INTERFACE=eth0
FIXED_RANGE=10.4.128.0/20
FIXED_NETWORK_SIZE=4096
FLOATING_RANGE=192.168.42.128/25
MULTI_HOST=1
LOGFILE=/opt/stack/logs/stack.sh.log
ADMIN_PASSWORD=labstack
DATABASE_PASSWORD=supersecret
RABBIT_PASSWORD=supersecret
SERVICE_PASSWORD=supersecret
DATABASE_TYPE=mysql
SERVICE_HOST=192.168.42.11
MYSQL_HOST=$SERVICE_HOST
RABBIT_HOST=$SERVICE_HOST
GLANCE_HOSTPORT=$SERVICE_HOST:9292
ENABLED_SERVICES=n-cpu,n-net,n-api-meta,c-vol,placement-client
NOVA_VNC_ENABLED=True
NOVNCPROXY_URL="http://$SERVICE_HOST:6080/vnc_auto.html"
VNCSERVER_LISTEN=$HOST_IP
VNCSERVER_PROXYCLIENT_ADDRESS=$VNCSERVER_LISTEN
**Note:** the ``n-api-meta`` service is a version of the api server
that only serves the metadata service. It's needed because the
computes created won't have a routing path to the metadata service on
the controller.
Fire up OpenStack:
::
./stack.sh
A stream of activity ensues. When complete you will see a summary of
``stack.sh``'s work, including the relevant URLs, accounts and passwords
to poke at your shiny new OpenStack. The most recent log file is
available in ``stack.sh.log``.
Cleaning Up After DevStack
--------------------------
Shutting down OpenStack is now as simple as running the included
``unstack.sh`` script:
::
./unstack.sh
A more aggressive cleanup can be performed using ``clean.sh``. It
removes certain troublesome packages and attempts to leave the system in
a state where changing the database or queue manager can be reliably
performed.
::
./clean.sh
Sometimes running instances are not cleaned up. DevStack attempts to do
this when it runs but there are times it needs to still be done by hand:
::
sudo rm -rf /etc/libvirt/qemu/inst*
sudo virsh list | grep inst | awk '{print $1}' | xargs -n1 virsh destroy
Options pimp your stack
=======================
Additional Users
----------------
DevStack creates two OpenStack users (``admin`` and ``demo``) and two
projects (also ``admin`` and ``demo``). ``admin`` is exactly what it
sounds like, a privileged administrative account that is a member of
both the ``admin`` and ``demo`` projects. ``demo`` is a normal user
account that is only a member of the ``demo`` project. Creating
additional OpenStack users can be done through the dashboard, sometimes
it is easier to do them in bulk from a script, especially since they get
blown away every time ``stack.sh`` runs. The following steps are ripe
for scripting:
::
# Get admin creds
. openrc admin admin
# List existing projects
openstack project list
# List existing users
openstack user list
# Add a user and project
NAME=bob
PASSWORD=BigSecret
PROJECT=$NAME
openstack project create $PROJECT
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 assignment list
Swift
-----
Swift, OpenStack Object Storage, requires a significant amount of resources
and is disabled by default in DevStack. The support in DevStack is geared
toward a minimal installation but can be used for testing. To implement a
true multi-node test of swift, additional steps will be required. Enabling it is as
simple as enabling the ``swift`` service in ``local.conf``:
::
enable_service s-proxy s-object s-container s-account
Swift, OpenStack Object Storage, will put its data files in ``SWIFT_DATA_DIR`` (default
``/opt/stack/data/swift``). The size of the data 'partition' created
(really a loop-mounted file) is set by ``SWIFT_LOOPBACK_DISK_SIZE``. The
Swift config files are located in ``SWIFT_CONF_DIR`` (default
``/etc/swift``). All of these settings can be overridden in (wait for
it...) ``local.conf``.
Volumes
-------
DevStack will automatically use an existing LVM volume group named
``stack-volumes`` to store cloud-created volumes. If ``stack-volumes``
doesn't exist, DevStack will set up a 10Gb loop-mounted file to contain
it. This obviously limits the number and size of volumes that can be
created inside OpenStack. The size can be overridden by setting
``VOLUME_BACKING_FILE_SIZE`` in ``local.conf``.
``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_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_NAME``.
The details of creating the volume group depends on the server hardware
involved but looks something like this:
::
pvcreate /dev/sdc
vgcreate stack-volumes /dev/sdc
Syslog
------
DevStack is capable of using ``rsyslog`` to aggregate logging across the
cluster. It is off by default; to turn it on set ``SYSLOG=True`` in
``local.conf``. ``SYSLOG_HOST`` defaults to ``HOST_IP``; on the compute
nodes it must be set to the IP of the cluster controller to send syslog
output there. In the example above, add this to the compute node
``local.conf``:
::
SYSLOG_HOST=192.168.42.11
Using Alternate Repositories/Branches
-------------------------------------
The git repositories for all of the OpenStack services are defined in
``stackrc``. Since this file is a part of the DevStack package changes
to it will probably be overwritten as updates are applied. Every setting
in ``stackrc`` can be redefined in ``local.conf``.
To change the repository or branch that a particular OpenStack service
is created from, simply change the value of ``*_REPO`` or ``*_BRANCH``
corresponding to that service.
After making changes to the repository or branch, if ``RECLONE`` is not
set in ``localrc`` it may be necessary to remove the corresponding
directory from ``/opt/stack`` to force git to re-clone the repository.
For example, to pull nova, OpenStack Compute, from a proposed release candidate
in the primary nova repository:
::
NOVA_BRANCH=rc-proposed
To pull glance, OpenStack Image service, from an experimental fork:
::
GLANCE_BRANCH=try-something-big
GLANCE_REPO=https://github.com/mcuser/glance.git
Notes stuff you might need to know
==================================
Reset the Bridge
----------------
How to reset the bridge configuration:
::
sudo brctl delif br100 eth0.926
sudo ip link set dev br100 down
sudo brctl delbr br100
Set MySQL Password
------------------
If you forgot to set the root password you can do this:
::
mysqladmin -u root -pnova password 'supersecret'
Live Migration
--------------
In order for live migration to work with the default live migration URI::
[libvirt]
live_migration_uri = qemu+ssh://stack@%s/system
SSH keys need to be exchanged between each compute node:
1. The SOURCE root user's public RSA key (likely in /root/.ssh/id_rsa.pub)
needs to be in the DESTINATION stack user's authorized_keys file
(~stack/.ssh/authorized_keys). This can be accomplished by manually
copying the contents from the file on the SOURCE to the DESTINATION. If
you have a password configured for the stack user, then you can use the
following command to accomplish the same thing::
ssh-copy-id -i /root/.ssh/id_rsa.pub stack@DESTINATION
2. The DESTINATION host's public ECDSA key (/etc/ssh/ssh_host_ecdsa_key.pub)
needs to be in the SOURCE root user's known_hosts file
(/root/.ssh/known_hosts). This can be accomplished by running the
following on the SOURCE machine (hostname must be used)::
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
node's root user's known_hosts file. Please note that if the root or stack
user does not have a SSH key, one can be generated using::
ssh-keygen -t rsa
The above steps are necessary because libvirtd runs as root when the
live_migration_uri uses the "qemu:///system" family of URIs. For more
information, see the `libvirt documentation`_.
.. _libvirt documentation: https://libvirt.org/drvqemu.html#securitydriver
+634
View File
@@ -0,0 +1,634 @@
======================================
Using DevStack with neutron Networking
======================================
This guide will walk you through using OpenStack neutron with the ML2
plugin and the Open vSwitch mechanism driver.
.. _single-interface-ovs:
Using Neutron with a Single Interface
=====================================
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 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
----------------------
In most cases where DevStack is being deployed with a single
interface, there is a hardware router that is being used for external
connectivity and DHCP. The developer machine is connected to this
network and is on a shared subnet with other machines. The
`local.conf` exhibited here assumes that 1500 is a reasonable MTU to
use on that network.
.. nwdiag::
nwdiag {
inet [ shape = cloud ];
router;
inet -- router;
network hardware_network {
address = "172.18.161.0/24"
router [ address = "172.18.161.1" ];
devstack-1 [ address = "172.18.161.6" ];
}
}
DevStack Configuration
----------------------
The following is a complete `local.conf` for the host named
`devstack-1`. It will run all the API and services, as well as
serving as a hypervisor for guest instances.
::
[[local|localrc]]
HOST_IP=172.18.161.6
SERVICE_HOST=172.18.161.6
MYSQL_HOST=172.18.161.6
RABBIT_HOST=172.18.161.6
GLANCE_HOSTPORT=172.18.161.6:9292
ADMIN_PASSWORD=secret
DATABASE_PASSWORD=secret
RABBIT_PASSWORD=secret
SERVICE_PASSWORD=secret
## Neutron options
Q_USE_SECGROUP=True
FLOATING_RANGE="172.18.161.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"
PUBLIC_INTERFACE=eth0
# Open vSwitch provider networking configuration
Q_USE_PROVIDERNET_FOR_PUBLIC=True
OVS_PHYSICAL_BRIDGE=br-ex
PUBLIC_BRIDGE=br-ex
OVS_BRIDGE_MAPPINGS=public:br-ex
Adding Additional Compute Nodes
-------------------------------
Let's suppose that after installing DevStack on the first host, you
also want to do multinode testing and networking.
Physical Network Setup
~~~~~~~~~~~~~~~~~~~~~~
.. nwdiag::
nwdiag {
inet [ shape = cloud ];
router;
inet -- router;
network hardware_network {
address = "172.18.161.0/24"
router [ address = "172.18.161.1" ];
devstack-1 [ address = "172.18.161.6" ];
devstack-2 [ address = "172.18.161.7" ];
}
}
After DevStack installs and configures Neutron, traffic from guest VMs
flows out of `devstack-2` (the compute node) and is encapsulated in a
VXLAN tunnel back to `devstack-1` (the control node) where the L3
agent is running.
::
stack@devstack-2:~/devstack$ sudo ovs-vsctl show
8992d965-0ba0-42fd-90e9-20ecc528bc29
Bridge br-int
fail_mode: secure
Port br-int
Interface br-int
type: internal
Port patch-tun
Interface patch-tun
type: patch
options: {peer=patch-int}
Bridge br-tun
fail_mode: secure
Port "vxlan-c0a801f6"
Interface "vxlan-c0a801f6"
type: vxlan
options: {df_default="true", in_key=flow, local_ip="172.18.161.7", out_key=flow, remote_ip="172.18.161.6"}
Port patch-int
Interface patch-int
type: patch
options: {peer=patch-tun}
Port br-tun
Interface br-tun
type: internal
ovs_version: "2.0.2"
Open vSwitch on the control node, where the L3 agent runs, is
configured to de-encapsulate traffic from compute nodes, then forward
it over the `br-ex` bridge, where `eth0` is attached.
::
stack@devstack-1:~/devstack$ sudo ovs-vsctl show
422adeea-48d1-4a1f-98b1-8e7239077964
Bridge br-tun
fail_mode: secure
Port br-tun
Interface br-tun
type: internal
Port patch-int
Interface patch-int
type: patch
options: {peer=patch-tun}
Port "vxlan-c0a801d8"
Interface "vxlan-c0a801d8"
type: vxlan
options: {df_default="true", in_key=flow, local_ip="172.18.161.6", out_key=flow, remote_ip="172.18.161.7"}
Bridge br-ex
Port phy-br-ex
Interface phy-br-ex
type: patch
options: {peer=int-br-ex}
Port "eth0"
Interface "eth0"
Port br-ex
Interface br-ex
type: internal
Bridge br-int
fail_mode: secure
Port "tapce66332d-ea"
tag: 1
Interface "tapce66332d-ea"
type: internal
Port "qg-65e5a4b9-15"
tag: 2
Interface "qg-65e5a4b9-15"
type: internal
Port "qr-33e5e471-88"
tag: 1
Interface "qr-33e5e471-88"
type: internal
Port "qr-acbe9951-70"
tag: 1
Interface "qr-acbe9951-70"
type: internal
Port br-int
Interface br-int
type: internal
Port patch-tun
Interface patch-tun
type: patch
options: {peer=patch-int}
Port int-br-ex
Interface int-br-ex
type: patch
options: {peer=phy-br-ex}
ovs_version: "2.0.2"
`br-int` is a bridge that the Open vSwitch mechanism driver creates,
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 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.
DevStack Compute Configuration
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The host `devstack-2` has a very minimal `local.conf`.
::
[[local|localrc]]
HOST_IP=172.18.161.7
SERVICE_HOST=172.18.161.6
MYSQL_HOST=172.18.161.6
RABBIT_HOST=172.18.161.6
GLANCE_HOSTPORT=172.18.161.6:9292
ADMIN_PASSWORD=secret
MYSQL_PASSWORD=secret
RABBIT_PASSWORD=secret
SERVICE_PASSWORD=secret
## Neutron options
PUBLIC_INTERFACE=eth0
ENABLED_SERVICES=n-cpu,rabbit,q-agt
Network traffic from `eth0` on the compute nodes is then NAT'd by the
controller node that runs Neutron's `neutron-l3-agent` and provides L3
connectivity.
Neutron Networking with Open vSwitch and Provider Networks
==========================================================
In some instances, it is desirable to use neutron's provider
networking extension, so that networks that are configured on an
external router can be utilized by neutron, and instances created via
Nova can attach to the network managed by the external router.
For example, in some lab environments, a hardware router has been
pre-configured by another party, and an OpenStack developer has been
given a VLAN tag and IP address range, so that instances created via
DevStack will use the external router for L3 connectivity, as opposed
to the neutron L3 service.
Physical Network Setup
----------------------
.. nwdiag::
nwdiag {
inet [ shape = cloud ];
router;
inet -- router;
network provider_net {
address = "203.0.113.0/24"
router [ address = "203.0.113.1" ];
controller;
compute1;
compute2;
}
network control_plane {
router [ address = "10.0.0.1" ]
address = "10.0.0.0/24"
controller [ address = "10.0.0.2" ]
compute1 [ address = "10.0.0.3" ]
compute2 [ address = "10.0.0.4" ]
}
}
On a compute node, the first interface, eth0 is used for the OpenStack
management (API, message bus, etc) as well as for ssh for an
administrator to access the machine.
::
stack@compute:~$ ifconfig eth0
eth0 Link encap:Ethernet HWaddr bc:16:65:20:af:fc
inet addr:10.0.0.3
eth1 is manually configured at boot to not have an IP address.
Consult your operating system documentation for the appropriate
technique. For Ubuntu, the contents of `/etc/network/interfaces`
contains:
::
auto eth1
iface eth1 inet manual
up ifconfig $IFACE 0.0.0.0 up
down ifconfig $IFACE 0.0.0.0 down
The second physical interface, eth1 is added to a bridge (in this case
named br-ex), which is used to forward network traffic from guest VMs.
::
stack@compute:~$ sudo ovs-vsctl add-br br-ex
stack@compute:~$ sudo ovs-vsctl add-port br-ex eth1
stack@compute:~$ sudo ovs-vsctl show
9a25c837-32ab-45f6-b9f2-1dd888abcf0f
Bridge br-ex
Port br-ex
Interface br-ex
type: internal
Port phy-br-ex
Interface phy-br-ex
type: patch
options: {peer=int-br-ex}
Port "eth1"
Interface "eth1"
Service Configuration
---------------------
**Control Node**
In this example, the control node will run the majority of the
OpenStack API and management services (keystone, glance,
nova, neutron)
**Compute Nodes**
In this example, the nodes that will host guest instances will run
the ``neutron-openvswitch-agent`` for network connectivity, as well as
the compute service ``nova-compute``.
DevStack Configuration
----------------------
.. _ovs-provider-network-controller:
The following is a snippet of the DevStack configuration on the
controller node.
::
HOST_IP=10.0.0.2
SERVICE_HOST=10.0.0.2
MYSQL_HOST=10.0.0.2
RABBIT_HOST=10.0.0.2
GLANCE_HOSTPORT=10.0.0.2:9292
PUBLIC_INTERFACE=eth1
ADMIN_PASSWORD=secret
MYSQL_PASSWORD=secret
RABBIT_PASSWORD=secret
SERVICE_PASSWORD=secret
## Neutron options
Q_USE_SECGROUP=True
ENABLE_PROJECT_VLANS=True
PROJECT_VLAN_RANGE=3001:4000
PHYSICAL_NETWORK=default
OVS_PHYSICAL_BRIDGE=br-ex
Q_USE_PROVIDER_NETWORKING=True
disable_service q-l3
## Neutron Networking options used to create Neutron Subnets
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 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, 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.
The following is the DevStack configuration on
compute node 1.
::
HOST_IP=10.0.0.3
SERVICE_HOST=10.0.0.2
MYSQL_HOST=10.0.0.2
RABBIT_HOST=10.0.0.2
GLANCE_HOSTPORT=10.0.0.2:9292
ADMIN_PASSWORD=secret
MYSQL_PASSWORD=secret
RABBIT_PASSWORD=secret
SERVICE_PASSWORD=secret
# Services that a compute node runs
ENABLED_SERVICES=n-cpu,rabbit,q-agt
## Open vSwitch provider networking options
PHYSICAL_NETWORK=default
OVS_PHYSICAL_BRIDGE=br-ex
PUBLIC_INTERFACE=eth1
Q_USE_PROVIDER_NETWORKING=True
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) -
DevStack will automatically add the network interface defined in
``PUBLIC_INTERFACE`` to the ``OVS_PHYSICAL_BRIDGE``
For example, with the above configuration, a bridge is
created, named ``br-ex`` which is managed by Open vSwitch, and the
second interface on the compute node, ``eth1`` is attached to the
bridge, to forward traffic sent by guest VMs.
Miscellaneous Tips
==================
Non-Standard MTU on the Physical Network
----------------------------------------
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
::
[[post-config|/$Q_PLUGIN_CONF_FILE]]
global_physnet_mtu = 9000
Disabling Next Generation Firewall Tools
----------------------------------------
DevStack does not properly operate with modern firewall tools. Specifically
it will appear as if the guest VM can access the external network via ICMP,
but UDP and TCP packets will not be delivered to the guest VM. The root cause
of the issue is that both ufw (Uncomplicated Firewall) and firewalld (Fedora's
firewall manager) apply firewall rules to all interfaces in the system, rather
then per-device. One solution to this problem is to revert to iptables
functionality.
To get a functional firewall configuration for Fedora do the following:
::
sudo service iptables save
sudo systemctl disable firewalld
sudo systemctl enable iptables
sudo systemctl stop firewalld
sudo systemctl start iptables
To get a functional firewall configuration for distributions containing ufw,
disable ufw. Note ufw is generally not enabled by default in Ubuntu. To
disable ufw if it was enabled, do the following:
::
sudo service iptables save
sudo ufw disable
Configuring Extension Drivers for the ML2 Plugin
------------------------------------------------
Extension drivers for the ML2 plugin are set with the variable
``Q_ML2_PLUGIN_EXT_DRIVERS``, and includes the 'port_security' extension
by default. If you want to remove all the extension drivers (even
'port_security'), set ``Q_ML2_PLUGIN_EXT_DRIVERS`` to blank.
Using Linux Bridge instead of Open vSwitch
------------------------------------------
The configuration for using the Linux Bridge ML2 driver is fairly
straight forward. The Linux Bridge configuration for DevStack is similar
to the :ref:`Open vSwitch based single interface <single-interface-ovs>`
setup, with small modifications for the interface mappings.
::
[[local|localrc]]
HOST_IP=172.18.161.6
SERVICE_HOST=172.18.161.6
MYSQL_HOST=172.18.161.6
RABBIT_HOST=172.18.161.6
GLANCE_HOSTPORT=172.18.161.6:9292
ADMIN_PASSWORD=secret
DATABASE_PASSWORD=secret
RABBIT_PASSWORD=secret
SERVICE_PASSWORD=secret
## Neutron options
Q_USE_SECGROUP=True
FLOATING_RANGE="172.18.161.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"
PUBLIC_INTERFACE=eth0
Q_USE_PROVIDERNET_FOR_PUBLIC=True
# Linuxbridge Settings
Q_AGENT=linuxbridge
LB_PHYSICAL_INTERFACE=eth0
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
+72
View File
@@ -0,0 +1,72 @@
=================
Nova and DevStack
=================
This is a rough guide to various configuration parameters for nova
running with DevStack.
nova-serialproxy
================
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>`_.
The service can be enabled by adding ``n-sproxy`` to
``ENABLED_SERVICES``. Further options can be enabled via
``local.conf``, e.g.
::
[[post-config|$NOVA_CONF]]
[serial_console]
#
# Options defined in nova.cmd.serialproxy
#
# Host on which to listen for incoming requests (string value)
#serialproxy_host=0.0.0.0
# Port on which to listen for incoming requests (integer
# value)
#serialproxy_port=6083
#
# Options defined in nova.console.serial
#
# Enable serial console related features (boolean value)
#enabled=false
# Do not set this manually. Instead enable the service as
# outlined above.
# Range of TCP ports to use for serial ports on compute hosts
# (string value)
#port_range=10000:20000
# Location of serial console proxy. (string value)
#base_url=ws://127.0.0.1:6083/
# IP address on which instance serial console should listen
# (string value)
#listen=127.0.0.1
# The address to which proxy clients (like nova-serialproxy)
# should connect (string value)
#proxyclient_address=127.0.0.1
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>`_.
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>`_
+133
View File
@@ -0,0 +1,133 @@
=========================
All-In-One Single Machine
=========================
Things are about to get real! Using OpenStack in containers or VMs is
nice for kicking the tires, but doesn't compare to the feeling you get
with hardware.
Prerequisites Linux & Network
=============================
Minimal Install
---------------
You need to have a system with a fresh install of Linux. You can
download the `Minimal
CD <https://help.ubuntu.com/community/Installation/MinimalCD>`__ for
Ubuntu releases since DevStack will download & install all the
additional dependencies. The netinstall ISO is available for
`Fedora <http://mirrors.kernel.org/fedora/releases/>`__
and
`CentOS/RHEL <http://mirrors.kernel.org/centos/>`__.
You may be tempted to use a desktop distro on a laptop, it will probably
work but you may need to tell Network Manager to keep its fingers off
the interface(s) that OpenStack uses for bridging.
Network Configuration
---------------------
Determine the network configuration on the interface used to integrate
your OpenStack cloud with your existing network. For example, if the IPs
given out on your network by DHCP are 192.168.1.X - where X is between
100 and 200 you will be able to use IPs 201-254 for **floating ips**.
To make things easier later change your host to use a static IP instead
of DHCP (i.e. 192.168.1.201).
Installation shake and bake
===========================
Add your user
-------------
We need to add a user to install DevStack. (if you created a user during
install you can skip this step and just give the user sudo privileges
below)
::
adduser stack
Since this user will be making many changes to your system, it will need
to have sudo privileges:
::
apt-get install sudo -y || yum install -y sudo
echo "stack ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
From here on you should use the user you created. **Logout** and
**login** as that user.
Download DevStack
-----------------
We'll grab the latest version of DevStack via https:
::
sudo apt-get install git -y || sudo yum install -y git
git clone https://git.openstack.org/openstack-dev/devstack
cd devstack
Run DevStack
------------
Now to configure ``stack.sh``. DevStack includes a sample in
``devstack/samples/local.conf``. Create ``local.conf`` as shown below to
do the following:
- Set ``FLOATING_RANGE`` to a range not used on the local network, i.e.
192.168.1.224/27. This configures IP addresses ending in 225-254 to
be used as floating IPs.
- Set ``FIXED_RANGE`` and ``FIXED_NETWORK_SIZE`` to configure the
internal address space used by the instances.
- Set ``FLAT_INTERFACE`` to the Ethernet interface that connects the
host to your local network. This is the interface that should be
configured with the static IP address mentioned above.
- Set the administrative password. This password is used for the
**admin** and **demo** accounts set up as OpenStack users.
- Set the MySQL administrative password. The default here is a random
hex string which is inconvenient if you need to look at the database
directly for anything.
- Set the RabbitMQ password.
- Set the service password. This is used by the OpenStack services
(Nova, Glance, etc) to authenticate with Keystone.
``local.conf`` should look something like this:
::
[[local|localrc]]
FLOATING_RANGE=192.168.1.224/27
FIXED_RANGE=10.11.12.0/24
FIXED_NETWORK_SIZE=256
FLAT_INTERFACE=eth0
ADMIN_PASSWORD=supersecret
DATABASE_PASSWORD=iheartdatabases
RABBIT_PASSWORD=flopsymopsy
SERVICE_PASSWORD=iheartksl
Run DevStack:
::
./stack.sh
A seemingly endless stream of activity ensues. When complete you will
see a summary of ``stack.sh``'s work, including the relevant URLs,
accounts and passwords to poke at your shiny new OpenStack.
Using OpenStack
---------------
At this point you should be able to access the dashboard from other
computers on the local network. In this example that would be
http://192.168.1.201/ for the dashboard (aka Horizon). Launch VMs and if
you give them floating IPs and security group access those VMs will be
accessible from other machines on your network.
Some examples of using the OpenStack command-line clients ``nova`` and
``glance`` are in the shakedown scripts in ``devstack/exercises``.
``exercise.sh`` will run all of those scripts and report on the results.
+103
View File
@@ -0,0 +1,103 @@
====================
All-In-One Single VM
====================
Use the cloud to build the cloud! Use your cloud to launch new versions
of OpenStack in about 5 minutes. If you break it, start over! The VMs
launched in the cloud will be slow as they are running in QEMU
(emulation), but their primary use is testing OpenStack development and
operation.
Prerequisites Cloud & Image
===========================
Virtual Machine
---------------
DevStack should run in any virtual machine running a supported Linux
release. It will perform best with 4GB or more of RAM.
OpenStack Deployment & cloud-init
---------------------------------
If the cloud service has an image with ``cloud-init`` pre-installed, use
it. You can get one from `Ubuntu's Daily
Build <http://uec-images.ubuntu.com>`__ site if necessary. This will
enable you to launch VMs with userdata that installs everything at boot
time. The userdata script below will install and run DevStack with a
minimal configuration. The use of ``cloud-init`` is outside the scope of
this document, refer to the ``cloud-init`` docs for more information.
If you are directly using a hypervisor like Xen, kvm or VirtualBox you
can manually kick off the script below as a non-root user in a
bare-bones server installation.
Installation shake and bake
===========================
Launching With Cloud-Init
-------------------------
This cloud config grabs the latest version of DevStack via git, creates
a minimal ``local.conf`` file and kicks off ``stack.sh``. It should be
passed as the user-data file when booting the VM.
::
#cloud-config
users:
- default
- name: stack
lock_passwd: False
sudo: ["ALL=(ALL) NOPASSWD:ALL\nDefaults:stack !requiretty"]
shell: /bin/bash
write_files:
- content: |
#!/bin/sh
DEBIAN_FRONTEND=noninteractive sudo apt-get -qqy update || sudo yum update -qy
DEBIAN_FRONTEND=noninteractive sudo apt-get install -qqy git || sudo yum install -qy git
sudo chown stack:stack /home/stack
cd /home/stack
git clone https://git.openstack.org/openstack-dev/devstack
cd devstack
echo '[[local|localrc]]' > local.conf
echo ADMIN_PASSWORD=password >> local.conf
echo DATABASE_PASSWORD=password >> local.conf
echo RABBIT_PASSWORD=password >> local.conf
echo SERVICE_PASSWORD=password >> local.conf
./stack.sh
path: /home/stack/start.sh
permissions: 0755
runcmd:
- su -l stack ./start.sh
As DevStack will refuse to run as root, this configures ``cloud-init``
to create a non-root user and run the ``start.sh`` script as that user.
If you are using cloud-init and you have not
`enabled custom logging <../configuration.html#enable-logging>`_ of the stack
output, then the stack output can be found in
``/var/log/cloud-init-output.log`` by default.
Launching By Hand
-----------------
Using a hypervisor directly, launch the VM and either manually perform
the steps in the embedded shell script above or copy it into the VM.
Using OpenStack
---------------
At this point you should be able to access the dashboard. Launch VMs and
if you give them floating IPs, access those VMs from other machines on
your network.
One interesting use case is for developers working on a VM on their
laptop. Once ``stack.sh`` has completed once, all of the pre-requisite
packages are installed in the VM and the source trees checked out.
Setting ``OFFLINE=True`` in ``local.conf`` enables ``stack.sh`` to run
multiple times without an Internet connection. DevStack, making hacking
at the lake possible since 2012!
+1
View File
@@ -0,0 +1 @@
.. include:: ../../HACKING.rst
+144
View File
@@ -0,0 +1,144 @@
.. 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
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.
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
===========
Install Linux
-------------
Start with a clean and minimal install of a Linux system. Devstack
attempts to support Ubuntu 14.04/16.04, Fedora 23/24, CentOS/RHEL 7,
as well as Debian and OpenSUSE.
If you do not have a preference, Ubuntu 16.04 is the most tested, and
will probably go the smoothest.
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
::
$ adduser stack
Since this user will be making many changes to your system, it should
have sudo privileges:
::
$ echo "stack ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
$ su stack
Download DevStack
-----------------
::
$ 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>`.
+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 loose 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.
+92
View File
@@ -0,0 +1,92 @@
========
Overview
========
DevStack has evolved to support a large number of configuration options
and alternative platforms and support services. That evolution has grown
well beyond what was originally intended and the majority of
configuration combinations are rarely, if ever, tested. DevStack is not
a general OpenStack installer and was never meant to be everything to
everyone.
Below is a list of what is specifically is supported (read that as
"tested") going forward.
Supported Components
====================
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).*
- Ubuntu: current LTS release plus current development release
- Fedora: current release plus previous release
- RHEL: 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
increase its chance of being well-maintained.
- Patches for Ubuntu and/or Fedora will not be held up due to
side-effects on other OS platforms.
Databases
---------
*As packaged by the host OS*
- MySQL
- PostgreSQL
Queues
------
*As packaged by the host OS*
- Rabbit
- Qpid
Web Server
----------
*As packaged by the host OS*
- Apache
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.
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)
Additional services not included directly in DevStack can be tied in to
``stack.sh`` using the :doc:`plugin mechanism <plugins>` to call
scripts that perform the configuration and startup of the service.
Node Configurations
-------------------
- single node
- multi-node is not tested regularly by the core team, and even then
only minimal configurations are reviewed
Exercises
---------
The DevStack exercise scripts are no longer used as integration and gate
testing as that job has transitioned to Tempest. They are still
maintained as a demonstrations of using OpenStack from the command line
and for quick operational testing.
+162
View File
@@ -0,0 +1,162 @@
.. 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
==========================
The following list is an automatically-generated collection of
available DevStack plugins. This 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>`__
app-catalog-ui `https://git.openstack.org/openstack/app-catalog-ui <https://git.openstack.org/cgit/openstack/app-catalog-ui>`__
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>`__
cerberus `https://git.openstack.org/openstack/cerberus <https://git.openstack.org/cgit/openstack/cerberus>`__
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>`__
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-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-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-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>`__
gnocchi `https://git.openstack.org/openstack/gnocchi <https://git.openstack.org/cgit/openstack/gnocchi>`__
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>`__
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>`__
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>`__
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>`__
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-log-api `https://git.openstack.org/openstack/monasca-log-api <https://git.openstack.org/cgit/openstack/monasca-log-api>`__
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-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-huawei `https://git.openstack.org/openstack/networking-huawei <https://git.openstack.org/cgit/openstack/networking-huawei>`__
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-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-ofagent `https://git.openstack.org/openstack/networking-ofagent <https://git.openstack.org/cgit/openstack/networking-ofagent>`__
networking-onos `https://git.openstack.org/openstack/networking-onos <https://git.openstack.org/cgit/openstack/networking-onos>`__
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-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-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-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-vpnaas `https://git.openstack.org/openstack/neutron-vpnaas <https://git.openstack.org/cgit/openstack/neutron-vpnaas>`__
nova-docker `https://git.openstack.org/openstack/nova-docker <https://git.openstack.org/cgit/openstack/nova-docker>`__
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>`__
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>`__
panko `https://git.openstack.org/openstack/panko <https://git.openstack.org/cgit/openstack/panko>`__
picasso `https://git.openstack.org/openstack/picasso <https://git.openstack.org/cgit/openstack/picasso>`__
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>`__
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>`__
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>`__
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>`__
vmware-nsx `https://git.openstack.org/openstack/vmware-nsx <https://git.openstack.org/cgit/openstack/vmware-nsx>`__
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>`__
====================================== ===
+252
View File
@@ -0,0 +1,252 @@
=======
Plugins
=======
The OpenStack ecosystem is wide and deep, and only growing more so
every day. The value of DevStack is that it's simple enough to
understand what it's doing clearly. And yet we'd like to support as
much of the OpenStack Ecosystem as possible. We do that with plugins.
DevStack plugins are bits of bash code that live outside the DevStack
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.
Plugin Interface
================
DevStack supports a standard mechanism for including plugins from
external repositories. The plugin interface assumes the following:
An external git repository that includes a ``devstack/`` top level
directory. Inside this directory there can be 3 files.
- ``override-defaults`` - a file containing global variables that
will be sourced before the lib/* files. This allows the plugin
to override the defaults that are otherwise set in the lib/*
files.
For example, override-defaults may export CINDER_ENABLED_BACKENDS
to include the plugin-specific storage backend and thus be able
to override the default lvm only storage backend for Cinder.
- ``settings`` - a file containing global variables that will be
sourced very early in the process. This is helpful if other plugins
might depend on this one, and need access to global variables to do
their work.
Your settings should include any ``enable_service`` lines required
by your plugin. This is especially important if you are kicking off
services using ``run_process`` as it only works with enabled
services.
Be careful to allow users to override global-variables for
customizing their environment. Usually it is best to provide a
default value only if the variable is unset or empty; e.g. in bash
syntax ``FOO=${FOO:-default}``.
- ``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.
Plugins are registered by adding the following to the localrc section
of ``local.conf``.
They are added in the following format::
[[local|localrc]]
enable_plugin <NAME> <GITURL> [GITREF]
- ``name`` - an arbitrary name. (ex: glusterfs, docker, zaqar, congress)
- ``giturl`` - a valid git url that can be cloned
- ``gitref`` - an optional git ref (branch / ref / tag) that will be
cloned. Defaults to master.
An example would be as follows::
enable_plugin ec2-api https://git.openstack.org/openstack/ec2-api
plugin.sh contract
==================
``plugin.sh`` is a bash script that will be called at specific points
during ``stack.sh``, ``unstack.sh``, and ``clean.sh``. It will be
called in the following way::
source $PATH/TO/plugin.sh <mode> [phase]
``mode`` can be thought of as the major mode being called, currently
one of: ``stack``, ``unstack``, ``clean``. ``phase`` is used by modes
which have multiple points during their run where it's necessary to
be able to execute code. All existing ``mode`` and ``phase`` points
are considered **strong contracts** and won't be removed without a
reasonable deprecation period. Additional new ``mode`` or ``phase``
points may be added at any time if we discover we need them to support
additional kinds of plugins in devstack.
The current full list of ``mode`` and ``phase`` are:
- **stack** - Called by ``stack.sh`` four times for different phases
of its run:
- **pre-install** - Called after system (OS) setup is complete and
before project source is installed.
- **install** - Called after the layer 1 and 2 projects source and
their dependencies have been installed.
- **post-config** - Called after the layer 1 and 2 services have
been configured. All configuration files for enabled services
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.
- **clean** - Called by ``clean.sh`` before other services are cleaned,
but after ``unstack.sh`` has been called.
Example plugin
====================
An example plugin would look something as follows.
``devstack/settings``::
# settings file for template
enable_service template
``devstack/plugin.sh``::
# plugin.sh - DevStack plugin.sh dispatch script template
function install_template {
...
}
function init_template {
...
}
function configure_template {
...
}
# check for service enabled
if is_service_enabled template; then
if [[ "$1" == "stack" && "$2" == "pre-install" ]]; then
# Set up system services
echo_summary "Configuring system services Template"
install_package cowsay
elif [[ "$1" == "stack" && "$2" == "install" ]]; then
# Perform installation of service source
echo_summary "Installing Template"
install_template
elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
# Configure after the other layer 1 and 2 services have been configured
echo_summary "Configuring Template"
configure_template
elif [[ "$1" == "stack" && "$2" == "extra" ]]; then
# Initialize and start the template service
echo_summary "Initializing Template"
init_template
fi
if [[ "$1" == "unstack" ]]; then
# Shut down template services
# no-op
:
fi
if [[ "$1" == "clean" ]]; then
# Remove state and transient data
# Remember clean.sh first calls unstack.sh
# no-op
:
fi
fi
Plugin Execution Order
======================
Plugins are run after in tree services at each of the stages
above. For example, if you need something to happen before Keystone
starts, you should do that at the ``post-config`` phase.
Multiple plugins can be specified in your ``local.conf``. When that
happens the plugins will be executed **in order** at each phase. This
allows plugins to conceptually depend on each other through
documenting to the user the order they must be declared. A formal
dependency mechanism is beyond the scope of the current work.
System Packages
===============
Devstack provides a framework for getting packages installed at an early
phase of its execution. These packages may be defined in a plugin as files
that contain new-line separated lists of packages required by the plugin
Supported packaging systems include apt and yum across multiple distributions.
To enable a plugin to hook into this and install package dependencies, packages
may be listed at the following locations in the top-level of the plugin
repository:
- ``./devstack/files/debs/$plugin_name`` - Packages to install when running
on Ubuntu, Debian or Linux Mint.
- ``./devstack/files/rpms/$plugin_name`` - Packages to install when running
on Red Hat, Fedora, CentOS or XenServer.
- ``./devstack/files/rpms-suse/$plugin_name`` - Packages to install when
running on SUSE Linux or openSUSE.
Using Plugins in the OpenStack Gate
===================================
For everyday use, DevStack plugins can exist in any git tree that's
accessible on the internet. However, when using DevStack plugins in
the OpenStack gate, they must live in projects in OpenStack's
gerrit. This allows testing of the plugin as well as provides network
isolation against upstream git repository failures (which we see often
enough to be an issue).
Ideally a plugin will be included within the ``devstack`` directory of
the project they are being tested. For example, the openstack/ec2-api
project has its plugin support in its own tree.
However, some times a DevStack plugin might be used solely to
configure a backend service that will be used by the rest of
OpenStack, so there is no "project tree" per say. Good examples
include: integration of back end storage (e.g. ceph or glusterfs),
integration of SDN controllers (e.g. ovn, OpenDayLight), or
integration of alternate RPC systems (e.g. zmq, qpid). In these cases
the best practice is to build a dedicated
``openstack/devstack-plugin-FOO`` project.
To enable a plugin to be used in a gate job, the following lines will
be needed in your ``jenkins/jobs/<project>.yaml`` definition in
`project-config
<http://git.openstack.org/cgit/openstack-infra/project-config/>`_::
# Because we are testing a non standard project, add the
# our project repository. This makes zuul do the right
# reference magic for testing changes.
export PROJECTS="openstack/ec2-api $PROJECTS"
# 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 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>`_.
+23
View File
@@ -0,0 +1,23 @@
:orphan:
.. the TOC on the front page actually makes the document a lot more
confusing. This lets us bury a toc which we can link in when
appropriate.
==========
Site Map
==========
.. toctree::
:glob:
:maxdepth: 3
overview
configuration
networking
plugins
plugin-registry
faq
development
hacking
guides
-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 api.volume)...", True
./tools/pretty_tox.sh api.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
-40
View File
@@ -1,40 +0,0 @@
#!/usr/bin/env bash
#
# source eucarc [username] [tenantname]
#
# Create EC2 credentials for the current user as defined by OS_TENANT_NAME:OS_USERNAME
# Optionally set the tenant/username via openrc
if [[ -n "$1" ]]; then
USERNAME=$1
fi
if [[ -n "$2" ]]; then
TENANT=$2
fi
# Find the other rc files
RC_DIR=$(cd $(dirname "${BASH_SOURCE:-$0}") && pwd)
# Get user configuration
source $RC_DIR/openrc
# Set the ec2 url so euca2ools works
export EC2_URL=$(keystone catalog --service ec2 | awk '/ publicURL / { print $4 }')
# Create EC2 credentials for the current user
CREDS=$(openstack ec2 credentials create)
export EC2_ACCESS_KEY=$(echo "$CREDS" | awk '/ access / { print $4 }')
export EC2_SECRET_KEY=$(echo "$CREDS" | awk '/ secret / { print $4 }')
# Euca2ools Certificate stuff for uploading bundles
# See exercises/bundle.sh to see how to get certs using nova cli
NOVA_KEY_DIR=${NOVA_KEY_DIR:-$RC_DIR}
export S3_URL=$(keystone catalog --service s3 | awk '/ publicURL / { print $4 }')
export EC2_USER_ID=42 # nova does not use user id, but bundling requires it
export EC2_PRIVATE_KEY=${NOVA_KEY_DIR}/pk.pem
export EC2_CERT=${NOVA_KEY_DIR}/cert.pem
export NOVA_CERT=${NOVA_KEY_DIR}/cacert.pem
export EUCALYPTUS_CERT=${NOVA_CERT} # euca-bundle-image seems to require this set
alias ec2-bundle-image="ec2-bundle-image --cert ${EC2_CERT} --privatekey ${EC2_PRIVATE_KEY} --user ${EC2_USER_ID} --ec2cert ${NOVA_CERT}"
alias ec2-upload-bundle="ec2-upload-bundle -a ${EC2_ACCESS_KEY} -s ${EC2_SECRET_KEY} --url ${S3_URL} --ec2cert ${NOVA_CERT}"
+5 -5
View File
@@ -2,7 +2,7 @@
# **exercise.sh**
# Keep track of the current devstack directory.
# Keep track of the current DevStack directory.
TOP_DIR=$(cd $(dirname "$0") && pwd)
# Import common functions
@@ -14,11 +14,11 @@ source $TOP_DIR/stackrc
# Run everything in the exercises/ directory that isn't explicitly disabled
# comma separated list of script basenames to skip
# to refrain from exercising euca.sh use SKIP_EXERCISES=euca
# to refrain from exercising foo.sh use ``SKIP_EXERCISES=foo``
SKIP_EXERCISES=${SKIP_EXERCISES:-""}
# comma separated list of script basenames to run
# to run only euca.sh use RUN_EXERCISES=euca
# to run only foo.sh use ``RUN_EXERCISES=foo``
basenames=${RUN_EXERCISES:-""}
EXERCISE_DIR=$TOP_DIR/exercises
@@ -27,7 +27,7 @@ if [[ -z "${basenames}" ]]; then
# Locate the scripts we should run
basenames=$(for b in `ls $EXERCISE_DIR/*.sh`; do basename $b .sh; done)
else
# If RUN_EXERCISES was specified, ignore SKIP_EXERCISES.
# If ``RUN_EXERCISES`` was specified, ignore ``SKIP_EXERCISES``.
SKIP_EXERCISES=
fi
@@ -56,7 +56,7 @@ for script in $basenames; do
fi
done
# output status of exercise run
# Output status of exercise run
echo "====================================================================="
for script in $skips; do
echo SKIP $script
-6
View File
@@ -21,12 +21,6 @@ export RUNNING_TIMEOUT=${RUNNING_TIMEOUT:-$(($BOOT_TIMEOUT + $ACTIVE_TIMEOUT))}
# Max time to wait for a vm to terminate
export TERMINATE_TIMEOUT=${TERMINATE_TIMEOUT:-30}
# Max time to wait for a euca-volume command to propagate
export VOLUME_TIMEOUT=${VOLUME_TIMEOUT:-30}
# Max time to wait for a euca-delete command to propagate
export VOLUME_DELETE_TIMEOUT=${SNAPSHOT_DELETE_TIMEOUT:-60}
# The size of the volume we want to boot from; some storage back-ends
# do not allow a disk resize, so it's important that this can be tuned
export DEFAULT_VOLUME_SIZE=${DEFAULT_VOLUME_SIZE:-1}
+4 -9
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
@@ -31,18 +31,13 @@ set -o xtrace
EXERCISE_DIR=$(cd $(dirname "$0") && pwd)
TOP_DIR=$(cd $EXERCISE_DIR/..; pwd)
# Import common functions
source $TOP_DIR/functions
# Import configuration
source $TOP_DIR/openrc
# Test as the admin user
# note this imports stackrc/functions, etc
. $TOP_DIR/openrc admin admin
# Import exercise configuration
source $TOP_DIR/exerciserc
# Test as the admin user
. $TOP_DIR/openrc admin admin
# If nova api is not enabled we exit with exitcode 55 so that
# the exercise is skipped
is_service_enabled n-api || exit 55
+6 -5
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
@@ -33,6 +33,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
source $TOP_DIR/openrc
@@ -64,17 +65,17 @@ VOL_NAME=${VOL_NAME:-ex-vol-bfv}
# Launching a server
# ==================
# List servers for tenant:
# List servers for project:
nova list
# Images
# ------
# List the images available
glance image-list
openstack image list
# Grab the id of the image to launch
IMAGE=$(glance image-list | egrep " $DEFAULT_IMAGE_NAME " | get_field 1)
IMAGE=$(openstack image list | egrep " $DEFAULT_IMAGE_NAME " | get_field 1)
die_if_not_set $LINENO IMAGE "Failure getting image $DEFAULT_IMAGE_NAME"
# Security Groups
@@ -182,7 +183,7 @@ IP=$(get_instance_ip $VM_UUID $PRIVATE_NETWORK_NAME)
die_if_not_set $LINENO IP "Failure retrieving IP address"
# Private IPs can be pinged in single node deployments
ping_check "$PRIVATE_NETWORK_NAME" $IP $BOOT_TIMEOUT
ping_check $IP $BOOT_TIMEOUT "$PRIVATE_NETWORK_NAME"
# Clean up
# --------
-74
View File
@@ -1,74 +0,0 @@
#!/usr/bin/env bash
# **bundle.sh**
# we will use the ``euca2ools`` cli tool that wraps the python boto
# library to test ec2 bundle upload compatibility
echo "*********************************************************************"
echo "Begin DevStack Exercise: $0"
echo "*********************************************************************"
# This script exits on an error so that errors don't compound and you see
# only the first error that occurred.
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.
set -o xtrace
# Settings
# ========
# Keep track of the current directory
EXERCISE_DIR=$(cd $(dirname "$0") && pwd)
TOP_DIR=$(cd $EXERCISE_DIR/..; pwd)
# Import common functions
source $TOP_DIR/functions
# Import EC2 configuration
source $TOP_DIR/eucarc
# Import exercise configuration
source $TOP_DIR/exerciserc
# Remove old certificates
rm -f $TOP_DIR/cacert.pem
rm -f $TOP_DIR/cert.pem
rm -f $TOP_DIR/pk.pem
# If nova api is not enabled we exit with exitcode 55 so that
# the exercise is skipped
is_service_enabled n-api || exit 55
# Get Certificates
nova x509-get-root-cert $TOP_DIR/cacert.pem
nova x509-create-cert $TOP_DIR/pk.pem $TOP_DIR/cert.pem
# Max time to wait for image to be registered
REGISTER_TIMEOUT=${REGISTER_TIMEOUT:-15}
BUCKET=testbucket
IMAGE=bundle.img
truncate -s 5M /tmp/$IMAGE
euca-bundle-image -i /tmp/$IMAGE || die $LINENO "Failure bundling image $IMAGE"
euca-upload-bundle --debug -b $BUCKET -m /tmp/$IMAGE.manifest.xml || die $LINENO "Failure uploading bundle $IMAGE to $BUCKET"
AMI=`euca-register $BUCKET/$IMAGE.manifest.xml | cut -f2`
die_if_not_set $LINENO AMI "Failure registering $BUCKET/$IMAGE"
# Wait for the image to become available
if ! timeout $REGISTER_TIMEOUT sh -c "while euca-describe-images | grep $AMI | grep -q available; do sleep 1; done"; then
die $LINENO "Image $AMI not available within $REGISTER_TIMEOUT seconds"
fi
# Clean up
euca-deregister $AMI || die $LINENO "Failure deregistering $AMI"
set +o xtrace
echo "*********************************************************************"
echo "SUCCESS: End DevStack Exercise: $0"
echo "*********************************************************************"
+9 -11
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
@@ -41,22 +41,21 @@ unset NOVA_PROJECT_ID
unset NOVA_REGION_NAME
unset NOVA_URL
unset NOVA_USERNAME
unset NOVA_VERSION
# Save the known variables for later
export x_TENANT_NAME=$OS_TENANT_NAME
export x_PROJECT_NAME=$OS_PROJECT_NAME
export x_USERNAME=$OS_USERNAME
export x_PASSWORD=$OS_PASSWORD
export x_AUTH_URL=$OS_AUTH_URL
# Unset the usual variables to force argument processing
unset OS_TENANT_NAME
unset OS_PROJECT_NAME
unset OS_USERNAME
unset OS_PASSWORD
unset OS_AUTH_URL
# Common authentication args
TENANT_ARG="--os-tenant-name=$x_TENANT_NAME"
PROJECT_ARG="--os-project-name=$x_PROJECT_NAME"
ARGS="--os-username=$x_USERNAME --os-password=$x_PASSWORD --os-auth-url=$x_AUTH_URL"
# Set global return
@@ -69,7 +68,7 @@ if [[ "$ENABLED_SERVICES" =~ "key" ]]; then
STATUS_KEYSTONE="Skipped"
else
echo -e "\nTest Keystone"
if keystone $TENANT_ARG $ARGS catalog --service identity; then
if openstack $PROJECT_ARG $ARGS catalog show identity; then
STATUS_KEYSTONE="Succeeded"
else
STATUS_KEYSTONE="Failed"
@@ -84,11 +83,10 @@ fi
if [[ "$ENABLED_SERVICES" =~ "n-api" ]]; then
if [[ "$SKIP_EXERCISES" =~ "n-api" ]]; then
STATUS_NOVA="Skipped"
STATUS_EC2="Skipped"
else
# Test OSAPI
echo -e "\nTest Nova"
if nova $TENANT_ARG $ARGS flavor-list; then
if nova $PROJECT_ARG $ARGS flavor-list; then
STATUS_NOVA="Succeeded"
else
STATUS_NOVA="Failed"
@@ -105,7 +103,7 @@ if [[ "$ENABLED_SERVICES" =~ "c-api" ]]; then
STATUS_CINDER="Skipped"
else
echo -e "\nTest Cinder"
if cinder $TENANT_ARG $ARGS list; then
if cinder $PROJECT_ARG $ARGS list; then
STATUS_CINDER="Succeeded"
else
STATUS_CINDER="Failed"
@@ -122,7 +120,7 @@ if [[ "$ENABLED_SERVICES" =~ "g-api" ]]; then
STATUS_GLANCE="Skipped"
else
echo -e "\nTest Glance"
if glance $TENANT_ARG $ARGS image-list; then
if openstack $PROJECT_ARG $ARGS image list; then
STATUS_GLANCE="Succeeded"
else
STATUS_GLANCE="Failed"
@@ -139,7 +137,7 @@ if [[ "$ENABLED_SERVICES" =~ "swift" || "$ENABLED_SERVICES" =~ "s-proxy" ]]; the
STATUS_SWIFT="Skipped"
else
echo -e "\nTest Swift"
if swift $TENANT_ARG $ARGS stat; then
if swift $PROJECT_ARG $ARGS stat; then
STATUS_SWIFT="Succeeded"
else
STATUS_SWIFT="Failed"
+3 -20
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
@@ -28,7 +28,7 @@ TOP_DIR=$(cd $EXERCISE_DIR/..; pwd)
source $TOP_DIR/functions
# Import configuration
source $TOP_DIR/openrc
source $TOP_DIR/openrc admin
# Import exercise configuration
source $TOP_DIR/exerciserc
@@ -41,7 +41,6 @@ unset NOVA_PROJECT_ID
unset NOVA_REGION_NAME
unset NOVA_URL
unset NOVA_USERNAME
unset NOVA_VERSION
for i in OS_TENANT_NAME OS_USERNAME OS_PASSWORD OS_AUTH_URL; do
is_set $i
@@ -79,7 +78,6 @@ fi
if [[ "$ENABLED_SERVICES" =~ "n-api" ]]; then
if [[ "$SKIP_EXERCISES" =~ "n-api" ]]; then
STATUS_NOVA="Skipped"
STATUS_EC2="Skipped"
else
# Test OSAPI
echo -e "\nTest Nova"
@@ -90,20 +88,6 @@ if [[ "$ENABLED_SERVICES" =~ "n-api" ]]; then
RETURN=1
fi
# Test EC2 API
echo -e "\nTest EC2"
# Get EC2 creds
source $TOP_DIR/eucarc
if euca-describe-images; then
STATUS_EC2="Succeeded"
else
STATUS_EC2="Failed"
RETURN=1
fi
# Clean up side effects
unset NOVA_VERSION
fi
fi
@@ -132,7 +116,7 @@ if [[ "$ENABLED_SERVICES" =~ "g-api" ]]; then
STATUS_GLANCE="Skipped"
else
echo -e "\nTest Glance"
if glance image-list; then
if openstack image list; then
STATUS_GLANCE="Succeeded"
else
STATUS_GLANCE="Failed"
@@ -174,7 +158,6 @@ function report {
echo -e "\n"
report "Keystone" $STATUS_KEYSTONE
report "Nova" $STATUS_NOVA
report "EC2" $STATUS_EC2
report "Cinder" $STATUS_CINDER
report "Glance" $STATUS_GLANCE
report "Swift" $STATUS_SWIFT
-192
View File
@@ -1,192 +0,0 @@
#!/usr/bin/env bash
# **euca.sh**
# we will use the ``euca2ools`` cli tool that wraps the python boto
# library to test ec2 compatibility
echo "*********************************************************************"
echo "Begin DevStack Exercise: $0"
echo "*********************************************************************"
# This script exits on an error so that errors don't compound and you see
# only the first error that occurred.
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.
set -o xtrace
# Settings
# ========
# Keep track of the current directory
EXERCISE_DIR=$(cd $(dirname "$0") && pwd)
TOP_DIR=$(cd $EXERCISE_DIR/..; pwd)
VOLUME_SIZE=1
ATTACH_DEVICE=/dev/vdc
# Import common functions
source $TOP_DIR/functions
# Import EC2 configuration
source $TOP_DIR/eucarc
# Import exercise configuration
source $TOP_DIR/exerciserc
# Import project functions
source $TOP_DIR/lib/neutron
# If nova api is not enabled we exit with exitcode 55 so that
# the exercise is skipped
is_service_enabled n-api || exit 55
# Instance type to create
DEFAULT_INSTANCE_TYPE=${DEFAULT_INSTANCE_TYPE:-m1.tiny}
# Boot this image, use first AMI image if unset
DEFAULT_IMAGE_NAME=${DEFAULT_IMAGE_NAME:-ami}
# Security group name
SECGROUP=${SECGROUP:-euca_secgroup}
# Launching a server
# ==================
# Find a machine image to boot
IMAGE=`euca-describe-images | grep machine | grep ${DEFAULT_IMAGE_NAME} | cut -f2 | head -n1`
die_if_not_set $LINENO IMAGE "Failure getting image $DEFAULT_IMAGE_NAME"
if is_service_enabled n-cell; then
# Cells does not support security groups, so force the use of "default"
SECGROUP="default"
echo "Using the default security group because of Cells."
else
# Add a secgroup
if ! euca-describe-groups | grep -q $SECGROUP; then
euca-add-group -d "$SECGROUP description" $SECGROUP
if ! timeout $ASSOCIATE_TIMEOUT sh -c "while ! euca-describe-groups | grep -q $SECGROUP; do sleep 1; done"; then
die $LINENO "Security group not created"
fi
fi
fi
# Launch it
INSTANCE=`euca-run-instances -g $SECGROUP -t $DEFAULT_INSTANCE_TYPE $IMAGE | grep INSTANCE | cut -f2`
die_if_not_set $LINENO INSTANCE "Failure launching instance"
# Assure it has booted within a reasonable time
if ! timeout $RUNNING_TIMEOUT sh -c "while ! euca-describe-instances $INSTANCE | grep -q running; do sleep 1; done"; then
die $LINENO "server didn't become active within $RUNNING_TIMEOUT seconds"
fi
# Volumes
# -------
if is_service_enabled c-vol && ! is_service_enabled n-cell && [ "$VIRT_DRIVER" != "ironic" ]; then
VOLUME_ZONE=`euca-describe-availability-zones | head -n1 | cut -f2`
die_if_not_set $LINENO VOLUME_ZONE "Failure to find zone for volume"
VOLUME=`euca-create-volume -s 1 -z $VOLUME_ZONE | cut -f2`
die_if_not_set $LINENO VOLUME "Failure to create volume"
# Test that volume has been created
VOLUME=`euca-describe-volumes $VOLUME | cut -f2`
die_if_not_set $LINENO VOLUME "Failure to get volume"
# Test volume has become available
if ! timeout $RUNNING_TIMEOUT sh -c "while ! euca-describe-volumes $VOLUME | grep -q available; do sleep 1; done"; then
die $LINENO "volume didn't become available within $RUNNING_TIMEOUT seconds"
fi
# Attach volume to an instance
euca-attach-volume -i $INSTANCE -d $ATTACH_DEVICE $VOLUME || \
die $LINENO "Failure attaching volume $VOLUME to $INSTANCE"
if ! timeout $ACTIVE_TIMEOUT sh -c "while ! euca-describe-volumes $VOLUME | grep -A 1 in-use | grep -q attach; do sleep 1; done"; then
die $LINENO "Could not attach $VOLUME to $INSTANCE"
fi
# Detach volume from an instance
euca-detach-volume $VOLUME || \
die $LINENO "Failure detaching volume $VOLUME to $INSTANCE"
if ! timeout $ACTIVE_TIMEOUT sh -c "while ! euca-describe-volumes $VOLUME | grep -q available; do sleep 1; done"; then
die $LINENO "Could not detach $VOLUME to $INSTANCE"
fi
# Remove volume
euca-delete-volume $VOLUME || \
die $LINENO "Failure to delete volume"
if ! timeout $ACTIVE_TIMEOUT sh -c "while euca-describe-volumes | grep $VOLUME; do sleep 1; done"; then
die $LINENO "Could not delete $VOLUME"
fi
else
echo "Volume Tests Skipped"
fi
if is_service_enabled n-cell; then
echo "Floating IP Tests Skipped because of Cells."
else
# Allocate floating address
FLOATING_IP=`euca-allocate-address | cut -f2`
die_if_not_set $LINENO FLOATING_IP "Failure allocating floating IP"
# describe all instances at this moment
euca-describe-instances
# Associate floating address
euca-associate-address -i $INSTANCE $FLOATING_IP || \
die $LINENO "Failure associating address $FLOATING_IP to $INSTANCE"
# Authorize pinging
euca-authorize -P icmp -s 0.0.0.0/0 -t -1:-1 $SECGROUP || \
die $LINENO "Failure authorizing rule in $SECGROUP"
# Test we can ping our floating ip within ASSOCIATE_TIMEOUT seconds
ping_check "$PUBLIC_NETWORK_NAME" $FLOATING_IP $ASSOCIATE_TIMEOUT
# Revoke pinging
euca-revoke -P icmp -s 0.0.0.0/0 -t -1:-1 $SECGROUP || \
die $LINENO "Failure revoking rule in $SECGROUP"
# Release floating address
euca-disassociate-address $FLOATING_IP || \
die $LINENO "Failure disassociating address $FLOATING_IP"
# Wait just a tick for everything above to complete so release doesn't fail
if ! timeout $ASSOCIATE_TIMEOUT sh -c "while euca-describe-addresses | grep $INSTANCE | grep -q $FLOATING_IP; do sleep 1; done"; then
die $LINENO "Floating ip $FLOATING_IP not disassociated within $ASSOCIATE_TIMEOUT seconds"
fi
# Release floating address
euca-release-address $FLOATING_IP || \
die $LINENO "Failure releasing address $FLOATING_IP"
# Wait just a tick for everything above to complete so terminate doesn't fail
if ! timeout $ASSOCIATE_TIMEOUT sh -c "while euca-describe-addresses | grep -q $FLOATING_IP; do sleep 1; done"; then
die $LINENO "Floating ip $FLOATING_IP not released within $ASSOCIATE_TIMEOUT seconds"
fi
fi
# Terminate instance
euca-terminate-instances $INSTANCE || \
die $LINENO "Failure terminating instance $INSTANCE"
# Assure it has terminated within a reasonable time. The behaviour of this
# case changed with bug/836978. Requesting the status of an invalid instance
# will now return an error message including the instance id, so we need to
# filter that out.
if ! timeout $TERMINATE_TIMEOUT sh -c "while euca-describe-instances $INSTANCE | grep -ve '\(InstanceNotFound\|InvalidInstanceID\.NotFound\)' | grep -q $INSTANCE; do sleep 1; done"; then
die $LINENO "server didn't terminate within $TERMINATE_TIMEOUT seconds"
fi
if [[ "$SECGROUP" = "default" ]] ; then
echo "Skipping deleting default security group"
else
# Delete secgroup
euca-delete-group $SECGROUP || die $LINENO "Failure deleting security group $SECGROUP"
fi
set +o xtrace
echo "*********************************************************************"
echo "SUCCESS: End DevStack Exercise: $0"
echo "*********************************************************************"
+7 -6
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/neutron
source $TOP_DIR/lib/neutron-legacy
# Import exercise configuration
source $TOP_DIR/exerciserc
@@ -71,10 +72,10 @@ nova list
# ------
# List the images available
glance image-list
openstack image list
# Grab the id of the image to launch
IMAGE=$(glance image-list | egrep " $DEFAULT_IMAGE_NAME " | get_field 1)
IMAGE=$(openstack image list | egrep " $DEFAULT_IMAGE_NAME " | get_field 1)
die_if_not_set $LINENO IMAGE "Failure getting image $DEFAULT_IMAGE_NAME"
# Security Groups
@@ -139,7 +140,7 @@ IP=$(get_instance_ip $VM_UUID $PRIVATE_NETWORK_NAME)
die_if_not_set $LINENO IP "Failure retrieving IP address"
# Private IPs can be pinged in single node deployments
ping_check "$PRIVATE_NETWORK_NAME" $IP $BOOT_TIMEOUT
ping_check $IP $BOOT_TIMEOUT "$PRIVATE_NETWORK_NAME"
# Floating IPs
# ------------
@@ -158,7 +159,7 @@ nova add-floating-ip $VM_UUID $FLOATING_IP || \
die $LINENO "Failure adding floating IP $FLOATING_IP to $VM_NAME"
# Test we can ping our floating IP within ASSOCIATE_TIMEOUT seconds
ping_check "$PUBLIC_NETWORK_NAME" $FLOATING_IP $ASSOCIATE_TIMEOUT
ping_check $FLOATING_IP $ASSOCIATE_TIMEOUT "$PUBLIC_NETWORK_NAME"
if ! is_service_enabled neutron; then
# Allocate an IP from second floating pool
@@ -182,7 +183,7 @@ fi
# FIXME (anthony): make xs support security groups
if [ "$VIRT_DRIVER" != "ironic" -a "$VIRT_DRIVER" != "xenserver" -a "$VIRT_DRIVER" != "openvz" ]; then
# Test we can aren't able to ping our floating ip within ASSOCIATE_TIMEOUT seconds
ping_check "$PUBLIC_NETWORK_NAME" $FLOATING_IP $ASSOCIATE_TIMEOUT Fail
ping_check $FLOATING_IP $ASSOCIATE_TIMEOUT "$PUBLIC_NETWORK_NAME" Fail
fi
# Clean up
-45
View File
@@ -1,45 +0,0 @@
#!/usr/bin/env bash
# **horizon.sh**
# Sanity check that horizon started if enabled
echo "*********************************************************************"
echo "Begin DevStack Exercise: $0"
echo "*********************************************************************"
# This script exits on an error so that errors don't compound and you see
# only the first error that occurred.
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.
set -o xtrace
# Settings
# ========
# Keep track of the current directory
EXERCISE_DIR=$(cd $(dirname "$0") && pwd)
TOP_DIR=$(cd $EXERCISE_DIR/..; pwd)
# Import common functions
source $TOP_DIR/functions
# Import configuration
source $TOP_DIR/openrc
# Import exercise configuration
source $TOP_DIR/exerciserc
is_service_enabled horizon || exit 55
# can we get the front page
curl http://$SERVICE_HOST 2>/dev/null | grep -q '<h3>Log In</h3>' || die $LINENO "Horizon front page not functioning!"
set +o xtrace
echo "*********************************************************************"
echo "SUCCESS: End DevStack Exercise: $0"
echo "*********************************************************************"
-43
View File
@@ -1,43 +0,0 @@
#!/usr/bin/env bash
# **marconi.sh**
# Sanity check that Marconi started if enabled
echo "*********************************************************************"
echo "Begin DevStack Exercise: $0"
echo "*********************************************************************"
# This script exits on an error so that errors don't compound and you see
# only the first error that occurred.
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.
set -o xtrace
# Settings
# ========
# Keep track of the current directory
EXERCISE_DIR=$(cd $(dirname "$0") && pwd)
TOP_DIR=$(cd $EXERCISE_DIR/..; pwd)
# Import common functions
source $TOP_DIR/functions
# Import configuration
source $TOP_DIR/openrc
# Import exercise configuration
source $TOP_DIR/exerciserc
is_service_enabled marconi-server || exit 55
curl http://$SERVICE_HOST:8888/v1/ 2>/dev/null | grep -q 'queue_name' || die $LINENO "Marconi API not functioning!"
set +o xtrace
echo "*********************************************************************"
echo "SUCCESS: End DevStack Exercise: $0"
echo "*********************************************************************"
+104 -91
View File
@@ -19,20 +19,8 @@ echo "*********************************************************************"
set -o errtrace
trap failed ERR
function failed {
local r=$?
set +o errtrace
set +o xtrace
echo "Failed to execute"
echo "Starting cleanup..."
delete_all
echo "Finished cleanup"
exit $r
}
# 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
@@ -50,6 +38,7 @@ 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.
neutron_plugin_check_adv_test_requirements || exit 55
@@ -60,9 +49,9 @@ source $TOP_DIR/exerciserc
# Neutron Settings
# ----------------
TENANTS="DEMO1"
PROJECTS="DEMO1"
# TODO (nati)_Test public network
#TENANTS="DEMO1,DEMO2"
#PROJECTS="DEMO1,DEMO2"
PUBLIC_NAME="admin"
DEMO1_NAME="demo1"
@@ -103,72 +92,78 @@ DEMO2_ROUTER1_NET="demo2-net1"
# Various functions
# -----------------
function foreach_tenant {
function foreach_project {
COMMAND=$1
for TENANT in ${TENANTS//,/ };do
eval ${COMMAND//%TENANT%/$TENANT}
for PROJECT in ${PROJECTS//,/ };do
eval ${COMMAND//%PROJECT%/$PROJECT}
done
}
function foreach_tenant_resource {
function foreach_project_resource {
COMMAND=$1
RESOURCE=$2
for TENANT in ${TENANTS//,/ };do
eval 'NUM=$'"${TENANT}_NUM_$RESOURCE"
for PROJECT in ${PROJECTS//,/ };do
eval 'NUM=$'"${PROJECT}_NUM_$RESOURCE"
for i in `seq $NUM`;do
local COMMAND_LOCAL=${COMMAND//%TENANT%/$TENANT}
local COMMAND_LOCAL=${COMMAND//%PROJECT%/$PROJECT}
COMMAND_LOCAL=${COMMAND_LOCAL//%NUM%/$i}
eval $COMMAND_LOCAL
done
done
}
function foreach_tenant_vm {
function foreach_project_vm {
COMMAND=$1
foreach_tenant_resource "$COMMAND" 'VM'
foreach_project_resource "$COMMAND" 'VM'
}
function foreach_tenant_net {
function foreach_project_net {
COMMAND=$1
foreach_tenant_resource "$COMMAND" 'NET'
foreach_project_resource "$COMMAND" 'NET'
}
function get_image_id {
local IMAGE_ID=$(glance image-list | egrep " $DEFAULT_IMAGE_NAME " | get_field 1)
local IMAGE_ID
IMAGE_ID=$(openstack image list | egrep " $DEFAULT_IMAGE_NAME " | get_field 1)
die_if_not_set $LINENO IMAGE_ID "Failure retrieving IMAGE_ID"
echo "$IMAGE_ID"
}
function get_tenant_id {
local TENANT_NAME=$1
local TENANT_ID=`openstack project list | grep " $TENANT_NAME " | head -n 1 | get_field 1`
die_if_not_set $LINENO TENANT_ID "Failure retrieving TENANT_ID for $TENANT_NAME"
echo "$TENANT_ID"
function get_project_id {
local PROJECT_NAME=$1
local PROJECT_ID
PROJECT_ID=`openstack project list | grep " $PROJECT_NAME " | head -n 1 | get_field 1`
die_if_not_set $LINENO PROJECT_ID "Failure retrieving PROJECT_ID for $PROJECT_NAME"
echo "$PROJECT_ID"
}
function get_user_id {
local USER_NAME=$1
local USER_ID=`openstack user list | grep $USER_NAME | awk '{print $2}'`
local USER_ID
USER_ID=`openstack user list | grep $USER_NAME | awk '{print $2}'`
die_if_not_set $LINENO USER_ID "Failure retrieving USER_ID for $USER_NAME"
echo "$USER_ID"
}
function get_role_id {
local ROLE_NAME=$1
local ROLE_ID=`openstack role list | grep $ROLE_NAME | awk '{print $2}'`
local ROLE_ID
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"
}
function get_network_id {
local NETWORK_NAME="$1"
local NETWORK_ID=`neutron net-list -F id -- --name=$NETWORK_NAME | awk "NR==4" | awk '{print $2}'`
local NETWORK_ID
NETWORK_ID=`openstack network show -f value -c id $NETWORK_NAME`
echo $NETWORK_ID
}
function get_flavor_id {
local INSTANCE_TYPE=$1
local FLAVOR_ID=`nova flavor-list | grep $INSTANCE_TYPE | awk '{print $2}'`
local FLAVOR_ID
FLAVOR_ID=`nova flavor-list | grep $INSTANCE_TYPE | awk '{print $2}'`
die_if_not_set $LINENO FLAVOR_ID "Failure retrieving FLAVOR_ID for $INSTANCE_TYPE"
echo "$FLAVOR_ID"
}
@@ -183,69 +178,73 @@ function confirm_server_active {
function neutron_debug_admin {
local os_username=$OS_USERNAME
local os_tenant_id=$OS_TENANT_ID
local os_project_id=$OS_PROJECT_ID
source $TOP_DIR/openrc admin admin
neutron-debug $@
source $TOP_DIR/openrc $os_username $os_tenant_id
source $TOP_DIR/openrc $os_username $os_project_id
}
function add_tenant {
function add_project {
openstack project create $1
openstack user create $2 --password ${ADMIN_PASSWORD} --project $1
openstack role add Member --project $1 --user $2
}
function remove_tenant {
local TENANT=$1
local TENANT_ID=$(get_tenant_id $TENANT)
openstack project delete $TENANT_ID
function remove_project {
local PROJECT=$1
local PROJECT_ID
PROJECT_ID=$(get_project_id $PROJECT)
openstack project delete $PROJECT_ID
}
function remove_user {
local USER=$1
local USER_ID=$(get_user_id $USER)
local USER_ID
USER_ID=$(get_user_id $USER)
openstack user delete $USER_ID
}
function create_tenants {
function create_projects {
source $TOP_DIR/openrc admin admin
add_tenant demo1 demo1 demo1
add_tenant demo2 demo2 demo2
add_project demo1 demo1 demo1
add_project demo2 demo2 demo2
source $TOP_DIR/openrc demo demo
}
function delete_tenants_and_users {
function delete_projects_and_users {
source $TOP_DIR/openrc admin admin
remove_user demo1
remove_tenant demo1
remove_project demo1
remove_user demo2
remove_tenant demo2
echo "removed all tenants"
remove_project demo2
echo "removed all projects"
source $TOP_DIR/openrc demo demo
}
function create_network {
local TENANT=$1
local PROJECT=$1
local GATEWAY=$2
local CIDR=$3
local NUM=$4
local EXTRA=$5
local NET_NAME="${TENANT}-net$NUM"
local ROUTER_NAME="${TENANT}-router${NUM}"
local NET_NAME="${PROJECT}-net$NUM"
local ROUTER_NAME="${PROJECT}-router${NUM}"
source $TOP_DIR/openrc admin admin
local TENANT_ID=$(get_tenant_id $TENANT)
source $TOP_DIR/openrc $TENANT $TENANT
local NET_ID=$(neutron net-create --tenant-id $TENANT_ID $NET_NAME $EXTRA| grep ' id ' | awk '{print $4}' )
die_if_not_set $LINENO NET_ID "Failure creating NET_ID for $TENANT_ID $NET_NAME $EXTRA"
neutron subnet-create --ip-version 4 --tenant-id $TENANT_ID --gateway $GATEWAY $NET_ID $CIDR
local PROJECT_ID
PROJECT_ID=$(get_project_id $PROJECT)
source $TOP_DIR/openrc $PROJECT $PROJECT
local NET_ID
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"
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
}
function create_networks {
foreach_tenant_net 'create_network ${%TENANT%_NAME} ${%TENANT%_NET%NUM%_GATEWAY} ${%TENANT%_NET%NUM%_CIDR} %NUM% ${%TENANT%_NET%NUM%_EXTRA}'
foreach_project_net 'create_network ${%PROJECT%_NAME} ${%PROJECT%_NET%NUM%_GATEWAY} ${%PROJECT%_NET%NUM%_CIDR} %NUM% ${%PROJECT%_NET%NUM%_EXTRA}'
#TODO(nati) test security group function
# allow ICMP for both tenant's security groups
# allow ICMP for both project's security groups
#source $TOP_DIR/openrc demo1 demo1
#$NOVA secgroup-add-rule default icmp -1 -1 0.0.0.0/0
#source $TOP_DIR/openrc demo2 demo2
@@ -253,26 +252,27 @@ function create_networks {
}
function create_vm {
local TENANT=$1
local PROJECT=$1
local NUM=$2
local NET_NAMES=$3
source $TOP_DIR/openrc $TENANT $TENANT
source $TOP_DIR/openrc $PROJECT $PROJECT
local NIC=""
for NET_NAME in ${NET_NAMES//,/ };do
NIC="$NIC --nic net-id="`get_network_id $NET_NAME`
done
#TODO (nati) Add multi-nic test
#TODO (nati) Add public-net test
local VM_UUID=`nova boot --flavor $(get_flavor_id m1.tiny) \
local VM_UUID
VM_UUID=`nova boot --flavor $(get_flavor_id m1.tiny) \
--image $(get_image_id) \
$NIC \
$TENANT-server$NUM | grep ' id ' | cut -d"|" -f3 | sed 's/ //g'`
die_if_not_set $LINENO VM_UUID "Failure launching $TENANT-server$NUM"
$PROJECT-server$NUM | grep ' id ' | cut -d"|" -f3 | sed 's/ //g'`
die_if_not_set $LINENO VM_UUID "Failure launching $PROJECT-server$NUM"
confirm_server_active $VM_UUID
}
function create_vms {
foreach_tenant_vm 'create_vm ${%TENANT%_NAME} %NUM% ${%TENANT%_VM%NUM%_NET}'
foreach_project_vm 'create_vm ${%PROJECT%_NAME} %NUM% ${%PROJECT%_VM%NUM%_NET}'
}
function ping_ip {
@@ -281,15 +281,15 @@ function ping_ip {
local VM_NAME=$1
local NET_NAME=$2
IP=$(get_instance_ip $VM_NAME $NET_NAME)
ping_check $NET_NAME $IP $BOOT_TIMEOUT
ping_check $IP $BOOT_TIMEOUT $NET_NAME
}
function check_vm {
local TENANT=$1
local PROJECT=$1
local NUM=$2
local VM_NAME="$TENANT-server$NUM"
local VM_NAME="$PROJECT-server$NUM"
local NET_NAME=$3
source $TOP_DIR/openrc $TENANT $TENANT
source $TOP_DIR/openrc $PROJECT $PROJECT
ping_ip $VM_NAME $NET_NAME
# TODO (nati) test ssh connection
# TODO (nati) test inter connection between vm
@@ -298,42 +298,43 @@ function check_vm {
}
function check_vms {
foreach_tenant_vm 'check_vm ${%TENANT%_NAME} %NUM% ${%TENANT%_VM%NUM%_NET}'
foreach_project_vm 'check_vm ${%PROJECT%_NAME} %NUM% ${%PROJECT%_VM%NUM%_NET}'
}
function shutdown_vm {
local TENANT=$1
local PROJECT=$1
local NUM=$2
source $TOP_DIR/openrc $TENANT $TENANT
VM_NAME=${TENANT}-server$NUM
source $TOP_DIR/openrc $PROJECT $PROJECT
VM_NAME=${PROJECT}-server$NUM
nova delete $VM_NAME
}
function shutdown_vms {
foreach_tenant_vm 'shutdown_vm ${%TENANT%_NAME} %NUM%'
foreach_project_vm 'shutdown_vm ${%PROJECT%_NAME} %NUM%'
if ! timeout $TERMINATE_TIMEOUT sh -c "while nova list | grep -q ACTIVE; do sleep 1; done"; then
die $LINENO "Some VMs failed to shutdown"
fi
}
function delete_network {
local TENANT=$1
local PROJECT=$1
local NUM=$2
local NET_NAME="${TENANT}-net$NUM"
local NET_NAME="${PROJECT}-net$NUM"
source $TOP_DIR/openrc admin admin
local TENANT_ID=$(get_tenant_id $TENANT)
local PROJECT_ID
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
}
function delete_networks {
foreach_tenant_net 'delete_network ${%TENANT%_NAME} %NUM%'
foreach_project_net 'delete_network ${%PROJECT%_NAME} %NUM%'
# TODO(nati) add secuirty group check after it is implemented
# source $TOP_DIR/openrc demo1 demo1
# nova secgroup-delete-rule default icmp -1 -1 0.0.0.0/0
@@ -342,7 +343,7 @@ function delete_networks {
}
function create_all {
create_tenants
create_projects
create_networks
create_vms
}
@@ -350,7 +351,7 @@ function create_all {
function delete_all {
shutdown_vms
delete_networks
delete_tenants_and_users
delete_projects_and_users
}
function all {
@@ -366,8 +367,8 @@ function test_functions {
IMAGE=$(get_image_id)
echo $IMAGE
TENANT_ID=$(get_tenant_id demo)
echo $TENANT_ID
PROJECT_ID=$(get_project_id demo)
echo $PROJECT_ID
FLAVOR_ID=$(get_flavor_id m1.tiny)
echo $FLAVOR_ID
@@ -382,11 +383,11 @@ function test_functions {
function usage {
echo "$0: [-h]"
echo " -h, --help Display help message"
echo " -t, --tenant Create tenants"
echo " -t, --project Create projects"
echo " -n, --net Create networks"
echo " -v, --vm Create vms"
echo " -c, --check Check connection"
echo " -x, --delete-tenants Delete tenants"
echo " -x, --delete-projects Delete projects"
echo " -y, --delete-nets Delete networks"
echo " -z, --delete-vms Delete vms"
echo " -T, --test Test functions"
@@ -412,7 +413,7 @@ function main {
-v | --vm ) create_vms
exit
;;
-t | --tenant ) create_tenants
-t | --project ) create_projects
exit
;;
-c | --check ) check_vms
@@ -421,7 +422,7 @@ function main {
-T | --test ) test_functions
exit
;;
-x | --delete-tenants ) delete_tenants_and_users
-x | --delete-projects ) delete_projects_and_users
exit
;;
-y | --delete-nets ) delete_networks
@@ -441,6 +442,18 @@ function main {
fi
}
trap failed ERR
function failed {
local r=$?
set +o errtrace
set +o xtrace
echo "Failed to execute"
echo "Starting cleanup..."
delete_all
echo "Finished cleanup"
exit $r
}
# Kick off script
# ---------------
-43
View File
@@ -1,43 +0,0 @@
#!/usr/bin/env bash
# **sahara.sh**
# Sanity check that Sahara started if enabled
echo "*********************************************************************"
echo "Begin DevStack Exercise: $0"
echo "*********************************************************************"
# This script exits on an error so that errors don't compound and you see
# only the first error that occurred.
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.
set -o xtrace
# Settings
# ========
# Keep track of the current directory
EXERCISE_DIR=$(cd $(dirname "$0") && pwd)
TOP_DIR=$(cd $EXERCISE_DIR/..; pwd)
# Import common functions
source $TOP_DIR/functions
# Import configuration
source $TOP_DIR/openrc
# Import exercise configuration
source $TOP_DIR/exerciserc
is_service_enabled sahara || exit 55
curl http://$SERVICE_HOST:8386/ 2>/dev/null | grep -q 'Auth' || die $LINENO "Sahara API isn't functioning!"
set +o xtrace
echo "*********************************************************************"
echo "SUCCESS: End DevStack Exercise: $0"
echo "*********************************************************************"
+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
+14 -11
View File
@@ -2,7 +2,7 @@
# **swift.sh**
# Test swift via the ``swift`` command line from ``python-swiftclient``
# Test swift via the ``python-openstackclient`` command line
echo "*********************************************************************"
echo "Begin DevStack Exercise: $0"
@@ -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
@@ -39,26 +39,29 @@ is_service_enabled s-proxy || exit 55
# Container name
CONTAINER=ex-swift
OBJECT=/etc/issue
# Testing Swift
# =============
# Check if we have to swift via keystone
swift stat || die $LINENO "Failure geting status"
openstack object store account show || die $LINENO "Failure getting account status"
# We start by creating a test container
swift post $CONTAINER || die $LINENO "Failure creating container $CONTAINER"
openstack container create $CONTAINER || die $LINENO "Failure creating container $CONTAINER"
# add some files into it.
swift upload $CONTAINER /etc/issue || die $LINENO "Failure uploading file to container $CONTAINER"
# add a file into it.
openstack object create $CONTAINER $OBJECT || die $LINENO "Failure uploading file to container $CONTAINER"
# list them
swift list $CONTAINER || die $LINENO "Failure listing contents of container $CONTAINER"
# list the objects
openstack object list $CONTAINER || die $LINENO "Failure listing contents of container $CONTAINER"
# And we may want to delete them now that we have tested that
# everything works.
swift delete $CONTAINER || die $LINENO "Failure deleting container $CONTAINER"
# delete the object first
openstack object delete $CONTAINER $OBJECT || die $LINENO "Failure deleting object $OBJECT in container $CONTAINER"
# delete the container
openstack container delete $CONTAINER || die $LINENO "Failure deleting container $CONTAINER"
set +o xtrace
echo "*********************************************************************"
-45
View File
@@ -1,45 +0,0 @@
#!/usr/bin/env bash
# **trove.sh**
# Sanity check that trove started if enabled
echo "*********************************************************************"
echo "Begin DevStack Exercise: $0"
echo "*********************************************************************"
# This script exits on an error so that errors don't compound and you see
# only the first error that occurred.
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.
set -o xtrace
# Settings
# ========
# Keep track of the current directory
EXERCISE_DIR=$(cd $(dirname "$0") && pwd)
TOP_DIR=$(cd $EXERCISE_DIR/..; pwd)
# Import common functions
source $TOP_DIR/functions
# Import configuration
source $TOP_DIR/openrc
# Import exercise configuration
source $TOP_DIR/exerciserc
is_service_enabled trove || exit 55
# can we get a list versions
curl http://$SERVICE_HOST:8779/ 2>/dev/null | grep -q 'versions' || die $LINENO "Trove API not functioning!"
set +o xtrace
echo "*********************************************************************"
echo "SUCCESS: End DevStack Exercise: $0"
echo "*********************************************************************"
+5 -4
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
@@ -33,6 +33,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
source $TOP_DIR/exerciserc
@@ -68,10 +69,10 @@ nova list
# ------
# List the images available
glance image-list
openstack image list
# Grab the id of the image to launch
IMAGE=$(glance image-list | egrep " $DEFAULT_IMAGE_NAME " | get_field 1)
IMAGE=$(openstack image list | egrep " $DEFAULT_IMAGE_NAME " | get_field 1)
die_if_not_set $LINENO IMAGE "Failure getting image $DEFAULT_IMAGE_NAME"
# Security Groups
@@ -143,7 +144,7 @@ IP=$(get_instance_ip $VM_UUID $PRIVATE_NETWORK_NAME)
die_if_not_set $LINENO IP "Failure retrieving IP address"
# Private IPs can be pinged in single node deployments
ping_check "$PRIVATE_NETWORK_NAME" $IP $BOOT_TIMEOUT
ping_check $IP $BOOT_TIMEOUT "$PRIVATE_NETWORK_NAME"
# Volumes
# -------
-43
View File
@@ -1,43 +0,0 @@
# ironic.sh - Devstack extras script to install ironic
if is_service_enabled ir-api ir-cond; then
if [[ "$1" == "source" ]]; then
# Initial source
source $TOP_DIR/lib/ironic
elif [[ "$1" == "stack" && "$2" == "install" ]]; then
echo_summary "Installing Ironic"
install_ironic
install_ironicclient
cleanup_ironic
elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
echo_summary "Configuring Ironic"
configure_ironic
if is_service_enabled key; then
create_ironic_accounts
fi
elif [[ "$1" == "stack" && "$2" == "extra" ]]; then
# Initialize ironic
init_ironic
# Start the ironic API and ironic taskmgr components
echo_summary "Starting Ironic"
start_ironic
if [[ "$IRONIC_BAREMETAL_BASIC_OPS" = "True" ]]; then
prepare_baremetal_basic_ops
fi
fi
if [[ "$1" == "unstack" ]]; then
stop_ironic
if [[ "$IRONIC_BAREMETAL_BASIC_OPS" = "True" ]]; then
cleanup_baremetal_basic_ops
fi
fi
if [[ "$1" == "clean" ]]; then
cleanup_ironic
fi
fi
-31
View File
@@ -1,31 +0,0 @@
# gantt.sh - Devstack extras script to install Gantt
if is_service_enabled n-sch; then
disable_service gantt
fi
if is_service_enabled gantt; then
if [[ "$1" == "source" ]]; then
# Initial source
source $TOP_DIR/lib/gantt
elif [[ "$1" == "stack" && "$2" == "install" ]]; then
echo_summary "Installing Gantt"
install_gantt
cleanup_gantt
elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
echo_summary "Configuring Gantt"
configure_gantt
elif [[ "$1" == "stack" && "$2" == "extra" ]]; then
# Initialize gantt
init_gantt
# Start gantt
echo_summary "Starting Gantt"
start_gantt
fi
if [[ "$1" == "unstack" ]]; then
stop_gantt
fi
fi
-29
View File
@@ -1,29 +0,0 @@
# marconi.sh - Devstack extras script to install Marconi
if is_service_enabled marconi-server; then
if [[ "$1" == "source" ]]; then
# Initial source
source $TOP_DIR/lib/marconi
elif [[ "$1" == "stack" && "$2" == "install" ]]; then
echo_summary "Installing Marconi"
install_marconiclient
install_marconi
elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
echo_summary "Configuring Marconi"
configure_marconi
configure_marconiclient
if is_service_enabled key; then
create_marconi_accounts
fi
elif [[ "$1" == "stack" && "$2" == "extra" ]]; then
echo_summary "Initializing Marconi"
init_marconi
start_marconi
fi
if [[ "$1" == "unstack" ]]; then
stop_marconi
fi
fi
-37
View File
@@ -1,37 +0,0 @@
# sahara.sh - DevStack extras script to install Sahara
if is_service_enabled sahara; then
if [[ "$1" == "source" ]]; then
# Initial source
source $TOP_DIR/lib/sahara
source $TOP_DIR/lib/sahara-dashboard
elif [[ "$1" == "stack" && "$2" == "install" ]]; then
echo_summary "Installing sahara"
install_sahara
cleanup_sahara
if is_service_enabled horizon; then
install_sahara_dashboard
fi
elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
echo_summary "Configuring sahara"
configure_sahara
create_sahara_accounts
if is_service_enabled horizon; then
configure_sahara_dashboard
fi
elif [[ "$1" == "stack" && "$2" == "extra" ]]; then
echo_summary "Initializing sahara"
start_sahara
fi
if [[ "$1" == "unstack" ]]; then
stop_sahara
if is_service_enabled horizon; then
cleanup_sahara_dashboard
fi
fi
if [[ "$1" == "clean" ]]; then
cleanup_sahara
fi
fi
-33
View File
@@ -1,33 +0,0 @@
# trove.sh - Devstack extras script to install Trove
if is_service_enabled trove; then
if [[ "$1" == "source" ]]; then
# Initial source
source $TOP_DIR/lib/trove
elif [[ "$1" == "stack" && "$2" == "install" ]]; then
echo_summary "Installing Trove"
install_trove
install_troveclient
cleanup_trove
elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
echo_summary "Configuring Trove"
configure_troveclient
configure_trove
if is_service_enabled key; then
create_trove_accounts
fi
elif [[ "$1" == "stack" && "$2" == "extra" ]]; then
# Initialize trove
init_trove
# Start the trove API and trove taskmgr components
echo_summary "Starting Trove"
start_trove
fi
if [[ "$1" == "unstack" ]]; then
stop_trove
fi
fi
-70
View File
@@ -1,70 +0,0 @@
# opendaylight.sh - DevStack extras script
if is_service_enabled odl-server odl-compute; then
# Initial source
[[ "$1" == "source" ]] && source $TOP_DIR/lib/opendaylight
fi
if is_service_enabled odl-server; then
if [[ "$1" == "source" ]]; then
# no-op
:
elif [[ "$1" == "stack" && "$2" == "install" ]]; then
install_opendaylight
configure_opendaylight
init_opendaylight
elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
configure_ml2_odl
# This has to start before Neutron
start_opendaylight
elif [[ "$1" == "stack" && "$2" == "post-extra" ]]; then
# no-op
:
fi
if [[ "$1" == "unstack" ]]; then
stop_opendaylight
cleanup_opendaylight
fi
if [[ "$1" == "clean" ]]; then
# no-op
:
fi
fi
if is_service_enabled odl-compute; then
if [[ "$1" == "source" ]]; then
# no-op
:
elif [[ "$1" == "stack" && "$2" == "install" ]]; then
install_opendaylight-compute
elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
create_nova_conf_neutron
elif [[ "$1" == "stack" && "$2" == "extra" ]]; then
echo_summary "Initializing OpenDaylight"
ODL_LOCAL_IP=${ODL_LOCAL_IP:-$HOST_IP}
ODL_MGR_PORT=${ODL_MGR_PORT:-6640}
read ovstbl <<< $(sudo ovs-vsctl get Open_vSwitch . _uuid)
sudo ovs-vsctl set-manager tcp:$ODL_MGR_IP:$ODL_MGR_PORT
sudo ovs-vsctl set Open_vSwitch $ovstbl other_config={"local_ip"="$ODL_LOCAL_IP"}
elif [[ "$1" == "stack" && "$2" == "post-extra" ]]; then
# no-op
:
fi
if [[ "$1" == "unstack" ]]; then
sudo ovs-vsctl del-manager
BRIDGES=$(sudo ovs-vsctl list-br)
for bridge in $BRIDGES ; do
sudo ovs-vsctl del-controller $bridge
done
stop_opendaylight-compute
fi
if [[ "$1" == "clean" ]]; then
# no-op
:
fi
fi
+8 -5
View File
@@ -9,14 +9,18 @@ if is_service_enabled tempest; then
install_tempest
elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
# Tempest config must come after layer 2 services are running
create_tempest_accounts
:
elif [[ "$1" == "stack" && "$2" == "extra" ]]; then
echo_summary "Initializing Tempest"
configure_tempest
init_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
@@ -29,4 +33,3 @@ if is_service_enabled tempest; then
:
fi
fi
+22 -4
View File
@@ -14,17 +14,35 @@ The scripts are sourced at the beginning of each script that calls them. The
entire `stack.sh` variable space is available. The scripts are
sourced with one or more arguments, the first of which defines the hook phase:
source | stack | unstack | clean
override_defaults | source | stack | unstack | clean
source: always called first in any of the scripts, used to set the
initial defaults in a lib/* script or similar
override_defaults: always called first in any of the scripts, used to
override defaults (if need be) that are otherwise set in lib/* scripts
source: called by stack.sh. Used to set the initial defaults in a lib/*
script or similar
stack: called by stack.sh. There are four possible values for
the second arg to distinguish the phase stack.sh is in:
arg 2: install | post-config | extra | post-extra
arg 2: pre-install | install | post-config | extra
unstack: called by unstack.sh
clean: called by clean.sh. Remember, clean.sh also calls unstack.sh
so that work need not be repeated.
The `stack` phase sub-phases are called from `stack.sh` in the following places:
pre-install - After all system prerequisites have been installed but before any
DevStack-specific services are installed (including database and rpc).
install - After all OpenStack services have been installed and configured
but before any OpenStack services have been started. Changes to OpenStack
service configurations should be done here.
post-config - After OpenStack services have been initialized but still before
they have been started. (This is probably mis-named, think of it as post-init.)
extra - After everything is started.
+26
View File
@@ -0,0 +1,26 @@
Listen %PUBLICPORT%
<VirtualHost *:%PUBLICPORT%>
WSGIDaemonProcess osapi_volume processes=%APIWORKERS% threads=1 user=%USER% display-name=%{GROUP} %VIRTUALENV%
WSGIProcessGroup osapi_volume
WSGIScriptAlias / %CINDER_BIN_DIR%/cinder-wsgi
WSGIApplicationGroup %{GLOBAL}
WSGIPassAuthorization On
<IfVersion >= 2.4>
ErrorLogFormat "%{cu}t %M"
</IfVersion>
ErrorLog /var/log/%APACHE_NAME%/c-api.log
%SSLENGINE%
%SSLCERTFILE%
%SSLKEYFILE%
<Directory %CINDER_BIN_DIR%>
<IfVersion >= 2.4>
Require all granted
</IfVersion>
<IfVersion < 2.4>
Order allow,deny
Allow from all
</IfVersion>
</Directory>
</VirtualHost>
+18 -7
View File
@@ -1,6 +1,6 @@
<VirtualHost *:80>
WSGIScriptAlias / %HORIZON_DIR%/openstack_dashboard/wsgi/django.wsgi
WSGIDaemonProcess horizon user=%USER% group=%GROUP% processes=3 threads=10 home=%HORIZON_DIR%
WSGIScriptAlias %WEBROOT% %HORIZON_DIR%/openstack_dashboard/wsgi/django.wsgi
WSGIDaemonProcess horizon user=%USER% group=%GROUP% processes=3 threads=10 home=%HORIZON_DIR% display-name=%{GROUP}
WSGIApplicationGroup %{GLOBAL}
SetEnv APACHE_RUN_USER %USER%
@@ -8,7 +8,10 @@
WSGIProcessGroup horizon
DocumentRoot %HORIZON_DIR%/.blackhole/
Alias /media %HORIZON_DIR%/openstack_dashboard/static
Alias %WEBROOT%/media %HORIZON_DIR%/openstack_dashboard/static
Alias %WEBROOT%/static %HORIZON_DIR%/static
RedirectMatch "^/$" "%WEBROOT%/"
<Directory />
Options FollowSymLinks
@@ -17,12 +20,20 @@
<Directory %HORIZON_DIR%/>
Options Indexes FollowSymLinks MultiViews
%HORIZON_REQUIRE%
AllowOverride None
Order allow,deny
allow from all
# Apache 2.4 uses mod_authz_host for access control now (instead of
# "Allow")
<IfVersion < 2.4>
Order allow,deny
Allow from all
</IfVersion>
<IfVersion >= 2.4>
Require all granted
</IfVersion>
</Directory>
<IfVersion >= 2.4>
ErrorLogFormat "%{cu}t %M"
</IfVersion>
ErrorLog /var/log/%APACHE_NAME%/horizon_error.log
LogLevel warn
CustomLog /var/log/%APACHE_NAME%/horizon_access.log combined
+49 -10
View File
@@ -1,22 +1,61 @@
Listen %PUBLICPORT%
Listen %ADMINPORT%
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\" %D(us)" keystone_combined
<Directory %KEYSTONE_BIN%>
Require all granted
</Directory>
<VirtualHost *:%PUBLICPORT%>
WSGIDaemonProcess keystone-public processes=5 threads=1 user=%USER%
WSGIDaemonProcess keystone-public processes=5 threads=1 user=%USER% display-name=%{GROUP} %VIRTUALENV%
WSGIProcessGroup keystone-public
WSGIScriptAlias / %PUBLICWSGI%
WSGIScriptAlias / %KEYSTONE_BIN%/keystone-wsgi-public
WSGIApplicationGroup %{GLOBAL}
ErrorLog /var/log/%APACHE_NAME%/keystone
LogLevel debug
CustomLog /var/log/%APACHE_NAME%/access.log combined
WSGIPassAuthorization On
ErrorLogFormat "%M"
ErrorLog /var/log/%APACHE_NAME%/keystone.log
CustomLog /var/log/%APACHE_NAME%/keystone_access.log keystone_combined
%SSLENGINE%
%SSLCERTFILE%
%SSLKEYFILE%
</VirtualHost>
<VirtualHost *:%ADMINPORT%>
WSGIDaemonProcess keystone-admin processes=5 threads=1 user=%USER%
WSGIDaemonProcess keystone-admin processes=5 threads=1 user=%USER% display-name=%{GROUP} %VIRTUALENV%
WSGIProcessGroup keystone-admin
WSGIScriptAlias / %ADMINWSGI%
WSGIScriptAlias / %KEYSTONE_BIN%/keystone-wsgi-admin
WSGIApplicationGroup %{GLOBAL}
ErrorLog /var/log/%APACHE_NAME%/keystone
LogLevel debug
CustomLog /var/log/%APACHE_NAME%/access.log combined
WSGIPassAuthorization On
ErrorLogFormat "%M"
ErrorLog /var/log/%APACHE_NAME%/keystone.log
CustomLog /var/log/%APACHE_NAME%/keystone_access.log keystone_combined
%SSLENGINE%
%SSLCERTFILE%
%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
Options +ExecCGI
WSGIProcessGroup keystone-public
WSGIApplicationGroup %{GLOBAL}
WSGIPassAuthorization On
</Location>
Alias /identity_admin %KEYSTONE_BIN%/keystone-wsgi-admin
<Location /identity_admin>
SetHandler wsgi-script
Options +ExecCGI
WSGIProcessGroup keystone-admin
WSGIApplicationGroup %{GLOBAL}
WSGIPassAuthorization On
</Location>
+25
View File
@@ -0,0 +1,25 @@
Listen %PUBLICPORT%
<VirtualHost *:%PUBLICPORT%>
WSGIDaemonProcess nova-api processes=%APIWORKERS% threads=1 user=%USER% display-name=%{GROUP} %VIRTUALENV%
WSGIProcessGroup nova-api
WSGIScriptAlias / %PUBLICWSGI%
WSGIApplicationGroup %{GLOBAL}
WSGIPassAuthorization On
<IfVersion >= 2.4>
ErrorLogFormat "%M"
</IfVersion>
ErrorLog /var/log/%APACHE_NAME%/nova-api.log
%SSLENGINE%
%SSLCERTFILE%
%SSLKEYFILE%
</VirtualHost>
Alias /compute %PUBLICWSGI%
<Location /compute>
SetHandler wsgi-script
Options +ExecCGI
WSGIProcessGroup nova-api
WSGIApplicationGroup %{GLOBAL}
WSGIPassAuthorization On
</Location>
+25
View File
@@ -0,0 +1,25 @@
Listen %PUBLICPORT%
<VirtualHost *:%PUBLICPORT%>
WSGIDaemonProcess nova-metadata processes=%APIWORKERS% threads=1 user=%USER% display-name=%{GROUP} %VIRTUALENV%
WSGIProcessGroup nova-metadata
WSGIScriptAlias / %PUBLICWSGI%
WSGIApplicationGroup %{GLOBAL}
WSGIPassAuthorization On
<IfVersion >= 2.4>
ErrorLogFormat "%M"
</IfVersion>
ErrorLog /var/log/%APACHE_NAME%/nova-metadata.log
%SSLENGINE%
%SSLCERTFILE%
%SSLKEYFILE%
</VirtualHost>
Alias /metadata %PUBLICWSGI%
<Location /metadata>
SetHandler wsgi-script
Options +ExecCGI
WSGIProcessGroup nova-metadata
WSGIApplicationGroup %{GLOBAL}
WSGIPassAuthorization On
</Location>
+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>
Symlink
+1
View File
@@ -0,0 +1 @@
debs/
-6
View File
@@ -1,6 +0,0 @@
python-pymongo #NOPRIME
mongodb-server #NOPRIME
libnspr4-dev
pkg-config
libxml2-dev
libxslt-dev
-23
View File
@@ -1,23 +0,0 @@
bridge-utils
pylint
python-setuptools
screen
unzip
wget
psmisc
git
lsof # useful when debugging
openssh-server
openssl
python-virtualenv
python-unittest2
iputils-ping
wget
curl
tcpdump
euca2ools # only for testing client
tar
python-cmd2 # dist:precise
python-dev
python2.7
bc
-16
View File
@@ -1,16 +0,0 @@
gcc
libffi-dev
libmysqlclient-dev # testonly
libpq-dev # testonly
libssl-dev # testonly
libxml2-dev
libxslt1-dev # testonly
python-eventlet
python-routes
python-greenlet
python-sqlalchemy
python-wsgiref
python-pastedeploy
python-xattr
python-iso8601
zlib1g-dev # testonly
-21
View File
@@ -1,21 +0,0 @@
apache2 # NOPRIME
libapache2-mod-wsgi # NOPRIME
python-beautifulsoup
python-dateutil
python-paste
python-pastedeploy
python-anyjson
python-routes
python-xattr
python-sqlalchemy
python-webob
python-kombu
pylint
python-eventlet
python-nose
python-sphinx
python-mox
python-kombu
python-coverage
python-cherrypy3 # why?
python-migrate
-10
View File
@@ -1,10 +0,0 @@
libguestfs0
libvirt-bin
openssh-client
openvswitch-switch
openvswitch-datapath-dkms
python-libguestfs
python-libvirt
syslinux
tftpd-hpa
xinetd
-13
View File
@@ -1,13 +0,0 @@
python-lxml
python-pastescript
python-pastedeploy
python-paste
sqlite3
python-pysqlite2
python-sqlalchemy
python-mysqldb
python-webob
python-greenlet
python-routes
libldap2-dev
libsasl2-dev
-3
View File
@@ -1,3 +0,0 @@
python-pymongo
mongodb-server
pkg-config
-3
View File
@@ -1,3 +0,0 @@
python-dateutil
msgpack-python
fping
-8
View File
@@ -1,8 +0,0 @@
# Stuff for diablo volumes
lvm2
open-iscsi
open-iscsi-utils # Deprecated since quantal dist:precise
genisoimage
sysfsutils
sg3-utils
python-guestfs # NOPRIME
-1
View File
@@ -1 +0,0 @@
python-numpy
-25
View File
@@ -1,25 +0,0 @@
ebtables
iptables
iputils-ping
iputils-arping
mysql-server #NOPRIME
sudo
python-boto
python-iso8601
python-paste
python-routes
python-suds
python-pastedeploy
python-greenlet
python-kombu
python-eventlet
python-sqlalchemy
python-mysqldb
python-pyudev
python-qpid # dist:precise
dnsmasq-base
dnsmasq-utils # for dhcp_release only available in dist:precise
rabbitmq-server # NOPRIME
qpidd # NOPRIME
sqlite3
vlan
-46
View File
@@ -1,46 +0,0 @@
dnsmasq-base
dnsmasq-utils # for dhcp_release
kpartx
parted
iputils-arping
mysql-server # NOPRIME
python-mysqldb
python-xattr # needed for glance which is needed for nova --- this shouldn't be here
python-lxml # needed for glance which is needed for nova --- this shouldn't be here
gawk
iptables
ebtables
sqlite3
sudo
qemu-kvm # NOPRIME
qemu # dist:wheezy,jessie NOPRIME
libvirt-bin # NOPRIME
pm-utils
libjs-jquery-tablesorter # Needed for coverage html reports
vlan
curl
genisoimage # required for config_drive
rabbitmq-server # NOPRIME
qpidd # dist:precise NOPRIME
socat # used by ajaxterm
python-mox
python-paste
python-migrate
python-greenlet
python-libvirt # NOPRIME
python-libxml2
python-routes
python-numpy # used by websockify for spice console
python-pastedeploy
python-eventlet
python-cheetah
python-tempita
python-sqlalchemy
python-suds
python-lockfile
python-m2crypto
python-boto
python-kombu
python-feedparser
python-iso8601
python-qpid # dist:precise
-2
View File
@@ -1,2 +0,0 @@
openvswitch-datapath-dkms # NOPRIME
openvswitch-switch # NOPRIME
-1
View File
@@ -1 +0,0 @@
python-psycopg2
-2
View File
@@ -1,2 +0,0 @@
python-eventlet
python-sphinx
-16
View File
@@ -1,16 +0,0 @@
curl
gcc
libffi-dev
memcached
python-configobj
python-coverage
python-eventlet
python-greenlet
python-netifaces
python-nose
python-pastedeploy
python-simplejson
python-webob
python-xattr
sqlite3
xfsprogs
-1
View File
@@ -1 +0,0 @@
libxslt1-dev
-1
View File
@@ -1 +0,0 @@
stud # only available in dist:precise
-16
View File
@@ -1,16 +0,0 @@
# Trema
gcc
make
ruby1.8
rubygems1.8
ruby1.8-dev
libpcap-dev
libsqlite3-dev
libglib2.0-dev
# Sliceable Switch
sqlite3
libdbi-perl
libdbd-sqlite3-perl
apache2
libjson-perl
-1
View File
@@ -1 +0,0 @@
libxslt1-dev # testonly
@@ -1,6 +1,5 @@
busybox
dnsmasq
gcc
ipmitool
make
open-iscsi
+2
View File
@@ -0,0 +1,2 @@
ceph # NOPRIME
xfsprogs
+3 -3
View File
@@ -1,6 +1,6 @@
tgt
lvm2
qemu-utils
libpq-dev
open-iscsi
open-iscsi-utils # Deprecated since quantal dist:precise
qemu-utils
tgt # NOPRIME
thin-provisioning-tools
+35
View File
@@ -0,0 +1,35 @@
bc
bridge-utils
bsdmainutils
curl
default-jre-headless # NOPRIME
g++
gcc
gettext # used for compiling message catalogs
git
graphviz # needed for docs
iputils-ping
libffi-dev # for pyOpenSSL
libjpeg-dev # Pillow 3.0.0
libmysqlclient-dev # MySQL-python
libpq-dev # psycopg2
libssl-dev # for pyOpenSSL
libxml2-dev # lxml
libxslt1-dev # lxml
libyaml-dev
lsof # useful when debugging
openssh-server
openssl
pkg-config
psmisc
python2.7
python-dev
python-gdbm # needed for testr
screen
tar
tcpdump
unzip
uuid-runtime
wget
wget
zlib1g-dev
+3
View File
@@ -0,0 +1,3 @@
apache2 # NOPRIME
libapache2-mod-wsgi # NOPRIME
libpcre3-dev # pyScss
+6
View File
@@ -0,0 +1,6 @@
libkrb5-dev
libldap2-dev
libsasl2-dev
memcached
python-mysqldb
sqlite3

Some files were not shown because too many files have changed in this diff Show More