17:04:51 #startmeeting Testing Working Group 17:04:51 Meeting started Thu Jan 12 17:04:51 2017 UTC. The chair is mattclay. Information about MeetBot at http://wiki.debian.org/MeetBot. 17:04:51 Useful Commands: #action #agreed #halp #info #idea #link #topic. 17:04:51 The meeting name has been set to 'testing_working_group' 17:05:07 #chair gundalow 17:05:07 Current chairs: gundalow mattclay 17:06:00 * gundalow waves 17:06:22 internet connection died 17:06:49 wow, you also have those types of issues 17:06:52 Agenda as always https://github.com/ansible/community/issues/114 17:07:02 allanice001: *everyone* does 17:07:33 Who's here? 17:08:17 mattclay: Did you have anything, doesn't look like their is anything on the Agenda 17:08:26 Who's going to AnsibleAutomates Paris? 17:08:35 No, nothing from me. 17:08:58 I'm just working on adding network device support to ansible-test. 17:09:07 yay :) 17:09:14 Just an observation here... 17:09:15 #topic Open Floor 17:09:20 hey sivel :) 17:09:34 Would be super cool, if test-ansible could support docker containers for the connection tests 17:10:07 not exactly sure why it didn't work for me, but I had to end up enabling ssh on my mac for it to work 17:10:18 sivel: Yeah, that's on my list to add support for. 17:10:21 As well as jail tests on freebsd, since we have that on Shippable. 17:10:44 cool, just ran into it this morning, and spent about 5 seconds looking into it, so just wanted to ping you about it 17:10:52 At least the jail test works, we just don't run it currently on Shippable. 17:11:07 Thanks for the reminder. It's always good to know what kind of testing is important to people. 17:11:29 I got it working, but had to go through setting up ssh to localhost on my mac 17:11:43 which I hadn't needed previously 17:12:24 Wait, maybe I misunderstood what you meant. I was thinking about the docker connection test running inside a docker container. 17:12:36 no, ssh connection test, running inside of docker 17:12:59 Ah, yeah, known issue with docker on mac. 17:13:13 I imagine because ansible-test runs locally, and it just tries to ssh to my mac before progressing, instead of trying ssh to the container 17:13:19 The docker implementation on mac doesn't support running the ssh service in the docker containers. 17:13:44 At least not the way we have it set up right now. It's due to the very minimal distro that runs docker on mac. 17:13:55 If you run it on a linux host it should work just fine. 17:13:57 hrm, I've SSHed to containers before, but not sure of what technical difficulties there have been 17:14:37 It's actually documented here: https://github.com/ansible/ansible/blob/devel/test/integration/README.md#tests-in-docker-containers 17:16:34 Ok, I'll have to give it a shot. I may need to look into things more 17:16:47 What I was seeing is: http://dpaste.com/29Z744N 17:16:53 When you use ansible-test to run tests in docker, it checks to make sure the ssh service is working (if you're running a test marked with n"needs/ssh"). If it can't connect, it aborts the test. You can skip those tests with the "--exclude needs/ssh" option. 17:17:05 which is coming from ansible-test, and not the actual tests 17:17:15 Yep, that's the message I was referring to. 17:17:36 ok, from my cursory look, I thought it was trying to SSH to Mac, and not the container 17:17:36 Sorry, that's "--exclude needs/ssh/" (needs trailing slash) 17:17:48 yeah, just so happens I needed to run those tests for a PR I was doing 17:17:49 No, it's checking for ssh within the container. 17:18:26 Which doesn't start when running on a mac. 17:18:48 Use a Linux VM or a remote docker host (running Linux). 17:19:36 Or, if you can figure out how to get services to start properly in a docker container on mac, I'd be very grateful. :) 17:20:36 I'll play with it more 17:20:56 Unfortunately I cannot connect to my remote docker servers while at work, so I was forced to use Docker for Mac 17:21:18 Can you run docker in a Linux VM on your mac instead? That's what I do. 17:21:57 Just be sure to use a "full" linux distro, not something stripped down like alpine (which is what Docker for Mac uses, I believe) 17:22:04 I can actually connect to my remote docker servers, but the method I use is frowned upon 17:22:23 but I will play with the docker for mac stuff 17:22:26 Maybe use lxc / box with vagrant on Mac 17:22:39 and using my remote docker servers worked 17:22:49 But ports could be blocked by firewall 17:22:55 Especially with Mac 17:24:05 sivel, you can also try boot2docker 17:24:54 I wonder if that will have the same issue as Docker for Mac. If anyone tries it, let me know the results. 17:25:33 Boot2docker running in vbox works very nicely 17:26:33 allanice001: Have you tried running the ssh connection test using that? 17:27:17 yes, but remember that the docker port nat will be mapped to the vm ip address 17:28:03 Even with native Mac - ssh 127.0.0.1:2200 17:28:05 mattclay: interesting observation, the ssh tests work find for docker for mac with the ubuntu1404, as well as centos6. It fails with centos7, and ubuntu1604 17:28:30 so it seems related to systemd I would guess 17:29:06 --docker-privileged resolves it 17:29:24 so, all I good then I suppose 17:29:50 sivel: Interesting, privileged mode didn't used to solve the problem, but I actually didn't try it since I implemented ansible-test. 17:30:06 allanice001: So does it work with this? test/runner/ansible-test integration connection_ssh -v --docker 17:30:32 I had noted in the past that systemd didn't work well in containers without running in priviledged mode. Seems I should have remembered that 17:30:51 havnt tried that directly, just speaking about my Mac experience 17:30:54 at least not on docker for mac 17:31:21 sivel: Hmm.. ansible-test must have fixed whatever else was an issue. Using --docker-privileged makes it work for me too. Very good to know 17:32:24 I'll be sure to include that info when I update the docs for ansible-test. 17:32:30 sweet, thanks! 17:32:49 Thank you for figuring out it works. I had just assumed it was still not working. 17:33:09 now I need to go figure out what all unit tests I broke with this PR :) 17:34:17 Anyone else have anything? 17:35:53 Nothing from me 17:36:13 Just to say there are some more Ansible Paris tickets available 17:36:22 * gundalow -> afk 17:37:14 OK, ending the meeting in 3 minutes if nobody has anything else. 17:40:10 #endmeeting