-
Notifications
You must be signed in to change notification settings - Fork 14
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
Issue: Hosts with the same name under different domains are handled incorrectly #235
Comments
Could you highlight the mixing together? I don't see any unexpected behavior in the logs. Logging is using the provided hostname. For cases where shortnames are the same it is better to use full domain names in domain and FQDN in host's name. |
Ah, I see. By mixing together you mean that it probably tries the Fedora login credentials for the windows hosts and that it might be caused by the same ID. |
I almost think that the fix for mrack would be to fail if name for 2 hosts is the same and usage of FQDNs for such situation would be recommended. Originally it was all designed for FQDNs and full domain names. Thus these cases are not well tested. |
@Tiboris WDYT? Should mrack allow non-unique hostnames, normalized it into FQDNs for further handling or should it rather fail if hostnames are not unique? I see some pros and cons with both behaviors. From user perspective, the normalization makes sense, but I'm not sure how dangerous the change is from size of change/potential of introducing new bugs. |
I think there was something about FQDNs being dropped/not recommended due to some openstack/windows issue. Having two hosts with the same shortname within two domains is a valid use-case. The wider issue is inconsistency created between metadata, inventory and multihost config. Metadata : Inventory: MHC: When I do not put hostname in the metadata it is missing from the pytest multihost configuration same applies for shortname. |
I agree that having two host from different domain with the same short name is a valid use case. The question here is whether to implement it now or postpone - as it is not a cheap change and there is a workaround - defining FQDNs. Wrt inconsistencies: that's a different issue than this ticket, so I don't want to dive deep there. But to answer the part is that in general it is recommended to use only Inventory:
pytest-multihost:
|
@jakub-vavra-cz Refining issues and priority. Is this still inconvinient for you? |
When using shortname in the name and two machines under different domains have the same one,
mrack mixes information together.
Reproducer:
Log where both hots are accessed with user fedora despite one of them is a windows machine:
The text was updated successfully, but these errors were encountered: