Red Hat Bugzilla – Bug 1467989
Unable to delete VirtualCenter Datastore, sub-resource validation check
Last modified: 2017-07-24 10:00:07 EDT
Created attachment 1294682 [details]
Screenshot of the Datastore Details Page with disabled Configuration Option
Description of problem:
Datastore delete validation is incorrectly applied. I am unable to delete a datastore that only shows VM template relationships, which cannot be removed.
After removing the VMs and Hosts from a virtualcenter datastore (vsphere55 in testing), the COnfiguration dropdown option to delete the datastore is disabled, with alt-test stating it cannot have any VM/Host associations.
Version-Release number of selected component (if applicable):
Behavior is present in both active CFME streams:
Steps to Reproduce:
1. Configure Virtual Center provider with a datastore that has associated Hosts and VMs
2. Note the datastore cannot be deleted while the associations are present
3. Remove datastore hosts and vms from the VMDB (not delete from provider, just remove in CFME)
4. Navigate to the details page for the datastore that was just 'cleared' of its associated resources.
Note that the Configuration option, 'Remove Datastore', is never enabled even when the 'Relationships' table shows 0 for all elements other than 'Managed VM Templates' (which cannot be removed).
The configuration option to remove the datastore is enabled once the VM and host counts for the selected datastore are 0
As stated in the original PR description, CFME doesn't support removing these VM Templates. I can view them, but am unable to make any changes.
Is this included in the design? Once there are VM Template relationships on the provider, it becomes impossible to affect the datastore configuration through CFME?