Bug 767261

Summary: repo sync cancel error
Product: [Retired] Pulp Reporter: Preethi Thomas <pthomas>
Component: user-experienceAssignee: Jeff Ortel <jortel>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.0.0CC: jortel
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Preethi Thomas 2011-12-13 16:56:46 UTC
Description of problem:
Traceback occur on canceling repo sync

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

[root@preethi ~]# rpm -q pulp
pulp-0.0.254-6.fc15.noarch

How reproducible:


Steps to Reproduce:
1. create a repo (rhel6 feed in my case)
2. start syncing the repo in the foreground
3.cancel the repo sync
  
Actual results:
[root@preethi ~]# pulp-admin repo sync --id=rhel6 -F
Sync for repository rhel6 started
Sync: Canceled

Item Details: 
Tree Files: 0/6
RPMs: 831/3529
1 Rpm Error(s):
	{u'error_type': u"<type 'exceptions.ValueError'>", u'error': u'insecure string pickle', u'traceback': [u'Traceback (most recent call last):', u'  File "/usr/lib/python2.7/site-packages/grinder/ParallelFetch.py", line 295, in run', u'    result = self.fetcher.fetchItem(itemInfo)', u'  File "/usr/lib/python2.7/site-packages/grinder/activeobject.py", line 82, in __call__', u'    return self.object(self, *args, **kwargs)', u'  File "/usr/lib/python2.7/site-packages/grinder/activeobject.py", line 262, in __call__', u'    return self.__call(method, args, kwargs)', u'  File "/usr/lib/python2.7/site-packages/grinder/activeobject.py", line 238, in __call', u'    return self.__rmi(method.name, args, kwargs)', u'  File "/usr/lib/python2.7/site-packages/grinder/activeobject.py", line 127, in __rmi', u'    packet = pickle.load(p.stdout)', u'ValueError: insecure string pickle']}



Expected results:
No error on cancel sync

Additional info:

Comment 1 Preethi Thomas 2011-12-13 17:05:33 UTC
[root@preethi ~]# pulp-admin repo sync --id=rhel6 -F
Sync for repository rhel6 started
Sync: Canceled

Item Details: 
Tree Files: 0/6
RPMs: 842/3529
4 Rpm Error(s):
	{u'error_type': u"<type 'exceptions.ValueError'>", u'error': u'I/O operation on closed file', u'traceback': [u'Traceback (most recent call last):', u'  File "/usr/lib/python2.7/site-packages/grinder/ParallelFetch.py", line 295, in run', u'    result = self.fetcher.fetchItem(itemInfo)', u'  File "/usr/lib/python2.7/site-packages/grinder/activeobject.py", line 82, in __call__', u'    return self.object(self, *args, **kwargs)', u'  File "/usr/lib/python2.7/site-packages/grinder/activeobject.py", line 262, in __call__', u'    return self.__call(method, args, kwargs)', u'  File "/usr/lib/python2.7/site-packages/grinder/activeobject.py", line 238, in __call', u'    return self.__rmi(method.name, args, kwargs)', u'  File "/usr/lib/python2.7/site-packages/grinder/activeobject.py", line 127, in __rmi', u'    packet = pickle.load(p.stdout)', u'ValueError: I/O operation on closed file']}
	{u'error_type': u"<type 'exceptions.ValueError'>", u'error': u'I/O operation on closed file', u'traceback': [u'Traceback (most recent call last):', u'  File "/usr/lib/python2.7/site-packages/grinder/ParallelFetch.py", line 295, in run', u'    result = self.fetcher.fetchItem(itemInfo)', u'  File "/usr/lib/python2.7/site-packages/grinder/activeobject.py", line 82, in __call__', u'    return self.object(self, *args, **kwargs)', u'  File "/usr/lib/python2.7/site-packages/grinder/activeobject.py", line 262, in __call__', u'    return self.__call(method, args, kwargs)', u'  File "/usr/lib/python2.7/site-packages/grinder/activeobject.py", line 238, in __call', u'    return self.__rmi(method.name, args, kwargs)', u'  File "/usr/lib/python2.7/site-packages/grinder/activeobject.py", line 127, in __rmi', u'    packet = pickle.load(p.stdout)', u'ValueError: I/O operation on closed file']}
	{u'error_type': u"<type 'exceptions.ValueError'>", u'error': u'I/O operation on closed file', u'traceback': [u'Traceback (most recent call last):', u'  File "/usr/lib/python2.7/site-packages/grinder/ParallelFetch.py", line 295, in run', u'    result = self.fetcher.fetchItem(itemInfo)', u'  File "/usr/lib/python2.7/site-packages/grinder/activeobject.py", line 82, in __call__', u'    return self.object(self, *args, **kwargs)', u'  File "/usr/lib/python2.7/site-packages/grinder/activeobject.py", line 262, in __call__', u'    return self.__call(method, args, kwargs)', u'  File "/usr/lib/python2.7/site-packages/grinder/activeobject.py", line 238, in __call', u'    return self.__rmi(method.name, args, kwargs)', u'  File "/usr/lib/python2.7/site-packages/grinder/activeobject.py", line 127, in __rmi', u'    packet = pickle.load(p.stdout)', u'ValueError: I/O operation on closed file']}
	{u'error_type': u"<type 'exceptions.ValueError'>", u'error': u'insecure string pickle', u'traceback': [u'Traceback (most recent call last):', u'  File "/usr/lib/python2.7/site-packages/grinder/ParallelFetch.py", line 295, in run', u'    result = self.fetcher.fetchItem(itemInfo)', u'  File "/usr/lib/python2.7/site-packages/grinder/activeobject.py", line 82, in __call__', u'    return self.object(self, *args, **kwargs)', u'  File "/usr/lib/python2.7/site-packages/grinder/activeobject.py", line 262, in __call__', u'    return self.__call(method, args, kwargs)', u'  File "/usr/lib/python2.7/site-packages/grinder/activeobject.py", line 238, in __call', u'    return self.__rmi(method.name, args, kwargs)', u'  File "/usr/lib/python2.7/site-packages/grinder/activeobject.py", line 127, in __rmi', u'    packet = pickle.load(p.stdout)', u'ValueError: insecure string pickle']}

[root@preethi ~]#

Comment 2 Sayli Karmarkar 2011-12-14 20:21:05 UTC
*** Bug 751863 has been marked as a duplicate of this bug. ***

Comment 3 Jeff Ortel 2011-12-15 13:54:56 UTC
Fixed in activeobject.  Grinder commit: 29bee60c115044db42c332234622aa9c925af3bb

Comment 4 Jeff Ortel 2011-12-15 20:18:15 UTC
build: 0.255

Comment 5 Preethi Thomas 2011-12-16 15:09:26 UTC
[root@preethi ~]# rpm -q pulp
pulp-0.0.255-1.fc15.noarch

[root@preethi ~]#  pulp-admin -u admin -p admin repo create --id=f15 --preserve_metadata --feed=http://download.devel.redhat.com/released/F-15/GOLD/Fedora/x86_64/os/
Successfully created repository [ f15 ]

[root@preethi ~]# pulp-admin repo sync --id=f15 -FSync for repository f15 started
Sync: Canceled

Item Details: 
Tree Files: 3/6
RPMs: 254/2935

[root@preethi ~]# pulp-admin repo create --id=rhel6 --feed=http://download.devel.redhat.com/released/RHEL-6/6.2/Server/x86_64/os/
Successfully created repository [ rhel6 ]

[root@preethi ~]# pulp-admin repo sync --id=rhel6 -F
Sync for repository rhel6 started
Sync: Canceled

Item Details: 
Tree Files: 3/6
RPMs: 165/3529

Comment 6 Preethi Thomas 2012-02-24 20:18:03 UTC
Pulp v1.0 is released
Closed Current Release.

Comment 7 Preethi Thomas 2012-02-24 20:18:44 UTC
Pulp v1.0 is released.