Bug 1330502

Summary: [Ansible Tower] URL cannot be saved after editing
Product: Red Hat CloudForms Management Engine Reporter: Pavol Kotvan <pakotvan>
Component: ProvidersAssignee: Brandon Dunne <bdunne>
Status: CLOSED ERRATA QA Contact: Pavol Kotvan <pakotvan>
Severity: high Docs Contact:
Priority: high    
Version: 5.6.0CC: dclarizi, hkataria, jfrey, jhardy, mpovolny, mzazrivec, obarenbo, simaishi
Target Milestone: GA   
Target Release: 5.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: ui:tower
Fixed In Version: 5.6.0.6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-06-29 15:54:46 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: Bug
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Comment 2 Milan Zázrivec 2016-05-02 14:02:53 UTC
Brandon, it seems that when we do

@provider_cfgmgmt.update_attributes(
  :name       => params[:name],
  :url        => params[:url],
  :verify_ssl => params[:verify_ssl].eql?("on")
)

in ProviderForemanController, the underlying logic only updates the provider name,
but not the url.

Please, feel free to reassign as you see fit.

Thanks!

Comment 4 CFME Bot 2016-05-04 01:05:51 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/97b0aa41006b78b09d0956f240f14f63cdcfa2a5

commit 97b0aa41006b78b09d0956f240f14f63cdcfa2a5
Author:     Brandon Dunne <bdunne>
AuthorDate: Mon May 2 18:03:52 2016 -0400
Commit:     Brandon Dunne <bdunne>
CommitDate: Tue May 3 13:52:28 2016 -0400

    Fix test failures for Provider#update_attributes on url and verify_ssl
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1330502

 app/models/manageiq/providers/ansible_tower/provider.rb | 2 +-
 app/models/provider.rb                                  | 5 ++++-
 2 files changed, 5 insertions(+), 2 deletions(-)

Comment 5 CFME Bot 2016-05-04 01:05:56 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/f3e1f9e8ce66b7189a85dbda00f0c99b67708903

commit f3e1f9e8ce66b7189a85dbda00f0c99b67708903
Author:     Brandon Dunne <bdunne>
AuthorDate: Mon May 2 18:04:11 2016 -0400
Commit:     Brandon Dunne <bdunne>
CommitDate: Tue May 3 13:52:28 2016 -0400

    Add tests for Provider#update_attributes for url and verify_ssl
    
    They don't work properly right now
    https://bugzilla.redhat.com/show_bug.cgi?id=1330502

 spec/models/manageiq/providers/ansible_tower/provider_spec.rb | 6 ++++++
 spec/models/provider_spec.rb                                  | 8 ++++++++
 2 files changed, 14 insertions(+)

Comment 9 errata-xmlrpc 2016-06-29 15:54:46 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/RHBA-2016:1348