Skip to content

fix: chown server-info file by client user in compose mode - #4483

Closed
mkundu1 wants to merge 4 commits into
mainfrom
fix/compose-file-permission
Closed

mkundu1 wants to merge 4 commits into
mainfrom
fix/compose-file-permission

Conversation

@mkundu1

@mkundu1 mkundu1 commented Sep 19, 2025 •

Copy link
Copy Markdown
Collaborator

This PR removes the FLUENT_SERVER_INFO_PERMISSION_SYSTEM env var for compose launch. The server writes the server-info file with the default 600 permission. The file is then owned by client-user via a subsequent scheme command, so it can be read in the client side.

@github-actions github-actions Bot added the bug Issue, problem or error in PyFluent label Sep 19, 2025
@mkundu1

mkundu1 commented Sep 19, 2025 •

Copy link
Copy Markdown
Collaborator Author

@hpohekar Please verify these changes from your side. I got the test test_docker_compose passing locally with docker compose. I haven't tested podman compose.

I was trying to execute the chown as a separate docker exec call, but could not get it working. Feel free to give it a try.


container_dict["command"].append(
f"""-command="(system \\\"chown {os.getuid()}:{os.getgid()} {container_dict["container_server_info_file"]}\\\")" """
)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will send the scheme command (system "chown <uid>:<gid> <server-info-file>") to Fluent.

@mkundu1

mkundu1 commented Sep 21, 2025

Copy link
Copy Markdown
Collaborator Author

Superseded by #4484

@mkundu1 mkundu1 closed this Sep 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Issue, problem or error in PyFluent

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants