Problem was solved See https://bugs.openvz.org/browse/OVZ-6304
2015-08-19 19:45 GMT+08:00 Alkaid <zgf574564...@gmail.com>: > 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@entry=0x7fffffff9b90 > "/sys/fs/cgroup/ve/101/ve.state", data=data@entry=0x7ffff7066cfc "START") > at cgroup.c:161 > #1 0x00007ffff7029376 in cg_set_param (ctid=ctid@entry=0x621e70 "101", > subsys=subsys@entry=0x7ffff706aa6d "ve", name=name@entry=0x7ffff7066d02 > "ve.s > tate", data=data@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-requ...@openvz.org>: > >> Send Users mailing list submissions to >> users@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-requ...@openvz.org >> >> You can reach the person managing the list at >> users-ow...@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 <zgf574564...@gmail.com> >> To: users@openvz.org >> Subject: [Users] Can't open /sys/fs/cgroup/ve/$UUID/ve.state for >> writing: Permission denied >> Message-ID: >> < >> cajfqjcm8u-5f23ehhc3okqhp_dgot+lh6xa-d0qfmyiet9j...@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@openvz.org >> https://lists.openvz.org/mailman/listinfo/users >> >> >> End of Users Digest, Vol 118, Issue 15 >> ************************************** >> > >
_______________________________________________ Users mailing list Users@openvz.org https://lists.openvz.org/mailman/listinfo/users