Skip to content
This repository has been archived by the owner on Dec 24, 2024. It is now read-only.

Update CSB to allow brokerpak updates #135

Merged
merged 1 commit into from
Apr 13, 2022
Merged

Update CSB to allow brokerpak updates #135

merged 1 commit into from
Apr 13, 2022

Conversation

nickumia-reisys
Copy link
Contributor

@nickumia-reisys nickumia-reisys commented Apr 12, 2022

Related to GSA/data.gov#3083

Draft status pending

Notes:

  • Solr Brokerpak was not updated because we don't expect to support this in the near future

Solr Brokerpak was not updated because we don't expect to support this in the near future
@nickumia-reisys nickumia-reisys temporarily deployed to production April 12, 2022 19:51 Inactive
@nickumia-reisys nickumia-reisys temporarily deployed to staging April 12, 2022 19:51 Inactive
@github-actions
Copy link

github-actions bot commented Apr 12, 2022

Terraform plan for staging

Plan: 0 to add, 7 to change, 0 to destroy.
Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  ~ update in-place

Terraform will perform the following actions:

  # aws_servicequotas_service_quota.minimum_quotas["vpc/L-45FE3B85"] will be updated in-place
  ~ resource "aws_servicequotas_service_quota" "minimum_quotas" {
        id             = "vpc/L-45FE3B85"
      ~ value          = 610 -> 20
        # (8 unchanged attributes hidden)
    }

  # aws_servicequotas_service_quota.minimum_quotas["vpc/L-A4707A72"] will be updated in-place
  ~ resource "aws_servicequotas_service_quota" "minimum_quotas" {
        id             = "vpc/L-A4707A72"
      ~ value          = 610 -> 20
        # (8 unchanged attributes hidden)
    }

  # aws_servicequotas_service_quota.minimum_quotas["vpc/L-F678F1CE"] will be updated in-place
  ~ resource "aws_servicequotas_service_quota" "minimum_quotas" {
        id             = "vpc/L-F678F1CE"
      ~ value          = 610 -> 20
        # (8 unchanged attributes hidden)
    }

  # module.broker_eks.cloudfoundry_app.ssb will be updated in-place
  ~ resource "cloudfoundry_app" "ssb" {
      ~ environment                = (sensitive value)
        id                         = "3f76e130-c171-4faf-9588-384d6cae5a2f"
      ~ id_bg                      = "************************************" -> (known after apply)
        name                       = "ssb-eks"
      ~ source_code_hash           = "pyX/oCezxIthNRXW/E8TTCbN0bY0NkXu8xbvNAC5ZyI=" -> "HYOLlH5VIOKJJHJmInbj2kpQ9w0fX8Yz0y+YYdKVXJM="
        # (17 unchanged attributes hidden)


        # (2 unchanged blocks hidden)
    }

  # module.broker_smtp.cloudfoundry_app.ssb will be updated in-place
  ~ resource "cloudfoundry_app" "ssb" {
      ~ environment                = (sensitive value)
        id                         = "8fdd1b3b-0217-42f2-b889-ad708c4ca474"
      ~ id_bg                      = "************************************" -> (known after apply)
        name                       = "ssb-smtp"
      ~ source_code_hash           = "BwKQ3ow7LiOCPMDdb12WMzub3jTiPWnZ3Y9GlQaOYjk=" -> "6AVg3b2EAWpmj4HCDWuxJMLlDh0mycwo2QDv6OKJ2b4="
        # (17 unchanged attributes hidden)


        # (2 unchanged blocks hidden)
    }

  # module.broker_solr.cloudfoundry_app.ssb will be updated in-place
  ~ resource "cloudfoundry_app" "ssb" {
      ~ environment                = (sensitive value)
        id                         = "fdd0e324-d20d-4e2a-af47-be1c0c33d882"
      ~ id_bg                      = "************************************" -> (known after apply)
        name                       = "ssb-solr"
        # (20 unchanged attributes hidden)


        # (3 unchanged blocks hidden)
    }

  # module.broker_solrcloud.cloudfoundry_app.ssb will be updated in-place
  ~ resource "cloudfoundry_app" "ssb" {
      ~ environment                = (sensitive value)
        id                         = "2b63d196-0fe7-41cf-8583-a640b4a412f5"
      ~ id_bg                      = "************************************" -> (known after apply)
        name                       = "ssb-solrcloud"
      ~ source_code_hash           = "fYjnMa5ja9sSHilEIIdS8ikbndJqTmpUg9a7PzjQYyc=" -> "nzgLGxizAb5ngpwFoMKsNMAcS9PP163kU7lgcJ9l6e0="
        # (17 unchanged attributes hidden)


        # (3 unchanged blocks hidden)
    }

Plan: 0 to add, 7 to change, 0 to destroy.

❌ Error applying plan in apply #84

@github-actions
Copy link

github-actions bot commented Apr 12, 2022

Terraform plan for production

Plan: 0 to add, 5 to change, 0 to destroy.
Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  ~ update in-place

Terraform will perform the following actions:

  # module.broker_eks.cloudfoundry_app.ssb will be updated in-place
  ~ resource "cloudfoundry_app" "ssb" {
      ~ environment                = (sensitive value)
        id                         = "94e03bd7-01cd-40b5-a4bc-b9474c596fb0"
      ~ id_bg                      = "************************************" -> (known after apply)
        name                       = "ssb-eks"
      ~ source_code_hash           = "pyX/oCezxIthNRXW/E8TTCbN0bY0NkXu8xbvNAC5ZyI=" -> "HYOLlH5VIOKJJHJmInbj2kpQ9w0fX8Yz0y+YYdKVXJM="
        # (17 unchanged attributes hidden)


        # (2 unchanged blocks hidden)
    }

  # module.broker_smtp.cloudfoundry_app.ssb will be updated in-place
  ~ resource "cloudfoundry_app" "ssb" {
      ~ environment                = (sensitive value)
        id                         = "c3783374-24e5-43d6-b2cf-06c3022e7ce9"
      ~ id_bg                      = "************************************" -> (known after apply)
        name                       = "ssb-smtp"
      ~ source_code_hash           = "BwKQ3ow7LiOCPMDdb12WMzub3jTiPWnZ3Y9GlQaOYjk=" -> "6AVg3b2EAWpmj4HCDWuxJMLlDh0mycwo2QDv6OKJ2b4="
        # (17 unchanged attributes hidden)


        # (2 unchanged blocks hidden)
    }

  # module.broker_solr.cloudfoundry_app.ssb will be updated in-place
  ~ resource "cloudfoundry_app" "ssb" {
      ~ environment                = (sensitive value)
        id                         = "7e65d94d-d184-456f-b6f6-867a8933c35c"
      ~ id_bg                      = "************************************" -> (known after apply)
        name                       = "ssb-solr"
        # (18 unchanged attributes hidden)


        # (3 unchanged blocks hidden)
    }

  # module.broker_solrcloud.cloudfoundry_app.ssb will be updated in-place
  ~ resource "cloudfoundry_app" "ssb" {
      ~ environment                = (sensitive value)
        id                         = "35d01dfd-6946-4887-99cc-4baa5d5d290a"
      ~ id_bg                      = "************************************" -> (known after apply)
        name                       = "ssb-solrcloud"
      ~ source_code_hash           = "fYjnMa5ja9sSHilEIIdS8ikbndJqTmpUg9a7PzjQYyc=" -> "nzgLGxizAb5ngpwFoMKsNMAcS9PP163kU7lgcJ9l6e0="
        # (19 unchanged attributes hidden)


      + service_binding {
          + service_instance = "76983303-4b6d-4f40-8bfc-d19aff701c10"
        }
      + service_binding {
          + service_instance = "f298ce79-a49a-4924-b978-f42c156e153e"
        }
        # (1 unchanged block hidden)
    }

  # module.broker_solrcloud.cloudfoundry_service_instance.db will be updated in-place
  ~ resource "cloudfoundry_service_instance" "db" {
        id                             = "76983303-4b6d-4f40-8bfc-d19aff701c10"
      ~ name                           = "ssb-solrcloud-db-unknown-db" -> "ssb-solrcloud-db"
        tags                           = [
            "mysql",
        ]
        # (5 unchanged attributes hidden)

        # (1 unchanged block hidden)
    }

Plan: 0 to add, 5 to change, 0 to destroy.

📝 Plan generated in plan #215

@nickumia-reisys nickumia-reisys marked this pull request as ready for review April 13, 2022 14:47
@nickumia-reisys nickumia-reisys merged commit 0ea0632 into main Apr 13, 2022
@nickumia-reisys nickumia-reisys deleted the csb-updates branch April 13, 2022 14:47
@nickumia-reisys nickumia-reisys temporarily deployed to staging April 13, 2022 14:47 Inactive
@nickumia-reisys nickumia-reisys temporarily deployed to production April 13, 2022 14:47 Inactive
@nickumia-reisys
Copy link
Contributor Author

📢 📢 VERY IMPORTANT NOTE: The upgrade to the CSB Version causes some form of DB upgrade, so there's no way to rollback this change (if it fails) without destroying the DB and orphaning a bunch of resources! 🧯 🧯

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants