In Red Hat Satellite 6 Incremental updates fails with "Error: Could not find package, please set one of options --packages, --package-ids".

Solution Verified - Updated -

Environment

Red Hat Satellite 6.2.x

Issue

  • When trying to add multiple rpms in content-view . It fails with following errors:
- Error: Could not find package, please set one of options --packages, --package-ids
- Error: Unrecognised option '--lifecycle-environments 
- Error: Could not find package, please set one of options --packages, --package-ids

Resolution

  • In order to publish an incremental content view, the package needs to be uploaded first to any desired repository followed by the incremental update. Use following hammer command to upload package.
    Note: ID for the organization, product and name will be different in users environment.
# hammer repository upload-content  --organization-id 3 --product-id 230 --id 5 --path /tmp/myrpm-release-latest-7.noarch.rpm

Note: In the above command --id 5 is id of repository ID.

  • Now create incremental updates for the content view using following hammer command:
# hammer content-view version incremental-update --lifecycle-environment-ids 2 --content-view-version-id 3 --package-ids 34268
[..................................................................................................................................................] [100%]
Content View: Test1 version 1.1
Added Content:
  Packages:
        myrpm-release-7-9.noarch

Root Cause

  • Package had not been uploaded before creating the incremental content view of the content view.
  • Used incorrect Lifecycle Environment ID.
  • Used incorrect package ID.

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.

Comments