Hide Forgot
The following cli command: katello repo create --org=ACME_Corporation --name=testrepo23 --url=http://repos.fedorapeople.org/repos/pulp/pulp/testing/fedora-15/x86_64/ --product=custom1 will tail on discovery since there are no child repos. This should be valid since hte --url is a valid repo.
taking this one ..
commit e4b1ce088343af4f1402dabb9fc7954433756aef Author: Mike McCune <mmccune> Date: Wed Aug 17 15:30:17 2011 -0700 731446 - adding new 'discovery' command for repo discovery Splitting repo creation and discovery into 2 commands. Discovery utilizes the discovery calls and Create now just creates one repo. print _("No product [ %s ] found") % prodName commit e4047173689cc1163c02631d63472e1cb3174bfb Author: Mike McCune <mmccune> Date: Wed Aug 17 15:34:01 2011 -0700 731446 - fixing variable name commit 7841e24550d74edd06cd587491c5912cd9e9d8d7 Author: Mike McCune <mmccune> Date: Wed Aug 17 15:35:12 2011 -0700 731446 - variable name fix
Added a new 'discovery' command that does what create did before and made create just create 1 repo.
Hmm, there was a requirement for discovery to be part of repo creation process. The original issue is a bug in pulp (which I thought was fixed) where pulp doesn't find the repository if a full url was passed in for discovery.
Discussed on IRC and decided to split out discovery into 2 commands, create and discover.
Verified with following katello builds: katello-0.1.237-1.el6.noarch katello-cli-0.1.54-1.el6.noarch katello-glue-pulp-0.1.237-1.el6.noarch pulp-0.0.264-1.el6.noarch repo discovery command is added and working as expected: [root@scroponok manifests]# katello -u admin -p admin shell katello> provider create --name rhel --org sghai_org Successfully created provider [ rhel ] katello> product create --org sghai_org --name rhel6 --provider rhel Successfully created product [ rhel6 ] katello> repo discover --org sghai_org --name rhel62 --product=rhel6 --url http://download.eng.pnq.redhat.com/pub/rhel/released/RHEL-6/6.2/ Discovering repository urls, this could take some time... (-) [1] http://download.eng.pnq.redhat.com/pub/rhel/released/RHEL-6/6.2/Workstation/x86_64/os (-) [2] http://download.eng.pnq.redhat.com/pub/rhel/released/RHEL-6/6.2/Workstation/x86_64/os/Workstation (-) [3] http://download.eng.pnq.redhat.com/pub/rhel/released/RHEL-6/6.2/Workstation/x86_64/os/ScalableFileSystem (-) [4] http://download.eng.pnq.redhat.com/pub/rhel/released/RHEL-6/6.2/Workstation/optional/x86_64/os (-) [5] http://download.eng.pnq.redhat.com/pub/rhel/released/RHEL-6/6.2/Workstation/optional/i386/os (-) [6] http://download.eng.pnq.redhat.com/pub/rhel/released/RHEL-6/6.2/Workstation/i386/os (-) [7] http://download.eng.pnq.redhat.com/pub/rhel/released/RHEL-6/6.2/Workstation/i386/os/Workstation (-) [8] http://download.eng.pnq.redhat.com/pub/rhel/released/RHEL-6/6.2/Server/x86_64/os (-) [9] http://download.eng.pnq.redhat.com/pub/rhel/released/RHEL-6/6.2/Server/x86_64/os/Server (-) [10] http://download.eng.pnq.redhat.com/pub/rhel/released/RHEL-6/6.2/Server/x86_64/os/ScalableFileSystem (-) [11] http://download.eng.pnq.redhat.com/pub/rhel/released/RHEL-6/6.2/Server/x86_64/os/ResilientStorage (-) [12] http://download.eng.pnq.redhat.com/pub/rhel/released/RHEL-6/6.2/Server/x86_64/os/LoadBalancer (-) [13] http://download.eng.pnq.redhat.com/pub/rhel/released/RHEL-6/6.2/Server/x86_64/os/HighAvailability (-) [14] http://download.eng.pnq.redhat.com/pub/rhel/released/RHEL-6/6.2/Server/optional/x86_64/os (-) [15] http://download.eng.pnq.redhat.com/pub/rhel/released/RHEL-6/6.2/Server/optional/i386/os (-) [16] http://download.eng.pnq.redhat.com/pub/rhel/released/RHEL-6/6.2/Server/i386/os (-) [17] http://download.eng.pnq.redhat.com/pub/rhel/released/RHEL-6/6.2/Server/i386/os/Server (-) [18] http://download.eng.pnq.redhat.com/pub/rhel/released/RHEL-6/6.2/Server/i386/os/ResilientStorage (-) [19] http://download.eng.pnq.redhat.com/pub/rhel/released/RHEL-6/6.2/Server/i386/os/LoadBalancer (-) [20] http://download.eng.pnq.redhat.com/pub/rhel/released/RHEL-6/6.2/Server/i386/os/HighAvailability (-) [21] http://download.eng.pnq.redhat.com/pub/rhel/released/RHEL-6/6.2/Client/x86_64/os (-) [22] http://download.eng.pnq.redhat.com/pub/rhel/released/RHEL-6/6.2/Client/x86_64/os/Client (-) [23] http://download.eng.pnq.redhat.com/pub/rhel/released/RHEL-6/6.2/Client/optional/x86_64/os (-) [24] http://download.eng.pnq.redhat.com/pub/rhel/released/RHEL-6/6.2/Client/optional/i386/os (-) [25] http://download.eng.pnq.redhat.com/pub/rhel/released/RHEL-6/6.2/Client/i386/os (-) [26] http://download.eng.pnq.redhat.com/pub/rhel/released/RHEL-6/6.2/Client/i386/os/Client Select urls for which candidate repos should be created; use `y` to confirm (h for help):y Successfully created repository [ rhel62_pub_rhel_released_RHEL-6_6.2_Client_x86_64_os ] Successfully created repository [ rhel62_pub_rhel_released_RHEL-6_6.2_Workstation_x86_64_os ] katello> created 2 repos: ================= katello> repo list --org sghai_org ----------------------------------------------------------------------------- Repo List For Org sghai_org Environment Library Id Name Package Count ----------------------------------------------------------------------------- 1236 rhel62_pub_rhel_released_RHEL-6_6.2_Client_x86_64_os 0 1237 rhel62_pub_rhel_released_RHEL-6_6.2_Workstation_x86_64_os 0 katello> sync successfully completed: =========================== katello> repo status --name "rhel62_pub_rhel_released_RHEL-6_6.2_Client_x86_64_os" --org sghai_org --product rhel6 ----------------------------------------------------------------------------- Repository Status ----------------------------------------------------------------------------- Package Count: 2864 Last Sync: 2012/02/16 12:13:41 Sync State: Finished katello> katello> repo status --name "rhel62_pub_rhel_released_RHEL-6_6.2_Workstation_x86_64_os" --org sghai_org --product rhel6 ----------------------------------------------------------------------------- Repository Status ----------------------------------------------------------------------------- Package Count: 3804 Last Sync: 2012/02/16 12:15:21 Sync State: Finished katello>