Skip to content
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

Getting error 500 for very few vnets #8

Open
rasselmaliyekkal opened this issue Jun 26, 2024 · 15 comments
Open

Getting error 500 for very few vnets #8

rasselmaliyekkal opened this issue Jun 26, 2024 · 15 comments

Comments

@rasselmaliyekkal
Copy link

rasselmaliyekkal commented Jun 26, 2024

First of all thank you so much for this solution, we were using this solution from last few months, recently I observed, this solution is not working in rare cases, im not able to figure out whats difference between working vnets and non working.

There are no access related issues, I tried created new subnet in new RG and tested, still I get this error.

image

image

image

@rasselmaliyekkal
Copy link
Author

rasselmaliyekkal commented Jun 26, 2024

When I deleted the subnet, it's working. Strange!!! In order not to miss any updates to the code, i pushed recent changes to functionapp. When i again created same subnet, its not working.. Kindly help.

image

@rasselmaliyekkal
Copy link
Author

@gamullen - What I observed, this solution is working for all existing created vnets, issue is only with newly created vnets even if it having exact same configuration with working vents. can you please test and confirm.

@rasselmaliyekkal
Copy link
Author

@craigthackerx @AUsfy @gamullen - Kindly help to validate this is not a error that im alone facing, to rule out mistakes in the way i deployed the solution.

All new azure Vnets im facing the issue but not with old one

@AUsfy
Copy link
Contributor

AUsfy commented Jul 6, 2024

I'll check and let you know

@AUsfy
Copy link
Contributor

AUsfy commented Jul 7, 2024

After investigation I discovered that a field in subnets data retrieved from Azure is unexpectedly null. I think it may be related to a recent change of behavior in Azure api side which could explain why the solution is working for old vnets but not for new ones.
I made a fix that uses the right field. @rasselmaliyekkal could you test if it's working for you ?

@rasselmaliyekkal
Copy link
Author

rasselmaliyekkal commented Jul 8, 2024

@AUsfy Thank you so much, issue is fixed. I think you can proceed with merging this change to main. [ found another issue ]

@rasselmaliyekkal
Copy link
Author

rasselmaliyekkal commented Jul 8, 2024

@AUsfy - Sorry, another issue occurred with this change, now it's not able to identify the existing subnet ranges. Getting an overlapping proposed CIDR as result.

@AUsfy
Copy link
Contributor

AUsfy commented Jul 8, 2024

@rasselmaliyekkal To understand well the new problem, is it only for old existing vnets ?

@rasselmaliyekkal
Copy link
Author

@AUsfy well i haven't verified proposed cidr for new Vnets are overlapping or not.

@AUsfy
Copy link
Contributor

AUsfy commented Jul 8, 2024

I've tested in my side and it's working for new vnets, unfortunately I don't have old existing vnets in my environment to check.
I've made another change to the fix to support all cases. Could you check it please ?

@rasselmaliyekkal
Copy link
Author

rasselmaliyekkal commented Jul 10, 2024

image
image

@AUsfy - Still it is providing subnet range which is overlapping with existing subnet. And no issues with new Vnet.

@AUsfy
Copy link
Contributor

AUsfy commented Jul 10, 2024

Thanks for the tests @rasselmaliyekkal, I just realized I missed a line in the fix in which I didn't use the correct variable.
I just made another PR to fix it #10 . Could you please test it ?

@rasselmaliyekkal
Copy link
Author

@AUsfy this time it worked!!!, Thank you so much, appreciate your quick response and resolution.

@AUsfy
Copy link
Contributor

AUsfy commented Jul 10, 2024

Great news ! wlcm ^^

@gamullen
Copy link
Owner

Merged. Thanks for the help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants