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

ibm_is_backup_policy_plan CreateBackupPolicyPlanWithContext failed The requested operation is not implemented. #5764

Closed
nrocaalh opened this issue Nov 5, 2024 · 4 comments
Assignees
Labels
service/VPC Infrastructure Issues related to the VPC Infrastructure

Comments

@nrocaalh
Copy link

nrocaalh commented Nov 5, 2024

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform CLI and Terraform IBM Provider Version

  • Terraform v1.0
  • ibm_1.64.0

Affected Resource(s)

  • ibm_1.64.0
  • ibm_is_backup_policy_plan

Terraform Configuration Files

resource "ibm_is_backup_policy" "policy_test1" {
    name                = "policytest1"
    resource_group      = data.ibm_resource_group.group.id
  
    match_user_tags = ["backuppolicy:policy1"]
    
    **match_resource_type = "instance"**
    included_content   = ["data_volumes","boot_volume"]

    scope   { crn = var.crn}
}

resource "ibm_is_backup_policy_plan" "policy_test1" {
    backup_policy_id = ibm_is_backup_policy.policy_test1.id
    name             = "policytest1"
    cron_spec        = "0 7 * * *"
  
  clone_policy {
    zones                 = ["eu-de-1", "eu-de-2"]
    max_snapshots     = 7
  }
}

Debug Output

[ERROR] CreateBackupPolicyPlanWithContext failed The requested operation is not implemented.
https://gist.github.com/nrocaalh/81bbdf00de40d80b9bb7b06627e9e934

Expected Behavior

Creation of the policy and the plan for the policy.

Actual Behavior

Although the policy is created, the plan ends in error and it's not created.

Steps to Reproduce

  • Create a policy with the parameter match_resource_type = "instance"
  • Create a plan

I tried different parameters, and when the match_resource_type parameter is set to "instance", the plan ends with an error. Without this parameter, the plan is created successfully.

  1. terraform apply

Important Factoids

References

backup policy -> https://registry.terraform.io/providers/IBM-cloud/ibm/latest/docs/resources/is_backup_policy
backup plan -> https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/resources/is_backup_policy_plan

@github-actions github-actions bot added the service/VPC Infrastructure Issues related to the VPC Infrastructure label Nov 5, 2024
@ujjwal-ibm
Copy link
Collaborator

looking at it

@ujjwal-ibm
Copy link
Collaborator

@nrocaalh seems like fast resource for resource type instance is not supported yet,

When you're creating a plan for a policy that is for multi-volume backups , fast snapshot restore is not available.

https://cloud.ibm.com/docs/vpc?topic=vpc-create-backup-policy-and-plan&interface=ui#backup-plan-ui

https://cloud.ibm.com/docs/vpc?topic=vpc-backup-service-about&interface=ui#backup-service-limitations

@ujjwal-ibm ujjwal-ibm self-assigned this Nov 6, 2024
@nrocaalh
Copy link
Author

nrocaalh commented Nov 7, 2024

Hi,
Just to clarify, we don't configure the fast restore. What we are trying to configure is to create a plan to create snapshots of all the volumes attached on the instance.
As the documentation says : "to create backups of all the Block Storage for VPC volumes that are attached to a specific virtual server instance as members of a consistency group. When you configure backups for a consistency group, you can choose to include the boot volume or leave it out. When you create multi-volume backups, you add the tag to the virtual server instance."

With the plan configured like this it fails:

resource "ibm_is_backup_policy_plan" "policy_test1" {
    backup_policy_id = ibm_is_backup_policy.policy_test1.id
    name             = "policytest1"
    cron_spec        = "0 7 * * *"
  
  clone_policy {
    zones                 = ["eu-de-1", "eu-de-2"]
    max_snapshots     = 7
  }
}

@nrocaalh
Copy link
Author

nrocaalh commented Nov 7, 2024

Hi,

We created the plan with these parameters and without the clone policy, and it worked:

resource "ibm_is_backup_policy_plan" "policy_test1" {
    backup_policy_id = ibm_is_backup_policy.policy_test1.id
    name             = "policytest1"
    cron_spec        = "0 7 * * *"
  
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
service/VPC Infrastructure Issues related to the VPC Infrastructure
Projects
None yet
Development

No branches or pull requests

2 participants