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 2172129

Summary: Newly installed Satellite 6.13 shows broken symlink for .ansible.cfg inside /usr/share/foreman-proxy/ directory
Product: Red Hat Satellite Reporter: Sayan Das <saydas>
Component: Ansible - Configuration ManagementAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED WONTFIX QA Contact: Satellite QE Team <sat-qe-bz-list>
Severity: medium Docs Contact:
Priority: low    
Version: 6.13.0CC: ahumbe, aruzicka, nalfassi, zuansorg
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-05-13 10:04:06 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 Sayan Das 2023-02-21 14:57:14 UTC
Description of problem:

On a freshly installed Satellite 6.13, /etc/foreman-proxy/ansible.cfg is not longer present and we still get to see a broken link for /usr/share/foreman-proxy/.ansible.cfg file.


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

satellite-6.13.0-4.el8sat.noarch
rubygem-smart_proxy_ansible-3.5.0-1.el8sat.noarch


How reproducible:

Always


Steps to Reproduce:

1. Install Satellite 6.13
2. Check inside /usr/share/foreman-proxy/ using "ls -la"


Actual results:

# ll /usr/share/foreman-proxy/ -a | grep "\.ansi"
lrwxrwxrwx.   1 root          root   30 Nov 11 17:42 .ansible -> /var/lib/foreman-proxy/ansible
lrwxrwxrwx.   1 root          root   30 Nov 11 17:42 .ansible.cfg -> /etc/foreman-proxy/ansible.cfg
lrwxrwxrwx.   1 root          root   37 Nov 11 17:42 .ansible_galaxy -> /var/lib/foreman-proxy/ansible_galaxy

# ls -ld /var/lib/foreman-proxy/ansible /etc/foreman-proxy/ansible.cfg /var/lib/foreman-proxy/ansible_galaxy
ls: cannot access '/etc/foreman-proxy/ansible.cfg': No such file or directory
drwxr-xr-x. 2 foreman-proxy foreman-proxy 6 Nov 11 17:42 /var/lib/foreman-proxy/ansible
drwxr-xr-x. 2 foreman-proxy foreman-proxy 6 Nov 11 17:42 /var/lib/foreman-proxy/ansible_galaxy



Expected results:

* No such broken links should be present in the product. 


Additional info:

Comment 1 Brad Buckingham 2023-02-23 15:26:09 UTC
Is there any user impact or broken workflows as a result of this behavior?

Comment 2 Sayan Das 2023-02-23 15:33:02 UTC
(In reply to Brad Buckingham from comment #1)
> Is there any user impact or broken workflows as a result of this behavior?

Not at all as long as someone does not decide to put an ansible.cfg manually inside the target location, which then will cause issues. 

I am aware of a discussion here in https://bugzilla.redhat.com/show_bug.cgi?id=2171849#c2 about it as well.

Comment 3 Zuzana Lena Ansorgova 2023-03-08 14:44:37 UTC
The question is how Ansible behaves if it finds a broken link. According to Ansible docs, it searches for ~/.ansible.cfg and if not found, then it goes for /etc/ansible/ansible.cfg.
The ~/.ansible.cfg file is technically there, so is it possible that Ansible ignores /etc/ansible/ansible.cfg because it finds the broken link?

IMHO, the test case used to verify https://bugzilla.redhat.com/show_bug.cgi?id=1786358#c16 only tested that the modification in the cfg is persistent, not that it's applied during Ansible execution in Satellite.

Comment 4 Zuzana Lena Ansorgova 2023-03-08 14:45:27 UTC
I'm asking about the broken link because of https://bugzilla.redhat.com/show_bug.cgi?id=2171849

Comment 5 Adam Ruzicka 2023-03-08 15:24:19 UTC
Broken links are ignored, in 2171849 they don't have a broken link.

Comment 6 Brad Buckingham 2024-03-21 21:07:37 UTC
Upon review of our valid but aging backlog the Satellite Team has concluded that this Bugzilla does not meet the criteria for a resolution in the near term, and are planning to close in a month. This message may be a repeat of a previous update and the bug is again being considered to be closed. If you have any concerns about this, please contact your Red Hat Account team.  Thank you.

Comment 7 Brad Buckingham 2024-05-13 10:04:06 UTC
Thank you for your interest in Red Hat Satellite. We have evaluated this request, and while we recognize that it is a valid request, we do not expect this to be implemented in the product in the foreseeable future. This is due to other priorities for the product, and not a reflection on the request itself. We are therefore closing this out as WONTFIX. If you have any concerns about this feel free to contact your Red Hat Account Team. Thank you.