linux-system-roles / podman

Management of podman, including systemd services that use podman
https://linux-system-roles.github.io/podman/
MIT License
50 stars 18 forks source link

`podman_use_copr: true` does not work on centos9stream #158

Open Jakuje opened 6 days ago

Jakuje commented 6 days ago

On stock centos9stream, I am getting the following error when I enable the use of copr repository for podman:

Enabling a Copr repository. Please note that this repository is not part of the main distribution, and quality may vary. The Fedora Project does not exercise any power over the contents of this repository beyond the rules outlined in the Copr FAQ at https://docs.pagure.org/copr.copr/user_documentation.html#what-i-can-build-in-copr, and packages are not held to any quality or security level.

Please do not file bug reports about these packages in Fedora Bugzilla. In case of problems, contact the owner of this repository. Error: It wasn't possible to enable this project. Repository 'centos-stream+epel-next-9' does not exist in project 'rhcontainerbot/podman-next'. Available repositories: 'fedora-rawhide-ppc64le', 'fedora-eln-ppc64le', 'fedora-rawhide-aarch64', 'centos-stream-9-s390x', 'fedora-eln-aarch64', 'centos-stream-9-x86_64', 'fedora-40-x86_64', 'epel-9-x86_64', 'epel-9-s390x', 'centos-stream-10-x86_64', 'fedora-39-ppc64le', 'centos-stream-10-aarch64', 'fedora-39-aarch64', 'fedora-rawhide-s390x', 'epel-9-aarch64', 'centos-stream-9-aarch64', 'fedora-eln-x86_64', 'fedora-rawhide-x86_64', 'fedora-39-s390x', 'fedora-40-s390x', 'centos-stream-10-s390x', 'fedora-39-x86_64', 'fedora-40-aarch64', 'fedora-eln-s390x', 'fedora-40-ppc64le'

If you want to enable a non-default repository, use the following command: 'dnf copr enable rhcontainerbot/podman-next ' But note that the installed repo file will likely need a manual modification.

I did go ahead with manual run of dnf copr enable rhcontainerbot/podman-next centos-stream-9-x86_64, which worked, but I assume there is some mismatch between the centos9stream name and what is built in copr so I am not exactly sure where is the issue, but reporting here as this role failed me when trying to enable some experimental functionality in podman.

Jakuje commented 6 days ago

Just now, I looked at the task to see that this repository name is forced by the role in

https://github.com/linux-system-roles/podman/blob/fcdab30ff017e8a790e7cf26494f31e62c2ad6cb/tasks/enable_copr.yml#L6

I think it should be just centos-stream-{{ ansible_facts['distribution_major_version'] }} now as there are no -next repositories in the copr, I think.

Would be good to have some tests for this too (not necessarily that all stuff will work with the testing podman), but that this option works ...