6389 Commits

Author SHA1 Message Date
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
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