Bug 1039172

Summary: [upgrade] Missing 'plugins' section in repo_auth during upgrade from RHUI 2.1.2 to RHUI 2.1.3
Product: Red Hat Update Infrastructure for Cloud Providers Reporter: John Matthews <jmatthew>
Component: RHUAAssignee: John Matthews <jmatthew>
Status: CLOSED ERRATA QA Contact: Ina Panova <ipanova>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 2.1.2CC: cbillett, dgao, ipanova, tsanders
Target Milestone: ---   
Target Release: 2.1.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-12-17 20:11:21 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description John Matthews 2013-12-06 20:17:11 UTC
Description of problem:

An upgrade from RHUI 2.1.2 to RHUI 2.1.3 fails due to a missing configuration in /etc/pulp/repo_auth.conf


# diff repo_auth.conf repo_auth.conf.rpmnew 
2c2
< enabled: true
---
> enabled: false
14a15,16
> [plugins]
> required_path: /srv/pulp/required_plugins



Note, the upgraded RPM displays the needed config changes in repo_auth.conf.rpmnew.

If a user does not manually make this change then all of repo auth is broken.


From /var/log/httpd/ssl_error_log

[Fri Dec 06 14:55:09 2013] [error] [client 10.249.16.152] mod_wsgi (pid=3565): Exception occurred processing WSGI script '/srv/pulp/repo_auth.wsgi'.
[Fri Dec 06 14:55:09 2013] [error] [client 10.249.16.152] Traceback (most recent call last):
[Fri Dec 06 14:55:09 2013] [error] [client 10.249.16.152]   File "/srv/pulp/repo_auth.wsgi", line 39, in check_password
[Fri Dec 06 14:55:09 2013] [error] [client 10.249.16.152]     _load_plugins(environ)
[Fri Dec 06 14:55:09 2013] [error] [client 10.249.16.152]   File "/srv/pulp/repo_auth.wsgi", line 93, in _load_plugins
[Fri Dec 06 14:55:09 2013] [error] [client 10.249.16.152]     required_plugin_path = config.get('plugins', 'required_path')
[Fri Dec 06 14:55:09 2013] [error] [client 10.249.16.152]   File "/usr/lib64/python2.6/ConfigParser.py", line 532, in get
[Fri Dec 06 14:55:09 2013] [error] [client 10.249.16.152]     raise NoSectionError(section)
[Fri Dec 06 14:55:09 2013] [error] [client 10.249.16.152] NoSectionError: No section: 'plugins'
[Fri Dec 06 14:55:09 2013] [error] [client 10.249.16.152] access to /pulp/repos/repo_update/repodata/repomd.xml failed, reason: verification of user id '/CN=Red Hat Update Infrastructure' not configured

Comment 1 John Matthews 2013-12-06 22:29:25 UTC
Fixed with commit:

https://github.com/splice/pulp/commit/978b950332b0d6c2773abe67b2725ad63205faa2

Comment 3 Ina Panova 2013-12-13 17:18:33 UTC
tested in pulp-cds-0.0.263-43.el6_5.noarch
iso : RHEL-6.4-RHUI-2.1.3-20131212.0

Moving to Verified.

Comment 5 errata-xmlrpc 2013-12-17 20:11:21 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2013-1854.html