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

Handle DNS errors and other network failures #3

Open
deoren opened this issue Jan 21, 2018 · 0 comments
Open

Handle DNS errors and other network failures #3

deoren opened this issue Jan 21, 2018 · 0 comments

Comments

@deoren
Copy link
Collaborator

deoren commented Jan 21, 2018

Output sent to me via cron email:

/etc/cron.daily/email_updates:

https://cdn.redhat.com/content/dist/rhel/server/5/5Server/x86_64/cf-tools/1/os/repodata/repomd.xml: [Errno 4] IOError: 
Trying other mirror.
https://cdn.redhat.com/content/dist/rhel/server/5/5Server/x86_64/rhev-agent/3/os/repodata/repomd.xml: [Errno 4] IOError: 
Trying other mirror.
https://cdn.redhat.com/content/dist/rhel/server/5/5Server/x86_64/os/repodata/repomd.xml: [Errno 4] IOError: 
Trying other mirror.
SQL error: near "Temporary": syntax error

The email notification contained a body that looked like this:

-3,-'Temporary
 


Hostname: X.X.X

IP Address(es):
----------------------------------
X.X.X.X

My first thought is that this situation should be treated the same as if there were no updates at all and not reported. Or at the very least let cron catch the errors and skip sending an email notification. That way whatever ticketing system that catches the emails won't create invalid tickets.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant