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

Does not work as delegate for another CNI plugin #185

Open
mhristache opened this issue May 4, 2018 · 0 comments
Open

Does not work as delegate for another CNI plugin #185

mhristache opened this issue May 4, 2018 · 0 comments

Comments

@mhristache
Copy link

I am trying to use Romana as a delegate plugin for Multus but it seems Romana must be the main plugin so this setup does not work.

Details:

  1. Add a Multus CNI config using Romana as delegate by creating /etc/cni/net.d/00-multus-cni.conf with the following content:
{
    "name": "multus-cni",
    "type": "multus",
    "kubeconfig": "/etc/kubernetes/admin.conf",
    "delegates": [{
        "masterplugin": true,
        "cniVersion": "0.3.0",
		"name": "romana-k8s-network",
		"type": "romana",
		"mtu": 1500,
		"kubernetes_config": "/var/run/romana/kubeconfig",
		"romana_host_name": "kh1",
		"segment_label_name": "romana.io/segment",
		"use_policy": false,
		"romana_client_config" : {
			"EtcdEndpoints" : ["10.96.0.88:12379"]
		},
		"ipam": {
			"type": "romana-ipam"
		}
    }]
}
  1. Init kubernetes
kubeadm init
  1. Install Romana
kubectl apply -f https://raw.githubusercontent.com/romana/romana/master/containerize/specs/romana-kubeadm.yml

When I check the status I can see that romana-agent does not start and in the logs it complains that the CNI config is not installed as another one already exist:

{"log":"Cluster "kubernetes" set.\n","stream":"stdout","time":"2018-05-04T14:44:32.805415156Z"}
{"log":"User "romana-agent" set.\n","stream":"stdout","time":"2018-05-04T14:44:32.962111034Z"}
{"log":"Context "romana-agent@kubernetes" modified.\n","stream":"stdout","time":"2018-05-04T14:44:33.097772721Z"}
{"log":"Switched to context "romana-agent@kubernetes".\n","stream":"stdout","time":"2018-05-04T14:44:33.221845446Z"}
{"log":"Existing CNI configuration found on host:\n","stream":"stdout","time":"2018-05-04T14:44:33.317507742Z"}
{"log":"00-multus.conf\n","stream":"stdout","time":"2018-05-04T14:44:33.317539262Z"}
{"log":"Internal Error: cni config not installed as other configs exist\n","stream":"stdout","time":"2018-05-04T14:44:33.317546

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

No branches or pull requests

1 participant