Skip to content

Issue with getting the terraform state of endpoint_bindings and storage #966

Description

@mastier

Description

The issue is true for 0.23.1 and 1.0.0

Attached juju status in yaml and terraform.tfstate (renamed to allow linking)

juju_status.yaml
terraform.tfstate.json

OpenTofu will perform the following actions:
                                                           
  # module.postgresql.juju_application.backups_s3_integrator will be updated in-place
  ~ resource "juju_application" "backups_s3_integrator" {
      ~ endpoint_bindings = [
          + {                    
              + endpoint = "s3-credentials"
              + space    = "oam-space"  
            },                        
            # (2 unchanged elements hidden)
        ]    
        id                = "846ff393-d530-4713-89c8-58f0b13e6314:backups-s3-integrator"
        name              = "backups-s3-integrator"
      + storage           = (known after apply)
        # (7 unchanged attributes hidden)
                                                           
        # (1 unchanged block hidden)
    }                            
                                                           
  # module.postgresql.juju_application.postgresql will be updated in-place
  ~ resource "juju_application" "postgresql" {
      ~ endpoint_bindings = [
          + {
              + endpoint = "cos-agent"
              + space    = "oam-space"  
            },                          
            # (8 unchanged elements hidden)
        ]     
        id                = "846ff393-d530-4713-89c8-58f0b13e6314:postgresql"
        name              = "postgresql" 
      ~ storage           = [
          - {                        
              - count = 1 -> null
              - label = "archive" -> null
              - pool  = "rootfs" -> null  
              - size  = "1.7T" -> null
            },                       
          - {                                       
              - count = 1 -> null        
              - label = "archive-4" -> null


Urgency

Casually reporting

Terraform Juju Provider version

1.0.0,0.23.1

Terraform version

OpenTofu v1.10.6 on linux_amd64

Juju version

controller-model-version: 3.6.11

Terraform Configuration(s)

will add later

Reproduce / Test

will add later

Debug/Panic Output

Notes & References

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugindicates a bug in the project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions