services:downstream_ci
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| services:downstream_ci [2026/11/08 10:09] – akraitman | services:downstream_ci [2026/11/23 16:14] (current) – akraitman | ||
|---|---|---|---|
| Line 57: | Line 57: | ||
| Once the migration to the RDU3 Jenkins instance is complete, the temporary migration branch can be retired and the normal production configuration workflow can be used. | Once the migration to the RDU3 Jenkins instance is complete, the temporary migration branch can be retired and the normal production configuration workflow can be used. | ||
| + | |||
| + | |||
| + | ===== Job Definitions ===== | ||
| + | |||
| + | Jobs are Jenkins Job Builder YAML in: | ||
| + | |||
| + | < | ||
| + | https:// | ||
| + | </ | ||
| + | |||
| + | * Definition: ''< | ||
| + | * Build script: ''< | ||
| + | |||
| + | To change a job: | ||
| + | |||
| + | - Branch from '' | ||
| + | - Merge. The '' | ||
| + | |||
| + | To test a branch before merging: | ||
| + | |||
| + | - Run '' | ||
| + | - Only that job is updated. It stays on the branch version until the next '' | ||
| + | |||
| + | Do not edit jobs in the Jenkins UI. The next '' | ||
| + | |||
| + | |||
| + | ===== Jenkins Access ===== | ||
| + | |||
| + | Login is Red Hat SSO. Permissions are roles in '' | ||
| + | |||
| + | Roles: '' | ||
| + | |||
| + | To give someone access: | ||
| + | |||
| + | - Add '' | ||
| + | - Open an MR to '' | ||
| + | - Restart the Jenkins pod to load it (repository README). | ||
| + | |||
| + | Notes: | ||
| + | |||
| + | * "< | ||
| + | * Roles assigned in the Jenkins UI are lost at the next restart. | ||
| Line 62: | Line 104: | ||
| The Jenkins build agents are RHEL 9 virtual machines running through OpenShift Virtualization. | The Jenkins build agents are RHEL 9 virtual machines running through OpenShift Virtualization. | ||
| + | |||
| + | Builders/ | ||
| Example agent types include: | Example agent types include: | ||
| Line 372: | Line 416: | ||
| - | ## Accessing Running Jenkins Builders (RDU3) | + | ===== Accessing Running Jenkins Builders (RDU3) |
| - | Jenkins builders run as KubeVirt Virtual Machines (VMs) in the RDU3 OpenShift cluster. Developers can access | + | Jenkins builders run as KubeVirt Virtual Machines (VMs) in the RDU3 OpenShift cluster. Developers can access running |
| - | ### 1. List running builders | + | ==== 1. List running builders |
| Log in to the RDU3 OpenShift cluster and select the Jenkins tenant namespace. | Log in to the RDU3 OpenShift cluster and select the Jenkins tenant namespace. | ||
| - | ```bash | + | < |
| - | oc project ceph-downstream-tenant--runtime-int | + | oc project ceph-downstream-tenant--pipeline |
| oc get vmi | oc get vmi | ||
| - | ``` | + | </ |
| Example output: | Example output: | ||
| - | ```text | + | < |
| NAME AGE | NAME AGE | ||
| rhel8medium-rdu3-c36e1a98 | rhel8medium-rdu3-c36e1a98 | ||
| rhel9large-rdu3-8f20a52c | rhel9large-rdu3-8f20a52c | ||
| - | ``` | + | </ |
| Identify the running builder you want to access. | Identify the running builder you want to access. | ||
| - | ### 2. Forward the builder' | + | ==== 2. Forward the builder' |
| Open a terminal and run: | Open a terminal and run: | ||
| - | ```bash | + | < |
| virtctl port-forward \ | virtctl port-forward \ | ||
| vmi/ | vmi/ | ||
| 2222:22 | 2222:22 | ||
| - | ``` | + | </ |
| - | This forwards local TCP port `2222` to SSH port `22` on the selected VM. | + | This forwards local TCP port '' |
| **Keep this terminal running** while connected to the builder. | **Keep this terminal running** while connected to the builder. | ||
| - | ### 3. Connect to the builder via SSH | + | ==== 3. Connect to the builder via SSH ==== |
| Open a second terminal and run: | Open a second terminal and run: | ||
| - | ```bash | + | < |
| ssh -i jenkins-build.id \ | ssh -i jenkins-build.id \ | ||
| -o IdentitiesOnly=yes \ | -o IdentitiesOnly=yes \ | ||
| -p 2222 \ | -p 2222 \ | ||
| jenkins-build@127.0.0.1 | jenkins-build@127.0.0.1 | ||
| - | ``` | + | </ |
| - | Replace | + | Replace |
| - | ### Notes | + | ==== Notes ==== |
| - | - You must be logged in to the RDU3 OpenShift cluster and have the required namespace permissions. | + | * You must be logged in to the RDU3 OpenShift cluster and have the required namespace permissions. |
| - | - VM names are dynamic. Always use `oc get vmi` to find the current running builder. | + | |
| - | - Use the namespace containing the target VM. Production builders may be in `ceph-downstream-tenant--pipeline`. | + | |
| - | - The SSH connection | + | |
| - | - Do not modify or interrupt active Jenkins builds. | + | |
| - | - Stop the port-forward process using `Ctrl+C` when finished. | + | |
| + | |||
| + | |||
| + | ===== Debugging Failed Builds and Builders ===== | ||
| + | |||
| + | ==== A build fails ==== | ||
| + | |||
| + | - Open the build console. Read the first '' | ||
| + | - Bare '' | ||
| + | - List the recent builds. Note the time the failure started or changed. | ||
| + | - Match that time against commits in '' | ||
| + | - Open ''< | ||
| + | |||
| + | Known signatures: | ||
| + | |||
| + | * '' | ||
| + | * '' | ||
| + | |||
| + | ==== A build waits for a builder ==== | ||
| + | |||
| + | - Manage Jenkins -> Nodes. Open the log of any offline agent. | ||
| + | - List the builder VMs and their disks. | ||
| + | - Read the namespace events. | ||
| + | - DataVolume in '' | ||
| + | - Read the controller log. It holds about 30 minutes. | ||
| + | |||
| + | <code bash> | ||
| + | oc -n ceph-downstream-tenant--pipeline get vm, | ||
| + | oc -n ceph-downstream-tenant--pipeline get events --sort-by=.lastTimestamp | tail -40 | ||
| + | oc -n ceph-downstream-tenant--pipeline get appliedclusterresourcequota -o yaml | ||
| + | oc -n ceph-downstream-tenant--pipeline logs deploy/ | ||
| + | </ | ||
| ===== Managing Jenkins Secrets with git-crypt ===== | ===== Managing Jenkins Secrets with git-crypt ===== | ||
services/downstream_ci.1794132554.txt.gz · Last modified: by akraitman
