-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Edge node support for HDInsight #4550
Conversation
…form-provider-azurerm into e-hadoop-cluster-edge-node
Hi @dintskirveli. Thanks for fixing this up a bit but the tests still fail because of a broken pipe. Right after creating the edge node, the pipe breaks and we can't read any of the edge node information unless we go into a completely different run which is why this works manually; however, we don't feel comfortable that there aren't unintended effects with that broken pipe. With that said the fix did just get merged into go-autorest so we'll have to wait for that to release and see if it fixes our issue here. |
@mbfrahry, thanks for getting back. I think my changes are valuable in that they allow multiple edge nodes to be created, and that's a requirement for us. Can you elaborate on why this is an issue in tests specifically? I'm still trying to get the tests working on our end, so bear with me. Also -- I had some issues updating to the latest master, which I think has to do with the new plugin SDK. Do you know how to fix that?
|
I agree that your changes are valuable and I'm happy to take those going forward. As soon as the edge node finishes creating, we get a broken pipe that causes all future read requests to return as empty until we create a new pipe. This is why you're seeing a success when you create manually because a subsequent Terraform run creates a new pipe but if this is running continually, we'll break users. This is the error I'm seeing when I run the tests:
In regards to your issue, I'm not entirely sure why that would be the case without knowing your environment. I'd suggest opening an issue so we can better track this. |
…form-provider-azurerm into feature/edge-node
…form-provider-azurerm into feature/edge-node
We need to update go-autorest to give it a try. We are waiting for a new release with some more fixes before we upgrade & merge it through the dep chain. Not this week but hopefully in the upcoming weeks we should be able to come back to this. |
waiting on the new version of autorest: Azure/go-autorest#479 |
Waiting on #4775 |
this should be unblocked now @dintskirveli, @mbfrahry |
@mbfrahry did you have any tests that you were trying? Didn't see any in your original PR |
Hey @dintskirveli, those tests are in this PR under |
@mbfrahry yep, found 'em. Thanks. Both tests work fine against the latest master.
|
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @dintskirveli, I also see the tests working now but there was one new feature you added that needs to be tested before we can merge it in
56edaee
to
4ef1c85
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @dintskirveli. Unfortunately, we needed to move some of that logic from the removed CustomizeDiff into the destroy edgenode check logic. In it's current state, Terraform would permanently show a difference if a user tried to update vm_size
or install_script_actions
since they wouldn't actually get updated
@mbfrahry not sure what you're referring to here. Yes, they would permanently show a difference and would get resolved by deleting and re-adding the application. The modification of the cluster works. |
You are 100% right. I misread that chunk of code. I believe these changes are in a great spot and ready to merge. Thanks so much for your patience here @dintskirveli. |
This has been released in version 1.37.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example: provider "azurerm" {
version = "~> 1.37.0"
}
# ... other configuration ... |
@mbfrahry @dintskirveli Any chance this same edgenode support could be added to the other HDI resources as well? |
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! |
Hi,
This PR is based on @mbfrahry's work in this closed PR, which appears to have been blocked waiting on a Go SDK change.
I used his branch as a base, made some tweaks, fixed some bugs, and did some testing -- seems to work fine.
Can we revisit this now?