Bug 1589028

Summary: Openstack Volume Snapshots are appearing when we try to provision a instance via Lifecycle.
Product: Red Hat CloudForms Management Engine Reporter: Saurabh Heda <sheda>
Component: ProvidersAssignee: Sam Lucidi <slucidi>
Status: CLOSED CURRENTRELEASE QA Contact: Jad Haj Yahya <jhajyahy>
Severity: urgent Docs Contact:
Priority: high    
Version: 5.9.0CC: cchen, cpelland, gblomqui, ikaur, jfrey, jhardy, jocarter, lavenel, obarenbo, pmukhedk, simaishi, slucidi, smallamp
Target Milestone: GAKeywords: TestOnly, ZStream
Target Release: 5.10.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.10.0.3 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1596314 (view as bug list) Environment:
Last Closed: 2019-02-11 14:04:32 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: Openstack Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1595269    

Description Saurabh Heda 2018-06-08 09:09:11 UTC
Description of problem:

Openstack Volume Snapshots are appearing when we try to provision a instance via Lifecycle.

Version-Release number of selected component (if applicable):

Red Hat CloudForms 5.9.1.2

How reproducible:
Always

Steps to Reproduce:
1) Login to cloudforms operational portal via Normal user (Other than admin).
2) Navigate to Compute -> Cloud -> Instances
3) Select Lifecycle -> Provision Instance
4) We will only see list of volume snapshots instead of templates.

Actual results:

It is showing list of bootable volume snapshots.

Expected results:

CloudForms should display list of templates, bootable volumes & bootable volumes snapshots.

Comment 6 Greg McCullough 2018-06-11 15:06:10 UTC
Re-assigning to Providers team to evaluate.

Comment 7 Marek Aufart 2018-06-19 15:17:13 UTC
I believe that provisioning VM from Volume Snapshot is a feature introduced in 4.6/5.9.

Comment 8 Marek Aufart 2018-06-19 15:19:02 UTC
Sorry, didn't get that other sources for provision are missing in this case.

Comment 10 Sam Lucidi 2018-06-26 16:46:20 UTC
https://bugzilla.redhat.com/show_bug.cgi?id=1589028 fixes the tenancy scoping issue.

Comment 12 CFME Bot 2018-06-28 08:49:27 UTC
New commit detected on ManageIQ/manageiq-providers-openstack/master:

https://github.com/ManageIQ/manageiq-providers-openstack/commit/eda85c2f47505de8428e7d3a964197b6a91a2582
commit eda85c2f47505de8428e7d3a964197b6a91a2582
Author:     Sam Lucidi <slucidi>
AuthorDate: Tue Jun 26 12:34:02 2018 -0400
Commit:     Sam Lucidi <slucidi>
CommitDate: Tue Jun 26 12:34:02 2018 -0400

    Fix tenant associations on VolumeSnapshotTemplates

    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1589028

 app/models/manageiq/providers/openstack/inventory/collector/cloud_manager.rb | 5 +-
 app/models/manageiq/providers/openstack/inventory/parser/cloud_manager.rb | 2 +-
 2 files changed, 5 insertions(+), 2 deletions(-)

Comment 15 CFME Bot 2018-06-29 13:05:14 UTC
New commit detected on ManageIQ/manageiq-providers-openstack/gaprindashvili:

https://github.com/ManageIQ/manageiq-providers-openstack/commit/e9a51db31529a6e09cd81e03175b9103d14e61f3
commit e9a51db31529a6e09cd81e03175b9103d14e61f3
Author:     Sam Lucidi <slucidi>
AuthorDate: Tue Jun 26 12:34:02 2018 -0400
Commit:     Sam Lucidi <slucidi>
CommitDate: Tue Jun 26 12:34:02 2018 -0400

    Fix tenant associations on VolumeSnapshotTemplates

    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1589028

 app/models/manageiq/providers/openstack/inventory/collector/cloud_manager.rb | 5 +-
 app/models/manageiq/providers/openstack/inventory/parser/cloud_manager.rb | 2 +-
 2 files changed, 5 insertions(+), 2 deletions(-)

Comment 16 Jad Haj Yahya 2018-11-15 14:07:29 UTC
Verified on 5.10.0.24