Question

Can a Virtuozzo OS template be removed from POA if it is used by registered VPSes?

Answer

It cannot. If provider tries to remove it from "Services > Cloud Infrastructure > OS Templates > <TEMPLATE_NAME>", he will receive the following message:

Cannot delete template(s). There is a Resource Type that depends on template(s) you are trying to delete.

The following will be logged in poa.debug.log:

Jan 23 14:56:19 osscore : DBG [UI:4bd1338e:1390474574120 1:5342:b2cfeb90 lib]: [txn:15110517 TEM_impl::removeVZTemplate] {module_id="VPSTemplateManagement"; code="24"} Template is still used by at least one RT
Jan 23 14:56:19 osscore : DBG [UI:4bd1338e:1390474574120 1:3992:ae9cdb90 Kernel]: [txn:15110517 DBS::Transaction_impl::rollback_impl] Rolling back transaction '15110517'
Jan 23 14:56:19 osscore : DBG [UI:4bd1338e:1390474574120 1:3992:ae9cdb90 Kernel]: [txn:15110517 DBS::DSNResourceCoordinator::rollback] ===> ENTRY
Jan 23 14:56:19 osscore : DBG [UI:4bd1338e:1390474574120 1:3992:ae9cdb90 Kernel]: [txn:15110517 DBS::DSNResourceCoordinator::rollback] <=== EXIT [0.000402]
Jan 23 14:56:19 osscore : DBG [UI:4bd1338e:1390474574120 1:3992:ae9cdb90 lib]: [txn:15110517 SimpleServantActivator::etherealize] ===> ENTRY
Jan 23 14:56:19 osscore : DBG [UI:4bd1338e:1390474574120 1:3992:ae9cdb90 lib]: [txn:15110517 SimpleServantActivator::etherealize] <=== EXIT [0.000141]
Jan 23 14:56:19 osscore : DBG [UI:4bd1338e:1390474574120 1:5342:b2cfeb90 VPSManager]: [TEM_impl::removeVZTemplate] <=== EXIT (by exception) [5.128669]

If provider tries to remove an OS template that is not installed on any VPSes, he will still receive an extra prompt like below:

Application Template Version with ID = <ID> is installed on VPS Hardware Node(s). If you delete it, it will be deleted from all VPS Hardware Node(s) where it is installed. Are you sure that you want to perform cascade deletion of the selected Version? EZ Template will not be deleted from VPS Hardware Nodes with Virtuozzo version lower than 4.0

Internal content