onosproject / onos-helm-charts

Helm charts for ONOS (µONOS Architecture)
https://charts.onosproject.org
31 stars 33 forks source link

Not able to install onos-umbrella on a microk8s cluster #637

Open paaguti opened 2 years ago

paaguti commented 2 years ago

I'm trying to test micro-onos on a microk8s single node cluster

I succeed to create the namespaces and after deploying on the kube-systemnamespace, I see the following:

Every 5.0s: kubectl -n kube-system get pods                         uk8s: Fri May 27 10:26:16 2022

NAME                                              READY   STATUS    RESTARTS   AGE
atomix-controller-99f978c7d-mxkmf                 0/1     Running   0          6m48s
atomix-raft-storage-controller-5446776fd6-5l24s   1/1     Running   0          13m
coredns-67fccc976-d44ld                           1/1     Running   0          19m
hostpath-provisioner-75fdc8fccd-89kl7             1/1     Running   0          19m
onos-operator-app-676674b79c-vr259                0/1     Running   0          6m3s
onos-operator-topo-7698956594-8lg4v               1/1     Running   0          6m3s

When I try to deploy 'onos-umbrellaon themicro-onos`namespace I get:

student@uk8s:~$ helm -n micro-onos install onos-umbrella onosproject/onos-umbrella
Error: unable to build kubernetes objects from release manifest: error validating "": error validating data: ValidationError(Deployment.spec.template.spec.securityContext): unknown field "seccompProfile" in io.k8s.api.core.v1.PodSecurityContext

Current snaps:

student@uk8s:~$ snap list
Name      Version        Rev    Tracking       Publisher   Notes
core      16-2.55.5      13250  latest/stable  canonical✓  core
core20    20220512       1494   latest/stable  canonical✓  base
lxd       4.0.9-8e2046b  22753  4.0/stable/…   canonical✓  -
microk8s  v1.18.20       2271   1.18/stable    canonical✓  classic
snapd     2.55.5         15904  latest/stable  canonical✓  snapd

The VM I'm running is a Ubuntu20.04 LTS

uname -a
Linux uk8s 5.4.0-107-generic #121-Ubuntu SMP Thu Mar 24 16:04:27 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
SeanCondon commented 2 years ago

I can see that the atomix-controller is not deployed properly - until it is, you will not be able to install enos-umbrella

See https://docs.aetherproject.org/master/developer/roc.html#installing-prerequisites for some docs on installing it.

Sean

On 27 May 2022, at 11:27, Pedro A. Aranda Gutiérrez @.**@.>> wrote:

I'm tying to test micro-onos on a microk8s single node cluster

I succeed to create the namespaces and after deploying on the kube-systemnamespace, I see the following:

Every 5.0s: kubectl -n kube-system get pods uk8s: Fri May 27 10:26:16 2022

NAME READY STATUS RESTARTS AGE atomix-controller-99f978c7d-mxkmf 0/1 Running 0 6m48s atomix-raft-storage-controller-5446776fd6-5l24s 1/1 Running 0 13m coredns-67fccc976-d44ld 1/1 Running 0 19m hostpath-provisioner-75fdc8fccd-89kl7 1/1 Running 0 19m onos-operator-app-676674b79c-vr259 0/1 Running 0 6m3s onos-operator-topo-7698956594-8lg4v 1/1 Running 0 6m3s

When I try to deploy 'onos-umbrellaon the micro-onos`namespace I get:

@.***:~$ helm -n micro-onos install onos-umbrella onosproject/onos-umbrella Error: unable to build kubernetes objects from release manifest: error validating "": error validating data: ValidationError(Deployment.spec.template.spec.securityContext): unknown field "seccompProfile" in io.k8s.api.core.v1.PodSecurityContext

— Reply to this email directly, view it on GitHubhttps://github.com/onosproject/onos-helm-charts/issues/637, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACOTVUFCUYXU4VUNDSOBS7TVMCPRFANCNFSM5XDZYNKQ. You are receiving this because you are subscribed to this thread.Message ID: @.***>


Intel Research and Development Ireland Limited Registered in Ireland Registered Office: Collinstown Industrial Park, Leixlip, County Kildare Registered Number: 308263

This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.

Mohammen1977 commented 2 years ago

Hi @SeanCondon I have a problem also by deploying the µONOS services umbrella after installing it I've done all the steps as per "https://docs.onosproject.org/developers/deploy_with_helm/#deploy-atomix-controller" But when I tried to Run the install: $ helm -n micro-onos install onos-umbrella onosproject/onos-umbrella I couldn't as below : WARNING: Kubernetes configuration file is group-readable. This is insecure. Location: /home/mohammed/.kube/kind WARNING: Kubernetes configuration file is world-readable. This is insecure. Location: /home/mohammed/.kube/kind Error: INSTALLATION FAILED: unable to build kubernetes objects from release manifest: error validating "": error validating data: ValidationError(Deployment.spec.template.spec.securityContext): unknown field "seccompProfile" in io.k8s.api.core.v1.PodSecurityContext

Your help is highly appreciated

SeanCondon commented 2 years ago

I have a problem also by deploying the µONOS services umbrella after installing it Hi @Mohammen1977 - this is really a separate issue, since you appear to be installing it on KinD.

Please run these commands to see if the atomix components and the onos-operator are installed OK

helm -n kube-system list
kubectl -n kube-system get pods | grep -i atomix
kubectl -n kube-system get pods | grep -i onos

I suspect it is your evnironment is wrong - do you have any way of validating that helm and kind are installed properly independently of micro-onos?

You may find this guide useful as well - it is for ROC - which is like an adv https://docs.aetherproject.org/master/developer/roc.html

Mohammen1977 commented 2 years ago

I have a problem also by deploying the µONOS services umbrella after installing it Hi @Mohammen1977 - this is really a separate issue, since you appear to be installing it on KinD.

Please run these commands to see if the atomix components and the onos-operator are installed OK

helm -n kube-system list
kubectl -n kube-system get pods | grep -i atomix
kubectl -n kube-system get pods | grep -i onos

I suspect it is your evnironment is wrong - do you have any way of validating that helm and kind are installed properly independently of micro-onos?

You may find this guide useful as well - it is for ROC - which is like an adv https://docs.aetherproject.org/master/developer/roc.html

Hi , thanks for you reply The atomix and ONOS operator are installed properly. Please find the below:

root@DESKTOP-B3OO8UU:~# helm -n kube-system list NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSION atomix-controller kube-system 1 2022-08-08 03:25:08.31977441 +0100 BST deployed atomix-controller-0.6.9 v0.6.2
atomix-raft-storage kube-system 1 2022-08-08 03:25:11.57485373 +0100 BST deployed atomix-raft-storage-0.1.26 v0.9.20
onos-operator kube-system 1 2022-08-08 03:25:27.147694865 +0100 BST deployed onos-operator-0.5.5 v0.5.2
root@DESKTOP-B3OO8UU:~# kubectl -n kube-system get pods | grep -i atomix atomix-controller-99f978c7d-wg9js 1/1 Running 1 12h atomix-raft-storage-controller-5446776fd6-844bt 1/1 Running 1 12h root@DESKTOP-B3OO8UU:~# kubectl -n kube-system get pods | grep -i onos onos-operator-app-5944cb8fcc-w8cw2 1/1 Running 1 12h onos-operator-topo-77cd856489-zrq8q 1/1 Running 1 12h

Mohammen1977 commented 2 years ago

Still have problems with the below

helm -n micro-onos install aether-roc-umbrella aether/aether-roc-umbrella -f values-override.yaml Error: unable to build kubernetes objects from release manifest: error validating "": error validating data: ValidationError(Deployment.spec.template.spec.securityContext): unknown field "seccompProfile" in io.k8s.api.core.v1.PodSecurityContext

paaguti commented 2 years ago

Thanks for the tip... I'll try out

Best, /PA

On Fri, 27 May 2022 at 14:43, Sean Condon @.***> wrote:

I can see that the atomix-controller is not deployed properly - until it is, you will not be able to install enos-umbrella

See https://docs.aetherproject.org/master/developer/roc.html#installing-prerequisites for some docs on installing it.

Sean

On 27 May 2022, at 11:27, Pedro A. Aranda Gutiérrez @.**@.>> wrote:

I'm tying to test micro-onos on a microk8s single node cluster

I succeed to create the namespaces and after deploying on the kube-systemnamespace, I see the following:

Every 5.0s: kubectl -n kube-system get pods uk8s: Fri May 27 10:26:16 2022

NAME READY STATUS RESTARTS AGE atomix-controller-99f978c7d-mxkmf 0/1 Running 0 6m48s atomix-raft-storage-controller-5446776fd6-5l24s 1/1 Running 0 13m coredns-67fccc976-d44ld 1/1 Running 0 19m hostpath-provisioner-75fdc8fccd-89kl7 1/1 Running 0 19m onos-operator-app-676674b79c-vr259 0/1 Running 0 6m3s onos-operator-topo-7698956594-8lg4v 1/1 Running 0 6m3s

When I try to deploy 'onos-umbrellaon the micro-onos`namespace I get:

@.***:~$ helm -n micro-onos install onos-umbrella onosproject/onos-umbrella Error: unable to build kubernetes objects from release manifest: error validating "": error validating data: ValidationError(Deployment.spec.template.spec.securityContext): unknown field "seccompProfile" in io.k8s.api.core.v1.PodSecurityContext

— Reply to this email directly, view it on GitHub< https://github.com/onosproject/onos-helm-charts/issues/637>, or unsubscribe< https://github.com/notifications/unsubscribe-auth/ACOTVUFCUYXU4VUNDSOBS7TVMCPRFANCNFSM5XDZYNKQ>.

You are receiving this because you are subscribed to this thread.Message ID: @.***>


Intel Research and Development Ireland Limited Registered in Ireland Registered Office: Collinstown Industrial Park, Leixlip, County Kildare Registered Number: 308263

This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.

— Reply to this email directly, view it on GitHub https://github.com/onosproject/onos-helm-charts/issues/637#issuecomment-1139583499, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAZKU4F6CBP7QEZ3D7WXCGLVMC7N3ANCNFSM5XDZYNKQ . You are receiving this because you authored the thread.Message ID: @.***>

-- Fragen sind nicht da um beantwortet zu werden, Fragen sind da um gestellt zu werden Georg Kreisler

Headaches with a Juju log: unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we should run a leader-deposed hook here, but we can't yet