Bug 696958

Summary: Getting "operation failed error" while releasing/unregistering CDS
Product: [Retired] Pulp Reporter: Sachin Ghai <sghai>
Component: nodesAssignee: Jay Dobies <jason.dobies>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedKeywords: Triaged
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-08-16 14:01:43 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: 641987, 688298    

Description Sachin Ghai 2011-04-15 12:04:19 UTC
Description of problem: Getting "operation failed error" while releasing/unregistering CDS


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

How reproducible:
very frequent, facing same issue with two CDS servers

Steps to Reproduce:
1. register CDS
2. associate repo
3. unassociate repo
4. unregister cds

  
Actual results:
[root@pulp-server ~]# pulp-admin -u admin -p admin cds unregister --hostname cds2.pnq.redhat.com
error: operation failed: PulpException: u'CDS error encountered while attempting to release CDS [cds2.pnq.redhat.com]; check the server log for more information'


Expected results:
CDS should be unregistered successfully


Additional info:
[root@pulp-server ~]# tail -f /var/log/pulp/pulp.log
  File "/usr/lib/python2.6/site-packages/gofer/messaging/stub.py", line 142, in _send
    any=opts.any)
  File "/usr/lib/python2.6/site-packages/gofer/messaging/policy.py", line 126, in send
    return self.__getreply(sn)
  File "/usr/lib/python2.6/site-packages/gofer/messaging/policy.py", line 172, in __getreply
    return self.__onreply(envelope)
  File "/usr/lib/python2.6/site-packages/gofer/messaging/policy.py", line 188, in __onreply
    raise RemoteException.instance(reply)
PulpException: u'CDS error encountered while attempting to release CDS [cds2.pnq.redhat.com]; check the server log for more information'

And the .secret key has  been removed from the /var/lib/pulp-cds/gofer directory.

Comment 1 Jay Dobies 2011-04-15 12:07:02 UTC
Please comment with any errors on the CDS itself in /var/log/pulp/gofer.log (or /var/log/pulp-cds, I forget which).

Comment 2 Sachin Ghai 2011-04-15 12:19:53 UTC
Didn't find any error in gofer.log. See the output below:

[root@cds2 pulp-cds]# ll
total 4
-rw-r--r--. 1 root root 2039 Apr 15 17:30 gofer.log
[root@cds2 pulp-cds]# tail -f /var/log/pulp-cds/gofer.log 
Received release call
Removing old repo [/var/lib/pulp-cds/pub/rhel/released/RHEL-6/6.0/Server/x86_64/os]
Received release call
Removing old repo [/var/lib/pulp-cds/pub/rhel/released/RHEL-6/6.0/Server/x86_64/os]

Comment 3 Jay Dobies 2011-04-26 13:52:13 UTC
I can't reproduce this on 0.166. I see the auth credentials for each associated repo being sent/saved on the CDS on each associate call and deleted on the unassociate. The unregister does not throw any errors and frees the CDS up to be re-registered again (I repeated the test more than once).

It's possible it was fixed between 0.163 and 0.166. I'll be doing another build today, so I'm going to put this back to ON_QA to retest on the new build.

Comment 4 Sachin Ghai 2011-04-28 08:48:58 UTC
Verified CDS release on pulp 0.171 build and its working fine.. thanks

Comment 5 Preethi Thomas 2011-08-16 14:01:43 UTC
Closing with Community Release 15

pulp-0.0.223-4.