Bug 1039172 - [upgrade] Missing 'plugins' section in repo_auth during upgrade from RHUI 2.1.2 to RHUI 2.1.3
Summary: [upgrade] Missing 'plugins' section in repo_auth during upgrade from RHUI 2....
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Update Infrastructure for Cloud Providers
Classification: Red Hat
Component: RHUA
Version: 2.1.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 2.1.3
Assignee: John Matthews
QA Contact: Ina Panova
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-06 20:17 UTC by John Matthews
Modified: 2013-12-17 20:11 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-12-17 20:11:21 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:1854 0 normal SHIPPED_LIVE Red Hat Update Infrastructure 2.1.3 bug fix update 2013-12-18 01:07:53 UTC

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


Note You need to log in before you can comment on or make changes to this bug.