Skip to content

Fix nginx crash in console plugin with ubi9-minimal base image#2

Merged
harche merged 1 commit into
openshift:mainfrom
harche:wt/e2e-testing
May 8, 2026
Merged

Fix nginx crash in console plugin with ubi9-minimal base image#2
harche merged 1 commit into
openshift:mainfrom
harche:wt/e2e-testing

Conversation

@harche
Copy link
Copy Markdown
Contributor

@harche harche commented May 8, 2026

Summary

  • Add pid, temp directory paths, and IPv6 listen directive to the nginx config generated by the console reconciler
  • Without these, nginx fails with open() "/run/nginx.pid" failed (Permission denied) when the console image uses ubi9-minimal + microdnf install nginx instead of the pre-configured ubi9/nginx-120 image
  • Aligns the agentic operator's nginx config with the base operator's version in lightspeed-operator/internal/controller/console/assets.go

Context

Found while testing openshift/lightspeed-agentic-console#2 (Konflux hermetic build migration to ubi9-minimal). The ubi9/nginx-120 image had built-in non-root-friendly defaults; raw nginx from microdnf does not.

Test plan

  • Deployed console plugin with ubi9-minimal Dockerfile on OCP 4.21.5
  • Verified nginx starts successfully with the updated ConfigMap
  • Verified proposals page loads at /lightspeed/proposals

🤖 Generated with Claude Code

Add PID file path, temp directory paths, and IPv6 listen directive to
the nginx config generated by the console reconciler. Without these,
nginx fails to start with "open() /run/nginx.pid failed (Permission
denied)" when the console image uses ubi9-minimal + microdnf nginx
instead of the pre-configured ubi9/nginx-120 image.

Found while testing openshift/lightspeed-agentic-console#2 (Konflux
hermetic build migration to ubi9-minimal).

Aligns the agentic operator's nginx config with the base operator's
version in lightspeed-operator/internal/controller/console/assets.go.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@harche
Copy link
Copy Markdown
Contributor Author

harche commented May 8, 2026

merged openshift/lightspeed-agentic-console#2, so merging this one as well.

@harche harche merged commit 33fd733 into openshift:main May 8, 2026
xrajesh pushed a commit to xrajesh/lightspeed-agentic-operator that referenced this pull request May 10, 2026
…1, #13-17, #19-22, #29, #32)

- openshift#1: Change status.attempts from *int32 to int32 with min=1/max=int32 validation
- openshift#2: Move maxAttempts from ProposalSpec to ApprovalPolicy (admin ceiling) and
  ExecutionApproval (user choice); fix semantics so N = N total attempts
- openshift#3: Remove spec.revision, use metadata.generation for revision signaling
- openshift#4: Make ProposalStep.tools non-pointer with omitzero, add MinProperties=1
- #8-11: Make outcome/result/conditionOutcome required; SandboxInfo fields required
- #13: Add CEL singleton rule (metadata.name == "cluster") on ApprovalPolicy
- #14: Use listType=map+listMapKey=name on ApprovalPolicy stages
- #15: Remove defaultOption from ApprovalPolicy (operator defaults to option 0)
- #16-17: Add omitempty to name/approval, document allowed values
- #19: Replace denied bool with decision enum (Approved|Denied) + CEL immutability
- #20: Make ProposalApproval spec required
- #21: Use listType=map+listMapKey=type on ProposalApproval stages
- #22: Make estimatedImpact required on RemediationOption
- #29: Remove components from ExecutionResult and VerificationResult (copy-paste error)
- #32: Add MinProperties=1 to ToolsSpec

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant