Description of problem: Job template "change content source" fails to change the content source Steps to Reproduce: 1. Register a RHEL8 client VM to satellite 2. Edit it and add correct content source manually. [It would be blank on registration] 3. Now use job template "change content source" to change the content source. Actual results: The job completes successfully but the actual change doesnt happen. Below is the execution log: 1: Successfully updated the system facts. 2: Starting deployment of REX pull provider 3: # 4: # Installing packages 5: # 6: Updating Subscription Management repositories. 7: EPEL8 41 kB/s | 2.3 kB 00:00 8: Package foreman_ygg_worker-0.1.1-2.el8sat.x86_64 is already installed. 9: Dependencies resolved. 10: Nothing to do. 11: Complete! 12: Getting configuration from subscription-manager... 13: enabled 14: Running timer as unit: run-ra9ac2f1552b848b6b030ee4a490fe707.timer 15: Will run service as unit: run-ra9ac2f1552b848b6b030ee4a490fe707.service 16: Remote execution pull provider successfully configured! 17: Exit status: 0 Expected results: The content source should be changed
Is this a regression from 6.12? Thanks!
Hi, can I get more info about the issue? - Satellite & Katello version - Logs from capsule and satellite Jeremy: change_content_source is in https://github.com/Katello/katello/blob/master/app/lib/katello/concerns/base_template_scope_extensions.rb#L301
Isn't the reproducer missing a step? I think the job should be triggered from the change content source wizard, not ran directly. The job doesn't change anything in the DB, it only performs what needs to be performed on the host. The wizard modifies the Satellite DB. If that's the case, that wouldn't be a bug right? Perhaps we could add a description to the template to explain its purpose.
I'd be in favor of renaming the job template to something more descriptive - something like "Configure host for new content source."
Created redmine issue https://projects.theforeman.org/issues/36597 from this bug
Upstream bug assigned to jlenz
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/36597 has been resolved.
Verified on: 6.14 - 11 Steps to verify: 1. Navigate to Hosts -> Job Templates 2. Select Katello as the job category Expected Results: There is no job template named 'Change Content Source' and there is one named 'Configure Host for new content source'; the description of the template has been updated The job executes successfully. Actual Results: There is no job template named 'Change Content Source' and there is one named 'Configure Host for new content source'; the description of the template has been updated The job executes successfully.