Project

General

Profile

Actions

Bug #31504

closed

hammer content-import -: do not check for 'pulp' things

Added by Partha Aji over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Inter Server Sync
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

When importing from a dump we see the following error

$ hammer content-import version --content-view="Test CV" --organization="Import Organization" --metadata-file=/home/vagrant/forklift-devel/bats/metadata-1.json --path=/var/lib/pulp/exports/Test_Organization/Test_CV/1.0/2020-12-11T22-46-12-00-00
Could not import the archive.:
  Invalid path specified: '/var/lib/pulp/exports/Test_Organization/Test_CV/1.0/2020-12-11T22-46-12-00-00' is not a directory

$ sudo ls -l /var/lib/pulp/exports/Test_Organization/Test_CV/1.0/2020-12-11T22-46-12-00-00
total 52
-rw-r--r--. 1 pulp pulp 46855 Dec 11 22:46 export-860c625d-53f4-4ada-a3a3-56f516cdadcf-20201211_2246.tar.gz
-rw-r--r--. 1 pulp pulp   333 Dec 11 22:46 export-860c625d-53f4-4ada-a3a3-56f516cdadcf-20201211_2246-toc.json

Even though the import path exists its not accessible by the foreman user and hence you get the invalid path error.
We need to instead make use of https://pulp.plan.io/issues/7549?pn=1#note-10 (when it becomes available) and remove the foreman server side checks for permissions in those directories

Actions #1

Updated by The Foreman Bot over 3 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/9077 added
Actions #2

Updated by The Foreman Bot over 3 years ago

  • Fixed in Releases Katello 4.0.0 added
Actions #3

Updated by Partha Aji over 3 years ago

  • Status changed from Ready For Testing to Closed
Actions #4

Updated by Samir Jha over 3 years ago

  • Target version set to Katello 3.18.1
  • Triaged changed from No to Yes
Actions

Also available in: Atom PDF