Project

General

Profile

Bug #32320

"Current organization has no manifest imported" error when trying to import a manifest

Added by Jeremy Lenz about 1 year ago. Updated 12 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Subscriptions
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

In a fresh org after performing a rake katello:reset, I tried to import a manifest from one of my old manifest files.

Actual behavior:
1. The task succeeded in about 3 seconds
2. I received a toast error notification "Current organization has no manifest imported"
3. If I look at the manifest import task's Dynflow console, in the Actions::Candlepin::Owner::Import (success) sub-action, I see the following:


state: FAILED
  previousState: RUNNING
  startTime: '2021-04-14T21:57:27+0000'
  endTime: '2021-04-14T21:57:27+0000'
  attempts: 1
  maxAttempts: 1
  statusPath: "/jobs/4028faf478d221d40178d2639c98359e" 
  resultData: 'Import is older than existing data The following conflicts were found:
    [ MANIFEST_OLD ]'

I think this may be related to the recent change to the async manifest import API. We used to surface this error ('Import is older than existing data') directly to the user, but now it's buried.

Expected behavior: The above error should cause a failed import task and inform the user.

Associated revisions

Revision d05262e6 (diff)
Added by Partha Aji 12 months ago

Fixes #32320 - Candlepin correctly errors out on Job Failures (#9378)

Candlepin async task was previously not erroring out when a job failed
like manifest-import failure etc.
This commit addresses that

History

#1 Updated by Samir Jha about 1 year ago

  • Triaged changed from No to Yes
  • Target version set to Katello 4.1.0

#2 Updated by Jeremy Lenz about 1 year ago

  • Assignee set to Partha Aji

#3 Updated by The Foreman Bot 12 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/9378 added

#4 Updated by The Foreman Bot 12 months ago

  • Fixed in Releases Katello 4.2.0 added

#5 Updated by Partha Aji 12 months ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF