-
Notifications
You must be signed in to change notification settings - Fork 232
Open
Description
Hi,
We 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.
When running the kitchen converge step, it will create and boot a new docker container, but it can't login:
Waiting for SSH service on localhost:32844, retrying in 3 seconds
Waiting for SSH service on localhost:32844, retrying in 3 seconds
Waiting for SSH service on localhost:32844, retrying in 3 seconds
$$$$$$ [SSH] connection failed, terminating (#<Errno::ECONNREFUSED: Connection refused - connect(2) for 127.0.0.1:32844>)
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: 1 actions failed.
>>>>>> ----------------------
>>>>>> Please see .kitchen/logs/kitchen.log for more details
>>>>>> Also try running `kitchen diagnose --all` for configuration
[Pipeline] mail
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
ERROR: script returned exit code 20
Finished: FAILURE
I 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.
This is my .kitchen.yml file:
driver:
name: docker
provisioner:
name: ansible_playbook
ansible_yum_repo: "https://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-6.noarch.rpm"
hosts: localhost
require_chef_for_busser: false
require_ruby_for_busser: true
platforms:
- name: centos-7.2
driver_config:
privileged: true
provision_command:
- /usr/bin/systemctl enable sshd
run_command: /usr/sbin/init
verifier:
ruby_bindir: '/usr/bin'
suites:
- name: default
Versions:
test-kitchen: 1.9.0
kitchen-docker: 2.4.0
kitchen-ansible: 0.43.1
Any suggestions where I should look at to make this work? Or do you need some more information?
francois-kha-cbp
Metadata
Metadata
Assignees
Labels
No labels