Bug 2183459

Summary: Incremental CV update fails with error "Version X does not exist for repository Y"
Product: Red Hat Satellite Reporter: Michael Schwabe <mschwabe>
Component: Content ViewsAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED NOTABUG QA Contact: Satellite QE Team <sat-qe-bz-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.11.5CC: iballou, pmoravec, sajha
Target Milestone: 6.14.0Keywords: Triaged
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: 2023-04-20 13:22:52 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 Michael Schwabe 2023-03-31 08:40:35 UTC
Description of problem:
As per customer statement (I removed customer specific data from this statement):
we run satellite 6.11.5 and try to make an incremental update to one of our content views, but this fails.

command:
hammer content-view version incremental-update --content-view-version-id <id> --lifecycle-environments <environment> --package-ids '4id,id,id' --organization-id <id>

output:

Incremental Update incomplete.
Error: Error message: the server returns an error
HTTP status code: 400
Response headers: {"Date"=>"Tue, 21 Mar 2023 12:56:30 GMT", "Server"=>"example", "Content-Type"=>"application/json", "Vary"=>"Accept,Cookie", "Allow"=>"POST, OPTIONS", "X-Frame-Options"=>"DENY", "Content-Length"=>"108", "X-Content-Type-Options"=>"nosniff", "Referrer-Policy"=>"same-origin", "Correlation-ID"=>"a4eb23eb-fa4e-4916-92d7-db8243d19622", "Access-Control-Expose-Headers"=>"Correlation-ID", "Via"=>"1.1 host.example.com", "Connection"=>"close"}
Response body: ["Version 2 does not exist for repository 'Red_Hat_Satellite_Tools_6_10_for_RHEL_8_x86_64_RPMs-147672475'."]


Actual results:
Incremental content view update fails

Expected results:
New version should be published

Additional info:
1. will follow in a private comment
2. this may be a regression of https://bugzilla.redhat.com/show_bug.cgi?id=2041497