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:
Or maybe the playbook shouldn't do local lookups https://bugzilla.redhat.com/show_bug.cgi?id=1824835
(In reply to Adam Ruzicka from comment #1) > Or maybe the playbook shouldn't do local lookups > https://bugzilla.redhat.com/show_bug.cgi?id=1824835 Perhaps this would be solved by my other RFE to have a drop down selection for execution capsule as well https://bugzilla.redhat.com/show_bug.cgi?id=1868795 . Should we table this RFE for now until an outcome for 1868795 and 1824835 are determined?
Created redmine issue http://projects.theforeman.org/issues/30648 from this bug
> Perhaps this would be solved by my other RFE to have a drop down selection for execution capsule as well https://bugzilla.redhat.com/show_bug.cgi?id=1868795 . Should we table this RFE for now until an outcome for 1868795 and 1824835 are determined? It would, but we already have a fix ready for BZ1824835 and implementing bz1868795 would be by orders of magnitude more work than fixing this one. Let's go after the low hanging fruits first
Upstream bug assigned to aruzicka
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/30648 has been resolved.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: Satellite 6.9 Release), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2021:1313