Skip to content

[telemetry_chargeback] FVT - Implement data validation capabilities for loki rate#399

Draft
ayefimov-1 wants to merge 5 commits into
masterfrom
alexy_ck_job_8
Draft

[telemetry_chargeback] FVT - Implement data validation capabilities for loki rate#399
ayefimov-1 wants to merge 5 commits into
masterfrom
alexy_ck_job_8

Conversation

@ayefimov-1

@ayefimov-1 ayefimov-1 commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Data validation capabilities for loki rate

  • Retrieves CloudKitty rating totals from Loki
  • Compares synthetic test data against actual Loki results
  • Provides automated pass/fail assertions
  • Ensures end-to-end data integrity

Authored-by: @ayefimov-1
AI Assisted by: Claude

@ayefimov-1 ayefimov-1 marked this pull request as draft June 12, 2026 13:49
@centosinfra-prod-github-app

Copy link
Copy Markdown

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://gateway-cloud-softwarefactory.apps.ocp.cloud.ci.centos.org/zuul/t/rdoproject.org/buildset/bbbb7197b442439d9bff91a385403fab

telemetry-openstack-meta-content-provider-master FAILURE in 27m 39s
⚠️ functional-chargeback-tests-osp18 SKIPPED Skipped due to failed job telemetry-openstack-meta-content-provider-master
⚠️ functional-tests-osp18 SKIPPED Skipped due to failed job telemetry-openstack-meta-content-provider-master

@ayefimov-1

Copy link
Copy Markdown
Contributor Author

recheck

@centosinfra-prod-github-app

Copy link
Copy Markdown

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://gateway-cloud-softwarefactory.apps.ocp.cloud.ci.centos.org/zuul/t/rdoproject.org/buildset/51d1ec4ed9e84ab6a3ed8a5c864988c7

telemetry-openstack-meta-content-provider-master FAILURE in 35m 57s
⚠️ functional-chargeback-tests-osp18 SKIPPED Skipped due to failed job telemetry-openstack-meta-content-provider-master
⚠️ functional-tests-osp18 SKIPPED Skipped due to failed job telemetry-openstack-meta-content-provider-master

@ayefimov-1

Copy link
Copy Markdown
Contributor Author

recheck

@centosinfra-prod-github-app

Copy link
Copy Markdown

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://gateway-cloud-softwarefactory.apps.ocp.cloud.ci.centos.org/zuul/t/rdoproject.org/buildset/861f01adf4614de78f6600e92de2ad6b

✔️ telemetry-openstack-meta-content-provider-master SUCCESS in 2h 50m 10s
functional-chargeback-tests-osp18 FAILURE in 1h 37m 30s
✔️ functional-tests-osp18 SUCCESS in 2h 11m 15s

@centosinfra-prod-github-app

Copy link
Copy Markdown

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://gateway-cloud-softwarefactory.apps.ocp.cloud.ci.centos.org/zuul/t/rdoproject.org/buildset/13c0d33b40f74ab98d9d3ae4e322139b

✔️ telemetry-openstack-meta-content-provider-master SUCCESS in 3h 06m 04s
functional-chargeback-tests-osp18 FAILURE in 1h 44m 03s
✔️ functional-tests-osp18 SUCCESS in 2h 20m 27s

@centosinfra-prod-github-app

Copy link
Copy Markdown

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://gateway-cloud-softwarefactory.apps.ocp.cloud.ci.centos.org/zuul/t/rdoproject.org/buildset/3c889032f2bc493cb163a2c83abc9299

✔️ telemetry-openstack-meta-content-provider-master SUCCESS in 2h 50m 24s
functional-chargeback-tests-osp18 FAILURE in 1h 43m 50s
✔️ functional-tests-osp18 SUCCESS in 2h 10m 05s

@centosinfra-prod-github-app

Copy link
Copy Markdown

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://gateway-cloud-softwarefactory.apps.ocp.cloud.ci.centos.org/zuul/t/rdoproject.org/buildset/43344e91f55540ea978b1701da066181

✔️ telemetry-openstack-meta-content-provider-master SUCCESS in 2h 59m 15s
functional-chargeback-tests-osp18 FAILURE in 1h 35m 02s
✔️ functional-tests-osp18 SUCCESS in 2h 19m 05s

@centosinfra-prod-github-app

Copy link
Copy Markdown

This change depends on a change that failed to merge.

Change #388 is needed.

@ayefimov-1

Copy link
Copy Markdown
Contributor Author

recheck

@centosinfra-prod-github-app

Copy link
Copy Markdown

Merge Failed.

This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset.
Warning:
Error merging github.com/infrawatch/feature-verification-tests for 399,8befed48256feecb43d7663beedf2bda5b8f5172

@ayefimov-1

Copy link
Copy Markdown
Contributor Author

recheck

@centosinfra-prod-github-app

Copy link
Copy Markdown

Merge Failed.

This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset.
Warning:
Error merging github.com/infrawatch/feature-verification-tests for 399,8befed48256feecb43d7663beedf2bda5b8f5172

@ayefimov-1

Copy link
Copy Markdown
Contributor Author

recheck

@centosinfra-prod-github-app

Copy link
Copy Markdown

Merge Failed.

This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset.
Warning:
Error merging github.com/infrawatch/feature-verification-tests for 399,8befed48256feecb43d7663beedf2bda5b8f5172

@centosinfra-prod-github-app

Copy link
Copy Markdown

Merge Failed.

This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset.
Warning:
Error merging github.com/infrawatch/feature-verification-tests for 399,fe24ad5ed076df1f68ca52c6728608900457bd1a

@ayefimov-1

Copy link
Copy Markdown
Contributor Author

recheck

@centosinfra-prod-github-app

Copy link
Copy Markdown

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://gateway-cloud-softwarefactory.apps.ocp.cloud.ci.centos.org/zuul/t/rdoproject.org/buildset/38609aaea42d4bf9a5a7cff9504d2ee7

✔️ telemetry-openstack-meta-content-provider-master SUCCESS in 2h 37m 44s
✔️ functional-chargeback-tests-osp18 SUCCESS in 2h 11m 39s
functional-tests-osp18 POST_FAILURE in 23m 12s

@centosinfra-prod-github-app

Copy link
Copy Markdown

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://gateway-cloud-softwarefactory.apps.ocp.cloud.ci.centos.org/zuul/t/rdoproject.org/buildset/ccba34254851413fac9c882e62a1bdc0

✔️ telemetry-openstack-meta-content-provider-master SUCCESS in 33m 36s
functional-chargeback-tests-osp18 NODE_FAILURE Node(set) request 099-0000132651 failed in 0s
functional-tests-osp18 NODE_FAILURE Node(set) request 099-0000132652 failed in 0s

@ayefimov-1

Copy link
Copy Markdown
Contributor Author

recheck

@centosinfra-prod-github-app

Copy link
Copy Markdown

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://gateway-cloud-softwarefactory.apps.ocp.cloud.ci.centos.org/zuul/t/rdoproject.org/buildset/64c06b1eb2d54d29bdb7adfc17236a20

✔️ telemetry-openstack-meta-content-provider-master SUCCESS in 2h 49m 02s
functional-chargeback-tests-osp18 FAILURE in 1h 55m 20s
✔️ functional-tests-osp18 SUCCESS in 2h 23m 45s

@centosinfra-prod-github-app

Copy link
Copy Markdown

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://gateway-cloud-softwarefactory.apps.ocp.cloud.ci.centos.org/zuul/t/rdoproject.org/buildset/a7dd094165394bf39a44b8782a8d072a

✔️ telemetry-openstack-meta-content-provider-master SUCCESS in 2h 46m 06s
functional-chargeback-tests-osp18 FAILURE in 1h 58m 27s
✔️ functional-tests-osp18 SUCCESS in 2h 21m 03s

@centosinfra-prod-github-app

Copy link
Copy Markdown

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://gateway-cloud-softwarefactory.apps.ocp.cloud.ci.centos.org/zuul/t/rdoproject.org/buildset/be5f10928b8d44c08e51d89387850016

✔️ telemetry-openstack-meta-content-provider-master SUCCESS in 2h 52m 09s
functional-chargeback-tests-osp18 FAILURE in 2h 12m 47s
✔️ functional-tests-osp18 SUCCESS in 2h 24m 22s

@centosinfra-prod-github-app

Copy link
Copy Markdown

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://gateway-cloud-softwarefactory.apps.ocp.cloud.ci.centos.org/zuul/t/rdoproject.org/buildset/60d9789e355547c6a9ab671985835ad1

✔️ telemetry-openstack-meta-content-provider-master SUCCESS in 47m 26s
functional-chargeback-tests-osp18 FAILURE in 23m 35s
functional-tests-osp18 FAILURE in 24m 21s

@ayefimov-1

Copy link
Copy Markdown
Contributor Author

recheck

@ayefimov-1

Copy link
Copy Markdown
Contributor Author

recheck

@centosinfra-prod-github-app

Copy link
Copy Markdown

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://gateway-cloud-softwarefactory.apps.ocp.cloud.ci.centos.org/zuul/t/rdoproject.org/buildset/31284bd48dd349528c7632bc5592f26c

✔️ telemetry-openstack-meta-content-provider-master SUCCESS in 57m 12s
functional-chargeback-tests-osp18 FAILURE in 29m 12s
functional-tests-osp18 FAILURE in 24m 07s

@ayefimov-1

Copy link
Copy Markdown
Contributor Author

Added depends-on

Recheck

@ayefimov-1

Copy link
Copy Markdown
Contributor Author

recheck

@centosinfra-prod-github-app

Copy link
Copy Markdown

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://gateway-cloud-softwarefactory.apps.ocp.cloud.ci.centos.org/zuul/t/rdoproject.org/buildset/8018d2719fa843519e024278616ce277

✔️ telemetry-openstack-meta-content-provider-master SUCCESS in 2h 49m 39s
functional-chargeback-tests-osp18 FAILURE in 2h 08m 48s
✔️ functional-tests-osp18 SUCCESS in 2h 20m 14s

@centosinfra-prod-github-app

Copy link
Copy Markdown

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://gateway-cloud-softwarefactory.apps.ocp.cloud.ci.centos.org/zuul/t/rdoproject.org/buildset/700e73c960be401f8f626feee070c0d6

✔️ telemetry-openstack-meta-content-provider-master SUCCESS in 2h 33m 43s
functional-chargeback-tests-osp18 FAILURE in 2h 01m 24s
functional-tests-osp18 FAILURE in 2h 10m 25s

@centosinfra-prod-github-app

Copy link
Copy Markdown

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://gateway-cloud-softwarefactory.apps.ocp.cloud.ci.centos.org/zuul/t/rdoproject.org/buildset/9619a4a747c943029f5217c0acdc3f4c

✔️ telemetry-openstack-meta-content-provider-master SUCCESS in 2h 38m 54s
functional-chargeback-tests-osp18 FAILURE in 2h 10m 20s
✔️ functional-tests-osp18 SUCCESS in 2h 14m 51s

@centosinfra-prod-github-app

Copy link
Copy Markdown

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://gateway-cloud-softwarefactory.apps.ocp.cloud.ci.centos.org/zuul/t/rdoproject.org/buildset/dd5e62fb399a41759061c981a486ebe8

telemetry-openstack-meta-content-provider-master FAILURE in 20m 02s
⚠️ functional-chargeback-tests-osp18 SKIPPED Skipped due to failed job telemetry-openstack-meta-content-provider-master
⚠️ functional-tests-osp18 SKIPPED Skipped due to failed job telemetry-openstack-meta-content-provider-master

@ayefimov-1

Copy link
Copy Markdown
Contributor Author

recheck

@centosinfra-prod-github-app

Copy link
Copy Markdown

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://gateway-cloud-softwarefactory.apps.ocp.cloud.ci.centos.org/zuul/t/rdoproject.org/buildset/ab19b92bf02142d4a114bcee4288484a

✔️ telemetry-openstack-meta-content-provider-master SUCCESS in 2h 46m 16s
functional-chargeback-tests-osp18 FAILURE in 2h 10m 14s
✔️ functional-tests-osp18 SUCCESS in 2h 19m 57s

@centosinfra-prod-github-app

Copy link
Copy Markdown

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://gateway-cloud-softwarefactory.apps.ocp.cloud.ci.centos.org/zuul/t/rdoproject.org/buildset/c289d234191a414cb7111d755ca6ea70

✔️ telemetry-openstack-meta-content-provider-master SUCCESS in 3h 44m 25s
functional-chargeback-tests-osp18 TIMED_OUT in 3h 23m 05s
✔️ functional-tests-osp18 SUCCESS in 2h 20m 13s

@centosinfra-prod-github-app

Copy link
Copy Markdown

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://gateway-cloud-softwarefactory.apps.ocp.cloud.ci.centos.org/zuul/t/rdoproject.org/buildset/e2627f5817904736a2b95f09ec3f0782

✔️ telemetry-openstack-meta-content-provider-master SUCCESS in 3h 45m 24s
functional-chargeback-tests-osp18 TIMED_OUT in 3h 23m 01s
✔️ functional-tests-osp18 SUCCESS in 2h 24m 16s

@centosinfra-prod-github-app

Copy link
Copy Markdown

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://gateway-cloud-softwarefactory.apps.ocp.cloud.ci.centos.org/zuul/t/rdoproject.org/buildset/af117b90fc804ed1a532fb53168758c2

✔️ telemetry-openstack-meta-content-provider-master SUCCESS in 3h 06m 18s
✔️ telemetry-container-image-content-provider SUCCESS in 2h 43m 28s
functional-chargeback-tests-osp18 FAILURE in 2h 03m 19s
✔️ functional-audit-logging-tests-osp18 SUCCESS in 1h 32m 15s
✔️ functional-tests-osp18 SUCCESS in 2h 19m 51s
✔️ functional-logging-tests-osp18 SUCCESS in 1h 33m 46s
✔️ functional-periodic-telemetry-with-ceph SUCCESS in 2h 41m 51s

@centosinfra-prod-github-app

Copy link
Copy Markdown

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://gateway-cloud-softwarefactory.apps.ocp.cloud.ci.centos.org/zuul/t/rdoproject.org/buildset/7b899b74e69941a197253c01367ad8ab

✔️ telemetry-openstack-meta-content-provider-master SUCCESS in 2h 57m 35s
✔️ telemetry-container-image-content-provider SUCCESS in 2h 40m 01s
functional-chargeback-tests-osp18 FAILURE in 2h 07m 13s
✔️ functional-audit-logging-tests-osp18 SUCCESS in 1h 37m 56s
✔️ functional-tests-osp18 SUCCESS in 2h 17m 39s
✔️ functional-logging-tests-osp18 SUCCESS in 1h 36m 07s
✔️ functional-periodic-telemetry-with-ceph SUCCESS in 2h 34m 15s

@centosinfra-prod-github-app

Copy link
Copy Markdown

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://gateway-cloud-softwarefactory.apps.ocp.cloud.ci.centos.org/zuul/t/rdoproject.org/buildset/c9bd9546b0ad4a16ac5f5ebda9b364e3

✔️ telemetry-openstack-meta-content-provider-master SUCCESS in 2h 47m 14s
✔️ telemetry-container-image-content-provider SUCCESS in 2h 46m 51s
✔️ functional-chargeback-tests-osp18 SUCCESS in 2h 08m 30s
✔️ functional-audit-logging-tests-osp18 SUCCESS in 1h 41m 01s
✔️ functional-tests-osp18 SUCCESS in 2h 24m 34s
✔️ functional-logging-tests-osp18 SUCCESS in 1h 48m 17s
functional-periodic-telemetry-with-ceph FAILURE in 31m 54s

@centosinfra-prod-github-app

Copy link
Copy Markdown

Zuul encountered a syntax error while parsing its
configuration in the repo openstack-k8s-operators/mysqld_exporter on branch main. The
problem was:

Job telemetry-container-image-content-provider not defined

The problem appears in the "openstack-k8s-operators/mysqld_exporter" project stanza:

project:
name: openstack-k8s-operators/mysqld_exporter
github-check:
jobs:
- telemetry-container-image-content-provider:
override-checkout: master
vars:
container_images:
- src: "{{ ansible_user_dir }}/src/github.com/openstack-k8s-operators/mysqld_exporter"
...

in "openstack-k8s-operators/mysqld_exporter/.zuul.yaml@main", line 2

2 similar comments
@centosinfra-prod-github-app

Copy link
Copy Markdown

Zuul encountered a syntax error while parsing its
configuration in the repo openstack-k8s-operators/mysqld_exporter on branch main. The
problem was:

Job telemetry-container-image-content-provider not defined

The problem appears in the "openstack-k8s-operators/mysqld_exporter" project stanza:

project:
name: openstack-k8s-operators/mysqld_exporter
github-check:
jobs:
- telemetry-container-image-content-provider:
override-checkout: master
vars:
container_images:
- src: "{{ ansible_user_dir }}/src/github.com/openstack-k8s-operators/mysqld_exporter"
...

in "openstack-k8s-operators/mysqld_exporter/.zuul.yaml@main", line 2

@centosinfra-prod-github-app

Copy link
Copy Markdown

Zuul encountered a syntax error while parsing its
configuration in the repo openstack-k8s-operators/mysqld_exporter on branch main. The
problem was:

Job telemetry-container-image-content-provider not defined

The problem appears in the "openstack-k8s-operators/mysqld_exporter" project stanza:

project:
name: openstack-k8s-operators/mysqld_exporter
github-check:
jobs:
- telemetry-container-image-content-provider:
override-checkout: master
vars:
container_images:
- src: "{{ ansible_user_dir }}/src/github.com/openstack-k8s-operators/mysqld_exporter"
...

in "openstack-k8s-operators/mysqld_exporter/.zuul.yaml@main", line 2

@ayefimov-1

Copy link
Copy Markdown
Contributor Author

recheck

@centosinfra-prod-github-app

Copy link
Copy Markdown

Zuul encountered a syntax error while parsing its
configuration in the repo openstack-k8s-operators/mysqld_exporter on branch main. The
problem was:

Job telemetry-container-image-content-provider not defined

The problem appears in the "openstack-k8s-operators/mysqld_exporter" project stanza:

project:
name: openstack-k8s-operators/mysqld_exporter
github-check:
jobs:
- telemetry-container-image-content-provider:
override-checkout: master
vars:
container_images:
- src: "{{ ansible_user_dir }}/src/github.com/openstack-k8s-operators/mysqld_exporter"
...

in "openstack-k8s-operators/mysqld_exporter/.zuul.yaml@main", line 2

@centosinfra-prod-github-app

Copy link
Copy Markdown

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://gateway-cloud-softwarefactory.apps.ocp.cloud.ci.centos.org/zuul/t/rdoproject.org/buildset/41520ecaad5447c0b584bdefcd926c6f

✔️ telemetry-openstack-meta-content-provider-master SUCCESS in 2h 53m 51s
functional-chargeback-tests-osp18 POST_FAILURE in 24m 13s
✔️ functional-tests-osp18 SUCCESS in 2h 29m 00s

This commit consolidates all enhancements to the telemetry_chargeback role:

Major Features:
- Implement job-level total rate accumulation across scenarios
- Add total_rate_job variable to track cumulative rates
- Display accumulated total at job completion
- Rename total_rating → total_rate_scenario for clarity

CloudKitty Rate Calculation Fixes:
- Fix transformation order: conversion BEFORE mutation (per CloudKitty docs)
- Add factor/offset unit conversion support (e.g., bytes to GiB)
- Implement mutate transformations (CEIL, FLOOR, NUMBOOL, NOTNUMBOOL)
- Add fraction parser for factor values (e.g., '1/1048576')

Data Generation Improvements:
- Remove time_step_gap for exact timestep division
- Generate timesteps that exactly divide the time range
- Set end_time to 2 hours before current time (not current time)
- Fix sequential scenario time ranges (no overlap)

Test Scenario Updates:
- Update test_dyn_basic.yml: step_seconds 14400→600, add factor conversions
- Update test_static.yml: step_seconds 7200→600, add factor conversions
- Use realistic CloudKitty unit conversion patterns
- Increase limit: 50→1500 to handle more data entries

Lint and Validation:
- Fix yamllint line length warnings (80 char limit)
- Use multi-line YAML formatting (>-) for long lines
- Pass ansible-lint production profile
- Python PEP8 compliant

Files Changed:
- defaults/main.yml: Increase limit, add output file paths
- vars/main.yml: Add total_rate_job initialization
- tasks/main.yml, run_test_scenarios.yml: Add accumulation logic
- tasks/loki_total_rate.yml: Add job total display
- files/gen_db_summary.py: Fix rate calculation, rename field
- files/gen_synth_loki_data.py: Fix timestep generation, add end_time offset
- files/test_*.yml: Update step_seconds, add factor fields

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@centosinfra-prod-github-app

Copy link
Copy Markdown

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://gateway-cloud-softwarefactory.apps.ocp.cloud.ci.centos.org/zuul/t/rdoproject.org/buildset/440e21b4e1364f62a988c9a5f038877c

✔️ telemetry-openstack-meta-content-provider-master SUCCESS in 2h 40m 24s
functional-chargeback-tests-osp18 FAILURE in 1h 33m 02s
✔️ functional-tests-osp18 SUCCESS in 2h 18m 29s

The scenario names in cloudkitty_test_scenarios were defined with .yml
extension, but tasks/main.yml strips the extension and vars/main.yml
adds it back, resulting in paths like 'test_static.yml.yml'.

Fixed by removing .yml extension from scenario names in defaults/main.yml.

The regex_replace in tasks/main.yml will now operate on names without
extensions, and vars/main.yml will correctly add .yml once.

Before: test_static.yml → (strip .yml) → test_static → (add .yml) → test_static.yml ✓
After:  test_static → (no match) → test_static → (add .yml) → test_static.yml ✓
During the squash, the task that sets cloudkitty_test_file dynamically
was lost. This task overrides the vars/main.yml defaults with
scenario-specific values at runtime.

Without this task, cloudkitty_test_file uses the vars/main.yml default
which includes {{ scenario_name }}.yml, but scenario_name already has
.yml extension from cloudkitty_test_scenarios list, resulting in
double extensions like 'test_static.yml.yml'.

This restores the dynamic variable setting task that was in the
working version, allowing scenario_name to include .yml extension
in the list while the task constructs the correct file path.
@centosinfra-prod-github-app

Copy link
Copy Markdown

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://gateway-cloud-softwarefactory.apps.ocp.cloud.ci.centos.org/zuul/t/rdoproject.org/buildset/fbc82d9cd68f47ddaaa315ac33fb8684

✔️ telemetry-openstack-meta-content-provider-master SUCCESS in 2h 40m 24s
functional-chargeback-tests-osp18 FAILURE in 1h 39m 54s
✔️ functional-tests-osp18 SUCCESS in 2h 18m 40s

The dynamic variable setting task was incorrectly added in commit d3eccc9
but is NOT present in master and is NOT needed.

The variables cloudkitty_data_file, cloudkitty_synth_totals_file, and
cloudkitty_test_file are already defined in defaults/main.yml and
vars/main.yml with {{ scenario_name }} placeholders.

Ansible automatically re-evaluates these variables in each loop iteration
with the current scenario_name value - no explicit override is needed.

This restores gen_synth_loki_data.yml to match master's working
implementation and should fix the double .yml extension issue
(test_dyn_basic.yml.yml) seen in CI.

Master's approach:
  1. defaults/vars define variables with {{ scenario_name }}
  2. tasks/main.yml regex_replace strips .yml from scenario names
  3. Loop sets scenario_name (without .yml)
  4. Ansible re-evaluates variables automatically
  5. Result: correct paths with single .yml extension
@centosinfra-prod-github-app

Copy link
Copy Markdown

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://gateway-cloud-softwarefactory.apps.ocp.cloud.ci.centos.org/zuul/t/rdoproject.org/buildset/cbe86be6077a4ae680e45a26c84b1b06

✔️ telemetry-openstack-meta-content-provider-master SUCCESS in 2h 33m 35s
functional-chargeback-tests-osp18 FAILURE in 1h 34m 26s
✔️ functional-tests-osp18 SUCCESS in 2h 11m 09s

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant