-
Notifications
You must be signed in to change notification settings - Fork 558
Conversation
@itowlson Is this ready for merge? It seems the change make sense |
@feiskyer I'd value a review before merge. I think it's a safe change, and that it's the desired behaviour for all scenarios that I know of -- but others on the acs-engine team will have a better sense of possible customer networking scenarios and whether the current behaviour is intentional. Would you or @jackfrancis be a suitable reviewer perhaps? |
@itowlson Thanks. LGTM in my review. |
869db8c
to
119320c
Compare
LGTM. Could you test upgrade scenario for 3 masters with and without VNET? |
Upgrade seems to work, but destroys subnets (recreates vnet), so I guess we should fix it to preserve the vnet in that scenario as well. Thanks for catching that - I'd only considered the scale scenario, not upgrade. returns to the code mines |
Looking forward to this one as we use custom VNETs in our acs-engine cluster... |
@itowlson and @JunSun17, could you work together on reconciling the changes in this PR and in this PR that merged recently: 93c99d1#diff-d11913d43be1f6b820fa831e9216a6cc It looks like @JunSun17 explicitly removed the master NIC dependency stuff, while @itowlson's change in this PR refined it. |
a90e822
to
fef39ec
Compare
fef39ec
to
7c1d169
Compare
Version: canary I still am seeing this issue when testing with this branch. I utilize a RedisCache in the resource group and create a redis-subnet for it (required). "Subnet redis-subnet is in use by /subscriptions/SUBID/resourceGroups/RGNAME/providers/Microsoft.Cache/Redis/MyRedisCache and cannot be deleted" |
I think we can close this PR since #2994 was merged? @jackfrancis |
I'd defer to @itowlson, who would probably be happy to discover that (if?) we've fixed this 5 months later ;) |
@CecileRobertMichon @jackfrancis Yep, #2994 looks pretty similar to this, except that I don't think it addresses the upgrade scenario (unless that code path has changed) which was requested on this PR. I agree we should close this but perhaps we should keep upgrade on the radar, as again we don't want e.g. Redis or App Gateway subnets to block an upgrade. Other than that, YAY! |
Thanks for checking in @itowlson, I agree of course that upgrade/scale should share the same underlying functional assumptions |
What this PR does / why we need it: When you scale up an acs-engine cluster (using
az acs scale
oracs-engine scale
), any subnets of the cluster vnet other than the automatick8s-master
subnet are deleted. This is unexpected, and if the subnet is in use (for example because it contains a gateway or IP address) then the subnet cannot be deleted and this blocks the scaling operation.The underlying problem is that scale up recreates the ARM template for the resource group and re-applies it. Because the ARM template includes only the original automatic subnet, ARM assumes that the desired state of the vnet is to contain only the automatic subnet, and therefore attempts to delete any other subnets.
This PR excludes the vnet from the ARM template generated for scaling, using the same techniques already used to exclude the route table and NSG.
Which issue this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close that issue when PR gets merged): fixes #2063Special notes for your reviewer:
Release note: