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

Cannot create a VM with two flexible GPUs #220

Closed
apotier opened this issue Nov 2, 2022 · 3 comments
Closed

Cannot create a VM with two flexible GPUs #220

apotier opened this issue Nov 2, 2022 · 3 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@apotier
Copy link

apotier commented Nov 2, 2022

Terraform Version

Terraform v1.2.4
on darwin_arm64
+ provider registry.terraform.io/hashicorp/aws v3.66.0
+ provider registry.terraform.io/hashicorp/cloudinit v2.2.0
+ provider registry.terraform.io/hashicorp/null v3.1.0
+ provider registry.terraform.io/outscale-dev/outscale v0.5.0

Terraform Configuration Files

...

Debug Output

attached:terraform_bug_oustcale.log

Crash Output

N/A

Expected Behavior

two GPU links should have been created and pushed to the state.

Actual Behavior

Both links were created but only one was push

ed to the state. I also got a 409 error. It looks like the links VM<>GPU are created twice.

Steps to Reproduce

Create any machine with two fgpus attached.

Additional Context

N/A

References

N/A

@apotier apotier added the bug Something isn't working label Nov 2, 2022
@outscale-toa
Copy link
Member

Hi @apotier ,
Thanks for reaching us, we are looking at your issue.

Best regards,

@outscale-toa
Copy link
Member

Hi @apotier

We are working to find a workaround for terraform plugin.
For the moment, you can use depends_on in second gpu_link like:

...

resource "outscale_flexible_gpu_link" "link_fGPU-1" {
    flexible_gpu_id              =  outscale_flexible_gpu.fGPU-1.flexible_gpu_id
    vm_id                        = outscale_vm.MaVM.vm_id
}

resource "outscale_flexible_gpu_link" "link_fGPU-2" {
    flexible_gpu_id              =  outscale_flexible_gpu.fGPU-2.flexible_gpu_id
    vm_id                        = outscale_vm.MaVM.vm_id
    depends_on= [outscale_flexible_gpu_link.link_fGPU-1]
} 

Best regards,

@outscale-toa outscale-toa added this to the v0.8.0 milestone Dec 6, 2022
outscale-toa added a commit to outscale-toa/terraform-provider-outscale that referenced this issue Jan 13, 2023
outscale-toa added a commit to outscale-toa/terraform-provider-outscale that referenced this issue Jan 23, 2023
@outscale-toa outscale-toa modified the milestones: v0.8.0, v1.0.0 Jan 24, 2023
outscale-toa added a commit that referenced this issue Feb 17, 2023
outscale-toa added a commit that referenced this issue Oct 27, 2023
@outscale-toa
Copy link
Member

Merge in #409

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment