Project

General

Profile

Actions

Feature #5464

closed

Delete unamanged compute resource host without deleting the virtual machine.

Added by Trey Ormsbee over 10 years ago. Updated over 10 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
Compute resources
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

I create a lot of vmware vm's in foreman that generally end up getting turned off after creation to prep for ova export. Id like to be able to provision them in forman and the delete the host in foreman; without actually deleting the vmware vm.

I found the following article:

https://groups.google.com/forum/#!topic/foreman-users/BES0qnmw9XE

which mentions editing compute.rb. I made edits to actually check if the entry in the database is managed or not before destroying, but it appears the host.destroy function actually deletes the db record before calling delCompute. Im not good enough with rails to follow the destroy chain to figure out where an edit needs to be placed to implement this. Ideally it would be a configurable option.

Thanks.


Related issues 1 (0 open1 closed)

Related to Foreman - Feature #3909: compute resources prevent or disassciate host from VM prevent vm deletionClosed12/18/2013Actions
Actions

Also available in: Atom PDF