Bug 1996137

Summary: PulpRpmClient::ApiError: when publishing content-view with File repository added
Product: Red Hat Satellite Reporter: Ganesh Payelkar <gpayelka>
Component: PulpAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED DUPLICATE QA Contact: Lai <ltran>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.10.0CC: ttereshc
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-08-23 19:49:47 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 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 ***