atomicapp icon indicating copy to clipboard operation
atomicapp copied to clipboard

Unattended use case broken due to docker TTY option

Open aweiteka opened this issue 10 years ago • 7 comments

Executing atomic run <atomicapp> in a Jenkins job fails with cannot enable tty mode on non tty input. The unattended use case is important so we need to figure out a way to account for this requirement.

Output

...
11:34:12 docker run -it --rm --privileged -v /home/jenkins/workspace/ ...
11:34:12 cannot enable tty mode on non tty input

aweiteka avatar Dec 01 '15 16:12 aweiteka

What type of Jenkins build are you using? Docker Jenkins slaves / libvirt ? It could be because it's trying to run docker-in-docker

cdrage avatar Dec 01 '15 17:12 cdrage

seems to work fine for the gate job we have been using.. probably need to understand the environment more so we can fix it.

dustymabe avatar Dec 01 '15 17:12 dustymabe

What type of Jenkins build are you using? Docker Jenkins slaves / libvirt ? It could be because it's trying to run docker-in-docker

I'm not sure. I can find out. I know it's not docker-in-docker.

The point is if you're running a script and the host has requiretty in /etc/sudoers then you're going to be blocked. Maybe I misunderstand something.

aweiteka avatar Dec 01 '15 17:12 aweiteka

are these tests running via ssh? if so can you try to add the -toption to the ssh command to Force pseudo-tty allocation.

dustymabe avatar Dec 03 '15 03:12 dustymabe

@aweiteka

Looks like I encountered this exact same issue when creating my Jenkins cluster :( I'm going to have to revert to using a different SSH slave plugin.

Nothing we can do as using exec / interactive commands with Docker is essential in atomic and atomicapp.

cdrage avatar Jan 08 '16 15:01 cdrage

@cdrage this is presumably an issue that would occur for a container-ized test suite so I'm very interested in what you find for a solution. Let me know!

aweiteka avatar Jan 08 '16 20:01 aweiteka

@aweiteka

Tried everything within Jenkins. They have absolutely no support for running interactive shells within their plugins.

Although running atomic / atomicapp with non-tty support would be a good use-case.

I've filed issue https://github.com/projectatomic/atomic/issues/279

cdrage avatar Jan 11 '16 17:01 cdrage