-
Notifications
You must be signed in to change notification settings - Fork 25
cld2labs/openshift-4.20-deployment-scripts #72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
HarikaDev296
wants to merge
9
commits into
opea-project:main
Choose a base branch
from
cld2labs:cld2labs/openshift-4.20-deployment-scripts
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+746
−0
Open
Changes from 2 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
0d4d81a
openshift user guides
a1d7d0f
Update SNO installation guide with Local Storage steps
HarikaDev296 8e2339c
updated typo issues
f9a8404
Merge branch 'cld2labs/openshift-4.20-deployment-scripts' of https://…
1a916bf
update SNO installation and user guide
ce28a7b
update infrastructure requirements
9967cb1
update openshift user-guide
918dee6
update openshift user-guide
8f0de1c
update openshift user-guide
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
215 changes: 215 additions & 0 deletions
215
third_party/Dell/openshift-4.20/EI/single-node/troubleshooting.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,215 @@ | ||
|
|
||
| # Troubleshooting Guide | ||
|
|
||
| This section provides common deployment and runtime issues observed during Intel® AI for Enterprise Inference setup — along with step-by-step resolutions. | ||
|
|
||
| **Issues:** | ||
| 1. [Deployment Fails During Bastion Setup](#1-Deployment-Fails-During-Bastion-Setup) | ||
| 2. [PVC Stuck in Pending State](#2-PVC-Stuck-in-Pending-State) | ||
| 3. [StatefulSet Pods Not Scheduling on SNO](#3-StatefulSet-Pods-Not-Scheduling-on-SNO) | ||
| 4. [Route Exists but API Is Not Reachable](#4-Route-Exists-but-API-Is-Not-Reachable) | ||
| 5. [Keycloak Token Generation Fails](#5-Keycloak-Token-Generation-Fails) | ||
|
|
||
| --- | ||
|
|
||
| ### 1. Deployment Fails During Bastion Setup | ||
|
|
||
| Deployment stops early with errors such as: | ||
|
|
||
| Failed to update apt cache | ||
| Bastion node setup failed. Exiting. | ||
|
|
||
| **Root Cause** | ||
|
|
||
| EI bastion setup assumes: | ||
| - A multi-node cluster | ||
| - A mutable OS | ||
| - Working `apt` repositories | ||
|
|
||
| **These assumptions are invalid for SNO brownfield deployments.** | ||
|
|
||
| - SNO does not require a bastion | ||
| - RHCOS is immutable | ||
| - Bastion playbooks are incompatible | ||
|
|
||
| **Fix** | ||
| ```bash | ||
| export EI_SKIP_BASTION_SETUP=true | ||
| export SKIP_BASTION_SETUP=true | ||
| ./inference-stack-deploy.sh | ||
| ``` | ||
|
|
||
| > **Note:** | ||
| > - Bastion is not required for SNO | ||
| > - Skipping bastion is expected and correct | ||
| > - Do not attempt to fix apt just to satisfy bastion logic | ||
|
|
||
| --- | ||
|
|
||
| ### 2. PVC Stuck in Pending State | ||
|
|
||
| Verify: | ||
|
|
||
| PVC shows: | ||
| > status : pending | ||
|
|
||
| And pod describe shows | ||
| > waiting for first consumer 0/1 nodes didn’t find available PVs | ||
|
|
||
| **Verify Local Storage Operator** | ||
| ```bash | ||
| oc get pods -n openshift-local-storage | ||
| ``` | ||
|
|
||
| Expected: | ||
| - local-storage-operator → Running | ||
| - diskmaker-manager → Running | ||
|
|
||
| **Verify StorageClass** | ||
| ```bash | ||
| oc get storageclass | ||
| ``` | ||
|
|
||
| Expected: | ||
| ```bash | ||
| local-sc kubernetes.io/no-provisioner WaitForFirstConsumer | ||
| ``` | ||
|
|
||
| **Verify Disk Availability** | ||
| ```bash | ||
| lsblk | ||
| ``` | ||
|
|
||
| Ensure: | ||
| - Disk is unused | ||
| - Disk is not mounted | ||
| - Disk has sufficient capacity | ||
|
|
||
|
|
||
| > **Note:** | ||
| > - Local Storage Operator creates only ONE PV per disk | ||
| > - A used disk cannot create additional PVs | ||
| > - Additional PVs require additional disks or partitions | ||
|
|
||
| **FIX:** | ||
|
|
||
| Add a disk by editing the existing LocalVolume. If a LocalVolume resource already exists (for example local-storage), you do not need to create a new one. | ||
| You can edit the existing LocalVolume and add the new disk. | ||
|
|
||
| **Edit the Existing LocalVolume** | ||
| ```bash | ||
| kubectl edit localvolume local-storage -n openshift-local-storage | ||
| ``` | ||
| **Add the New Disk Under devicePaths** | ||
|
|
||
| Locate the storageClassDevices section and add the new disk path. | ||
|
|
||
| Before (example): | ||
| ```bash | ||
| spec: | ||
| storageClassDevices: | ||
| - storageClassName: local-sc | ||
| volumeMode: Filesystem | ||
| fsType: xfs | ||
| devicePaths: | ||
| - /dev/nvme4n1 | ||
| ``` | ||
|
|
||
| After (add one more disk): | ||
| ```bash | ||
| spec: | ||
| storageClassDevices: | ||
| - storageClassName: local-sc | ||
| volumeMode: Filesystem | ||
| fsType: xfs | ||
| devicePaths: | ||
| - /dev/nvme4n1 | ||
| - /dev/nvme5n1 | ||
| ``` | ||
|
|
||
| Save and exit the editor. | ||
|
|
||
| **Verify PV Creation** | ||
|
|
||
| Within a few seconds, the Local Storage Operator will create a new PV. | ||
| ``'bash | ||
| oc get pv | ||
| ``` | ||
| Expected: | ||
| - One new PV per newly added disk | ||
|
|
||
| PVCs bind only after a new disk is detected | ||
|
|
||
| ```bash | ||
| oc get pvc -A | ||
| ``` | ||
| Expected: | ||
| - STATUS: Bound | ||
|
|
||
| --- | ||
|
|
||
| ### 3. StatefulSet Pods Not Scheduling on SNO | ||
|
|
||
| StatefulSet pods (example: auth-apisix-etcd-0) remain Pending even though PV exists. | ||
|
|
||
| **Root Cause** | ||
|
|
||
| Local PVs are node-specific | ||
|
|
||
| Scheduler needs explicit node placement on SNO | ||
|
|
||
| **Fix** | ||
|
|
||
| Patch the StatefulSet to pin it to the SNO node: | ||
| ```bash | ||
| oc patch statefulset auth-apisix-etcd -n auth-apisix \ | ||
| --type='merge' \ | ||
| -p '{ | ||
| "spec": { | ||
| "template": { | ||
| "spec": { | ||
| "nodeSelector": { | ||
| "kubernetes.io/hostname": "<SNO_HOSTNAME>" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| }' | ||
| ``` | ||
|
|
||
| Restart the pod: | ||
| ```bash | ||
| oc delete pod auth-apisix-etcd-0 -n auth-apisix | ||
| ``` | ||
| --- | ||
|
|
||
| ### 4. Route Exists but API Is Not Reachable | ||
| Checks: | ||
|
|
||
| ```bash | ||
| oc get routes -A | ||
| oc describe route <route-name> | ||
| ``` | ||
| **Common Causes** | ||
|
|
||
| - Missing /etc/hosts entry | ||
| - Incorrect BASE_URL / cluster_url | ||
| - TLS mode mismatch | ||
| - DNS resolution failure | ||
|
|
||
| **Fix** | ||
|
|
||
| - Ensure hostname resolves correctly | ||
| - Verify TLS mode matches EI configuration | ||
| - Use curl -k only for debugging | ||
|
|
||
| --- | ||
|
|
||
| ### 5. Keycloak Token Generation Fails | ||
|
|
||
| Verify: | ||
| - Client ID exists | ||
| - Client secret is correct | ||
| - Access type is **Confidential** | ||
| - `KEYCLOAK_REALM` matches configuration | ||
| - Token endpoint URL is correct | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.