Project

General

Profile

Actions

Bug #33327

closed

Hammer host errata recalculate fails to display task

Added by Chris Roberts over 3 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Hammer
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Community user mentioned this:

https://community.theforeman.org/t/foreman-2-5-2-katello-4-1-2-1-hammer-host-errata-recalculate-doesnt-work/24893/4

Running the command does work as we can see here from the production.log:

2021-08-23T23:20:15 [I|app|2eaa47f5] Started PUT "/api/hosts/1/errata/applicability" for 192.168.177.129 at 2021-08-23 23:20:15 -0400
2021-08-23T23:20:15 [I|app|2eaa47f5] Processing by Katello::Api::V2::HostErrataController#applicability as JSON
2021-08-23T23:20:15 [I|app|2eaa47f5] Parameters: {"api_version"=>"v2", "host_id"=>"1", "host_erratum"=>{}}
2021-08-23T23:20:15 [I|app|2eaa47f5] Authorized user admin(Admin User)
2021-08-23T23:20:16 [I|app|2eaa47f5] Rendering /opt/theforeman/tfm/root/usr/share/gems/gems/katello-4.1.2.1/app/views/katello/api/v2/common/async.json.rabl within katello/api/v2/layouts/resource
2021-08-23T23:20:16 [I|app|2eaa47f5] Rendered /opt/theforeman/tfm/root/usr/share/gems/gems/katello-4.1.2.1/app/views/katello/api/v2/common/async.json.rabl within katello/api/v2/layouts/resource (Duration: 1.8ms | Allocations: 2412)
2021-08-23T23:20:16 [I|app|2eaa47f5] Completed 202 Accepted in 133ms (Views: 3.8ms | ActiveRecord: 8.6ms | Allocations: 26402)
2021-08-23T23:20:16 [I|bac|d8ad8ada] Task {label: Actions::Katello::Applicability::Hosts::BulkGenerate, id: 04dc90f8-f07c-4560-a3fb-79c11324abca, execution_plan_id: fc8881cc-7c2d-41ac-957d-8d3dd4f54e24} state changed: planning
2021-08-23T23:20:16 [I|bac|d8ad8ada] Task {label: Actions::Katello::Applicability::Hosts::BulkGenerate, id: 04dc90f8-f07c-4560-a3fb-79c11324abca, execution_plan_id: fc8881cc-7c2d-41ac-957d-8d3dd4f54e24} state changed: planned
2021-08-23T23:20:16 [I|app|d8ad8ada] katello event handled success=true type=generate_host_applicability object_id=0 expired=false rescheduled=false duration=71.3
2021-08-23T23:20:16 [I|bac|d8ad8ada] Task {label: Actions::Katello::Applicability::Hosts::BulkGenerate, id: 04dc90f8-f07c-4560-a3fb-79c11324abca, execution_plan_id: fc8881cc-7c2d-41ac-957d-8d3dd4f54e24} state changed: running
2021-08-23T23:20:16 [I|bac|d8ad8ada] Task {label: Actions::Katello::Applicability::Hosts::BulkGenerate, id: 04dc90f8-f07c-4560-a3fb-79c11324abca, execution_plan_id: fc8881cc-7c2d-41ac-957d-8d3dd4f54e24} state changed: stopped result: success
2021-08-23T23:20:16 [I|bac|d8ad8ada] Task {label: Actions::Katello::Applicability::Hosts::BulkGenerate, id: 04dc90f8-f07c-4560-a3fb-79c11324abca, execution_plan_id: fc8881cc-7c2d-41ac-957d-8d3dd4f54e24} state changed: stopped result: success

We just are not getting the task returned correctly from hammer:

Errata recalculated with task %{id}

/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_foreman_tasks-0.0.15/lib/hammer_cli_foreman_tasks/helper.rb:12:in `task_progress'
/opt/theforeman/tfm/root/usr/share/gems/gems/hammer_cli_foreman_tasks-0.0.15/lib/hammer_cli_foreman_tasks/async_command.rb:14:in `execute'

Actions #2

Updated by Samir Jha over 3 years ago

  • Triaged changed from No to Yes
Actions #3

Updated by The Foreman Bot about 3 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Lucy Fu
  • Pull request https://github.com/Katello/hammer-cli-katello/pull/817 added
Actions #4

Updated by Lucy Fu about 3 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF