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

synapse_workspace_resource support azure_devops_repo, and github_repo #10157

Merged
merged 8 commits into from
Feb 18, 2021

Conversation

allantargino
Copy link
Contributor

@allantargino allantargino commented Jan 12, 2021

fix #10091

It follows the same interface for source control from azurerm_data_factory, except for:

@allantargino
Copy link
Contributor Author

Hi @tombuildsstuff @katbyte, I would appreciate your review 😄

Copy link
Collaborator

@katbyte katbyte left a comment

Choose a reason for hiding this comment

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

Hey @allantargino - just ran the tests for this but i am getting this error:

------- Stdout: -------
=== RUN   TestAccSynapseWorkspace_azdo
=== PAUSE TestAccSynapseWorkspace_azdo
=== CONT  TestAccSynapseWorkspace_azdo
    testing.go:684: Step 0 error: errors during apply:
        
        Error: Error retrieving ACLs for Root path in File System "acctest-210128063831382385" in Storage Account "acctestacc7j0nw": datalakestore.Client#GetProperties: Failure responding to request: StatusCode=403 -- Original Error: autorest/azure: error response cannot be parsed: "" error: EOF
        
          on /opt/teamcity-agent/temp/buildTmp/tf-test098443127/main.tf line 21:
          (source code not available)
        
        
    testing.go:745: Error destroying resource! WARNING: Dangling resources
        may exist. The full state and error is shown below.
        
        Error: errors during refresh: Error retrieving ACLs for Root path in File System "acctest-210128063831382385" in Storage Account "acctestacc7j0nw": datalakestore.Client#GetProperties: Failure responding to request: StatusCode=403 -- Original Error: autorest/azure: error response cannot be parsed: "" error: EOF
        
        State: <nil>
--- FAIL: TestAccSynapseWorkspace_azdo (51.03s)
FAIL

do you get this error?

@allantargino
Copy link
Contributor Author

allantargino commented Jan 28, 2021

Hi @katbyte,
I am not getting this error, I just ran the tests again:
image
image

Looking at the error message, the 403 on the data lake is usually a permission issue. My service principal is owner of my Azure subscription. Do you get this error when running TestAccSynapseWorkspace_basic too?

@allantargino allantargino requested a review from katbyte January 28, 2021 21:23
@katbyte
Copy link
Collaborator

katbyte commented Feb 1, 2021

Looks like something changed on the 26th and all our tests started to fail for synapse with that error, will have to look into whats going on with our subscription

@njuCZ
Copy link
Contributor

njuCZ commented Feb 4, 2021

@katbyte recently I am doing another task about Synapse and also found this issue. It seems it's casued by retrieving ACL rest api.
the response status code is 403, which shows the permission is not enough. After I assign the Storage Blob Data Contributor role and test again, it report 400 this time. It seems it's by design when the hns feature is disabled.
I have submit a PR to fix this problem: #10470

Copy link
Collaborator

@katbyte katbyte left a comment

Choose a reason for hiding this comment

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

@allantargino - tests are fixed now, just one comment about the schema and this should be good to merge

@allantargino allantargino requested a review from katbyte February 12, 2021 15:39
@allantargino
Copy link
Contributor Author

Thanks @katbyte, I applied the suggested changes.

@katbyte katbyte changed the title Adding source control properties to synapse_workspace_resource synapse_workspace_resource support azure_devops_repo, and github_repo Feb 18, 2021
Copy link
Collaborator

@katbyte katbyte left a comment

Choose a reason for hiding this comment

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

Thanks @allantargino - this LGTM now 👍

@katbyte katbyte added this to the v2.48.0 milestone Feb 18, 2021
@katbyte katbyte merged commit 9992e05 into hashicorp:master Feb 18, 2021
katbyte added a commit that referenced this pull request Feb 18, 2021
@ghost
Copy link

ghost commented Feb 18, 2021

This has been released in version 2.48.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 = "~> 2.48.0"
}
# ... other configuration ...

@ghost
Copy link

ghost commented Mar 20, 2021

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 👉 [email protected]. Thanks!

@ghost ghost locked as resolved and limited conversation to collaborators Mar 20, 2021
@allantargino allantargino deleted the synapse-source-control branch April 27, 2021 20:18
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.

Support for Azure Synapse Workspace Git Configuration
3 participants