From 4d98efe04a243c078c74e46e14d00e3bf00fc537 Mon Sep 17 00:00:00 2001 From: malingatembo Date: Thu, 5 Nov 2026 14:48:03 +0100 Subject: [PATCH 1/2] [ci] Use real OpenAI credencials for Lighspeed application tests Disabled the mock provider and use gpt-4o-mini throught the OpenAi end point. Instead of the dummy tocken, provider secrete created through the pre-run is used. Signed-off-by: malingatembo --- zuul.d/jobs.yaml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/zuul.d/jobs.yaml b/zuul.d/jobs.yaml index e0ebf56..058aa86 100644 --- a/zuul.d/jobs.yaml +++ b/zuul.d/jobs.yaml @@ -108,18 +108,15 @@ mountPath: /var/run/secrets/kubernetes.io/serviceaccount readOnly: true - # Fake LLM only; real-provider credentials are a follow-up. - cifmw_openstack_lightspeed_mock_enabled: true + cifmw_openstack_lightspeed_mock_enabled: false # Operator catalog image from content-provider dependency cifmw_openstack_lightspeed_catalog_image: "{{ content_provider_registry_ip }}:5001/openstack-k8s-operators/lightspeed-operator-index:{{ zuul.patchset }}" - # Mock provider deployed by the operator-owned hook - cifmw_openstack_lightspeed_llm_endpoint: "http://mock-llm-api-server-pod.openstack-lightspeed.svc.cluster.local:8000/v1" + # Use provider secrets created by the pre-run playbook + cifmw_openstack_lightspeed_llm_endpoint: "https://api.openai.com/v1" cifmw_openstack_lightspeed_llm_endpoint_type: "openai" - cifmw_openstack_lightspeed_model_name: "example-model" - # Replace the pre-run provider token with a dummy value for the mock. - cifmw_openstack_lightspeed_api_token: "dummy-token-for-ci" + cifmw_openstack_lightspeed_model_name: "gpt-4o-mini" cifmw_os_must_gather_additional_namespaces: "openstack-lightspeed" cifmw_os_must_gather_omc: false From a8a5de07dbbf326d483abd6707d9a853ab8c81be Mon Sep 17 00:00:00 2001 From: malingatembo Date: Wed, 11 Nov 2026 14:17:56 +0100 Subject: [PATCH 2/2] [ci] prevent newlines in OpenAI API token secretes Trim surrounding whitespace from the token and disable ansibles automatic stdin /n. Signed-off-by: malingatembo --- ci/playbooks/create_lightspeed_secret.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ci/playbooks/create_lightspeed_secret.yml b/ci/playbooks/create_lightspeed_secret.yml index 2146049..1302182 100644 --- a/ci/playbooks/create_lightspeed_secret.yml +++ b/ci/playbooks/create_lightspeed_secret.yml @@ -70,5 +70,6 @@ --from-file=apitoken=/dev/stdin -n {{ _lightspeed_namespace }} --dry-run=client -o yaml | oc apply -f - - stdin: "{{ openai_credentials.api_token }}" + stdin: "{{ openai_credentials.api_token | trim }}" + stdin_add_newline: false no_log: true