Skip to content

Add CI job for lightspeed operator deployment - #65

Open
malingatembo wants to merge 24 commits into
openstack-k8s-operators:mainfrom
malingatembo:add-deployment-job-osprh-33343
Open

Add CI job for lightspeed operator deployment#65
malingatembo wants to merge 24 commits into
openstack-k8s-operators:mainfrom
malingatembo:add-deployment-job-osprh-33343

Conversation

@malingatembo

@malingatembo malingatembo commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Creates lightspeed-operator-deployment-crc job that:

  • Deploys operator using ci-framework playbook
  • Uses example LLM endpoint (no real credentials)
  • Expected to fail on auth verification

JIRA: OSPRH-33344

Depends-On: openstack-k8s-operators/ci-framework#4108

@openshift-ci
openshift-ci Bot requested review from lpiwowar and umago August 24, 2026 16:59
@openshift-ci

openshift-ci Bot commented Aug 24, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: malingatembo
Once this PR has been reviewed and has the lgtm label, please assign lpiwowar 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

@coderabbitai

coderabbitai Bot commented Aug 24, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Central YAML (base), Organization UI (inherited)

Review profile: CHILL

Plan: Advanced

Run ID: 521d9b48-6dbb-4229-9923-bb4d10a58aa5


Comment @coderabbitai help to get the list of available commands.

@malingatembo

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/a74e122b0c4444bbb791d46b748561d4

Warning:
Dependency cycle detected and project openstack-k8s-operators/ci-framework doesn't allow circular dependencies

@malingatembo

Copy link
Copy Markdown
Contributor Author

/recheck

@malingatembo

Copy link
Copy Markdown
Contributor Author

recheck

1 similar comment
@malingatembo

Copy link
Copy Markdown
Contributor Author

recheck

Comment thread .zuul.yaml Outdated
@malingatembo
malingatembo force-pushed the add-deployment-job-osprh-33343 branch from 0c3b371 to cecc1eb Compare August 25, 2026 14:41
@openstack-k8s-operators openstack-k8s-operators deleted a comment from umago Aug 25, 2026
@centosinfra-prod-github-app

Copy link
Copy Markdown

Unable to freeze job graph: Job lightspeed-operator-deployment-crc does not specify a run playbook

@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/b4235ec9de5a483a9faf996ac6962f87

lightspeed-operator-deployment-crc FAILURE in 29m 14s

Comment thread zuul.d/jobs.yaml Outdated
# CI job for deploying OpenStack Lightspeed operator
- job:
name: lightspeed-operator-deployment-crc
parent: cifmw-base-crc

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question (non-blocking): Does this job deploy OpenStack as well? I think it does not but I am not 100 % certain about it. In a long term it would be good if the job deployed OpenStack as well because then we can do some basic checks that involve MCP.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No no, this one only deploys OpenStack Lightspeed operator using the CRC ( so no full deployment of OpenStack control plane). for full OpenStack deployment + MCP integration testing, i think we'd need to add that to a seperate job or enhance this one - maybe we can keep track and have a seperate ticket for it

Comment thread zuul.d/jobs.yaml
- job:
name: lightspeed-operator-deployment-crc
parent: cifmw-base-crc
attempts: 1

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion (blocking): I think you want to add openstack-k8s-operators-content-provider job as a dependency [1]. This job builds the operator and then provides it to the "child" jobs that depend on it. This allows you to test the operator from a content in a PR.

[1] https://github.com/openstack-k8s-operators/openstack-operator/blob/aeda4eda1c71ae34dabc5b458e1340ab755f41a4/zuul.d/jobs.yaml#L35

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the pointer to this feature.. Yeah, I agree we should require a build from pr. I have make the change in ebf2560

Comment thread zuul.d/jobs.yaml
---
# CI job for deploying OpenStack Lightspeed operator
- job:
name: lightspeed-operator-deployment-crc

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion (non-blocking): If I were working on this I would be using autohold to investigate the job from the inside.

@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/0e7a9ed2f30341758ef0de3a8d1ed76c

lightspeed-operator-deployment-crc FAILURE in 20m 52s

@centosinfra-prod-github-app

Copy link
Copy Markdown

Unable to freeze job graph: Job lightspeed-operator-deployment-crc depends on openstack-k8s-operators-content-provider which was not run.

@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/35994b384a7147acb95d077b0d74de58

openstack-k8s-operators-content-provider FAILURE in 7m 04s
⚠️ lightspeed-operator-deployment-crc SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider

Comment thread ci/playbooks/lightspeed/run.yml Outdated
@@ -0,0 +1,17 @@
---

@lpiwowar lpiwowar Aug 27, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@malingatembo just FYI, you want to set the CONTAINER_TOOL to podman in Makefile. I've encountered it too:).

# CONTAINER_TOOL defines the container tool to be used for building images.
# Be aware that the target commands are only tested with Docker which is
# scaffolded by default. However, you might want to replace it to use other
# tools. (i.e. podman)
CONTAINER_TOOL ?= docker

Because of the failure in the job:

2026-08-26 17:01:59.168382 | controller | TASK [operator_build : lightspeed-operator - Call docker-build dry_run={{ cifmw_operator_build_dryrun|bool }}, chdir={{ operator.src }}, output_dir={{ cifmw_operator_build_basedir }}/artifacts, script=make docker-build, extra_args={'IMG': '{{ operator_img }}'}] ***
2026-08-26 17:01:59.168387 | controller | Wednesday 26 August 2026  17:01:59 +0000 (0:00:00.025)       0:02:31.959 ******
2026-08-26 17:01:59.168391 | controller | Wednesday 26 August 2026  17:01:59 +0000 (0:00:00.025)       0:02:31.958 ******
2026-08-26 17:01:59.315000 | controller | Follow script's output here: /home/zuul/ci-framework-data/logs/ci_script_002_lightspeed_operator_call_docke.log
2026-08-26 17:01:59.315047 | controller | An exception occurred during task execution. To see the full traceback, use -vvv. The error was: NoneType: None
2026-08-26 17:01:59.315054 | controller | task path: /home/zuul/src/github.com/openstack-k8s-operators/ci-framework/roles/operator_build/tasks/build.yml:163
2026-08-26 17:01:59.315059 | controller | fatal: [localhost]: FAILED! =>
2026-08-26 17:01:59.315066 | controller |     changed: true
2026-08-26 17:01:59.315072 | controller |     msg: non-zero return code
2026-08-26 17:01:59.315077 | controller |     rc: 2
2026-08-26 17:01:59.315082 | controller |     stderr: ''
2026-08-26 17:01:59.315088 | controller |     stderr_lines: []
2026-08-26 17:01:59.315093 | controller |     stdout: |
2026-08-26 17:01:59.315098 | controller |       ~/src/github.com/openstack-k8s-operators/lightspeed-operator ~/ci-framework-data/artifacts
2026-08-26 17:01:59.315104 | controller |       docker build --build-arg GOMAXPROCS= -t 38.129.56.96:5001/openstack-k8s-operators/lightspeed-operator:011ef9691d76dd9e4f494b1c25294ed98df09a39 .
2026-08-26 17:01:59.315110 | controller |       bash: line 1: docker: command not found
2026-08-26 17:01:59.315116 | controller |       make: *** [Makefile:184: docker-build] Error 127
2026-08-26 17:01:59.315122 | controller |     stdout_lines:
2026-08-26 17:01:59.315126 | controller |     - ~/src/github.com/openstack-k8s-operators/lightspeed-operator ~/ci-framework-data/artifacts
2026-08-26 17:01:59.315131 | controller |     - docker build --build-arg GOMAXPROCS= -t 38.129.56.96:5001/openstack-k8s-operators/lightspeed-operator:011ef9691d76dd9e4f494b1c25294ed98df09a39
2026-08-26 17:01:59.315137 | controller |       .
2026-08-26 17:01:59.315142 | controller |     - 'bash: line 1: docker: command not found'
2026-08-26 17:01:59.315146 | controller |     - 'make: *** [Makefile:184: docker-build] Error 127'

@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/ff62866e450d4e1e850f22ee6eb10dd1

✔️ openstack-k8s-operators-content-provider SUCCESS in 50m 09s
lightspeed-operator-deployment-crc FAILURE in 34m 52s

@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/5bc14ec4ea6f4fa499487e1eee7df6d2

✔️ openstack-k8s-operators-content-provider SUCCESS in 55m 18s
lightspeed-operator-deployment-crc FAILURE in 38m 04s

@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/e67f0258d7eb4e1b8808ff29911b9eda

✔️ openstack-k8s-operators-content-provider SUCCESS in 57m 53s
lightspeed-operator-deployment-crc FAILURE in 40m 43s

@malingatembo
malingatembo force-pushed the add-deployment-job-osprh-33343 branch from 63b4ae6 to b30b91e Compare August 31, 2026 08:52
@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/openstack-k8s-operators/lightspeed-operator for 65,b30b91e659f9390b7fd7043bfe29ec67c111cf30

@malingatembo
malingatembo force-pushed the add-deployment-job-osprh-33343 branch from b30b91e to fadb45e Compare August 31, 2026 09:43
@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/openstack-k8s-operators/lightspeed-operator for 65,fadb45e4c176a94db598b55606f5963310f2cbc5

Creates lightspeed-operator-deployment-crc job that:
- Deploys operator using ci-framework playbook
- Uses example LLM endpoint (no real credentials)
- Expected to fail on auth verification
- Inherits from cifmw-base-crc for CRC cluster provisioning

JIRA: OSPRH-33344
@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/53cf7f5a73f941588658dde6894f50a5

✔️ openstack-k8s-operators-content-provider SUCCESS in 58m 44s
lightspeed-operator-deployment-crc FAILURE in 36m 16s

Zuul generates its own ansible.cfg, ignoring repo's version.
Use host-vars to set ansible_collections_paths environment variable.

Changes:
- Remove ansible.cfg (unused by Zuul)
- Add host-vars.controller.ansible_collections_paths
- Points to both symlink location and ci-framework original

Addresses: cifmw.general.ci_script module resolution across
ansible-playbook process boundaries
Per feedback: Ensures Zuul clones ci-framework into workspace
before running playbooks, making collection available at standard path.

Changes:
- Add openstack-k8s-operators/ci-framework to required-projects
- Remove broken host-vars.ansible_collections_paths
  (Ansible expects ANSIBLE_COLLECTIONS_PATH env var, not inventory var)

Symlink in pre-run still needed to expose collection at ~/.ansible/collections
@lpiwowar

lpiwowar commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

@malingatembo you are missing Depends-On: the openstack-k8s-operators/ci-framework#4108 . The job is not using it:

2026-09-02 14:41:02.887186 | controller | ZUUL_CHANGES=openstack-k8s-operators/lightspeed-operator:main:refs/changes/65/65/3a3bf862519a0b5507517e372847990be9e2c0cd

Comment thread zuul.d/jobs.yaml Outdated
# CI job for deploying OpenStack Lightspeed operator
- job:
name: lightspeed-operator-deployment-crc
parent: cifmw-base-crc-openstack

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@malingatembo I'm still wondering whether the cifmw-base-crc-openstack is the right base job for us. If I was working on this I would probably try to use this parent job [1]. And then I would try to use the pre_tests_*: to execute your playbook. It has

  • the benefit of OpenStack already being deployed in that job (simplifies stuff for us later when we want to do the MCP testing) +
  • we have already working template we can follow [1] +
  • we can simply configure the test_operator to run the tests using config from Jan later (until we do that we can simply set cifmw_run_tests: false).

But I'm assuming you picked the job for a reason. This is just my thinking.

[1] https://github.com/openstack-k8s-operators/test-operator/blob/f78e6f266803cfaffdb0ae6c12ce0138991bab71/zuul.d/jobs.yaml#L24

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right, [1] use a parent that already has open stack, that way we can just deploy lightspeed operator in pre_test hook. On it!

@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/97934e029dec42238f7e3a02856ce16c

✔️ openstack-k8s-operators-content-provider SUCCESS in 21m 01s
lightspeed-operator-deployment-crc NODE_FAILURE Node(set) request 099-0000190913 failed in 0s

Follow pattern from test-operator: use parent job that provides
fully deployed OpenStack environment, then deploy our operator
on top via pre_tests hook.

Depends-On: openstack-k8s-operators/ci-framework#4108
@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/56fd9f1b16da4e3eac8c3eb58665a3bb

✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 22m 18s
lightspeed-operator-deployment-crc FAILURE in 1h 22m 33s

@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/083af8f126fa446b89c46ea6e87c8930

✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 52m 08s
lightspeed-operator-deployment-crc FAILURE in 1h 16m 44s

Comment thread zuul.d/jobs.yaml
@@ -0,0 +1,28 @@
---

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@malingatembo nice progress, it got the point of execution of the playbook! 🎉 Here are the logs from the hook with the exact failure if that helps [1]. I would take a look in the autohold whether the used image is really the correct one:

cifmw_openstack_lightspeed_catalog_image: "{{ content_provider_registry_ip }}:5001/openstack-k8s-operators/openstack-lightspeed-operator-catalog:{{ zuul.patchset }}"

According to [2] I would try this with a little bit of investigation:

# 38.102.83.44:5001/openstack-k8s-operators/lightspeed-operator-index:8cb8895710d6b31d03fcbb1879e062184412e93a
cifmw_openstack_lightspeed_catalog_image: "{{ content_provider_registry_ip }}:5001/openstack-k8s-operators/lightspeed-operator-index:{{ zuul.patchset }}"

Btw you are still missing the Depends-On: 🙈

[1] https://gateway-cloud-softwarefactory.apps.ocp.cloud.ci.centos.org/logs//ff6/rdoproject.org/ff663b9e238d4cec984446cb5ec639ec/controller/ci-framework-data/logs/ci_script_023_run_hook_without_retry_deploy.log
[2] https://gateway-cloud-softwarefactory.apps.ocp.cloud.ci.centos.org/logs//89b/rdoproject.org/89b0b1e9bcf24502ac23dd8a14c4b52d/ci-framework-data/logs/ci_script_007_lightspeed_operator_call_catal.log

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for you assistance and guidance in debugging this @lpiwowar ++

Test  install-openstack-lightspeed.yml playbook to complete
deployment without requiring real LLM credentials.
@malingatembo
malingatembo force-pushed the add-deployment-job-osprh-33343 branch from 8cb8895 to 1cb0027 Compare September 4, 2026 13:56
@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/cf5697d17b0741fcbc0421f6f8079508

✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 58m 58s
lightspeed-operator-deployment-crc FAILURE in 1h 40m 34s

@malingatembo

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/92146d579f02457182a6048966bc438b

✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 30m 28s
lightspeed-operator-deployment-crc FAILURE in 1h 09m 09s

@malingatembo

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/41a3611246ca48ce847752e4e0cb5c41

✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 26m 22s
lightspeed-operator-deployment-crc FAILURE in 1h 10m 08s

@malingatembo

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/110c98eaa07e4a9d9a471a64653b03f1

✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 29m 48s
lightspeed-operator-deployment-crc FAILURE in 1h 13m 40s

@lpiwowar

lpiwowar commented Sep 8, 2026

Copy link
Copy Markdown
Collaborator

Nice @malingatembo, according to the logs it looks like the OpenStack Lightspeed operator got deployed in the job! 🎉

Two notes:

  1. There should be assert on the OpenStackLightspeed CR to confirm that OpenStack Lightspeed was deployed successfully [1]. Right now the playbook only creates OpenStack Lightspeed but it does not confirm whether the deployment was successful. You can for example look for Setup Complete in the status section. Right now the job succeeds and it probably should not (because the LLM token is made up and so the additional certificate).

  2. As already discussed the creation of the CA certificate configmap and its mounting into OpenStack Lightspeed CR should be ideally conditional. Sometimes we do not need to pass custom CA certificate to OpenStack Lightspeed. For example, when talking to OpenAI because the CA certificate is already part of the default bundle in the container. So I would create the CM and pass it to OpenStack Lightspeed via the CR only when the "user" passes to the playbook either cifmw_openstack_lightspeed_ca_cert_url or cifmw_openstack_lightspeed_ca_cert. You are already creating the CM only when necessary now it is just about ensuring that you do not pass the value to OpenStack Lightspeed CR when not necessary:).

[1] https://github.com/openstack-k8s-operators/ci-framework/pull/4108/changes#diff-cc1f203fd237d3ffe937880e51fb432bfbc5c3d753cbf5816e3b73271c0d7215R185
[2] https://github.com/openstack-k8s-operators/ci-framework/pull/4108/changes#diff-cc1f203fd237d3ffe937880e51fb432bfbc5c3d753cbf5816e3b73271c0d7215R199

Testing the CR readiness verification added to ci-framework.
Expected: Job will fail at assert step (proving validation works)
since we're using dummy credentials."

Depends-On: openstack-k8s-operators/ci-framework#4108
@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/b2a071d92a824b46a0b5d7a2afd03ad3

openstack-k8s-operators-content-provider FAILURE in 10m 30s
⚠️ lightspeed-operator-deployment-crc SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider

Comment thread zuul.d/jobs.yaml
name: lightspeed-operator-deployment-crc
parent: podified-multinode-hci-deployment-crc-1comp-backends
attempts: 1
pre-run: ci/playbooks/lightspeed/pre-run.yaml

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not typical in a ci-framework-based job. Is this a temporary thing for debugging with autohold?

Comment thread zuul.d/jobs.yaml
- openstack-k8s-operators/lightspeed-operator
- openstack-k8s-operators/ci-framework
vars:
zuul_work_dir: "{{ ansible_user_dir }}/{{ zuul.projects['github.com/openstack-k8s-operators/lightspeed-operator'].src_dir }}"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This might mess up other things that depend on zuul_work_dir.

You can set the path in the source for the playbook on line 18

Comment thread zuul.d/jobs.yaml Outdated
- openstack-k8s-operators/ci-framework
vars:
zuul_work_dir: "{{ ansible_user_dir }}/{{ zuul.projects['github.com/openstack-k8s-operators/lightspeed-operator'].src_dir }}"
pre_tests:

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: this overrides all other pre_tests hooks. The preferred way to define is to define a single hook in its own parameter [1]. The format of the var switches to a dict instead of a list of dicts, and ciframework takes care of identifying the hooks and running them at the appropriate time.

The hook name format is <hook stage>_<hook name> e.g. pre_tests_install_openstack_lightspeed, and the hooks are run in alphabetical order, so the name is often prefixed with a number.

There are some examples from telemetry-operator in [2]

[1] https://github.com/openstack-k8s-operators/ci-framework/tree/main/roles/run_hook#single-hook-in-its-own-parameter
[2] https://github.com/openstack-k8s-operators/telemetry-operator/blob/main/ci/vars-cloudkitty-tempest.yml
[3] https://github.com/openstack-k8s-operators/telemetry-operator/blob/main/ci/vars-audit-logging.yml
[4] https://github.com/infrawatch/feature-verification-tests/blob/master/ci/vars-cloudkitty-fvt.yml

Changed from list format that overrides all pre_tests hooks to
single hook parameter format that merges with other hooks.

chages:
- Changed from list format `- name:` to dict format
- Removed name field (derived from parameter name)
- Added 01 prefix to ensure deployment runs before other pre_tests
  hooksZZ
@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/0435522cf94d48b1bfa41373406a60c8

✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 38m 24s
lightspeed-operator-deployment-crc FAILURE in 1h 17m 18s

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.

4 participants