Project

General

Profile

Bug #31735

hammer content-view version export / import in need of update to handle new /var/lib/pulp structure

Added by Jeffrey Cutter over 1 year ago. Updated over 1 year ago.

Status:
Need more information
Priority:
Normal
Assignee:
-
Category:
Hammer
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

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.

History

#1 Updated by Oleh Fedorenko over 1 year ago

  • Category set to Hammer
  • Project changed from Hammer CLI to Katello

#2 Updated by Samir Jha over 1 year 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.

#3 Updated by Jeffrey Cutter over 1 year 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

#4 Updated by Chris Roberts over 1 year ago

  • Triaged changed from No to Yes

#5 Updated by Chris Roberts over 1 year 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

Also available in: Atom PDF