Details
Description
If mesos uses isolation="network/port_mapping" it calls link::lo() during PortMappingIsolatorProcess::create procedure:
Try<set<string>> links = net::links(); if (links.isError()) { return Error("Failed to get all the links: " + links.error()); } foreach (const string& link, links.get()) { Result<bool> test = link::internal::test(link, IFF_LOOPBACK); if (test.isError()) { return Error("Failed to check the flag on link: " + link); } else if (test.get()) { return link; } }
it iterates through net::links() and return first one with IFF_LOOPBACK flag.
For some network configurations test var cound be None and test.get() throws runtime error.
In my case bridged interface caused link::internal::test(link, IFF_LOOPBACK) to be None.
Changing code to
else if (test.isSome()) { if (test.get()) { return link; } }
solves an issue.
Attachments
Attachments
Issue Links
- links to