Code Monkey home page Code Monkey logo

Comments (3)

sshnaidm avatar sshnaidm commented on May 23, 2024 1

@tyll warning is fine. Glad it helped, will prepare a patch then.

from ansible-podman-collections.

sshnaidm avatar sshnaidm commented on May 23, 2024

@tyll it should work. The problem is here:

STDERR b'writing file `/sys/fs/cgroup//cgroup.freeze`: Permission denied\nError: `/usr/bin/crun pause a935777de543ade936bfcd412343f3038e538513ce397e5349b3c7eaa17f508e` failed: exit status 1\n'
RC CODE 125"

For some reason you can't pause container. It reminds me problem containers/podman#4813 which was solved in ansible/ansible#66583. But seems like didn't work in your case, error message is different. Can you try please such a file? http://paste.openstack.org/show/793035/ Copy it to ~/.ansible/collections/ansible_collections/containers/podman/plugins/connection/podman.py and make sure you use collection plugin, not the built one. Run it with verbosity 5:
ansible -vvvvvi 4fa82881440d, -c containers.podman.podman -m setup all

from ansible-podman-collections.

tyll avatar tyll commented on May 23, 2024

@tyll it should work. The problem is here:

For some reason you can't pause container. It reminds me problem containers/libpod#4813 which was solved in ansible/ansible#66583. But seems like didn't work in your case, error message is different. Can you try please such a file? http://paste.openstack.org/show/793035/ Copy it to ~/.ansible/collections/ansible_collections/containers/podman/plugins/connection/podman.py and make sure you use collection plugin, not the built one. Run it with verbosity 5:
ansible -vvvvvi 4fa82881440d, -c containers.podman.podman -m setup all

Great, thank you. This fixes it for me. There are now only warnings related to the python interpreter:

<2b0085e9ba9c> Attempting python interpreter discovery
<2b0085e9ba9c> RUN [b'/usr/bin/podman', b'exec', b'2b0085e9ba9c', b'/bin/sh', b'-c', b"echo PLATFORM; uname; echo FOUND; command -v '/usr/bin/python'; command -v 'python3.7'; command -v 'python3.6'; command -v 'python3.5'; command -v 'python2.7'; command -v 'python2.6'; command -v '/usr/libexec/platform-python'; command -v '/usr/bin/python3'; command -v 'python'; echo ENDFOUND && sleep 0"]
STDOUT b'PLATFORM\nLinux\nFOUND\n/usr/libexec/platform-python\nENDFOUND\n'
STDERR b''
RC CODE 0
STDOUT b'' STDERR b''
<2b0085e9ba9c> RUN [b'/usr/bin/podman', b'exec', b'2b0085e9ba9c', b'/bin/sh', b'-c', b'/usr/libexec/platform-python && sleep 0']
STDOUT b''
STDERR b''
RC CODE 0
STDOUT b'' STDERR b''
[WARNING]: Unhandled error in Python interpreter discovery for host 2b0085e9ba9c: Expecting value: line 1 column 1 (char 0)

Let me know if you need more info.

from ansible-podman-collections.

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.