Linux: Satellite upgrade notes
Installation:Document used: https://access.redhat.com/documentation/en-us/red_hat_satellite/6.3/html/upgrading_and_updating_red_hat_satellite/upgrading_red_hat_satellite
In general the Red Hat directions work the biggest caveat came when running the health check: [[email protected] ~]# foreman-maintain upgrade check –target-version 6.3
It kept failing on Satellite due to running tasks background.
foreman-maintain upgrade check –target-version 6.3 Running Checks before upgrading to Satellite 6.3Example output:
Check for paused tasks: [OK] Check whether all services are running using hammer ping: [OK] Check to validate candlepin database: [OK] Check for running tasks: [FAIL] There are 11 active task(s) in the system. Please wait for these to complete or cancel them from the Monitor tab.There are multiple steps to proceed:1) Fetch tasks status and wait till they finish2) Investigate the tasks via UISelect step to continue, [n(next), q(quit)]
The fix was to get into Postgres and disable the jobs manually.
This will list running jobs from postgres:su – postgres -c “psql -d foreman -c ‘select label,count(label),state from foreman_tasks_tasks where state <> ‘\”stopped’\” group by label,state;'”
Actions::RemoteExecution::RunHostsJob | 79 | scheduledActions::RemoteExecution::RunHostJob | 11 | runningActions::Katello::EventQueue::Monitor | 1 | runningActions::Insights::EmailPoller | 1 | scheduledActions::Candlepin::ListenOnCandlepinEvents | 1 | running(5 rows)
Notice RunHostsJob is listed as scheduled and RunHostJob is listed as running. Both of these will cause the health check to fail.
To stop these do run the following command:foreman-rake foreman_tasks:cleanup TASK_SEARCH=’label = Actions::RemoteExecution::RunHostsJob’ STATES=’running,pending,planned,paused,scheduled,planning’ VERBOSE=trueforeman-rake foreman_tasks:cleanup TASK_SEARCH=’label = Actions::RemoteExecution::RunHostJob’ STATES=’running,pending,planned,paused,scheduled,planning’ VERBOSE=true
Now the health check will work.
After pushing out the agent
There is some clean up that needs to take place for yum to work properly on the Red Hat servers connected to Satellite.1. Go to Content View2. Select a view3. Select the Yum Content tab 4. Click Repositories5. Remove the old Satellite Repository by selecting the old one and clicking Remove Repositories6. Click add, find the new Satellite repository and click Add Repositories7. Click the Versions tab8. Go through the process of Publishing a new version and Promoting each Environment.
Once this is complete the client servers will see the new Satellite repository files and work properly.