Bug 1549625

Summary: webui updates failing when a proxy is required
Product: Red Hat CloudForms Management Engine Reporter: Satoe Imaishi <simaishi>
Component: ApplianceAssignee: Brandon Dunne <bdunne>
Status: CLOSED ERRATA QA Contact: luke couzens <lcouzens>
Severity: high Docs Contact:
Priority: high    
Version: 5.9.0CC: abellott, bdunne, cpelland, jprause, lcouzens, obarenbo, simaishi
Target Milestone: GAKeywords: ZStream
Target Release: 5.9.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: webui:upgrade
Fixed In Version: 5.9.2.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1540550 Environment:
Last Closed: 2018-05-07 20:42:43 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core Target Upstream Version:
Embargoed:
Bug Depends On: 1540550    
Bug Blocks:    

Comment 2 CFME Bot 2018-03-07 18:31:53 UTC
New commit detected on ManageIQ/manageiq/gaprindashvili:

https://github.com/ManageIQ/manageiq/commit/e1e13c8d8389a81337f5471da921d5ae64697bb1
commit e1e13c8d8389a81337f5471da921d5ae64697bb1
Author:     Nick Carboni <ncarboni>
AuthorDate: Thu Feb  8 17:19:55 2018 -0500
Commit:     Nick Carboni <ncarboni>
CommitDate: Thu Feb  8 17:19:55 2018 -0500

    Merge pull request #16972 from bdunne/configure_proxy_info_for_yum_updates

    Configure yum proxy if given for updates
    (cherry picked from commit 58a6e5645ac73ec5a6942bf97cdb56977f5fa5c4)

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

 app/models/miq_server/update_management.rb | 11 +
 spec/models/miq_server/update_management_spec.rb | 35 +
 2 files changed, 46 insertions(+)

Comment 3 luke couzens 2018-04-20 11:27:14 UTC
I don't believe this is working correctly. I added the rhsm settings and proxy info to the ui but check/updating the appliance still fails. Checking the file from the PR /etc/yum.conf I see no proxy info has been added. If I manually add the settings to this file it works as expected. Pushing back to on dev.

Comment 6 Brandon Dunne 2018-04-25 20:48:56 UTC
Hi Luke,  Do you have an appliance to test this on?  I don't have a proxy anywhere to test locally.  I see that the code is in 5.9.2.0, so I would expect it to work.  Did you select the server and click register first?  The proxy information is written to the config file during the registration process.

Comment 7 luke couzens 2018-04-26 12:10:25 UTC
Hi Brandon,

I didn't realize registration was required to add the proxy info to yum.conf

I just tested this again on 5.9.2.3 and it indeed seems to work correctly if you hit register first. Thanks for this info, Moving bug to verified.

Verified in 5.9.2.3

Comment 10 errata-xmlrpc 2018-05-07 20:42:43 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2018:1328