Bug 1396801

Summary: Provision instnace blocked - missing cloud network from non admin tenant
Product: Red Hat CloudForms Management Engine Reporter: Ronnie Rasouli <rrasouli>
Component: ProvisioningAssignee: Ladislav Smola <lsmola>
Status: CLOSED NOTABUG QA Contact: Dave Johnson <dajohnso>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 5.7.0CC: jhardy, obarenbo, rrasouli
Target Milestone: GA   
Target Release: cfme-future   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: openstack
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-21 15:21:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
tailed 3000 lines of evm.log
none
missing cloud networks from instance provisioning none

Description Ronnie Rasouli 2016-11-20 11:30:55 UTC
Description of problem:

Provisioning an instance of newly created project (Horizon), which its admin user and roles added is missing the cloud network for the tenant.

In network provider the tenant contains the cloud network - see attached

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

5.7.0.11

How reproducible:
100%

Steps to Reproduce:
1. create a project that admin roles and user added to this tenant
2. go to compute -> cloud -> instance -> provision instance
3. select the provider and images and press continue
4. navigate to environment 
5. fill the new cloud tenant, availability zone
6. scroll cloud network (mandatory field)

Actual results:

The cloud network list is empty

Expected results:

Cloud networks visible. provisioning instance possible

Additional info:

Comment 2 Ronnie Rasouli 2016-11-20 11:33:36 UTC
Created attachment 1222194 [details]
tailed 3000 lines of evm.log

Comment 3 Ronnie Rasouli 2016-11-20 11:35:44 UTC
Created attachment 1222195 [details]
missing cloud networks from instance provisioning

Comment 4 Tzu-Mainn Chen 2016-11-21 04:50:03 UTC
Ladislav, is this a bug or working as intended?  I think cloud_networks are filtered in the commit you made here:

https://github.com/ManageIQ/manageiq/commit/44f91afdaff8ef9e75fadd87ea80f37d975b7b31

... so is it possible that ^ is working as intended?

Ronnie, can you also use the openstack-cli to do 'neutron net-show <whatever network you expect to be present>', so we can see its attributes?  It's possible that this BZ is actualy expected behavior.

Comment 5 Ladislav Smola 2016-11-21 11:59:57 UTC
Can you post me the detail of the network? neutron net-show id

Is the network shared? Or does it have the right tenant associated?