Project

General

Profile

Actions

Feature #30648

closed

Control for executing the job from the Satellite to the Satellite needs to be implemented in the process

Added by Adam Ruzicka over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1868800

Description of problem:
When trying to install the cloud connector on the Satellite with multiple external Capsule servers, it is possible that the Satellite's host profile is configured in such a way that a external Capsule will be selected to run the job opposed to the Satellite server. This will result in a failure of the installation due to the lookup template used in the /usr/share/ansible/roles/project-receptor.satellite_receptor_installer/templates/receptor.conf.j2:
node_id={{ lookup('file', receptor_config_dir+'/rh_'+sat_account_id+'/uuid') }}

as the lookup module is only used for local files and not run on the remote server.

Version-Release number of selected component (if applicable):
6.7.2

How reproducible:
Everytime

Steps to Reproduce:
1. Get to the step before running the cloud connector playbook
2. Ensure your Satellite host profile is configured in a way that the algorithm used to determine the execution capsule (https://access.redhat.com/documentation/en-us/red_hat_satellite/6.7/html-single/managing_hosts/index#sect-Managing_Hosts-Choosing_a_Satellite_Capsule_for_Remote_Execution) will not be the Satellite server, but a external Capsule
3.

Actual results:
Creation of the '/etc/receptor/rh_*/receptor.conf failes due to the missing uuid file on the external capsule

Expected results:
The playbook should ensure that the playbook can only be executed on the Satellite server from the Satellite server

Additional info:

Actions #1

Updated by The Foreman Bot over 3 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Adam Ruzicka
  • Pull request https://github.com/theforeman/foreman_ansible/pull/359 added
Actions #2

Updated by Anonymous over 3 years ago

  • Status changed from Ready For Testing to Closed
Actions #3

Updated by Ondřej Pražák over 3 years ago

  • Subject changed from Control for executing the job from the Satellite to the Satellite needs to be implemented in the process to Control for executing the job from the Satellite to the Satellite needs to be implemented in the process
  • Fixed in Releases foreman_ansible-6.0.1 added
Actions

Also available in: Atom PDF