How to upgrade Red Hat Capsule server with Remote Execution using Red Hat Satellite 6.8?

Solution Verified - Updated

Environment

  • Red Hat Satellite 6.8
  • Red Hat Capsule
  • Capsule Upgrade from 6.7 to 6.8
  • Remote execution

Issue

How to upgrade Red Hat Capsule server with Remote Execution using Red Hat Satellite 6.8?

Resolution

From Red Hat Satellite 6.8 onwards, we can upgrade Red Hat Capsule from 6.7 -> 6.8 using a Remote Execution.

Here are the steps to perform capsule upgrade using Remote Execution.

  • Login to Satellite 6.8 WebUI.
  • Navigate to Hosts -> All Hosts -> Click on the Capsule server profile (capsule.example.com)
  • Click on Schedule Remote Job
  • Update below details on the page
 Job Category: Ansible Playbook 
 Job Template: Capsule Upgrade Playbook 
 Search Query  name ^ (capsule.example.com) 
 target_version: 6.8

Once upgraded, you can utilize this same Playbook and change the target_version to your desired version for future updates, EG: 6.8.z, 6.9 and later.

If you do not have remote execution already configured on Capsule please add the ssh key to the Capsule by issuing the following command from the Satellite:

ssh-copy-id -i ~foreman-proxy/.ssh/id_rsa_foreman_proxy.pub root@capsule.example.com

Note: Replace capsule.example.com with the actual hostname of your capsule server.

If you still encounter authentication errors when running the Playbook such as:

   1: Error initializing command: Net::SSH::AuthenticationFailed - Authentication failed for user root@capsule.example.com
   2: Exit status: EXCEPTION

Ensure you have the Fallback to Any Capsule setting enabled in Administer > Settings > Remote Execution as outlined in our documentation here: 10.1.1. Configuring the Fallback to Any Capsule Remote Execution Setting in Satellite

For more KB articles/solutions related to Red Hat Satellite 6.x Installation/Upgrade/Update Issues, please refer to the Red Hat Satellite Consolidated Troubleshooting Article for Red Hat Satellite 6.x Installation/Upgrade/Update Issues.

SBR
Product(s)
Category

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.