Satellite content view import fails with error `Unable to import in to Content View specified in the metadata`

Solution Verified - Updated

Environment

  • Red Hat Satellite 6.10 or later.

Issue

  • After exporting a Content View containing the rhel-7-server-satellite-6.11-rpms repository on a Satellite 6.10 server using the hammer export-legacy command, importing the same Content View into a disconnected Satellite 6.11 server fails.

      [root@satellite ~]# hammer content-import version --path /var/lib/pulp/imports/MYORG/CV-IMPORT/ --organization MYORG
      Could not import the archive.:
        Unable to import in to Content View specified in the metadata - 'CV-IMPORT'. The 'import_only' attribute for the content view is set to false. To mark this Content View as importable, have your system administrator run the following command on the server.
        foreman-rake katello:set_content_view_import_only ID=21
    

Resolution

For more KB articles/solutions related to Red Hat Satellite 6.x Content View Issues, please refer to the Red Hat Satellite Consolidated Troubleshooting Article for Red Hat Satellite 6.x Content View Issues

SBR
Product(s)
Components
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.