Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1138696 - hammer import all does not propagate --synchronize and --wait options to content-view sub-command
hammer import all does not propagate --synchronize and --wait options to cont...
Status: CLOSED ERRATA
Product: Red Hat Satellite 6
Classification: Red Hat
Component: Transitions (Show other bugs)
6.0.4
Unspecified Unspecified
unspecified Severity high (vote)
: Unspecified
: Unused
Assigned To: Tomas Lestach
Lukas Pramuk
:
Depends On:
Blocks: stargate-GA-tracker
  Show dependency treegraph
 
Reported: 2014-09-05 09:16 EDT by Tomas Lestach
Modified: 2015-04-10 11:31 EDT (History)
7 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2014-09-22 11:13:40 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2014:1279 normal SHIPPED_LIVE Red Hat Satellite 6 server bug fix update 2014-09-22 15:13:27 EDT

  None (edit)
Description Tomas Lestach 2014-09-05 09:16:20 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.
Comment 1 RHEL Product and Program Management 2014-09-05 09:23:12 EDT
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 11:32:31 EDT
hammer-cli-import.git(master): 5e891bf5ec51f1bd1e4e9173658bda4ca6e29707
Comment 4 Grant Gainey 2014-09-12 14:24:41 EDT
Moving to POST, only fixed upstream currently
Comment 7 Bryan Kearney 2014-09-17 08:36:04 EDT
Moving to MODIFIED to put in the errata.
Comment 9 Lukas Pramuk 2014-09-21 12:56:12 EDT
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 11:13:40 EDT
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

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