| Summary: | Hammer transition cvs from the Satellite 5 to Satellite 6 is failing | ||
|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Fotios Tsiadimos <ftsiadim> |
| Component: | Transitions | Assignee: | satellite6-bugs <satellite6-bugs> |
| Status: | CLOSED WONTFIX | QA Contact: | Katello QA List <katello-qa-list> |
| Severity: | urgent | Docs Contact: | |
| Priority: | high | ||
| Version: | 6.2.2 | CC: | adprice, bbuckingham, bkearney, dhlavacd, ftsiadim, inecas, kdixon, lpramuk, mhulan, tlestach, tstrachota, wpinheir |
| Target Milestone: | Unspecified | Keywords: | Regression |
| Target Release: | Unused | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2017-06-02 15:51:34 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: | |
|
Description
Fotios Tsiadimos
2016-11-15 22:16:53 UTC
Brad, comment #6 says that it is broken only if credentials are provided by yaml. When credentials are provided as cmdline params then it works. I possibly figured out what it causes - It was broken by fix for BZ #1325497 See https://github.com/Katello/hammer-cli-import/pull/26/files#r89281771 Refining my comment #8 - It fails only if you are asked for password. # hammer -u admin import content-host --debug --csv-file system-profiles.csv --export-directory . [Foreman] Password for admin: Importing from system-profiles.csv Creating new host: profile1 Caught NoMethodError:undefined method `clear' for nil:NilClass while processing CSV line: {"server_id"=>"1000010009", "profile_name"=>"profile1", "hostname"=>"tyan-gt24-01.example.com", "description"=>nil, "organization_id"=>"1", "base_channel_id"=>nil, "base_channel_label"=>nil, "child_channel_id"=>nil, "system_group_id"=>nil, "release"=>"7Server", "architecture"=>"x86_64", "virtual_host"=>nil, "virtual_guest"=>nil} Summary No action taken. While with credentials in yaml or as cmdline params it works: # hammer -u admin -p changeme import content-host --debug --csv-file system-profiles.csv --export-directory . Importing from system-profiles.csv Creating new host: profile1 To build the system-profile-transition rpm, run: cd /root/SPECS && rpmbuild -ba --define "_topdir /root" system-profile-transition-<SATFQDN>-1479896313-0.0.1.spec Then find your system-profile-transition-<SATFQDN>-1479896313 package in /root/RPMS/noarch/ directory. Summary Created 1 host. What do we want to track here? Unable to import, first import content view with id 101 (probably not a bug) vs. Caught NoMethodError:undefined method `clear' (hit only if asked for password) Thank you for your interest in Satellite 6. We have evaluated this bug, and we do not expect this to be implemented in product in the forseeable future. We are therefore closing this out as WONTFIX. If you have any concerns about this, please feel free to contact Rich Jerrido or Bryan Kearney. Thank you. |