Code Monkey home page Code Monkey logo

Comments (3)

abadger avatar abadger commented on June 13, 2024

So, reading the former ticket's comments, there's two ways we could go with this:

  • This is a problem with the version of python you have installed. Have the vendor fix it or compile your own.
  • Or: ansible tries to detect AIX and if found we use some other hashing strategy (since this is a file, we might be able to call out to /usr/bin/md5sum on AIX if AIX has that utility standard.)

Both of these have drawbacks: For the first case we're relying on the vendor to fix their issue. In the latter case, we'd 1) have to depend on further dependencies being installed/available on AIX and 2) hashlib is so useful that we'll likely to be using it in other places that won't be so easy to work around.

from ansible-modules-core.

cmlsharp avatar cmlsharp commented on June 13, 2024

I did indeed compile this version of python myself. I'm inclined to think it is the latter. However, openssl (which provides hashlib IIRC) was installed. I read somewhere that symlinking /bin/md5sum with /bin/csum should work. Oddly enough It worked on one of the AIX servers but not the other. It is very possible it was compiled with the wrong openssl library on the second server. Although to be honest, as my summer internship there has ended, I no longer have the servers in front of me.

from ansible-modules-core.

abadger avatar abadger commented on June 13, 2024

I'm going to close this for now since you aren't running AIX anymore and no one else using it has chimed in on this new bug. From the reports, it seems like the official python package for AIX from IBM is known to contain a bug which causes this whenever attempting to hash a string. Various third parties are reported to provide working python packages (for instance, http://www.perzl.org/aix/index.php?n=Main.Python ) so there is a workaround if it's causing difficulties.

If there are some AIX people keeping track of this silently, we'd be happy to look at a Pull Request to fix it. The ansible code has a few places that are creating checksums. The Pull Request would need to modify those to use an alternate method of obtaining the checksum (currently using sha1s).

from ansible-modules-core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.