Bug 1267224 - Hammer import content-host --recover option has no effect.
Hammer import content-host --recover option has no effect.
Status: CLOSED WONTFIX
Product: Red Hat Satellite 6
Classification: Red Hat
Component: Transitions (Show other bugs)
6.1.2
Unspecified Unspecified
unspecified Severity medium (vote)
: Unspecified
: --
Assigned To: Adam Price
Roman Plevka
: Triaged
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2015-09-29 07:47 EDT by Roman Plevka
Modified: 2017-01-11 16:33 EST (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2017-01-11 16:33:22 EST
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)

  None (edit)
Description Roman Plevka 2015-09-29 07:47:01 EDT
Description of problem:
While trying to import the system profiles with the same name,
the recovery option should take place. However, its usage has no effect.
The profile is being created again (with a different ID).

Version-Release number of selected component (if applicable):
sat6-Satellite-6.1.0-RHEL-7-20150828.0
rubygem-hammer_cli_import-0.10.20-1.el7sat.noarch

How reproducible:
always

Steps to Reproduce:
1. Import/Create a Content Host with a certain name
2. perform `hammer import content-host --csv-file <path> ` and specify one of the --recover methods (rename/none/map)
3. The systems are being created

Actual results:

# hammer import content-host --csv-file system-profiles.csv --verbose --export-directory /tmp/test
Importing from system-profiles.csv
Creating new system content view: rhel-x86_64-server-7_282_284
  Publishing content view: 287
Creating new system: profile1
Creating new system content view: rhel-x86_64-server-6_282_284
  Publishing content view: 288
Creating new system: profile2
Creating new system content view: rhel-x86_64-server-5_282_284
  Publishing content view: 289
Creating new system: profile3

To build the system-profile-transition rpm, run:
...
Summary
  Created 3 system_content_views.
  Created 3 systems.

# rm -rf ~/.transition_data/system*

# hammer import content-host --csv-file system-profiles.csv --verbose --export-directory /tmp/test --recover none
Importing from system-profiles.csv
  Content view rhel-x86_64-server-7_282_284 already created, reusing.
Creating new system: profile1
  Content view rhel-x86_64-server-6_282_284 already created, reusing.
Creating new system: profile2
  Content view rhel-x86_64-server-5_282_284 already created, reusing.
Creating new system: profile3

To build the system-profile-transition rpm, run:
...
Summary
  Created 3 systems.

^^Same output applies for using none, rename and map strategy.

Expected results:
Either the recover strategy takes effect or (if it has no use in importing content hosts) the option is being disabled.


Additional info:
Comment 2 Bryan Kearney 2017-01-11 16:33:22 EST
This is an older bug which I do not envision being fixed in the near term. I am closing this out. If you believe doing so is an issue, please feel free to re-open and provide additional business information. Thank you.

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