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

DTCM Insufficient query_parameters blocks #454

Closed
TylerBrush opened this issue May 1, 2024 · 0 comments
Closed

DTCM Insufficient query_parameters blocks #454

TylerBrush opened this issue May 1, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@TylerBrush
Copy link

Describe the bug
I am getting the following error when trying to run the Dynatrace Config Manager (DTCM):

│ Error: Insufficient query_parameters blocks
│
│   on modules\url_based_sampling\environment.url_based_sampling.tf line 2, in resource "dynatrace_url_based_sampling" "environment":
│    2: resource "dynatrace_url_based_sampling" "environment" {
│
│ At least 1 "query_parameters" blocks are required.

Query parameters are optional for URL-based sampling so it should work without it.

To Reproduce

  1. Make sure there is a URL-based sampling rule in one of your environments without a query parameter
  2. Run the DTCM as normal with this environment as one of your selected tenants (extract configs/entities, execute OneTopology & TerraComposer)
  3. On the Execute OneTopology & TerraComposer step you should see an error in your console
TerraComposer - step 9/9 - Terraform Plan All
Deleting old overall directory:  C:/Dynatrace Config Manager v1.4.14/data/work/0-1/overall
Terraform Plan All running, see  C:/Dynatrace Config Manager v1.4.14/data/work/0-1/terraform/history/complete/2024-04-30_18-20-30/2024-04-30_18-21-22_plan_all.log
The command ['terraform', 'plan', '-lock=false', '-parallelism=10', '-out=./2024-04-30_18-20-30_complete.plan', '>NUL', '>', 'C:/Dynatrace Config Manager v1.4.14/data/work/0-1/terraform/history/complete/2024-04-30_18-20-30/2024-04-30_18-21-22_plan_all.log', '2>&1'] failed with error code 1
\TerraComposer - step 10/9 - extra step - Terraform Plan All for Omit Destroy
Terraform Plan All post omit destroy running, see  C:/Dynatrace Config Manager v1.4.14/data/work/0-1/terraform/history/complete/2024-04-30_18-20-30/2024-04-30_18-21-29_plan_all_post_omit_destroy.log
The command ['terraform', 'plan', '-lock=false', '-parallelism=10', '-out=./2024-04-30_18-20-30_complete.plan', '>NUL', '>', 'C:/Dynatrace Config Manager v1.4.14/data/work/0-1/terraform/history/complete/2024-04-30_18-20-30/2024-04-30_18-21-29_plan_all_post_omit_destroy.log', '2>&1'] failed with error code 1
  1. If you navigate to the Manage Configs tab you should see a similar screen as below with missing modules and some errors

image

  1. The error at the top (Insufficient query_parameters blocks) can be found in the plan_all_post_omit_destroy_cleaned.log and plan_all_cleaned.log files under <DTCM>\data\work\<tenant_numbers>\terraform\history\complete\<latest>

Expected behavior
The TerraComposer should be able to run successfully without requiring a query parameter for the URL-based sampling ruels

Screenshots
Attached above

Desktop:

  • OS: Windows 11
  • Browser Chrome
@TylerBrush TylerBrush added the bug Something isn't working label May 1, 2024
@kishikawa12 kishikawa12 assigned kishikawa12 and unassigned dcryans May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants