Commit Graph

33 Commits

Author SHA1 Message Date
Clark Boylan 9078f71fbb Stop submitting logstash/subunit gearman jobs
The openstack health server stopped working a few months ago and we
ended up shutting down the subunit workers and the health api server as
a result. This means we can stop submitting gearman jobs to process
subunit files.

Also about a year ago we indicated to OpenStack that we could keep the
logstash tooling running through the yoga cycle which is now over. We
haven't had any volunteers or help to continue running the ELK stack in
opendev so we're going to shut it down now that yoga is out the door.
Openstack did end up working with AWS to set up an opensearch
replacement which users can look to for log indexing of CI jobs in
OpenStack.

Change-Id: I5f0f3805e191f0cd6354285299ed33c42d3899fd
2022-04-12 13:03:37 -07:00
Marios Andreou b287fbfc6f Fix NODEPOOL_CENTOS_MIRROR for 9-stream
The 8 stream content is at [1] but for 9 stream the url is changed
to [2]

[1] http://mirror.iad3.inmotion.opendev.org/centos/8-stream
[2] http://mirror.iad3.inmotion.opendev.org/centos-stream/9-stream

Change-Id: Ic7572590884988d524a71bc400dff2b7dccf601e
2021-12-02 12:01:00 +00:00
Zuul 2aab7b25c4 Merge "submit-logstash-jobs: fix the new location of the zuul log_url" 2021-06-24 15:30:50 +00:00
Tristan Cacqueray 65ad0764ef submit-logstash-jobs: fix the new location of the zuul log_url
This change makes the role compatible with zuul-4.6.0

Change-Id: Ib5afe3c5e540aa498e3009c6756f53df9f5f3b07
2021-06-24 15:24:53 +00:00
Jeremy Stanley b6c00dbd94 Set a fallback VERSION_ID in the mirror-info role
Prepopulate the VERSION_ID from ansible's
ansible_distribution_major_version since in some cases it may not be
assigned in /etc/os-release (for example in debian/testing prior to
release). Under most circumstances, this will be overridden when we
later source the /etc/os-release file.

This also reverts commit 7ac676aaca.

Change-Id: Ieb3e068ae715ae2de058dff0d5d526527466f91e
2021-06-03 17:32:39 +00:00
Jeremy Stanley 7ac676aaca Test VERSION_INFO default for mirror-info role
Change-Id: Ie1e38d68ddda5d24c8a0fe0a6d1098bd89c28f0c
2021-05-13 12:59:59 +00:00
GomathiselviS 30d840ddbb Revert https://review.opendev.org/c/opendev/base-jobs/+/782864
This change was made to test https://review.opendev.org/c/zuul/zuul-jobs/+/773474 using base-test.
Now that the PR is merged, the changes made to test should be reverted.

Change-Id: I0e310dcbdb6c1e47f3575ef9da7d5560267ee3d9
2021-03-30 16:09:09 +00:00
GomathiselviS 53b90cb177 This is to test the changes made in https://review.opendev.org/c/zuul/zuul-jobs/+/773474
Change-Id: I4aeed61e5c016519d4ad02ea5cbb9b9e495c962c
2021-03-24 19:59:15 -04:00
Clark Boylan 080ecb4579 Set file modes explicitly
Ansible changed, then unchanged their behavior around file modes, but
being explicit is likely a good idea to handle any new future changes
from ansible.

We set modes generously (to 755 for dirs and 644 for files) to avoid
unexpected access problems. Note that depending on the perms in AFS this
may cause a perms ot update on existing dirs but that should be fine as
long as we aren't making them more restrictive.

Finally we skip two cases where modes are required by the linting rule
because they are tarball extraction steps and applying a single mode to
all dirs and files in a tarball doens't make a ton of sense.

Includes bumping linter configuration.

Change-Id: Iacf41549928ba7f05f0f71a79ddef1b6e1154e2a
Co-authored-by: Sorin Sbarnea <ssbarnea@redhat.com>
2020-08-28 18:49:53 +01:00
Clark Boylan d568ace848 Exclude neutron q-svc logs from indexing
These logs have grown very large because neutron is doing unconditional
function performance profiling via debug logging. Exclude them until
this is cleaned up as we cannot keep up otherwise and everyone else is
sad as a result.

Change-Id: I2e2d3d5213a2a0dba400e26ea6dcc881dca594ee
2020-08-25 13:28:07 -07:00
James E. Blair 808478ad2c Really vendor gear for log processing
The previous vendoring attempt did not work because of the way
Ansible handles imports.  Instead, we now rely on the module_utils
method of bundling supporting python code.

Change-Id: I01f57e9eab77f0c39b45bb52b573642ab8f29f22
2020-07-13 11:40:23 -07:00
James E. Blair ea373d207e Vendor gear for submit-log-processors-jobs
We use the gear library to submit log processing jobs in the post-run
playbooks.  That is installed in the ansible virtualenvs on our vms,
but it is not installed in the virtualenvs on the zuul-executor image.

Aside from our use of it, there isn't a compelling reason to ask the Zuul
project to add that to the zuul-executor image.  And we would prefer to
continue using the upstream image rather than make our own.  It seems
the simplest way to avoid any further complexity here is just to vendor
the gear library.  It's small and does not change often.

Change-Id: I733361be3b7eaaa60dacc0b09112eebaa06e0d9a
2020-07-10 11:31:13 -07:00
Zuul b13c931e00 Merge "Don't index monasca-api logs in elasticsearch" 2020-05-14 16:59:07 +00:00
Clark Boylan b0eda60c3f Don't index monasca-api logs in elasticsearch
We've found the screen-monasca-api.txt logs can be in the multiple
hundreds of megabytes. Unfortunately, this causes problems for our
indexing system. monasca-persister is already excluded, add monasca-api
to the list.

Change-Id: Iafa3dcfcc1714a2560940a4616b08872ae694dc8
2020-05-14 08:54:00 -07:00
Ian Wienand 96052cfebf virtualenv-config : add download for virtualenv seeder
As described in the inline comments, this is working around a broken
version of setuptools vendored by virtualenv currently.  Specify in a
config file that it should download the latest helper tools, rather
then rely on the inbuilt versions.

Add to the base-test pre-playbook; after testing we can move to the
base playbook.

Change-Id: Ib17017637eae81a3ff57302e7c77945f2045b5ac
2020-03-27 11:54:31 +11:00
Ian Wienand 3c508176d3 Remove env var for tarballs mirror
This host has migrated to tarballs.opendev.org, but rather than
updating this caching rule, an audit of codesearch and a cursory look
at several mirror logs has determined this wasn't ever really used.

Since it is now on AFS, we could export this directly from the
filesystem on mirror nodes and implicitly use AFS caching if we need
to reinstate this.

Change-Id: I4feb2a2229dcf0626ec8ee8494ad6801468c1440
Story: #2006598
Task: #39014
2020-03-24 09:16:11 +11:00
Clark Boylan 02a6e672d0 Add number of zuul job attempts to logstash events
This will help us better track how often jobs are being rerun. We should
be able to query for numeric values of this field and count the number
of jobs that had more than one attempt. From that we should also be able
to identify if specific jobs hit these problems more than others.

Change-Id: I6ad21ad3a55140356b9a5f19e5e5bb83663898f3
2019-12-12 10:05:03 -08:00
James E. Blair 838eaeb753 Remove use-cached-repos role
This is no longer needed after we switch to prepare-workspace-git.

Depends-On: https://review.opendev.org/680703
Change-Id: I3830e4c84c6f8bea465cce22b7e3ae048bf60882
2019-09-06 07:16:38 -07:00
Ian Wienand 597135d528 log-processor: include full exception traceback
This is currently failing in some cases (I'm sure it is when executor
only jobs end up with things that aren't matched, but can't pinpoint
exactly) but you only get

  "details": "IndexError('list index out of range',)",

which doesn't help find out which list index was out of range.

The get_execption() is for python 2.6 support (described [1]) so we
can use the regular format.  Then include the full traceback in the
details so we can see the line causing problems.

[1] https://docs.ansible.com/ansible/2.5/dev_guide/developing_python_3.html

Change-Id: I20d1d99a48b7a173ab6c792dc3508c27b8047f6a
2019-08-27 18:45:28 +10:00
Clark Boylan 2f355836ae Stop treating .gz files as special in log handling
With our switch to swift hosted logs files ended in .gz are no longer
equivalent to the filenames without the .gz. Swift expects us to be
speific. For this reason normalize on using the actual file names as
stored and reported rather than removing the suffix for human
friendliness.

Note we keep the .gz less tag value in the tags list. This is because
e-r typically uses tags to identify files rather than pure paths or
filenames.

Change-Id: Ie9063f0ab35317357280690d9ad5e273025e3240
Related-Change: https://review.opendev.org/#/c/677236
2019-08-23 13:35:59 -07:00
Zuul ec5ddc0863 Merge "Make names in promote job unique" 2019-08-22 07:19:53 +00:00
Chandan kumar c873e3fa58 Fixed NODEPOOL_MIRROR_HOST typo
https://review.opendev.org/#/c/676120/ adds the ubuntu mirror host
but it contains typo NODEPOOLMIRROR_HOST, it breaks the CI while
sourcing /etc/ci/mirror_info.sh. Fixing the typo fixes the issue.

Change-Id: I95fb295d81494782120603e830d60678474a8cfe
Signed-off-by: Chandan kumar <chkumar@redhat.com>
2019-08-21 13:54:52 +05:30
Andreas Jaeger 13d35686eb Make names in promote job unique
Update task names so that it's clear which task is doing what and thus
we avoid e.g twice "Set target directory" and you need to check whether that
is correct.

Add missing task name for one include_role.

Change-Id: I550307bdfdf2815ce7b5001bd89928311ce8cc02
2019-08-21 09:51:25 +02:00
Ian Wienand 3165c57f8e mirror-info: add ubuntu-ports
Add the ubuntu-ports directory which is useful for alternative
architectures.

Change-Id: I2b531462ca799f3c5e8be4e190f73aaa00ba6a60
2019-08-13 17:14:38 +10:00
Clark Boylan 7d5673f6db Only use ipv6 dns if nodepool uses ipv6
We think we have growing pains in some clouds where ipv6 is available
but we want to force the instances to use ipv4 dns anyway. We can do
this by telling nodepool to use ipv4 for the instance ip which we can
then check in our role to configure unbound.

Do this to rule out ipv6 as a problem in these clouds.

Change-Id: I354015df64032e70422231f1105807f024fe2393
2019-05-14 15:38:22 -07:00
Jeremy Stanley f113b2051b Switch from 1.1.1.1 to 1.0.0.1
CloudFlare's public recursive DNS resolvers are available at
multiple anycast addresses. For some reason 1.1.1.1 is unreachable
from parts of OVH's BHS1 region, but 1.0.0.1 seems to be
consistently reachable. Swap this for improved reliability.

Depends-On: https://review.opendev.org/655687
Change-Id: I403961828f4af3f121a6fa2193a933c9fc4a7bc7
2019-04-25 13:20:12 +00:00
James E. Blair 910bf4fd0c Add write-root-marker role
This will be used in publication jobs in later changes.

Change-Id: I784f81d9999630a643d79f1cfe5c651c40d437d8
2019-04-01 11:58:40 -07:00
Emilien Macchi faa1fcae1f Adding NODEPOOL_DOCKER_REGISTRY_V2_PROXY
NODEPOOL_DOCKER_REGISTRY_V2_PROXY will be:
http://$NODEPOOL_MIRROR_HOST:8082/registry-1.docker/

Which is the URL of the mirror for the Docker Registry v2 provided by
Opendev Infra team.

Change-Id: I46e2bc72ad2eb29e3fdcaf15ce96f8c4e03e406e
2019-03-12 16:17:04 +00:00
Clark Boylan 2ba7af7a34 Stop using OpenDNS
Ianw noticed problems on fedora29 with unbound. That resulted in a bug
filed upstream,
https://www.nlnetlabs.nl/bugs-script/show_bug.cgi?id=4226. In this bug
the helpful unbound maintainers point out that OpenDNS servers are
having trouble with RRSIG records which leads to not validating dnssec
which we require in our unbound config.

Address this by switching to CloudFlare DNS which is suppsoed to be
super localized (aka responsive), and not record queries against it.
Also if we want to we can update our config to do dns over tls against
these servers.

Change-Id: I8137239c2f53381afd87d420a5fe44064c669f87
2019-02-08 09:37:45 -08:00
James E. Blair d16a4b86c8 Add missing role
This role, originally from openstack-infra/project-config,
is used by jobs in this repo.

Change-Id: Ibb3c2a5a64183f879a1e01cc2852ec6d166a138b
2019-01-30 11:08:01 -08:00
James E. Blair a117a60027 Add missing role
This role, originally from openstack-infra/project-config,
is used by jobs in this repo.

Change-Id: If6fbf7ff070ff6c4b1ead74724fcaeb8e67ac7d1
2019-01-30 10:55:58 -08:00
James E. Blair 325d39971d Add missing roles
These roles, originally from openstack-infra/project-config,
are used by jobs in this repo.

Change-Id: Ia8d087dba865eb2db38bb58ee11e2bdaaffe3f74
2019-01-30 10:42:12 -08:00
Clark Boylan 3ecfa1968d Initial pass at global opendev base job set
This adds needed roles, playbooks and secrets for our global base jobs.

Change-Id: I466bc1b8b33ea806f0ec39aa9aca32b91e28e7f1
2019-01-28 13:59:24 -08:00