terraform-ibm-modules / terraform-ibm-landing-zone

Creates a fully customizable VPC environment and compute resources (VSI, Red Hat OpenShift) with presets designed to meet strict compliance needs.
Apache License 2.0
8 stars 29 forks source link

Running roks-quickstart pattern results with ut_f5_template_regex fail #907

Closed gasgithub closed 1 month ago

gasgithub commented 1 month ago

Affected modules

Prblem in terraform-ibm-landing-zone in the rocks-quickstart pattern:

Terraform CLI and Terraform provider versions

terraform -v
Terraform v1.9.8
on windows_amd64
+ provider registry.terraform.io/hashicorp/external v2.3.4
+ provider registry.terraform.io/hashicorp/kubernetes v2.33.0
+ provider registry.terraform.io/hashicorp/null v3.2.3
+ provider registry.terraform.io/hashicorp/random v3.6.3
+ provider registry.terraform.io/hashicorp/time v0.12.1
+ provider registry.terraform.io/ibm-cloud/ibm v1.70.1

Terraform output

plan-out.txt

Debug output

Expected behavior

Expecting terraform plan executed without the errors

Actual behavior

Error during the plan:

Error: Error in function call

  on ..\..\dynamic_values\f5_vsi.tf line 125, in locals:
 125:   ut_f5_template_regex           = regex("#cloud-config\nchpasswd:\n  expire: false\n  list: |\n    admin:\ntmos_dhcpv4_tmm:\n  enabled: true\n  rd_enabled: false\n  icontrollx_trusted_sources: false\n  inject_routes: true\n  configsync_interface: 1.1\n  default_route_interface: 1.2\n  dhcp_timeout: 120\n  dhcpv4_options:\n    mgmt:\n      host-name: f5-ve-01\n      domain-name: local\n    '1.2':\n      routers: 10.0.0.1\n  do_enabled: true \n  do_declaration: null\n  do_declaration_url: null\n  as3_enabled: true\n  as3_declaration_url: null\n  ts_enabled: true\n  ts_declaration_url: null\n  phone_home_url: null\n  phone_home_url_verify_tls: false\n  phone_home_url_metadata:\n    template_source: f5devcentral/ibmcloud_schematics_bigip_multinic_declared\n    template_version: 20210201\n    zone: 1-zone\n    vpc: 1234\n    app_id: null\n  tgactive_url: \n  tgstandby_url: null\n  tgrefresh_url: null\n", module.ut_f5.f5_template_map["ut-f5-zone-1"].user_data)
    ├────────────────
    │ while calling regex(pattern, string)

Call to function "regex" failed: pattern did not match any part of the given string.

Steps to reproduce (including links and screen captures)

  1. Clone https://github.com/terraform-ibm-modules/terraform-ibm-landing-zone.git repo
  2. Go to the patterns/roks-quickstart
  3. Provide ibmcloud_api_key and prefix variables
  4. Run terraform plan

Anything else


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

gasgithub commented 1 month ago

Issue related to running in Windows env, doesnt appear in Linux or Mac env.