Bug 1133245
Summary: | content-host errata apply gives success message for an invalid errata id | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | sthirugn <sthirugn> |
Component: | Hammer | Assignee: | Stephen Benjamin <stbenjam> |
Status: | CLOSED ERRATA | QA Contact: | sthirugn <sthirugn> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.0.3 | CC: | jmontleo, pstudeni, walden |
Target Milestone: | Unspecified | ||
Target Release: | Unused | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-08-12 05:12:59 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
sthirugn@redhat.com
2014-08-23 18:29:18 UTC
If you fill empty errata id, then you get correct result without effect. >> hammer --server <HOST> --username <USER> --password <PASS> content-host errata apply --content-host-id 6cd64fd6-a2fb-4d33-a181-aa626cc4d4df "input" => "undefined method `join' for nil:NilClass (NoMethodError)\n/opt/rh/ruby193/root/usr/share/gems/gems/katello-1.5.0/app/lib/actions/katello/system/erratum/install.rb:36:in `humanized_input'\n/opt/rh/ruby193/root/usr/share/gems/gems/foreman-tasks-0.6.9/app/models/foreman_tasks/task/dynflow_task.rb:72:in `get_humanized'\n/opt/rh/ruby193/root/usr/share/gems/gems/foreman-tasks-0.6.9/app/models/foreman_tasks/task/dynflow_task.rb:52:in `humanized'\n/opt/rh/ruby193/root/usr/share/gems/gems/rabl-0.9.0/lib/rabl/helpers.rb:18:in ... cut ... `respond_with_template'\n/opt/rh/ruby193/root/usr/share/gems/gems/katello-1.5.0/app/lib/katello/api/v2/rendering.rb:50:in `respond_with_template_resource'\n ... skipped 106 lines", "output" => "", "errors" => [] }, "cli_example" => nil } Errata applied successfully >> echo $? 0 Comment 2 - The problem is on server side, too. I created new bug for server bz1136467. On client (hammer) fix doesn't suffice. Problem is on REST API. Moving to POST since upstream bug http://projects.theforeman.org/issues/9503 has been closed ------------- Anonymous Applied in changeset commit:katello|33112a4e0713904dbe40a755a94474c352b42a5f. Verified. Version Tested: Satellite-6.1.0-RHEL-6-20150311.1 Valid errata id: hammer> content-host errata apply --errata-ids RHSA-2015:0672 --content-host-id beb3deab-0449-4c1d-8a14-c7a74bf5143e Errata applied successfully Invalid errata id: hammer> content-host errata apply --errata-ids RHSA-2015:06721111 --content-host-id beb3deab-0449-4c1d-8a14-c7a74bf5143e Could not apply errata: Couldn't find errata ids 'RHSA-2015:06721111' This bug is slated to be released with Satellite 6.1. 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-2015:1592 |