# OpenShift SNO as Local Lab ## 準備 1. Hypervisior ## 必備kubeconfig ## VM關機或暫停後OCP失效問題 1. oc login失敗, kubelet無法連線到api-server 用備份的kubeconfig 登入到sno節點後執行KB內操作 https://access.redhat.com/solutions/4923031 2. oc 指令正常, 部分pod無法正常啟動, Error message出現multus / OVN相關錯誤 ``` Warning FailedCreatePodSandBox 3m13s (x88 over 25m) kubelet (combined from similar events): Failed to create pod sandbox: rpc error: code = Unknown desc = failed to create pod network sandbox k8s_controller-manager-bc6b74796-v8lpw_openshift-controller-manager_562ecb7f-7477-44ca-b0c7-79589c931e29_0(e62970c23aa990672bee03848794c4e3821e494359bf202c5ccc8b5bec445bb8): error adding pod openshift-controller-manager_controller-manager-bc6b74796-v8lpw to CNI network "multus-cni-network": plugin type="multus-shim" name="multus-cni-network" failed (add): CmdAdd (shim): CNI request failed with status 400: ``` 移除 ns/openshift-ovn-kubernetes 內所有Pod,讓他重新啟動 ``` ❯ oc project openshift-ovn-kubernetes Now using project "openshift-ovn-kubernetes" on server "https://api.jace-sno.localhost.com:6443". ❯ oc get pod NAME READY STATUS RESTARTS AGE ovnkube-control-plane-754cc8bbc8-dpqkd 2/2 Running 2 6d18h ovnkube-node-986lc 8/8 Running 8 6d18h ❯ oc delete pod ovnkube-node-986lc ovnkube-control-plane-754cc8bbc8-dpqkd pod "ovnkube-node-986lc" deleted pod "ovnkube-control-plane-754cc8bbc8-dpqkd" deleted ``` ## NFS Provisioner https://developers.redhat.com/articles/2022/04/20/create-and-manage-local-persistent-volumes-codeready-containers
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up