terraform-ibm-modules / terraform-ibm-mq-cloud

Provisions and configures IBM Cloud MQ on Cloud.
Apache License 2.0
0 stars 1 forks source link

Improve FFDC in experimental modules #64

Open shemau opened 2 days ago

shemau commented 2 days ago

Description

Sometimes the experimental modules fail. The working theory is that this may happen when the queue managers are not in fully active/running state; maybe the same route cause at least.

TestRunUpgradeExample 2024-11-28T14:17:13Z logger.go:66: │ Error: Unexpected External Program Results
TestRunUpgradeExample 2024-11-28T14:17:13Z logger.go:66: │ 
TestRunUpgradeExample 2024-11-28T14:17:13Z logger.go:66: │   with module.experimental_certificate_root.data.external.certificate,
TestRunUpgradeExample 2024-11-28T14:17:13Z logger.go:66: │   on ../../modules/experimental-certificate/main.tf line 12, in data "external" "certificate":
TestRunUpgradeExample 2024-11-28T14:17:13Z logger.go:66: │   12:   program = [
TestRunUpgradeExample 2024-11-28T14:17:13Z logger.go:66: │   13:     "sh", "../../modules/experimental-certificate/curlly.sh"
TestRunUpgradeExample 2024-11-28T14:17:13Z logger.go:66: │   14:   ]
TestRunUpgradeExample 2024-11-28T14:17:13Z logger.go:66: │ 
TestRunUpgradeExample 2024-11-28T14:17:13Z logger.go:66: │ The data source received unexpected results after executing the program.
TestRunUpgradeExample 2024-11-28T14:17:13Z logger.go:66: │ 
TestRunUpgradeExample 2024-11-28T14:17:13Z logger.go:66: │ Program output must be a JSON encoded map of string keys and string values.

Investigate if it is possible to detect this early in the script and capture the error as an FFDC feature. If possible output valid json with the error contained in it.

New or affected modules


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

ocofaigh commented 2 days ago

Adding a note here that the tests are currently not running in parallel to try and avoid this error. We should see if its possible to run them in parallel again when we figure out the root cause