Bug 70 - pasta undesirably propagates address lifetimes from host to container
Summary: pasta undesirably propagates address lifetimes from host to container
Status: RESOLVED FIXED
Alias: None
Product: passt
Classification: Unclassified
Component: pasta (show other bugs)
Version: unspecified
Hardware: All Linux
: Normal quite bad
Assignee: David Gibson
URL:
Depends on:
Blocks:
 
Reported: 2023-08-15 02:56 UTC by David Gibson
Modified: 2023-08-17 00:37 UTC (History)
0 users

See Also:


Attachments

Description David Gibson 2023-08-15 02:56:30 UTC
When we copy host addresses to the container we copy all their attributes.  Mostly, that's what we want, but this includes the IFA_CACHEINFO attribute which governs address expiry.

This means that if the addresses on the host have finite lifetime - which is typical if they're managed by DHCP rather than statically, then the container also gets addresses with finite lifetime.  However the container lacks the DHCP client (or whatever) that's maintaining address on the host, so once the lifetime expires (typically some hours to days later) it will simply lost connectivity.
Comment 1 David Gibson 2023-08-17 00:37:04 UTC
Fix is now merged.

Note You need to log in before you can comment on or make changes to this bug.