Rename varlink socket and interface

io.projectatomic.podman -> io.podman

Signed-off-by: baude <bbaude@redhat.com>

Closes: #1204
Approved by: mheon
This commit is contained in:
baude
2018-08-02 08:58:59 -05:00
committed by Atomic Bot
parent ee89bc46eb
commit bd9d3a8fa5
24 changed files with 142 additions and 142 deletions

View File

@ -22,8 +22,8 @@ if [[ $(id -u) != 0 ]]; then
exit 2
fi
if ! systemctl --quiet is-active io.projectatomic.podman.socket; then
echo 1>&2 'podman is not running. systemctl enable --now io.projectatomic.podman.socket'
if ! systemctl --quiet is-active io.podman.socket; then
echo 1>&2 'podman is not running. systemctl enable --now io.podman.socket'
exit 1
fi

View File

@ -31,7 +31,7 @@ class BaseClient():
@classmethod
def factory(cls,
uri=None,
interface='io.projectatomic.podman',
interface='io.podman',
*args,
**kwargs):
"""Construct a Client based on input."""
@ -153,18 +153,18 @@ class Client():
>>> import podman
>>> c = podman.Client(uri='unix:/tmp/podman.sock',
remote_uri='ssh://user@host/run/podman/io.projectatomic.podman',
remote_uri='ssh://user@host/run/podman/io.podman',
identity_file='~/.ssh/id_rsa')
"""
def __init__(self,
uri='unix:/run/podman/io.projectatomic.podman',
interface='io.projectatomic.podman',
uri='unix:/run/podman/io.podman',
interface='io.podman',
**kwargs):
"""Construct a podman varlink Client.
uri from default systemd unit file.
interface from io.projectatomic.podman.varlink, do not change unless
interface from io.podman.varlink, do not change unless
you are a varlink guru.
"""
self._client = BaseClient.factory(uri, interface, **kwargs)

View File

@ -50,10 +50,10 @@ class PodmanError(VarlinkErrorProxy):
ERROR_MAP = {
'io.projectatomic.podman.ContainerNotFound': ContainerNotFound,
'io.projectatomic.podman.ErrorOccurred': ErrorOccurred,
'io.projectatomic.podman.ImageNotFound': ImageNotFound,
'io.projectatomic.podman.RuntimeError': PodmanError,
'io.podman.ContainerNotFound': ContainerNotFound,
'io.podman.ErrorOccurred': ErrorOccurred,
'io.podman.ImageNotFound': ImageNotFound,
'io.podman.RuntimeError': PodmanError,
}

View File

@ -15,7 +15,7 @@ class TestClient(unittest.TestCase):
def test_local(self, mock_ping):
p = Client(
uri='unix:/run/podman',
interface='io.projectatomic.podman',
interface='io.podman',
)
self.assertIsInstance(p._client, LocalClient)
@ -27,7 +27,7 @@ class TestClient(unittest.TestCase):
def test_remote(self, mock_ping):
p = Client(
uri='unix:/run/podman',
interface='io.projectatomic.podman',
interface='io.podman',
remote_uri='ssh://user@hostname/run/podman/podman',
identity_file='~/.ssh/id_rsa')

View File

@ -106,7 +106,7 @@ RUN chmod 755 /tmp/hello.sh
ENTRYPOINT ["/tmp/hello.sh"]
EOT
export PODMAN_HOST="unix:${TMPDIR}/podman/io.projectatomic.podman"
export PODMAN_HOST="unix:${TMPDIR}/podman/io.podman"
PODMAN_ARGS="--storage-driver=vfs \
--root=${TMPDIR}/crio \
--runroot=${TMPDIR}/crio-run \

View File

@ -56,7 +56,7 @@ class TestTunnel(unittest.TestCase):
context = Context(
'unix:/01',
'io.projectatomic.podman',
'io.podman',
'/tmp/user/socket',
'/run/podman/socket',
'user',

View File

@ -54,7 +54,7 @@ Default is None and will allow \f[C]ssh\f[] to follow it's default configuration
\f[B]\[en]remote\-socket\-path\f[]
.PP
Path on remote host for podman service's \f[C]AF_UNIX\f[] socket. The default is
\f[C]/run/podman/io.projectatomic.podman\f[].
\f[C]/run/podman/io.podman\f[].
.PP
\f[B]\[en]identity\-file\f[]
.PP
@ -92,7 +92,7 @@ From command line option, for example: \[en]run\-dir
This should provide Operators the ability to setup basic configurations
and allow users to customize them.
.PP
\f[B]XDG_RUNTIME_DIR\f[] (\f[C]XDG_RUNTIME_DIR/io.projectatomic.podman\f[])
\f[B]XDG_RUNTIME_DIR\f[] (\f[C]XDG_RUNTIME_DIR/io.podman\f[])
.PP
Directory where pypodman stores non\-essential runtime files and other file
objects (such as sockets, named pipes, \&...).

View File

@ -101,7 +101,7 @@ class PodmanArgumentParser(argparse.ArgumentParser):
'--remote-socket-path',
metavar='PATH',
help=('path of podman socket on remote host'
' (default: /run/podman/io.projectatomic.podman)'))
' (default: /run/podman/io.podman)'))
self.add_argument(
'--identity-file',
'-i',
@ -198,7 +198,7 @@ class PodmanArgumentParser(argparse.ArgumentParser):
getattr(args, 'remote_socket_path')
or os.environ.get('REMOTE_SOCKET_PATH')
or config['default'].get('remote_socket_path')
or '/run/podman/io.projectatomic.podman'
or '/run/podman/io.podman'
) # yapf:disable
reqattr(