Bug #31735
openhammer content-view version export / import in need of update to handle new /var/lib/pulp structure
Description
I'm having difficulties with the hammer content-view version export on the current master branch of https://github.com/Katello/hammer-cli-katello.
[vagrant@centos7-katello-hammer-devel-1 hammer-cli-katello]$ hammer content-view version export --id 2 --export-dir /tmp/test2 Warning: An error occured while loading module hammer_cli_csv. Warning: An error occured while loading module hammer_cli_foreman_admin. Warning: An error occured while loading module hammer_cli_foreman_remote_execution. Warning: An error occured while loading module hammer_cli_foreman_virt_who_configure. Could not export the content view: Error: No such file or directory @ dir_chdir - /var/lib/pulp/published/yum/https/repos/
/var/lib/pulp/published/yum/https/repos no longer exists and I note some other differences in /var/lib/pulp when comparing to a Satellite 6.8 system that seems to indicate that hammer content-view version export / import will need to be updated for the functionality to work.
Updated by Oleh Fedorenko almost 4 years ago
- Project changed from Hammer CLI to Katello
- Category set to Hammer
Updated by Samir Jha almost 4 years ago
- Status changed from New to Need more information
What is the katello version you're on? If you're on 3.18, you should use the hammer content-export command instead.
Updated by Jeffrey Cutter almost 4 years ago
I'm running a recent forklift centos-katello-devel at 4.0.0.pre.master. Does this mean that hammer content-view version export/import is deprecated?
Thanks,
-Jeff
Updated by Chris Roberts almost 4 years ago
- Target version set to Katello Backlog
Hi Jeffery,
The PR you are working on is for Pulp 2, the new export/import stuff is in the content-export command in hammer:
https://github.com/Katello/hammer-cli-katello/blob/master/lib/hammer_cli_katello/content_import.rb
https://github.com/Katello/hammer-cli-katello/blob/master/lib/hammer_cli_katello/content_export.rb
Chris