<div dir="ltr">Hi Andrey, Pavel,<div><br></div><div>I applied nested mountains patch. Now the error I get is this: </div><div><br></div><div><p style="margin:0px;font-family:Menlo">(00.285979) Collecting root for process 95</p>
<p style="margin:0px;font-family:Menlo">(00.286310) Error (mount.c:1683): The root task has another root than mntns: /rootfs</p></div><div><br></div><div>It is printed from mntns_collect_root:</div><div><p style="margin:0px;font-family:Menlo">
<span style="font-size:27px"> </span> <b>if</b> (ret != <span style="text-decoration:underline">1</span> || path[<span style="text-decoration:underline">0</span>] != <span style="text-decoration:underline">'/'</span>) {</p>
<p style="margin:0px;font-family:Menlo"> pr_err(<span style="text-decoration:underline">"The root task has another root than mntns: </span><b>%s\n</b><span style="text-decoration:underline">"</span>, path);</p>
<p style="margin:0px;font-family:Menlo"> close_pid_proc();</p>
<p style="margin:0px;font-family:Menlo"> <b>return</b> -<span style="text-decoration:underline">1</span>;</p>
<p style="margin:0px;font-family:Menlo"> }</p><div><br></div><div>How can I fix this error? The erroneous "path" printed out is "/home/riya/container/rootfs", which contains the roots for the container.</div>
<div class="gmail_extra"><br><p style="margin:0px;font-family:Menlo"><span style="font-family:arial">Thanks,</span></p><p style="margin:0px;font-family:Menlo"><span style="font-family:arial">Riya</span></p><p style="margin:0px;font-family:Menlo">
<span style="font-family:arial"><br></span></p><p style="margin:0px;font-family:Menlo"><span style="font-family:arial">On Wed, Mar 12, 2014 at 6:04 AM, Pavel Emelyanov </span><span dir="ltr" style="font-family:arial"><<a href="mailto:xemul@parallels.com" target="_blank">xemul@parallels.com</a>></span><span style="font-family:arial"> wrote:</span><br>
</p><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div>On 03/12/2014 10:21 AM, riya khanna wrote:<br>
> Thanks Pavel!<br>
><br>
> Quick question: could you briefly explain the concept of nested mount namespaces to me?<br>
<br>
</div>Sure. The systemd spawns services with CLONE_NEWNS clone() flag, which results in<br>
services seeing their own mount points.<br>
<br>
You can read man mount about propagations for more details.<br>
<div><br>
> or perhaps direct me to an article that gives the overview.<br>
><br>
> Thanks for your time!<br>
><br>
> -Riya<br>
><br>
><br>
</div><div>> On Tue, Mar 11, 2014 at 10:36 AM, Pavel Emelyanov <<a href="mailto:xemul@parallels.com" target="_blank">xemul@parallels.com</a> <mailto:<a href="mailto:xemul@parallels.com" target="_blank">xemul@parallels.com</a>>> wrote:<br>
><br>
> On 03/11/2014 10:19 AM, riya khanna wrote:<br>
> > Any inputs on how to fix this? Pavel?<br>
><br>
> Yup, sorry for late response. It's nested mount namespaces support we're<br>
> currently working on. You can check the Andrey's patches on the list<br>
> titled "[PATCH 00/13] Restore nested mount namespaces (v2)".<br>
><br>
> Thanks,<br>
> Pavel<br>
><br>
> ><br>
</div><div>> > On Sun, Mar 9, 2014 at 4:26 PM, riya khanna <<a href="mailto:riyakhanna1983@gmail.com" target="_blank">riyakhanna1983@gmail.com</a> <mailto:<a href="mailto:riyakhanna1983@gmail.com" target="_blank">riyakhanna1983@gmail.com</a>> <mailto:<a href="mailto:riyakhanna1983@gmail.com" target="_blank">riyakhanna1983@gmail.com</a> <mailto:<a href="mailto:riyakhanna1983@gmail.com" target="_blank">riyakhanna1983@gmail.com</a>>>> wrote:<br>
> ><br>
> > I'm trying to dump a container and I see the following errors:<br>
> ><br>
> > (00.238188) pid = 333 getpid() = 1975<br>
> ><br>
> > (00.238256) pid = 333 root_item->pid.real = 84<br>
> ><br>
> > (00.238353) Error (namespaces.c:159): Can't dump nested mnt namespace for 333<br>
> ><br>
> > (00.238432) Error (namespaces.c:355): Can't make mntns id<br>
> ><br>
> ><br>
> > This is the output of ps<br>
> ><br>
> > 84 pts/0 S+ 0:05 /sbin/init<br>
> ><br>
> > 333 pts/0 Sl 0:09 /bin/server<br>
> ><br>
> ><br>
> > What could be wrong here?<br>
> ><br>
</div><div>> > On Sat, Jan 18, 2014 at 11:46 AM, Pavel Emelyanov <<a href="mailto:xemul@parallels.com" target="_blank">xemul@parallels.com</a> <mailto:<a href="mailto:xemul@parallels.com" target="_blank">xemul@parallels.com</a>> <mailto:<a href="mailto:xemul@parallels.com" target="_blank">xemul@parallels.com</a> <mailto:<a href="mailto:xemul@parallels.com" target="_blank">xemul@parallels.com</a>>>> wrote:<br>
> ><br>
> > On 01/18/2014 08:26 AM, riya khanna wrote:<br>
> > > Hi,<br>
> > ><br>
> > > What could be interpreted by each of these error msgs below:<br>
> > ><br>
> > > err msg 1:<br>
> > ><br>
</div>> > > (00.580627) Error (proc_parse.c:312): Can't handle non-regular mapping on 221's map <a href="tel:3069145088" value="+13069145088" target="_blank">3069145088</a> <tel:<a href="tel:3069145088" value="+13069145088" target="_blank">3069145088</a>> <tel:<a href="tel:3069145088" value="+13069145088" target="_blank">3069145088</a> <tel:<a href="tel:3069145088" value="+13069145088" target="_blank">3069145088</a>>><br>
<div>> ><br>
> > The task with pid 221 has a mapping of some device. You can check it via /proc.<br>
> ><br>
> > ><br>
> > > (00.580791) Error (cr-dump.c:1413): Collect mappings (pid: 221) failed with -1<br>
> ><br>
> > This is a propagation of the above error through the CRIU's calls.<br>
> ><br>
> > ><br>
> > > err msg 2:<br>
> > ><br>
> > > Error (files.c:245): Can't dump file 3 of that type [20666] (chr 10:14)<br>
> ><br>
> > The program you're dumping opened character device with major:minor == 10:14.<br>
> > This is some misc device..<br>
> ><br>
> > > Thanks,<br>
> > ><br>
> > > Riya<br>
> > ><br>
> > ><br>
> > ><br>
> > > _______________________________________________<br>
> > > CRIU mailing list<br>
</div>> > > <a href="mailto:CRIU@openvz.org" target="_blank">CRIU@openvz.org</a> <mailto:<a href="mailto:CRIU@openvz.org" target="_blank">CRIU@openvz.org</a>> <mailto:<a href="mailto:CRIU@openvz.org" target="_blank">CRIU@openvz.org</a> <mailto:<a href="mailto:CRIU@openvz.org" target="_blank">CRIU@openvz.org</a>>><br>
> > > <a href="https://lists.openvz.org/mailman/listinfo/criu" target="_blank">https://lists.openvz.org/mailman/listinfo/criu</a><br>
> > ><br>
> ><br>
> ><br>
> ><br>
> ><br>
><br>
><br>
><br>
<br>
<br>
</blockquote></div><br></div></div></div>