Project

General

Profile

Bug #30832

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

Added by Evgeni Golov almost 2 years ago. Updated over 1 year ago.

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

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

Associated revisions

Revision 925100ea (diff)
Added by Eric Helms almost 2 years ago

Fixes #30832: Do not upload package profile to Pulp 3

Revision ced5376f (diff)
Added by Jonathon Turel over 1 year ago

Refs #30832 - check for pulp2 presence rather than pulp3 yum support

History

#1 Updated by Justin Sherrill almost 2 years ago

  • Project changed from Katello to Installer

#2 Updated by Justin Sherrill almost 2 years ago

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

#3 Updated by Evgeni Golov almost 2 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

#4 Updated by Evgeni Golov almost 2 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.

#5 Updated by John Mitsch almost 2 years ago

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

#6 Updated by Evgeni Golov almost 2 years ago

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

#7 Updated by The Foreman Bot almost 2 years ago

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

#8 Updated by The Foreman Bot almost 2 years ago

  • Fixed in Releases Katello 4.0.0 added

#9 Updated by Eric Helms almost 2 years ago

  • Status changed from Ready For Testing to Closed

#10 Updated by The Foreman Bot over 1 year ago

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

Also available in: Atom PDF