Project

General

Profile

Actions

Bug #34436

closed

Getting "404 not found" when publishing a content view

Added by Justin Sherrill almost 3 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Urgent
Category:
Content Views
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Description of problem:
Getting the following error when publishing a content view:

-----------------------------------------
9: Actions::Pulp3::Repository::SaveVersion (error) [ 3352.43s / 0.74s ] Skip
Error:
PulpRpmClient::ApiError
Error message: the server returns an error HTTP status code: 404 Response headers: {"Date"=>"XXXXXXX", "Server"=>"gunicorn", "Content-Type"=>"application/json", "Vary"=>"Accept,Cookie", "Allow"=>"GET, PUT, PATCH, DELETE, HEAD, OPTIONS", ...<snip>} Response body: {"detail":"Not found."}
-----------------------------------------

This is because the Composite content view and its component content views are referring to the same repositories in Pulp (See below). Delete the composite content view will delete the referring Pulp repositories. Therefore, it breaks all the component content views.

This only affecting the content views that are migrated to Satellite 6.10 from 6.9. Those newly created in Satellite 6.10 don't have this issue.

-----------------------------------------
foreman-rake console
pp Katello::ContentView.find_by_label("ccv_test").repository_references
[#<Katello::Pulp3::RepositoryReference:0x0000000013f33320
id: 25,
repository_href:
"/pulp/api/v3/repositories/rpm/rpm/eb4ce2fd-1056-4736-976d-9a7d629fa334/", <=========== same
content_view_id: 17,
root_repository_id: 2>]

pp Katello::ContentView.find_by_label("cv_test").repository_references
[#<Katello::Pulp3::RepositoryReference:0x0000000013c99f88
id: 7,
repository_href:
"/pulp/api/v3/repositories/rpm/rpm/eb4ce2fd-1056-4736-976d-9a7d629fa334/", <=========== same
content_view_id: 2,
root_repository_id: 2>]
-----------------------------------------

Steps to Reproduce:
1. In Satellite 6.9, create a content view with at least 1 repo. Publish it.
2. Create a composite content view and add the content view you just created to it. Publish it.
3. Follow guide to migrate from pulp 2 to pulp 3.

satellite-maintain content prepare

4. Upgrade to Satellite 6.10.
5. In Satellite 6.10, delete the composite content view.
6. After that publish the content view

Actual results:
404 not found

Expected results:
No error

Additional information
Other composite content views that are having the same repository references will also break.

Actions #1

Updated by The Foreman Bot almost 3 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Justin Sherrill
  • Pull request https://github.com/Katello/katello/pull/9938 added
Actions #2

Updated by The Foreman Bot almost 3 years ago

  • Fixed in Releases Katello 4.5.0 added
Actions #3

Updated by Justin Sherrill almost 3 years ago

  • Status changed from Ready For Testing to Closed
Actions #4

Updated by Jonathon Turel almost 3 years ago

  • Subject changed from Getting "404 not found" when publishing a content view to Getting "404 not found" when publishing a content view
  • Target version changed from Katello 4.4.0 to Katello 4.3.2
  • Triaged changed from No to Yes
Actions

Also available in: Atom PDF