Skip to content
This repository was archived by the owner on Jan 19, 2018. It is now read-only.
This repository was archived by the owner on Jan 19, 2018. It is now read-only.

Atomic RUN fails #806

@uhlhosting

Description

@uhlhosting
[vagrant@centos7-adb ~]$ atomic run projectatomic/helloapache
docker run -it --rm --privileged -v /home/vagrant:/atomicapp -v /run:/run -v /:/host --net=host --name helloapache -e USER -e SUDO_USER -e NAME=helloapache -e IMAGE=projectatomic/helloapache projectatomic/helloapache run

This container uses privileged security switches:

INFO: --net=host
      Processes in this container can listen to ports (and possibly rawip traffic) on the host's network.

INFO: --privileged
      This container runs without separation and should be considered the same as root on your system.

For more information on these switches and their security implications, consult the manpage for 'docker run'.

INFO   :: Atomic App: 0.6.4 - Mode: Run
INFO   :: Unpacking image projectatomic/helloapache to /host/var/lib/atomicapp/projectatomic-helloapache-483470e21b3c
INFO   :: Skipping pulling docker image: projectatomic/helloapache
INFO   :: Extracting Nulecule data from image projectatomic/helloapache to /host/var/lib/atomicapp/projectatomic-helloapache-483470e21b3c
INFO   :: Copying files from image projectatomic/helloapache:application-entity to /tmp/nulecule-087a5b8e-b766-11e7-a2bf-525400a88440
INFO   :: Using namespace default
ERROR  :: ('Connection aborted.', error(111, 'Connection refused'))
Traceback (most recent call last):
  File "/opt/atomicapp/atomicapp/cli/main.py", line 145, in cli_func_exec
    cli_func(cli_func_args)
  File "/opt/atomicapp/atomicapp/cli/main.py", line 87, in cli_run
    nm.run(**argdict)
  File "/opt/atomicapp/atomicapp/nulecule/main.py", line 305, in run
    self.nulecule.run(provider, dryrun)
  File "/opt/atomicapp/atomicapp/nulecule/base.py", line 206, in run
    component.run(provider_key, dryrun)
  File "/opt/atomicapp/atomicapp/nulecule/base.py", line 356, in run
    provider.init()
  File "/opt/atomicapp/atomicapp/providers/kubernetes.py", line 110, in init
    self.api = Client(self._from_required_params(), "kubernetes")
  File "/opt/atomicapp/atomicapp/providers/lib/kubeshift/client.py", line 43, in __init__
    self.connection = KubeKubernetesClient(config)
  File "/opt/atomicapp/atomicapp/providers/lib/kubeshift/kubernetes.py", line 54, in __init__
    self.api.test_connection(self.k8s_api)
  File "/opt/atomicapp/atomicapp/providers/lib/kubeshift/kubebase.py", line 180, in test_connection
    self.api.request("get", url)
  File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 464, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 576, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python2.7/site-packages/requests/adapters.py", line 415, in send
    raise ConnectionError(err, request=request)
ConnectionError: ('Connection aborted.', error(111, 'Connection refused'))

[vagrant@centos7-adb ~]$

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions