New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bodhi does not expire buildroot overrides #616
Comments
The polluted build root is preventing some other builds, so this is blocking other work. |
I untagged it manually for you. |
Thanks -- I appear to have two other buildroot overrides with the same problem, for three in total: https://bodhi.fedoraproject.org/overrides/eclipse-remote-2.0.0-0.1.git76ac23a.fc22 These all show "active" in bodhi but the expiry date is long in the past. |
I am also having problems "re-tagging" these builds.... See https://fedorahosted.org/rel-eng/ticket/6270 |
afaics there is something missing (a cronjob?) that runs /usr/bin/bodhi-expire-overrides but it might also be broken - when I try to run it manually there are several tracebacks and the build is not untagged. |
Errors:
|
|
OK, cert should be in place (fixing the second half). |
I found the koji bug, the buildsystem needs to be setup from the settings afaics, will prepare a PR. |
There are more issues:
|
In my local testing the expire_overrides.py job does correctly untag and expire them in the db. I'm going to setup the cron job on bodhi-backend02 after fixing the 'build is already untagged' exception. |
Building a new bodhi release now, and I have this change queued up in ansible. --- a/roles/bodhi2/backend/tasks/main.yml
+++ b/roles/bodhi2/backend/tasks/main.yml
@@ -275,6 +275,15 @@
- bodhi
- cron
+- name: bodhi-expire-overrides cron job.
+ cron: name="bodhi-expire-overrides" hour="*" minute=0 user="masher"
+ job="/usr/bin/bodhi-expire-overrides /etc/bodhi/production.ini"
+ cron_file=bodhi-expire-overrides-job
+ when: inventory_hostname.startswith('bodhi-backend02') and env == "production"
+ tags:
+ - config
+ - bodhi
+ - cron
- name: have the masher own the bodhi config
file: >
|
This has been deployed and run. A ton of overrides have just been expired. Please reopen this issue if you notice anything fishy. |
See: https://bodhi.fedoraproject.org/overrides/eclipse-remote-2.0.0-0.1.git76ac23a.fc22
Expiration date is in the past, yet this override is still "active" and the build is tagged in koji: https://koji.fedoraproject.org/koji/buildinfo?buildID=680588
Clicking the "Expire" button in bodhi results in an error "Expiration date in the past"
Performing "koji untag-build" results in an error "ActionNotAllowed: tag requires fedora-override permission"
How do I untag this build?
The text was updated successfully, but these errors were encountered: