OpenVZ Forum


Home » International » Russian » Не запускается mock в ve
Не запускается mock в ve [message #26918] Tue, 05 February 2008 11:58 Go to next message
sitnikov is currently offline  sitnikov
Messages: 63
Registered: August 2006
Location: Tallinn, Estonia
Member
Build nginx-ssl-0.6.25-1-x86_64
/bin/sh: line 17: /var/lib/mock/centos-5-x86_64/result/build.log: No such file or directory
mock: error: clone failed: Operation not permitted

strace:

18375 clone(child_stack=0, flags=CLONE_VFORK|CLONE_NEWNS|SIGCHLD) = -1 EPERM (Operation not permitted)

Re: Не запускается mock в ve [message #26919 is a reply to message #26918] Tue, 05 February 2008 12:01 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

Странно, откуда взялся CLONE_NEWNS внутри VE.

Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: Не запускается mock в ve [message #26920 is a reply to message #26919] Tue, 05 February 2008 12:05 Go to previous messageGo to next message
sitnikov is currently offline  sitnikov
Messages: 63
Registered: August 2006
Location: Tallinn, Estonia
Member
22465 execve("/usr/bin/mock", ["mock"], [/* 28 vars */]) = 0
22465 brk(0) = 0x115ea000
22465 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aaaaaac5000
22465 uname({sys="Linux", node="foo", ...}) = 0
22465 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
22465 open("/etc/ld.so.cache", O_RDONLY) = 3
22465 fstat(3, {st_mode=S_IFREG|0644, st_size=13260, ...}) = 0
22465 mmap(NULL, 13260, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2aaaaaac6000
22465 close(3) = 0
22465 open("/lib64/libc.so.6", O_RDONLY) = 3
22465 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\240\331\1\0\0\0\0\0 "..., 832) = 832
22465 fstat(3, {st_mode=S_IFREG|0755, st_size=1681880, ...}) = 0
22465 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aaaaaaca000
22465 mmap(NULL, 3469464, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x2aaaaacc6000
22465 mprotect(0x2aaaaae0c000, 2097152, PROT_NONE) = 0
22465 mmap(0x2aaaab00c000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x146000) = 0x2aaaab00c000
22465 mmap(0x2aaaab011000, 16536, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2aaaab011000
22465 close(3) = 0
22465 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aaaab016000
22465 arch_prctl(ARCH_SET_FS, 0x2aaaab0166e0) = 0
22465 mprotect(0x2aaaab00c000, 16384, PROT_READ) = 0
22465 mprotect(0x2aaaaacc4000, 4096, PROT_READ) = 0
22465 munmap(0x2aaaaaac6000, 13260) = 0
22465 clone(child_stack=0, flags=CLONE_VFORK|CLONE_NEWNS|SIGCHLD) = -1 EPERM (Operation not permitted)
22465 write(2, "mock: error: ", 13) = 13
22465 write(2, "clone failed: Operation not perm"..., 38) = 38
22465 write(2, "\n", 1) = 1
22465 exit_group(1)

--

причем
0.6.13-1.el5.centos - работает
0.8.9-1.el5 - нет

[Updated on: Tue, 05 February 2008 12:11]

Report message to a moderator

Re: Не запускается mock в ve [message #26922 is a reply to message #26918] Tue, 05 February 2008 12:15 Go to previous messageGo to next message
xemul is currently offline  xemul
Messages: 248
Registered: November 2005
Senior Member
kernel version, please.
without it it's unable to track any kernel-related problem.

Thanks

Upd: In general, you cannot clone with NEWNS w/o CAP_SYS_ADMIN capability. In VE we do not provide such.


http://static.openvz.org/userbars/openvz-developer.png

[Updated on: Tue, 05 February 2008 12:17]

Report message to a moderator

Re: Не запускается mock в ve [message #26923 is a reply to message #26922] Tue, 05 February 2008 12:20 Go to previous messageGo to next message
sitnikov is currently offline  sitnikov
Messages: 63
Registered: August 2006
Location: Tallinn, Estonia
Member
2.6.18-53.1.4.el5.028stab053.4
Re: Не запускается mock в ve [message #26924 is a reply to message #26918] Tue, 05 February 2008 12:47 Go to previous messageGo to next message
xemul is currently offline  xemul
Messages: 248
Registered: November 2005
Senior Member
OK. Please, strace the 0.6.13-1.el5.centos - does it call clone with CLONE_NEWNS? (I believe it does not, but just to be 100% sure)

http://static.openvz.org/userbars/openvz-developer.png
Re: Не запускается mock в ve [message #26925 is a reply to message #26924] Tue, 05 February 2008 13:05 Go to previous messageGo to next message
sitnikov is currently offline  sitnikov
Messages: 63
Registered: August 2006
Location: Tallinn, Estonia
Member
strace mock 2>&1 |grep clone

empty ...
Re: Не запускается mock в ve [message #26933 is a reply to message #26918] Tue, 05 February 2008 14:18 Go to previous message
xemul is currently offline  xemul
Messages: 248
Registered: November 2005
Senior Member
OK. Then the origins of the problem are clean.
Can't say whether we can just allow VE users to clone with NEWNS.

I think we can have this as a BUG in bugzilla not to forget.

Upd: http://bugzilla.openvz.org/show_bug.cgi?id=806


http://static.openvz.org/userbars/openvz-developer.png

[Updated on: Tue, 05 February 2008 14:19]

Report message to a moderator

Previous Topic: Установка OpenVZ + XEN on Debian
Next Topic: синхронизация, бекап, аварийное автоподнятие...
Goto Forum:
  


Current Time: Wed May 22 23:04:29 GMT 2024

Total time taken to generate the page: 0.00546 seconds