Hide Forgot
Description of problem: After the upgrade from 2.1.2 to 2.1.3 not able to add/delete cds, because RHUA cannot communicate with CDS. Here is the traceback from /var/log/gofer/agent.log: 2013-12-05 07:00:51,265 [WARNING][Thread-1] connect() @ driver.py:527 - trying: rhua.example.com:5674 2013-12-05 07:00:51,289 [WARNING][Thread-1] connect() @ driver.py:537 - reconnect succeeded: rhua.example.com:5674 2013-12-05 07:16:50,259 [INFO][MainThread] __init__() @ config.py:372 - reading: /etc/gofer/agent.conf 2013-12-05 07:16:50,282 [INFO][MainThread] __init__() @ config.py:372 - reading: /etc/gofer/plugins/builtin.conf 2013-12-05 07:16:50,284 [INFO][MainThread] __init__() @ config.py:372 - reading: /etc/gofer/plugins/cdsplugin.conf 2013-12-05 07:16:50,285 [INFO][MainThread] __import() @ config.py:420 - processing: @import:/etc/pulp/cds.conf:server:host(host) 2013-12-05 07:16:50,285 [INFO][MainThread] __init__() @ config.py:372 - reading: /etc/pulp/cds.conf 2013-12-05 07:16:50,289 [INFO][MainThread] __import() @ config.py:420 - processing: @import:/etc/pulp/cds.conf:messaging:scheme(scheme),port(port),cacert(cacert),clientcert(clientcert) 2013-12-05 07:16:50,289 [INFO][MainThread] __init__() @ config.py:372 - reading: /etc/pulp/cds.conf 2013-12-05 07:16:50,291 [INFO][MainThread] __import() @ config.py:420 - processing: @import:/etc/pulp/cds.conf:server 2013-12-05 07:16:50,291 [INFO][MainThread] __init__() @ config.py:372 - reading: /etc/pulp/cds.conf 2013-12-05 07:16:50,294 [INFO][MainThread] __import() @ config.py:420 - processing: @import:/etc/pulp/cds.conf:cds 2013-12-05 07:16:50,294 [INFO][MainThread] __init__() @ config.py:372 - reading: /etc/pulp/cds.conf 2013-12-05 07:16:50,296 [INFO][MainThread] __import() @ config.py:420 - processing: @import:/etc/pulp/cds.conf:heartbeat 2013-12-05 07:16:50,296 [INFO][MainThread] __init__() @ config.py:372 - reading: /etc/pulp/cds.conf 2013-12-05 07:16:50,298 [INFO][MainThread] __repl() @ config.py:440 - line "uuid = cds-%{hostname}" s/%{hostname}/cds1.example.com/ 2013-12-05 07:16:50,298 [INFO][MainThread] __repl() @ config.py:440 - line "url = $(scheme)://$(host):$(port)" s/$(host)/rhua.example.com/ 2013-12-05 07:16:50,299 [INFO][MainThread] __repl() @ config.py:440 - line "url = $(scheme)://rhua.example.com:$(port)" s/$(port)/5674/ 2013-12-05 07:16:50,299 [INFO][MainThread] __repl() @ config.py:440 - line "url = $(scheme)://rhua.example.com:5674" s/$(scheme)/ssl/ 2013-12-05 07:16:50,299 [INFO][MainThread] __repl() @ config.py:440 - line "cacert = $(cacert)" s/$(cacert)//etc/pki/cds/qpid-ca.crt/ 2013-12-05 07:16:50,299 [INFO][MainThread] __repl() @ config.py:440 - line "clientcert = $(clientcert)" s/$(clientcert)//etc/pki/cds/qpid-client.crt/ 2013-12-05 07:16:50,299 [INFO][MainThread] __import() @ config.py:420 - processing: @import:/etc/pulp/repo_auth.conf:repos 2013-12-05 07:16:50,300 [INFO][MainThread] __init__() @ config.py:372 - reading: /etc/pulp/repo_auth.conf 2013-12-05 07:16:50,303 [INFO][MainThread] __init__() @ config.py:372 - reading: /etc/gofer/plugins/package.conf 2013-12-05 07:16:50,306 [INFO][MainThread] __findplugin() @ plugin.py:502 - using: /usr/lib64/gofer/plugins/builtin.py 2013-12-05 07:16:50,315 [INFO][MainThread] __import() @ plugin.py:477 - plugin "builtin", imported as: "builtin" 2013-12-05 07:16:50,321 [INFO][MainThread] __findplugin() @ plugin.py:502 - using: /usr/lib64/gofer/plugins/cdsplugin.py 2013-12-05 07:16:50,471 [ERROR][MainThread] __import() @ plugin.py:487 - plugin "cdsplugin", import failed Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/gofer/agent/plugin.py", line 475, in __import mod = imp.load_source(syn, path) File "/usr/lib64/gofer/plugins/cdsplugin.py", line 38, in <module> cdslib = CdsLib(config) File "/usr/lib/python2.6/site-packages/pulp/cds/cdslib.py", line 61, in __init__ log_config_file = self.config.get('cds', 'log_config_file') File "/usr/lib/python2.6/site-packages/iniparse/compat.py", line 228, in get value = RawConfigParser.get(self, section, option, vars) File "/usr/lib/python2.6/site-packages/iniparse/compat.py", line 126, in get raise NoOptionError(option, section) NoOptionError: No option 'log_config_file' in section: 'cds' After upgrade there are two files: [root@cds1 ~]# ll /etc/pulp/cds.conf* -rw-r--r--. 1 apache apache 652 Dec 5 09:32 /etc/pulp/cds.conf -rw-r--r--. 1 apache apache 964 Nov 15 16:03 /etc/pulp/cds.conf.rpmnew And if you will check cds.conf.rpmnew you can find there: [cds] log_config_file = /etc/pulp/logging/cds.cfg which is missing in cds.conf Version-Release number of selected component (if applicable): pulp-0.0.263-41.el6_5.noarch rh-rhui-tools-2.1.37-1.el6_5.noarch How reproducible: always Steps to Reproduce: 1. Update rhua 2. Try to add/delete cds Actual results: rhua is not communicating with cds Expected results: rhua communicates with cds Additional info:
In addition to Steps to reproduce: 1) update rhua 2) restart puplp-server 3) update cds 4) restart pulp-cds 5) try to add/delete cds
Fixed with commit: https://github.com/splice/pulp/commit/3624e2fdcb2e7b257255c9812b5e7dfe65de6e58
tested in pulp-cds-0.0.263-43.el6_5.noarch in the iso RHEL-6.4-RHUI-2.1.3-20131210 Move to Verified.
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