Comments (15)
@pradipd PTAL.
from hcsshim.
Investigating.
from hcsshim.
I just ran into this too, GCE uses a link-local address for their metadata server.
from hcsshim.
@jhowardmsft @pradipd any word on this? We have a slightly different set of steps to reproduce the issue:
- Create an 1803 machine on GCP
- You should be able to reach http://metadata.google.internal
- Create an HNS Network (https://github.com/Microsoft/SDN/blob/af7847857a4223f176b3fb69e288799af9fd8e34/Kubernetes/flannel/overlay/start.ps1#L75)
- See that you can no longer reach the metadata server
The metadata server resolves to a link-local IP, which is what makes us think it's the same underlying issue.
from hcsshim.
We discovered a workaround for this. If we recreate the route that GCP adds to the original network interface to the new interface that the HNS network creates, the metadata server is reachable again.
route /p add 169.254.169.254 mask 255.255.255.255 0.0.0.0
This still seems like a bug though: the new interface shouldn't be losing these routes.
from hcsshim.
This problem is also affecting me and I agree with everything @benmoss has said. I'm using the suggested workaround of adding the route back after configuring HNS, the annoying part is that the removal of the route doesn't seem to happen immediately after configuring HNS, there's some delay. The dance that I'm doing can be seen at https://github.com/pjh/kubernetes/blob/c6b518afa564ef167b2490de271d1f7a4b801edb/cluster/gce/win1803/k8s-node-setup.psm1#L708.
from hcsshim.
Adding @daschott as an FYI.
from hcsshim.
Ack, this issue of routes not being migrated after HNS network creation is on our consolidated bug list for root-causing.
from hcsshim.
Hi @daschott, is this going to be looked at any time soon? This is still pretty painful for us and waiting for the route to be removed so that we can re-add it (see my comment above) is a significant source of delay when we're joining Windows nodes to Kubernetes clusters.
cc @PatrickLang @yujuhong @dineshgovindasamy
from hcsshim.
Adding @mkostersitz as an FYI
from hcsshim.
thanks for the add @pradipd @pjh let me catch up on this and get back to you while @daschott is out of the office for a while.
from hcsshim.
In AWS and GCE, is there a route added to reach 169.254.169.253? If so, is the route added manually or through DHCP.
from hcsshim.
@ankeesler: Where is this configuration?
"In AWS there is a configuration option to add this address to the list of DNS resolvers for the public ethernet interface."
from hcsshim.
At least on GCE this is the script that adds the route: https://github.com/GoogleCloudPlatform/compute-image-windows/blob/22bd7e2701da9dc6bd931711cbb39c36a1d81df1/sysprep/instance_setup.ps1#L126
from hcsshim.
Is there a better workaround than simply waiting for 45 seconds? Is there a way to deterministically check if the data transfer has completed?
from hcsshim.
Related Issues (20)
- github.com/golang/mock/mockgen now included into callers HOT 2
- Windows Containers for GUI application
- Dynamic add MappedPipe to Silo unable to read HOT 6
- v0.11: dependency on `containerd/cgroups` was accidentally rolled back from v3 to v1? HOT 2
- Error in launching Windows container with GPU device in Hyper-v isolation HOT 1
- Feature request: ConPTY subpackage
- GitHub is showing deprecated v0.10.0 as "Latest release" HOT 1
- Where is the HNS/HCS Endpoint default DNS config? HOT 5
- containerd-shim-runhcs-v1 can't parse runtimeoptions.v1.Options
- windows server 2022: create HNSEndpoint error:The provided policy configuration is invalid or missing parameters.
- Update open-policy-agent dependency HOT 1
- "failed to create containerd task: failed to create shim task: hcs::CreateComputeSystem xxxxxxx--cid--xxxxxxxx : Access is denied.: unknown"
- questions w.r.t. "osversion" package HOT 2
- choco install magicsplat-tcl-tk fails with hcsshim::ImportLayer failed in Win32 HOT 1
- hcsshim::PrepareLayer failed in Win32: The system cannot find the path specified. (0x3) on Docker Desktop 4.28.0 (139021) HOT 1
- ORMergeHives - public documentation?
- Cannot create New-BCContainer: hcsshim::ExpandScratchSize failed in Win32: The system cannot find the file specified. "c:\bcartifacts.cache:c:\dl"
- Process running within Docker Container throws OOM error but container doesn't report the error when exited HOT 1
- v0.12.1 hash was changed? HOT 6
- [Feature Request] Provide details when throwing errors
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hcsshim.