Description of problem: In case of replacing ISO domain in RHV, refresh of the RHV provider, cannot allow adding the new ISO domain. The previous ISO domain images, still remain listed in the CFME database. Under datastores, both old & new ISO domains are displayed. Only when removing the provider, and adding it back again, does the add of the new ISO is allowed. Version-Release number of selected component (if applicable):
The current assumption on ManageIQ is that RHV provider is allowed to have only one ISO domain. However, RHV supports ISO domain per Data Center. Therefore the code should be modify to support that. So the real issue is a bit more severe, since you won't be able to have more than one ISO domain in a multi data-center RHV setup. Ilanit, could you test that scenario ? 1. Have 1 RHV with 2 DC 2. Have ISO domain in each of RHV's DCs 3. Perform refresh 4. Add ISO domain for RHV 5. Attempt to add a second ISO domain for RHV (for the other DC) the 5th step should fail. Next, please check the following scenario: 1. Go to 'Provision VM' dialog 2. Select a template from DC that has no ISO domain on manage-iq. 3. Select 'Provision via ISO' and check the presented list of images. 3.1. If there is a selected list of images, pick one and submit the request. This step should be failed by RHV. 3.2. If no images are presented for that VM - that's the same issue as before, but at least there is no suggestions for a wrong images list. Please update your findings.
There are several basic problems, that prevent from checking these 2 scenarios: 1. It seems that ISO domain images are not displayed (on latest: CFME-5.8.0.12, CFME-5.7.2). On CFME-5.7.0.17 - ISO images are displayed but these are not the images of the only iso domain connected to a RHV datacenter, as expected, but of some other ISO domain, that probably was connected sometime in the past. 2. CFME allow to add only a single ISO dataStore (Under PXE tab) per specific RHV. When adding ISO Datastore we get a list of all providers, and once added for a provider, this provider will no longer appear for adding a new ISO domain, even though there are several datacenters on this RHV, and in each of them another ISO domain. 3. After ISO domain is removed from RHV, it will remain in the CFME DB, and displyed under CFME->DataStores.
masayag: "I'd like to add couple of thinks about the scenario which lead to that bug: The specific RHV setup had 2 ISO storage domain. One active, and the other inactive. Since the 'inactive' one was picked by the ovirt-gem, it reported as no images are available. By removing the inactive ISO storage domain from RHV, and by refreshing the ISO Domain images on ManageIQ (under PXE-> Configuration -> refresh relationships), the active storage domain was picked and the available list of images was retrieved and saved in ManageIQ. I'd consider removing the blocker or reducing the severity of that bug since there is a workaround for it. A general note: On RHV, the ISO domain can be a shared between several data-centers, or can be a specific ISO storage domain per data center. In order to identify ISO domain, we should filter first the active data centers and search for the associated ISO domain with the active DCs. Then select the first active ISO domain and report its images. The existing implementation resides on the ovirt-gem, and due to its narrowed support to pull the info from RHV, I'd suggest to implement the fix for this bug and the proposed logic above based on the ovirt-sdk."
Moving to 5.9 for now, to prioritize it then.
Please assess the importance of this issue and update the priority accordingly. Somewhere it was missed in the bug triage process. Please refer to https://bugzilla.redhat.com/page.cgi?id=fields.html#priority for a reminder on each priority's definition. If it's something like a tracker bug where it doesn't matter, please set it to Low/Low.
Clearing need info on me, as I am not suppose to set the priority, but the PM.
*** This bug has been marked as a duplicate of bug 1447560 ***