drm-panic-frontend: Add deployment #3283
No reviewers
Labels
No labels
ai-review-please
freeze-break-request
post-freeze
Backlog Status
Needs Review
Backlog Status
Ready
chore
documentation
points
01
points
02
points
03
points
05
points
08
points
13
Priority
High
Priority
Low
Priority
Medium
Sprint Status
Blocked
Sprint Status
Done
Sprint Status
In Progress
Sprint Status
Review
Sprint Status
To Do
Technical Debt
Work Item
Bug
Work Item
Epic
Work Item
Spike
Work Item
Task
Work Item
User Story
No milestone
No project
No assignees
5 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
infra/ansible!3283
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "jexposit/ansible:add-drm-panic-frontend"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi!
This MR includes the required changes to deploy the DRM Panic Frontend.
For more details, please check infra/tickets#13254
WIP because:
route_host: I'm not sure which URL should I pickproject_appowners: Again, I'm not sure if I should be in the list or if I missed an adminTo support this deployment, in the DRM Panic Frontend repo, I added a Dockerfile:
https://github.com/JoseExposito/drm-panic-frontend/pull/2
I'm not sure if it meets with the expectations to be deployed in your infra or you have other requirements, like selecting a different base image.
Thanks a lot in advance for your feedback.
@jexposit wrote in #3283 (comment):
route_hostfor staging should bedrm-panic.stg.fedoraproject.organd I recommend going with something like coreos-cincinnati projectproject_appownersdefine people who are owner of the project in OpenShift. You should be there as the person who is maintaining the deployment. You don't need to include me or other admins as we have the access anyway.Thanks a lot for your review @zlopez !
I update the MR with the following changes:
project_appowners: Only myselfroute_host: Set todrm-panic{{ env_suffix }}.fedoraproject.org.env_suffixis.stgin stage and empty string in production, so it generates the desired URLs.To make it easier to review the changes, I pushed a second time rebasing on top of main and removed the "WIP" tag.
af683bdeaec350d2c435WIP: drm-panic-frontend: Add deploymentto drm-panic-frontend: Add deploymentc350d2c435c7277a6711One more thing I found.
@ -0,0 +47,4 @@route_servicename: drm-panic-frontendwhen: env == "staging"- role: openshift/routeYou don't need second openshift/route role as they are now idenitical.
Good point. I dropped the second openshift/route and the "when" condition so it applies to both environments.
c7277a6711b092d97256Hi @zlopez
I'll be away from keyboard the last 3 weeks of May. Once I'm back, we'll have ~1 month before Fedora 45 is branched to include the kernel side changes, i.e., change the DRM Panic configuration to point to drm-panic.fedoraproject.org.
I was wondering, is "drm-panic.fedoraproject.org" going to be the final URL? If so, it'd be nice to start evaluating the required changes on the kernel. With people going on summer PTO, I would prefer to start looking into this sooner rather than latter.
@jexposit
The freeze will end today probably, but I will be out tomorrow and on Friday. We can start looking into this next week. But I think the URL can stay, if you don't want to change something.
Cool! Lets comment on this next week. No changes required from my side.
Following-up a bit on this topic, the kernel MR was created by Jocelyn here:
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/4510
It is in draft until this is merged and we can test the end result.
The kernel-ark MR is now merged:
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/4510
But the QR code now redirect to https://drm-panic.fedoraproject.org, which doesn't exist yet.
@zlopez I think all the pieces are in place but the frontend itself. Let me know if there is something missing before we can merge this.
a few comments:
Otherwise looks fine to me.
b092d97256b3b48bc8fab3b48bc8fabe4649d54aThanks @kevin, I pushed the suggested change to deploy the frontend in staging only. To make the review process easier, the first push contains the change and the second one is a rebase on top of main.
Is that change handled in this repo? I couldn't find the right place to include this change.
DNS is in another repo. I can handle adding those hosts...
Lets give this a go in staging.
AI Code Review
Detailed Code Review
The configuration correctly implements the staging-first deployment strategy requested during the review discussions. The use of standard Fedora infrastructure variables, particularly
env_suffixin the routing layer, appropriately DRYs up the code and future-proofs it for production deployment.The OpenShift objects (Service, ImageStream, BuildConfig, and Deployment) are correctly wired together. The BuildConfig correctly references the GitHub repository and dynamically selects the target branch based on the environment. One minor area for improvement is adding resource boundaries to the Deployment spec to ensure the pod doesn't consume unbounded resources on the OpenShift nodes.
📂 File Reviews
📄 `roles/openshift-apps/drm-panic-frontend/files/deployment.yml` - Kubernetes Deployment specification for the frontend.
resourcesblock defining reasonable memory and CPU limits based on expected consumption.✅ Summary
deployment.ymlto improve OpenShift scheduling and cluster stability.🤖 AI Code Review | Generated with ai-code-review | Model:
gemini-3.1-pro-preview⚠️ AI-generated suggestions may be incorrect. Verify before applying. Not a replacement for human review.
And it's up: https://drm-panic.stg.fedoraproject.org/