<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div>Please use&nbsp;<a href="https://bugs.openvz.org/browse/OVZ-6304">https://bugs.openvz.org/browse/OVZ-6304</a>&nbsp;for this issue communications.</div>
<div><br>
</div>
<div>Thank you,</div>
<div>Dmitry.</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>&lt;<a href="mailto:users-bounces@openvz.org">users-bounces@openvz.org</a>&gt; on behalf of Alkaid &lt;<a href="mailto:zgf574564920@gmail.com">zgf574564920@gmail.com</a>&gt;<br>
<span style="font-weight:bold">Reply-To: </span>&quot;<a href="mailto:users@openvz.org">users@openvz.org</a>&quot; &lt;<a href="mailto:users@openvz.org">users@openvz.org</a>&gt;<br>
<span style="font-weight:bold">Date: </span>Wednesday 19 August 2015 14:45<br>
<span style="font-weight:bold">To: </span>&quot;<a href="mailto:users@openvz.org">users@openvz.org</a>&quot; &lt;<a href="mailto:users@openvz.org">users@openvz.org</a>&gt;<br>
<span style="font-weight:bold">Subject: </span>Re: [Users] Users Digest, Vol 118, Issue 15<br>
</div>
<div><br>
</div>
<blockquote id="MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style="BORDER-LEFT: #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>
<div>
<div dir="ltr">Well, I tried to debug.
<div>I copy created ploop template to &nbsp;CentOS7, create a container, then gdb vzctl start 101</div>
<div>With gdb, I found error occured in libvzctl, part of the stack is bellow<br>
</div>
<div>
<div><br>
</div>
<div>
<div>#0 &nbsp;write_data (path=path@entry=0x7fffffff9b90 &quot;/sys/fs/cgroup/ve/101/ve.state&quot;, data=data@entry=0x7ffff7066cfc &quot;START&quot;) at cgroup.c:161</div>
<div>#1 &nbsp;0x00007ffff7029376 in cg_set_param (ctid=ctid@entry=0x621e70 &quot;101&quot;, subsys=subsys@entry=0x7ffff706aa6d &quot;ve&quot;, name=name@entry=0x7ffff7066d02 &quot;ve.s</div>
<div>tate&quot;, data=data@entry=0x7ffff7066cfc &quot;START&quot;) at cgroup.c:235</div>
<div>#2 &nbsp;0x00007ffff703ba6d in start_container (h=0x621e70) at env_nsops.c:199</div>
<div>#3 &nbsp;real_ns_env_create (arg=0x7fffffffad40) at env_nsops.c:215</div>
<div>#4 &nbsp;0x00007ffff6d4f1ad in clone () from /lib64/libc.so.6</div>
</div>
<div><br>
</div>
<div>this thread is cloned from vzctl</div>
<div><br>
</div>
<div>From the source code, I can find in lib/cgroup.c &nbsp; &nbsp; function write_data &nbsp; &nbsp;line 161</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; here is &quot;fd = open(path, O_WRONLY);&quot;</div>
<div><br>
</div>
<div>So what on earth makes this &quot;open&quot; Permission Denied, what should I debug next ?</div>
<div><br>
</div>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2015-08-19 3:00 GMT&#43;08:00 <span dir="ltr">&lt;<a href="mailto:users-request@openvz.org" target="_blank">users-request@openvz.org</a>&gt;</span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Send Users mailing list submissions to<br>
&nbsp; &nbsp; &nbsp; &nbsp; <a href="mailto:users@openvz.org">users@openvz.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
&nbsp; &nbsp; &nbsp; &nbsp; <a href="https://lists.openvz.org/mailman/listinfo/users" rel="noreferrer" target="_blank">
https://lists.openvz.org/mailman/listinfo/users</a><br>
or, via email, send a message with subject or body 'help' to<br>
&nbsp; &nbsp; &nbsp; &nbsp; <a href="mailto:users-request@openvz.org">users-request@openvz.org</a><br>
<br>
You can reach the person managing the list at<br>
&nbsp; &nbsp; &nbsp; &nbsp; <a href="mailto:users-owner@openvz.org">users-owner@openvz.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than &quot;Re: Contents of Users digest...&quot;<br>
<br>
<br>
Today's Topics:<br>
<br>
&nbsp; &nbsp;1. Can't open /sys/fs/cgroup/ve/$UUID/ve.state for writing:<br>
&nbsp; &nbsp; &nbsp; Permission denied (Alkaid)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Tue, 18 Aug 2015 16:53:12 &#43;0800<br>
From: Alkaid &lt;<a href="mailto:zgf574564920@gmail.com">zgf574564920@gmail.com</a>&gt;<br>
To: <a href="mailto:users@openvz.org">users@openvz.org</a><br>
Subject: [Users] Can't open /sys/fs/cgroup/ve/$UUID/ve.state for<br>
&nbsp; &nbsp; &nbsp; &nbsp; writing:&nbsp; &nbsp; &nbsp; &nbsp; Permission denied<br>
Message-ID:<br>
&nbsp; &nbsp; &nbsp; &nbsp; &lt;<a href="mailto:CAJFQjcM8u-5F23EhhC3OkqHp_DgOT%2BLH6Xa-D0qfmYiet9jhKg@mail.gmail.com">CAJFQjcM8u-5F23EhhC3OkqHp_DgOT&#43;LH6Xa-D0qfmYiet9jhKg@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;utf-8&quot;<br>
<br>
I am using Centos7&#43;vzkernel&#43;...<br>
When creating ostemplate, it always creates an temporary container to<br>
download and install packages. But vzctl can't open ve.state with O_WRONLY,<br>
result is EACCES ( Permission denied).<br>
cmd: vzpkg create cache centos-6-x86_64, full log is in the attachment<br>
<br>
I found an issue on <a href="http://bugs.openvz.org" rel="noreferrer" target="_blank">
bugs.openvz.org</a> (<a href="https://bugs.openvz.org/browse/OVZ-6304" rel="noreferrer" target="_blank">https://bugs.openvz.org/browse/OVZ-6304</a>),<br>
I wonder why it was treated as &quot;Feature Request&quot; and a &quot;Userspace&quot; problem.<br>
<br>
On the same time, everything works fine in the cloudlinux, they have nearly<br>
the same environment<br>
&nbsp; &nbsp; kernel 3.10.0-123.1.2.vz7.5.29<br>
&nbsp; &nbsp; vzctl v.7.0.60-1.vz7<br>
&nbsp; &nbsp; libvzctl-7.0.89-1.1.vz7.x86_64<br>
&nbsp; &nbsp; vztt-7.0.22-1.vz7.x86_64<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: &lt;<a href="http://lists.openvz.org/pipermail/users/attachments/20150818/6ca30776/attachment-0001.html" rel="noreferrer" target="_blank">http://lists.openvz.org/pipermail/users/attachments/20150818/6ca30776/attachment-0001.html</a>&gt;<br>
-------------- next part --------------<br>
A non-text attachment was scrubbed...<br>
Name: stdout<br>
Type: application/octet-stream<br>
Size: 2468 bytes<br>
Desc: not available<br>
URL: &lt;<a href="http://lists.openvz.org/pipermail/users/attachments/20150818/6ca30776/attachment-0001.obj" rel="noreferrer" target="_blank">http://lists.openvz.org/pipermail/users/attachments/20150818/6ca30776/attachment-0001.obj</a>&gt;<br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@openvz.org">Users@openvz.org</a><br>
<a href="https://lists.openvz.org/mailman/listinfo/users" rel="noreferrer" target="_blank">https://lists.openvz.org/mailman/listinfo/users</a><br>
<br>
<br>
End of Users Digest, Vol 118, Issue 15<br>
**************************************<br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</blockquote>
</span>
</body>
</html>