Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2130673

Summary: Import Ansible roles button in UI uses functional, but depricated endpoint
Product: Red Hat Satellite Reporter: Sam Bible <sbible>
Component: Ansible - Configuration ManagementAssignee: nalfassi
Status: CLOSED NOTABUG QA Contact: Sam Bible <sbible>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.12.0CC: ahumbe, oezr, rlavi
Target Milestone: 6.13.0Keywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-12-21 14:18:48 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Sam Bible 2022-09-28 20:32:20 UTC
Description of problem:
The "Import Ansible Roles from <satellite IP> button uses the following endpoint:
/ansible/api/ansible_roles/import

This has been marked as deprecated. It does however still work.


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

How reproducible:
Everytime

Steps to Reproduce:
1.Navigate to Configure -> Ansible Roles
2.Inspect the Import Ansible roles button

Actual results:
The endpoint used here is marked as deprecated

Expected results:
The endpoint used here isn't deprecated

Additional info:
There is an additional endpoint available:
/ansible/api/ansible_roles/sync
This has (at least in the case of the button involved) the same function.

Comment 1 nalfassi 2022-10-02 13:02:52 UTC
Created redmine issue https://projects.theforeman.org/issues/35586 from this bug

Comment 2 nalfassi 2022-10-20 11:08:57 UTC
Hi @sbible,

I couldn't reproduce this issue for the Satellite version you specify (6.12).
You mentioned we are using this endpoint: /ansible/api/ansible_roles/import, however I see a different endpoint that we are using there: /ansible/ansible_roles/import.  
Also, the new endpoint you suggested to use: /ansible/api/ansible_roles/sync - isn't working for me.
Can you please clarify this for me?

Thanks,
Nofar

Comment 4 Sam Bible 2022-12-21 14:18:48 UTC
Marking as Not a bug after a discussion with nalfassi - Sorry for the confusion all, seems I got internal routes and API routes mixed up.