Bug 789505 - cds failing to register
Summary: cds failing to register
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: nodes
Version: 1.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Jeff Ortel
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-10 22:27 UTC by Preethi Thomas
Modified: 2012-02-24 20:19 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-24 20:14:15 UTC


Attachments (Terms of Use)

Description Preethi Thomas 2012-02-10 22:27:52 UTC
Description of problem:
cds failing to register 

Version-Release number of selected component (if applicable):
[root@f16-cds ~]# rpm -q pulp-cds
pulp-cds-0.0.265-1.fc16.noarch
[root@f16-cds ~]# 


How reproducible:


Steps to Reproduce:
1. install cds and try to register it pulp server
2.
3.
  
Actual results:

From client.log

2012-02-10 16:49:48,631 [ERROR][MainThread] __import() @ plugin.py:507 - plugin "cdsplugin", import failed
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/gofer/agent/plugin.py", line 495, in __import
    mod = imp.load_source(syn, path)
  File "/usr/lib64/gofer/plugins/cdsplugin.py", line 27, in <module>
    from pulp.cds.cdslib import CdsLib, SecretFile
  File "/usr/lib/python2.7/site-packages/pulp/cds/cdslib.py", line 21, in <module>
    from pulp.repo_auth.repo_cert_utils import RepoCertUtils
  File "/usr/lib/python2.7/site-packages/pulp/repo_auth/repo_cert_utils.py", line 54, in <module>
    from pulp.server.util import encode_unicode
ImportError: No module named server.util


Expected results:


Additional info:

Comment 1 Jeff Ortel 2012-02-10 22:36:44 UTC
Looks like repo_cert_utils is used by CDS so it cannot import from server.<anything>.  Perhaps the encode_unicode() should be moved into the common package.

Comment 2 Jeff Ortel 2012-02-10 23:25:57 UTC
Moved encode_unicode() and decode_unicode() to common/util.py and updated references.

Fixed: ed8801b9040627dff34a0e0eb66e1f00c0abde95

Comment 3 Jeff Ortel 2012-02-13 16:38:31 UTC
build: 0.266

Comment 4 Preethi Thomas 2012-02-13 16:56:19 UTC
verified
[root@f16-cds ~]# rpm -q pulp-cds
pulp-cds-0.0.266-1.fc16.noarch
[root@f16-cds ~]# 

[root@katello-test ~]# pulp-admin cds register --hostname=f16-cds.usersys.redhat.com
Successfully registered CDS [f16-cds.usersys.redhat.com]

[root@katello-test ~]# rpm -q pulp
pulp-0.0.266-1.el6.noarch
[root@katello-test ~]#

Comment 5 Preethi Thomas 2012-02-24 20:14:15 UTC
Pulp v1.0 is released
Closed Current Release.

Comment 6 Preethi Thomas 2012-02-24 20:19:03 UTC
Pulp v1.0 is released.


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