Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1133547 - hammer import repository fails with MissingObjectError on the 20140823.0 compose
Summary: hammer import repository fails with MissingObjectError on the 20140823.0 compose
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Transitions
Version: Unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: Unspecified
Assignee: Matej Kollar
QA Contact: Lukas Pramuk
URL:
Whiteboard:
Depends On:
Blocks: stargate-GA-tracker
TreeView+ depends on / blocked
 
Reported: 2014-08-25 12:43 UTC by Lukas Pramuk
Modified: 2017-02-23 21:02 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-10-01 12:27:15 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Lukas Pramuk 2014-08-25 12:43:03 UTC
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

Comment 1 RHEL Program Management 2014-08-25 12:43:08 UTC
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.

Comment 3 Matej Kollar 2014-08-25 14:07:49 UTC
hammer-cli-import.git: a5f80649a145746130de52579cfae45f0712bcab

Thanks, good catch :-)

Comment 5 Grant Gainey 2014-09-04 18:03:39 UTC
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

Comment 6 Grant Gainey 2014-10-01 12:27:15 UTC
Released as part of Sat 6.0 GA


Note You need to log in before you can comment on or make changes to this bug.