Bug 16095 - vps-create: missing value check
Summary: vps-create: missing value check
Status: CLOSED WONTFIX
Alias: None
Product: Branch 4.0
Classification: Distributions
Component: vzctl (show other bugs)
Version: 4.0
Hardware: all Linux
: P2 normal
Assignee: Dmitry V. Levin
QA Contact: Q.A. 4.0
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-19 13:01 MSD by Michael Shigorin
Modified: 2011-09-18 21:07 MSK (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 у меня нет и бэкпортировать желания нет.