Bug 707426

Summary: repo create with relativepath creates repo in 2 directories
Product: [Retired] Pulp Reporter: Preethi Thomas <pthomas>
Component: z_otherAssignee: Pradeep Kilambi <pkilambi>
Status: CLOSED NOTABUG QA Contact: Preethi Thomas <pthomas>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: skarmark
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-05-25 16:06:22 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Preethi Thomas 2011-05-25 01:56:26 UTC
Description of problem:

Running repo create with --relativepath creates repo 2 directories 



[root@preethi ~]# pulp-admin repo create --id=f15 --feed=http://download.devel.redhat.com/released/F-15/Beta/Fedora/x86_64/os/ --interval P1D --start=2011-05-24T21:00:00-05:00:00 --runs=2 --relativepath=/tmp/
Successfully created repository [ f15 ]


[root@preethi ~]# ls -l /var/lib/pulp/repos/tmp/repodata/
total 28
-rw-r--r--. 1 apache apache  582 May 24 21:58 filelists.sqlite.bz2
-rw-r--r--. 1 apache apache  172 May 24 21:58 filelists.xml.gz
-rw-r--r--. 1 apache apache  569 May 24 21:58 other.sqlite.bz2
-rw-r--r--. 1 apache apache  168 May 24 21:58 other.xml.gz
-rw-r--r--. 1 apache apache 1247 May 24 21:58 primary.sqlite.bz2
-rw-r--r--. 1 apache apache  181 May 24 21:58 primary.xml.gz
-rw-r--r--. 1 apache apache 2683 May 24 21:58 repomd.xml
[root@preethi ~]# ls -l /var/lib/pulp/published/repos/tmp/repodata/
total 28
-rw-r--r--. 1 apache apache  582 May 24 21:58 filelists.sqlite.bz2
-rw-r--r--. 1 apache apache  172 May 24 21:58 filelists.xml.gz
-rw-r--r--. 1 apache apache  569 May 24 21:58 other.sqlite.bz2
-rw-r--r--. 1 apache apache  168 May 24 21:58 other.xml.gz
-rw-r--r--. 1 apache apache 1247 May 24 21:58 primary.sqlite.bz2
-rw-r--r--. 1 apache apache  181 May 24 21:58 primary.xml.gz
-rw-r--r--. 1 apache apache 2683 May 24 21:58 repomd.xml


[root@preethi ~]# ls -l /var/lib/pulp/published/repos/tmp/
total 228
drwxr-sr-x. 3 apache apache   4096 May 24 22:02 images
drwxr-sr-x. 2 apache apache 221184 May 24 22:02 Packages
drwxr-sr-x. 2 apache apache   4096 May 24 22:04 repodata
[root@preethi ~]# 
[root@preethi ~]# ls -l /var/lib/pulp/repos/tmp/
images/    Packages/  repodata/  .treeinfo  
[root@preethi ~]# ls -l /var/lib/pulp/repos/tmp/
total 228
drwxr-sr-x. 3 apache apache   4096 May 24 22:02 images
drwxr-sr-x. 2 apache apache 221184 May 24 22:02 Packages
drwxr-sr-x. 2 apache apache   4096 May 24 22:04 repodata

Comment 1 Sayli Karmarkar 2011-05-25 16:06:22 UTC
The one in /var/lib/pulp/published/repos is a symlink to /var/lib/pulp/repos and this is intended. Closing as NotABug.