Skip to content

Feature request podman support #50624

Closed
Closed

Description

@aboe76

Feature request salstack state/module support for podman

Saltstack has already support for docker please add podman support

Development Information to get started:
https://medium.com/cri-o/python3-support-for-podman-a0a2395c3b4

podman is already build for suse and kubic-project so it should fit well with suse manager 3

Activity

  1. Ch3LL commented on Nov 26, 2018

    @Ch3LL
    Contributor

    will approve as a feature request

  2. added
    Feature
    on Nov 26, 2018
  3. added this to the Approved milestone on Nov 26, 2018
  4. deuscapturus commented on Nov 26, 2018

    @deuscapturus
    Contributor

    I just starting looking into creating some podman modules.

    I think this is a good starting point: https://github.com/containers/libpod/tree/master/contrib/python/podman

  5. fignew commented on Nov 1, 2019

    @fignew
    Contributor

    Now that both Fedora and RHEL/CentOS 8 no longer have Docker packages in their native repos I think that podman support is very much needed.

  6. aboe76 commented on Nov 19, 2019

    @aboe76
    ContributorAuthor
  7. defensivedepth commented on Nov 21, 2019

    @defensivedepth

    I agree with @fignew, this becomes a more pressing issue with the lack of Docker packages with Fedora and RHEL/CentOS 8.

  8. stale commented on Jan 7, 2020

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

    If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.

  9. aboe76 commented on Jan 7, 2020

    @aboe76
    ContributorAuthor

    Please keep this open, podman support would be beneficial to saltstack.

  10. stale commented on Jan 7, 2020

    @stale

    Thank you for updating this issue. It is no longer marked as stale.

  11. ankitola commented on Jan 23, 2020

    @ankitola

    Yes, It will be great if SaltStack provide Podman support. Please keep open this.

  12. max-arnold commented on Jan 25, 2020

    @max-arnold
    Contributor

    I did some initial research and found this:

    containers/python-podman#70 (comment)
    https://podman.io/blogs/2020/01/17/podman-new-api.html

    A couple of important highlights:

    python-podman implementation is not fully compatible with libpod varlink defined interface

    The bottom line we are moving away from varlink to a similar Protocol to the Docker.API

    Thanks for the heads up, I will take a look to the APIv2 to avoid to spend time on something who will be deprecated in the next releases.

    But we heard from users that varlink was a hurdle for libpod adoption especially for those who were using the Docker API and its bindings. They simply could not or did not want to rewrite their custom applications for libpod’s new, varlink-based API.

    The new API is a simpler implementation based on HTTP/REST. We provide two basic groups of endpoints. The first one is for libpod; the second is for Docker compatibility, to ease adoption. The two endpoints are namespaced to keep them separate. Our goal with implementing a portion of the Docker API, is to be as compatible as possible; while similar calls in the libpod API might bring back additional libpod specific information.

    In our proof of concepts, we have tested our endpoint with the docker-py project. There are of course subtle differences which we are still working on. And there are compatibility endpoints that we can not support like swarm which Podman does not support.

    As for the existing varlink code, it has been in maintenance mode already. We will continue to address bugs but no new functionality will be developed. Once the new API is fully implemented, we plan to make a deprecation announcement.

    This potentially means that some of the existing Salt docker modules might be somewhat compatible with the upcoming Podman APIv2 endpoint.

    However, I'm not really familiar with Podman and not sure if APIv2 could provide a viable shortcut for Salt to support Podman containers eventually.

  13. added
    ZD
    on Feb 21, 2020
  14. 7 remaining items

  15. aboe76 commented on Feb 5, 2021

    @aboe76
    ContributorAuthor

    @max-arnold that's sounds great!!!

  16. paususe commented on May 3, 2021

    @paususe

    Hey @max-arnold, what's the status?

  17. max-arnold commented on Jul 27, 2022

    @max-arnold
    Contributor

    @aboe76 @paususe I think I got a single podman container running with some issues, I hope I can find some time this August to document and upload my WIP code here

  18. aboe76 commented on Aug 1, 2022

    @aboe76
    ContributorAuthor

    @max-arnold nice work, thanks for the status update.

  19. mostlymaxi commented on Nov 3, 2022

    @mostlymaxi

    @max-arnold any updates? Been looking for this as well and interested in contributing.

  20. hcdeeken commented on Nov 3, 2022

    @hcdeeken

    I had to fiddle a bit with the environment (podman adds environment variables to running containers) to get docker_container.running to behave, but anything else I tried with podman 4.2 worked nicely.
    (after adding the symlink and the python modules from #50624 (comment))

  21. max-arnold commented on Nov 3, 2022

    @max-arnold
    Contributor

    Here you go! The states were written in Feb 2021 and are outdated, but if anyone wants to continue the work, feel free to create a repo:

    podman.zip

    These are not meant to be used in production, because Podman and its components are compiled from source (to be able to test the latest fixes).

    Kudos to @defensivedepth for making this happen!

  22. max-arnold commented on Nov 3, 2022

    @max-arnold
    Contributor

    Spent some time updating the states with the latest and greatest versions:

    For some reason the requests patch doesn't emit any output with salt-call, so another way to debug Docker API requests needs to be implemented.

    podman-2022-11-03.zip

    The primary issue that needs to be fixed is non-idempotent docker_container.running state. You'll get a new container id each time you apply the state. There are three possible projects that can affect this:

    1. Podman and its components. Most likely its API is not 100% compatible, esp. if it is related to networking
    2. Docker Python library
    3. Salt Docker modules and states (they aren't getting enough attention from VMware), and how they interact with docker module

    P.S. Sorry for making you wait for so long. I procrastinated on publishing this WIP for a while :)

  23. andrelop commented on Feb 7, 2023

    @andrelop

    Is there any update on this issue ? I tried to use podman and it mostly works, but docker_container.running generating a new container on each run is not helping.

    It seems to assume there's a new imagem even though the image is exactly the same.

  24. DaAwesomeP commented on May 13, 2023

    @DaAwesomeP
    Contributor

    Hey @max-arnold any updates? It seems that we are close but just barely not quite there yet!

  25. max-arnold commented on May 13, 2023

    @max-arnold
    Contributor

    @DaAwesomeP Unfortunately, I no longer work on this. Feel free to pick it up and continue the work.

  26. locked and limited conversation to collaborators on Feb 5, 2025
  27. converted this issue into a discussion #67528 on Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureZD

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions