Description of problem: hammer import repository fails on the 2010823.0 compose, it prematurely exits, and says it created only 2 repositories out of 6. On the 20140813.2 compose it runs fine. Version-Release number of selected component (if applicable): rubygem-hammer_cli_import-0.10.1-1.el6.noarch How reproducible: 1 of 1 Steps to Reproduce: 1. 2. 3. # hammer import repository --verbose --csv-file /tmp/exports/repositories.csv --synchronize --wait' Importing from /tmp/exports/repositories.csv Creating new product: REDHAT.COM Creating new repository: spacewalk-nightly-rhel-5-i386 Registering tasks for uuids: ["a006cbfe-0a38-487c-bd51-0ea446d92adb"]. Starting thread for async tasks Creating new product: REDHAT.COM Creating new repository: internal-rhel5-vt Registering tasks for uuids: ["b3ecbe71-35d5-4a7d-a6fb-3df783c44fb4"]. Creating new product: VMWARE.COM Creating new repository: VMware-Tools-RHEL6-x86_64 Condition ["b3ecbe71-35d5-4a7d-a6fb-3df783c44fb4"] met Asynchronous tasks: 1 of 2 done (~73.74%) Exiting: uninitialized constant ImportTools::Exceptional::Include::MissingObjectError Summary Created 2 repositories. Created 3 products. Actual results: Created 2 repositories out of 6 . Or it says it created only 2 and reality is different. Expected results: Created 6 repositories
Since this issue was entered in Red Hat Bugzilla, the release flag has been set to ? to ensure that it is properly evaluated for this release.
hammer-cli-import.git: a5f80649a145746130de52579cfae45f0712bcab Thanks, good catch :-)
DEVELOPER VERIFIED: === ~/tests $ cat 1133547_repositories.csv org_id,id,repo_label,repo_type,source_url,client_key_descr,client_key_type,client_key,client_cert_descr,client_cert_type,client_cert,ca_descr,ca_type,ca_key 1000,1520,spacewalk-nightly-rhel-5-i386,yum,http://spacewalk.redhat.com/yum/nightly/RHEL/5/i386/,,,,,,,,, 7000,1580,internal-rhel5-vt,yum,http://download.englab.brq.redhat.com/pub/rhel/rel-eng/RHEL-5.9-Client-Beta-1.3/5/i386/os/VT/,,,,,,,,, 7000,1640,VMware-Tools-RHEL6-x86_64,yum,http://packages.vmware.com/tools/esx/4.1/rhel6/x86_64/,,,,,,,,, 7000,1641,puppet-rhel6-x86_64,yum,http://yum.puppetlabs.com/el/6Server/products/x86_64/,,,,,,,,, 7000,1642,gluster-rhel6-x86_64,yum,http://download.gluster.org/pub/gluster/glusterfs/3.3/3.3.1/RHEL/epel-6/x86_64/,,,,,,,,, 7000,1620,epel_repo_rhel6_x86-64,yum,http://mirrors.servercentral.net/fedora/epel/6/x86_64/,,,,,,,,, ~/tests $ hammer import repository --csv-file /root/tests/1133547_repositories.csv --synchronize --wait Starting thread for async tasks Asynchronous tasks: 1 of 2 done (~50.30%) Asynchronous tasks: 2 of 4 done (~38.65%) Asynchronous tasks: 2 of 6 done (~27.05%) Asynchronous tasks: 2 of 6 done (~20.43%) Asynchronous tasks: 3 of 6 done (~30.73%) Asynchronous tasks: 3 of 6 done (~32.73%) Asynchronous tasks: 4 of 6 done (~42.51%) Asynchronous tasks: 4 of 6 done (~13.76%) Asynchronous tasks: 4 of 6 done (~13.92%) ... Asynchronous tasks: 5 of 6 done (~67.65%) Asynchronous tasks: 6 of 6 done (~100.00%) Summary Created 6 repositories. Created 6 products. ~/tests $ === Seems to work well now. Verified on 0.10.4
Released as part of Sat 6.0 GA