Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1138696

Summary: hammer import all does not propagate --synchronize and --wait options to content-view sub-command
Product: Red Hat Satellite Reporter: Tomas Lestach <tlestach>
Component: TransitionsAssignee: Tomas Lestach <tlestach>
Status: CLOSED ERRATA QA Contact: Lukas Pramuk <lpramuk>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.0.4CC: bkearney, cperry, ggainey, jmontleo, mkollar, mmccune, xdmoon
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-09-22 15:13:40 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1125243    

Description Tomas Lestach 2014-09-05 13:16:20 UTC
Description of problem:
I'm running
# hammer import all --synchronize --no-async --wait
but
Import content-view gets called only with arguments:
 --csv-file /tmp/exports/CHANNELS/export.csv --dir /tmp/exports/CHANNELS --no-async
what causes local repositories neded to re-create the content-views never get synchronized.

Version-Release number of selected component (if applicable):
rubygem-hammer_cli_import-0.10.4-1.1.el6sat.noarch

How reproducible:
always

Steps to Reproduce:
1. Try to recreate custom channels (not cloned) on sat6

Actual results:
The trouble is, local repositories needed for content-views never get synced and subsequently content-views and other entities do not get created.

Expected results:
either 'all' sub-command shall propagate the 'repo options' to content-view sub-command
(or optionally local repositories shall be synced automatically regardless the --synchronize option), 1st option preferred

Additional info:
running 'hammer import all' multiple times does not help.

Comment 1 RHEL Program Management 2014-09-05 13:23:12 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 Tomas Lestach 2014-09-05 15:32:31 UTC
hammer-cli-import.git(master): 5e891bf5ec51f1bd1e4e9173658bda4ca6e29707

Comment 4 Grant Gainey 2014-09-12 18:24:41 UTC
Moving to POST, only fixed upstream currently

Comment 7 Bryan Kearney 2014-09-17 12:36:04 UTC
Moving to MODIFIED to put in the errata.

Comment 9 Lukas Pramuk 2014-09-21 16:56:12 UTC
VERIFIED. rubygem-hammer_cli_import-0.10.4-1.2.el6sat.noarch

REPRO:
# hammer import all --verbose --wait --synchronize --manifest-directory /root --dry-run
Import organization         with arguments --csv-file /tmp/exports/users.csv --upload-manifests-from /root
Import user                 with arguments --csv-file /tmp/exports/users.csv --new-passwords passwords_2014-09-20T22:09:42+0000.csv
Import host-collection      with arguments --csv-file /tmp/exports/system-groups.csv
Import repository-enable    with arguments --csv-file /tmp/exports/channels.csv --synchronize --wait
Import repository           with arguments --csv-file /tmp/exports/repositories.csv --synchronize --wait
Import content-view         with arguments --csv-file /tmp/exports/CHANNELS/export.csv --dir /tmp/exports/CHANNELS
Import activation-key       with arguments --csv-file /tmp/exports/activation-keys.csv
Import template-snippet     with arguments --csv-file /tmp/exports/kickstart-scripts.csv
Import config-file          with arguments --csv-file /tmp/exports/config-files-latest.csv
Import content-host         with arguments --csv-file /tmp/exports/system-profiles.csv --export-directory /root/rpm-working-dir

vs.

FIX:
# hammer import all --verbose --wait --synchronize --manifest-directory /root --dry-run
Import organization         with arguments --csv-file /tmp/exports/users.csv --upload-manifests-from /root
Import user                 with arguments --csv-file /tmp/exports/users.csv --new-passwords passwords_2014-09-20T22:11:35+0000.csv
Import host-collection      with arguments --csv-file /tmp/exports/system-groups.csv
Import repository-enable    with arguments --csv-file /tmp/exports/channels.csv --synchronize --wait
Import repository           with arguments --csv-file /tmp/exports/repositories.csv --synchronize --wait
Import content-view         with arguments --csv-file /tmp/exports/CHANNELS/export.csv --dir /tmp/exports/CHANNELS --synchronize --wait
Import activation-key       with arguments --csv-file /tmp/exports/activation-keys.csv
Import template-snippet     with arguments --csv-file /tmp/exports/kickstart-scripts.csv
Import config-file          with arguments --csv-file /tmp/exports/config-files-latest.csv
Import content-host         with arguments --csv-file /tmp/exports/system-profiles.csv --export-directory /root/rpm-working-dir

>>> options --synchronize and --wait are correctly propagated to the import of content-views

Comment 11 errata-xmlrpc 2014-09-22 15:13:40 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2014-1279.html