Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1996137 - PulpRpmClient::ApiError: when publishing content-view with File repository added
Summary: PulpRpmClient::ApiError: when publishing content-view with File repository added
Keywords:
Status: CLOSED DUPLICATE of bug 1995920
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Pulp
Version: 6.10.0
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Lai
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-08-20 16:04 UTC by Ganesh Payelkar
Modified: 2021-09-03 06:17 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-08-23 19:49:47 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Ganesh Payelkar 2021-08-20 16:04:51 UTC
Description of problem:

PulpRpmClient::ApiError: when publishing content-view with File repository added 

Version-Release number of selected component (if applicable):
satellite-6.10.0-0.6.beta

How reproducible:
On a new installation of 6.10 Beta


Steps to Reproduce:
1. Install new 6.10 Beta 
2. Create a Content-view with redhat provided repos
3. Create File-repository and added some content 
5. Publish the content-view 

Actual results:

2021-08-20T21:22:42 [I|app|117343c9] CONTENT_INDEX type=Katello::Rpm success=false duration=145830.67
2021-08-20T21:22:42 [E|bac|117343c9] Error message: the server returns an error (PulpRpmClient::ApiError)

2021-08-20T21:22:42 [I|app|117343c9] CONTENT_INDEX type=Katello::Erratum success=false duration=60142.99
2021-08-20T21:22:42 [E|bac|117343c9] Error message: the server returns an error (PulpRpmClient::ApiError)

2021-08-20T21:22:42 [I|app|117343c9] CONTENT_INDEX type=Katello::Srpm success=false duration=60122.59
2021-08-20T21:22:42 [E|bac|117343c9] Error message: the server returns an error (PulpRpmClient::ApiError)


2021-08-20T21:22:43 [I|app|8ab622b1]   Parameters: {"searches"=>[{"type"=>"resource", "resource_type"=>"Katello::ContentView", "resource_id"=>"3", "search_id"=>"2"}], "task"=>{}}
2021-08-20T21:22:44 [I|app|8ab622b1] Completed 200 OK in 100ms (Views: 0.8ms | ActiveRecord: 5.2ms | Allocations: 72126)
2021-08-20T21:22:44 [I|app|117343c9] CONTENT_INDEX type=Katello::PackageGroup success=false duration=60144.01
2021-08-20T21:22:44 [E|bac|117343c9] Error message: the server returns an error (PulpRpmClient::ApiError)
 117343c9 | /opt/theforeman/tfm/root/usr/share/gems/gems/pulp_rpm_client-3.13.3/lib/pulp_rpm_client/api_client.rb:90:in `rescue in call_api'
 117343c9 | /opt/theforeman/tfm/root/usr/share/gems/gems/pulp_rpm_client-3.13.3/lib/pulp_rpm_client/api_client.rb:68:in `call_api'
 117343c9 | /opt/theforeman/tfm/root/usr/share/gems/gems/pulp_rpm_client-3.13.3/lib/pulp_rpm_client/api/content_packagegroups_api.rb:95:in `list_with_http_info'
 117343c9 | /opt/theforeman/tfm/root/usr/share/gems/gems/pulp_rpm_client-3.13.3/lib/pulp_rpm_client/api/content_packagegroups_api.rb:35:in `list'
 117343c9 | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-4.1.1.8/app/services/katello/pulp3/pulp_content_unit.rb:93:in `content_unit_list'
 117343c9 | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-4.1.1.8/app/services/katello/pulp3/pulp_content_unit.rb:106:in `fetch_content_list'
 117343c9 | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-4.1.1.8/app/services/katello/pulp3/pulp_content_unit.rb:75:in `block (2 levels) in pulp_units_batch_for_repo'

 117343c9 | [ sidekiq ]
 117343c9 | [ concurrent-ruby ]
2021-08-20T21:22:45 [I|bac|117343c9] Task {label: Actions::Katello::ContentView::Publish, id: 3e4ac37e-b225-485b-8a6a-436ebe654c6e, execution_plan_id: e5f69e99-700c-4b88-b76f-e3aafcf4bf5b} state changed: paused  result: error

Expected results:


Additional info:


Id:3e4ac37e-b225-485b-8a6a-436ebe654c6e
Label:Actions::Katello::ContentView::Publish

{
  "content_view": {
    "id": 3,
    "name": "Test-RHEL",
    "label": "Test-RHEL"
  },
  "organization": {
    "id": 1,
    "name": "Default Organization",
    "label": "Default_Organization"
  },
  "services_checked": [
    "pulp3",
    "candlepin",
    "candlepin_auth"
  ],
  "history_id": 4,
  "content_view_id": 3,
  "auto_publish_composite_ids": [],
  "content_view_version_name": "Test-RHEL 2.0",
  "content_view_version_id": 5,
  "environment_id": 1,
  "user_id": 4,
  "skip_promotion": null,
  "current_request_id": "117343c9-3862-4229-8757-01be58b52a3c",
  "current_timezone": "Asia/Kolkata",
  "current_organization_id": 1,
  "current_location_id": 2,
  "current_user_id": 4
}


Actions::Katello::Repository::IndexContent

Input:

{"id"=>53,
 "matching_content"=>false,
 "current_request_id"=>"117343c9-3862-4229-8757-01be58b52a3c",
 "current_timezone"=>"Asia/Kolkata",
 "current_organization_id"=>1,
 "current_location_id"=>2,
 "current_user_id"=>4}


Exception:

PulpRpmClient::ApiError: Error message: the server returns an error

Comment 1 Tanya Tereshchenko 2021-08-22 15:00:00 UTC
Please provide relevant pulp logs.
They can be found in /var/log/messages or using journalctl

Comment 4 Tanya Tereshchenko 2021-08-23 19:49:47 UTC

*** This bug has been marked as a duplicate of bug 1995920 ***


Note You need to log in before you can comment on or make changes to this bug.