Project

General

Profile

Bug #34357

Incremental CV update fails with 400 HTTP error

Added by Ian Ballou 5 months ago. Updated 5 months ago.

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

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=2041497

Description of problem:

- Unable to create an incremental CV update. The action fails:

[root@katello ~]# hammer content-view version incremental-update --content-view-version-id 17 --errata-ids 15612
[............................................................................................. ] [54%]
Incremental Update incomplete.
Error: Error message: the server returns an error
HTTP status code: 400
Response headers: {"Date"=>"Mon, 17 Jan 2022 13:34:17 GMT", "Server"=>"gunicorn", "Content-Type"=>"application/json", "Vary"=>"Accept,Cookie", "Allow"=>"POST, OPTIONS", "X-Frame-Options"=>"SAMEORIGIN", "Content-Length"=>"110", "Correlation-ID"=>"e5e90bcb-a6ac-4d73-af84-d89a3ea18180", "Access-Control-Expose-Headers"=>"Correlation-ID", "Via"=>"1.1 katello.com", "Connection"=>"close"}
Response body: ["Version 1 does not exist for repository 'Red_Hat_Enterprise_Linux_8_for_x86_64_-_AppStream_RPMs_8-581060'."]

Version-Release number of selected component (if applicable):
- Katello 4.1

How reproducible:
- Always

Steps to Reproduce:

1. Create a CV:

hammer> content-view info --id 3
Id: 3
Name: rhel8
Label: rhel8
Composite: false
Description:
Content Host Count: 0
Solve Dependencies: false
Organization: Default Organization
Yum Repositories:
1) Id: 7
Name: Red Hat Enterprise Linux 8 for x86_64 - BaseOS RPMs 8
Label: Red_Hat_Enterprise_Linux_8_for_x86_64_-_BaseOS_RPMs_8
2) Id: 6
Name: Red Hat Enterprise Linux 8 for x86_64 - AppStream RPMs 8
Label: Red_Hat_Enterprise_Linux_8_for_x86_64_-_AppStream_RPMs_8
Container Image Repositories:

OSTree Repositories:

Lifecycle Environments:
1) Id: 1
Name: Library
2) Id: 2
Name: test
Versions:
1) Id: 18
Version: 2.1
Published: 2022/01/17 13:34:08
2) Id: 16
Version: 1.0
Published: 2022/01/17 12:53:25
3) Id: 17
Version: 2.0
Published: 2022/01/17 12:53:57
Components:

Activation Keys:

2. Try to add errata:

[root@katello ~]# hammer content-view version list
---|-------------------------------|---------|----------------------------------------------------------------------------------|-----------------------
ID | NAME | VERSION | DESCRIPTION | LIFECYCLE ENVIRONMENTS
---|-------------------------------|---------|----------------------------------------------------------------------------------|-----------------------
14 | rhel7 11.2 | 11.2 | |
13 | rhel7 11.1 | 11.1 | |
12 | rhel7 11.0 | 11.0 | | Library
11 | rhel7 10.0 | 10.0 | |
10 | rhel7 9.0 | 9.0 | |
15 | rhel7 8.1 | 8.1 | |
9 | rhel7 8.0 | 8.0 | |
8 | rhel7 7.0 | 7.0 | |
7 | rhel7 6.0 | 6.0 | |
6 | rhel7 5.0 | 5.0 | aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa... |
5 | rhel7 4.0 | 4.0 | |
4 | rhel7 3.0 | 3.0 | |
17 | rhel8 2.0 | 2.0 | | Library, test
3 | rhel7 2.0 | 2.0 | aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa... |
16 | rhel8 1.0 | 1.0 | |
2 | rhel7 1.0 | 1.0 | |
1 | Default Organization View 1.0 | 1.0 | | Library
---|-------------------------------|---------|----------------------------------------------------------------------------------|-----------------------

[ ~]# hammer erratum list | grep RHBA-2022:0106
15612 | RHBA-2022:0106 | bugfix | .NET 6.0 bugfix update | 2022-01-11 | 2022-01-11

[root@katello ~]# hammer content-view version incremental-update --content-view-version-id 17 --errata-ids 15612
[............................................................................................. ] [54%]
Incremental Update incomplete.
Error: Error message: the server returns an error
HTTP status code: 400
Response headers: {"Date"=>"Mon, 17 Jan 2022 13:34:17 GMT", "Server"=>"gunicorn", "Content-Type"=>"application/json", "Vary"=>"Accept,Cookie", "Allow"=>"POST, OPTIONS", "X-Frame-Options"=>"SAMEORIGIN", "Content-Length"=>"110", "Correlation-ID"=>"e5e90bcb-a6ac-4d73-af84-d89a3ea18180", "Access-Control-Expose-Headers"=>"Correlation-ID", "Via"=>"1.1 katello.com", "Connection"=>"close"}
Response body: ["Version 1 does not exist for repository 'Red_Hat_Enterprise_Linux_8_for_x86_64_-_AppStream_RPMs_8-581060'."]

Additional info:
- I tried with 2 different CVs (rhel7 and rhel8)
- This is a fresh 6.10 install
- Can provide access to reproducer


Related issues

Has duplicate Katello - Bug #34342: Apply Errata "Version X does not exist for repository"Duplicate

Associated revisions

Revision 80808aaf (diff)
Added by Ian Ballou 5 months ago

Fixes #34357 - Incremental CV update fails with 400 HTTP error (#9918)

History

#1 Updated by Ian Ballou 5 months ago

  • Assignee set to Ian Ballou
  • Subject changed from Incremental CV update fails with 400 HTTP error to Incremental CV update fails with 400 HTTP error

#2 Updated by The Foreman Bot 5 months ago

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

#3 Updated by Ryan Verdile 5 months ago

  • Triaged changed from No to Yes
  • Target version changed from Katello 4.4.0 to Katello 4.3.1

#4 Updated by Ian Ballou 5 months ago

  • Has duplicate Bug #34342: Apply Errata "Version X does not exist for repository" added

#5 Updated by The Foreman Bot 5 months ago

  • Fixed in Releases Katello 4.5.0 added

#6 Updated by Anonymous 5 months ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF