378 Commits

Author SHA1 Message Date
Jenkins
32d3abef76 Merge "Revert "Enable Gearman as default on Jenkins slaves"" 2014-03-31 22:54:06 +00:00
James E. Blair
8af61da62f Revert "Enable Gearman as default on Jenkins slaves"
SERVER: Invalid relationship: File[/var/lib/jenkins/hudson.plugins.gearman.GearmanPluginConfig.xml] { require => Class[Zuul] }, because Class[Zuul]doesn't seem to be in the catalog

This reverts commit 2a9cd677e4eb6a60787ebc73bd8fd9e1b6f26b34
2014-03-31 22:49:41 +00:00
Jenkins
d302b1b698 Merge "Enable Gearman as default on Jenkins slaves" 2014-03-31 16:29:50 +00:00
Jenkins
753837e3bd Merge "Fetch tag refs from zuul in gerrit-git-prep" 2014-03-30 23:23:18 +00:00
Jeremy Stanley
8bc51a6007 Fetch tag refs from zuul in gerrit-git-prep
* gerrit-git-prep.sh: If the zuul ref is a tag, then fetch the tag
from zuul. Otherwise there's a risk that it may not have replicated
to the origin yet when initially setting up the workspace.

Change-Id: Iadd8385e4a0d0957fcac1cf89d0b5a1cfa848b49
2014-03-26 23:58:02 +00:00
Jeremy Stanley
2e21b966c9 Allow BRANCH instead of ZUUL_REF in ggp
* modules/jenkins/files/slave_scripts/gerrit-git-prep.sh: Allow
callers to supply BRANCH in the environment for cases where there
will be no ZUUL_REF environment variable. This is mainly to support
use in periodic jobs, so that we can transition away from the
Jenkins SCM plug-in.

Change-Id: I86c77695d8c374c94932664026ab7a541686ae74
2014-03-25 21:03:35 +00:00
Jeremy Stanley
044ded07b4 Pin rake gem to 10.1.1 so it works with ruby 1.8.x
Without this, we get "Error installing puppetlabs_spec_helper: rake
requires Ruby version >= 1.9."

Change-Id: I81a32380cee1a35a50e1c3baf2e1afcd69b1614f
2014-03-25 12:57:22 +00:00
Jenkins
de46ee2b8a Merge "Another fix for upstream_translation_horizon.sh" 2014-03-21 20:10:45 +00:00
Jenkins
003470fdc1 Merge "Switch to using version-properties.sh script." 2014-03-21 19:05:13 +00:00
Andreas Jaeger
f86b005cd5 Another fix for upstream_translation_horizon.sh
There was an extra closing bracked "]" that breaks the script.

Hope this finally gets the job running again.

Change-Id: Ib9721e312aa9a678fe483d6cbb1fb910be1c1659
2014-03-21 15:52:43 +01:00
iberezovskiy
2a9cd677e4 Enable Gearman as default on Jenkins slaves
We don't need to enable Gearman through Jenkins UI.
It'll we done as default.

Change-Id: I50a1506f7efa3d71034cca2caebb6e5ddb76285a
2014-03-21 12:08:31 +04:00
Jenkins
b059d10bf4 Merge "Increase the default pip socket timeout" 2014-03-21 01:09:13 +00:00
Derek Higgins
30721474fc Increase the default pip socket timeout
pip's default timeout of 15 seconds doesn't seem to be high enough
causing us to intermittently fail getting the pypi index. Increasing
the timeout to 60 in an attempt to make it less likely to hit the
problem.

Change-Id: Ifd4689283e53d6afb7a76b480e004cdde3b302f6
Related-Bug: #1272417
2014-03-21 00:01:42 +00:00
Andreas Jaeger
f9306d9481 Always create .venv for upstream_translation_horizon
The current job fails to run since there's no venv created, we need
to pass -V to update it - otherwise the job will fail.

Change-Id: I4293cbef253cea9638c22bb5a980d07da9d315db
2014-03-20 21:00:00 +01:00
Andreas Jaeger
c953e14ce4 Only initialize transifex if there's no .tx directory
Some git repositories have .tx directories, most have none. Handle both
ways - check if .tx directory exists and create it with tx init if not.

Change-Id: I7035fd6d130aabe553678e8b7aec78d33333715f
2014-03-19 19:56:43 +01:00
Jenkins
6e5ef766c5 Merge "Fix horizon-upstream-translation-update" 2014-03-19 18:21:19 +00:00
Andreas Jaeger
4939be236f Fix horizon-upstream-translation-update
Check if there is already a .tx folder and run tx --init only if
there is none. The horizon repo currently has one and thus the job fails
to build.

Change-Id: Ifa3115943c49550f3d72007484e9343f7de1d8ca
2014-03-19 07:20:22 +01:00
Jeremy Stanley
d5436c322e Remove obsolete third argument check from ggp
This was used when transitioning to ZUUL_URL from the calling
environment, and is no longer required by any calls to the script.

Change-Id: Ie3e1740a6cc3d67bd306b5d6c258002d51eaffe8
2014-03-18 16:39:17 +00:00
Jenkins
b3eebc7a52 Merge "Save md5 and sha1 checksums with artifacts" 2014-03-17 21:17:35 +00:00
Jenkins
da0d8af6ee Merge "Set up opportunistic bare-metal postgres db" 2014-03-17 17:15:58 +00:00
Davanum Srinivas
618f6bff81 Save md5 and sha1 checksums with artifacts
tarballs.openstack.org seems to be missing checksums

Change-Id: I5653c8bdbbf45aa74d848d28a8e9c38dc5b3fc17
2014-03-16 19:57:15 -04:00
Robert Collins
2172d4bfd2 Add haveged to jenkins slaves.
We're running headless servers - exactly the situation haveged is
designed for.

Change-Id: I5616f5926aea9a573d1bf1d617f1b5b8df672917
2014-03-15 16:23:17 +13:00
Jenkins
7ccf63861c Merge "Fix manuals translation jobs" 2014-03-14 15:31:21 +00:00
Andreas Jaeger
a77f69cacb Fix manuals translation jobs
Currently the periodic job manuals-propose-translation-update runs
three times on the same repository instead of running once each for
api-site, openstack-manuals and operations-guide.

Also, manuals-upstream-translation-update does not handle the api-site
repo.

* Change the scripts so that they handle all three repositories.
* Update the jenkins configuration to call the scripts with repository name
  as parameter. This needs new job-templates.
* Create a job-group
* Use job-group for each repository.
* Adjust Zuul for new jobs using a template.
* Update manual jobs in zuul to check for just "master" as branch
  instead of using a regex.

Change-Id: I755730ea43ad05a373704ab2fb7e5b55f1c8aeee
Closes-Bug: #1291844
2014-03-14 15:59:39 +01:00
Andreas Jaeger
70fc436c35 Initialize transifex data for openstack-manuals
Maintaining transifix in git causes some problems, we're removing it
now from openstack-manuals and thus need to initialize it here.

The manuals change at https://review.openstack.org/#/c/79859 is waiting
for this to go in.

Change-Id: I1bc1e1ae0f25ce5d88a70cdbab2541c8a52ddd78
2014-03-12 08:34:24 +01:00
Clark Boylan
139f1f0986 Allow jenkins to sudo as any user.
Jenkins needs to sudo as stack and tempest to properly run devstack jobs
and may need to act on behalf of other users in the future. Rather than
listing root,stack,tempest in the sudoer file just let jenkins sudo as
any user.

Fixes-bug: 1290669
Change-Id: I4a5c6b7ead717475d6334a7ef3121271aca83f5a
2014-03-10 21:39:05 -07:00
Jenkins
836493b0d0 Merge "Explicitly install gettext on job workers" 2014-03-10 21:17:15 +00:00
Jenkins
b9c70fb590 Merge "Use a sudoers file for jenkins sudo rights" 2014-03-10 15:56:48 +00:00
Jeremy Stanley
bfabbaf6ef Explicitly install gettext on job workers
Some providers include gettext preinstalled by default on their base
images, but others do not. Make this consistent by explicitly
installing it when not already present. Rackspace seems to have
recently ceased including it on their Ubuntu Precise images, which
precipitated this patch.

Change-Id: Idb86c805e2fc56d885081876642bd9d3dbf58434
2014-03-10 13:49:14 +00:00
Jenkins
afe0b82d28 Merge "Install memcached on slaves" 2014-03-06 23:15:50 +00:00
Jenkins
017b0ec3b5 Merge "remove inline set -e that is preventing explanations" 2014-03-06 15:12:49 +00:00
Jenkins
d776f77f91 Merge "Adds ! defined() guards around a2mod declarations" 2014-03-06 07:37:32 +00:00
Sean Dague
e8133fa98d remove inline set -e that is preventing explanations
the script has a set -e mid way through which is now defeating
the explanation parts of the script. Remove this to actually
come back to our normally scheduled program.

Change-Id: I53b5888f44083731b60e03a833f6d8e7769e0e47
2014-03-05 10:26:58 -05:00
daisy-ycguo
e5674d0635 Job to push Horizon translation to Transifex
Add script and job to push the 4 Horizon translation source files
(4 English po files) to Transifex.

Since Horizon has two "locale" folders in different position,
it's not able to levarage the existing upstream_translation.sh
and have to add a new upstream_translation_horizon.sh.

Change-Id: I7a42365414a6a5dcde276bc10761b08e3e756931
2014-03-05 18:35:53 +09:00
Khai Do
bff86de71e Fix update java alternatives on redhat systems
puppet was throwing the following error..
  nodepool.image.build.rax-iad.bare-centos6: Could not find dependent
  Exec[update-java-alternatives] for Package[ant] at |
  /root/config/modules/jenkins/manifests/slave.pp:86

because update-java-alternatives was only defined for debian, not for redhat systems.
This change adds java alternatives update to redhat.  Needed to change
'java-1.7.0-openjdk' to 'java-1.7.0-openjdk-devel' because 'java-1.7.0-openjdk' does
not install the javac compiler.

We are setting alternatives for debian and centos but not for fedora because the java 6
packages are not available on fedora.

Change-Id: I04b3e8292d3f31cd56ada9be99da8a234e13585a
2014-03-03 20:56:35 -08:00
Julien Danjou
7c178f129a Install memcached on slaves
This is needed to run Tooz integration tests.

Change-Id: Ibaa2c4adf81a50465910572a6b6d145640476a51
2014-02-28 17:11:12 +01:00
Clark Boylan
d053652923 Switch to using version-properties.sh script.
Use the new version-properties.sh script. Note this should only be done
once all slave images have the new version-properties.sh script in
place. Without it jobs will fail.

Change-Id: Ieaa16cc264fa57556afbd37b723503a19ce6682a
2014-02-27 15:16:50 -08:00
Clark Boylan
688bdd459e Create new version-properties.sh script
Create a new version-properties.sh script that will be used on slave
hosts to determine version information from git. This is mostly a copy
of the maven-properties.sh script. The reason we are not simply renaming
is that this commit must be merged then all slave images updated before
we change our jenkins jobs to use the new script. Renaming doesn't allow
us to do that.

Change-Id: I37c0b7cc3ca034addf32897a5a8c6501dedf00b0
2014-02-27 15:11:42 -08:00
Clark Boylan
db20f1f27a Revert "rename maven-properties.sh script to version-properties.sh"
This reverts commit dea3bdb050a55d56a1913e50e59cf176d70d3eb7.

This revert is necessary because it changed jenkins jobs before the
slave images could be rebuilt. We need to update the slave images first
then update the jenkins jobs in a pair of changes that can be merged one
at a time.

Change-Id: Iae4abf8c2dd8ad67ad008c57bbd17ba1304134c6
2014-02-27 15:09:43 -08:00
Jenkins
880924a621 Merge "Optionally give mysql user all global privs." 2014-02-27 22:13:23 +00:00
Jenkins
a56c077f2c Merge "rename maven-properties.sh script to version-properties.sh" 2014-02-27 19:31:36 +00:00
Jenkins
bf96db40f3 Merge "Change mysql package for Fedora >= 19 for bare-precise" 2014-02-27 19:24:49 +00:00
Clark Boylan
54ad9496cd Optionally give mysql user all global privs.
One our single use unittest slaves we want to allow unittests to create
and destroy arbitrary mysql database schemas. The simplest way to do
this is to grant all priveleges to the test user on the mysql server
globally. This is safe because the nodes are thrown away post test.

Change-Id: Ic92ff2f9c752d955e6f82eb4b88330b5448cfa75
2014-02-26 11:48:59 -08:00
Joshua Hesketh
8d9ebffe10 Set up opportunistic bare-metal postgres db
Currently only MySQL is being opportunistically tested for bare-metal
migrations. This change configures the Jenkins slaves to have a
postgresql database openstack_baremetal_ci.

Change-Id: Ifb2eb7b1ef15b28a326a7d7eb1f99dc675cc40b6
2014-02-26 16:09:08 +11:00
Jenkins
53fe598325 Merge "Make sure gawk is installed" 2014-02-24 21:20:33 +00:00
Jenkins
787e3734cc Merge "run-unittests.sh: fix a typo" 2014-02-24 19:12:26 +00:00
James Polley
d91718654c Make sure gawk is installed
extract_docs.awk (used to extract devtest.rst from devtest.sh, and
similiarly with other scripts that have docs auto-generated) does not
work in mawk, which is the default in precise.

gawk is already the default choice in Fedora 19, and seems to be the
default in later versions of Ubuntu. Haven't tested Debian.

Change-Id: I00cf5137d8e39c78a5d52b2cf094365a56deb353
2014-02-24 18:56:36 +11:00
Jenkins
16df6766b8 Merge "update java alternatives to java 7" 2014-02-23 17:02:05 +00:00
Jenkins
a280632250 Merge "Add logs about the pypi mirror" 2014-02-23 08:08:55 +00:00
Khai Do
4b1e84a4a3 update java alternatives to java 7
ant dependency requires java 6 so alternatives was set to java 6 on an ant package
install.  This change updates alternatives to point to java 7 after all packages
have been installed.

Change-Id: I7b8c975879dda085102a1d4740777d3d8c5f54ea
2014-02-21 15:51:05 -08:00