195 Commits

Author SHA1 Message Date
Jesse Keating
1d41039356 Remove bluebox cloud
This cloud is being decommissioned.

Change-Id: I26b51425d21e3ee86eb36763e1dedfd65e78d2b7
2017-06-29 17:14:35 -07:00
Paul Belanger
dc0cf8acbb Fix puppet-apply tests
Puppet is now throwing an error about this for centos-7 unit tests.

Add empty SSH key for krotscheck.

We also need to make sure puppet has been properly installed, this is
because we have recently removed puppet from our diskimages.

Change-Id: I8bcaddd045be3f81de5c2481e0de6a8526c97a91
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-05-01 16:35:03 +00:00
Jenkins
13a530c9a4 Merge "Ignore release bot account in owners example" 2017-04-25 17:26:27 +00:00
Paul Belanger
e72ed2fe58
Create hosts file for ansible-playbook
Be explicity with our inventory file, to avoid ansible-playbook from
skipping hosts.

Change-Id: I29260bd97432a443e5989fa4a883e8e8d37307fd
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-04-18 13:40:51 -04:00
Colleen Murphy
2a20fbb52b Fix puppet-apply test for Debian Jessie
The version of puppet 3.x in Debian Jessie is 3.7.2, which seems to be
unable to read the modulepath setting from environment.conf. Since we
only have the one environment, the quick fix is to link the module into
the standard module path.

Change-Id: I6f4fa87fa4941c29abf37c277f5ce895a51945bc
2017-03-26 00:32:19 +01:00
Jeremy Stanley
327f444818 Add human name to sample of invites from address
Add a human name in the invites sample configuration's from address
value, since this will cause messages to appear with a friendlier
from name than just a raw E-mail address.

Change-Id: Idf16904bcd56692f3a82e41cb52201ed2223fdfd
2017-03-06 21:01:47 +00:00
Jeremy Stanley
182ef2d2e0 Eat the extra leading newline in invites
In the sample settings file, backslash-continue the string literal
opening to avoid introducing an extra leading newline in the
resulting message body.

Change-Id: Ief61f69acb5299ba324af8a897ea4f96fa47711d
2017-03-06 21:00:04 +00:00
Jeremy Stanley
6bfb87071e Use PYTHONIOENCODING=utf-8 for invites invocation
Since the send.py script for invites uses print to emit progress
including the names of contacts to which messages are sent,
redirecting stdout of the script to a local file can result in
encoding errors if some of the names include non-ASCII codepoints
(but not when stdout is your interactive terminal). Setting
PYTHONIOENCODING=utf-8 in the calling environment works around this
nicely.

Change-Id: I52b70c64f8b3a20da5143b31c5090192b0c75c99
2017-03-06 20:57:26 +00:00
Jeremy Stanley
97b50088dd Remove extra sample ATCs file
There only needs to be one sample ATCs file for the invites
mass-mailer, so remove the redundant one which isn't referenced in
the README file. This should help prevent people editing the wrong
sample and then performing a dry-run with the unmodified one.

Change-Id: I61e90ad085e89c466053858518db09a414a07792
2017-03-06 20:18:21 +00:00
Jeremy Stanley
53bb44da81 Ignore release bot account in owners example
The owners.py script is used to generate electoral rolls. It has
example usage comments which previously skipped reporting the
OpenStack Proposal Bot account used to push general changes into
code review, so add the OpenStack Release Bot account there as well
since it also pushes some release-oriented changes.

Change-Id: I98607b9adb8d2c6535beab2879e24097d32434e7
2017-02-28 17:17:16 +00:00
Tristan Cacqueray
31b9fc7ba3 Allow importing the owner script.
This change modifies the usage of the script so that it can be imported by
the election module. It also fixes maketrans support for python3.

Change-Id: Ie3b602237625e11651825abc8feb38caa73e9632
2017-01-30 01:59:28 +00:00
Jenkins
6969569a38 Merge "Fix logstash-filters test" 2017-01-19 19:11:05 +00:00
Paul Belanger
cac41d1314 Fix typo in nodepool-builder.logging.conf
Sadly, I broke things.

Change-Id: I7f1aa09d0a9bfddea710f571203a26c0f943f4df
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-11-29 10:18:09 -05:00
Paul Belanger
f46e0e4c01 Add kazoo logger for nodepool-builder
Kazoo client is very verbose for debug output, default to INFO.

Change-Id: Iff2682d98738e2df2acda11ac2dbcb2706262256
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-11-28 22:08:53 -05:00
Jenkins
f724dab4a3 Merge "Check number of meetbot channels" 2016-11-23 08:22:21 +00:00
Ian Wienand
82773ab56c Add image upload filters for nodepool
This adds loggers and handlers for each provider in the nodepool
config file for separate image upload logs on the nodepool host.

This doesn't regenerate the file yet.  It won't do anything until the
dependent change to nodepool starts generating upload logs with logger
names that match these.

Change-Id: Ic80e532891f039e0f835847ddfbae38f1ce3cd8a
2016-11-15 03:55:49 +00:00
Andreas Jaeger
4139c901d8 Check number of meetbot channels
Check that we do not have more than 120 channels setup for meetbot.

Change-Id: Ib5b948c68691ec959d4826a2cdf28f3e50631e60
2016-11-02 20:45:06 +01:00
K Jonathan Harker
74a92c4645 Fix logstash-filters test
In order to run the script directly in the test, the script needs to
have the executable bit set. Currently, the test is failing with a
"Permission denied" error when attempting to run the script.

We also need to run install_modules.sh in the logstash-filters test, so
move that invocation to the shared prep-apply.sh script.

The vcsrepo puppet define doesn't understand revisions of the form
"refs/zuul/foo", so instead parse the HEAD sha and pass that to vcsrepo.

Finally, we need to ensure that $elasticsearch_nodes is populated with
an array, otherwise the function @elasticsearch_nodes.map in the
output.conf template will fail.

Change-Id: Ic1ab6d04232abb3cf347f0d27afbf9172f62b0e4
2016-10-12 09:43:26 -07:00
Clark Boylan
8b642ecacc Run a primer puppet run before parallel puppet
We are seeing races in the puppet apply test to create
/opt/system-config/hieradata. Avoid this by running a simple hello world
puppet manifest prior to running all of our test manifests in parallel.
This should force the ansible puppet role to populate all the things on
disk first avoiding races.

Change-Id: If3946f561535ba315f018ab3122dcde56144240f
2016-10-07 11:12:00 -07:00
Jenkins
4a0661aac8 Merge "Work around Gitweb encoding in who-approves script" 2016-10-06 17:56:23 +00:00
James E. Blair
e82731f0f3 Run ansible apply test in parallel
Change-Id: Ic5b5ef5ca115ca244ebf86079f9b192fbb13fad6
2016-10-04 15:29:25 -07:00
James E. Blair
a01bec1fc6 Use ansible for puppet apply test
This is needed since the hiera configuration is in the ansible
role.

Have puppet append its output directly to our per-test output file.

Rename that file with a FAILED suffix for easy identification when
looking at the results in the published log directory.

Change-Id: Ie2a028b9e0179168d279bcf33de7f997cdfdbc8d
Depends-On: I0db01d128258f78e9b196354799a80774f6c6808
2016-10-04 22:29:00 +00:00
Jeremy Stanley
d12740116f Be more careful checking the change submitted date
While rare, it _is_ possible for changes to be in a merged state in
Gerrit while lacking a submitted datestamp. For example,
https://review.openstack.org/274113 was merged in a strange way that
left it with no record of merge submission. We had fallback error
handling in owners.py to report this condition, but neglected an
exception path in the previous implementation which would cause the
script to bail early rather than falling through to that error
handler. Now it should use the submitted date if one is present, and
report an explicit warning (including change and owner IDs) for any
where it is not.

Change-Id: I1a40959fdd14dfef720c32e3c87ff5bbde7432df
2016-09-12 23:05:49 +00:00
Jeremy Stanley
65be96787c Work around Gitweb encoding in who-approves script
The encoding applied by responses from Gitweb are buggy, and
requests must be told to assume UTF-8 in the who-approves.py script
before attempting to parse it with pyyaml.

Change-Id: Icbabf582516a340849bd5ed9152a3ed9497d6419
2016-08-30 18:49:01 +00:00
Jenkins
71016bb569 Merge "Add a script to list change owner statistics" 2016-08-30 16:02:33 +00:00
Jeremy Stanley
791769fbba Add a script to list change owner statistics
With the recent upgrade to Gerrit 2.11, changes in its database
schema require updates to our "ATC" generator tools. However, the
REST API in 2.11 is complete enough that it can provide all the
required data, so replace the old MySQL query and SSH API based
tooling which required database access with something simpler to
run.

This new implementation retains the data model of its predecessor
(in other words, it tracks "owners" of merged changes in Gerrit as a
best-effort proxy for identifying contributors who are also
foundation individual members). The new script should be extensible
enough that we can further change this model at a later time, with
consensus from the technical committee. Further, unlike or earlier
method, anyone with a Gerrit account can now generate technical
election rolls, contact lists for Summit registration discount code
mail merges, and so on.

Change-Id: I6df798fc9e7fc4ff59972aff39c2e37f8c28d776
Signed-off-by: Jeremy Stanley <fungi@yuggoth.org>
2016-08-16 02:53:41 +00:00
Jenkins
e929803e23 Merge "Add support for logstash-filter integration tests" 2016-08-10 22:17:42 +00:00
Adrien Cunin
a62a7ec2ae Handle non-ASCII characters in body and subject
Change-Id: I522482c9d8cca1493206988694c8d497bc9d32d5
2016-08-02 16:12:32 +02:00
Mikhail S Medvedev
0e9a9b9f6e Fix shebang for modules.env sort check script
It is obviously missing "python" which makes it not possible to run on
its own. It works with tox because tox.ini explicitly invokes it with
"python {toxinidir}/tools/sorted_modules_env.py".

Change-Id: I6eab942660d69eacda95572c7d2077687087b7c7
2016-07-21 11:52:40 -05:00
Jenkins
74d6d75251 Merge "Add simple script to help debug shade image uploads" 2016-07-19 00:44:47 +00:00
James E. Blair
b7550ab637 Commit transaction in delete-gerrit-spam
Also, print an indication when the DB is modified.

And get rid of a silly loop.

Change-Id: Ib0b25d51f389413ab255fd2332fcf211aeabec78
2016-07-13 10:51:48 -07:00
James E. Blair
852bc14bce Add a script to delete Gerrit spam comments
Change-Id: I1e79a0a50a2166660b601dfe2d886f00d7469c75
2016-07-13 09:37:26 -07:00
Jenkins
e06b365bb9 Merge "Filter nonexistent groups in who-approves.py" 2016-07-01 13:43:38 +00:00
James E. Blair
21ebdae7ff Remove jenkins playbooks and tools
Change-Id: Ida59078c8b4d8af5057fddbbfde7e3249b48839b
2016-06-15 15:00:40 -07:00
K Jonathan Harker
166b00c17f Add support for logstash-filter integration tests
Add a script for integration testing with
openstack-infra/logstash-filters and refactor the apply-test script to
leverage much of the prep work done there.

Also add some needed parameters to install arbitrary versions of the
logstash-filters repo.

Change-Id: Ifcc7fb13c4fb21986e33327487c739966e4bb107
2016-05-25 14:06:15 -07:00
Monty Taylor
cada3ba846 Add FIP cleaning script
While it's hopefully not useful for much longer, this is the script that
safely cleans FIPs from nodepool clouds that use neutron FIPs.

Change-Id: I6f6f2c5f119a40060f46ea1f244a65601f8b7bb9
2016-05-06 19:43:35 -07:00
Jeremy Stanley
31eab4a00d Filter nonexistent groups in who-approves.py
More recent versions of Gerrit (somewhere between the 2.8 we were
running and the 2.11 to which we upgraded) switched some common
groups to be virtual routines, for example the Registered Users
group, so they no longer appear in the groups list. However we
should also not be counting members of these virtual groups as
approvers anyway (even though in the case of the sandbox repo they
are), so filter them out of the assembly loop in who-approves.py to
prevent it from breaking when it encounters them in an ACL.

Change-Id: Ibb73b68e6338cd2fe2e18c09993d6e02b03c312a
2016-04-12 18:21:05 +00:00
Monty Taylor
ee2eebc23d
Add simple script to help debug shade image uploads
A useful step when debugging image uploads is do to it directly using
shade. This is a script to facilitate that.

Change-Id: I8ae44cb5bf1eb90180afee1dac70fbbc4be4a639
2016-04-11 09:03:21 -05:00
Jenkins
ab4953d9f8 Merge "Cleanup of nodepool builder logging" 2016-03-17 01:07:11 +00:00
Paul Belanger
ae2b68c4b7 Run puppet-apply on debian jessie jenkins slaves
Change-Id: I4e876f997324bdb43732bec26067d88531b587d5
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-03-16 20:15:18 -04:00
Ian Wienand
968f09bfa9 Cleanup of nodepool builder logging
We can use textwrap to break up the ridiculously long lines in the
logging configuration (with less images, it's less ridiculous than it
used to be, but it's still easier to parse).  Only trick is to put
spaces between the arguments to give it somewhere to split (and better
for readability) and stop it splitting on words/hyphens.

Change-Id: I04840e98b0564dc531b74b96e8595f9d18b284af
2016-03-17 09:37:23 +11:00
Jenkins
1818e513c6 Merge "Add a simple LP OpenId reverse lookup utility" 2016-03-11 11:03:50 +00:00
Monty Taylor
e8e201cc75 Add a playbook and script for doing adhoc puppet
Running puppet remotely in an ad-hoc manner on disabled hosts is mildly
complex. To facilitate, have a wide open playbook that we always run
with --limit - and a shell script to help us type less.

Change-Id: I629072dcada38d0465d351b1b99828466405372f
2016-03-09 14:23:49 -06:00
Jeremy Stanley
933bd0406c Add a simple LP OpenId reverse lookup utility
Change-Id: Ibe1705bc53a48aa6c23f095ae9118d2d367aea78
2016-02-29 21:09:51 +00:00
Jenkins
478eaa8053 Merge "Add Date and Message-ID to summit invites" 2016-02-26 11:09:11 +00:00
Spencer Krum
16e56fce9d Script to generate dns for infracloud
This script makes management of 100+ dns names more realistic
It only outputs commands to rackdns, it does not run them

Change-Id: I48ecaca79eb1cd274f102da6eb3592a292b7a5fb
2016-02-25 11:26:48 +11:00
Jenkins
70e94d8606 Merge "Add helper script to delete Gerrit groups" 2016-02-12 21:24:02 +00:00
Clark Boylan
8ed863ad9d Provide separate nodepool builder log config
Now that the nodepool builder is running as a separate daemon it needs
its own log config file. Move the auto generated nodepool logging config
stuff over to the new builder logging config as we can manage the main
daemon's logging config by hand trivially now.

Depends-On: I013835621dfbc311a0f7bd7c957b7d4656dfa628
Change-Id: Ic1da30eab949876e5bd6c88e83979bdedc6dd50a
2016-01-29 10:20:40 -08:00
Khai Do
61dfce7390 Add helper script to delete Gerrit groups
Gerrit is missing a feature to remove Gerrit groups. This is a
helper script to remove the group from the database.

Reference:
  https://code.google.com/p/gerrit/issues/detail?id=44

Change-Id: I1cb6cf852622fa5697c64666b132ac2205120595
2016-01-21 16:06:57 -08:00
Jeremy Stanley
192414e957 Add Date and Message-ID to summit invites
The mail merger for summit invites includes Date and Message-ID
headers, because Crocker said so in 1977 that's why.

Change-Id: I2105fe4cd04b7b2042c9e32888cb1f094697d7bf
2016-01-14 00:07:47 +00:00