Aggregate jenkins modules into one module.

Put jenkins_master into jenkins::master and jenkins_job_builder into
jenkins::job_builder and jenkins_slave into jenkins::slave.

Change-Id: I2a1d242ecab0e765ab1b1556bbebd2db8f632888
Reviewed-on: https://review.openstack.org/10842
Approved: Monty Taylor <mordred@inaugust.com>
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Tested-by: Jenkins
Revert "Aggregate jenkins modules into one module."

This reverts commit 222f983fabfbf05f8aa074af90d60d7587acddfa

Change-Id: Iebc5744c5342a19aafdf24ea64e0b98812464ef4
Reviewed-on: https://review.openstack.org/11247
Approved: Monty Taylor <mordred@inaugust.com>
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Tested-by: Jenkins
Aggregate jenkins modules into one module.

Put jenkins_master into jenkins::master and jenkins_job_builder into
jenkins::job_builder and jenkins_slave into jenkins::slave.

Change-Id: Icb0e3071894730c17d8f36f49e9d34979d9c568e
Reviewed-on: https://review.openstack.org/11249
Approved: Monty Taylor <mordred@inaugust.com>
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Tested-by: Jenkins
Make jenkinsuser a class.

And invoke it correctly on static.o.o.

Change-Id: Ic4699828500f4acf4af60248ba87200c0e703fc6
Reviewed-on: https://review.openstack.org/11496
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Approved: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
Use puppetmaster for slaves.

Use puppet agent --test for puppet cron.

We don't need the private ssh or gpg key on the slaves anymore.
We do need the glance testing stuff, so stick that into hiera.

Change-Id: If94fc3f150bf569efe9461f80d3565f9825eebce
Reviewed-on: https://review.openstack.org/10851
Approved: Monty Taylor <mordred@inaugust.com>
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Tested-by: Jenkins
Enable Nose HTML output on unittest jobs.

Have nose output an HTML results file at the end of unittest builds.
Also copy that results file to static.openstack.org.

Change-Id: I46c487919e09d25eebf2858830bde080a4c8e4f4
Reviewed-on: https://review.openstack.org/11736
Approved: James E. Blair <corvus@inaugust.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
Output nose html results to nose_results.html.

The **/*results.html glob matched more than just the nose results file
in some cases. Change the nose output file to nose_results.html and the
glob to **/*nose_results.html to be more specific. This should prevent
unwanted files from being copied into the offsite logs.

Change-Id: I3e5b3d140bb0a540d7bdcab84aa70ed324e100da
Reviewed-on: https://review.openstack.org/11804
Approved: James E. Blair <corvus@inaugust.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
Switch to html coverage reports.

Change-Id: Id841726e55bb0c8fb9b6a80648e1e3727b8d5a03
Reviewed-on: https://review.openstack.org/11891
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Approved: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
Add script to log jenkins sudo attempts.

By running this script before and after test runs, we can see if
there have been any sudo attempts by jenkins.  If there have been,
we can fail the test run.  The script outputs any new jenkins sudo
attempts found, so it will show up in the console log.

The script needs to be run as root, so a sudoers file is added
to allow jenkins to run it.

Change-Id: I4a4373d085ff7717d022880b3ab6110100371c4c
Reviewed-on: https://review.openstack.org/12361
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Approved: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
Check tox runs for sudo attempts.

If Jenkins has attempted to sudo during a tox run, fail the
test.

Change-Id: I1be02b1fe4c44d723c971df9b0f51a2b4a5c7839
Reviewed-on: https://review.openstack.org/12366
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Approved: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
Revert "Check tox runs for sudo attempts."

This reverts commit b69a11e3b4ba830965c47e695245336fb987a411

Change-Id: Ie33859cb0a51e2843851ecf18a7d907afee4b42a
Reviewed-on: https://review.openstack.org/12435
Approved: James E. Blair <corvus@inaugust.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Tested-by: James E. Blair <corvus@inaugust.com>
Sudo pre-check should always succeed.

If there were no sudo failures on the host, the pre-check was
failing because the exit code of grep was propogating.

Change-Id: I0c9cce65cb6f9109cfc2bbf5b8fe8da15cb8ff88
Reviewed-on: https://review.openstack.org/12448
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Approved: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
Check tox runs for sudo attempts.

If Jenkins has attempted to sudo during a tox run, fail the
test.

Also, remove "-e" from run-tox, so that pip freeze always runs.

Change-Id: I98230e4de03667f15f119fac45e1eba0ac249c1c
Reviewed-on: https://review.openstack.org/12458
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Approved: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
New job template for translation management.

Add a new job template for translation management. Add two jobs for
translation management. The first will will update transifex with the
new .pot and .po files after every merge to a project. The second will
commit the new .pot and .po files and submit for review once a day.

Add puppet manifest for the slave that these jobs will be running on.

Apply the template to nova.

Change-Id: I5242f81bd6ff13d1ed8610ef9e3b39fd3dbd7301
Reviewed-on: https://review.openstack.org/11369
Reviewed-by: James E. Blair <corvus@inaugust.com>
Approved: Monty Taylor <mordred@inaugust.com>
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Tested-by: Jenkins
Use defaults with tx init to run noninteractively.

tx init run without options expects one interactive value to be set.
Specify this host value with a command line option so that tx init can
run non interactively.

Change-Id: Ifc90fdefc0089924ee769cc1dc5db16f9e6a8804
Reviewed-on: https://review.openstack.org/12803
Approved: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Tested-by: Jenkins
Set tx to output full debugging info.

Use the --debug and --traceback flags when running `tx push` in order to
have better indications of why errors occur.

Change-Id: Ic951dc12b3efe8f8264521ed0a360e42f96cbee0
Reviewed-on: https://review.openstack.org/12817
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Approved: James E. Blair <corvus@inaugust.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
Need to git review -s before pushing to gerrit.

There is a bug in git-review where it doesn't properly configure itself
if it needs to before sending a patchset to gerrit. To get around this
explicitly configure git review.

Change-Id: I89cce741fd0ceb1e4fc4078bf2a53757cefec424
Reviewed-on: https://review.openstack.org/12880
Approved: James E. Blair <corvus@inaugust.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
Adds a markdown to docbook script.

Patch set 3 makes the jobname the filename and adds a second job for
building the programming api mdown book.

Patch set 4 corrects the job name to match the file name.

Patch set 5 renames the .sh.save file and adds it to the job builders.

Patch set 6 addresses final comments - appending to the gerrit-doc.properties
file and removes tabs.

Patch set 7 addresses comments. Would like to continue work on markdown to
docbook and delay work on the properties script if possible.

Patch set 8 removes docbook-properties as a prebuilder and removes DOC_OPERATING_SYSTEM
as a variable. Rebase against master also.

Updates macros.yaml and manuals.yaml to pass in filename for markdown files.

Adds properties injection to the markdown to docbook jobs.

Removes extraenous tab from modules/openstack_project/files/zuul/layout.yaml

Additional fixes to pass in filename correctly and remove DOC_OPERATING_SYSTEM, fix
filname typo.

Removes file extension from markdown files, removes echo to gerrit-doc-properties
from markdown-docbook script.

Removes docbook-properties builder references as needed.

Change-Id: I46c07cd11e96e8fc463a377519926a43981e4b3d
Reviewed-on: https://review.openstack.org/12214
Reviewed-by: James E. Blair <corvus@inaugust.com>
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Approved: Clark Boylan <clark.boylan@gmail.com>
Tested-by: Jenkins
Use git review version 1.17 on jenkins slaves.

Downgrade git review to version 1.17 on jenkins slaves. Do this to avoid
bugs in 1.18.

Change-Id: I3102be5cabbc44a7e88206a6d2506bc7315c88f7
Reviewed-on: https://review.openstack.org/12986
Reviewed-by: James E. Blair <corvus@inaugust.com>
Approved: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Tested-by: Jenkins
Propose translations based on master.

Previously if an existing transifex translation change was present the
translation proposal script would make changes against that change.
git-review would break and this ends up not actually proposing changes
that we want. To correct this get the change id of the existing change
and use that in the commit message for changes based off of master. This
gives us translations based on the latest code with the benefits of less
noise in gerrit.

Change-Id: I88bf13193c6541806388dd610c68e0a95205973e
Reviewed-on: https://review.openstack.org/13233
Reviewed-by: James E. Blair <corvus@inaugust.com>
Approved: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Tested-by: Jenkins