-
Notifications
You must be signed in to change notification settings - Fork 558
Custom VNET support for Windows #1767
Comments
Hi @IvanCaro, could you provide the api model that you used as input for template generation? |
I have the same problem. My deployment file is this:
Remark: When I remove all custom VNET entries, the deplyoment works well. |
Nothing jumps out to me as being obviously wrong, there, but it's possible the vnet references don't match up with the I tested that the current code at HEAD works using the provided example vnet workflow. That consists of doing something like what this script suggests: https://github.com/Azure/acs-engine/blob/master/examples/vnet/k8s-vnet-predeploy.sh and then deploying with this api model: https://github.com/Azure/acs-engine/blob/master/examples/vnet/kubernetesvnet.json and finally, after cluster deployment, updating the vnet's route table like this script suggests: https://github.com/Azure/acs-engine/blob/master/examples/vnet/k8s-vnet-postdeploy.sh (Those links above are the source of our E2E tests, btw.) I performed a manual E2E run using the above, with the only modification being Hopefully this information is helpful! If we're confident there's actually a bug in the code, it would be valuable to prove that your api model and workflow are successful with a prior release of acs-engine. After that point we could triage and try to investigate the source of regression. |
It looks like this is a problem for Windows agents only. Linux agents are deployed as expected. When I look at the generated azuredeploy.json file, then for Windows agents, then I find a customData property, which has the following content:
There is an access to a variable subnet ( After I patched the generated azuredeploy.json file, so that it contains a variable
then the Windows agents are deployed as expected. |
This is a known limitation of the current custom VNET implementation. Our published example api models for this feature are Linux-only. See: https://github.com/Azure/acs-engine/blob/master/examples/vnet/kubernetesvnet.json @JiangtianLi has agreed to work on filling this gap. We'll submit a distinct PR that delivers custom VNET support for Windows agents. Thanks for your patience! |
@JiangtianLi A basic acceptance criteria for this implementation is a new |
@jackfrancis Thanks for investigating this. I will fix for windows. |
Just another remark: My deployment example above worked well acs-engine 0.8.x. I successfully deployed a cluster with Windows agents into an existing VNET. It looks like the feature is broken now. |
I am working on the fix here: #1810 cc @madhanrm @dineshgovindasamy FYI |
@JiangtianLi do you have an estimate to when this will be resolved / released? This really is causing us some issues in pushing acs into production |
It would be really nice if this limitation was specified in the documentation for custom vnets. Would have saved me a lot of time. |
@patrick-motard Sorry about that. I will add to documentation. |
I've encountered a similar issue. It would be helpful if acs-engine would fail prior to the template generation since Custom Vnet + Windows agent nodes is not an accepted configuration at this time. |
@lastcoolnameleft I agree that's a gap, I've filed this to fix: FYI @JiangtianLi |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contribution. Note that acs-engine is deprecated--see https://github.com/Azure/aks-engine instead. |
Is this a request for help?:
---NO
Is this an ISSUE or FEATURE REQUEST? (choose one):
---ISSUE
What version of acs-engine?:
---Version: canary
GitCommit: 8db990b
GitTreeState: clean
Orchestrator and version (e.g. Kubernetes, DC/OS, Swarm)
Kubernetes
What happened:
{
"error": {
"code": "InvalidTemplate",
"message": "Unable to process template language expressions for resource '/subscriptions/b21c32c2-4e59-433a-8c53-ebd4729d33ab/resourceGroups/Kubernetes-Prod-9997/providers/Microsoft.Compute/virtualMachines/11742k8s9000' at line '1' and column '46171'. 'The template variable 'subnet' is not found. Please see https://aka.ms/arm-template/#variables for usage details.'"
}
}
What you expected to happen:
{
"error": {
"code": "InvalidTemplate",
"message": "Unable to process template language expressions for resource '/subscriptions/b21c32c2-4e59-433a-8c53-ebd4729d33ab/resourceGroups/Kubernetes-Prod-9997/providers/Microsoft.Compute/virtualMachines/11742k8s9000' at line '1' and column '46171'. 'The template variable 'subnet' is not found. Please see https://aka.ms/arm-template/#variables for usage details.'"
}
}
How to reproduce it (as minimally and precisely as possible):
{
"error": {
"code": "InvalidTemplate",
"message": "Unable to process template language expressions for resource '/subscriptions/b21c32c2-4e59-433a-8c53-ebd4729d33ab/resourceGroups/Kubernetes-Prod-9997/providers/Microsoft.Compute/virtualMachines/11742k8s9000' at line '1' and column '46171'. 'The template variable 'subnet' is not found. Please see https://aka.ms/arm-template/#variables for usage details.'"
}
}
Anything else we need to know:
{
"error": {
"code": "InvalidTemplate",
"message": "Unable to process template language expressions for resource '/subscriptions/b21c32c2-4e59-433a-8c53-ebd4729d33ab/resourceGroups/Kubernetes-Prod-9997/providers/Microsoft.Compute/virtualMachines/11742k8s9000' at line '1' and column '46171'. 'The template variable 'subnet' is not found. Please see https://aka.ms/arm-template/#variables for usage details.'"
}
}
The text was updated successfully, but these errors were encountered: