Closed eduFlowers closed 11 months ago
what is the value of the configured AKS "region"?
you can see this with nuv -config AKS_REGION
did you configure with nuv config aks
?
Yes. I used
nuv config aks
here the full log of it
The last location I've tried was AKS_REGION=westeurope but also tried the default one suggested in the doc eastus but got same error.
please edit line 63 of ~/.nuv/3.0.0/olaris/cloud/aks/nuvfile.yml and put "silent: false"
then report the output.
this is the relevant code
https://github.com/nuvolaris/olaris/blob/b3d4aa04c12d8c81ed301c5a390896f327a4f9f8/cloud/aks/nuvfile.yml#L63
It should create the resource group in the $AKS_REGION, this will show the actual command executed.
Also, try remove the resource group left over with nuv cloud aks delete
This is the output of nuv cloud aks create
after updating silent: false of nuvfile.yml
This instead the output of nuv cloud aks delete
Seems that each value was saved twice when executing nuv config aks
for example when asked for AKS Name for Cluster I've specified nuvolaris but them seems that it was saved as nuvolaris nuvolaris (see error on delete command) and same for others.
The strange thing is that the final output seems to be ok instead (see image below)
I confirm that values are saved twice. I've added an echo to see values for name & region and this is the result:
Oh well... looks a problem in the input then!
nuv config reset
and start again with the configuration.
Check the actual value with nuv -config -d | grep AKS
Yes. It's a input problem. Just tried again after reset.
First run with defaults (except for AKS_REGION that is custom)
Values are empty (except for the custom value) Executing then create command, now it fails on name
Second run with all custom values
Values seems correct but when executing the create command they have input value concatenated (nuvolaris nuvolaris, westeurope westeurope, etc).
I guess you are using windows... that is the platform on one of us actually uses... There is a workaround to actually read the input. Is it possible you used something different from powershell to provide input? We will investigate on this, however as a workaround I suggest you set the values with nuv -config KEY=VALUE: nuv -config AKS_REGION=westeurope ando so on...
Yes, I'm using windows 11 with Git Bash (that I use during development 😄)
With the suggestion you provided (set values directly using nuv -config KEY=VALUE
) I was able to go ahead with the process but now it gives me an error related to the ssh key (generated using ssh-keygen)
Hi @eduFlowers , I created and destroyed an aks in my tenant 2 or 3 times in last month, whitout any problem. I can try to check with you and support trying redo your steps in my MS tenant. So, first question: az tool is the last update?
I see that you use git bash, in my installation I used only powershell. Can you try whitout git bash?
the error about invalid ssh-keygen is unrelated to nuv and there is a suggestion how to fix it. Closing as supporting non standard shells and misconfigurations in windows is not in scope.
@msciabarra, @cor277 all issues above were related to the use of Git Bash. Now I used PowerShell and I was able to create the aks cluster in azure!
Anyways the use of a particular shell is not indicated in the documentation (at least I didn't see it).
nuv version:
3.0.1-beta.2310201736
Following instructions to install nuvolaris, in particular the prerequisites section to configure and provision an azure AKS cluster, after executing the command:
nuv cloud aks create
I get the following error: ERROR: the following arguments are required: --location/-l
Hereafter a screenshot of the result of the command
nuv config aks
This instead the one for the command
nuv cloud aks create
I've tried both leaving defaults (as suggested in the documentation) and setting different values but got same error.