Bug 674897

Summary: can not delete organization using frontend API - ERROR: -20255 : (cannot_delete_user)
Product: [Community] Spacewalk Reporter: Jan Hutař <jhutar>
Component: APIAssignee: Tomas Lestach <tlestach>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.3CC: jpazdziora
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-08-08 08:04:12 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: 723481    

Description Jan Hutař 2011-02-03 17:05:56 UTC
Description of problem:
I can not delete organization using frontend API. My API script fails.


Version-Release number of selected component (if applicable):
SW 1.3 pre release


How reproducible:
always


Steps to Reproduce:
1. Create ORG using API
2. Try to remove that ORG using API


Actual results:
raceback (most recent call last):
  File "./manage-org.py", line 105, in <module>
    ret = client.org.delete(key, int(ORG))
  File "/usr/lib64/python2.7/xmlrpclib.py", line 1224, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib64/python2.7/xmlrpclib.py", line 1570, in __request
    verbose=self.__verbose
  File "/usr/lib64/python2.7/xmlrpclib.py", line 1264, in request
    return self.single_request(host, handler, request_body, verbose)
  File "/usr/lib64/python2.7/xmlrpclib.py", line 1297, in single_request
    return self.parse_response(response)
  File "/usr/lib64/python2.7/xmlrpclib.py", line 1468, in parse_response
    return u.close()
  File "/usr/lib64/python2.7/xmlrpclib.py", line 793, in close
    raise Fault(**self._stack[0])
xmlrpclib.Fault: <Fault -1: 'redstone.xmlrpc.XmlRpcFault: unhandled internal exception: ERROR: -20255 : (cannot_delete_user) - The specified user may not be deleted.'>


Expected results:
should work

Comment 3 Miroslav Suchý 2011-04-11 07:32:24 UTC
We did not have time for this one during Spacewalk 1.4 time frame. Mass moving to Spacewalk 1.5.

Comment 4 Miroslav Suchý 2011-04-11 07:36:45 UTC
We did not have time for this one during Spacewalk 1.4 time frame. Mass moving to Spacewalk 1.5.

Comment 5 Jan Pazdziora (Red Hat) 2011-07-20 11:50:15 UTC
Aligning under space16.

Comment 8 Tomas Lestach 2011-08-08 08:04:12 UTC
As Jan confirmed it works for him on Spacewalk nightly, closing the BZ as CURRENTRELEASE.