-
Notifications
You must be signed in to change notification settings - Fork 657
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
non deterministic NIC order in multihomed instance with both static and dynamic network #2596
Comments
Related slack thread , thanks to @ramonskie https://cloudfoundry.slack.com/archives/C02HPPYQ2/p1736847319592899 Guillaume Berche rmakkelie Guillaume Berche rmakkelie Guillaume Berche rmakkelie schmidtsv |
We don't plan to invest into this but we would love to review a pr which can make this deterministic in a backwards compatible way. |
Describe the bug
we're observing that some bosh deployments with an instance groups having two networks, end up having non determinist NIC order allocation (between eth0 and eth1) at initial deployment, on the index 1. Then, this order remains the same after any
bosh recreate
of the instance group.This impacts the following use-cases which can't rely on a deterministic interface name (e.g. eth0) or a given network
auto
)We have been comparing logs of two bosh deployments with the same manifest network specs such as the following (including cloud-config network ordering):
The difference in logs during a bosh recreate is limited to the
DEBUG -- DirectorJobRunner: Fetching existing instance for: #<Bosh::Director::Models::Instance @values=
which shows that the current instance networks are fetched from the agent settings and returned with a different orderCreating instance network reservations from database for instance
(See sources) which list the ip_addresses in a different ordercreate_vm
which have network in different orderLooking into the bosh database
instances
table, thespec_json
have a diverging order of networks for the two instances.Is there a way to make the network interface assignment (eth0/eth1) deterministic for a new deployment ?
Thanks in advance for your help !
To Reproduce
See above manifest fragment that triggered the problem
Steps to reproduce the behavior (example):
Expected behavior
Systematic determinist ordering of eth0/eth1
Versions (please complete the following information):
/CC @ogrand
The text was updated successfully, but these errors were encountered: