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
libnetwork: fix sandbox restore #45654
libnetwork: fix sandbox restore #45654
Conversation
Signed-off-by: Cory Snider <csnider@mirantis.com>
The method to restore a network namespace takes a collection of interfaces to restore with the options to apply. The interface names are structured data, tuples of (SrcName, DstPrefix) but for whatever reason are being passed into Restore() serialized to strings. A refactor, f0be4d1, accidentally broke the serialization by dropping the delimiter. Rather than fix the serialization and leave the time-bomb for someone else to trip over, pass the interface names as structured data. Signed-off-by: Cory Snider <csnider@mirantis.com>
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
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 this regressed in f0be4d1 🙈
@neersighted indeed. I already referenced the offending commit in my commit message. |
Yup, just extremely late to the party -- I was looking at the diff locally trying to figure out how this even happened. Of course, after tracking it down in the blame, I noticed your comment 😆 I guess forgetting to check the commit message is even sillier 😅 |
Yes. Took me a minute to spot my mistake even after Cory posted the line where my mistake was 🥹. |
- What I did
Fixed passing the list of interfaces to restore.
- How I did it
By passing it as structured data.
- How to verify it
Live-restored containers can resolve other restored containers attached to the same networks over DNS.
docker stats
shows nonzero NET I/O stats for restored containers.- Description for the changelog
- A picture of a cute animal (not mandatory but encouraged)