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

check if nic.NetworkInterfaceReferenceProperties.Primary field exists… #208

Merged
merged 1 commit into from
Aug 4, 2017

Conversation

sschne
Copy link
Contributor

@sschne sschne commented Aug 2, 2017

… before trying to dereference it #207

Copy link
Contributor

@tombuildsstuff tombuildsstuff left a comment

Choose a reason for hiding this comment

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

Hey @pather87

Thanks for opening this PR + issue :)

I've spent a little while trying to reproduce this machine configuration within Azure and I'm having a hard-time doing so (although, I can see this response is valid by the API documentation). Out of interest would it be possible to know how this machine was created? It'd be great if we could get a reproducible configuration for this so we could add an acceptance test to ensure we don't cause this error again - however this otherwise LGTM :)

Thanks!

@sschne
Copy link
Contributor Author

sschne commented Aug 3, 2017

Hey @tombuildsstuff

I have checked the Debug output of the terraform run on a working version. We have around 30 machines running in Azure and it appears that only 2 specific machines show this behaviour. Our terraform configuration of all these machines is quite the same, so i doubt that it has something to do with that.
What i can see from tfstate history is, that these machines have been setup last year with terraform version 0.7.0, but again also have been other machines, so i also doubt that it is related to a specific terraform version.

These were one of the first machines that have been setup, so i am uncertain that this can be reproduced. IMO it might be related to a special behaviour of Azure at the time of installation.

Regards

@tombuildsstuff
Copy link
Contributor

Hey @pather87

Our terraform configuration of all these machines is quite the same, so i doubt that it has something to do with that. [..] These were one of the first machines that have been setup, so i am uncertain that this can be reproduced. IMO it might be related to a special behaviour of Azure at the time of installation.

Got you - so from my understanding Azure appears to have some kind of schema for machines - given those two machines were provisioned a while ago, they're likely to be using an older schema. When I've seen this in the past I believe redeploying these machines (either in the Portal or the CLI) - or altering a property of these machines (e.g. attaching an extra data disk) will force an update to the latest schema (and Azure VM Agent).

All that said - this PR LGTM and I'm just running the tests now :)

Thanks!

Copy link
Contributor

@tombuildsstuff tombuildsstuff left a comment

Choose a reason for hiding this comment

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

Hey @pather87

Thanks for this change - this LGTM! :)

@tombuildsstuff
Copy link
Contributor

Ignoring a subscription-specific test failure - the tests pass:
screen shot 2017-08-04 at 10 59 04

@tombuildsstuff tombuildsstuff merged commit 7e54df3 into hashicorp:master Aug 4, 2017
tombuildsstuff added a commit that referenced this pull request Aug 4, 2017
@ghost
Copy link

ghost commented Apr 1, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks!

@ghost ghost locked and limited conversation to collaborators Apr 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants