Bug 1386706 - Vmware Storage Profile in vsphere55
Summary: Vmware Storage Profile in vsphere55
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Providers
Version: 5.7.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: GA
: 5.8.0
Assignee: Adam Grare
QA Contact: Leo Khomenko
URL:
Whiteboard: vmware:ui
Depends On:
Blocks: 1390408
TreeView+ depends on / blocked
 
Reported: 2016-10-19 13:40 UTC by Leo Khomenko
Modified: 2017-06-12 17:18 UTC (History)
8 users (show)

Fixed In Version: 5.8.0.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1390408 (view as bug list)
Environment:
Last Closed: 2017-06-12 17:18:17 UTC
Category: ---
Cloudforms Team: VMware
Target Upstream Version:
lkhomenk: automate_bug-


Attachments (Terms of Use)
vsphere55 Vm details CFME (92.71 KB, image/png)
2016-10-19 13:40 UTC, Leo Khomenko
no flags Details
vcenter55 VM details (132.04 KB, image/png)
2016-10-19 13:41 UTC, Leo Khomenko
no flags Details
vsphere6 Vm details CFME (82.37 KB, image/png)
2016-10-19 13:42 UTC, Leo Khomenko
no flags Details
vcesnet6 VM details (67.87 KB, image/png)
2016-10-19 13:43 UTC, Leo Khomenko
no flags Details

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


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