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

new resource azurerm_elastic_san_volume #24802

Merged
merged 5 commits into from
Mar 21, 2024

Conversation

teowa
Copy link
Contributor

@teowa teowa commented Feb 7, 2024

@teowa teowa marked this pull request as draft February 7, 2024 07:35
Copy link
Contributor

@ms-zhenhua ms-zhenhua left a comment

Choose a reason for hiding this comment

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

Hi @teowa,
Thanks for this PR - I've taken a look through and left some comments inline. If we can fix those up, this should be good to go 👍
BTW, please also involve the test results.

Timeout: 5 * time.Minute,
Func: func(ctx context.Context, metadata sdk.ResourceMetaData) error {
if oldVal, newVal := metadata.ResourceDiff.GetChange("size_in_gib"); newVal.(int) < oldVal.(int) {
return fmt.Errorf("new size_in_gib should be greater than the existing one")
Copy link
Contributor

Choose a reason for hiding this comment

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

shall we add a testcase for this validation?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is included in update test

website/docs/r/elastic_san_volume.html.markdown Outdated Show resolved Hide resolved
@teowa
Copy link
Contributor Author

teowa commented Feb 26, 2024

image

@teowa teowa marked this pull request as ready for review March 5, 2024 01:54
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.

Have a test failure:

------- Stdout: -------
=== RUN   TestAccElasticSANVolume_complete
=== PAUSE TestAccElasticSANVolume_complete
=== CONT  TestAccElasticSANVolume_complete
    testcase.go:113: Step 1/2 error: Error running apply: exit status 1
        
        Error: creating Volume (Subscription: "*******"
        Resource Group Name: "acctestrg-esvg-240229223355576575"
        Elastic San Name: "acctestes-4pwq0"
        Volume Group Name: "acctestesvg-4pwq0"
        Volume Name: "acctestesv-4pwq0"): polling after Create: polling failed: the Azure API returned the following error:
        
        Status: "InternalServerError"
        Code: ""
        Message: "Internal server error."
        Activity Id: ""
        
        ---
        
        API Response:
        
        ----[start]----
        {"status":"Failed","error":{"code":"InternalServerError","message":"Internal server error."}}
        -----[end]-----
        
        
          with azurerm_elastic_san_volume.test,
          on terraform_plugin_test.tf line 70, in resource "azurerm_elastic_san_volume" "test":
          70: resource "azurerm_elastic_san_volume" "test" {
        
        creating Volume (Subscription: "*******"
        Resource Group Name: "acctestrg-esvg-240229223355576575"
        Elastic San Name: "acctestes-4pwq0"
        Volume Group Name: "acctestesvg-4pwq0"
        Volume Name: "acctestesv-4pwq0"): polling after Create: polling failed: the
        Azure API returned the following error:
        
        Status: "InternalServerError"
        Code: ""
        Message: "Internal server error."
        Activity Id: ""
        
        ---
        
        API Response:
        
        ----[start]----
        {"status":"Failed","error":{"code":"InternalServerError","message":"Internal
        server error."}}
        -----[end]-----
        
--- FAIL: TestAccElasticSANVolume_complete (184.96s)
FAIL

@teowa
Copy link
Contributor Author

teowa commented Mar 12, 2024

Hi, the service team should have the backend fixed, the the test can pass now:
image

@teowa
Copy link
Contributor Author

teowa commented Mar 20, 2024

image

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.

LGTM 🦺

@katbyte katbyte merged commit e84cdfa into hashicorp:main Mar 21, 2024
36 checks passed
@github-actions github-actions bot added this to the v3.97.0 milestone Mar 21, 2024
katbyte added a commit that referenced this pull request Mar 21, 2024
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 21, 2024
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.

None yet

3 participants