bug in vzctl 3.0.23-1pve3 [message #38261] |
Wed, 02 December 2009 17:46 |
fdef
Messages: 6 Registered: November 2009
|
Junior Member |
|
|
hi all ,
I have a issue when i call vzctl with vps.mount/umount scripts.
Indeed, when i call vzctl start CTID, vps.umount is invoked intead of vps.mount...
2009-11-19T23:22:11+0100 vzctl : CT 102 : Starting container ...
2009-11-19T23:22:11+0100 vzctl : CT 102 : Error executing umount script /etc/vz/conf/vps.umount
2009-11-19T23:22:11+0100 vzctl : CT 102 : Setting CPU units: 1000
2009-11-19T23:22:11+0100 vzctl : CT 102 : Setting CPUs: 1
2009-11-19T23:22:11+0100 vzctl : CT 102 : Configure meminfo: 262144
2009-11-19T23:22:11+0100 vzctl : CT 102 : Set hostname: test
2009-11-19T23:22:11+0100 vzctl : CT 102 : File resolv.conf was modified
2009-11-19T23:22:11+0100 vzctl : CT 102 : Setting quota ugidlimit: 0
2009-11-19T23:22:12+0100 vzctl : CT 102 : Configure veth devices: veth102.0
2009-11-19T23:22:12+0100 vzctl : CT 102 : Container start in progress...
Do you have any patch ?
Thx, fdef
|
|
|
Re: bug in vzctl 3.0.23-1pve3 [message #38263 is a reply to message #38261] |
Thu, 03 December 2009 05:50 |
|
(1) if container is appeared to be mounted, it is unmounted first (and during that phase umount script is executed)
(2) the message "error executing umount script" in the absense of other errors means your script exited with non-zero exit value.
(3) no, we don't have a patch; I don't see any bug here (except the return value of your own script which we can't control)
Kir Kolyshkin
[Updated on: Thu, 03 December 2009 05:52] Report message to a moderator
|
|
|
|
|
|
Re: bug in vzctl 3.0.23-1pve3 [message #38348 is a reply to message #38346] |
Wed, 09 December 2009 13:29 |
fdef
Messages: 6 Registered: November 2009
|
Junior Member |
|
|
Ok i find this issue !
As i told you, if the vps.umount script exit with non-zero status the vps.mount script not invoked.
So, when i put "echo I am the vps.mount script" in the last line of my vps.umount all is ok
take a look :
+ mount --bind /home /var/lib/vz/root/102/home
+ mount --bind /vz/backups /var/lib/vz/root/102/backups
+ echo 'I am the vps.mount script'
I am the vps.mount script
Container is mounted
Without, this echo line, i have the same issue that at the beginning
|
|
|