vzlist: warn/skip invalid CTIDs in ve.conf files
As original bug reporter puts in, using a CTID of 12 digits in ve.conf
file name results in strange-looking error:
# mv /etc/vz/conf/2013020601.conf /etc/vz/conf/201302060101.conf ; mv
# /vz/private/2013020601 /vz/private/201302060101; mv
# /vz/root/2013020601 /vz/root/201302060101
# vzlist -a
Unable to open /etc/vz/conf/-561402811.conf: No such file or directory
CTID NPROC STATUS IP_ADDR NAME
Fix by adding a check for validity of CTID embedded in config file name.
Configs with invalid CTIDs are warned about and skipped.
https://bugzilla.openvz.org/2514
Reported-by: Justin Albstmeijer <justin@vlamea.nl>
Signed-off-by: Kir Kolyshkin <kir@openvz.org>
1 file changed