-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Regression on "file.recurse" state after Salt 3006.0 when dealing with symlinks: Unable to manage file: [Errno 2] No such file or directory #64630
Comments
Hi there! Welcome to the Salt Community! Thank you for making your first contribution. We have a lengthy process for issues and PRs. Someone from the Core Team will follow up as soon as possible. In the meantime, here’s some information that may help as you continue your Salt journey.
There are lots of ways to get involved in our community. Every month, there are around a dozen opportunities to meet with other contributors and the Salt Core team and collaborate in real time. The best way to keep track is by subscribing to the Salt Community Events Calendar. |
Have you checked 3006.1? |
Yes, I've reproduced this with 3006.1. |
I have confirmed this bug. The file and symlink are actually created, but the state returns an error. I tested on CentOS 8 Stream with Salt 3006.1 |
I just found that this commit is causing this issue fd7e82f @garethgreenaway could you please take a look to this part, not sure if I understand why it's required: https://github.com/saltstack/salt/pull/61279/files#diff-9440ccbdf1120d483596ef8c352b22f5805522bcd1dee629b5b33fd6ac19e2ea The way to reproduce the issue suggested bu @meaksh is a bit flacky in sometimes it's not causing any issue, but fails in other cases, probably depending on which file is processed first. |
This issue seems to have been fixed in 3006.6 |
This seems to still be an issue for me on 3006.7 (Fedora 39 / Python 3.12). |
@mariushoch Could you provide details on how you were able to reproduce this? |
Sure! This can be reproduced in a fresh Fedora 38 container with salt 3007.0: Containerized set up (all in the same folder)
With
The file and the symlink are correctly created even if the state fails, it seems. Versions Report salt --versions-report
|
Thank you. I'll try to reproduce again. |
Description
We have identified a regression between Salt 3005.1 and Salt 3006.0 version for
file.recurse
state function when dealing with symlinks, leading to a failing state execution with the following error:Steps to Reproduce the behavior
Given an SLS file like at
/srv/salt/test_symlink.sls
:And the following structure as part of Salt "file roots":
Now, when we apply our SLS file, the state will fail:
Expected behavior
The state should run fine as it was in Salt versions < 3006.0
Versions Report
salt --versions-report
The text was updated successfully, but these errors were encountered: