Bug 662769

Summary: Repo Cloning with Origin Feed not setting CA, Cert, or Key for cloned repo
Product: [Retired] Pulp Reporter: Todd Sanders <tsanders>
Component: z_otherAssignee: Pradeep Kilambi <pkilambi>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: pkilambi, tsanders
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-16 13:59:18 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    

Description Todd Sanders 2010-12-13 20:16:09 UTC
Description of problem:

*Fedora 14
*Build 0.109

1. Created a Repo with CA, Cert, and Key attributes; in this case, they are required to sync content from cdn.redhat.com.

2. Created a clone of the above repo, with and origin feed.

3. Attempt to sync cloned repo....ERROR.

Querying in Mongo, shows that the CA, Cert, and Key attributes on the cloned repo are *not* set.

Comment 1 Pradeep Kilambi 2011-01-04 17:50:41 UTC
$ sudo pulp-admin repo clone --id=rhel-server-5Server-i386 --clone_id=clone-5server --feed=origin -F
Sync for parent repository rhel-server-5Server-i386 already in progress
You can safely CTRL+C this current command and it will continue
[=======                                            ] 13% (1253 of 7861 pkgs)^C

 
$ ls -l /etc/pki/content/clone-5server/
total 28
-rw-r--r--. 1 apache apache 11001 Jan  4 12:33 clone-5server.ca
-rw-r--r--. 1 apache apache  9024 Jan  4 12:33 clone-5server.cert
-rw-r--r--. 1 apache apache  1675 Jan  4 12:33 clone-5server.key



> db.repos.find({"id" : "clone-5server"})
{ "_id" : "clone-5server", "use_symlinks" : false, "sync_schedule" : null, "package_count" : 0, "ca" : "/etc/pki/content/clone-5server/clone-5server.ca", "distributionid" : [ ], "last_sync" : "Tue Jan 04 2011 07:33:51 GMT-0500 (EST)", "id" : "clone-5server", "repomd_xml_path" : "/var/lib/pulp/repos/clone-5server/repodata/repomd.xml", "group_gz_xml_path" : "", "allow_upload" : 0, "group_xml_path" : "", "publish" : true, "source" : { "url" : "https://cdn.redhat.com///content/dist/rhel/server/5Server/i386/os", "type" : "yum", "supported_types" : [ "yum", "local", "rhn" ] }, "groupid" : [ ], "files" : [ ], "relative_path" : "clone-5server", "key" : "/etc/pki/content/clone-5server/clone-5server.key", "packages" : { }, "arch" : "i386", "name" : "clone-5server", "packagegroups" : { }, "clone_ids" : [ ], "cert" : "/etc/pki/content/clone-5server/clone-5server.cert", "packagegroupcategories" : { }, "_ns" : "repos", "release" : null, "errata" : { } }

Comment 2 Jay Dobies 2011-01-05 19:45:20 UTC
Fixed in 0.120.

Comment 3 Preethi Thomas 2011-01-06 20:23:56 UTC
[root@10 ~]# pulp-admin repo clone --id=rhel-server-2.1AS-i386 --clone_id=clone-21AS --feed=origin -F
Repository [rhel-server-2.1AS-i386] is being cloned as [clone-21AS]
You can safely CTRL+C this current command and it will continue
[                                                     ] 0%
Clone: Finished

[root@10 ~]# ls -l /etc/pki/content/
clone-21AS/                 rhel-server-4AS-s390/
rhel-server/                rhel-server-4AS-s390x/
rhel-server-2.1AS-i386/     rhel-server-4AS-x86_64/
rhel-server-3AS-i386/       rhel-server-4ES-i386/
rhel-server-3AS-ia64/       rhel-server-4ES-ia64/
rhel-server-3AS-ppc/        rhel-server-4ES-x86_64/
rhel-server-3ES-i386/       rhel-server-5Server-i386/
rhel-server-3ES-ia64/       rhel-server-5Server-ia64/
rhel-server-4AS-i386/       rhel-server-5Server-s390x/
rhel-server-4AS-ia64/       rhel-server-5Server-x86_64/
rhel-server-4AS-ppc/        
[root@10 ~]# ls -l /etc/pki/content/clone-21AS/
total 28
-rw-r--r--. 1 apache root 11001 Jan  6 15:14 clone-21AS.ca
-rw-r--r--. 1 apache root  9024 Jan  6 15:14 clone-21AS.cert
-rw-r--r--. 1 apache root  1675 Jan  6 15:14 clone-21AS.key
[root@10 ~]# 


[root@10 ~]# pulp-admin repo clone --id=rhel-server-5Server-i386 --clone_id=clone-5Server --feed=parent -F
Repository [rhel-server-5Server-i386] is being cloned as [clone-5Server]
You can safely CTRL+C this current command and it will continue
[                                                     ] 0%
Clone: Finished

[root@10 ~]# ls -l /etc/pki/content/
clone-21AS/                 rhel-server-4AS-ppc/
clone-5Server/              rhel-server-4AS-s390/
rhel-server/                rhel-server-4AS-s390x/
rhel-server-2.1AS-i386/     rhel-server-4AS-x86_64/
rhel-server-3AS-i386/       rhel-server-4ES-i386/
rhel-server-3AS-ia64/       rhel-server-4ES-ia64/
rhel-server-3AS-ppc/        rhel-server-4ES-x86_64/
rhel-server-3ES-i386/       rhel-server-5Server-i386/
rhel-server-3ES-ia64/       rhel-server-5Server-ia64/
rhel-server-4AS-i386/       rhel-server-5Server-s390x/
rhel-server-4AS-ia64/       rhel-server-5Server-x86_64/
[root@10 ~]# ls -l /etc/pki/content/clone-5Server/
total 28
-rw-r--r--. 1 apache root 11001 Jan  6 15:18 clone-5Server.ca
-rw-r--r--. 1 apache root  9024 Jan  6 15:18 clone-5Server.cert
-rw-r--r--. 1 apache root  1675 Jan  6 15:18 clone-5Server.key

[root@10 ~]# pulp-admin repo clone --id=rhel-server-3AS-i386 --clone_id=clone-3AS --feed=none -F
Repository [rhel-server-3AS-i386] is being cloned as [clone-3AS]
You can safely CTRL+C this current command and it will continue
[                                                     ] 0%
Clone: Finished

[root@10 ~]# 
[root@10 ~]# 
[root@10 ~]# 
[root@10 ~]# ls -l /etc/pki/content/
clone-21AS/                 rhel-server-4AS-ppc/
clone-3AS/                  rhel-server-4AS-s390/
clone-5Server/              rhel-server-4AS-s390x/
rhel-server/                rhel-server-4AS-x86_64/
rhel-server-2.1AS-i386/     rhel-server-4ES-i386/
rhel-server-3AS-i386/       rhel-server-4ES-ia64/
rhel-server-3AS-ia64/       rhel-server-4ES-x86_64/
rhel-server-3AS-ppc/        rhel-server-5Server-i386/
rhel-server-3ES-i386/       rhel-server-5Server-ia64/
rhel-server-3ES-ia64/       rhel-server-5Server-s390x/
rhel-server-4AS-i386/       rhel-server-5Server-x86_64/
rhel-server-4AS-ia64/       
[root@10 ~]# ls -l /etc/pki/content/clone-3AS/
total 28
-rw-r--r--. 1 apache root 11001 Jan  6 15:20 clone-3AS.ca
-rw-r--r--. 1 apache root  9024 Jan  6 15:20 clone-3AS.cert
-rw-r--r--. 1 apache root  1675 Jan  6 15:20 clone-3AS.key
[root@10 ~]# 
> db.repos.find({"id" : "clone-21AS"})
{ "_id" : "clone-21AS", "use_symlinks" : false, "sync_schedule" : null, "package_count" : 0, "ca" : "/etc/pki/content/clone-21AS/clone-21AS.ca", "distributionid" : [ ], "last_sync" : "Thu Jan 06 2011 10:14:13 GMT-0500 (EST)", "id" : "clone-21AS", "repomd_xml_path" : "/var/lib/pulp/repos/clone-21AS/repodata/repomd.xml", "group_gz_xml_path" : "", "allow_upload" : 0, "group_xml_path" : "", "publish" : true, "source" : { "url" : "https://cdn.redhat.com///content/dist/rhel/server/2.1AS/i386/os", "type" : "yum", "supported_types" : [ "yum", "local", "rhn" ] }, "groupid" : [ ], "files" : [ ], "relative_path" : "clone-21AS", "key" : "/etc/pki/content/clone-21AS/clone-21AS.key", "packages" : { }, "arch" : "i386", "name" : "clone-21AS", "packagegroups" : { }, "clone_ids" : [ ], "cert" : "/etc/pki/content/clone-21AS/clone-21AS.cert", "packagegroupcategories" : { }, "_ns" : "repos", "release" : null, "errata" : { } }
>

Comment 4 Preethi Thomas 2011-01-06 20:35:55 UTC
[root@10 ~]# rpm -q pulp
pulp-0.0.121-1.fc14.noarch

moving to verified
Looking at the above results the certs are being set the in the db.

Comment 5 Preethi Thomas 2011-08-16 13:59:18 UTC
Closing with Community Release 15

pulp-0.0.223-4.