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

Cant do anything with latest version of provider #491

Open
paragor opened this issue Dec 4, 2024 · 3 comments
Open

Cant do anything with latest version of provider #491

paragor opened this issue Dec 4, 2024 · 3 comments
Assignees

Comments

@paragor
Copy link

paragor commented Dec 4, 2024

with yandex-cloud/yandex v0.134.0 i have error in all resources. For example in mysql:

Error: error while requesting API to delete user from MySQL Cluster "1234567": error dialing endpoint 'api.cloud.yandex.net:443': context deadline exceeded

that error occur very fast (<200ms).
Looks like something wrong with http-client's context

@aleks-noname
Copy link

Hi!
Faced with similar issue, but I was able to deploy VPC and stopped on Managed PostgreSQL with error:
Error: Error while requesting API to create PostgreSQL Cluster: client-request-id = XXX-XXX client-trace-id = XXX-XXX rpc error: code = DeadlineExceeded desc = stream timeout

But call to API was able to start deployment of PostgreSQL and I got broken state: VPC is present in state file, PostgreSQL is absent in state file.

Revert to version 0.133 resolved this trouble.
I use Terrafrom v 1.9.8

@opportunity356 opportunity356 self-assigned this Dec 24, 2024
@ArtemDyakov
Copy link

После общения с поддержкой навели на причину ошибки, в коде провайдера выставлен таймаут в 1 секунду.

В файле yandex/config.go поправил:

 34 const (
 35         defaultExponentialBackoffBase = 50 * time.Millisecond
 36         defaultExponentialBackoffCap  = 1 * time.Minute
 37         sdkDialContextTimeout         = 1 * time.Second
 38 )

на

 34 const (
 35         defaultExponentialBackoffBase = 50 * time.Millisecond
 36         defaultExponentialBackoffCap  = 1 * time.Minute
 37         sdkDialContextTimeout         = 15 * time.Second
 38 )

Пересобрал провайдер. Все заработало.

@opportunity356
Copy link
Contributor

@Denchick

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

4 participants