Bug 684263

Summary: [cdn] Specify version of python-simplejson in pulp.spec
Product: [Retired] Pulp Reporter: John Matthews <jmatthew>
Component: z_otherAssignee: John Matthews <jmatthew>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: unspecified Docs Contact:
Priority: high    
Version: unspecifiedCC: skarmark
Target Milestone: ---Keywords: Triaged
Target Release: Sprint 21   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-08-15 15:14:25 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 647488    

Description John Matthews 2011-03-11 16:06:28 UTC
This impacts rhel-5, we need to explicitly state the version of python-simplejson we require.

We ran into a problem with CDN work when we didn't specify the version and python-simplejson-1.7 was pulled down instead of 2.0.9
Error was:

==> pulp.log <==
2011-03-11 10:39:16,320 [ERROR][Dummy-2] @ base.py:56 - Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/pulp/server/webservices/controllers/base.py", line 52, in report_error
    return method(self, *args, **kwargs)
  File "/usr/lib/python2.4/site-packages/pulp/server/compat.py", line 40, in _decorator
    return decorator(*args,**kwargs)
  File "/usr/lib/python2.4/site-packages/pulp/server/webservices/controllers/base.py", line 131, in _auth_decorator
    value = method(self, *args, **kwargs)
  File "/usr/lib/python2.4/site-packages/pulp/server/webservices/controllers/users.py", line 136, in GET
    return self.ok(certificate)
  File "/usr/lib/python2.4/site-packages/pulp/server/webservices/controllers/base.py", line 219, in ok
    return self._output(data)
  File "/usr/lib/python2.4/site-packages/pulp/server/webservices/controllers/base.py", line 198, in _output
    return json.dumps(data, default=json_util.default)
  File "/usr/lib64/python2.4/site-packages/simplejson/__init__.py", line 215, in dumps
    separators=separators, encoding=encoding,
TypeError: __init__() got an unexpected keyword argument 'default'

Description of problem:


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 2 Jeff Ortel 2011-03-12 00:17:32 UTC
Build: 0.151

Comment 3 Jeff Ortel 2011-03-12 00:18:05 UTC
Build: 0.151

Comment 4 Preethi Thomas 2011-03-14 14:15:21 UTC
verified
pulp.noarch 0:0.0.151-1  

[root@hp-ml370g4-01 ~]# yum install pulp
Loaded plugins: rhnplugin, security
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package pulp.noarch 0:0.0.151-1 set to be updated
--> Processing Dependency: pulp-common = 0.0.151 for package: pulp
--> Processing Dependency: grinder >= 0.0.86 for package: pulp
--> Processing Dependency: pulp-client >= 0.0.151 for package: pulp
--> Processing Dependency: python-gofer >= 0.23 for package: pulp
--> Processing Dependency: python-simplejson >= 2.0.9 for package: pulp
--> Running transaction check
---> Package grinder.noarch 0:0.0.86-1 set to be updated
---> Package pulp-client.noarch 0:0.0.151-1 set to be updated
--> Processing Dependency: gofer >= 0.23 for package: pulp-client
---> Package pulp-common.noarch 0:0.0.151-1 set to be updated
---> Package python-gofer.noarch 0:0.23-1 set to be updated
---> Package python-simplejson.x86_64 0:2.0.9-2.el5 set to be updated
--> Running transaction check
---> Package gofer.noarch 0:0.23-1 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package               Arch       Version          Repository              Size
================================================================================
Installing:
 pulp                  noarch     0.0.151-1        testing-rhel5-pulp     538 k
Installing for dependencies:
 grinder               noarch     0.0.86-1         testing-rhel5-pulp     112 k
 pulp-client           noarch     0.0.151-1        testing-rhel5-pulp     283 k
 pulp-common           noarch     0.0.151-1        testing-rhel5-pulp      95 k
Updating for dependencies:
 gofer                 noarch     0.23-1           testing-rhel5-pulp      36 k
 python-gofer          noarch     0.23-1           testing-rhel5-pulp      55 k
 python-simplejson     x86_64     2.0.9-2.el5      epel                   140 k

Transaction Summary
================================================================================
Install       4 Package(s)
Upgrade       3 Package(s)

Total download size: 1.2 M
Is this ok [y/N]: y
Downloading Packages:
(1/7): gofer-0.23-1.noarch.rpm                           |  36 kB     00:00     
(2/7): python-gofer-0.23-1.noarch.rpm                    |  55 kB     00:00     
(3/7): pulp-common-0.0.151-1.noarch.rpm                  |  95 kB     00:00     
(4/7): grinder-0.0.86-1.noarch.rpm                       | 112 kB     00:00     
(5/7): python-simplejson-2.0.9-2.el5.x86_64.rpm          | 140 kB     00:00     
(6/7): pulp-client-0.0.151-1.noarch.rpm                  | 283 kB     00:00     
(7/7): pulp-0.0.151-1.noarch.rpm                         | 538 kB     00:00     
--------------------------------------------------------------------------------
Total                                           404 kB/s | 1.2 MB     00:03     
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Updating       : python-simplejson                                       1/10 
  Updating       : python-gofer                                            2/10 
  Installing     : pulp-common                                             3/10 
  Updating       : gofer                                                   4/10 
  Installing     : pulp-client                                             5/10 
/etc/rc.d/init.d /
/
  Installing     : grinder                                                 6/10 
  Installing     : pulp                                                    7/10 
  Cleanup        : python-gofer                                            8/10 
  Cleanup        : python-simplejson                                       9/10 
  Cleanup        : gofer                                                  10/10 

Installed:
  pulp.noarch 0:0.0.151-1                                                       

Dependency Installed:
  grinder.noarch 0:0.0.86-1              pulp-client.noarch 0:0.0.151-1        
  pulp-common.noarch 0:0.0.151-1        

Dependency Updated:
  gofer.noarch 0:0.23-1                       python-gofer.noarch 0:0.23-1     
  python-simplejson.x86_64 0:2.0.9-2.el5     

Complete!

Comment 5 Preethi Thomas 2011-08-15 15:14:25 UTC
Closing with current community release

pulp-0.0.223