Skip to content

Read whitebox DB password from osp-secret - #4090

Open
ashu-011 wants to merge 1 commit into
openstack-k8s-operators:mainfrom
ashu-011:fix/whitebox-db-password
Open

Read whitebox DB password from osp-secret#4090
ashu-011 wants to merge 1 commit into
openstack-k8s-operators:mainfrom
ashu-011:fix/whitebox-db-password

Conversation

@ashu-011

@ashu-011 ashu-011 commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

install_yamls PR openstack-k8s-operators/install_yamls#1158 replaced hardcoded passwords with dynamically generated per-service secrets. Whitebox Tempest needs Galera root credentials via whitebox-database.password, which must match DbRootPassword in osp-secret.
Fetch DbRootPassword from osp-secret at runtime and inject it into tempestconfRun.overrides (including workflow steps) before applying the Tempest CR.

@openshift-ci

openshift-ci Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign arxcruz for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

install_yamls PR openstack-k8s-operators/install_yamls#1158 replaced
hardcoded passwords with dynamically generated per-service secrets.
Whitebox Tempest needs Galera root credentials via
whitebox-database.password, which must match DbRootPassword in
osp-secret.
Fetch DbRootPassword from osp-secret at runtime and inject it into
tempestconfRun.overrides (including workflow steps) before applying the
Tempest CR.
@ashu-011
ashu-011 force-pushed the fix/whitebox-db-password branch from 57d678e to 29ee50b Compare August 6, 2026 05:52
sbauza added a commit to sbauza/ci-framework that referenced this pull request Aug 6, 2026
install_yamls PR openstack-k8s-operators/install_yamls#1158 replaced
hardcoded passwords with dynamically generated per-service secrets.
The whitebox_tempest_plugin tempestconf overrides still reference the
old hardcoded whitebox-database.password value ("12345678"), causing
Access Denied errors against Galera.

As a short-term fix, pin DB_ROOT_PASSWORD in the HCI ceph scenario
so that the deployed Galera root password matches what whitebox
tempest expects. A proper long-term fix (reading DbRootPassword from
osp-secret at runtime) is tracked in openstack-k8s-operators#4090.

Signed-off-by: Sylvain Bauza <sbauza@redhat.com>
Assisted-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
sbauza added a commit to sbauza/ci-framework that referenced this pull request Aug 6, 2026
install_yamls PR openstack-k8s-operators/install_yamls#1158 replaced
hardcoded passwords with dynamically generated per-service secrets.
The whitebox_tempest_plugin tempestconf overrides still reference the
old hardcoded whitebox-database.password value ("12345678"), causing
Access Denied errors against Galera.

As a short-term fix, pin DB_ROOT_PASSWORD in the HCI ceph scenario
so that the deployed Galera root password matches what whitebox
tempest expects. A proper long-term fix (reading DbRootPassword from
osp-secret at runtime) is tracked in openstack-k8s-operators#4090.

Signed-off-by: Sylvain Bauza <sbauza@redhat.com>
Assisted-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant