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

Changing Primary Region when you don't have quota #57

Closed
VladRico opened this issue May 10, 2022 · 1 comment
Closed

Changing Primary Region when you don't have quota #57

VladRico opened this issue May 10, 2022 · 1 comment
Labels
fix pending Issue is resolved in a non-main branch

Comments

@VladRico
Copy link

Hi !

As you asked me, there is an issue when a user try to change the primary region when he doesn't have the right GPU quota :

npm run configure

? Which region do you plan to use most? eu-west-1
? What is the admin user's email address? npk@xxx
? Enter an SMS-enabled phone number for critical events, including country code: xxx
? Max campaign price in USD: 50
? NPK is configured. Deploy now? Yes
[+] Retrieved all active regions
[+] Retrieved quotas.
[+] Retrieved per-region instance support.
[+] Retrieved availability zones.

[*] All prerequisites finished. Generating infrastructure configurations.
[+] Using bootstrap bucket sonnetry-shnprltxj-1651576289
Trace: Error: Error parsing Jsonnet file: JsonnetError: RUNTIME ERROR: field does not exist: eu-west-1
        terraform.jsonnet:410:16-56     thunk <a>
        terraform.jsonnet:(408:33)-(411:6)      function <anonymous>
        terraform.jsonnet:(408:33)-(411:6)      thunk <value>
        std.jsonnet:952:9-14    thunk <v>
        std.jsonnet:919:10      thunk <a>
        std.jsonnet:919:10-19   function <anonymous>
        std.jsonnet:919:10-19   function <aux>
        std.jsonnet:952:5-23    function <anonymous>
        terraform.jsonnet:(408:14)-(411:11)     object <anonymous>
        terraform.jsonnet:(405:15)-(413:5)      object <anonymous>
        terraform.jsonnet:(404:16)-(414:4)      object <config>
        jsonnet/lambda.libsonnet:(6:12)-(13:5)  object <anonymous>
        jsonnet/lambda.libsonnet:(5:24)-(14:4)  object <anonymous>
        jsonnet/lambda.libsonnet:(4:12)-(64:3)  object <anonymous>
        terraform.jsonnet:(399:37)-(462:4)      object <anonymous>
        During manifestation

    at exports.Sonnet.render (/aws/mde/npk/node_modules/@c6fc/sonnetry/src/index.js:346:10)
    at async deploy (/aws/mde/npk/bin/index.js:224:3)
    at async Object.handler (/aws/mde/npk/bin/index.js:487:20)
    at deploy (/aws/mde/npk/bin/index.js:226:11)
    at async Object.handler (/aws/mde/npk/bin/index.js:487:20)

[!] Failed to generate NPK configurations.

As you said : I need to fix the primaryRegion prompt to only show regions where there's sufficient quota.

Have a nice day ;)

@c6fc
Copy link
Owner

c6fc commented Jun 26, 2022

This has been addressed in 'dev'

@c6fc c6fc added the fix pending Issue is resolved in a non-main branch label Jun 26, 2022
@c6fc c6fc closed this as completed in f28ec1e Jul 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix pending Issue is resolved in a non-main branch
Projects
None yet
Development

No branches or pull requests

2 participants