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

build_pipeline update BuildPipelineParameters don't seem to be optional as documented #2129

Open
hrvolapeter opened this issue May 30, 2024 · 1 comment
Labels
bug In-Progress Terraform Team is working on the reproduce & fix

Comments

@hrvolapeter
Copy link
Member

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 "me too" comments, 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 Version and Provider Version

OpenTofu v1.6.2
on darwin_arm64

  • provider registry.opentofu.org/oracle/oci v5.43.0

Affected Resource(s)

oci_devops_build_pipeline

Terraform Configuration Files

resource "oci_devops_build_pipeline" "lz_pipeline" {
    project_id = oci_devops_project.landing_zone_project.id
    description = "LZ CI/CD pipeline" 
    display_name = "dvb-lz-deploy"
}

Debug Output

Output 2024-05-30T11:23:47.162+0200 [INFO] Starting apply for oci_devops_build_pipeline.lz_pipeline 2024-05-30T11:23:47.162+0200 [DEBUG] oci_devops_build_pipeline.lz_pipeline: applying the planned Update change 2024-05-30T11:23:47.162+0200 [DEBUG] provider.terraform-provider-oci_v5.43.0: DEBUG 2024/05/30 11:23:47.162844 eventual_consistency.go:332: (pid=22757, gid=11) EcContext.GetEndOfWindow returns 2024-05-30T11:23:47.162+0200 [DEBUG] provider.terraform-provider-oci_v5.43.0: DEBUG 2024/05/30 11:23:47.162870 asm_arm64.s:1197: Retry policy to use: {MaximumNumberAttempts=0, MinSleepBetween=0, MaxSleepBetween=0, ExponentialBackoffBase=0, NonEventuallyConsistentPolicy=} 2024-05-30T11:23:47.162+0200 [DEBUG] provider.terraform-provider-oci_v5.43.0: DEBUG 2024/05/30 11:23:47.162877 asm_arm64.s:1197: operation attempt #1 2024-05-30T11:23:47.162+0200 [DEBUG] provider.terraform-provider-oci_v5.43.0: DEBUG 2024/05/30 11:23:47.162920 http.go:725: Marshaling to Request: UpdateBuildPipelineRequest 2024-05-30T11:23:47.162+0200 [DEBUG] provider.terraform-provider-oci_v5.43.0: DEBUG 2024/05/30 11:23:47.162977 http.go:643: Marshaling to path from field: BuildPipelineId in template: /buildPipelines/{buildPipelineId} 2024-05-30T11:23:47.163+0200 [DEBUG] provider.terraform-provider-oci_v5.43.0: DEBUG 2024/05/30 11:23:47.163093 http.go:647: Marshaling to body from field:UpdateBuildPipelineDetails 2024-05-30T11:23:47.163+0200 [DEBUG] provider.terraform-provider-oci_v5.43.0: DEBUG 2024/05/30 11:23:47.163150 http.go:167: Adjusting tag: mandatory is false and json tag is valid on field: Description 2024-05-30T11:23:47.163+0200 [DEBUG] provider.terraform-provider-oci_v5.43.0: DEBUG 2024/05/30 11:23:47.163169 http.go:167: Adjusting tag: mandatory is false and json tag is valid on field: DisplayName 2024-05-30T11:23:47.163+0200 [DEBUG] provider.terraform-provider-oci_v5.43.0: DEBUG 2024/05/30 11:23:47.163174 http.go:167: Adjusting tag: mandatory is false and json tag is valid on field: BuildPipelineParameters 2024-05-30T11:23:47.173+0200 [DEBUG] State storage *statemgr.Filesystem declined to persist a state snapshot 2024-05-30T11:23:47.173+0200 [ERROR] vertex "oci_devops_build_pipeline.lz_pipeline" error: can not omit nil fields for field: BuildPipelineParameters, due to: can not omit nil fields for field: Items, due to: can not omit nil fields, data was expected to be a not-nil list

Expected Behavior

Update in place

Actual Behavior

╷
│ Error: can not omit nil fields for field: BuildPipelineParameters, due to: can not omit nil fields for field: Items, due to: can not omit nil fields, data was expected to be a not-nil list
│ 
│   with oci_devops_build_pipeline.lz_pipeline,
│   on devops.tf line 80, in resource "oci_devops_build_pipeline" "lz_pipeline":
│   80: resource "oci_devops_build_pipeline" "lz_pipeline" {
│ 

Steps to Reproduce

  1. Change name of previously applied build pipepline definition
  2. Plan produces in-place update of name
  3. tofu apply
@tf-oci-pub tf-oci-pub added the In-Progress Terraform Team is working on the reproduce & fix label May 31, 2024
@tf-oci-pub
Copy link
Member

Thank you for reporting the issue. We have raised an internal ticket to track this. Our service engineers will get back to you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug In-Progress Terraform Team is working on the reproduce & fix
Projects
None yet
Development

No branches or pull requests

2 participants