Project

General

Profile

Actions

Bug #30832

closed

Katello on EL8 uses Pulp2 for consumer related tasks (like profile uploads)

Added by Evgeni Golov over 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Hosts
Target version:
Fixed in Releases:
Found in Releases:

Description

Not exactly sure this is Katello or Installer fault, filing for Katello for now.

I was toying around with Katello on EL8 (Pulp3 only) and was irritated by the fact that it tried to upload consumer profiles to Pulp2 (which obviously fails).

My /etc/foreman/plugins/katello.yaml contains

  :pulp:
    :url: https://pipeline-katello-server-nightly-centos8.kangae.example.com/pulp/api/v2/
    :ca_cert_file: /etc/pki/katello/certs/katello-server-ca.crt

So it might very well be an installer issue.

And the logs are full of:

2020-09-14T07:46:00 [I|kat|] GET: https://pipeline-katello-server-nightly-centos8.kangae.example.com/pulp/api/v2/consumers/: {"content_type"=>"application/json", "accept"=>"application/json"}
404 Not Found: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /pulp/api/v2/consumers/ was not found on this server.</p>
</body></html>

2020-09-14T07:46:00 [W|app|] Failed upgrade task: katello:clean_backend_objects
2020-09-14T07:46:00 [I|app|] Backtrace for 'Failed upgrade task: katello:clean_backend_objects' error (RestClient::NotFound): 404 Not Found

…

2020-09-14T07:46:00 [I|kat|] GET: https://pipeline-katello-server-nightly-centos8.kangae.example.com/pulp/api/v2/events/: {"content_type"=>"application/json", "accept"=>"application/json"}
404 Not Found: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /pulp/api/v2/events/ was not found on this server.</p>
</body></html>

2020-09-14T07:46:00 [I|kat|] POST: https://pipeline-katello-server-nightly-centos8.kangae.example.com/pulp/api/v2/content/units/rpm/search/: {"criteria":{"fields":[],"limit":2000,"skip":0,"filters":{"is_modular":{"$eq":true}}}}: {"content_type"=>"application/json", "accept"=>"application/json"}
404 Not Found: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /pulp/api/v2/content/units/rpm/search/ was not found on this server.</p>
</body></html>

…

2020-09-14T08:06:35 [I|kat|] POST: https://pipeline-katello-server-nightly-centos8.kangae.example.com/pulp/api/v2/consumers/780c6647-2f44-448c-9db3-06f9136792d8/profiles//: {"content_type":"rpm","profile":[ …
404 Not Found: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /pulp/api/v2/consumers/780c6647-2f44-448c-9db3-06f9136792d8/profiles/ was not found on this server.</p>
</body></html>

2020-09-14T08:06:35 [W|app|] Host with ID 2 was not known to Pulp, continuing
Actions #1

Updated by Justin Sherrill over 4 years ago

  • Project changed from Katello to Installer
Actions #2

Updated by Justin Sherrill over 4 years ago

the katello.yaml section shouldn't be there if pulp is not deployed

Actions #3

Updated by Evgeni Golov about 4 years ago

I manually fixed it, and yet it still tries to do Pulp2?

# cat /etc/foreman/plugins/katello.yaml 
### File managed with puppet ###
## Module: puppet-katello

:katello:
  :rest_client_timeout: 3600

  :content_types:
    :file: true
    :yum: true
    :deb: true
    :puppet: true
    :docker: true
    :ostree: false

  :candlepin:
    :url: https://localhost:23443/candlepin
    :oauth_key: "katello" 
    :oauth_secret: "sxz4mnQNLHsob62XoVocNv9x7BEhWXho" 
    :ca_cert_file: /etc/pki/katello/certs/katello-default-ca.crt

  :candlepin_events:
    :ssl_cert_file: /etc/pki/katello/certs/java-client.crt
    :ssl_key_file: /etc/pki/katello/private/java-client.key
    :ssl_ca_file: /etc/pki/katello/certs/katello-default-ca.crt

  :use_pulp_2_for_content_type:
    :docker: false
    :file: false
    :yum: false

  :katello_applicability: true

  # Internal configuration for communication from server to pulp crane service.
  :container_image_registry:
    :crane_url: https://centos8-katello-nightly.yatsu.example.com:5000
    :crane_ca_cert_file: /etc/pki/katello/certs/katello-server-ca.crt
Actions #4

Updated by Evgeni Golov about 4 years ago

  • Project changed from Installer to Katello

Looking at Katello::Api::Rhsm::CandlepinDynflowProxyController (which is what triggers the profile upload), it runs Actions::Katello::Host::UploadPackageProfile and I see no Pulp2/Pulp3 differentiation in that one?

Flippin back to Katello.

Actions #5

Updated by John Mitsch about 4 years ago

  • Category set to Hosts
  • Target version set to Katello 3.18.0
  • Triaged changed from No to Yes
Actions #6

Updated by Evgeni Golov about 4 years ago

FWIW, setting `use_pulp: false` in `katello.yaml` doesn't help either.

Actions #7

Updated by The Foreman Bot about 4 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Eric Helms
  • Pull request https://github.com/Katello/katello/pull/9024 added
Actions #8

Updated by The Foreman Bot about 4 years ago

  • Fixed in Releases Katello 4.0.0 added
Actions #9

Updated by Eric Helms about 4 years ago

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

Updated by The Foreman Bot about 4 years ago

  • Pull request https://github.com/Katello/katello/pull/9045 added
Actions

Also available in: Atom PDF