Description of problem: Performing an incremental update via hammer or the api and specifying package ids throws an error: undefined local variable or method `resolve_dependencies' for #<Actions::Katello::ContentViewVersion::IncrementalUpdate:0x0000000f2abd68> (NameError) /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.30/app/lib/actions/katello/content_view_version/incremental_update.rb:176:in `copy_yum_content' /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.30/app/lib/actions/katello/content_view_version/incremental_update.rb:71:in `block in copy_repo'
Created redmine issue http://projects.theforeman.org/issues/9951 from this bug
Since this issue was entered in Red Hat Bugzilla, the release flag has been set to ? to ensure that it is properly evaluated for this release.
Moving to POST since upstream bug http://projects.theforeman.org/issues/9951 has been closed ------------- Justin Sherrill Applied in changeset commit:katello|e0661bd7e992b55a2490486501c84ae5a35c9808.
hi please provide verification steps thanks
1. Publish a content view with a repository and a package exclude filter filtering out at least one package 2. hammer content-view version incremental-update --package-ids 82ba8ede-9f7-4029-82b7-0a1e2057f6b8 --environment-ids=1 --id=23 where --id=23 is the content view version id, and 82ba8ede-99f7-4029-82b7-0a1e2057f6b8 is the package id It should perform an incremental update on that content view version, pushing it to Library (environment with id 1). If you need to find the package id you can use hammer -u admin -p changeme package list --search="name:kernel AND version:2.6.32" --per-page=10 for example.
Verified. Version Tested: Satellite-6.1.0-RHEL-7-20150429.2 # hammer -u admin -p changeme content-view version incremental-update --package-ids 5b4f1c13-9d1e-4da5-9c0a-69dda761aae3 --environment-ids=2 --id=3 [..........................................................] [100%] Content View: rhel7partialcv version 1.1 Added Content: Packages: unzip-6.0-15.el7.x86_64 # hammer -u admin -p changeme content-view version incremental-update --package-ids 7f8a229b-c7cc-4fe6-8954-fde2b2fc3304,0fe142e8-122a-4cab-b6c8-49dab9a65c92 --environment-ids=2,3 --id=4 [..........................................................] [100%] Content View: rhel7partialcv version 1.2 Added Content: Packages: freetype-2.4.11-10.el7_1.1.x86_64 freetype-devel-2.4.11-10.el7_1.1.x86_64
This bug is slated to be released with Satellite 6.1.
This bug was fixed in version 6.1.1 of Satellite which was released on 12 August, 2015.