SMO Installation
Instructions on how to perform a SMO installation can be found here. Note, currently, SMO consists of three discrete parts. In the near future, these three methods can be consolidated into a single operation.
|
|---|
|
|---|
|
|
|
Complete these tasks to get started
Recent space activity
Masumeh Sadat Tohidi
Masumeh Sadat Tohidi- Re: Near Realtime RIC Installationcreated Aug 3, 2024
Esteban Municio
Esteban Municio- Re: Near Realtime RIC Installationcreated Jul 25, 2024
James Incer
James Incer- Re: Near Realtime RIC Installationcreated Apr 2, 2024
Anusha (Deactivated)
Anusha (Deactivated)- Re: Near Realtime RIC Installationcreated Mar 28, 2024
James Incer
James Incer- Re: Near Realtime RIC Installationcreated Mar 28, 2024
Space contributors
Comments
That is okay. You can see that it is actually a job, not a regular pod. You may view its status by:
kubectl get jobs -n onap
or even:
kubectl get jobs -n onap dev-sdnc-sdnrdb-init-job -o json
Hi Lusheng,
thanks for quick reply. Now I have smo fully deployed. thanks
(10:57 dabs@smobronze bin) > sudo kubectl get jobs --all-namespaces
NAMESPACE NAME COMPLETIONS DURATION AGE
onap dev-sdnc-sdnrdb-init-job 1/1 34m 74m
Hi. I am new to O-RAN and trying to deploy SMO as well as RIC. I was successfully able to install SMO with the given steps but while deploying I keep on getting below messages:-
===> Deploying OAM (ONAP Lite)
======> Deploying ONAP-lite
Error: unknown command "deploy" for "helm"
Run 'helm --help' for usage.
======> Waiting for ONAP-lite to reach operatoinal state
0/7 SDNC-SDNR pods and 0/7 Message Router pods running
0/7 SDNC-SDNR pods and 0/7 Message Router pods running
0/7 SDNC-SDNR pods and 0/7 Message Router pods running
None of these pods are getting up and running for like hours, infact none of them are even present. Did I miss any step or do i need to install any component of ONAP before this?
I had once encountered this problem:
make sure deploy/undeploy plugins exist in /root/.helm:
dabs@RICBronze:~/oran/dep/smo/bin/smo-deploy/smo-oom$sudo cp -R ./kubernetes/helm/plugins/ /root/.helm
Thanks for prompt response.
Even after copying the plugins, I am getting same messages. But I am getting initial error message as :-
===> Deploying OAM (ONAP Lite)
======> Deploying ONAP-lite
fetching local/onap
Error: chart "onap" matching version "" not found in local index. (try 'helm repo update'). no chart name found
mv: cannot stat '/root/.helm/plugins/deploy/cache/onap/charts/*': No such file or directory
mv: cannot stat '/root/.helm/plugins/deploy/cache/onap-subcharts/common': No such file or directory
rm: cannot remove '/root/.helm/plugins/deploy/cache/onap/requirements.lock': No such file or directory
mv: cannot stat '/root/.helm/plugins/deploy/cache/onap/requirements.yaml': No such file or directory
Error: could not find a ready tiller pod
release "dev" deployed
Error: could not find a ready tiller pod
Error: could not find a ready tiller pod
======> Waiting for ONAP-lite to reach operatoinal state
0/7 SDNC-SDNR pods and 0/7 Message Router pods running
0/7 SDNC-SDNR pods and 0/7 Message Router pods running
Seems that the onap charts are not present. I even tried "helm repo update" but no luck. Can you share how to get them?
Chirag,
Did the step 1 through 3 complete without error for your installation? It appears that your k8s cluster is not running correctly (i.e. error msg complaining about tiller pod not in ready state).
Lusheng
Your tiller pod is not ready.
1st, make sure the tiller pod is in running state
2nd, make sure helm service is in running state:
sudo helm serve
3rd, make sure 'helm search onap' has 35 charts listed. If not, you can manually issue the 'make all' command:
dabs@smobronze:~/oran/dep/smo/bin/smo-deploy/smo-oom/kubernetes$ sudo make all
Zhengwei,
I executed the instruction, sudo make all,but I got the following error.
Downloading common from repo http://127.0.0.1:8879/charts
Save error occurred: could not download http://127.0.0.1:8879/common-6.0.0.tgz: Get http://127.0.0.1:8879/common-6.0.0.tgz: dial tcp 127.0.0.1:8879: connect: connection refused
Deleting newly downloaded charts, restoring pre-update state
Error: could not download http://127.0.0.1:8879/common-6.0.0.tgz: Get http://127.0.0.1:8879/common-6.0.0.tgz: dial tcp 127.0.0.1:8879: connect: connection refused
Makefile:61: recipe for target 'dep-robot' failed
make[1]: *** [dep-robot] Error 1
make[1]: Leaving directory '/root/dep/smo/bin/smo-deploy/smo-oom/kubernetes'
Makefile:46: recipe for target 'robot' failed
make: *** [robot] Error 2
How can I do ? Thank you,pls.
Tim
Have you performed the 2nd step?
2nd, make sure helm service is in running state:
sudo helm serve
Yes. But any expected respond should I recieve ?
When I executed 2nd step, terminal stuck and show this message .
Regenerating index. This may take a moment.
Now serving you on 127.0.0.1:8879
Should I keep waiting?
Thanks for help.
Yes. You can just put 'sudo helm serve' in one terminal, and it's the helm SERVER; and go on with the 'sudo make all' in another terminal.
Wow, Thank you for your help
I think my problem has been resolved .
I did all the 3 steps: still, I am getting the same error
root@xxxx:~/dep/smo/bin# sudo ./install
===> Starting at Tue Sep 8 07:42:45 UTC 2020
===> Cleaning up any previous deployment
======> Deleting all Helm deployments
Error: command 'delete' requires a release name
======> Clearing out all ONAP deployment resources
Error from server (NotFound): namespaces "onap" not found
No resources found.
error: resource(s) were provided, but no name, label selector, or --all flag specified
error: resource(s) were provided, but no name, label selector, or --all flag specified
======> Clearing out all RICAUX deployment resources
Error from server (NotFound): namespaces "ricaux" not found
Error from server (NotFound): namespaces "ricinfra" not found
======> Clearing out all NONRTRIC deployment resources
Error from server (NotFound): namespaces "nonrtric" not found
======> Preparing for redeployment
node/ebtic07 not labeled
node/ebtic07 not labeled
node/ebtic07 not labeled
======> Preparing working directory
===> Deploying OAM (ONAP Lite)
======> Deploying ONAP-lite
Error: unknown command "deploy" for "helm"
Run 'helm --help' for usage.
======> Waiting for ONAP-lite to reach operatoinal state
0/7 SDNC-SDNR pods and 0/7 Message Router pods running
0/7 SDNC-SDNR pods and 0/7 Message Router pods running
0/7 SDNC-SDNR pods and 0/7 Message Router pods running
Can anyone please help me here. The tiller pods is also up and running
root@xxx07:~/.helm/plugins/deploy# kubectl get pods --all-namespaces
NAMESPACE NAME READY STATUS RESTARTS AGE
kube-system coredns-5d4dd4b4db-972pr 1/1 Running 1 26m
kube-system coredns-5d4dd4b4db-hrhkn 1/1 Running 1 26m
kube-system etcd-ebtic07 1/1 Running 1 25m
kube-system kube-apiserver-ebtic07 1/1 Running 1 25m
kube-system kube-controller-manager-ebtic07 1/1 Running 1 26m
kube-system kube-flannel-ds-2z2vx 1/1 Running 1 26m
kube-system kube-proxy-5shnx 1/1 Running 1 26m
kube-system kube-scheduler-ebtic07 1/1 Running 1 25m
kube-system tiller-deploy-666f9c57f4-rl2g9 1/1 Running 1 25m
I had a similar error when I tried to re-install SMO after first installation (~/dep/smo/bin/uninstall && ~/dep/smo/bin/install).
The only solution I found was to delete all the dep/ folder and restart the installation process from scatch. It worked, but since Onap helm charts had to be gneerated again it took hours.
How did it work? The ~/dep/smo/bin/install script has an invalid helm command on line 185, from what I can tell:
helm deploy dev local/onap --namespace onap -f ./override-oam.yaml
'helm deploy' isn't a supported command.
Indeed, deploy is not a vanilla helm command, it is a plugin developed by ONAP (https://wiki.onap.org/display/DW/OOM+Helm+%28un%29Deploy+plugins).
Also, it seems that the re-installation problem may come from the fact that install operations are performed directly after uninstall ones, while some modules may not be fully uninstalled yet.
You may try to add a sleep 20 just before the helm deploy command in the install script.
tiller pod is running:
kube-system coredns-5d4dd4b4db-pvq4m 1/1 Running 1 6d21h
kube-system coredns-5d4dd4b4db-wwdsb 1/1 Running 1 6d21h
kube-system etcd-smo 1/1 Running 1 6d21h
kube-system kube-apiserver-smo 1/1 Running 2 6d21h
kube-system kube-controller-manager-smo 1/1 Running 14 6d21h
kube-system kube-flannel-ds-vrgwh 1/1 Running 1 6d21h
kube-system kube-proxy-cjhdn 1/1 Running 1 6d21h
kube-system kube-scheduler-smo 1/1 Running 15 6d21h
kube-system tiller-deploy-6658594489-h6zwt 1/1 Running 1 6d21h
2. helm server is running:
tcp 0 0 127.0.0.1:8879 0.0.0.0:* LISTEN 32431/helm
3."helm search onap" has 35 charts listed:
root@smo:/home/hongqun/oran/dep/smo/bin/smo-deploy/smo-oom# helm search onap | wc -l
35
4. when I run install script, I got the folloing errors:
======> Deploying ONAP-lite
fetching local/onap
Error: chart "onap" matching version "" not found in local index. (try 'helm repo update'). no chart name found
mv: cannot stat '/root/.helm/plugins/deploy/cache/onap/charts/*': No such file or directory
mv: cannot stat '/root/.helm/plugins/deploy/cache/onap-subcharts/common': No such file or directory
rm: cannot remove '/root/.helm/plugins/deploy/cache/onap/requirements.lock': No such file or directory
mv: cannot stat '/root/.helm/plugins/deploy/cache/onap/requirements.yaml': No such file or directory
Error: no Chart.yaml exists in directory "/root/.helm/plugins/deploy/cache/onap"
release "dev" deployed
Could you give me some advices? Thank you.
Hi Alex,
Can you try "helm deploy" command you might get deploy plugin not found. if so you need to do "helm plugin install ~/.helm/plugins/deploy" if deploy is not found then u can download them to ~/.helm/plugins/ from (
https://gerrit.onap.org/r/gitweb?p=oom.git;a=tree;f=kubernetes/helm/plugins;hb=refs/heads/master
) and then try the install command again.
Thanks,
Naga chetan
Hi Naga chetan K M:
Thank you. But the deploy and undeploy plugins are found, charts not found in cache folder.
root@smo:~/.helm/plugins# tree .
.
├── deploy
│ ├── cache
│ │ ├── onap
│ │ │ ├── computed-overrides.yaml
│ │ │ └── logs
│ │ │ ├── dev.log
│ │ │ └── dev.log.log
│ │ └── onap-subcharts
│ ├── deploy.sh
│ └── plugin.yaml
└── undeploy
├── plugin.yaml
└── undeploy.sh
6 directories, 7 files
Thanks.
Hi Lao,
If you are not seeing charts then you can try the below procedure, this is already listed in comments,
make sure 'helm search onap' has 35 charts listed. If not, you can manually issue the 'make all' command:
dabs@smobronze:~/oran/dep/smo/bin/smo-deploy/smo-oom/kubernetes$ sudo make all
Thanks,
Naga chetan
Hello,
I have the same problem as Lao Alex. And even if I do $sudo make all, still it isn't working. How can I figure it out?
Thank you.
Hi, I think SMO didn't deploy correctly first time, so the corresponding folders where not copied to the .helm folder. Try deleting smo-deploy folder and installing it again, like that it will start the installation from scratch. It can take several hours.
What I found in my case is the version of helm that caused the issue - In step 2, I need to set the version as 2.16.6 in infra.rc and things work fine. This is evident from the name of the script "
k8s-1node-cloud-init-k_1_15-h_2_16-d_18_09.sh" (note the h_2_16 in it)
Step 3 was going wrong. Helm was not getting initialized due to proxy server. Installed certificates and got it working.
Thanks for the help
我也遇到这个了则么解决的
Hello experts ,
I followed it step by step but I stuck by step 3 .
When I Run the script, k8s-1node-cloud-init-k ... .sh, I received the following message.
The connection to the server localhost:8080 was refused - did you specify the right host or port?
I don't know if I did something wrong or if I missed something I need to pay attention .
How can I fix it, Thank you .
Tim.
I met exactly the same problem. Appreciate you for the help!
can you pls share full debug out when running the script?
The whole situation as you can see below.
++ eval 'kubectl get pods -n kube-system | grep "Running" | wc -l'
+++ wc -l
+++ grep Running
+++ kubectl get pods -n kube-system
The connection to the server localhost:8080 was refused - did you specify the right host or port?
+ NUMPODS=0
+ echo '> waiting for 0/8 pods running in namespace [kube-system] with keyword [Running]'
> waiting for 0/8 pods running in namespace [kube-system] with keyword [Running]
+ '[' 0 -lt 8 ']'
+ sleep 5
Tim.
Hi,
do you have following info in the outputs? The 'localhost:8080 refused' problem generally relates to the KUBECONFIG configuration.
+ cd /root
+ rm -rf .kube
+ mkdir -p .kube
+ cp -i /etc/kubernetes/admin.conf /root/.kube/config
+ chown root:root /root/.kube/config
+ export KUBECONFIG=/root/.kube/config
+ KUBECONFIG=/root/.kube/config
+ echo KUBECONFIG=/root/.kube/config
+ kubectl get pods --all-namespaces
No resources found.
+ kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml
podsecuritypolicy.policy/psp.flannel.unprivileged created
clusterrole.rbac.authorization.k8s.io/flannel created
clusterrolebinding.rbac.authorization.k8s.io/flannel created
serviceaccount/flannel created
configmap/kube-flannel-cfg created
daemonset.apps/kube-flannel-ds-amd64 created
daemonset.apps/kube-flannel-ds-arm64 created
daemonset.apps/kube-flannel-ds-arm created
daemonset.apps/kube-flannel-ds-ppc64le created
daemonset.apps/kube-flannel-ds-s390x created
But there is no admin.conf under /etc/kubernetes/
suggest re-run the script and make sure 'kubeadm init' is successful:
sudo ./k8s-1node-cloud-init-k_1_15-h_2_16-d_18_09.sh
'kubeadm init' has the following error:
I0818 01:09:09.191921 32088 version.go:248] remote version is much newer: v1.18.8; falling back to: stable-1.15
[init] Using Kubernetes version: v1.15.12
[preflight] Running pre-flight checks
error execution phase preflight: [preflight] Some fatal errors occurred:
[ERROR Swap]: running with swap on is not supported. Please disable swap
[preflight] If you know what you are doing, you can make a check non-fatal with `--ignore-preflight-errors=...`
[ERROR Swap]: running with swap on is not supported. Please disable swap
disable swap and re-run the script.
sudo swapoff -a
Thank you for kind help! But after disabling swap and re-running the script, 'kubeadm init' has the new error:
I0819 12:54:05.234698 10134 version.go:251] remote version is much newer: v1.18.8; falling back to: stable-1.16
[init] Using Kubernetes version: v1.16.14
[preflight] Running pre-flight checks
[WARNING SystemVerification]: this Docker version is not on the list of validated versions: 19.03.6. Latest validated version: 18.09
error execution phase preflight: [preflight] Some fatal errors occurred:
[ERROR Port-6443]: Port 6443 is in use
[ERROR Port-10251]: Port 10251 is in use
[ERROR Port-10252]: Port 10252 is in use
[ERROR FileAvailable--etc-kubernetes-manifests-kube-apiserver.yaml]: /etc/kubernetes/manifests/kube-apiserver.yaml already exists
[ERROR FileAvailable--etc-kubernetes-manifests-kube-controller-manager.yaml]: /etc/kubernetes/manifests/kube-controller-manager.yaml already exists
[ERROR FileAvailable--etc-kubernetes-manifests-kube-scheduler.yaml]: /etc/kubernetes/manifests/kube-scheduler.yaml already exists
[ERROR FileAvailable--etc-kubernetes-manifests-etcd.yaml]: /etc/kubernetes/manifests/etcd.yaml already exists
[ERROR Port-10250]: Port 10250 is in use
[ERROR Port-2379]: Port 2379 is in use
[ERROR Port-2380]: Port 2380 is in use
[ERROR DirAvailable--var-lib-etcd]: /var/lib/etcd is not empty
[preflight] If you know what you are doing, you can make a check non-fatal with `--ignore-preflight-errors=...`
To see the stack trace of this error execute with --v=5 or higher
it seems that you already have an incomplete k8s cluster, try:
turn off swap and re-run the script, 'sudo ./k8s-1node-cloud-init-k_1_15-h_2_16-d_18_09.sh', which will perform 'kubeadm reset' to clear any existing k8s cluster.
Hi Jensen,
I am facing the exact same issue. I know that this is after a very long time, but did you figure out the solution for it? your help would be much appreciated.
Check for errors in the script before the localhost error, in my case it has a docker version error, i had to change the version in the k8s-1node-cloud-init-k_1_15-h_2_17-d_19_03.sh file.
I have this versions in the file:
echo "19.03.6" > /opt/config/docker_version.txt
echo "1.15.9" > /opt/config/k8s_version.txt
echo "0.7.5" > /opt/config/k8s_cni_version.txt
echo "2.17.0" > /opt/config/helm_version.txtAlso for this docker version you have to change the ubuntu version to "18.04.02" in the file, if not it won't find the file in the repository:
elif [[ ${UBUNTU_RELEASE} == 18.* ]]; then
echo "Installing on Ubuntu $UBUNTU_RELEASE (Bionic Beaver)"
if [ ! -z "${DOCKERV}" ]; then
DOCKERVERSION="${DOCKERV}-0ubuntu1~18.04.3" #THIS IS THE LINE I MODIFIEDHi,
If anyone still has this problem after using Javi G combinations. try
$ sudo apt-get upgrade
$ sudo apt-get update
before step 3.
This doesn't work still. Do you have updated scripts for latest versions of docker, helm?
Hii Jensen,
Have please have you solved this issue yet..
Im having this exact same issue
hello experts,
after onap deployment, i have a pod not ready but completed, is it normal? thanks
dev-sdnc-sdnrdb-init-job-6v525 0/1 Completed 0 18m 10.244.0.159 smobronze <none> <none>
and is it possible to set the pullPolicy to IfNotPresent for all the charts of onap?