Comment 9 for bug 1214500

Revision history for this message
Derek Simkowiak (derek-x) wrote :

Still there in 14.04.

Please be advised, this bug breaks the SSH ControlMaster feature, which in turn breaks Android builds.

I am trying to use LXC containers (snapshot clones using overlayfs) to build Android (12.04 container on a 14.04 host). Android's build utility "repo" is a python script that uses SSH with an SSH ControlMaster (shared SSH session using a FIFO socket). It creates a master connection like this:

  ssh -M -N -p 29422 -o ControlPath=/tmp/ssh-ujjH6W/master-%r@%h:%p my-upstream-android.mirror.com

...and then it reuses that connection to do a git pull (from gerrit) for 100+ git repos (called "projects" in Android lingo).

Since pipes don't work, running "./repo sync" results in a bunch of errors like this:

Control socket connect(/<email address hidden>): Connection refused
Control socket connect(/<email address hidden>): Connection refused
Control socket connect(/<email address hidden>): Connection refused
...etc...

This error message was hard to diagnose and find. I had to know to look for "LXC Unix Sockets", specifically leaving out the terms Android, repo, ssh, etc. Even then it was the fifth Google result down.