Bug 18207

Summary: double "create" overwrites already existing config
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: critical    
Priority: P2 CC: dubrsl
Version: 4.0   
Hardware: all   
OS: Linux   

Description Michael Shigorin 2008-12-15 01:01:58 MSK
Re-creating an already existing VE due to human error results in chroot being saved from overwriting it with a clean template, but config file gets reset to whatever the default minimalistic one would be created.

It seems reasonable to check whether a file exists before creating it.

vzctl-3.0.18-alt1
Comment 1 Dmitry V. Levin 2008-12-15 01:05:22 MSK
Please also check vzctl from Sisyphus.
Comment 2 Dmitry V. Levin 2009-04-10 03:18:44 MSD
vzctl from Sisyphus is not affected by this issue.
Comment 3 Michael Shigorin 2009-04-11 22:11:52 MSD
Cool.  Is it reasonable to backport it?
Comment 4 Slava Dubrovskiy 2011-09-18 21:11:22 MSK
4.0 нет и протестировать негде. Думаю стоит задуматься о переходе на 6ю платформу.