Skip to content

[ci] Omit unready images from deploy-validation injection - #130

Draft
rebtoor wants to merge 1 commit into
openstack-k8s-operators:mainfrom
rebtoor:skip-unready-osversion-images
Draft

[ci] Omit unready images from deploy-validation injection#130
rebtoor wants to merge 1 commit into
openstack-k8s-operators:mainfrom
rebtoor:skip-unready-osversion-images

Conversation

@rebtoor

@rebtoor rebtoor commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Summary

s2i-openstack-deploy-validation injects mapped s2i images into
OpenStackVersion during edpm_prepare. Neutron API, neutron
metadata-agent, and MariaDB/Galera cannot consume those images yet, so
this job now omits those three keys and leaves payload defaults in
place via cifmw_set_containers_preserve_unlisted: true.

The mappings stay in containers/image-mappings.yaml. The content
provider still returns every mapped key. Only this repo's
deploy-validation job filters them.

Mechanism

  • s2i-speculative-deploy-test-base adds s2i_ci_skip_os_custom_images: []
    and filters with rejectattr('key', 'in', s2i_ci_skip_os_custom_images).
  • s2i-openstack-deploy-validation overrides the list:
    neutronAPIImage, edpmNeutronMetadataAgentImage, mariadbImage.
  • Operator jobs that parent the base job (or copy the injection
    snippet) should leave the skip list unset/empty so they inject the
    full map.

Do not replace the mappings with quay.io master-latest pins.
When neutron-operator / mariadb-operator can consume the s2i images,
delete the keys from the skip list rather than deleting the mappings.

Why not copy neutron-operator#684

openstack-k8s-operators/neutron-operator#684 is
a DNM that pins master-latest and comments out neutron-server /
metadata. This PR is the inverse: keep real s2i mappings for consumers,
skip them only in this repo's full-stack gate.

Test plan

  • tox -e linters
  • tox -e test (includes tests/test_deployment_keys.sh)
  • Confirm s2i-openstack-deploy-validation no longer patches the
    three skipped keys and still injects the other neutron/OVN images
  • Confirm operator onboarding still tells consumers not to copy
    s2i_ci_skip_os_custom_images

@openshift-ci

openshift-ci Bot commented Aug 25, 2026

Copy link
Copy Markdown

[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 dprince 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

@rebtoor
rebtoor force-pushed the skip-unready-osversion-images branch from 6a6b6ac to 75037ba Compare August 26, 2026 12:48
@rebtoor

rebtoor commented Aug 26, 2026

Copy link
Copy Markdown
Contributor Author

recheck

@rebtoor
rebtoor force-pushed the skip-unready-osversion-images branch from 75037ba to 802bf80 Compare August 26, 2026 19:27
@rebtoor rebtoor changed the title [ci] Skip unready OpenStackVersion images in deploy-validation [ci] Omit neutron/MariaDB images from deploy-validation injection Aug 26, 2026
@rebtoor
rebtoor force-pushed the skip-unready-osversion-images branch from 802bf80 to ab210ff Compare August 26, 2026 19:34
@rebtoor
rebtoor force-pushed the skip-unready-osversion-images branch from ab210ff to 1c6ad19 Compare August 27, 2026 14:34
@rebtoor rebtoor changed the title [ci] Omit neutron/MariaDB images from deploy-validation injection [ci] Omit unready images from deploy-validation injection Aug 27, 2026
@rebtoor
rebtoor force-pushed the skip-unready-osversion-images branch from 2f763eb to 0b2ae27 Compare August 27, 2026 14:38
s2i-openstack-deploy-validation patches OpenStackVersion with mapped
s2i images. neutron-server, neutron metadata-agent, MariaDB/Galera,
and glance-api are not ready to consume those images yet, so injecting
them fails the repo gate.

Keep the mappings in image-mappings.yaml so operator consumer jobs can
still inject them. Add s2i_ci_skip_os_custom_images (empty on
s2i-speculative-deploy-test-base) and set it only on
s2i-openstack-deploy-validation:

  - neutronAPIImage
  - edpmNeutronMetadataAgentImage
  - mariadbImage
  - glanceAPIImage

Skipped keys are dropped from cifmw_set_containers_images, so
preserve_unlisted keeps payload defaults. Do not pin quay
master-latest in place of the mappings. When those images can be
consumed, remove the keys from the skip list.

Glance is omitted because the s2i image has no kolla_extend_start
KOLLA_BOOTSTRAP handler, so glance-db-sync execs the operator compound
command without a shell and glance-manage fails.

Tests and operator-onboarding docs lock that the skip list stays
job-local and is not copied into <service>-s2i-tempest.

Co-authored-by: Cursor <cursoragent@cursor.com>
@rebtoor
rebtoor force-pushed the skip-unready-osversion-images branch from 0b2ae27 to 97b807f Compare August 27, 2026 19:48
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