Enhance Selectel balance handling and error messaging in GPU rental system
- Updated Selectel documentation to clarify error responses related to balance issues. - Introduced `peek_balance_rub` function for best-effort balance checks, handling API failures gracefully. - Improved error messages for insufficient funds and quota issues, specifying Selectel's 403 policy response. - Added balance checks in the doctor command to ensure users are informed about their balance status before attempting GPU creation. - Refactored exception handling in cloud operations to provide clearer feedback on balance-related errors. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+1
-1
@@ -142,7 +142,7 @@ Ingress SG: TCP/22 с адреса оператора. 7801 снаружи не
|
||||
|
||||
- квота compute/GPU;
|
||||
- наличие flavor в сегменте (`OS-FLV-DISABLED:disabled`, extra specs);
|
||||
- баланс / возможность создать ресурс (ошибка 402/403 — понятное сообщение, не traceback).
|
||||
- баланс / возможность создать ресурс: Selectel при нулевом балансе часто отвечает **403 policy** (`os_compute_api:servers:create`), не 402. CLI пишет «нет средств», не «квота GPU=0».
|
||||
|
||||
Письмо в поддержку — ручной шаг один раз, не часть CLI.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user