Open aviweit opened 5 days ago
I encountered the same bug after pulling the latest commit and building from source. Applying the change @aviweit suggested solved the bug.
Output of glide version
:
Release: latest
Version: a05976c-dirty
Commit: a05976c146d49a984c6b06f673efdd0a28ed4159
Hi Avi, I pulled the latest commit on main and I tried replicating the error with the vm json you attached, and it works fine on my end (probably because the only vnet in my rg is the paraglider created vnet). It seems there's a vnet within your resource group doesn't have a paraglider tag attached to it. The fix you provided should solve the problem as they may be non-Paraglider vnets in the resource groups. I can push a fix for this. (Unless you'd prefer to do that). Thanks for pointing this out!
Also, if I may ask, is there an external vnet within your resource group (one that wasn't created by Paraglider - which would make sense if there's no tag)? If there isn't, that may be something to worry about. (Why a Paraglider created vnet would not have the paraglider tag)
Hi @J-467 , please feel free to push the fix.
Yes, we have a few vnets not related to Paraglider with no tags. I think that may explain.
Thanks a lot.
Creating the file
azure_vm.json
with the below contents:and invoking:
produced the below error message:
which seems to cause the orchestrator to crash:
It seems to me that the SIGSEGV is related to azure/sdk_handler.go (where v.Tags exists but set with an empty map) at:
if v.Tags != nil && *v.Tags[namespaceTagKey] == namespace {
After updating the code with key existence check:
I was able to create an azure vm with
glide resource create
CLI:I would like to ask whether I am missing something or perhaps a fix should be applied.
Thanks.