Commit graph

30655 commits

Author SHA1 Message Date
Miro Hrončok
bd59cac72d FTBFS reminder: Deal with week numbers 01 to 09 correctly
Apparently, date +%W gives week number with leading zero and there is no alternative.

Shell math's % cannot deal with that, so we sed the zero out.

Signed-off-by: Miro Hrončok <miro@hroncok.cz>

Consider my patch Public Domain or CC0.
2020-04-24 21:34:26 +02:00
75881318a7 Add myself as admin for the badge app 2020-04-24 21:34:26 +02:00
Clement Verna
7b63816be7 review-stats: add the configmap with the config
Signed-off-by: Clement Verna <cverna@tutanota.com>
2020-04-24 21:34:26 +02:00
Clement Verna
9891f7a69d review-stats: create an OpenShift application in staging
Signed-off-by: Clement Verna <cverna@tutanota.com>
2020-04-24 21:34:26 +02:00
Kevin Fenzi
76fb2e0871 Revert "s3-mirror: Split things into 2 sync runs, one without repodata and delete, the other with both."
This reverts commit 626c976f8ce616750a56cd0de7847beeaf3924f7.
2020-04-24 21:34:26 +02:00
Kevin Fenzi
be03aa4abf maintainer-test: re-add ppc64le-test, using a donated vm in cz.
Once we get cloud power8's back online we can bring this back up ourselves.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-04-24 21:34:26 +02:00
Kevin Fenzi
899d1767eb s3-mirror: Split things into 2 sync runs, one without repodata and delete, the other with both.
In order to make sure the s3 mirror always is consistent, split out the commands
to make it sync without repodata and delete, then do another run with those, then finally
invalidate all the repodata/* files.

Some of the cron jobs are adjusted to allow the repodata invalidation.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-04-24 21:34:26 +02:00
Stephen Smoogen
4164c240d8 add a specific hosts file because our script assumes all staging is in phoenix. this is going to be fun to fix after move 2020-04-24 21:34:26 +02:00
Pavel Raiskup
d562bde01e copr: be: more careful periodic cleanup of VMs
Never remove CoprPurpose=infrastructure, only builders.
2020-04-24 21:34:26 +02:00
Kamil Páral
53a64f1143 taskotron-trigger: disable rpmdeplint temporarily
Because of https://github.com/fedora-infra/bodhi/issues/3944
2020-04-24 21:34:26 +02:00
Clement Verna
2cbf8600f0 Bodhi: remove old buildconfig for images that are not used anymore
Signed-off-by: Clement Verna <cverna@tutanota.com>
2020-04-24 21:34:26 +02:00
Clement Verna
7ffa111de9 Bodhi: deploy latest develop of bodhi in staging
Signed-off-by: Clement Verna <cverna@tutanota.com>
2020-04-24 21:34:26 +02:00
Miroslav Suchý
b49ec9423f retrace: add retrace-stg.aws.fedoraproject.org to staging 2020-04-24 21:34:26 +02:00
Miroslav Suchý
1496bdc237 retrace: do not remove what was not created
addressing:
TASK [abrt/faf : remove EOLed opsys] ************************************************************************************
Friday 06 March 2020  08:10:33 +0000 (0:00:00.044)       0:05:02.965 **********
failed: [retrace-stg.aws.fedoraproject.org] (item={u'release': u'30', u'opsys': u'Fedora'}) => {"ansible_facts": {"discovered_interpreter_python": "/usr/libexec/platform-python"}, "ansible_loop_var": "item", "changed": true, "cmd": ["faf", "releasemod", "-o", "fedora", "--opsys-release", "30", "-s", "EOL"], "delta": "0:00:01.408810", "end": "2020-03-06 08:10:35.342888", "item": {"opsys": "Fedora", "release": "30"}, "msg": "non-zero return code", "rc": 1, "start": "2020-03-06 08:10:33.934078", "stderr": "[2020-03-06 08:10:35] INFO:faf.ReleaseModify: Release 'Fedora 30' is not defined", "stderr_lines": ["[2020-03-06 08:10:35] INFO:faf.ReleaseModify: Release 'Fedora 30' is not defined"], "stdout": "", "stdout_lines": []}
2020-04-24 21:34:26 +02:00
Miroslav Suchý
6fc7230adb retrace: create /srv/faf
addressing:
TASK [abrt/faf : run database migrations] *******************************************************************************
Friday 06 March 2020  07:56:21 +0000 (0:00:00.045)       0:04:59.958 **********
fatal: [retrace-stg.aws.fedoraproject.org]: FAILED! => {"ansible_facts": {"discovered_interpreter_python": "/usr/libexec/platform-python"}, "changed": true, "cmd": ["faf-migrate-db"], "delta": "0:00:01.301859", "end": "2020-03-06 07:56:23.505802", "msg": "non-zero return code", "rc": 1, "start": "2020-03-06 07:56:22.203943", "stderr": "[2020-03-06 07:56:23] ERROR:faf.SaveReports: Required directories can't be created: Required directory '/srv/faf/reports/incoming' does not exist and can't be created: Permission denied\nTraceback (most recent call last):\n  File \"/usr/lib/python3.6/site-packages/pyfaf/common.py\", line 140, in ensure_dirs\n    os.makedirs(dirname)\n  File \"/usr/lib64/python3.6/os.py\", line 210, in makedirs\n    makedirs(head, mode, exist_ok)\n  File \"/usr/lib64/python3.6/os.py\", line 210, in makedirs\n    makedirs(head, mode, exist_ok)\n  File \"/usr/lib64/python3.6/os.py\", line 220, in makedirs\n    mkdir(name, mode)\nPermissionError: [Errno 13] Permission denied: '/srv/faf'\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n  File \"/bin/faf-migrate-db\", line 27, in <module>\n    from pyfaf.common import get_connect_string\n  File \"/usr/lib/python3.6/site-packages/pyfaf/__init__.py\", line 25, in <module>\n    from . import cmdline\n  File \"/usr/lib/python3.6/site-packages/pyfaf/cmdline.py\", line 22, in <module>\n    from pyfaf.actions import actions\n  File \"/usr/lib/python3.6/site-packages/pyfaf/actions/__init__.py\", line 106, in <module>\n    load_plugins(Action, actions)\n  File \"/usr/lib/python3.6/site-packages/pyfaf/common.py\", line 113, in load_plugins\n    result[plugin.name] = plugin()\n  File \"/usr/lib/python3.6/site-packages/pyfaf/actions/save_reports.py\", line 69, in __init__\n    self.dir_attach_saved, self.dir_attach_deferred])\n  File \"/usr/lib/python3.6/site-packages/pyfaf/common.py\", line 145, in ensure_dirs\n    .format(dirname, ex.strerror))\npyfaf.common.FafError: Required directory '/srv/faf/reports/incoming' does not exist and can't be created: Permission denied", "stderr_lines": ["[2020-03-06 07:56:23] ERROR:faf.SaveReports: Required directories can't be created: Required directory '/srv/faf/reports/incoming' does not exist and can't be created: Permission denied", "Traceback (most recent call last):", "  File \"/usr/lib/python3.6/site-packages/pyfaf/common.py\", line 140, in ensure_dirs", "    os.makedirs(dirname)", "  File \"/usr/lib64/python3.6/os.py\", line 210, in makedirs", "    makedirs(head, mode, exist_ok)", "  File \"/usr/lib64/python3.6/os.py\", line 210, in makedirs", "    makedirs(head, mode, exist_ok)", "  File \"/usr/lib64/python3.6/os.py\", line 220, in makedirs", "    mkdir(name, mode)", "PermissionError: [Errno 13] Permission denied: '/srv/faf'", "", "During handling of the above exception, another exception occurred:", "", "Traceback (most recent call last):", "  File \"/bin/faf-migrate-db\", line 27, in <module>", "    from pyfaf.common import get_connect_string", "  File \"/usr/lib/python3.6/site-packages/pyfaf/__init__.py\", line 25, in <module>", "    from . import cmdline", "  File \"/usr/lib/python3.6/site-packages/pyfaf/cmdline.py\", line 22, in <module>", "    from pyfaf.actions import actions", "  File \"/usr/lib/python3.6/site-packages/pyfaf/actions/__init__.py\", line 106, in <module>", "    load_plugins(Action, actions)", "  File \"/usr/lib/python3.6/site-packages/pyfaf/common.py\", line 113, in load_plugins", "    result[plugin.name] = plugin()", "  File \"/usr/lib/python3.6/site-packages/pyfaf/actions/save_reports.py\", line 69, in __init__", "    self.dir_attach_saved, self.dir_attach_deferred])", "  File \"/usr/lib/python3.6/site-packages/pyfaf/common.py\", line 145, in ensure_dirs", "    .format(dirname, ex.strerror))", "pyfaf.common.FafError: Required directory '/srv/faf/reports/incoming' does not exist and can't be created: Permission denied"], "stdout": "", "stdout_lines": []}
2020-04-24 21:34:26 +02:00
Miroslav Suchý
6934d7d8b1 Revert "retrace: temporary disable"
This reverts commit 8cb318e16a5a58e37197b74ad67de1405642f8c7.
2020-04-24 21:34:26 +02:00
Stephen Smoogen
d4a042aed2 remove the defined eth0 from hostvars so that nagios will work for openqa 2020-04-24 21:34:26 +02:00
Miroslav Suchý
a41c1c217f retrace: checkpoint_segments does not exists in PG10 2020-04-24 21:34:26 +02:00
Miroslav Suchý
b7ccda8f59 retrace: do not init pg twice 2020-04-24 21:34:26 +02:00
Stephen Smoogen
54f094b2d5 retrace-stg needs to be in inventory/cloud for nagios 2020-04-24 21:34:26 +02:00
Miroslav Suchý
103e5fd3f0 retrace: make sure posgresql data dir is available 2020-04-24 21:34:26 +02:00
Stephen Smoogen
bcb8e2995a correct non-existant hostname in dhcp 2020-04-24 21:34:26 +02:00
Miroslav Suchý
bee0d8c46f retrace: temporary disable
https://pagure.io/fedora-infrastructure/issue/8725
2020-04-24 21:34:26 +02:00
Miroslav Suchý
e75435f0b3 RHEL8 cloud image does not have iptables-services installed
addressing:
TASK [base : iptables service enabled] **********************************************************************************
Thursday 05 March 2020  14:48:13 +0000 (0:00:02.733)       0:00:56.244 ********
fatal: [retrace-stg.aws.fedoraproject.org]: FAILED! => {"ansible_facts": {"discovered_interpreter_python": "/usr/libexec/platform-python"}, "changed": false, "msg": "Could not find the requested service iptables: host"}
2020-04-24 21:34:26 +02:00
Miroslav Suchý
d58a72afd7 RHEL8 cloud image does not have iptables installed
addressing:
TASK [base : iptables] **************************************************************************************************
Thursday 05 March 2020  14:25:09 +0000 (0:00:00.042)       0:01:25.059 ********
failed: [retrace-stg.aws.fedoraproject.org] (item=/srv/web/infra/ansible/roles/base/templates/iptables/iptables) => {"ansible_facts": {"discovered_interpreter_python": "/usr/libexec/platform-python"}, "ansible_loop_var": "item", "changed": false, "checksum": "6190805022717c6e21759a272fb0c09573a4a605", "cmd": "/sbin/iptables-restore --test /tmp/ansible-tmp-1583418309.6-194074700864320/source", "item": "/srv/web/infra/ansible/roles/base/templates/iptables/iptables", "msg": "[Errno 2] No such file or directory: b'/sbin/iptables-restore': b'/sbin/iptables-restore'", "rc": 2}
2020-04-24 21:34:26 +02:00
Miroslav Suchý
449e2ec1ef retrace: this should not be needed anymore 2020-04-24 21:34:26 +02:00
Miroslav Suchý
23f11504a5 retrace: birthday is over
back to work
2020-04-24 21:34:26 +02:00
Miroslav Suchý
db75855ba4 retrace: use correct host var file 2020-04-24 21:34:26 +02:00
Adam Williamson
793b69e105 openqa/dispatcher: test everything and workstation on ppc64le
As requested by Michel in
https://pagure.io/fedora-qa/fedora_openqa/pull-request/77 (we
shadow changes to that here for $REASONS)

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-04-24 21:34:26 +02:00
Adam Williamson
063548a931 openqa/dispatcher: drop --nodeps from setup.py install
This was an old fedmsg Python 2 vs. Python 3 thing that's no
longer needed.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-04-24 21:34:26 +02:00
Adam Williamson
209773755d Drop fedmsg roles from openQA servers
These should not be needed any more. They use fedora-messaging
for everything.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-04-24 21:34:26 +02:00
Adam Williamson
52d7450a9c openqa, check-compose, relvalconsumer: drop remaining fedmsg bits
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-04-24 21:34:26 +02:00
Adam Williamson
1c855ec84b Add new openQA aarch64 worker hosts to qa_isolated
If they're not here, we have firewall shenanigans breaking
websockets.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-04-24 21:34:26 +02:00
Miroslav Suchý
39d42c6a4d copr: yum is dead Dave 2020-04-24 21:34:26 +02:00
Miroslav Suchý
373773deb2 copr: create users for keygen 2020-04-24 21:34:26 +02:00
Clement Verna
14e9ba6eef review-stats: rollback the old cron until the new app is fixed
Signed-off-by: Clement Verna <cverna@tutanota.com>
2020-04-24 21:34:26 +02:00
Clement Verna
c5c61ae463 review-stats: fix the new app path in the cronjob
Signed-off-by: Clement Verna <cverna@tutanota.com>
2020-04-24 21:34:26 +02:00
Clement Verna
e09e7758df review-stats: fix the name of the rpm package
Signed-off-by: Clement Verna <cverna@tutanota.com>
2020-04-24 21:34:26 +02:00
Clement Verna
13f4934ac4 review-stats: deploy new version of the app in staging
Signed-off-by: Clement Verna <cverna@tutanota.com>
2020-04-24 21:34:26 +02:00
Clement Verna
e1538d32e4 openshift object-delete: add .yml to the object file to be deleted
Signed-off-by: Clement Verna <cverna@tutanota.com>
2020-04-24 21:34:26 +02:00
Clement Verna
5296b019cb docsbuilding: rename the cronjob cron instead of build.
This will allow to delete the yml file when running the
playbook with the delete tag

Signed-off-by: Clement Verna <cverna@tutanota.com>
2020-04-24 21:34:26 +02:00
Clement Verna
45682d6589 docsbuilding: add the possibility to delete the cronjob from ansible
Signed-off-by: Clement Verna <cverna@tutanota.com>
2020-04-24 21:34:26 +02:00
Adam Williamson
e2767ee22e Fix up openqa-aarch64-0* network config a bit harder, I hope
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-04-24 21:34:26 +02:00
Adam Williamson
57da55cf52 ...now fix it harder
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-04-24 21:34:26 +02:00
Adam Williamson
9727f27efd Fix syntax error in last commit
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-04-24 21:34:26 +02:00
Adam Williamson
1081f7243e openqa: try and stick new aarch64 workers to qa network
This involves disabling the interface connected to the arm
network and renaming references to them. This should simplify
networking and avoid firewall issues. I hope.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-04-24 21:34:26 +02:00
Adam Williamson
ee006a8d3e openqa: update iptables NAT rule implementation
Since we set this up, @puiterwijk added a nice `nat_rules` thing
that lets us add NAT rules without forking the iptables template,
and I just set up the `openqa_tap_iface` variable to avoid the
stupid thing where I hardcoded all the possible interface names
for different arches. So let's use those two together FOR GREAT
JUSTICE! Or possibly just to break everything, you know, we'll
find out shortly.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-04-24 21:34:26 +02:00
Justin W. Flory
7d7ef7f4fe badges: Add mapping for neuro-sig FAS membership badge
This commit adds a mapping for the `neuro-sig` FAS group to the
`neurofedora-sig-member` badge. This is used in an existing cron job
that automatically awards the badge to members who are already sponsored
into the FAS group, since the automated rule only awards it to people
who are added to the group after the badge is pushed.

Signed-off-by: Justin W. Flory <git@jwf.io>
2020-04-24 21:34:26 +02:00
Adam Williamson
4b9dc6585c Set ansible_ifcfg_whitelist on aarch64-02 and aarch64-03 for now
There is a connected eth2 on each of these machines but no
eth2_ip or eth2_nm in these files, which breaks the 'copy ifcfg
files - non virthost' play. For now I'm just going to set this
whitelist var which should tell ansible to ignore eth2, we can
change the approach later if we want to.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-04-24 21:34:26 +02:00
Adam Williamson
6423bf52a2 Fix quoting in host_vars from last commit
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-04-24 21:34:26 +02:00