Bug 1632672
| Summary: | NoMethodError while importing ansible roles into satellite | ||
|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Jameer Pathan <jpathan> |
| Component: | Ansible - Configuration Management | Assignee: | Lukas Zapletal <lzap> |
| Status: | CLOSED ERRATA | QA Contact: | Jameer Pathan <jpathan> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 6.4 | CC: | lzap, mhulan, mmccune, pcreech |
| Target Milestone: | 6.4.0 | Keywords: | 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: | |||
Created attachment 1486716 [details]
error while importing ansible role
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'
Upstream bug assigned to lzap Upstream bug assigned to lzap moving to POST, upstream issue is closed. 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
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 |
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: