Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic thick plugin installation failed with quickstart instructions. #1126

Closed
dougbtv opened this issue Jul 21, 2023 · 2 comments · Fixed by #1148
Closed

Basic thick plugin installation failed with quickstart instructions. #1126

dougbtv opened this issue Jul 21, 2023 · 2 comments · Fixed by #1148

Comments

@dougbtv
Copy link
Member

dougbtv commented Jul 21, 2023

Using quickstart instructions at master... I didn't seem to get a configuration file generated on disk?

Steps that I took...

    3  kubectl create -f flannel.yml 
    4  watch -n1 kubectl get pods
    5  watch -n1 kubectl get pods -A
    6  kubectl get nodes
    7  exit
    8  git clone https://github.com/k8snetworkplumbingwg/multus-cni.git && cd multus-cni
   10  git clone https://github.com/k8snetworkplumbingwg/multus-cni.git && cd multus-cni
   11  cat ./deployments/multus-daemonset-thick.yml | kubectl apply -f -
   12  watch -n1 kubectl get pods -A
   13  sudo su
   14  cat <<EOF | kubectl create -f -
apiVersion: "k8s.cni.cncf.io/v1"
kind: NetworkAttachmentDefinition
metadata:
  name: bridge-conf
spec:
  config: '{
      "cniVersion": "0.3.0",
      "type": "bridge",
      "bridge": "cnitest0",
      "ipam": {
        "type": "host-local",
        "subnet": "192.168.1.0/24",
        "rangeStart": "192.168.1.200",
        "rangeEnd": "192.168.1.216",
        "routes": [
          { "dst": "0.0.0.0/0" }
        ],
        "gateway": "192.168.1.1"
      }
    }'
EOF

   27  cat <<EOF | kubectl create -f -
apiVersion: v1
kind: Pod
metadata:
  name: samplepod
  annotations:
    k8s.v1.cni.cncf.io/networks: bridge-conf
spec:
  containers:
  - name: samplepod
    command: ["/bin/ash", "-c", "trap : TERM INT; sleep infinity & wait"]
    image: alpine
EOF

   28  kubectl get pods
   ## No interfaces
   29  kubectl exec -it samplepod -- ip a
   30  kubectl describe pod samplepod
   31  sudo su
   32  kubectl get pods
   33  kubectl get pods -A
   34  kubectl describe pod kube-multus-ds-28csc
   35  kubectl describe pod kube-multus-ds-28csc -n kube-system
   36  kubectl logs kube-multus-ds-28csc -n kube-system
   37  ls
   38  sudo su
   ## No 00-multus.conf
   39  ls /etc/cni/net.d

Wondering if something needs to be fixed up for a default install?

@dougbtv dougbtv changed the title Basic installation failed with quickstart instructions. Basic thick plugin installation failed with quickstart instructions. Jul 21, 2023
@Eoghan1232
Copy link
Collaborator

I hit the same issue, although I can see in the logs

Generated MultusCNI config: {"capabilities":{"portMappings":true},"cniVersion":"0.3.1","logLevel":"verbose","logToStderr":true,"name":"multus-cni-network","clusterNetwork":"/host/etc/cni/net.d/10-flannel.conflist","type":"multus-shim"}

@Eoghan1232
Copy link
Collaborator

manually creating the file fixes my issue, but strange it did not create the file automatically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants