Cloud connector issue

Hello,

When I try to connect to RH cloud the job finish with the issue below:

1:
[DEPRECATION WARNING]: ANSIBLE_CALLBACK_WHITELIST option, normalizing names to
2:
new standard, use ANSIBLE_CALLBACKS_ENABLED instead. This feature will be
3:
removed from ansible-core in version 2.15. Deprecation warnings can be disabled
4:
by setting deprecation_warnings=False in ansible.cfg.
5:
ERROR! the role ‘redhat.satellite_operations.cloud_connector’ was not found in /tmp/d20250213-2775090-i8yr3t/project/roles:/etc/ansible/roles:/usr/share/ansible/roles:/tmp/d20250213-2775090-i8yr3t/project
6:
The error appears to be in ‘/tmp/d20250213-2775090-i8yr3t/project/playbook.yml’: line 7, column 7, but may
7:
be elsewhere in the file depending on the exact syntax problem.
8:
The offending line appears to be:
9:
roles:
10:
- redhat.satellite_operations.cloud_connector
11:
^ here
12:
Exit status: 1
13:
StandardError: Job execution failed

Foreman 3.13 and Katello 4.15

Any idea ?

I found this in logs:

the role ‘redhat.satellite_operations.cloud_connector’ was not found in /tmp/d20250213-2775090-w5g1f3/project/roles:/etc/ansible/roles:/usr/share/ansible/roles:/tmp/d20250213-2775090-w5g1f3/project

What to do to solve this ?

Hi @xybal

You need to change the FQCN from redhat.satellite_operations.cloud_connector to theforeman.operations.cloud_connector. You can install this Ansible role via RPM from Index of /plugins/nightly/el9/x86_64 or via ansible-galaxy collection install theforeman.operations on your Foreman Server.

See foreman-operations-collection/roles/cloud_connector at develop · theforeman/foreman-operations-collection · GitHub & GitHub - theforeman/foreman-operations-collection: Ansible collection for management of Foreman servers

Hi maximilian,

Thx for your answer.
Can you describe me where / how to change this ? I dont see how to do this please

Anyway it seems the plugin is already installed:

You would have to clone the required job template and edit it. You can find which is used under Administer > Remote Execution Features. After cloning and editing, you’ll have to select this for the REX action.

Yu said “After cloning and editing, you’ll have to select this for the REX action” how to do this as I never did it ? Can you give me details about how to do please ?

I cloned and now I’ve got this:


  • hosts: all
    become: true
    vars:
    satellite_cloud_connector_url: “<%= foreman_server_url %>”
    roles:
    • theforeman.operations.cloud_connector

Is this OK ?

If yes how to to run this to allow connection to the RH cloud like I would do it through the GUI button ?

1:
[DEPRECATION WARNING]: ANSIBLE_CALLBACK_WHITELIST option, normalizing names to
2:
new standard, use ANSIBLE_CALLBACKS_ENABLED instead. This feature will be
3:
removed from ansible-core in version 2.15. Deprecation warnings can be disabled
4:
by setting deprecation_warnings=False in ansible.cfg.
5:
ERROR! the role ‘theforeman.operations.cloud_connector’ was not found in /tmp/d20250213-2775090-5bq9tc/project/roles:/etc/ansible/roles:/usr/share/ansible/roles:/tmp/d20250213-2775090-5bq9tc/project
6:
The error appears to be in ‘/tmp/d20250213-2775090-5bq9tc/project/playbook.yml’: line 7, column 7, but may
7:
be elsewhere in the file depending on the exact syntax problem.
8:
The offending line appears to be:
9:
roles:
10:
- theforeman.operations.cloud_connector
11:
^ here
12:
Exit status: 1
13:
StandardError: Job execution failed

The change in the job template looks correct. Did you try to install the Ansible role via RPM? The error indicates that it’s still missing on your Foreman Server.

I installed it via foreman-installer. Is it better to do it via RPM ?
What to do to resolve / workaround this issue ?

I tried to reinstall the RPM but still the same issue, any idea ?

Can you check if the Ansible is present on your Foreman Server under /etc/ansible/roles/ or /etc/ansible/roles/?

/etc/ansible/roles is empty

In Configure → Ansible → Roles when I try to import foreman cloud role, its absent.

How to install the ansible collection GitHub - theforeman/foreman_rh_cloud: a plugin to Foreman that generates and uploads reports to the Red Hat cloud please ?
I have access to ansible galaxy but not to github

Try downloading the archive from Ansible Galaxy and then extract to the propose location where the REX job searches for Ansible roles. Note that I cannot test this myself right now; this is basically just an educated guess.

Ok did it and now how to obtain the same entry in the foreman GUI RH_cloud to test the connector ?

I reinstalled the plug in to get back this the RH_cloud entry in the GUI.
I placed the role in /etc/ansible/roles/cloud_connector

What to do now to have a working connection with RH_connector ?

I put the role in /etc/ansible/roles/ changing the name by exactly this : theforeman.operations.cloud_connector

Now I’ve got this error:

FAILED! => {“changed”: false, “failures”: [“No package yggdrasil-worker-forwarder available.”], “msg”: “Failed to install some of the specified packages”, “rc”: 1, “results”: }

Any idea ?