15370 Commits

Author SHA1 Message Date
Ian Wienand
97c4735129 Move afsmon to mirror-update.opendev.org
This migrates the afsmon script from puppet deploying on
mirror-update.openstack.org to ansible deploying on
mirror-update.opendev.org.

There is nothing particularly special and this just a straight install
with some minor dependencies.  Since we have log publishing running on
the opendev.org server, we publish the update logs alongside the
others.

Change-Id: Ifa3b4d59f8d0fc23a4492e50348bab30766d5779
2020-02-12 14:38:48 +11:00
Ian Wienand
7b7c36711c afs-release: fix cron job output capture
Fix the >> 2>&1 order from the cron job in
I62ae941e70c7d58e00bc663a50d52e79dfa5a684 so the logs gets captured.

Change-Id: I6414e95766c7a99d09cadfc853e50d5cb45dda34
2020-02-11 11:49:43 +11:00
Zuul
3c13f523a1 Merge "Allow for periodic afs releases from mirror-update" 2020-02-10 23:51:36 +00:00
Ian Wienand
fbb9790d49 Allow for periodic afs releases from mirror-update
This is a migration of the current periodic "vos release" script to
mirror-update.opendev.org.

The current script is deployed by puppet and run by a cron job on
afsdb01.dfw.openstack.org.

My initial motivation for this was wanting to better track our release
of these various volumes.  With tarballs and releases moving to AFS
publishing, we are going to want to track the release process more
carefully.

Initially, I wanted to send timing statistics to graphite so we could
build a dashboard and track the release times of all volumes.  Because
this requires an additional libraries and since we are deprecating
puppet, further development there is unappealing and it would better
live in ansible.

Since I6c96f89c6f113362e6085febca70d58176f678e7 we have the ability to
call "vos release" with "-localauth" permissions via ssh on
mirror-update; this avoids various timeout issues (see the changelog
comment there for more details).  So we do not need to run this script
directly on the afsdb server.

We are alreadying publishing mirror update logs from mirror-update,
and it would be good to also publish these release logs so anyone can
see if there are problems.

All this points to mirror-update.opendev.org being a good future home
for this script.

The script has been refactored some to

 - have a no-op mode
 - send timing stats for each volume release
 - call "vos release" via the ssh mecahnism we created
 - use an advisory lock to avoid running over itself

It runs from a virtualenv and it's logs are published via the same
mechanism as the mirror logs (slightly misnamed now).

Note this script is currently a no-op to test the deployment, running
and log publishing.  A follow-up will disable the old job and make
this active.

Change-Id: I62ae941e70c7d58e00bc663a50d52e79dfa5a684
2020-02-11 08:52:01 +11:00
Zuul
e6fb7a84fa Merge "Add irc bots for Multi-Arch SIG" 2020-02-10 17:09:05 +00:00
Zuul
1f67b8ed37 Merge "Add docs for deleting an AFS volume" 2020-02-10 17:09:04 +00:00
Monty Taylor
446a8917f8 Run apt-get autoremove after rm cloud-init
We remove cloud-init but we don't remove the stuff it sucks in.
Run autoremove to take care of that.

Change-Id: I6530d7444197ec763d3695020200c411aed545b4
2020-02-07 15:28:43 -06:00
Clark Boylan
0463609584 Add airship-citycloud mirror
This adds a mirror to the new airship citycloud region. Add the host to
the inventory and add necessary host vars for LE setup.

Depends-On: https://review.opendev.org/706573
Change-Id: I33cefe914911b4f5ce5e09e0329ba48e039ede64
2020-02-07 08:55:40 -08:00
Zuul
162a658bf8 Merge "Replace nb03.openstack.org" 2020-02-07 16:39:38 +00:00
Jeremy Stanley
bc0480756c Add missing Lets Encrypt certs to ssldomains list
A bunch of the sites we've started managing LE certs for are not
getting their expirations checked, so fix that. In particular, sites
recently moved off the multi-domain SAN cert for the old
static.openstack.org server (omitted the logs site as it's
deprecated), and many of the rebuilt CI mirrors (with the exception
of mirror01.gra1.ovh.opendev.org which is presently in a SHUTOFF
state for unknown reasons). Also add graphite which was previously
missed, and review-dev because we can now that it's no longer
sporting snakeoil.

When this merges, we're also going to start getting alerts for an
expired cert on mirror.gra1.ovh.opendev.org, unless someone gets a
chance to look into it first.

Change-Id: I98a98e0d2ff081c51c33d980274f3ee8c0266802
2020-02-07 15:29:50 +00:00
Ian Wienand
08707baff2 Replace nb03.openstack.org
Due to persistent, unresolved network issues between the London and US
cloud (that don't appear to happen the other way), we have decided on
a hard Brexit for nb03.o.o and started a new server in the US cloud :)

Change-Id: I6557a9f272351578216bc525b6ddaffcf625f9f3
2020-02-07 15:09:20 +11:00
Zuul
0d308a3d10 Merge "Add tarballs.<openstack|opendev>.org to static.opendev.org" 2020-02-07 00:22:20 +00:00
Clark Boylan
bd752a0bfe Keep only 7 days of records in ElasticSearch
We have been running out of disk recently with some indexes requiring
more than 400GB of space per index replica. Actual disk space
requirements are double that as we run with a replica. On top of that
the idea is that 5 of 6 elasticsearch nodes have enough space for all
our data so that we are resilient to losing a node.

Napkin math:

  400 * 10 * 2 = ~8TB of disk
  400 * 7 * 2 = ~5.6TB of disk

Each of the six ES nodes has 1TB of disk allocated to ES so 5.6TB should
get us just under the limit. Then for handling a node outage weekends
tend to not have as many records so our actual usage should be a little
lower.

Change-Id: Ie677bd47a9886870bc83876d2407742133299861
2020-02-06 13:50:56 -08:00
Ian Wienand
3fd6e16077 Add tarballs.<openstack|opendev>.org to static.opendev.org
Add these hosts to static.opendev.org, serving from AFS.  Note that
tarballs.openstack.org just redirects to static.opendev.org/openstack.

This should have no effect currently, it will only become live when we
switch DNS.

For more details see the thread at:

 http://lists.openstack.org/pipermail/openstack-infra/2020-January/006584.html

Change-Id: Ie56fac17ffaa91ee55be986de636485a58125a02
2020-02-06 08:24:16 +11:00
Zuul
7227bcf879 Merge "Add review-dev01.opendev.org" 2020-02-05 19:01:45 +00:00
Zuul
e1f75c92b2 Merge "Add Apache to Ansible for Gerrit" 2020-02-05 18:33:04 +00:00
Monty Taylor
cc619fe589 Add review-dev01.opendev.org
Add a new review-dev server on the opendev domain with LE support
enabled.

Depends-On: https://review.opendev.org/705661
Change-Id: Ie32124cd617e9986602301f230e83bb138524fdf
2020-02-05 09:58:25 -06:00
Zuul
efe546715b Merge "Add airship CI cloud" 2020-02-03 21:59:49 +00:00
Monty Taylor
4de5f79599 Add Apache to Ansible for Gerrit
When we run gerrit, we also need to run Apache.

Change-Id: Ia2f1494808bd29d83e041e224cb2eb5fc406a93b
2020-02-03 07:57:36 -06:00
James E. Blair
cfc1841c06 Add warning about kerberos key rotation
Change-Id: I9e4caf8feeb775c02208a5e5f1627f03a90e4211
2020-01-31 16:22:52 -08:00
Clark Boylan
9166780b54 Add airship CI cloud
This is a new cloud provided via citycloud that will add resources
capable of running Airship jobs. The goal is to use this as a stepping
stone to having Airship jobs run on our generic CI resources. This cloud
will provide both generic and larger resources to support this.

Change-Id: I63fd9023bc11f1382424c8906dc306cee5b3f58d
2020-01-31 14:46:02 -08:00
Ian Wienand
f62a75fae9 centos mirror: drop -p from rsync
This appears to be the same thing we saw in Fedora with
Id24196791f80cd99fe8a330fb2c7c6d893fc9995, somehow upstream
directories have started acquiring a setgid bit, which breaks AFS
mirroring

 rsync: failed to set permissions on "/afs/.openstack.org/mirror/centos/8/AppStream/aarch64/os": Permission denied (13)

and when we look

 chmod("AppStream/aarch64/os/Packages", 02755) = -1 EACCES (Permission denied)

Drop the "-p" so we don't try and replicate these permissions.

Change-Id: Ib5db052cdd23e39aecbeead15cf08d4bd7fcab38
2020-01-30 18:26:10 +11:00
Clark Boylan
71f952dc93 Switch more puppet testing to xenial
wiki, status, and single node ci should all run on xenial now. Switch
their testing to xenial from trusty.

Change-Id: I3a0c2faa47f2ec17809e3845c7226173188def63
2020-01-29 13:32:06 -08:00
Zuul
e28019282e Merge "Copy unminimized flot files" 2020-01-29 16:07:09 +00:00
Clark Boylan
8b51cc616a Copy unminimized flot files
yui-compressor is not happy with flot's jquery.flot.js file. These files
are actually pretty small especially when compared to our input json
data. Lets just serve them as is.

Depends-On: https://review.opendev.org/704716
Change-Id: Ibfd081bb73a6c352798a7822ab781c972ace4bc3
2020-01-28 16:41:07 -08:00
Ian Wienand
22c5561df3 openafs-client: add option for OpenAFS cache location
Our control plane servers generally have large ephemeral storage
attached at /opt; for many uses this is enough space that we don't
need to add extra cinder volumes for a reasonable cache (as we usually
do on mirror nodes; but there we create large caches for both openafs
and httpd reverse proxy whose needs exceed even what we get from
ephemeral storage).

Add an option to set the cache location, and use /opt for our new
static01.opendev.org server.

Change-Id: I16eed1734a0a7e855e27105931a131ce4dbd0793
2020-01-28 21:05:27 +11:00
Zuul
4d2b018ed9 Merge "Add service-static.yaml to cron run" 2020-01-28 06:43:42 +00:00
Ian Wienand
1c1195d0c4 Add service-static.yaml to cron run
I forgot this when adding the server previously, add it to the
periodic cron run too.

Change-Id: I3f0f4e666e5badf91e4a664ced9e891e89b8baa5
2020-01-28 12:46:23 +07:00
Zuul
e16a8d877d Merge "Add static01.opendev.org" 2020-01-28 01:37:19 +00:00
Ian Wienand
7ce0d0fb32 Add static01.opendev.org
Add this host for serving content from AFS.

The

 _acme-challenge.governance.openstack.org
 _acme-challenge.security.openstack.org

CNAMES should be in place for creating the certificates (added with
Ie1b92f06b71aa6069fe831b26ba1cc272ce4562c).

Also add a cert for the base server (static.opendev.org) since we
added the DNS entries for it.

Change-Id: I55e0ac7487b02f9a816ac486ed01b73f82b391a5
Story: #2006598
Task: #37757
Depends-On: https://review.opendev.org/704469
2020-01-28 11:30:18 +11:00
Clark Boylan
89b15fec21 Flot sources moved, update our minimization to accomodate
Flot sources moved from the repo top level dir into the source dir.
Accomodate this when we minimize and copy those js files.

Change-Id: I3522271361fc43550ac1c6dc2a690c5cc5ce9c64
2020-01-27 15:38:39 -08:00
Clark Boylan
cb00b967f7 Add new xenial status.openstack.org
Change-Id: I1876517992e5ab16b58fe9152458deb49c2ad807
2020-01-27 13:09:02 -08:00
Clark Boylan
a45278dbb0 Set rax api versions for volume and identity
Rax APIs don't support newer identity v3 or volume v2/v3. Set identity
to v2 so that catalogs can be listed and volume to v1 so that volumes
can be listed.

Change-Id: I6dddf93fb2c7b1a73315629e4a983a2d5a0142cc
2020-01-27 11:33:57 -08:00
Clark Boylan
83a422e180 Set gerrit digest auth in zuul config
Zuul is updating the default auth type for gerrit connections to better
reflect current Gerrit's expectations. We need to force digest instead
of basic auth in order to accomodate our older gerrit install.

Change-Id: I6ec64f0625abe0c9e3871a5d1942a35e1a58177c
2020-01-23 15:18:58 -08:00
Zuul
862147eaee Merge "Remove #openstack-merges" 2020-01-23 19:09:57 +00:00
Zuul
ff5bef016b Merge "Add linaro-us mirror" 2020-01-23 03:04:53 +00:00
Ian Wienand
5b09e09c60 kerberos-client: remove kstart requirement on CentOS
All our AFS release roles use "kinit" for authentication.  The only
scripts using k5start are the mirror scripts, but since that doesn't
run on CentOS we don't need it there.

This avoids us having to use EPEL or, on 8, an unsupported build.
Anything needing to be portable should use kinit from now on.

Change-Id: I6323cb835cedf9974cf8d96faa7eb55b8aaafd9a
2020-01-23 12:27:46 +11:00
Zuul
e038eccbc3 Merge "openafs-client: add centos8" 2020-01-23 00:59:05 +00:00
Ian Wienand
3f68936a0c openafs-client: add centos8
Add CentOS 8 support for the openafs client build

Change-Id: I8290cf1eed9ee8e4af44ac209502553944c52103
Depends-On: https://review.opendev.org/702348
2020-01-22 23:14:43 +00:00
Tobias Henkel
e35fcde591
Upgrade pip in python-builder and base
There was an issue in pip that prevented correctly caching locally
built wheels [1]. This has been fixed in recent pip versions so
upgrade pip in both images so image caching works correctly. This is
needed to unbreak nodepool images that fail to install the locally
built netifaces package.

[1] https://github.com/pypa/pip/issues/6852

Change-Id: Ibbe12bcc53253a80d0bafa3d09a20c49a3a2b784
2020-01-22 15:47:58 +01:00
Ian Wienand
9a75422145 Add linaro-us mirror
Change-Id: I4abf249fd385872f8ba56c3e41f99d160a68efcd
Story: #2007195
Task: #38358
Depends-On: https://review.opendev.org/703746
2020-01-22 20:17:53 +11:00
Zuul
50fde43dfb Merge "Add Linaro US cloud" 2020-01-22 00:41:21 +00:00
Zuul
dd56f80d9b Merge "Remove unused linaro credentials" 2020-01-22 00:41:20 +00:00
Ian Wienand
c3c96d3797 Add Linaro US cloud
Add the credentials for the newly provisioned us.linaro.cloud cloud

Change-Id: I0b81a8eeabec4e0b00258dc4e499c1d449b21681
2020-01-22 06:44:01 +11:00
Zuul
e00dd724c6 Merge "Add mailing list for OpenInfra Labs" 2020-01-21 17:20:41 +00:00
Ian Wienand
8296bf450c Remove unused linaro credentials
As a follow-on to Ie37abb4fd3eb3342b66ade52ab65024c420d7264 remove the
linaro credentials that were related to the (now removed) linaro-cn1
cloud.

Change-Id: Ia1e8dd3732164708c2e9fd82509e350829c438ba
2020-01-21 14:13:31 +11:00
James E. Blair
255f996916 Add docs for deleting an AFS volume
Change-Id: I1763eb2bf580591b68bf4e2853378331b8261293
2020-01-20 09:43:34 -08:00
Andreas Jaeger
77442e4e57 Remove #openstack-merges
This channel is unused, remove statusbot from it.

Depends-On: https://review.opendev.org/703421
Change-Id: Iedf8f72af21871ae35f998963e01d57b70122002
2020-01-20 16:55:05 +01:00
ricolin
9954a94caa Add irc bots for Multi-Arch SIG
Change-Id: Icb819f5e17bed18e3e1b59708ac7290f75e1e8bb
2020-01-20 14:36:44 +08:00
Andreas Jaeger
d0f59d19cc Remove openstackci-images for ubuntu-trusty
We're retiring ubuntu-trusty and thus do not need instructions on
uploading these images anymore, remove the openstackci-images section.

Change-Id: I2b1491836f29fa72bc6eda62e427084ac43b5e1a
2020-01-17 20:12:56 +01:00