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

azurerm_site_recovery_replication_recovery_plan: keep the order of recovery_group #22348

Merged

Conversation

ziyeqf
Copy link
Contributor

@ziyeqf ziyeqf commented Jul 3, 2023

fix #22323
Screenshot 2023-07-03 at 17 31 47

Signed-off-by: ziyeqf <[email protected]>
@ziyeqf ziyeqf marked this pull request as ready for review July 3, 2023 09:32
@@ -258,6 +261,8 @@ A `recovery_group` block supports the following:

* `type` - (Required) The Recovery Plan Group Type. Possible values are `Boot`, `Failover` and `Shutdown`.

**Note:** The List of `recovery_group` must be in the order of `Shutdown`-`Failover`-`Boot`.
Copy link
Contributor

Choose a reason for hiding this comment

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

should these be modelled differently to account for that?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

have updated per comments, please take another look:)

Signed-off-by: ziyeqf <[email protected]>
@ziyeqf
Copy link
Contributor Author

ziyeqf commented Jul 4, 2023

triggered a test on TC and will upload the result here

@github-actions github-actions bot added size/XL and removed size/L labels Jul 4, 2023
ziyeqf added 2 commits July 4, 2023 13:35
Signed-off-by: ziyeqf <[email protected]>
Signed-off-by: ziyeqf <[email protected]>
@ziyeqf ziyeqf force-pushed the tengzh/issue/recoveryplan_group_order branch from e95a168 to d858643 Compare July 4, 2023 07:20
Signed-off-by: ziyeqf <[email protected]>
@ziyeqf ziyeqf force-pushed the tengzh/issue/recoveryplan_group_order branch from 36ccc7a to aa0b8f1 Compare July 4, 2023 11:15
@ziyeqf
Copy link
Contributor Author

ziyeqf commented Jul 5, 2023

Screenshot 2023-07-05 at 09 53 07

the schema lint is failing because the new schema has the following

Required: features.FourPointOhBeta(),
Optional: !features.FourPointOhBeta(),
Computed: !features.FourPointOhBeta(),

Can we ignore the failure?


-> **NOTE:** `shutdown_recovery_group` will be required in the next major version of the AzureRM Provider.

* `failover_recovery_group` - (Optional) One or more `failover_recovery_group` block defined as below.
Copy link

@horvatal horvatal Jul 5, 2023

Choose a reason for hiding this comment

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

This is not consistent with the Microsoft.RecoveryServices/vaults/replicationRecoveryPlans@2022-10-01 API. If I create multiple failover or shutdown groups, I receive an error: "recommendedAction": "Ensure there is only a single shutdown and a single failover group and that virtual machines are present in only one boot group." Only multiple boot groups are allowed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, code updated

Signed-off-by: ziyeqf <[email protected]>
Copy link
Contributor

@manicminer manicminer left a comment

Choose a reason for hiding this comment

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

@ziyeqf Can you look at the linting error? Unfortunately we can't merge a fixable failure.

Signed-off-by: ziyeqf <[email protected]>
Copy link
Contributor

@manicminer manicminer left a comment

Choose a reason for hiding this comment

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

Thanks @ziyeqf, just some minor wording tweaks but this otherwise LGTM! 🪐

Screenshot 2023-07-20 at 23 00 55

@manicminer manicminer added this to the v3.66.0 milestone Jul 20, 2023
@manicminer manicminer merged commit 44d26c6 into hashicorp:main Jul 20, 2023
manicminer added a commit that referenced this pull request Jul 20, 2023
@ziyeqf ziyeqf deleted the tengzh/issue/recoveryplan_group_order branch December 20, 2023 08:09
Copy link

github-actions bot commented May 2, 2024

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 May 2, 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.

azurerm_site_recovery_replication_recovery_plan does not keep order of boot groups
5 participants