-
Notifications
You must be signed in to change notification settings - Fork 63
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
Fixing the loss of the hostname that is specified in a federated lf f… #1484
Conversation
…ile. Priority os given to what was given in cmd line though.
Yes, I think it's a good idea to update the validator and not have it throw errors if we're in a Docker-based setup. I think we can go ahead and merge this and the validator patch can come through a separate PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks for the fix!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like an improvement. One downside of this approach is that it makes it impossible to override a host specified in the .lf file with "localhost" on the command line. Perhaps it would be better if federationRTIProperties.get("host") defaulted to null? This would have to be checked when it is used to replace null with "localhost".
Do you mean that if a host is given in the command line, it will have higher priority, even if it is a |
I'm not sure I understand, but I think the command line should always override whatever is in the .lf file. |
A federated containerized program cannot execute if the hostname of the federate (which will be assigned to the RTI) is Considering a
If we say: Should we still have the command line always overriding whatever is in the |
I'm not sure, but we have to also consider uncontainerized applications. The logic I have in mind is simple: The .lf file gives default values. The command line overrides these. It is useful to detect and report errors, but probably we should not just ignore user directives. |
This PR #1493 makes the command line arguments override those in the .lf file, without defaulting the value of |
This workaround, based on
fed-gen
branch, fixes the loss of the RTI hostname in a containerized federated execution.lfc
validator generates a warning though when the domain name is an invalid fully qualified one.This should not be the case for containerized federated execution, because Docker embeds a DNS server.
Should the validator be fixed accordingly?