[Users] Users Digest, Vol 118, Issue 15

Alkaid zgf574564920 at gmail.com
Wed Aug 19 04:45:51 PDT 2015


Well, I tried to debug.
I copy created ploop template to  CentOS7, create a container, then gdb
vzctl start 101
With gdb, I found error occured in libvzctl, part of the stack is bellow

#0  write_data (path=path at entry=0x7fffffff9b90
"/sys/fs/cgroup/ve/101/ve.state", data=data at entry=0x7ffff7066cfc "START")
at cgroup.c:161
#1  0x00007ffff7029376 in cg_set_param (ctid=ctid at entry=0x621e70 "101",
subsys=subsys at entry=0x7ffff706aa6d "ve", name=name at entry=0x7ffff7066d02
"ve.s
tate", data=data at entry=0x7ffff7066cfc "START") at cgroup.c:235
#2  0x00007ffff703ba6d in start_container (h=0x621e70) at env_nsops.c:199
#3  real_ns_env_create (arg=0x7fffffffad40) at env_nsops.c:215
#4  0x00007ffff6d4f1ad in clone () from /lib64/libc.so.6

this thread is cloned from vzctl

>From the source code, I can find in lib/cgroup.c     function write_data
 line 161
        here is "fd = open(path, O_WRONLY);"

So what on earth makes this "open" Permission Denied, what should I debug
next ?


2015-08-19 3:00 GMT+08:00 <users-request at openvz.org>:

> Send Users mailing list submissions to
>         users at openvz.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         https://lists.openvz.org/mailman/listinfo/users
> or, via email, send a message with subject or body 'help' to
>         users-request at openvz.org
>
> You can reach the person managing the list at
>         users-owner at openvz.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Users digest..."
>
>
> Today's Topics:
>
>    1. Can't open /sys/fs/cgroup/ve/$UUID/ve.state for writing:
>       Permission denied (Alkaid)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 18 Aug 2015 16:53:12 +0800
> From: Alkaid <zgf574564920 at gmail.com>
> To: users at openvz.org
> Subject: [Users] Can't open /sys/fs/cgroup/ve/$UUID/ve.state for
>         writing:        Permission denied
> Message-ID:
>         <
> CAJFQjcM8u-5F23EhhC3OkqHp_DgOT+LH6Xa-D0qfmYiet9jhKg at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> I am using Centos7+vzkernel+...
> When creating ostemplate, it always creates an temporary container to
> download and install packages. But vzctl can't open ve.state with O_WRONLY,
> result is EACCES ( Permission denied).
> cmd: vzpkg create cache centos-6-x86_64, full log is in the attachment
>
> I found an issue on bugs.openvz.org (
> https://bugs.openvz.org/browse/OVZ-6304),
> I wonder why it was treated as "Feature Request" and a "Userspace" problem.
>
> On the same time, everything works fine in the cloudlinux, they have nearly
> the same environment
>     kernel 3.10.0-123.1.2.vz7.5.29
>     vzctl v.7.0.60-1.vz7
>     libvzctl-7.0.89-1.1.vz7.x86_64
>     vztt-7.0.22-1.vz7.x86_64
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.openvz.org/pipermail/users/attachments/20150818/6ca30776/attachment-0001.html
> >
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: stdout
> Type: application/octet-stream
> Size: 2468 bytes
> Desc: not available
> URL: <
> http://lists.openvz.org/pipermail/users/attachments/20150818/6ca30776/attachment-0001.obj
> >
>
> ------------------------------
>
> _______________________________________________
> Users mailing list
> Users at openvz.org
> https://lists.openvz.org/mailman/listinfo/users
>
>
> End of Users Digest, Vol 118, Issue 15
> **************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvz.org/pipermail/users/attachments/20150819/495df84f/attachment.html>


More information about the Users mailing list