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

Add block for primary nic in VM #379

Merged
merged 2 commits into from
Oct 16, 2023
Merged

Conversation

outscale-toa
Copy link
Member

@outscale-toa outscale-toa commented Sep 21, 2023

To avoid conflict nic inside VM with link_nic resouces we add a new block 'primary_nic' in VM for only nic with device number 0

Fixed #376

@outscale-toa outscale-toa temporarily deployed to test-eu-west-2 September 21, 2023 08:42 — with GitHub Actions Inactive
@outscale-toa outscale-toa temporarily deployed to test-us-east-2 September 21, 2023 08:42 — with GitHub Actions Inactive
@outscale-toa outscale-toa temporarily deployed to test-eu-west-2 September 21, 2023 08:42 — with GitHub Actions Inactive
@outscale-toa outscale-toa force-pushed the fix_secondary_nic_conflict branch from ced97cd to d94f520 Compare September 21, 2023 14:03
@outscale-toa outscale-toa temporarily deployed to test-us-east-2 September 21, 2023 14:03 — with GitHub Actions Inactive
@outscale-toa outscale-toa temporarily deployed to test-us-east-2 September 21, 2023 14:03 — with GitHub Actions Inactive
@outscale-toa outscale-toa temporarily deployed to test-eu-west-2 September 21, 2023 14:03 — with GitHub Actions Inactive
@outscale-toa outscale-toa temporarily deployed to test-eu-west-2 September 22, 2023 07:54 — with GitHub Actions Inactive
@outscale-toa outscale-toa force-pushed the fix_secondary_nic_conflict branch from d94f520 to 82e0051 Compare September 29, 2023 08:30
@outscale-toa outscale-toa temporarily deployed to test-eu-west-2 September 29, 2023 08:30 — with GitHub Actions Inactive
@outscale-toa outscale-toa temporarily deployed to test-eu-west-2 September 29, 2023 08:30 — with GitHub Actions Inactive
@outscale-toa outscale-toa temporarily deployed to test-us-east-2 September 29, 2023 11:19 — with GitHub Actions Inactive
@outscale-toa outscale-toa temporarily deployed to test-us-east-2 September 29, 2023 12:16 — with GitHub Actions Inactive
@outscale-toa outscale-toa force-pushed the fix_secondary_nic_conflict branch from 82e0051 to 157c932 Compare October 2, 2023 08:44
@outscale-toa outscale-toa temporarily deployed to test-eu-west-2 October 2, 2023 08:44 — with GitHub Actions Inactive
@outscale-toa outscale-toa temporarily deployed to test-eu-west-2 October 2, 2023 08:44 — with GitHub Actions Inactive
@outscale-toa outscale-toa temporarily deployed to test-us-east-2 October 2, 2023 08:44 — with GitHub Actions Inactive
@outscale-toa outscale-toa temporarily deployed to test-eu-west-2 October 2, 2023 08:44 — with GitHub Actions Inactive
@outscale-toa outscale-toa temporarily deployed to test-us-east-2 October 2, 2023 08:44 — with GitHub Actions Inactive
@outscale-toa outscale-toa added this to the V0.10.0 milestone Oct 6, 2023
To avoid confict nic inside VM with link_nic resouces we add
a new block 'primary_nic' in VM for only nic with device number 0
@outscale-toa outscale-toa force-pushed the fix_secondary_nic_conflict branch from 157c932 to 5628f5d Compare October 13, 2023 08:59
@outscale-toa outscale-toa temporarily deployed to test-us-east-2 October 13, 2023 08:59 — with GitHub Actions Inactive
@outscale-toa outscale-toa temporarily deployed to test-eu-west-2 October 13, 2023 08:59 — with GitHub Actions Inactive
@outscale-toa outscale-toa temporarily deployed to test-eu-west-2 October 13, 2023 08:59 — with GitHub Actions Inactive
@outscale-toa outscale-toa temporarily deployed to test-us-east-2 October 13, 2023 08:59 — with GitHub Actions Inactive
networkInterfaces := []oscgo.NicForVmCreation{}
if nics := d.Get("primary_nic").(*schema.Set).List(); len(nics) > 0 {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add an error if both, primary_nic and nics are set please.

outscale/data_source_outscale_vm.go Show resolved Hide resolved
@outscale-toa outscale-toa merged commit 811bedc into master Oct 16, 2023
10 of 11 checks passed
@outscale-toa outscale-toa deleted the fix_secondary_nic_conflict branch October 16, 2023 14:10
@hervedevos
Copy link

It seems that this change is not documented at all in terraform documentation. It would be great to align documentation with this feature (https://registry.terraform.io/providers/outscale/outscale/latest/docs/resources/vm)

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

Successfully merging this pull request may close these issues.

Terraform want to rebuild VM if I add a secondary NIC
3 participants