awx icon indicating copy to clipboard operation
awx copied to clipboard

Bugfix: avoid receptor.conf.lock file conflicts in non-K8S deployments

Open Sasa993 opened this issue 3 months ago • 2 comments

SUMMARY

This PR fixes an error that occurs when AWX attempts to acquire a receptor.conf lock in non-K8S environments.

Since receptor.conf is not written to outside of Kubernetes, attempting to grab the lock is unnecessary and causes the error: OSError: [Errno 30] Read-only file system: '/etc/receptor/receptor.conf.lock'

ISSUE TYPE
  • Bug, Docs Fix or other nominal change
COMPONENT NAME
  • API
ADDITIONAL INFORMATION

To reproduce this error , run fresh migrations or create/update ReceptorAddress instance to trigger the post_save signal handler:

awx-manage shell
from awx.main.models.ha import ReceptorAddress
addr = ReceptorAddress.objects.first()
addr.save()

Sasa993 avatar Sep 22 '25 07:09 Sasa993

Since receptor.conf is not written to outside of Kubernetes

Is that true @fosterseth @TheRealHaoLiu ? I thought this mechanism also had to be used in k8s? There was something special going on with hop/ingress nodes but I can not explain this the best.

AlanCoding avatar Sep 23 '25 12:09 AlanCoding