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

Pipeline properties fail to create #104

Open
in-1911 opened this issue Jun 18, 2024 · 2 comments
Open

Pipeline properties fail to create #104

in-1911 opened this issue Jun 18, 2024 · 2 comments
Assignees

Comments

@in-1911
Copy link

in-1911 commented Jun 18, 2024

When the module is deployed as a part of the RAG DA stack and a new CD service instance is requested (create_continuous_delivery_service_instance = true), creation of several ibm_cd_tekton_pipeline_property resources fails as apparently it expects a Continuous Delivery service.

This happens if the ALM deployment (where the toolchains are created) is more than 14 days old and the App Configuration DA is undeployed and deployed again. In that case the CD instance (provisioned in this module) is destroyed therefore making the toolchains inoperable. Even though a new CD instance is being planned / provisioned, since there is no dependency in ibm_cd_tekton_pipeline_property on the CD instance, the pipeline property creation fails.
ci_pipeline_webhook creation fails as well.

The module may have to fetch the existing CD instance if create_continuous_delivery_service_instance = false and use either that or the created CD instance as a dependency for the pipeline properties and webhooks.

Affected modules

solutions/banking/main.tf
Release: 2.0.1

Terraform CLI and Terraform provider versions

  • Terraform version:
  • Provider version:

Terraform output

See redacted project deploy log

Debug output

Expected behavior

Actual behavior

Steps to reproduce (including links and screen captures)

  1. Run terraform apply

Anything else


By submitting this issue, you agree to follow our Code of Conduct

@in-1911
Copy link
Author

in-1911 commented Jun 18, 2024

@in-1911
Copy link
Author

in-1911 commented Jun 19, 2024

A similar issue occurs when undeploying this DA - the CD instance is deleted first and if the toolchains / pipelines are older than 14 days, the delete operations on triggers and properties fail because the CD instance is required for any changes to those resources.

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

No branches or pull requests

3 participants