On Tue, Apr 29, 2014 at 2:32 PM, James Cammarata <[email protected]> wrote:
> Jeremy, I've merged in a patch to address this ( > https://github.com/ansible/ansible/commit/4cadcccc488fd12cb9d765cbcf5b2781072dc712), > which essentially catches the warning and prints a nicely formatted warning > to stderr. This error is also only printed once, so the verbose output from > the original warning doesn't show up for every host in the list. > Nice - I knew I wasn't the only person bothered by this. One thought - as long as there's a block in __init__ to specifically catch PowmInsecureWarning, it would be nice if there were a way to just suppress the output. I'd prefer not to redirect stderr from my cron jobs just in case some other error message pops up. Ideally I could do something like "export PowmInsecureWarning=ignore" to suppress only this message. -J -- http://about.me/jeremy_schneider Should have search issues on github before posting to the list. Looks like >> I'm hitting https://github.com/ansible/ansible/issues/6941 exactly. >> >> For posterity (anyone else who searches the list before looking on >> github), it looks like commenting out a few lines >> in >> /usr/lib64/python2.6/site-packages/pycrypto-2.6.1-py2.6-linux-x86_64.egg/Crypto/Util/number.py >> is the preferred workaround. >> >> FYI, Bruce's workaround (disabling atfork) didn't work for me anyway with >> ansible 1.5.3. >> >> -Jeremy >> >> -- >> http://about.me/jeremy_schneider >> >> >> On Tue, Apr 29, 2014 at 10:25 AM, Jeremy Schneider < >> [email protected]> wrote: >> >>> I recently upgraded a control server to ansible 1.5.x and started >>> getting these messages. The server where we have to run ansible is RHEL >>> 6.x but it seems that the newest version of gmp available from RH is still >>> only 4.3. (I suspect that python is using libgmp dynamically rather than >>> statically linking it...) >>> >>> The warning shows up on every single ansible run and spams us with email >>> from some ansible jobs that launch from cron. I think I'm going to comment >>> out the atfork block on our system just because this is so annoying - is >>> there a better approach for RHEL6? Any way to suppress the warning or fix >>> the issue without installing packages outside the standard repos? >>> >>> -Jeremy >>> >>> -- >> You received this message because you are subscribed to the Google Groups >> "Ansible Project" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> >> To post to this group, send email to [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/ansible-project/CA%2BfnDAadDJ%3D-H%2BeY5EKTmQwneDiXAkvYGL5W-dhY8%3DG35AEYUw%40mail.gmail.com<https://groups.google.com/d/msgid/ansible-project/CA%2BfnDAadDJ%3D-H%2BeY5EKTmQwneDiXAkvYGL5W-dhY8%3DG35AEYUw%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> >> For more options, visit https://groups.google.com/d/optout. >> > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Ansible Project" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/ansible-project/2G_BwedPLps/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/CAMFyvFiJ-1LMbKf0oCUquSww2mSZCvqUbdLUrW_hD5aXxbyc7g%40mail.gmail.com<https://groups.google.com/d/msgid/ansible-project/CAMFyvFiJ-1LMbKf0oCUquSww2mSZCvqUbdLUrW_hD5aXxbyc7g%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CA%2BfnDAY9rPb_1EYYn1GB_sh46P41VKLMvFAa458FQ4T2rwwo5Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
