Article ID: 121820, created on May 30, 2014, last review on May 30, 2014

  • Applies to:
  • Operations Automation 5.5

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

Search Words

removeVZTemplate

VZ

remove

OS template

Accidently try delete OS template from POA

5b048d9bddf8048a00aba7e0bdadef37 caea8340e2d186a540518d08602aa065 5356b422f65bdad1c3e9edca5d74a1ae 2554725ed606193dd9bbce21365bed4e e12cea1d47a3125d335d68e6d4e15e07

Email subscription for changes to this article
Save as PDF