Bug 16095

Summary: vps-create: missing value check
Product: Branch 4.0 Reporter: Michael Shigorin <mike>
Component: vzctlAssignee: Dmitry V. Levin <ldv>
Status: CLOSED WONTFIX QA Contact: Q.A. 4.0 <qa-4.0>
Severity: normal    
Priority: P2 CC: dubrsl
Version: 4.0   
Hardware: all   
OS: Linux   

Description Michael Shigorin 2008-06-19 13:01:55 MSD
/usr/share/vzctl/scripts/vps-create: line 51: [: : integer expression expected

sh -x reveals this:

+ TMP='Filesystem         1024-blocks      Used Available Capacity Mounted on
/dev/sda3            138528232  33298668 103833276      25% /var/lib/vz'
++ echo 'Filesystem         1024-blocks      Used Available Capacity Mounted on
/dev/sda3            138528232  33298668 103833276      25% /var/lib/vz'
++ awk 'END{print $4}'
+ AVAIL=103833276
+ '[' ' 63 70' = ' 1f 8b' ']'
++ find /var/lib/vz/template/cache/altlinux-2.4-squirrel.tar -maxdepth 0 -path '' -printf %k
+ NEEDED=
+ OPT=
+ '[' 103833276 -lt '' ']'
/usr/share/vzctl/scripts/vps-create: line 51: [: : integer expression expected
Comment 1 Dmitry V. Levin 2008-06-19 13:29:30 MSD
Версия vzctl какая?
На vzctl-3.0.22-alt3 воспроизводится или нет?
Comment 2 Dmitry V. Levin 2009-04-10 03:30:01 MSD
vzctl from Sisyphus is not affected by this issue.
Comment 3 Michael Shigorin 2009-04-11 22:11:53 MSD
Cool.  Is it reasonable to backport it?
Comment 4 Slava Dubrovskiy 2011-09-18 21:07:55 MSK
закрываю. 4.0 у меня нет и бэкпортировать желания нет.