dtmateojr / dtmrepo

dtmrepo is a mrepo replacement
Other
12 stars 4 forks source link

repodata folder #3

Open vishalspatil opened 9 years ago

vishalspatil commented 9 years ago

Hi dtmateo,

Hope you are doing good, I just came across one problem for on my repo server[using dtmrepo]

when we sync from RHSM the repodata folder is created outside the os,optional and supplementary repo.

[root@dtmrepo rhel7s-x86_64]# ls optional os supplementary

[root@dtmrepo optional]# ls repodata rhel-7-server-optional-rpms

[root@dtmrepo os]# ls repodata rhel-7-server-rpms

so when we provide the baseurl in repo file it is unable to find repod.xml

http://dtmrepo.xyz.com/dtmrepo/rhel7s-x86_64/supplementary/rhel-7-server-supplementary-rpms/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found

can you let us know where can we tune this parameter in dtmrepo script so that repodata folder is created inside the os,optional and supplemenatry repo folder.

Thanks in advance.

dtmateojr commented 9 years ago

Is it able to generate the repo data? Have a look inside repodata and make sure the files are there. Run dtmrepo -fgv if it's empty. Repodata creation may fail if you have broken RPMS. Also make sure that you have the correct SELinux context otherwise do

chcon -R -t httpd_sys_content_t /path/to/your/repo

vishalspatil commented 9 years ago

yes repodata is generated but its not in the Packages folder for example the rpms are in "/var/dtmrepo/rhel7s-x86_64/os/rhel-7-server-rpms/Packages" for OS packages but no repodata folder is created in this directory the repodata folder is created in "/var/dtmrepo/rhel7s-x86_64/os" directory so when I provide baseurl path as /var/dtmrepo/rhel7s-x86_64/os/rhel-7-server-rpms it gives error repomd.xml: [Errno 14] HTTP Error 404 - Not Found

my question is that repodata folder in not generated in /var/dtmrepo/rhel7s-x86_64/*****/rhel-7-server-rpms/Packages folder.

Best regards

dtmateojr commented 9 years ago

Your client configuration is at fault. It should point to http://server/dtmrepo/rhel7s-x86_64/os