Red Hat Bugzilla – Bug 1138696
hammer import all does not propagate --synchronize and --wait options to content-view sub-command
Last modified: 2015-04-10 11:31:25 EDT
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.
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(master): 5e891bf5ec51f1bd1e4e9173658bda4ca6e29707
Moving to POST, only fixed upstream currently
Moving to MODIFIED to put in the errata.
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
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