skupperproject / skupper

Skupper is an implementation of a Virtual Application Network, enabling rich hybrid cloud communication.
http://skupper.io
Apache License 2.0
559 stars 71 forks source link

CLI: skupper init: improve recommendation if podman endpoint is not available #1471

Open Karen-Schoener opened 1 month ago

Karen-Schoener commented 1 month ago

Describe the bug

As root, run:

# systemctl stop podman.socket
# skupper --platform podman init

Note that the recommendation in the CLI output assumes non-root user.

# ./skupper --platform podman init
Podman endpoint is not available: unix:///run/podman/podman.sock

Recommendation:

        Make sure you have an active podman endpoint available.
        On most systems you can execute:

                systemctl --user enable --now podman.socket

        Alternatively you could also create your own service that runs:

                podman system service --time=0 <URI>

        You can get concrete examples through:

                podman help system service

I assume that the Recommendation should check the uid.

If root user runs "# skupper --platform podman init", I assume that this line in the output should change from this:

                systemctl --user enable --now podman.socket

to this:

                systemctl  enable --now podman.socket

Environment details Observed in skupper client version: 1.6.0.