Actions
Bug #39214
closedIncremental update of content view version should throw error when no content is added
Description
Currently, an incremental update of a content view version will succeed when a package is specified and valid. If that package already exists in the base content view version, we have no logic stopping the update. This should be corrected to throw an error. This can occur for rpm packages, deb packages, and errata.
Reproducer steps using appstream and pip:¶
- Sync RHEL 9 Appstream and BaseOS.
- Run `hammer package list --search "name = python3-pip"` and record the package id.
- Create a new lifecycle environment and record the id.
- Create a content view containing Appstream and BaseOS and publish it to the new lifecycle environment.
- Get the rid of the content view version using `hammer content-view version list`.
- Run `hammer content-view version incremental-update --content-view-version-id <cvv-id> --package-ids <pip-id> --lifecycle-environment-ids <le-id> --organization-id <org-id>`. This will succeed and "Added content:" should show nothing.
- `hammer content-view version info --id <new_id>` will show no new content.
Updated by The Foreman Bot 3 months ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/Katello/katello/pull/11702 added
Updated by Quinn James 3 months ago
- Description updated (diff)
- Status changed from Ready For Testing to New
- Pull request deleted (
https://github.com/Katello/katello/pull/11702)
Updated by Quinn James 3 months ago
- Red Hat JIRA set to SAT-37368
- Pull request https://github.com/Katello/katello/pull/11702 added
Updated by The Foreman Bot 3 months ago
- Status changed from New to Ready For Testing
Updated by Quinn James 3 months ago
- Status changed from Ready For Testing to Closed
Applied in changeset katello|1369d868bc10b1c2b4550f8170dcf01f5ee11649.
Actions