Bug 1467989 - Unable to delete VirtualCenter Datastore, sub-resource validation check [NEEDINFO]
Unable to delete VirtualCenter Datastore, sub-resource validation check
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: UI - OPS (Show other bugs)
Unspecified Unspecified
medium Severity medium
: GA
: cfme-future
Assigned To: Harpreet Kataria
Mike Shriver
Depends On:
  Show dependency treegraph
Reported: 2017-07-05 13:58 EDT by Mike Shriver
Modified: 2017-07-24 10:00 EDT (History)
6 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: Bug
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core
mshriver: needinfo? (hkataria)

Attachments (Terms of Use)
Screenshot of the Datastore Details Page with disabled Configuration Option (171.07 KB, image/png)
2017-07-05 13:58 EDT, Mike Shriver
no flags Details

  None (edit)
Description Mike Shriver 2017-07-05 13:58:16 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:

How reproducible:

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.

Actual results:
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).

Expected results:
The configuration option to remove the datastore is enabled once the VM and host counts for the selected datastore are 0

Additional info:
Comment 4 Mike Shriver 2017-07-24 10:00:07 EDT

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?

Note You need to log in before you can comment on or make changes to this bug.