Bug 696958 - Getting "operation failed error" while releasing/unregistering CDS
Summary: Getting "operation failed error" while releasing/unregistering CDS
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: nodes
Version: unspecified
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Jay Dobies
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks: pulp-verified 688298
TreeView+ depends on / blocked
 
Reported: 2011-04-15 12:04 UTC by Sachin Ghai
Modified: 2011-08-16 14:01 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2011-08-16 14:01:43 UTC
Embargoed:


Attachments (Terms of Use)

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.


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