Bug 974205

Summary: Cannot delete cloned channels using XMLRPC API
Product: Red Hat Satellite 5 Reporter: Stephen Benjamin <stbenjam>
Component: APIAssignee: Tomas Lestach <tlestach>
Status: CLOSED WORKSFORME QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 550CC: jdobes, stbenjam
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: 2013-06-19 07:54:25 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Stephen Benjamin 2013-06-13 16:27:18 UTC
Description of problem:

Cannot delete a channel clone of a Red Hat channel using channel.software.delete

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

5.5

How reproducible:

Always

Steps to Reproduce:
1. Clone a Red Hat channel
2. Attempt to delete clone with API channel.software.delete call


Actual results:

xmlrpclib.Fault: <Fault -1: 'redstone.xmlrpc.XmlRpcFault: unhandled internal exception: Red Hat Channels cannot be deleted, only custom channels can.'>

Expected results:

Channel is deleted.

Additional info:

Works fine in the Satellite GUI to delete a cloned channel.

Comment 1 Jan Dobes 2013-06-19 06:14:56 UTC
I'm unable to reproduce this problem. Cloned Red Hat channels are properly deleted using API. Can you please provide more information - how have you cloned this channel, what Red Hat channel it is, source code example?

Comment 2 Stephen Benjamin 2013-06-19 07:54:25 UTC
Sorry, PEBKAC.  All works as expected.

I was passing the original channel label to sat.channel.software.delete instead of the new cloned one.