Bug 1386706

Summary: Vmware Storage Profile in vsphere55
Product: Red Hat CloudForms Management Engine Reporter: Leo Khomenko <lkhomenk>
Component: ProvidersAssignee: Adam Grare <agrare>
Status: CLOSED CURRENTRELEASE QA Contact: Leo Khomenko <lkhomenk>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.7.0CC: agrare, anewman, cpelland, jfrey, jhardy, lkhomenk, obarenbo, simaishi
Target Milestone: GAKeywords: TestOnly
Target Release: 5.8.0Flags: lkhomenk: automate_bug-
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: vmware:ui
Fixed In Version: 5.8.0.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1390408 (view as bug list) Environment:
Last Closed: 2017-06-12 17:18:17 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: VMware Target Upstream Version:
Bug Depends On:    
Bug Blocks: 1390408    
Attachments:
Description Flags
vsphere55 Vm details CFME
none
vcenter55 VM details
none
vsphere6 Vm details CFME
none
vcesnet6 VM details none

Description Leo Khomenko 2016-10-19 13:40:17 UTC
Created attachment 1212148 [details]
vsphere55 Vm details CFME

Description of problem:Storage profile is not shown in CFME on vsphere55


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


How reproducible:100%


Steps to Reproduce:
1.Preconfigured vcenter55 with Storage Policies and VM with assigned Storage Policy
2.Open VM's Details to check Storage Profile

Actual results:No Storage Profile on vsphere55(see screens)


Expected results:Storage Profile should be mentioned


Additional info:we do have Storage Profile in vsphere-nested6

Comment 2 Leo Khomenko 2016-10-19 13:41:06 UTC
Created attachment 1212149 [details]
vcenter55 VM details

Comment 3 Leo Khomenko 2016-10-19 13:42:19 UTC
Created attachment 1212150 [details]
vsphere6 Vm details CFME

Comment 4 Leo Khomenko 2016-10-19 13:43:18 UTC
Created attachment 1212152 [details]
vcesnet6 VM details

Comment 5 Leo Khomenko 2016-10-19 13:46:14 UTC
same happened on vsphere55-nested - in provider's UI we are able to see Storage Profile in VM details, and in CFME - not.

Also during Provision/Clone - there's no Storage Profile being shown on Environment Tab

Comment 6 Adam Grare 2016-10-19 13:46:51 UTC
Leo, are there any storage profiles in the database?  You can run StorageProfile.all from the rails console.  Also can you check for any warnings in log/vim.log?

Comment 7 Leo Khomenko 2016-10-19 15:18:02 UTC
irb(main):005:0> StorageProfile.all 
=> #<ActiveRecord::Relation []>
irb(main):006:0> 

and

vim.log

[----] W, [2016-10-19T09:20:26.106478 #14217:a7b1b0]  WARN -- : MiqPbmInventory: Failed to connect to SPBM endpoint: can't dup NilClass
 [----] W, [2016-10-19T09:20:35.438872 #14130:3db148]  WARN -- : MiqPbmInventory: Failed to connect to SPBM endpoint: can't dup NilClass

Comment 8 Adam Grare 2016-10-19 15:28:25 UTC
It looks like the session cookie isn't returned the same way on 5.5 and 6.0, without the session cookie we cannot authenticate to the SPBM endpoint.  Will investigate how 5.5 returns this token.

Comment 11 CFME Bot 2016-10-24 19:11:18 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/ecf16ab2cd2d9bcd7afadd53f3c12e7633ee2e1d

commit ecf16ab2cd2d9bcd7afadd53f3c12e7633ee2e1d
Author:     Adam Grare <agrare>
AuthorDate: Thu Oct 20 14:22:51 2016 -0400
Commit:     Adam Grare <agrare>
CommitDate: Thu Oct 20 15:15:43 2016 -0400

    Save token on Login and RetrieveServiceContent
    
    5.5 vCenters return the session token in the
    RetrieveServiceContentResponse and 6.0 vCenters return it in the
    LoginResponse so we have to try to save the token in both calls.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1386706

 gems/pending/VMwareWebService/VimService.rb | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

Comment 12 CFME Bot 2016-10-25 02:46:03 UTC
New commit detected on ManageIQ/manageiq/euwe:
https://github.com/ManageIQ/manageiq/commit/ed31da0020ce7ca76649e07104dba3b8e8f9f231

commit ed31da0020ce7ca76649e07104dba3b8e8f9f231
Author:     Greg Blomquist <blomquisg>
AuthorDate: Mon Oct 24 15:07:01 2016 -0400
Commit:     Oleg Barenboim <chessbyte>
CommitDate: Tue Oct 25 04:42:19 2016 +0200

    Merge pull request #12086 from agrare/bz_1386706_5.5_storage_profiles
    
    Fix  storage profile connection on 5.5 vCenters
    (cherry picked from commit c1e1e399e9774ebbaa4ffb89b340b668515d4529)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1386706

 gems/pending/VMwareWebService/VimService.rb        | 16 +++------
 .../vmware/infra_manager/vm/remote_console.yml     | 41 ----------------------
 2 files changed, 5 insertions(+), 52 deletions(-)

Comment 14 Leo Khomenko 2017-02-06 17:20:16 UTC
was fixed in 5.7