14630 Commits

Author SHA1 Message Date
Zuul
65d9a8739a Merge "Skip mirroring live and jeos images for opensuse" 2019-04-11 14:09:10 +00:00
Zuul
f028966fd3 Merge "Update AFS servers to puppet 4" 2019-04-10 23:27:10 +00:00
Zuul
8f9c2aada5 Merge "Update review.openstack.org to puppet 4" 2019-04-10 22:02:31 +00:00
Zuul
f66f1b3d47 Merge "Enable gerrit replication.autoReload for review" 2019-04-10 16:17:47 +00:00
Zuul
8dd7f6cf7b Merge "Add #openstack-uk to statusbot's list of channels" 2019-04-10 03:57:41 +00:00
Zuul
a83ecc7ed1 Merge "letsencrypt: split staging and self-signed generation" 2019-04-10 02:44:11 +00:00
Ian Wienand
86c5bc2b45 letsencrypt: split staging and self-signed generation
We currently only have letsencrypt_test_only as a single flag that
sets tests to use the letsencrypt staging environment and also
generates a self-signed certificate.

However, for initial testing we actually want to fully generate
certificates on hosts, but using the staging environment (i.e. *not*
generate self-signed certs).  Thus we need to split this option into
two, so the gate tests still use staging+self-signed, but in-progress
production hosts can just using the staging flag.

These variables are split, and graphite01.opendev.org is made to
create staging certificates.

Also remove some debugging that is no longer necessary.

Change-Id: I08959ba904f821c9408d8f363542502cd76a30a4
2019-04-10 08:47:32 +10:00
Zuul
97e0086a9c Merge "Really add graphite01.opendev.org certificate details" 2019-04-09 20:26:24 +00:00
Zuul
98e3e34218 Merge "Add rewrites for whitelabeled legacy git sites" 2019-04-09 19:19:45 +00:00
Jeremy Stanley
addec0df6b Add rewrites for whitelabeled legacy git sites
The Ariship, StarlingX and Zuul git sites "hide" the namespaces of
their repositories, so need additional rewriting to readd them when
redirecting to the OpenDev Gitea service. In an effort to avoid
rewrite loops, pattern match them on specific repository name
prefixes so they won't match the namespaces being inserted.

Change-Id: I0a19393147eca5d75b286dfb8bda5665f31a2a2b
Task: #29705
2019-04-09 18:14:04 +00:00
Zuul
2da4255e33 Merge "Skip installing puppetlabs repos if they exist" 2019-04-09 16:43:45 +00:00
Zuul
459961522f Merge "Set ansible_python_interpreter for bridge.o.o" 2019-04-09 16:15:04 +00:00
Ian Wienand
72b4b868ab Skip installing puppetlabs repos if they exist
Currently ansible fails on most puppet4 hosts with

 TASK [puppet-install : Install puppetlabs repo] ********************************
 fatal: [...]: FAILED! => {"changed": false, "msg": "A later version is already installed"}

As described inline, the version at the "top level" we are installing
via ansible here is actualy lower than the version in the repo this
package installs (inception).  Thus once an upgrade has been run on
the host, we are now trying to *downgrade* the puppetlabs-release
package.  This stops the ansible run and makes everything unhappy.

If we have the puppet repo, just skip trying to install it again.

We do this for just trusty and xenial; at this point we don't have any
puppet5 hosts (and none are planned) and I haven't checked if it has
the same issues.

Change-Id: I55ea8bfbfc40befb1d138e9bc0f95b120f8f5dbd
2019-04-09 18:30:13 +10:00
Zuul
713b98298e Merge "Don't manage puppet.conf during puppet-install" 2019-04-09 03:44:14 +00:00
Ian Wienand
00efd089a2 Really add graphite01.opendev.org certificate details
This file was accidentally dropped from
I3e762d071cc609856950898b36f1903fe52840a6 during a rebase.

Change-Id: Iabc1db2aa029d7ff73b742ed63d367d8daa39187
2019-04-09 12:06:23 +10:00
Zuul
534f1b368d Merge "Add graphite01.opendev.org letsencrypt configuration" 2019-04-09 00:33:25 +00:00
Zuul
693fe27610 Merge "letsencrypt : minor updates" 2019-04-08 23:02:16 +00:00
Zuul
f139a81994 Merge "letsencrypt support" 2019-04-08 22:43:54 +00:00
Zuul
9ed2297b2e Merge "Update hieraedit for python3" 2019-04-08 18:06:41 +00:00
Zuul
0c3eff57e9 Merge "Install latest grafana" 2019-04-08 17:45:31 +00:00
Clark Boylan
0269710c86 Don't manage puppet.conf during puppet-install
The ansible-role-puppet role manages puppet.conf for us. These two roles
are currently fighting each other over the presence of the server line
in puppet.conf. Avoid this by removing the removal of this line and the
templatedir line from the new puppet-install role since
ansible-role-puppet was there first. Basically just trust
ansible-role-puppet to write a working puppet.conf for us.

Change-Id: Ifb1dff31a61071bd867d3a7cc3cbcc496177e3ce
2019-04-08 10:09:35 -07:00
Zuul
a9fd6980d6 Merge "Remove no longer used logstash config" 2019-04-08 14:55:27 +00:00
Zuul
99d9b76398 Merge "Disable github rate limit logging" 2019-04-08 14:55:25 +00:00
Zuul
2226ab5c98 Merge "Remove zonefile from nsd config" 2019-04-07 23:22:12 +00:00
Clark Boylan
90e867b0e3 Remove no longer used logstash config
This created confusion when updating configs to handle journald. Remove
the unused files and update docs to point at the proper config location.

Change-Id: Ifd8d8868b124b72a86cf7b5acb30480e72b903ed
2019-04-05 17:29:24 -07:00
Zuul
4436901673 Merge "Run python with jemalloc in containers" 2019-04-05 23:22:05 +00:00
Zuul
9d14ea534c Merge "Enable gerrit replication.autoReload for review-dev" 2019-04-05 23:20:33 +00:00
Zuul
6298cbd1d3 Merge "Remove /hosts from log outputs" 2019-04-05 23:13:43 +00:00
Zuul
029c81a84a Merge "Add a stop timeout to gitea docker-compose up" 2019-04-05 21:58:42 +00:00
Zuul
ade72bdd6a Merge "Add --flush-cache to launch.py ansible" 2019-04-05 20:59:39 +00:00
Zuul
a70cbfc89a Merge "Backup rotation procedure" 2019-04-05 20:49:00 +00:00
Colleen Murphy
a988c9253e Update AFS servers to puppet 4
Change-Id: I02d63fe1198a8d023814820602d425f891efdb73
2019-04-05 09:31:29 -07:00
Ian Wienand
45e88482fd Add graphite01.opendev.org letsencrypt configuration
This is an initial change for deploying letsencrypt certificates on
graphite01.opendev.org.  As we are still in a testing phase, use test
mode.

Change-Id: I3e762d071cc609856950898b36f1903fe52840a6
2019-04-05 16:50:59 +11:00
Ian Wienand
6088c788f1 letsencrypt : minor updates
Minor updates from review comments for
I1f66da614751a29cc565b37cdc9ff34d70fdfd3f

Change-Id: Ie011f768345ca3d8fdcc0b833f5645a635983d64
2019-04-05 16:50:34 +11:00
David Moreau Simard
02feafa962
Enable gerrit replication.autoReload for review
This enables automatic reload of the replication configuration for
review.

Depends-On: https://review.openstack.org/650049
Change-Id: I6f43e2e234a452a860fb669124589120476acb18
2019-04-04 12:48:16 -04:00
David Moreau Simard
8ed05c1340
Enable gerrit replication.autoReload for review-dev
This enables automatic reload of the replication configuration for
review-dev.

Depends-On: https://review.openstack.org/650049
Change-Id: I3be630339870d527bedcfbd84b8dc8084dc10f4b
2019-04-04 12:48:16 -04:00
Zuul
c3b25fa22c Merge "Upgrade lists.katacontainers.io to puppet 4" 2019-04-04 16:17:38 +00:00
Paul Belanger
e2c4d9b3ad Set ansible_python_interpreter for bridge.o.o
We don't have python2 on bridge.o.o, force python3.

Change-Id: Ie8eb68007c0854329cf3757e577ebcbfd40ed8aa
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2019-04-02 09:43:39 -04:00
Ian Wienand
afd907c16d letsencrypt support
This change contains the roles and testing for deploying certificates
on hosts using letsencrypt with domain authentication.

From a top level, the process is implemented in the roles as follows:

1) letsencrypt-acme-sh-install

   This role installs the acme.sh tool on hosts in the letsencrypt
   group, along with a small custom driver script to help parse output
   that is used by later roles.

2) letsencrypt-request-certs

   This role runs on each host, and reads a host variable describing
   the certificates required.  It uses the acme.sh tool (via the
   driver) to request the certificates from letsencrypt.  It populates
   a global Ansible variable with the authentication TXT records
   required.

   If the certificate exists on the host and is not within the renewal
   period, it should do nothing.

3) letsencrypt-install-txt-record

   This role runs on the adns server.  It installs the TXT records
   generated in step 2 to the acme.opendev.org domain and then
   refreshes the server.  Hosts wanting certificates will have
   pre-provisioned CNAME records for _acme-challenge.host.opendev.org
   pointing to acme.opendev.org.

4) letsencrypt-create-certs

   This role runs on each host, reading the same variable as in step
   2.  However this time the acme.sh tool is run to authenticate and
   create the certificates, which should now work correctly via the
   TXT records from step 3.  After this, the host will have the
   full certificate material.

Testing is added via testinfra.  For testing purposes requests are
made to the staging letsencrypt servers and a self-signed certificate
is provisioned in step 4 (as the authentication is not available
during CI).  We test that the DNS TXT records are created locally on
the CI adns server, however.

Related-Spec: https://review.openstack.org/587283

Change-Id: I1f66da614751a29cc565b37cdc9ff34d70fdfd3f
2019-04-02 15:31:41 +11:00
Ian Wienand
6256732c10 Remove zonefile from nsd config
The zonefile isn't required in the config file as we are just
transfering from adns1.  Since we don't create the directory for the
files, it results in warnings in the nsd logs -- this can be a
confusing red-herring in a debugging situation.

Change-Id: I3e16a359549707a4a3967f580161dec9e71ab689
Related-Bug: https://www.nlnetlabs.nl/bugs-script/show_bug.cgi?id=4244
2019-04-02 13:20:01 +11:00
Ian Wienand
ce7d04ddea Remove /hosts from log outputs
Change I754637115f8c7469efbc1856e88bbcb6fb83b4ce moved a bunch of log
collection to use "stage-output".  This uses "fetch-output" which
automatically puts these logs in hostname subdirectories; but it does
not have an option to put it in hosts/hostname as we were doing with
the other logs.

Although we could add such support, it probably doesn't make sense as
most other multinode jobs will have the same layout with the host logs
at the top level.  Remove the intermediate "/hosts/" directory on
system-config jobs so all logs remain at the top level, and we don't
have this confusing split as to where logs are for each host.

Change-Id: I56bd67c659ffb26a460d9406f6f090d431c8aa79
2019-04-02 13:20:01 +11:00
Colleen Murphy
db0cf87ddb Update review.openstack.org to puppet 4
Change-Id: I841bae26862d4da41849835bb9f9548a2011cc95
2019-04-01 14:54:04 -07:00
Colleen Murphy
9a7172ab8a Upgrade lists.katacontainers.io to puppet 4
Change-Id: Ic0235ffec7d65a30a44fb518414e872a44b99f37
2019-04-01 14:53:42 -07:00
Dirk Mueller
432a253cc6 Skip mirroring live and jeos images for opensuse
The only thing used in the CI is the actual repomd
repositories located under repo/{non-,}oss.

In Leap 15.0 over the last few months various images
were added, but we don't need them. Remove them
from the mirroring. The structure looks like this:

  distribution/leap/15.0/:
    - jeos
    - live
    - repo

Change-Id: I00b888b4b11313d83c0025c388937c13a69b1da5
2019-03-29 08:38:35 +01:00
Zuul
0e206c8ce5 Merge "master-nameserver: Add unmanaged domains; add acme.opendev.org" 2019-03-28 23:42:37 +00:00
Zuul
7b6db4f008 Merge "Use adns group in base.yaml" 2019-03-28 23:42:35 +00:00
Zuul
e55fef3a9c Merge "Add fake DNSSEC keys for zones" 2019-03-28 23:42:34 +00:00
Zuul
a5a26f0264 Merge "Add monitoring for filesystems other than root" 2019-03-28 22:35:10 +00:00
Zuul
2af483a167 Merge "Be permissive with tumbleweed mirroring for now" 2019-03-28 15:59:48 +00:00
Zuul
839ad2df18 Merge "Stop trying to mirror Master openSUSE_Leap_42.3" 2019-03-28 15:33:33 +00:00