Actions
Feature #3664
closedSupport deletion of installation media that's in use
Description
When deleting a installation media that's associated to a host or host group, the deletion fails.
Actual results:
Error, installation medium is not deleted.
Expected results:
Hosts and Host Groups are un-associated to the install media and the install media is deleted.
Additional info:
Current work around is to unassociate that install media from any host or host groups in foreman and re-try the promotion.
Error in foreman:
Started DELETE "/foreman/api/media/14" for 127.0.0.1 at 2013-11-08 16:54:00 -0500
Processing by Api::V1::MediaController#destroy as JSON
Parameters: {"id"=>"14", "medium"=>{}}
Authorized user admin(Admin User)
You may not destroy Mosaic/Development/Desktop Fedora Fedora 19 x86_64 as it is in use!
Unprocessable entity Medium (id: 14):
Mosaic/Development/Desktop Fedora Fedora 19 x86_64 is used by Desktop
Rendered api/v1/errors/unprocessable_entity.json.rabl (1.4ms)
Completed 422 Unprocessable Entity in 54ms (Views: 2.6ms | ActiveRecord: 34.7ms)
Updated by Joseph Magen almost 11 years ago
- Status changed from New to Assigned
- Assignee set to Joseph Magen
- Target version set to 1.8.1
Updated by Joseph Magen almost 11 years ago
- Related to Feature #6401: change include blank option to "No environments" or "No subnets", etc if there are no select options, or "Select environment", "Select subnet" if for required field and options > 1 added
Updated by The Foreman Bot over 10 years ago
- Pull request https://github.com/theforeman/foreman/pull/1575 added
Updated by Joseph Magen over 10 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Actions