14011 Commits

Author SHA1 Message Date
Colleen Murphy
b45e642f97 Turn on future parser for lists.katacontainers.io
The mailman puppet module is tested and seems to be working on puppet
4[1]. Turn on the future parser for lists.katacontainers.io, which hosts
fewer mailing lists than lists.openstack.org does.

[1] https://review.openstack.org/601464

Change-Id: Iea7fbabf7cee579dcd19d4deb4d7537ed1b13bd9
Depends-On: https://review.openstack.org/601831
2018-11-05 22:18:26 +01:00
Colleen Murphy
e9576c0677 Turn on the future parser for eavesdrop.o.o
eavesdrop.o.o runs a number of different sites and bots, so on the one
hand it is a slightly complex service, but on the other hand these
modules are quite simple and similar to each other. Meetbot, accessbot,
and statusbot have tests and seem to work fine on puppet 4. Ptgbot does
not have tests, but that's why we should try this out sooner rather than
later so we have time to correct any issues before the PTG.

Change-Id: Id1af4b3ebf04f34c381eab5f818815734a296f7b
2018-11-05 22:18:22 +01:00
James E. Blair
dae1a0351c Configure opendev nameservers using ansible
Change-Id: Ie6430053159bf5a09b2c002ad6a4f84334a5bca3
2018-11-02 13:49:38 -07:00
James E. Blair
90e6088881 Configure adns1.opendev.org server via ansible
Change-Id: Ib4d3cd7501a276bff62e3bc0998d93c41f3ab185
2018-11-02 13:49:38 -07:00
Clark Boylan
ab5c1944cc Simplify elasticsearch cluster groups.yaml membership
We run a cluster of elasticsearch nodes which may have additional
servers added to it or old servers replaced. Make this slightly easier
by matching them with a glob in groups.yaml so that we don't have to
edit this file to add new servers.

Change-Id: I8ce3e38f67c545642d561b2afdd6dbbfa677e67f
2018-11-02 12:20:20 -07:00
Clark Boylan
47bf937f8d Simplify git backend server groups.yaml membership
We run many git server backend nodes which may be replaced with new
servers. To simplify the process of adding or replacing git0* servers
stop explicitly listing them in groups.yaml and instead match them on a
glob.

Change-Id: I3dbf814122bbfc508b2a90a5f5a533226fa0bf8f
2018-11-02 12:20:20 -07:00
Clark Boylan
7427cc7a98 Simplify zookeeper groups.yaml membership
We run a cluster of zookeeper nodes. Lets match them with globs in
groups.yaml so that we don't have to edit groups.yaml if expanding the
size ofthe cluster or replacing nodes in the cluster.

Change-Id: Iff9048a9bc15e4f888e7caab54abb4d4a9d340d7
2018-11-02 12:20:20 -07:00
Clark Boylan
b53a03df68 Simplify nodepool groups.yaml membership
Replace all the explicit listings of nb01, nl01, etc with globs so that
we can launch new nodepool builders and nodepool launchers without
editing the groups file.

Change-Id: I3c32fb604109a3c65b2145b733fc0e2545e21045
2018-11-02 12:20:20 -07:00
Clark Boylan
9beb96838b Simplify mirror node listings in groups.yaml
Match the mirrors with a glob so that we can boot new mirrors in new
regions or replacements in existing regions without needing to
explicitly add them to groups.yaml first.

Change-Id: I3e7bf04a2d3a7602e46710840b0cec42c238c6c1
2018-11-02 12:20:20 -07:00
Clark Boylan
1947bfc3ef Simpligy logstash nodes in groups.yaml
Match logstash-worker and logstash.o.o nodes with globs. This allows us
to launch new servers without needing to add them to the groups file
first.

Note that logstash.o.o is currently hosted by logstash01.openstack.org
so the existing groups.yaml content is broken for this host.

Change-Id: Iea9b5815a31355925979e6d4da5c578a64af7972
2018-11-02 12:20:20 -07:00
Clark Boylan
5a98029ccc Cleanup zuul-executors in groups.yaml
Convert ze01, ze02, ze03, etc to ze[0-9]* so that we can launch new zuul
executors as necessary without updating the groups file.

Change-Id: Id9896e89d8bc821de003994a96ae11517a76145d
2018-11-02 12:20:20 -07:00
Clark Boylan
6273236b72 Cleanup zuul-mergers in groups.yaml
The zuul mergers do not run a webserver so we remove them from the
webserver group. Convert zm01, zm02, zm03, etc to zm[0-9]* so that we
can launch new zuul mergers as necessary without updating the groups
file.

Change-Id: Ibe8cbea02990378f4ee5ba7880ee0c8a4e9b7bb9
2018-11-02 12:20:20 -07:00
Clark Boylan
6096e0cf28 Remove mirrors from webservers in groups test
We removed the mirror nodes from the webservers group to fix iptables
rule application on the nodes. Unfortunately we didn't update our test
that tries to assert mirrors should be in the webservers group. Update
the test results fixture to remove webservers as a valid group for a
mirror node.

Change-Id: Iba18e54f4df4a36c0247f65642faacca9d195769
2018-11-02 12:20:20 -07:00
Jeremy Stanley
681574b352 Merge "Update etherpad group membership" 2018-11-02 18:12:01 +00:00
Jeremy Stanley
d874d4da63 Remove mirrors from the webservers group
The webservers group is meant to be mutually exclusive to any other
iptables modifications but was inadvertently expanded to include the
mirror servers by Iea8b2eb2e9c723aca06f75d3d3307893e320cced. Remove
the glob as it should not be there and is overriding the
mirror-specific firewall rules.

Change-Id: Ia1b702e5c9a2d433536edcec4bfaf6f47b1c0291
2018-11-02 18:02:43 +00:00
Clark Boylan
855e9cf5e0 Update etherpad group membership
Our etherpad servers now have digits so we need them to have digits in
the groups file. Also we have etherpad-dev group_vars that are different
than the etherpad group_vars values so add a group for etherpad-dev to
ensure the correct hiera data is used on the dev server.

Change-Id: I9e34ef7969b8a562192a29d98ead6fc55f71d5f2
2018-11-02 10:19:37 -07:00
Zuul
015eec18f3 Merge "Remove puppet config for opendev nameservers" 2018-11-02 15:54:28 +00:00
Zuul
2446e616d0 Merge "Add unittest for yamlgroup inventory plugin" 2018-11-02 15:47:35 +00:00
Zuul
e6f2ad0d8b Merge "Add yamlgroup inventory plugin" 2018-11-02 15:46:09 +00:00
Zuul
e8314158fc Merge "Make the pip3 role really install something" 2018-11-02 14:21:27 +00:00
Zuul
c1a1b56278 Merge "Install current ansible" 2018-11-01 22:10:16 +00:00
James E. Blair
61429518f2 Remove puppet config for opendev nameservers
These will be configured with ansible since the hosts run on
bionic.

Change-Id: I102eb6be179d84ae308d2a3cadd523bdfb2d8601
2018-11-01 14:22:45 -07:00
Ian Wienand
526a423dd2 Add unittest for yamlgroup inventory plugin
This mocks out enough of the Ansible inventory framework so we can
test the group matching against a range of corner cases as present in
the results.yaml file.

Change-Id: I05114d9aae6f149122da20f239c8b3546bc140bc
2018-11-02 08:20:02 +11:00
Monty Taylor
e998db36f2 Add yamlgroup inventory plugin
The constructed inventory plugin allows expressing additional groups,
but it's too heavy weight for our needs. Additionally, it is a full
inventory plugin that will add hosts to the inventory if they don't
exist.

What we want instead is something that will associate existing hosts
(that would have come from another source) with groups.

This also switches to using emergency.yaml instead of emergency, which
uses the same format.

We add an extra groups file for gate testing to ensure the CI nodes
get puppet installed.

Change-Id: Iea8b2eb2e9c723aca06f75d3d3307893e320cced
2018-11-02 08:19:53 +11:00
Zuul
c2b863cff1 Merge "Nodepool.o.o is no longer a thing, remove it" 2018-11-01 20:36:34 +00:00
Clark Boylan
0f8e7a91bb Nodepool.o.o is no longer a thing, remove it
We've only been using nodepool.o.o as a zookeeper server for the past
year or so. Last week we transitioned to a three node zookeeper cluster
and stopped using nodepool.o.o. This server has since been deleted.

This is the last bit of cleanup to remove it from config management.

Change-Id: I9d0363393ed20ee59f40b210ea14fb105a492e20
2018-11-01 12:09:08 -07:00
Zuul
6ac467caa4 Merge "Set ansible python version for opendev nameservers" 2018-11-01 17:44:21 +00:00
James E. Blair
2780973330 Set ansible python version for opendev nameservers
Change-Id: Icaee291e872b6a19793a1ba003e55a43f3898ea7
2018-11-01 09:20:26 -07:00
Zuul
26494b03d9 Merge "Hyperlink task footers" 2018-10-31 19:13:19 +00:00
Zuul
c488c48a9e Merge "Add opendev nameservers (2/2)" 2018-10-31 16:35:52 +00:00
Jens Harbott
fc2e7dbe01 Make the pip3 role really install something
It seems that the package module doesn't have a default value for the
state of a package. So not specifying it is essentially a no-op. Specify
state: present so that we really get the packages installed that we want
to have.

Change-Id: Ied9484c74922b9f48e14205b73ca95066a68a87f
2018-10-31 15:21:33 +00:00
Ian Wienand
4fa823414c Add puppet6 to apt-updates
Follow-on to I30385fcf59627bf6345f8c651941ddf31bec32e2

Change-Id: I5b91c9139f9871ac0e4b3db697eb0e69bb58c089
2018-10-30 12:27:29 +11:00
Zuul
f8e198bce1 Merge "Mirror puppet6 for bionic and stretch" 2018-10-30 00:03:23 +00:00
Zuul
27a882007e Merge "Adding openstack-browbeat" 2018-10-26 19:36:28 +00:00
Zuul
6ae47aebd9 Merge "Switch zuul scheduler to new zk cluster" 2018-10-25 14:36:05 +00:00
James E. Blair
4712bdf3f7 Add opendev nameservers (2/2)
This uses IP addresses to bootstrap serving opendev.org on these
servers.

Change-Id: I769097192583c4507b19b914e4c75c60948de1bf
2018-10-25 06:27:21 -07:00
Joe Talerico
b0f04db381 Adding openstack-browbeat
Adding the meetbot and statusbot to the openstack-browbeat channel.

Change-Id: Ibb2438438cf7508bfc4e70680446ed65f3cb69e6
2018-10-24 09:33:54 -04:00
Zuul
13f6d5f9ff Merge "Update clouds.yaml for citycloud with new auth info" 2018-10-23 13:10:55 +00:00
Monty Taylor
449158138e
Update clouds.yaml for citycloud with new auth info
citycloud is rolling out per-region keystone. There is a change with an
error in it in the latest openstacksdk, so put the right auth_url into
the files directly while we update it and release it again.

Additionally, Sto2 and Lon1 each have different domain ids. The domain
names are the same though - and that's good, because logical names are
nicer in config files anyway.

Restore the config for those clouds.

Change-Id: If55d27defc164bd38af2ffd1e7739120389422af
2018-10-22 18:57:55 -05:00
Clark Boylan
2c077aa2d3 Fix zk cluster members listing
First we convert from a hash to an array to list the zk cluster members.
Do this because the older puppet-zookeeper module we use doesn't support
hashes like newer releases do.

Second we convert from hostnames to IP addresses because the hostnames
were looked up in /etc/hosts to resolve to 127.0.1.1 which caused zk to
listen on 127.0.1.1 and the cluster members could not talk to each
other.

Change-Id: Id590eb535301b27ff0dcb27cf65ba85d61ed19a5
2018-10-22 16:22:03 -07:00
Clark Boylan
709e7c09cd Cleanup Citycloud Sto2
This region does not show up in catalog listings anymore and is causing
inventory generation for ansible to fail. This change removes Sto2 from
the management side of things so that we can get ansible and puppet
running again.

This does not cleanup nodepool which we can do in a followup once
ansible and puppet are running again.

Change-Id: Ifeea238592b897aa4cea47b723513d7f38d6374b
2018-10-22 13:47:01 -07:00
Clark Boylan
c8e0df2dc2 Configure zk\d to act as a cluster
You have to tell the zk servers what servers belong to the cluster to
have them act as a cluster. Currently all our servers are in mode
standalone as they do not know about the other servers.

Fix this by configuring the three servers as servers 1, 2, and 3 in the
zk config.

Change-Id: I985ac7387744498058f99859eb8445f885b8bbcc
2018-10-22 09:50:55 -07:00
Clark Boylan
0d502ae724 Switch zuul scheduler to new zk cluster
Switch the zuul scheduler to use our new zk cluster. Note this should
happen after the builders have switched and populated image data on the
new database cluster and at the same time as the launchers update.

This gets us off the old single node zk server running on trusty to
newer xenial based zk cluster with HA.

This change does update the config for mergers and executors for
consistency, but I believe that only the scheduler makes use of this
config today.

Change-Id: I132c176af188787cec3a5a562ffdc81f818c26b0
Depends-On: https://review.openstack.org/612441
2018-10-22 09:33:28 -07:00
Tobias Urdin
860983e97d Mirror puppet6 for bionic and stretch
Puppet 6.0 is now released and we want to start
testing this on bionic and stretch.

Change-Id: I30385fcf59627bf6345f8c651941ddf31bec32e2
2018-10-21 18:41:41 +02:00
Zuul
84123c60c8 Merge "Add a workflow overview for adding a cloud" 2018-10-20 15:19:45 +00:00
Clark Boylan
7e777a63b5 Don't install testinfra 1.17.0
testinfra 1.17.0 has a broken wheel on pypi that attempts to install
importlib regardless of the python version. Unfortunately this breaks
under python3 (and possibly under python2.7) as this is a python2.6 only
dependency. Avoid this trouble by not installing that package version.

I've filed https://github.com/philpep/testinfra/issues/380 upstream to
see if they can fix this.

Change-Id: I5cdfb8467cbc62cf729a9070589f5dcf5c794234
2018-10-19 14:00:07 -07:00
Ian Wienand
8a95c976e9 Add a workflow overview for adding a cloud
Add some details about how we integrate a new cloud into the
ecosystem.  I feel like this is an appropriate level of detail given
we're dealing with clueful admins who just need a rough guide on what
to do and can fill in the gaps.

Fix up the formatting a bit while we're here.

Change-Id: Iba3440e67ab798d5018b9dffb835601bb5c0c6c7
2018-10-19 16:38:00 +00:00
Zuul
e3a4d67e97 Merge "Run standalone geard for log processing" 2018-10-18 17:30:05 +00:00
Zuul
015e82e1eb Merge "Add opendev nameservers (1/2)" 2018-10-17 17:41:58 +00:00
Zuul
c7b7801b3b Merge "Add afs client docs for non Debuntu" 2018-10-17 00:22:26 +00:00