Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1632672

Summary: NoMethodError while importing ansible roles into satellite
Product: Red Hat Satellite Reporter: Jameer Pathan <jpathan>
Component: Ansible - Configuration ManagementAssignee: Lukas Zapletal <lzap>
Status: CLOSED ERRATA QA Contact: Jameer Pathan <jpathan>
Severity: high Docs Contact:
Priority: high    
Version: 6.4CC: lzap, mhulan, mmccune, pcreech
Target Milestone: 6.4.0Keywords: Regression, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: https://projects.theforeman.org/issues/25030
Whiteboard:
Fixed In Version: tfm-rubygem-foreman_ansible 2.2.9-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-16 19:33:51 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 Jameer Pathan 2018-09-25 11:05:17 UTC
Description of problem:
error while importing ansible roles into satellite 

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

@satellite 6.4.0 snap 23
# rpm -qa | grep ansible
tfm-rubygem-foreman_ansible-2.2.8-2.el7sat.noarch
ansible-2.6.4-1.el7ae.noarch

How reproducible:
always

Steps to Reproduce:
1.go to Configure > Roles
2.click on default capsule
3.Select ansible role("RedHatInsights.insights-client") and click update

Actual results:
error saying " Oops, we're sorry but something went wrong undefined method `each_value' for #<ActionController::Parameters:0x00007faa5d0cb3b8> Did you mean? each_pair"

Expected results:
ansible role got imported

Additional info:

Comment 1 Jameer Pathan 2018-09-25 11:06:24 UTC
Created attachment 1486716 [details]
error while importing ansible role

Comment 2 Jameer Pathan 2018-09-25 11:12:40 UTC
logs from production.log

2018-09-25T07:11:29 [I|app|] Started POST "/ansible/ansible_roles/confirm_import" for 10.65.197.187 at 2018-09-25 07:11:29 -0400
2018-09-25T07:11:29 [I|app|de78b] Processing by AnsibleRolesController#confirm_import as HTML
2018-09-25T07:11:29 [I|app|de78b]   Parameters: {"utf8"=>"✓", "authenticity_token"=>"SeigfR+B+7+h4oGuHkhfqWHtn+oBIKIRVnj2faHUTopuHVChDKvzuRejaXuAGqh7HjLuNHculw80G9AGTZVLYA==", "changed"=>{"new"=>{"RedHatInsights.insights-client"=>"{\"id\":null,\"name\":\"RedHatInsights.insights-client\",\"created_at\":null,\"updated_at\":null}"}}, "commit"=>"Update"}
2018-09-25T07:11:29 [I|app|de78b] Current user: admin (administrator)
2018-09-25T07:11:29 [W|app|de78b] Action failed
NoMethodError: undefined method `each_value' for #<ActionController::Parameters:0x00007faa58cf58c8>
Did you mean?  each_pair
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman_ansible-2.2.8/app/services/foreman_ansible/ui_roles_importer.rb:15:in `create_new_roles'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman_ansible-2.2.8/app/services/foreman_ansible/ui_roles_importer.rb:10:in `finish_import'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman_ansible-2.2.8/app/controllers/ansible_roles_controller.rb:36:in `confirm_import'

Comment 7 Satellite Program 2018-09-25 14:09:39 UTC
Upstream bug assigned to lzap

Comment 8 Satellite Program 2018-09-25 14:09:42 UTC
Upstream bug assigned to lzap

Comment 9 Mike McCune 2018-09-25 15:57:12 UTC
moving to POST, upstream issue is closed.

Comment 11 Jameer Pathan 2018-09-27 13:29:02 UTC
Verified:

@satellite 6.4.0 snap 24

Steps:
1.go to Configure > Roles
2.click on default capsule
3.Select ansible role("RedHatInsights.insights-client") and click update

Observation:
Ansible role got imported

Comment 12 Bryan Kearney 2018-10-16 19:33:51 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:2927