Project

General

Profile

Actions

Bug #31735

open

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

Added by Jeffrey Cutter almost 4 years ago. Updated 3 months ago.

Status:
Need more information
Priority:
Normal
Assignee:
-
Category:
Hammer
Target version:
-
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

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.

Actions #1

Updated by Oleh Fedorenko almost 4 years ago

  • Project changed from Hammer CLI to Katello
  • Category set to Hammer
Actions #2

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.

Actions #3

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

Actions #4

Updated by Chris Roberts almost 4 years ago

  • Triaged changed from No to Yes
Actions #5

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

Actions #6

Updated by Ian Ballou 3 months ago

  • Target version deleted (Katello Backlog)
Actions

Also available in: Atom PDF