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.
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>
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": []}
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>
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>
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>
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>