free5Gmano installation questions

The installation guide for free5GMano is a little confusing. Should we post questions about free5gmano here as well?
This is the error we got stucked during installation:
kubectl apply -f multus-daemonset-pre-1.16.yml
unable to recognize “multus-daemonset-pre-1.16.yml”: Get http://localhost:8080/api?timeout=32s: dial tcp 127.0.0.1:8080: connect: connection refused

Hi ywang06,

Have you completed the installation? I just start to try it but it failed at verify first step.
ubuntu@ubuntu-KVM:~$ sudo apt-get install -y kubelet=1.15.3-00 kubeadm=1.15.3-00 kubectl=1.15.3-00 --allow-downgrades
Reading package lists… Done
Building dependency tree
Reading state information… Done

No apt package “kubeadm”, but there is a snap with that name.
Try “snap install kubeadm”

No apt package “kubectl”, but there is a snap with that name.
Try “snap install kubectl”

No apt package “kubelet”, but there is a snap with that name.
Try “snap install kubelet”

E: Unable to locate package kubelet
E: Unable to locate package kubeadm
E: Unable to locate package kubectl
Then, i manual install “kubelet,kubeadm,kubectl” using below commands:
ubuntu@ubuntu-KVM:~ sudo snap install kubeadm --classic kubeadm 1.18.4 from Canonical✓ installed ubuntu@ubuntu-KVM:~ sudo snap install kubectl --classic
kubectl 1.18.4 from Canonical✓ installed
ubuntu@ubuntu-KVM:~ sudo snap install kubectl --classic snap "kubectl" is already installed, see 'snap help refresh' ubuntu@ubuntu-KVM:~ sudo snap install kubelet --classic
kubelet 1.18.4 from Canonical✓ installed

But when i try to show version it generated below error:
ubuntu@ubuntu-KVM:~$ kubectl version
Client Version: version.Info{Major:“1”, Minor:“18”, GitVersion:“v1.18.4”, GitCommit:“c96aede7b5205121079932896c4ad89bb93260af”, GitTreeState:“clean”, BuildDate:“2020-06-18T17:02:08Z”, GoVersion:“go1.13.12”, Compiler:“gc”, Platform:“linux/amd64”}
The connection to the server localhost:8080 was refused - did you specify the right host or port?

I also try to disable swap, but it still displays that error. Please provide some ideas on this.

Thanks

I got the same error. I think the reason that’s happening is because you don’t have a nested VM. We are still trying to figure out how to install. But the information is not very clear, and couldn’t find helping resources.

seems this solve your multus issue above: https://github.com/free5gmano/kube5gnfvo/issues/8

Thank you for the information, we will check it out and update here.

Sorry, i provided wrong topic, so you are stuck at install kube packages, i have same error, but i follow this link and then can install those packets successfully, Can you try?

sudo apt-get update && sudo apt-get install -y apt-transport-https curl
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
cat <<EOF | sudo tee /etc/apt/sources.list.d/kubernetes.list
deb https://apt.kubernetes.io/ kubernetes-xenial main
EOF
sudo apt-get update
sudo apt-get install -y kubelet=1.15.3-00 kubeadm=1.15.3-00 kubectl=1.15.3-00 --allow-downgrades
sudo apt-mark hold kubelet kubeadm kubectl

Hello @ywang06,

Have you passed thru that multus installation step? Notes, the original file work fine. please see my latest comments on previous git link to by pass it.

BTW, i fail at etcd operator step. i’m looking for a solution but no luck. Need help from someone.

ubuntu@ubuntu-KVM:~/kube5gnfvo/example$ cd kube5gnfvo/example/etcd-cluster/rbac/
-bash: cd: kube5gnfvo/example/etcd-cluster/rbac/: No such file or directory
ubuntu@ubuntu-KVM:~/kube5gnfvo/example$ cd etcd-cluster/rbac/
ubuntu@ubuntu-KVM:~/kube5gnfvo/example/etcd-cluster/rbac$ ./create_role.sh
Creating role with ROLE_NAME=etcd-operator, NAMESPACE=default
clusterrole.rbac.authorization.k8s.io/etcd-operator created
Creating role binding with ROLE_NAME=etcd-operator, ROLE_BINDING_NAME=etcd-operator, NAMESPACE=default
clusterrolebinding.rbac.authorization.k8s.io/etcd-operator created
ubuntu@ubuntu-KVM:~/kube5gnfvo/example/etcd-cluster/rbac$ cd ..
ubuntu@ubuntu-KVM:~/kube5gnfvo/example/etcd-cluster$ kubectl apply -f ./
deployment.extensions/etcd-operator created
deployment.apps/etcd-ui created
service/etcd-ui created
service/expose-dual-network-nic-etcd-cluster created
error: unable to recognize "example-etcd-cluster.yaml": no matches for kind "EtcdCluster" in version "etcd.database.coreos.com/v1beta2"

hi @ywang06,

have you passed over that multus installation? please make sure your master node is up, then you can install it normally.
BTW, i just complete mano/nfvo deployment, then start mano-cli installation, but i don’t know how to proceed from this step:

` Setup free5gmano host and port

cd free5gmano-cli/nm
vim setting.py

`
Looking forward to some helps.

Thanks