Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Fix Version/s: OpenVZ-legacy
-
Component/s: Containers::Kernel
-
Security Level: Public
-
Environment:Operating System: All
Platform: All
-
External issue URL:
-
External issue ID:1050
Description
Kernel RHEL5 028stab057.2 released
vzctl 3.0.22.
How to reproduce:
1. Creating VE:
# vzctl create 101
Creating VE private area (gentoo)
Performing postcreate actions
VE private area was created
# vzctl start 101
Starting VE ...
VE is mounted
Setting CPU limit: 25
Setting CPU units: 1000
Setting CPUs: 1
Configure meminfo: 65536
Setting quota ugidlimit: 1000
VE start in progress...
2. Creating file with "i" attribute inside VE:
# vzctl enter 101
entered into VE 101
101 / # touch /tmp/vzctl.test
101 / # chattr +i /tmp/vzctl.test
101 / # logout
exited from VE 101
3. Destroying VE:
# vzctl stop 101
Stopping VE ...
VE was stopped
VE is unmounted
# vzctl destroy 101
Destroying VE private area: /vz/private/101
VE private area was destroyed
4. Waiting 5 minutes and checking vztmp directory:
# ls /vz/vztmp/
rm.lck vzctl-rm-me.XHhn8L2
# ls /vz/vztmp/vzctl-rm-me.XHhn8L2
tmp
# ls /vz/vztmp/vzctl-rm-me.XHhn8L2/tmp/
vzctl.test
# ps awx | grep vzctl
17121 ? Ss 0:00 vzctl destroy 101
5. Removing "i" attribute:
# chattr -i /vz/vztmp/vzctl-rm-me.XHhn8L2/tmp/vzctl.test
6. Waiting 1 minute and checking vztmp directory:
# ls -l /vz/vztmp/
itogo 0
vzctl 3.0.22.
How to reproduce:
1. Creating VE:
# vzctl create 101
Creating VE private area (gentoo)
Performing postcreate actions
VE private area was created
# vzctl start 101
Starting VE ...
VE is mounted
Setting CPU limit: 25
Setting CPU units: 1000
Setting CPUs: 1
Configure meminfo: 65536
Setting quota ugidlimit: 1000
VE start in progress...
2. Creating file with "i" attribute inside VE:
# vzctl enter 101
entered into VE 101
101 / # touch /tmp/vzctl.test
101 / # chattr +i /tmp/vzctl.test
101 / # logout
exited from VE 101
3. Destroying VE:
# vzctl stop 101
Stopping VE ...
VE was stopped
VE is unmounted
# vzctl destroy 101
Destroying VE private area: /vz/private/101
VE private area was destroyed
4. Waiting 5 minutes and checking vztmp directory:
# ls /vz/vztmp/
rm.lck vzctl-rm-me.XHhn8L2
# ls /vz/vztmp/vzctl-rm-me.XHhn8L2
tmp
# ls /vz/vztmp/vzctl-rm-me.XHhn8L2/tmp/
vzctl.test
# ps awx | grep vzctl
17121 ? Ss 0:00 vzctl destroy 101
5. Removing "i" attribute:
# chattr -i /vz/vztmp/vzctl-rm-me.XHhn8L2/tmp/vzctl.test
6. Waiting 1 minute and checking vztmp directory:
# ls -l /vz/vztmp/
itogo 0