Skip to content

Bugfix/25354 /etc/hosts gone after reboot#29

Open
rb-aguzman wants to merge 4 commits into
developmentfrom
bugfix/25354_etc_hosts_gone_after_reboot
Open

Bugfix/25354 /etc/hosts gone after reboot#29
rb-aguzman wants to merge 4 commits into
developmentfrom
bugfix/25354_etc_hosts_gone_after_reboot

Conversation

@rb-aguzman
Copy link
Copy Markdown

@rb-aguzman rb-aguzman commented Jun 3, 2026

What does this fix do?

Fixes /etc/hosts file corruption during concurrent chef-client runs.

Changes:

  • Replace sed -i with atomic write using grep -v + mv to prevent race condition

Files changed

  • resources/providers/config.rb — use atomic write for /etc/hosts modification

Redmine Ticket

https://redmine.redborder.lan/issues/25392

How to test

  1. Follow steps from Bug #25354 investigation (Task #25377)
  2. Run chef-client multiple times concurrently
  3. Verify /etc/hosts content is preserved after reboot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants