Bug 1222508

Summary: Host files contents obtained by fleecing don't show up in the UI
Product: Red Hat CloudForms Management Engine Reporter: Marius Cornea <mcornea>
Component: UI - OPSAssignee: Martin Povolny <mpovolny>
Status: CLOSED DUPLICATE QA Contact: Marius Cornea <mcornea>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.4.0CC: hkataria, jhardy, mfeifer, mpovolny, obarenbo, simaishi
Target Milestone: GA   
Target Release: 5.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.5.0.1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-24 10:06:06 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:
Embargoed:

Description Marius Cornea 2015-05-18 11:49:12 UTC
Description of problem:
Host files contents obtained by fleecing don't show up in the UI. The Contents section for the file shows 'Cannot display binary content'.

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

How reproducible:
Every time

Steps to Reproduce:
1. Register Openstack Infra provider
2. Run Smartstate Analysis on the Infra provider nodes
3. Go to one of the nodes
4. Click on Configuration for one of the Openstack services
5. Click on the file you want to retrieve contents for 

Actual results:
The Contents line shows 'Cannot display binary content'

Expected results:
The content of the file shows up in the Contents.

Additional info:
File content can be obtained via the rails console. I found the 'Cannot display binary content' in the patch here: https://github.com/ManageIQ/manageiq/commit/e2c68f13eaf45c22984d07ac3fe89ab3b9fd6393

Comment 2 Marius Cornea 2015-05-18 14:46:22 UTC
This issue has been addressed here:
https://github.com/ManageIQ/manageiq/pull/2938

Comment 3 CFME Bot 2015-06-02 06:56:18 UTC
New commit detected on manageiq/master:
https://github.com/ManageIQ/manageiq/commit/d65a551239b2ea41c7d598dd514dbdeb494ee8f9

commit d65a551239b2ea41c7d598dd514dbdeb494ee8f9
Author:     Ladislav Smola <lsmola>
AuthorDate: Mon May 18 14:25:33 2015 +0200
Commit:     Ladislav Smola <lsmola>
CommitDate: Mon May 18 14:29:27 2015 +0200

    Check for non MIME ascii content
    
    Some OpenStack files are not MIME types, but we want to show them.
    E.g. .conf or .ini. Adding check for ascii files if they are not
    MIME type.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1222508

 vmdb/app/models/filesystem.rb | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Comment 4 CFME Bot 2015-06-03 15:36:03 UTC
New commit detected on cfme/5.4.z:
https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=d6b6cfe3b776c68af63c7dc4da3dc12723877269

commit d6b6cfe3b776c68af63c7dc4da3dc12723877269
Author:     Ladislav Smola <lsmola>
AuthorDate: Mon May 18 14:25:33 2015 +0200
Commit:     Martin Povolny <mpovolny>
CommitDate: Wed Jun 3 08:23:38 2015 +0200

    Check for non MIME ascii content
    
    Some OpenStack files are not MIME types, but we want to show them.
    E.g. .conf or .ini. Adding check for ascii files if they are not
    MIME type.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1222508

 vmdb/app/models/filesystem.rb | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Comment 6 Marius Cornea 2015-11-20 17:35:34 UTC
I could reproduce this in 5.5.0.11. Just some of the files are showing the 'Cannot display binary content' message.

For instance /etc/nova/nova.conf shows Contents Cannot display binary content whilst /etc/nova/rootwrap.conf displays the file content.

Comment 7 Martin Povolny 2015-11-24 10:06:06 UTC
seems to be a duplicate of: https://bugzilla.redhat.com/show_bug.cgi?id=1221149

going to be handled by adding a "Download" link

Milan Zazrivec is taking care of this one.

*** This bug has been marked as a duplicate of bug 1221149 ***