pagure-stg-ro01: add new instance for readonly pagure in stg ( ticket 13351 ) #3388

Merged
kevin merged 1 commit from kevin/ansible:pagure-stg-ro01 into main 2026-06-03 19:55:24 +00:00
Owner

For infra/tickets#13351
This makes a staging rhel10 vm thats just the same size / place
as pagure-stg01.

It still needs external ip's and nat in from those, but this should be
enough to install it and start setting things up.

Signed-off-by: Kevin Fenzi kevin@scrye.com

For https://forge.fedoraproject.org/infra/tickets/issues/13351 This makes a staging rhel10 vm thats just the same size / place as pagure-stg01. It still needs external ip's and nat in from those, but this should be enough to install it and start setting things up. Signed-off-by: Kevin Fenzi <kevin@scrye.com>
pagure-stg-ro01: add new instance for readonly pagure in stg ( ticket 13351 )
Some checks failed
Linter / yamllint (pull_request) Successful in 26s
Linter / ansible-lint (pull_request) Failing after 1m1s
AI Code Review / ai-review (pull_request_target) Successful in 21s
d2b6e0f58b
For infra/tickets#13351
This makes a staging rhel10 vm thats just the same size / place
as pagure-stg01.

It still needs external ip's and nat in from those, but this should be
enough to install it and start setting things up.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>

AI Code Review

Detailed Code Review

The setup looks well-structured and aligns with standard provisioning patterns for staging environments. However, there is a critical undefined variable bug in the host variables file related to the network configuration that will cause the Ansible playbook to fail during templating.

📂 File Reviews

📄 `inventory/host_vars/pagure-stg-ro01.fedoraproject.org` - Adds host-specific configuration including networking and Postgres DB sizing.
  • Critical [Bug]: The variable eth0_ipv4_nm is used in the network_connections template but is never defined. Instead, eth0_nm is defined with a dotted decimal subnet mask (255.255.255.0). The template expects a CIDR notation variable (eth0_ipv4_nm) to construct the IP/Mask string 10.16.179.80/24. This will cause a templating failure.
    • Suggestion: Rename eth0_nm to eth0_ipv4_nm and change its value to the CIDR prefix length 24 instead of 255.255.255.0.
--- a/inventory/host_vars/pagure-stg-ro01.fedoraproject.org
+++ b/inventory/host_vars/pagure-stg-ro01.fedoraproject.org
@@ -12,7 +12,7 @@
 eth0_ipv6_gw: "2620:52:6:1161::1"
 eth0_ipv6_ip: "2620:52:6:1161::33"
 eth0_ipv6_nm: 64
-eth0_nm: 255.255.255.0
+eth0_ipv4_nm: 24
 has_ipv6: yes

Summary

  • Overall Assessment: The network configuration contains an undefined variable bug that will block deployment and must be fixed.
  • Priority Issues:
    • Fix undefined eth0_ipv4_nm variable and replace eth0_nm with CIDR notation in host_vars.

🤖 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.

## AI Code Review ### Detailed Code Review The setup looks well-structured and aligns with standard provisioning patterns for staging environments. However, there is a critical undefined variable bug in the host variables file related to the network configuration that will cause the Ansible playbook to fail during templating. #### 📂 File Reviews <details> <summary><strong>📄 `inventory/host_vars/pagure-stg-ro01.fedoraproject.org`</strong> - Adds host-specific configuration including networking and Postgres DB sizing.</summary> - **Critical** [Bug]: The variable `eth0_ipv4_nm` is used in the `network_connections` template but is never defined. Instead, `eth0_nm` is defined with a dotted decimal subnet mask (`255.255.255.0`). The template expects a CIDR notation variable (`eth0_ipv4_nm`) to construct the IP/Mask string `10.16.179.80/24`. This will cause a templating failure. - *Suggestion:* Rename `eth0_nm` to `eth0_ipv4_nm` and change its value to the CIDR prefix length `24` instead of `255.255.255.0`. ```` --- a/inventory/host_vars/pagure-stg-ro01.fedoraproject.org +++ b/inventory/host_vars/pagure-stg-ro01.fedoraproject.org @@ -12,7 +12,7 @@ eth0_ipv6_gw: "2620:52:6:1161::1" eth0_ipv6_ip: "2620:52:6:1161::33" eth0_ipv6_nm: 64 -eth0_nm: 255.255.255.0 +eth0_ipv4_nm: 24 has_ipv6: yes ```` </details> ### ✅ Summary - **Overall Assessment:** The network configuration contains an undefined variable bug that will block deployment and must be fixed. - **Priority Issues:** - Fix undefined `eth0_ipv4_nm` variable and replace `eth0_nm` with CIDR notation in host_vars. --- 🤖 **AI Code Review** | Generated with [ai-code-review](https://gitlab.com/redhat/edge/ci-cd/ai-code-review) | **Model:** `gemini-3.1-pro-preview` ⚠️ *AI-generated suggestions may be incorrect. Verify before applying. Not a replacement for human review.*
Author
Owner

eth0_ipv4_nm is defined in inventory/group_vars/all to a default of 24. ;)

eth0_ipv4_nm is defined in inventory/group_vars/all to a default of 24. ;)
kevin merged commit 52ac6c7ec6 into main 2026-06-03 19:55:24 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
infra/ansible!3388
No description provided.