Feature: Add support to file.managed (and others) to preserve the file inode #67242
Replies: 18 comments
-
Hi @tkent-xetus, that feature was merged into the I hadn't looked into how |
Beta Was this translation helpful? Give feedback.
-
Cool, sounds like we're on the same page! The copy vs update thing is exactly what's happening in the --- update - fixed unclear comment --- |
Beta Was this translation helpful? Give feedback.
-
@tkent-xetus, thanks for the report. You are welcome to close this when you think the issue is resolved. |
Beta Was this translation helpful? Give feedback.
-
I think I've caused some confusion - my last comment wasn't well written, I just updated/clarified it. The feature being requested here is not currently in the develop branch. |
Beta Was this translation helpful? Give feedback.
-
@jfindlay, sorry if I added to any confusion, but I don't think this is fixed at all, unfortunately. Some work will need to be done within |
Beta Was this translation helpful? Give feedback.
-
@tkent-xetus, @lorengordon, thanks for the extra information. |
Beta Was this translation helpful? Give feedback.
-
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue. |
Beta Was this translation helpful? Give feedback.
-
I think this should remain open. While it's not a huge issue, it would be a very useful feature. |
Beta Was this translation helpful? Give feedback.
-
Thank you for updating this issue. It is no longer marked as stale. |
Beta Was this translation helpful? Give feedback.
-
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue. |
Beta Was this translation helpful? Give feedback.
-
(Echoing @tkent's comment from a year ago:) I think this should remain open. While it's not a huge issue, it would be a very useful feature. |
Beta Was this translation helpful? Give feedback.
-
Thank you for updating this issue. It is no longer marked as stale. |
Beta Was this translation helpful? Give feedback.
-
Hello! What about this feature? Four years passed. =) |
Beta Was this translation helpful? Give feedback.
-
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue. |
Beta Was this translation helpful? Give feedback.
-
Still a good idea. |
Beta Was this translation helpful? Give feedback.
-
Thank you for updating this issue. It is no longer marked as stale. |
Beta Was this translation helpful? Give feedback.
-
This feature is needed. Without the feature, managing bind-chroot config files does not work correctly. |
Beta Was this translation helpful? Give feedback.
-
This is still a problem when working with docker bind mounts to a single file. Any chance |
Beta Was this translation helpful? Give feedback.
-
When
file.managed
is used, every time the file is updated the inode of the file is changed. This breaks things like hardlinks and file-based docker volume mounts. It's not terribly difficult to work around, but it's awfully hard to figure out what's happening. In our case, files mounted into a docker container, that were managed by salt, were not reflecting changes in the docker container after salt modified them.Once you know the cause, the impact is very small. The work around is very easy, just a two step process like so:
However, it looks like this issue was already broached in #20969, so tools exist in salt to handle this scenario. It would be great if there was a property on
file.managed
, and similar states, likepreserve_inode
that had aTrue
default.Beta Was this translation helpful? Give feedback.
All reactions