Skip to content

Amphorae build fixes - #2436

Open
cityofships wants to merge 3 commits into
stackhpc/2025.1from
amphorae-build-fix
Open

Amphorae build fixes#2436
cityofships wants to merge 3 commits into
stackhpc/2025.1from
amphorae-build-fix

Conversation

@cityofships

Copy link
Copy Markdown
Member

Arguably, we should be using the latest DIB and not pinned to the OpenStack release. This ensures recent OS versions compatibility and generic fixes and improvements included.

Also, fix Ubuntu vs. Rocky dependencies installation.

@cityofships
cityofships requested a review from a team as a code owner July 17, 2026 09:02
@github-actions github-actions Bot added the waiting-review PR is waiting for a review label Jul 17, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request modifies the Octavia Amphora image build playbook by setting the amphora_dib_upper_constraints_file variable to an empty string and moving python3-venv from common packages to OS-specific packages. The review feedback highlights two issues: first, python3-venv does not exist on RedHat-based systems and will cause installation failures, so it should be removed from the RedHat package list. Second, hardcoding amphora_dib_upper_constraints_file to an empty string prevents user overrides due to Ansible's variable precedence, and using a default filter is recommended instead.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread etc/kayobe/ansible/maintenance/octavia-amphora-image-build.yml
Comment thread etc/kayobe/ansible/maintenance/octavia-amphora-image-build.yml Outdated
@cityofships
cityofships requested a review from bbezak July 20, 2026 15:07
- name: Build an Octavia Amphora image
hosts: "{{ amphora_builder_group | default('seed') }}"
vars:
amphora_dib_upper_constraints_file: "{{ pip_upper_constraints_file }}"

@dougszumski dougszumski Jul 30, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nit: It would be better to set the default here given that the playbook relies on this variable being defined. Then -e on the command line still works.

eg. similar to this - just a comment used in the file included with -e:
https://github.com/openstack/kayobe/blob/master/etc/kayobe/overcloud-dib.yml#L76

@coderabbitai

coderabbitai Bot commented Aug 4, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 75007425-49aa-4bf0-9327-cf51e57b3a05

📥 Commits

Reviewing files that changed from the base of the PR and between 2a59fbb and 1c7c878.

📒 Files selected for processing (3)
  • etc/kayobe/ansible/maintenance/octavia-amphora-image-build.yml
  • etc/kayobe/stackhpc.yml
  • releasenotes/notes/use-latest-dib-amphorae-c43d903780c08123.yaml
📜 Recent review details
⏰ Context from checks skipped due to timeout. (3)
  • GitHub Check: stackhpc/check
  • GitHub Check: Ansible 2.17 lint with Python 3.10
  • GitHub Check: Ansible 2.18 lint with Python 3.12
🔇 Additional comments (3)
etc/kayobe/ansible/maintenance/octavia-amphora-image-build.yml (1)

21-31: Package split looks correct and resolves the outstanding nit.

The python3-venv package is now restricted to Debian systems, and python3-devel is added for RedHat systems. This matches the commit message stating python3-venv is not available on RedHat family systems. The earlier reviewer nit about missing default for amphora_dib_upper_constraints_file is now addressed by the default value added in etc/kayobe/stackhpc.yml.

etc/kayobe/stackhpc.yml (1)

271-274: LGTM!

releasenotes/notes/use-latest-dib-amphorae-c43d903780c08123.yaml (1)

1-6: LGTM!


📝 Walkthrough

Updated Amphora image builds to use the latest Disk Image Builder. Added platform-specific package dependencies for Debian and Red Hat systems. Bumped the Amphora image version and configured the constraints setting.

Walkthrough

The Amphora image build playbook now uses revised OS package definitions. The configuration updates the Amphora image version and adds an empty constraints setting. A release note documents the latest diskimage-builder default.

Changes

Amphora image build

Layer / File(s) Summary
OS package definitions
etc/kayobe/ansible/maintenance/octavia-amphora-image-build.yml
The playbook adds python3-devel to RedHat packages and moves python3-venv to Debian packages.
Image version and release note
etc/kayobe/stackhpc.yml, releasenotes/notes/use-latest-dib-amphorae-c43d903780c08123.yaml
The Amphora image version is updated. The configuration adds an empty amphora_dib_upper_constraints_file setting. The release note documents the latest diskimage-builder default.

Estimated code review effort: 2 (Simple) | ~10 minutes

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

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

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

Labels

waiting-review PR is waiting for a review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants