6590 Commits

Author SHA1 Message Date
Khai Do
583be07992 puppetize installation of gerrit third party plugins
This change automates the installation of gerrit third party plugins.  This
does not include core plugins, which have already been automated.  The first
third party plugin that we automate is the javamelody plugin.

Change-Id: I163353c2e9d59e4815b4544f983b54d68ede70a8
2014-07-08 21:27:15 -07:00
Jenkins
8bf3764d9c Merge "Bring some uniformity to olso acl files" 2014-07-08 15:02:15 +00:00
Jenkins
4726044048 Merge "Add XStatic-* projects with packaged static files for Horizon" 2014-07-08 14:26:37 +00:00
Jenkins
b46be03bb0 Merge "Publish generated html tests results" 2014-07-08 09:21:10 +00:00
James E. Blair
efc85a4e62 Add extra [] to puppet apply test
Double [[]] are needed by bash for the regex operator.  Use them
universally for safety.

And make gate-config-puppet-apply-centos6 voting.

Change-Id: I8f245a86381d24d8938df444e0268343b46fe09f
2014-07-07 17:37:57 -07:00
Anita Kuno
e2656444e8 Bring some uniformity to olso acl files
Currently oslo acl files do different things. When one is looking
at the files for examples of how oslo project permissions work as
a way of evaluating new oslo acl files, there is some confusion.
This patch brings the olso acl files into a common alignment,
providing a template for future oslo acl file structure. It also removes
tagging ACLs from the repositories that don't use tags.

The project-name-core groups have review permission in all branches.
The project-name-ptl groups have tagging permission.

This patch also edits acl files for oslo common libs: pycadf and
taskflow, as well as openstack-dev tools: cookiecutter,
oslo-cookiecutter and pbr. The permission for taskflow-core to
create branches is removed.

This patch removes the need to have the oslo-specs-core and
olso-milestone gerrit groups.

Change-Id: I5cb6948502289d8f4179aabd35885a669df9d174
2014-07-07 20:05:45 -04:00
Clark Boylan
a339be3b8c Convert logstash ES output to HTTP.
The logstash elasticsearch output seems to degrade over time and slow
down. Restarting the logstash daemon temporarily corrects this problem.
Switch to the elasticsearch HTTP output to see if that corrects the
problem as well.

Note the logstash watchdog is disabled by this change as logstash
daemons using elasticsearch HTTP output will not join the elasticsearch
cluster which will force the watchdog to always trip. To avoid this
issue disable the watchdog.

Change-Id: I77044b26fa10fb1fc3690a0464d79d55bed2fe00
2014-07-07 13:14:01 -07:00
Jenkins
9a15781d5e Merge "Update gerrit project rename instructions" 2014-07-06 13:17:23 +00:00
Jenkins
20a7aeebcf Merge "Pull rsyslog back out from the debian trap" 2014-07-05 23:51:06 +00:00
Monty Taylor
ec82346369 Pull rsyslog back out from the debian trap
When we put a conditional around rsyslog, it got pulled into
the if debian block - but git.o.o runs on redhat.

Change-Id: I0abea4075d216bf40b2e20e8afe186273e99b7ad
2014-07-05 16:43:28 -07:00
Jenkins
113e7d3767 Merge "Removing extra parens" 2014-07-05 23:12:28 +00:00
Jenkins
9cb87817fc Merge "Don't manage iptables if we're in a choot" 2014-07-05 23:08:55 +00:00
Jenkins
25f472b26d Merge "Only enabling rsyslog service if not chroot" 2014-07-05 23:08:48 +00:00
Jenkins
0e9f34a456 Merge "Split the database grants into their own class" 2014-07-05 23:08:19 +00:00
Jenkins
40590dfe0a Merge "Remove mod_wsgi package" 2014-07-05 22:59:41 +00:00
Monty Taylor
98604d0215 Don't manage iptables if we're in a choot
In chroots, as with diskimage-builder, managing service starts is
tricky. Also, we don't need to restart the service then, because
the service will get started on boot of the image.

Change-Id: Iaf90005039b8196ba3a0ac05c96d71e034f0b0b1
2014-07-05 15:58:05 -07:00
Yolanda Robla
71b4eb0062 Only enabling rsyslog service if not chroot
Builds running in a chroot are failing when notifying to rsyslog.
Assuming that an env var called FACTER_in_chroot is sent on this
case (as done by disk-image-builder elements), ignore the
declaration and interaction with rsyslog.

Change-Id: Id4c7a3e0c3503904540c59d940b52481d263d5b9
2014-07-05 15:58:05 -07:00
Monty Taylor
b0b2f2d088 Split the database grants into their own class
In anticipation of the nodepool patch, make the database grants,
which need a running database server to run, their own class. This
allows us to skip running them while in the chroot, and then on
boot we can simply run:

  puppet apply 'class {"openstack_project::slave_db": }'

Change-Id: I4223e691d7545b445d39048a8ca801458cc3c2ed
2014-07-05 15:57:56 -07:00
Jenkins
0bb18ce811 Merge "Delete the old cron-based puppet thing" 2014-07-05 21:36:09 +00:00
Jenkins
067bc2f708 Merge "Align exim module parameter name with the tree" 2014-07-05 21:31:02 +00:00
Monty Taylor
c8a29bea6d Delete the old cron-based puppet thing
Also, delete the legacy non-nodepool slave references.

Change-Id: I995576ab240c6f228716fa075d3513b47c41e7c1
2014-07-05 14:26:30 -07:00
Monty Taylor
e8fee5ca6d Remove old salt references from the puppet
Now that salt has been removed, remove the puppet module ensure
absent support.

This should be landed after puppet has been run after the previous patch has been landed.

Change-Id: I17a8caf19fd78b47d3c4683092aab76564497e05
2014-07-05 11:36:52 -07:00
Jenkins
1d390cc8db Merge "Remove salt" 2014-07-05 18:07:55 +00:00
Jenkins
1e3900eab7 Merge "Install gcc on zuul hosts" 2014-07-05 17:55:32 +00:00
Monty Taylor
09697cffdf Move ansible puppet code into a module
If the logic is just in a role, it's hard to re-use it in a one-off
manner on the command line. By putting it into a module, we can
run:

  ansible git0* -m puppet

To run puppet on the git farm, for instance.

Also, the file is completely not openstack specific, so do it in
such a way that we can submit it as a module upstream.

Change-Id: I35b2850e02ec5da2b41ad14eec9fd6d5a356bc93
2014-07-05 10:17:56 -07:00
Monty Taylor
0fb121893d Remove salt
We don't really use the salt infrastructure that we set up, which means
it's cruft. Go ahead and admit that we don't use it and remove it from
our systems.

Change-Id: Ic43695719cbad30aded16ac480deb3dfd9b2a110
2014-07-04 21:44:44 -07:00
Monty Taylor
db57161a47 Fix run puppet cronjob.
ansible-playbook is in /usr/local, but that's not in the cron job path.

Also, although there is an ansible log setting in ansible.cfg, the
ansible-playbook command still outputs stuff. We don't want cronspam,
so add the redirection to the log file back in.

Change-Id: Id585c11cca4cbd7e1ba26adbfbe22af650ca2b50
2014-07-04 21:33:25 -07:00
Jenkins
23fe4a345f Merge "Add playbook for cleaning workspaces" 2014-07-04 19:46:10 +00:00
Monty Taylor
68d4bb56e9 Install gcc on zuul hosts
With the addition of yappi, it's important to install gcc, because
otherwise yappi can't install.

Change-Id: Iaf19ab791f674bcbe5538ae8c7a18e25eef4ca99
2014-07-04 12:07:32 -07:00
Monty Taylor
c21ec94066 Fix the sshd config to for inbound ansible
The ssh keys were changed to not tie to a forced-command, but the
sshd config was missed.

Change-Id: I889f7983d0e7d0e1b48d825c7d63cf678782d169
2014-07-04 10:48:12 -07:00
Monty Taylor
92b29acd0d Add playbook for cleaning workspaces
Sometimes we need to clean the workspaces. While we have a command
documented, go ahead and make a playbook for it.

Change-Id: I1887dec24563811a71157c000b2d8ae9b7850d6a
2014-07-04 10:01:14 -07:00
Monty Taylor
034f37c32a Use ansible instead of direct ssh calls
Instead of a shell script looping over ssh calls, use a simple
ansible playbook. The benefit this gets is that we can then also
script ad-hoc admin tasks either via playbooks or on the command
line. We can also then get rid of the almost entirely unused
salt infrastructure.

Change-Id: I53112bd1f61d94c0521a32016c8a47c8cf9e50f7
2014-07-04 10:01:08 -07:00
Radomir Dopieralski
ea646d94c1 Add XStatic-* projects with packaged static files for Horizon
Horizon will no longer bundle all the static JavaScript and style files
in its repository. It will instead depend on XStatic packages with those
files included in them.

Every library is a separate XStatic package, so that it can be tracked
and versioned separately and possibly shared with other projects that
also use XStatic. The projects will be managed by a new group,
xstatic-core.

This has been discussed on a design session on the summit:
https://etherpad.openstack.org/p/juno-summit-horizon-static-files

Change-Id: Ie087c173b531faab4ae6a55f4a05e7ac3bd990c9
Implements: https://blueprints.launchpad.net/horizon/+spec/remove-javascript-bundling
2014-07-04 16:08:11 +02:00
Jenkins
3a63262fa9 Merge "Remove obsolete #openstack-climate channel" 2014-07-04 11:30:23 +00:00
Jenkins
9648cdd84d Merge "Move puppet-trove to Stackforge" 2014-07-04 08:04:43 +00:00
Jenkins
86573ce56f Merge "File resources use content not template." 2014-07-03 22:54:44 +00:00
Jenkins
1105933c8f Merge "Only run relevant puppet apply tests" 2014-07-03 22:45:19 +00:00
Clark Boylan
714c179c0e File resources use content not template.
Make the static.o.o os_loganalyze wsgi.conf file resource use content
parameter with the template() function as template is not a valid
parameter for this resource.

Change-Id: Ic9e71b47bb6b9db99342d368d547c95f9d0fd8d1
2014-07-03 15:44:16 -07:00
Jenkins
ce2bc2bf12 Merge "Ensure there is a slash in the object prefix" 2014-07-03 22:22:24 +00:00
Jenkins
629d146fea Merge "Add in wsgi.conf for os-loganalyze" 2014-07-03 22:15:46 +00:00
James E. Blair
38d62b3030 Only run relevant puppet apply tests
Associate an OS with each node defined in site.pp so that the puppet
apply test will only test nodes apprapriate to the node the test
is running on.

Fix remaining errors related to this test, and make it vote.

Also, start running the centos6 version regularly
(which is still non-voting).

Change-Id: I26722dce15589c982af5de36f8ccf42666d29f2b
2014-07-03 15:11:23 -07:00
Joshua Hesketh
28be6108c9 Ensure there is a slash in the object prefix
zuul sends the destination address without a trailing slash.
This is because the LOG_PATH does not contain one.

Check to see if we need to add a slash to object paths before
pushing to swift

Change-Id: I3e43c4ea266b57028fcaf9aa5fd09f1f5e37c306
2014-07-03 14:24:28 -07:00
Joshua Hesketh
df4f93b891 Add in wsgi.conf for os-loganalyze
Configure to use the read only swift creds that pair up with the read
write creds used to push the files.

Change-Id: I53252b3ed0d596b3fe36caef179f253bde1739cb
2014-07-03 14:24:25 -07:00
Jay Faulkner
61810813b8 Fix upload to not have a redundant directory
The existing config creates a bad URL:
http://tarballs.openstack.org/ironic-python-agent/coreos/
ipa-coreos.tar.gz/ipa-coreos.tar.gz -- this is an attempt to prevent
duplicating the ipa-coreos.tar.gz.

Change-Id: I7f17874aaa74e83a46cd821ac409cf4e045e128d
2014-07-03 13:34:38 -07:00
Sergey Skripnick
55e9003edc Publish generated html tests results
Rally integrated tests are done as usual unittests which runs cli
commands by various python helper methods. Results are generated
by subunit2html script.

Change-Id: I81d6ebcdb5c57236d7644aefdc58635a48c7edcc
2014-07-03 23:23:46 +03:00
Spencer Krum
5b3631a334 Removing extra parens
Change-Id: I2588f686190ee85eafdaeb1ddbda29ec40e628c1
2014-07-03 11:36:32 -07:00
Jenkins
b2a5702f9a Merge "Put the trusty test in the Ubuntu section" 2014-07-03 18:18:16 +00:00
Monty Taylor
452c978b43 Put the trusty test in the Ubuntu section
Turns out trusty is not a RedHat release.

Change-Id: Ife10c2c2cc83fc83a8f02a7f43fca26c16da2b1b
2014-07-03 11:02:59 -07:00
Jenkins
91958180de Merge "Cleanup manual jobs" 2014-07-03 18:00:30 +00:00
Jenkins
62271a2679 Merge "Allow site.pp to manage ca and ca_sever in puppet.conf" 2014-07-03 17:30:58 +00:00