Description of problem: Modification in the ansible roles is not reflecting on the Satellite web UI while re-importing the roles on Satellite web UI. Version-Release number of selected component (if applicable): Satellite 6.8 ansible 2.7.5 How reproducible: 100 % Steps to Reproduce: 1. Create or install the ansible roles on the Satellite server and import the roles from Satellite web UI. 2. Modify the roles, i.e. add a task or change the vars/main.yml file. 3. Import the roles again in the Satellite web UI showing "No changes in roles detected on satellite.example.com". 4. While running the roles on the clients, showing the changes. Actual results: Import the roles again in the Satellite web UI showing "No changes in roles detected on satellite.example.com". Expected results: It should display the modification as the task or variable has been changes in the roles. Additional info: Changes are applied in the roles and it is visible while running the roles but importing the roles showing "No changes in roles detected on satellite.example.com".
Hi, this is not a bug. The import only imports list of the roles, so changing it's content doesn't change anything from Satellite perspective. The tasks changes will not be detected in the future, so for that we could only reword the message to something more clear like: "No roles were added or removed on the proxy". The variables are imported separately to satellite, so that may be confusing for users. Changes to variables are shown while importing variables. This will be changed as part of https://bugzilla.redhat.com/show_bug.cgi?id=1744931 where we will change to import roles and variables together. This is expected to get into 6.10.
Created redmine issue https://projects.theforeman.org/issues/31879 from this bug
Steps to test: 1. On Satellite 6.10, snap 5, log in to the webUI as the admin user. 2. Navigate to Configure > Roles. 3. Click the "Import from satellite.example.com" button. 4. Select all available roles. 5. Click the "Submit" button. 6. Click the "Import from satellite.example.com" button again. Expected Results: A notification displays the message "No added or removed roles nor variables detected on satellite.example.com." Actual Results: A notification displays the message "No added or removed roles nor variables detected on satellite.example.com." Conversely, running the same steps on Satellite 6.9 or early shows the message "No changes in roles detected on dhcp-3-106.vms.sat.rdu2.redhat.com." Verified on Satellite 6.10, snap 5 (tfm-rubygem-foreman_ansible-6.3.0-1.el7sat.noarch).
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.10 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:4702