Project

General

Profile

Bug #19761

Applicable updates not shown after updating Katello 3.3 to 3.4

Added by Pascal Pascher about 5 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Category:
Errata Management
Target version:
Difficulty:
easy
Triaged:
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

Hello,

ever since I updated Katello from version 3.3 to 3.4 I do not get any applicable updates shown when looking at "content hosts".

foreman-1.15.0-1.el7.noarch
katello-3.4.0-3.el7.noarch
pulp-server-2.12.2-1.el7.noarch

I noticed there is no task "Generate applicability" in the task history since I updated. Manually doing a "yum update" on a host shows available updates.

Hosts are registered, have goferd running and katello shows the old package versions as installed.

Not sure if part of the problem:
For testing I unregistered one host and tried readding it but run into an error now:
On the host:

sudo subscription-manager register --org="myorg" --activationkey="ak_production" 
Task 5184d796-5bf9-46fc-a644-ff1e5080fbec: RestClient::InternalServerError: 500 Internal Server Error

On the server:

Jun  3 14:55:54 katello01 pulp: py.warnings:WARNING: (2418-83776) /usr/lib/python2.7/site-packages/pulp/server/managers/consumer/cud.py:79: DeprecationWarning: save is deprecated. Use insert_one or replace_one instead
Jun  3 14:55:54 katello01 pulp: py.warnings:WARNING: (2418-83776)   _id = collection.save(consumer)
Jun  3 14:55:54 katello01 pulp: py.warnings:WARNING: (2418-83776)
Jun  3 14:55:54 katello01 pulp: pulp.server.webservices.middleware.exception:ERROR: Unhandled Exception
Jun  3 14:55:54 katello01 pulp: pulp.server.webservices.middleware.exception:ERROR: (2418-83776) error signing cert request: Signature ok
Jun  3 14:55:54 katello01 pulp: pulp.server.webservices.middleware.exception:ERROR: (2418-83776) subject=/CN=157da6d1-00b6-4aa6-b714-26fad8c6a3f5/UID=5932b1da2f92650972fa8294
Jun  3 14:55:54 katello01 pulp: pulp.server.webservices.middleware.exception:ERROR: (2418-83776) Getting CA Private Key
Jun  3 14:55:54 katello01 pulp: pulp.server.webservices.middleware.exception:ERROR: (2418-83776) unable to load CA Private Key
Jun  3 14:55:54 katello01 pulp: pulp.server.webservices.middleware.exception:ERROR: (2418-83776) 139863074985888:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:703:Expecting: ANY PRIVATE KEY
Jun  3 14:55:54 katello01 pulp: pulp.server.webservices.middleware.exception:ERROR: (2418-83776) unable to write 'random state'
Jun  3 14:55:54 katello01 pulp: pulp.server.webservices.middleware.exception:ERROR: (2418-83776)
Jun  3 14:55:54 katello01 pulp: pulp.server.webservices.middleware.exception:ERROR: (2418-83776) Traceback (most recent call last):
Jun  3 14:55:54 katello01 pulp: pulp.server.webservices.middleware.exception:ERROR: (2418-83776)   File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 112, in get_response
Jun  3 14:55:54 katello01 pulp: pulp.server.webservices.middleware.exception:ERROR: (2418-83776)     response = wrapped_callback(request, *callback_args, **callback_kwargs)
Jun  3 14:55:54 katello01 pulp: pulp.server.webservices.middleware.exception:ERROR: (2418-83776)   File "/usr/lib/python2.7/site-packages/django/views/generic/base.py", line 69, in view
Jun  3 14:55:54 katello01 pulp: pulp.server.webservices.middleware.exception:ERROR: (2418-83776)     return self.dispatch(request, *args, **kwargs)
Jun  3 14:55:54 katello01 pulp: pulp.server.webservices.middleware.exception:ERROR: (2418-83776)   File "/usr/lib/python2.7/site-packages/django/views/generic/base.py", line 87, in dispatch
Jun  3 14:55:54 katello01 pulp: pulp.server.webservices.middleware.exception:ERROR: (2418-83776)     return handler(request, *args, **kwargs)
Jun  3 14:55:54 katello01 pulp: pulp.server.webservices.middleware.exception:ERROR: (2418-83776)   File "/usr/lib/python2.7/site-packages/pulp/server/webservices/views/decorators.py", line 241, in _auth_decorator
Jun  3 14:55:54 katello01 pulp: pulp.server.webservices.middleware.exception:ERROR: (2418-83776)     return _verify_auth(self, operation, super_user_only, method, *args, **kwargs)
Jun  3 14:55:54 katello01 pulp: pulp.server.webservices.middleware.exception:ERROR: (2418-83776)   File "/usr/lib/python2.7/site-packages/pulp/server/webservices/views/decorators.py", line 195, in _verify_auth
Jun  3 14:55:54 katello01 pulp: pulp.server.webservices.middleware.exception:ERROR: (2418-83776)     value = method(self, *args, **kwargs)
Jun  3 14:55:54 katello01 pulp: pulp.server.webservices.middleware.exception:ERROR: (2418-83776)   File "/usr/lib/python2.7/site-packages/pulp/server/webservices/views/util.py", line 130, in wrapper
Jun  3 14:55:54 katello01 pulp: pulp.server.webservices.middleware.exception:ERROR: (2418-83776)     return func(*args, **kwargs)
Jun  3 14:55:54 katello01 pulp: pulp.server.webservices.middleware.exception:ERROR: (2418-83776)   File "/usr/lib/python2.7/site-packages/pulp/server/webservices/views/consumers.py", line 201, in post
Jun  3 14:55:54 katello01 pulp: pulp.server.webservices.middleware.exception:ERROR: (2418-83776)     rsa_pub=rsa_pub)
Jun  3 14:55:54 katello01 pulp: pulp.server.webservices.middleware.exception:ERROR: (2418-83776)   File "/usr/lib/python2.7/site-packages/pulp/server/managers/consumer/cud.py", line 84, in register
Jun  3 14:55:54 katello01 pulp: pulp.server.webservices.middleware.exception:ERROR: (2418-83776)     key, certificate = cert_gen_manager.make_cert(consumer_id, expiration_date, uid=str(_id))
Jun  3 14:55:54 katello01 pulp: pulp.server.webservices.middleware.exception:ERROR: (2418-83776)   File "/usr/lib/python2.7/site-packages/pulp/server/managers/auth/cert/cert_generator.py", line 85, in make_cert
Jun  3 14:55:54 katello01 pulp: pulp.server.webservices.middleware.exception:ERROR: (2418-83776)     raise Exception("error signing cert request: %%s" %% output)
Jun  3 14:55:54 katello01 pulp: pulp.server.webservices.middleware.exception:ERROR: (2418-83776) Exception: error signing cert request: Signature ok
Jun  3 14:55:54 katello01 pulp: pulp.server.webservices.middleware.exception:ERROR: (2418-83776) subject=/CN=157da6d1-00b6-4aa6-b714-26fad8c6a3f5/UID=5932b1da2f92650972fa8294
Jun  3 14:55:54 katello01 pulp: pulp.server.webservices.middleware.exception:ERROR: (2418-83776) Getting CA Private Key
Jun  3 14:55:54 katello01 pulp: pulp.server.webservices.middleware.exception:ERROR: (2418-83776) unable to load CA Private Key
Jun  3 14:55:54 katello01 pulp: pulp.server.webservices.middleware.exception:ERROR: (2418-83776) 139863074985888:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:703:Expecting: ANY PRIVATE KEY
Jun  3 14:55:54 katello01 pulp: pulp.server.webservices.middleware.exception:ERROR: (2418-83776) unable to write 'random state'
Jun  3 14:55:54 katello01 pulp: pulp.server.webservices.middleware.exception:ERROR: (2418-83776)

My /etc/pulp/server.conf (part which is referenced in "cert_generator.py" throwing error above):

...
[security]
cacert: /etc/pki/pulp/ca.crt  # Deprecated! See above description for details.
cakey: /etc/pki/pulp/ca.key  # Deprecated! See above description for details.
ssl_ca_certificate: /etc/pki/pulp/ssl_ca.crt  # Deprecated! See above description for details.
user_cert_expiration: 7
consumer_cert_expiration: 3650
serial_number_path: /var/lib/pulp/sn.dat
...

All files exist except for "ssl_ca_certificate". Key file contains "-----BEGIN RSA PRIVATE KEY-----" as the first line.

History

#1 Updated by Justin Sherrill about 5 years ago

I have investigated this and reproduced. This comes down to two pulp bugs:

https://pulp.plan.io/issues/2793
https://pulp.plan.io/issues/2797

2797 has an easy workaround (and completely prevents all applicability). 2793 prevents package applicability (but not errata) from working in a lot of scenarios. I will add an easy workaround for 2797 to be released in 3.4.1. Sadly there is not an easy workaround for 2793

#2 Updated by The Foreman Bot about 5 years ago

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

#3 Updated by Justin Sherrill about 5 years ago

  • Category set to Errata Management
  • Target version set to 196
  • Legacy Backlogs Release (now unused) set to 228
  • Difficulty set to easy

#4 Updated by Justin Sherrill about 5 years ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF