Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 492481

Summary: channel.software.clone method creates custom channel, NOT cloned channel
Product: Red Hat Satellite 5 Reporter: Stanislav Polasek <stanislav.polasek>
Component: APIAssignee: Brad Buckingham <bbuckingham>
Status: CLOSED NOTABUG QA Contact: Sayli Karmarkar <skarmark>
Severity: medium Docs Contact:
Priority: low    
Version: 520CC: cperry
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-03-31 08:47:08 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:
Attachments:
Description Flags
simple script to test the problem none

Description Stanislav Polasek 2009-03-26 22:09:30 UTC
Created attachment 336919 [details]
simple script to test the problem

Description of problem:
Python channel.software.clone method creates standard custom channel, not cloned channel.

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

How reproducible:
Allways

Steps to Reproduce:
1. use script to create cloned channel
2. check web ui: Channels->Manage Software Channels->click on channel name
3. "Details" tab does not list the "Cloned From:" property
4. "Errata" tab does not list the "Clone" option

Actual results:
Standard custom channel

Expected results:
Cloned channel

Additional info:
Attached the simple script to test

Comment 1 Stanislav Polasek 2009-03-27 06:53:38 UTC
I can confirm the same problem even using perl script, so it's not limited to python:

#!/usr/bin/perl -w
use strict;
use Frontier::Client;

my $HOST = 'localhost';
my $user = 'username';
my $pass = 'password';

my $client = new Frontier::Client(url => "http://$HOST/rpc/api");
my $session = $client->call('auth.login', $user, $pass);

my %newchannel = (
        name    => "testname",
        label   => "testlabel",
        summary => "testsummary"
);
my $cid = $client->call( "channel.software.clone", $session, "rhel-i386-as-4", \%newchannel, $client->boolean(0) );

$client->call('auth.logout', $session);

Comment 2 Stanislav Polasek 2009-03-27 06:55:29 UTC
Changed bug subject, it's not limited to python.

Comment 3 Stanislav Polasek 2009-03-31 08:47:08 UTC
I have found the cloning is actually being deprecated, so this is probably not a bug. Closing.