fix attach when cgroups mounted after container start
fix attach when cgroups mounted after container start

When booting an OL7 container on OL6, systemd in the OL7 container mounted
some extra cgroup controllers, which are then present in /proc/self/cgroups
of every task on the host. This is the list used by attach to determine
which cgroups to move the attached task into, but when it asks the container
over the command interface for the path to the subsystem this will fail
since the controller didn't exist when the container was first started.

Instead of failing, this change allows the attach to continue, warning that
those cgroups that could not be found won't be attached to.

The problem can be more simply reproduced by starting a busybox container,
mounting a cgroup that was not previously mounted, and then attempting
to attach to to the busybox container.

The problem will likely not manifest with cgmanager since it only requests
the path for the first controller, which is likely to always be mounted.

Signed-off-by: Dwight Engen <1793d65cf7b9eefb2bb8f5bee9a4b8ba782c26da@oracle.com>
Acked-by: Serge E. Hallyn <3df611b026e4639bee8aef7a4beb2e39fcebb313@ubuntu.com>

rldleblanc/lxc,yubo/lxc,hallyn/lxc,tych0/lxc,sapun/lxc,GreatFruitOmsk/lxc,Pelagicore/lxc,szaszg/lxc,Ponce/lxc,GreatFruitOmsk/lxc,caglar10ur/lxc,bostjan/lxc,virajs/lxc,armcc/lxc,ss1h2a3tw/lxc,major/lxc,thmo/lxc,regit/lxc,raspberrypython/lxc,hallyn/lxc,terceiro/lxc,major/lxc,ysbnim/lxc,Distrotech/lxc,hkjolhede/lxc,ecarrara/lxc,terceiro/lxc,lazy404/lxc,DarknessBeforeDawn/lxc,lisongmin/lxc,bmoar/lxc,thmo/lxc,armcc/lxc,jirislaby/lxc,yubo/lxc,aeris/lxc,christiaan/lxc,hallyn/lxc,bmoar/lxc,raspberrypython/lxc,cjwatson/lxc,szaszg/lxc,QingweiPeterLan/cs188-lxc,codebauss/lxc,rowhit/lxc,Pelagicore/lxc,ioops/lxc,ecarrara/lxc,akshaykarle/lxc,fwilson42/lxc,aeris/lxc,Ponce/lxc,szaszg/lxc,federicobriata/lxc,fwilson42/lxc,hfuCN/lxc,lazy404/lxc,Distrotech/lxc,akshaykarle/lxc,aeris/lxc,federicobriata/lxc,hkjolhede/lxc,JohnPeacockMessageSystems/lxc,thmo/lxc,terceiro/lxc,christiaan/lxc,lisongmin/lxc,christiaan/lxc,hfuCN/lxc,rowhit/lxc,weizhenwei/lxc,ysbnim/lxc,rldleblanc/lxc,regit/lxc,QingweiPeterLan/cs188-lxc,JohnPeacockMessageSystems/lxc,ss1h2a3tw/lxc,ksperis/lxc,major/lxc,yubo/lxc,akshaykarle/lxc,Pelagicore/lxc,ioops/lxc,codebauss/lxc,efiop/lxc,armcc/lxc,bmoar/lxc,LynxChaus/lxc,GreatFruitOmsk/lxc,DarknessBeforeDawn/lxc,codebauss/lxc,regit/lxc,ecarrara/lxc,caglar10ur/lxc,sapun/lxc,LynxChaus/lxc,ysbnim/lxc,hkjolhede/lxc,JohnPeacockMessageSystems/lxc,Ponce/lxc,hfuCN/lxc,tych0/lxc,rldleblanc/lxc,efiop/lxc,lazy404/lxc,virajs/lxc,raspberrypython/lxc,jirislaby/lxc,LynxChaus/lxc,fwilson42/lxc,ksperis/lxc,ss1h2a3tw/lxc,DarknessBeforeDawn/lxc,sapun/lxc,ksperis/lxc,weizhenwei/lxc,caglar10ur/lxc,ioops/lxc,QingweiPeterLan/cs188-lxc,efiop/lxc,Distrotech/lxc,virajs/lxc,lisongmin/lxc,tych0/lxc,rowhit/lxc,bostjan/lxc,jirislaby/lxc,cjwatson/lxc,bostjan/lxc,cjwatson/lxc,weizhenwei/lxc,federicobriata/lxc