Problem:
After importing a subscription manifest, Foreman started a task to “Bind entitlements to an allocation”. However, that process has not completed yet and has been running for over 21 hours. This task seems to have caused my sync task of the Red Hat repos to fail over night as well.
Expected outcome:
Timely subscription import.
Foreman and Proxy versions:
2.5.4
Foreman and Proxy plugin versions:
candlepin-4.0.9-1.el7.noarch
katello-4.1.4-1.el7.noarch
python3-pulpcore-3.14.9-1.el7.noarch
Distribution and version:
CentOS Linux release 7.9.2009 (Core)
Other relevant data:
Dynflow output for current task:
10: Actions::Candlepin::Owner::Import (waiting for Candlepin to finish the task) [ 78410.79s / 524.08s ]
Queue: default
Started at: 2022-05-16 15:51:26 UTC
Ended at: 2022-05-17 13:38:16 UTC
Real time: 78410.79s
Execution time (excluding suspended state): 524.08s
Input:
---
label: <ORGANIZATION_NAME>
path: "/tmp/0.6979887199982576.zip"
dependency:
response: true
session_id: bd103c77-14a8-43c6-9f7d-8cbafbc6e4f3
remote_user: admin
remote_cp_user: admin
current_request_id: bd103c77-14a8-43c6-9f7d-8cbafbc6e4f3
current_timezone: America/New_York
current_organization_id: 4
current_location_id: 2
current_user_id: 8
Output:
---
task:
created: '2022-05-16T15:51:26+0000'
updated: '2022-05-16T15:51:26+0000'
id: '003729a77f09c5660180cd9133772463'
name: Import Manifest
group:
origin: <HOSTNAME>
executor:
principal: foreman_admin
state: CREATED
previousState: CREATED
startTime:
endTime:
attempts: 0
maxAttempts: 1
statusPath: "/jobs/003729a77f09c5660180cd9133772463"
resultData:
key: ImportJob
poll_attempts:
total: 4868
failed: 0
As far as I can tell, there is no cancel or skip options associated with this task. There are no errors listed in Dynflow nor under the Errors tab in the “foreman_tasks/tasks/” url for this task. Under the Running Steps tab, I have the following:
Action:
Actions::Candlepin::Owner::Import
State:suspended
Input:
{"label"=>"<ORGANIZATION_NAME>",
"path"=>"/tmp/0.6979887199982576.zip",
"dependency"=>{"response"=>true},
"session_id"=>"bd103c77-14a8-43c6-9f7d-8cbafbc6e4f3",
"remote_user"=>"admin",
"remote_cp_user"=>"admin",
"current_request_id"=>"bd103c77-14a8-43c6-9f7d-8cbafbc6e4f3",
"current_timezone"=>"America/New_York",
"current_organization_id"=>4,
"current_location_id"=>2,
"current_user_id"=>8}
Output:
{"task"=>
{"created"=>"2022-05-16T15:51:26+0000",
"updated"=>"2022-05-16T15:51:26+0000",
"id"=>"003729a77f09c5660180cd9133772463",
"name"=>"Import Manifest",
"group"=>nil,
"origin"=>"<HOSTNAME>",
"executor"=>nil,
"principal"=>"foreman_admin",
"state"=>"CREATED",
"previousState"=>"CREATED",
"startTime"=>nil,
"endTime"=>nil,
"attempts"=>0,
"maxAttempts"=>1,
"statusPath"=>"/jobs/003729a77f09c5660180cd9133772463",
"resultData"=>nil,
"key"=>"ImportJob"},
"poll_attempts"=>{"total"=>4918, "failed"=>0}}
From the GUI, it seems my only option is to Force Cancel, but that got me into trouble in the past, so I haven’t done that yet. Is there a way to nudge this process forward?
Thank you!