-
Notifications
You must be signed in to change notification settings - Fork 173
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
xdcp EXECUTE of .post script not working as expected #5987
Comments
hi @wrighrc ,
|
I completely disagree with you. I DON'T want to use EXECUTEALWAYS I want to use EXECUTE. My example was a simple one to demonstrate the issue. I'm wanting to reload autofs if and only if its configuration files have changed. I believe this is why there are two options, EXECUTE being one of them. If what I'm trying to do isn't possible with EXECUTE, then please do provide me with some examples of what EXECUTE would be useful for. I'm sure that EXECUTE was developed for some probably forgotten reason. Thanks. |
@immarvin and @wrighrc , I was looking this issue last week and i can recreate in our test system. From the xCAT documentation, I think this is a issue. for EXECUTE clause, from this example (compute.synclist):
|
Please note that the You can see the updated version https://xcat-docs.readthedocs.io/en/latest/guides/admin-guides/manage_clusters/common/deployment/syncfile/syncfile_synclist_file.html |
okay, find the root cause, it is introduced by this commit:
I will create a fix for this issue. |
fix issue xdcp EXECUTE of .post script not working as expected #5987
@immarvin Is the idea here is to be able to execute a script, when a non-script files is updated? For example, if you had I think this is different from putting a script into Currently our docs say: But I do not understand, why we say this |
hi @gurevichmark , great questions! To answer you questions, I looked into the Doc and code, find that there are some errors and conflicts in Doc https://xcat-docs.readthedocs.io/en/latest/guides/admin-guides/manage_clusters/common/deployment/syncfile/syncfile_synclist_file.html?highlight=sync%20file#advanced-synclist-file-features . I list them here to discuss:
The information in Doc https://xcat-docs.readthedocs.io/en/latest/guides/admin-guides/manage_clusters/common/deployment/syncfile/syncfile_synclist_file.html?highlight=sync%20file#advanced-synclist-file-feature is quite obscure, we should make the information more clear in Doc, maybe a example with description will better. We should also correct the errors like:
I agree with the term postsync support you proposed, maybe we can rename the Would you please create a PR to refine the Doc? @gurevichmark thanks |
@immarvin Thank you for the detailed investigation and your explanation.
|
yes, it is a problem expose the underlie tool
|
So why does our documentation says Putting the filename.post in the rsyncfile to rsync to the node is required for hierarchical clusters. ? Is that something that needs to be removed from our doc or am I missing some usecase in which syncing will not work in hierarchical cluster if <filename.post> is not in synclist ?
What will happen if you do have |
Let me answer your question thru an example: In a hierarchy cluster with MN, SN and CN. The sync list is:
during file syncing with
If
|
@immarvin So our statement Putting the filename.post in the rsyncfile to rsync to the node is required for hierarchical clusters. It is optional for non-hierarchical cluster. is there to cover step 3 ? If we have synclist file like this:
It will work on flat cluster but fail in hierarchical cluster ? |
yes
yes, |
@immarvin Are you sure about that ? :-) If I create a script in
|
hi @gurevichmark , yes, This is proved by:
|
hi @wrighrc , the code and doc have been merged, can this be closed? |
Yes please close. Thanks a lot for the fix! |
from reading the man page for xcdp, it seems that whenever /etc/hosts is updated I should be able to run a .post script. I find that doesn't work as expected.
The text was updated successfully, but these errors were encountered: