{"action":"created","issue":{"url":"https://api.github.com/repos/test-kitchen/kitchen-docker/issues/215","repository_url":"https://api.github.com/repos/test-kitchen/kitchen-docker","labels_url":"https://api.github.com/repos/test-kitchen/kitchen-docker/issues/215/labels{/name}","comments_url":"https://api.github.com/repos/test-kitchen/kitchen-docker/issues/215/comments","events_url":"https://api.github.com/repos/test-kitchen/kitchen-docker/issues/215/events","html_url":"https://github.com/test-kitchen/kitchen-docker/issues/215","id":160655752,"number":215,"title":"Can't login in docker when test-kitchen is executed from docker container","user":{"login":"dj-wasabi","id":1171720,"avatar_url":"https://avatars.githubusercontent.com/u/1171720?v=3","gravatar_id":"","url":"https://api.github.com/users/dj-wasabi","html_url":"https://github.com/dj-wasabi","followers_url":"https://api.github.com/users/dj-wasabi/followers","following_url":"https://api.github.com/users/dj-wasabi/following{/other_user}","gists_url":"https://api.github.com/users/dj-wasabi/gists{/gist_id}","starred_url":"https://api.github.com/users/dj-wasabi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dj-wasabi/subscriptions","organizations_url":"https://api.github.com/users/dj-wasabi/orgs","repos_url":"https://api.github.com/users/dj-wasabi/repos","events_url":"https://api.github.com/users/dj-wasabi/events{/privacy}","received_events_url":"https://api.github.com/users/dj-wasabi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-06-16T13:00:22Z","updated_at":"2016-06-22T20:24:41Z","closed_at":null,"body":"Hi,\r\n\r\nWe have a Jenkins master running in docker. When a job is started, a jenkins-slave docker container is started and executes everything related in this job in this specific jenkins-slave container.\r\n\r\nWhen running the `kitchen converge` step, it will create and boot a new docker container, but it can't login:\r\n\r\n```\r\n       Waiting for SSH service on localhost:32844, retrying in 3 seconds\r\n       Waiting for SSH service on localhost:32844, retrying in 3 seconds\r\n       Waiting for SSH service on localhost:32844, retrying in 3 seconds\r\n$$$$$$ [SSH] connection failed, terminating (#<Errno::ECONNREFUSED: Connection refused - connect(2) for 127.0.0.1:32844>)\r\n>>>>>> ------Exception-------\r\n>>>>>> Class: Kitchen::ActionFailed\r\n>>>>>> Message: 1 actions failed.\r\n>>>>>> ----------------------\r\n>>>>>> Please see .kitchen/logs/kitchen.log for more details\r\n>>>>>> Also try running `kitchen diagnose --all` for configuration\r\n[Pipeline] mail\r\n[Pipeline] }\r\n[Pipeline] // node\r\n[Pipeline] End of Pipeline\r\nERROR: script returned exit code 20\r\nFinished: FAILURE\r\n```\r\n\r\nI can see that the docker container is started and I can manually from my host login into the container. But It won't work from this jenkins-slave.\r\n\r\nThis is my .kitchen.yml file:\r\n```\r\ndriver:\r\n  name: docker\r\n\r\nprovisioner:\r\n  name: ansible_playbook\r\n  ansible_yum_repo: \"https://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-6.noarch.rpm\"\r\n  hosts: localhost\r\n  require_chef_for_busser: false\r\n  require_ruby_for_busser: true\r\n\r\nplatforms:\r\n  - name: centos-7.2\r\n    driver_config:\r\n      privileged: true\r\n      provision_command:\r\n        - /usr/bin/systemctl enable sshd\r\n      run_command: /usr/sbin/init\r\n\r\nverifier:\r\n  ruby_bindir: '/usr/bin'\r\n\r\nsuites:\r\n  - name: default\r\n```\r\n\r\nVersions:\r\ntest-kitchen: 1.9.0\r\nkitchen-docker: 2.4.0\r\nkitchen-ansible: 0.43.1\r\n\r\nAny suggestions where I should look at to make this work? Or do you need some more information?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/test-kitchen/kitchen-docker/issues/comments/227865496","html_url":"https://github.com/test-kitchen/kitchen-docker/issues/215#issuecomment-227865496","issue_url":"https://api.github.com/repos/test-kitchen/kitchen-docker/issues/215","id":227865496,"user":{"login":"ytsarev","id":518532,"avatar_url":"https://avatars.githubusercontent.com/u/518532?v=3","gravatar_id":"","url":"https://api.github.com/users/ytsarev","html_url":"https://github.com/ytsarev","followers_url":"https://api.github.com/users/ytsarev/followers","following_url":"https://api.github.com/users/ytsarev/following{/other_user}","gists_url":"https://api.github.com/users/ytsarev/gists{/gist_id}","starred_url":"https://api.github.com/users/ytsarev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ytsarev/subscriptions","organizations_url":"https://api.github.com/users/ytsarev/orgs","repos_url":"https://api.github.com/users/ytsarev/repos","events_url":"https://api.github.com/users/ytsarev/events{/privacy}","received_events_url":"https://api.github.com/users/ytsarev/received_events","type":"User","site_admin":false},"created_at":"2016-06-22T20:24:41Z","updated_at":"2016-06-22T20:24:41Z","body":"@coderanger I agree, but at least the bridge model is default"}}
{"actor":{"display_login":"ytsarev"}}