Skip to content
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

Implement nagmail script #298

Closed
lmacken opened this issue Aug 21, 2015 · 18 comments · Fixed by #639
Closed

Implement nagmail script #298

lmacken opened this issue Aug 21, 2015 · 18 comments · Fixed by #639
Labels
EasyFix These are good issues to get started with if you are new to the project

Comments

@lmacken
Copy link
Contributor

lmacken commented Aug 21, 2015

We need a job that comments on updates once they meet the minimum amount of time in testing, etc.

https://github.com/fedora-infra/bodhi/blob/master/bodhi/jobs.py#L74

@ralphbean
Copy link
Contributor

We would run this with cron now, right?

@ralphbean ralphbean added ansible EasyFix These are good issues to get started with if you are new to the project labels Aug 21, 2015
@lmacken
Copy link
Contributor Author

lmacken commented Aug 22, 2015

Yeah, similar to bodhi/scripts/expire_overrides.py

@robert-scheck
Copy link
Contributor

+1 for nagmails

@ralphbean
Copy link
Contributor

Freeze should lift on Tuesday, so we'll get another shot at this after that.

@lmacken
Copy link
Contributor Author

lmacken commented Oct 7, 2015

Untested, but does this look good for our bodhi2/backend/tasks/main.yml ansible role?

- name: bodhi-approve-testing cron job.                                         
  cron: name="bodhi-approve-testing" hour="*/6" user="masher"                   
        job="/usr/bin/bodhi-approve-testing /etc/bodhi/production.ini"                   
        cron_file=bodhi-approve-testing-job                                     
  when: inventory_hostname.startswith('bodhi-backend02') and env == "production"
  tags:                                                                         
  - config                                                                      
  - bodhi                                                                       
  - cron                                                                        

@ralphbean
Copy link
Contributor

Unfortunately, no. It would work(!) but we've been trying to avoid using the ansible cron module only because it installs stuff in a weird way that is hard to uncover when you're logged in and looking at the box.

We try to instead copy an appropriately named cron file to /etc/cron.d/. Check the badges/backend role where we copy the scripts first and then copy the cron definitions next for an example.

@jnpkrn
Copy link

jnpkrn commented Oct 8, 2015

I was missing this feature since new bodhi was introduced. Thanks for solving this "regression".

@lmacken
Copy link
Contributor Author

lmacken commented Oct 8, 2015

Discussing this with @ralphbean on IRC, his concern was that things get installed outside of /etc/cron.d, however with my patch the ansible cron_file actually does that for us, so he agreed that it is fine.

@lmacken
Copy link
Contributor Author

lmacken commented Oct 8, 2015

This cron job has been deployed to bodhi-backend02.

henrysher pushed a commit to henrysher/fedora-infra-ansible that referenced this issue Oct 8, 2015
@swt2c
Copy link

swt2c commented Nov 20, 2015

Is this actually working? I'm still not getting reminder emails when my updates can be pushed to stable.

@opoplawski
Copy link

I see the comments getting added to the updates, but I'm not getting any email notifications of them

@swt2c
Copy link

swt2c commented Nov 21, 2015

Yes, I see the same thing, Orion. I don't seem to have permission to re-open this ticket, though.

@bowlofeggs
Copy link
Contributor

@lmacken Can you reopen this issue? It seems that the notifications are not being delivered.

@lmacken lmacken reopened this Jan 6, 2016
@voxik
Copy link

voxik commented Jan 7, 2016

I received email notification:

The following comment has been added to the ruby-2.2.4-47.fc22 update:

bodhi - 2016-01-07 00:00:12.508018 (karma: 0)
This update has reached 7 days in testing and can be pushed to stable now if the maintainer wishes

To reply to this comment, please visit the URL at the bottom of this mail

for my update [1] today. So it seems it works now.

[1] https://bodhi.fedoraproject.org/updates/FEDORA-2015-c4409eb73a

@swt2c
Copy link

swt2c commented Jan 7, 2016

You are right - I got one of those emails this morning too. Yay for being bugged about updates again. :-)

@bowlofeggs
Copy link
Contributor

Agreed, it seems to work for me now too so even though I just asked to reopen, we can close again ☺

@lmacken
Copy link
Contributor Author

lmacken commented Jan 8, 2016

👍

@lmacken lmacken closed this as completed Jan 8, 2016
@jnpkrn
Copy link

jnpkrn commented Jan 12, 2016

Started to work for me as of 30 Dec 2015, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
EasyFix These are good issues to get started with if you are new to the project
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants