open-horizon / anax

Horizon agent control system
https://open-horizon.github.io/docs/anax/docs/
Apache License 2.0
73 stars 98 forks source link

Horizon rpm package is installing podman when it should not. #3789

Open naphelps opened 1 year ago

naphelps commented 1 year ago

https://github.com/open-horizon/anax/blob/227013d58c907e31dd710aad78e36547374f670b/pkg/rpm/horizon/horizon.spec#L18

The requires field of the rpm specification file is auto parsed for required dependencies to install. Adding any known good packages here that the package manager can grab will be grabbed. This line is bad rpm spec either way and either needs to be removed or moved elsewhere. iptables, jq and podman can be auto parsed into known good packages off of the default active repositories (usually). docker-ce requires the repo to be added and enabled before hand. Fedora has access to moby-engine instead. horizon-cli is scripted installed before this package to prevent this line from erroring-out, see logs.

Attached logs to this issue.

naphelps commented 1 year ago

horizon-package-install1.txt horizon-package-install2.txt horizon-package-install3.txt

naphelps commented 1 year ago

Adding the package moby-engine fixes this issue.

Requires: horizon-cli iptables jq (moby-engine or docker-ce or podman >= 1:4.0.0)