kubeedge/sedna

Failed to install sedna by all-in-one script

jeonginseo opened this issue · 6 comments

Hi,
I trying to install sedna on my VM using all-in-one script:
$ curl https://raw.githubusercontent.com/kubeedge/sedna/master/scripts/installation/all-in-one.sh | KUBEEDGE_VERSION=v1.8.0 NUM_EDGE_NODES=2 sudo bash -
(VM : Ubuntu 20.04, docker 20.10.17, I added sudo to bash)

But it hangs and ends with this message:
error: timed out waiting for the condition on deployments/gm
And, kubectl also failed as below:
The connection to the server localhost:8080 was refused - did you specify the right host or port?

How can I fix the problem?
Thanks

FYI, I copied all the outputs :
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 20119 100 20119 0 0 561k 0 --:--:-- --:--:-- --:--:-- 561k
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 97 100 97 0 0 381 0 --:--:-- --:--:-- --:--:-- 381
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 6660k 100 6660k 0 0 4176k 0 0:00:01 0:00:01 --:--:-- 7419k
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 154 100 154 0 0 658 0 --:--:-- --:--:-- --:--:-- 658
100 44.2M 100 44.2M 0 0 16.6M 0 0:00:02 0:00:02 --:--:-- 18.9M
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 11156 100 11156 0 0 330k 0 --:--:-- --:--:-- --:--:-- 330k
Downloading https://get.helm.sh/helm-v3.9.0-linux-amd64.tar.gz
Verifying checksum... Done.
Preparing to install helm into /usr/local/bin
helm installed into /usr/local/bin/helm
No kind clusters found.
Creating cluster "sedna-mini" ...
✓ Ensuring node image (kubeedge/sedna-allinone-node:v1.21.1) 🖼
✓ Preparing nodes 📦
✓ Writing configuration 📜
✓ Starting control-plane 🕹️
✓ Installing CNI 🔌
✓ Installing StorageClass 💾
✓ Waiting ≤ 1m30s for control-plane = Ready ⏳
• Ready after 27s 💚
Set kubectl context to "kind-sedna-mini"
You can now use your cluster with:

kubectl cluster-info --context kind-sedna-mini

Have a question, bug, or feature request? Let us know! https://kind.sigs.k8s.io/#community 🙂
daemonset.apps/kindnet env updated
Kubernetes version verification passed, KubeEdge installation will start...
kubeedge-v1.9.2-linux-amd64.tar.gz checksum:
checksum_kubeedge-v1.9.2-linux-amd64.tar.gz.txt content:
[Run as service] start to download service file for cloudcore
[Run as service] success to download service file for cloudcore
kubeedge-v1.9.2-linux-amd64/
kubeedge-v1.9.2-linux-amd64/cloud/
kubeedge-v1.9.2-linux-amd64/cloud/cloudcore/
kubeedge-v1.9.2-linux-amd64/cloud/cloudcore/cloudcore
kubeedge-v1.9.2-linux-amd64/cloud/iptablesmanager/
kubeedge-v1.9.2-linux-amd64/cloud/iptablesmanager/iptablesmanager
kubeedge-v1.9.2-linux-amd64/cloud/csidriver/
kubeedge-v1.9.2-linux-amd64/cloud/csidriver/csidriver
kubeedge-v1.9.2-linux-amd64/cloud/admission/
kubeedge-v1.9.2-linux-amd64/cloud/admission/admission
kubeedge-v1.9.2-linux-amd64/edge/
kubeedge-v1.9.2-linux-amd64/edge/edgecore
kubeedge-v1.9.2-linux-amd64/version

KubeEdge cloudcore is running, For logs visit: /var/log/kubeedge/cloudcore.log
CloudCore started
Waiting cloudcore to generate token, 2 seconds...
[I0616 12:54:41.486] Installing 0-th edge node...
a32fbb1702b87836d945daf3169ff1fe69ba987e6a78b752f41fd6759dc39cbf
Reading package lists...
Building dependency tree...
Reading state information...
mosquitto is already the newest version (2.0.10-3).
0 upgraded, 0 newly installed, 0 to remove and 23 not upgraded.
MQTT is installed in this host
kubeedge-v1.9.2-linux-amd64.tar.gz checksum:
checksum_kubeedge-v1.9.2-linux-amd64.tar.gz.txt content:
[Run as service] start to download service file for edgecore
[Run as service] success to download service file for edgecore
kubeedge-v1.9.2-linux-amd64/
kubeedge-v1.9.2-linux-amd64/cloud/
kubeedge-v1.9.2-linux-amd64/cloud/cloudcore/
kubeedge-v1.9.2-linux-amd64/cloud/cloudcore/cloudcore
kubeedge-v1.9.2-linux-amd64/cloud/iptablesmanager/
kubeedge-v1.9.2-linux-amd64/cloud/iptablesmanager/iptablesmanager
kubeedge-v1.9.2-linux-amd64/cloud/csidriver/
kubeedge-v1.9.2-linux-amd64/cloud/csidriver/csidriver
kubeedge-v1.9.2-linux-amd64/cloud/admission/
kubeedge-v1.9.2-linux-amd64/cloud/admission/admission
kubeedge-v1.9.2-linux-amd64/edge/
kubeedge-v1.9.2-linux-amd64/edge/edgecore
kubeedge-v1.9.2-linux-amd64/version

KubeEdge edgecore is running, For logs visit: journalctl -u edgecore.service -b
node/edge0 condition met
node/sedna-mini-control-plane condition met
Installing edgemesh with server on sedna-mini-control-plane
Unable to find image 'mikefarah/yq:latest' locally
latest: Pulling from mikefarah/yq
2408cc74d12b: Pulling fs layer
49cee0c8732e: Pulling fs layer
11c0ff0da217: Pulling fs layer
c13644648945: Pulling fs layer
a5d6fff1a1da: Pulling fs layer
c13644648945: Waiting
a5d6fff1a1da: Waiting
11c0ff0da217: Verifying Checksum
11c0ff0da217: Download complete
49cee0c8732e: Verifying Checksum
49cee0c8732e: Download complete
2408cc74d12b: Download complete
2408cc74d12b: Pull complete
49cee0c8732e: Pull complete
c13644648945: Verifying Checksum
c13644648945: Download complete
11c0ff0da217: Pull complete
c13644648945: Pull complete
a5d6fff1a1da: Verifying Checksum
a5d6fff1a1da: Download complete
a5d6fff1a1da: Pull complete
Digest: sha256:71d9de06ec2a0f906dcd8f4182dd3b5c4fb014d40da4f539a6261112551b4989
Status: Downloaded newer image for mikefarah/yq:latest
reconfigure and restart cloudcore
Reconfigure cloudcore successfully
daemonset.apps/reconfigure-edgecore created
Waiting for daemon set "reconfigure-edgecore" rollout to finish: 0 of 1 updated pods are available...
daemon set "reconfigure-edgecore" successfully rolled out
node/edge0 condition met
Release "edgemesh" does not exist. Installing it now.
NAME: edgemesh
LAST DEPLOYED: Thu Jun 16 12:57:00 2022
NAMESPACE: default
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:


***** WARNING *****


  • Some values need to be modified according to your own cluster info.
  • Visit https://github.com/kubeedge/edgemesh for more information.
    Install edgemesh successfully
    Error from server (NotFound): namespaces "sedna" not found
    [I0616 12:57:01.581] Installing Sedna Control Components...
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    100 9591 100 9591 0 0 34131 0 --:--:-- --:--:-- --:--:-- 34131
    No resources found in default namespace.
    downloading sedna.io_datasets.yaml into /tmp/tmp.3QzLO5BgrF.sedna/build/crds
    downloading sedna.io_federatedlearningjobs.yaml into /tmp/tmp.3QzLO5BgrF.sedna/build/crds
    downloading sedna.io_incrementallearningjobs.yaml into /tmp/tmp.3QzLO5BgrF.sedna/build/crds
    downloading sedna.io_jointinferenceservices.yaml into /tmp/tmp.3QzLO5BgrF.sedna/build/crds
    downloading sedna.io_lifelonglearningjobs.yaml into /tmp/tmp.3QzLO5BgrF.sedna/build/crds
    downloading sedna.io_models.yaml into /tmp/tmp.3QzLO5BgrF.sedna/build/crds
    downloading gm.yaml into /tmp/tmp.3QzLO5BgrF.sedna/build/gm/rbac
    Installing Sedna v0.5.0...
    namespace/sedna created
    customresourcedefinition.apiextensions.k8s.io/datasets.sedna.io created
    customresourcedefinition.apiextensions.k8s.io/federatedlearningjobs.sedna.io created
    customresourcedefinition.apiextensions.k8s.io/incrementallearningjobs.sedna.io created
    customresourcedefinition.apiextensions.k8s.io/jointinferenceservices.sedna.io created
    customresourcedefinition.apiextensions.k8s.io/lifelonglearningjobs.sedna.io created
    customresourcedefinition.apiextensions.k8s.io/models.sedna.io created
    service/kb created
    deployment.apps/kb created
    clusterrole.rbac.authorization.k8s.io/sedna created
    clusterrolebinding.rbac.authorization.k8s.io/sedna created
    serviceaccount/sedna created
    configmap/gm-config created
    service/gm created
    deployment.apps/gm created
    daemonset.apps/lc created
    Waiting control components to be ready...

<>

error: timed out waiting for the condition on deployments/gm

I have the same problem as you, did you solve it?

nope :(
I'm trying to change docker version same as readme

试试调整一下命令:

$ curl https://raw.githubusercontent.com/kubeedge/sedna/master/scripts/installation/all-in-one.sh | sudo KUBEEDGE_VERSION=v1.8.0 NUM_EDGE_NODES=2 bash -

另外可以看看gm的日志,为啥没有ready?

I set the version of sedna to 0.4.3 f and it was successful :
(K8s(kubectl, kubeadm, kubelet) = 1.19.16, Docker = 19.03.15, containerd.io=1.3.7)
I think the new sedna(0.5.0) uses (nearly) latest k8s that not based on docker.

Here is the output :
$ curl https://raw.githubusercontent.com/kubeedge/sedna/master/scripts/installation/all-in-one.sh | sudo SEDNA_VERSION=0.4.3 KUBEEDGE_VERSION=v1.8.0 NUM_EDGE_NODES=2 bash -

(omitted)
service/gm created
deployment.apps/gm created
daemonset.apps/lc created
Waiting control components to be ready...

deployment.apps/gm condition met
pod/gm-5bb9c898d6-9vc87 condition met
pod/kb-6b7897c89-jmvr6 condition met
pod/lc-59zwg condition met
pod/lc-r7m9c condition met
pod/lc-wdtth condition met
NAME READY STATUS RESTARTS AGE
gm-5bb9c898d6-9vc87 1/1 Running 0 39s
kb-6b7897c89-jmvr6 1/1 Running 0 39s
lc-59zwg 1/1 Running 0 38s
lc-r7m9c 1/1 Running 0 38s
lc-wdtth 1/1 Running 0 38s
Sedna is running:
See GM status: kubectl -n sedna get deploy
See LC status: kubectl -n sedna get ds lc
See Pod status: kubectl -n sedna get pod
[I0621 15:31:39.949] Mini Sedna is created successfully

I have the same problem as you. But my sedna version is 0.4.3 and still no working
following are my cmd:

curl https://raw.githubusercontent.com/Yoda-wu/sedna/main/scripts/installation/all-in-one.sh | NUM_CLOUD_WORKER_NODES=1 NUM_EDGE_NODES=2 KUBEEDGE_VERSION=1.8.0 SEDNA_VERSION=0.4.3 CLUSTER_NAME=ianvs-simulation bash -

I have the same problem as you. But my sedna version is 0.4.3 and still no working following are my cmd:

curl https://raw.githubusercontent.com/Yoda-wu/sedna/main/scripts/installation/all-in-one.sh | NUM_CLOUD_WORKER_NODES=1 NUM_EDGE_NODES=2 KUBEEDGE_VERSION=1.8.0 SEDNA_VERSION=0.4.3 CLUSTER_NAME=ianvs-simulation bash -

i think that is beacuse i cannot pull the image of kubeedge/sedna-gm.

FATA[0004] pulling image: rpc error: code = NotFound desc = failed to pull and unpack image "docker.io/kubeedge/sedna-gm:latest": failed to resolve reference "docker.io/kubeedge/sedna-gm:latest": dock

i dont know how to fix it @llhuii plz have a look