ExamarCorp / ovz-web-panel

Automatically exported from code.google.com/p/ovz-web-panel
Other
0 stars 0 forks source link

cloning of container fails (missing root mount point ?) #476

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Steps to reproduce:
1. select container, (cloning container 100 -> 101)
2. click on tools -> clone
3. enter data (must be reasonable, but the exact values do not matter)
4. -> error message

Actual result: error message: (in web window)

Internal error: Command 'vzctl set 101 --userpasswd root:XXX' execution failed 
with code 6
Output: Starting container...
stat(/vz/root/101): No such file or directory
stat(/vz/root/101): No such file or directory
realpath(/vz/root/101) failed: No such file or directory
Can't umount /vz/root/101: No such file or directory
stat(/vz/root/101): No such file or directory
unable to change dir to /vz/root/101: No such file or directory
Not enough resources to start environment
Container start failed (try to check kernel messages, e.g. "dmesg | tail")
Error: Unable to apply new quota values: quota not running
stat(/vz/root/101): No such file or directory
stat(/vz/root/101): No such file or directory
realpath(/vz/root/101) failed: No such file or directory
Can't umount /vz/root/101: No such file or directory

Expected result: cloned container

Version of the product: 2.1

Server OS: Scientiv Linux 6.3

Browser: FireFox/Safari/Chrome (does not matter)

Additional information:

Debug output of hwdaemon.log:

[...]
2012-11-20 16:21:17] DEBUG Exec command: cp -a /vz/private/100 /vz/private/101 
; code: 0; output:
[2012-11-20 16:21:17] DEBUG accept: 10.89.250.15:57412
[2012-11-20 16:21:17] DEBUG HwDaemonApiHandler is invoked.
[2012-11-20 16:21:17] DEBUG Execute method: hwDaemon.exec
[2012-11-20 16:21:17] DEBUG Exec command: vzctl chkpnt 100 --resume; code: 0; 
output:
Resuming...
[2012-11-20 16:21:17] DEBUG accept: 10.89.250.15:57413
[2012-11-20 16:21:17] DEBUG HwDaemonApiHandler is invoked.
[2012-11-20 16:21:17] DEBUG Execute method: hwDaemon.exec
[2012-11-20 16:21:17] DEBUG Exec command: vzctl set 101 --userpasswd root:XXX; 
code: 1536; output:
Starting container...
stat(/vz/root/101): No such file or directory

[...]

The reason for this seems to be that the mountpoint /vz/root/101 is missing.
I checked the hwdaemon.log and there is the command sequence to clone the
container, but no commands for creating the mount point /vz/root/101

adding an experimental 

'hardware_server.rpc_client.exec("mkdir 
/vz/root/#{shellescape(identity.to_s)}")' 

to  ./app/models/virtual_server.rb  solves the problem.

Original issue reported on code.google.com by drf...@gmail.com on 21 Nov 2012 at 8:20

GoogleCodeExporter commented 9 years ago
Fixed. See 
https://github.com/sibprogrammer/owp/commit/dc7019e5841f7a7a96d1a46f670b6b654682
9016

Original comment by sibprogrammer on 4 Feb 2013 at 3:15

GoogleCodeExporter commented 9 years ago
�������. � ��� ���� ��������.
1) ��� ������������� ����� ������ ��� �������� � ������������ ��������
������ ���������� ������������� ����� ��� ���������� ���������� ���������
�����.

2) ������� �������� ������ ��� ����������� ������� ������� ��� ���������
������, �� �������� ��� �� ���� ������� ��� ��� ��� ����� ����� �����������
ssh publuc keys. ������ ����� ����� ����������� ������ ��� �����������,
���� �� ����� ����� ��� �������� ����� ����������� �����?

3). ��� ��������� �� code.google.com ����� �� �������� ������ � ������� ���
���� ����� git?

Original comment by thomas.c...@gmail.com on 4 Feb 2013 at 4:26