You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@mesos.apache.org by Gilbert Song <gi...@apache.org> on 2019/08/14 20:23:52 UTC

Re: Is chained cni networks supported in mesos 1.7

Are you interested in implementing the CNI chain support?

-Gilbert

On Wed, Jul 24, 2019 at 12:52 PM Marc Roos <M....@f1-outsourcing.eu> wrote:

>
> Hmm, I guess I should not get my hopes up this will be there soon?
> [0]
> https://issues.apache.org/jira/browse/MESOS-7178
>
>
>
> -----Original Message-----
> From: Jie Yu [mailto:yujie.jay@gmail.com]
> Sent: woensdag 24 juli 2019 21:35
> To: user
> Subject: Re: Is chained cni networks supported in mesos 1.7
>
> No, not yet
>
> On Wed, Jul 24, 2019 at 12:27 PM Marc Roos <M....@f1-outsourcing.eu>
> wrote:
>
>
>
>
>
>
>
>         This error message of course
>         E0724 21:19:17.852210  1160 cni.cpp:330] Failed to parse CNI
> network
>         configuration file '/etc/mesos-cni/93-chain.conflist': Protobuf
> parse
>         failed: Missing required fields: typ
>
>
>         -----Original Message-----
>         Subject: Is chained cni networks supported in mesos 1.7
>
>
>         I am getting this error, while I don not have problems using it
> with
>         cnitool.
>
>          cni.cpp:330] Failed to parse CNI network configuration file
>         '/etc/mesos-cni/93-chain-routing-overwrite.conflist.bak': Protobuf
> parse
>         failed: Missing required fields: type
>
>         [@ mesos-cni]# cat 93-chain.conflist
>         {
>           "name": "test-chain",
>           "plugins": [{
>                 "type": "bridge",
>                 "bridge": "test-chain0",
>                 "isGateway": false,
>                 "isDefaultGateway": false,
>                 "ipMasq": false,
>                 "ipam": {
>                     "type": "host-local",
>                     "subnet": "10.15.15.0/24"
>                 }
>             },
>             {
>               "type": "portmap",
>               "capabilities": {"portMappings": true},
>               "snat": false
>             }]
>         }
>
>
>         [@ mesos-cni]#  CNI_PATH="/usr/libexec/cni/"
>         NETCONFPATH="/etc/mesos-cni" cnitool-0.5.2 add test-chain
>         /var/run/netns/testing {
>             "ip4": {
>                 "ip": "10.15.15.2/24",
>                 "gateway": "10.15.15.1"
>             },
>             "dns": {}
>
>
>
>
>
>

RE: Is chained cni networks supported in mesos 1.7

Posted by Marc Roos <M....@f1-outsourcing.eu>.
 
Hi Gilbert, 

Yes indeed. I have written already a netfilter chain plugin[0] I wanted 
to use. But also the default tuning pluging of cni, which requires 
chaining I would like to use.

-Marc

[0]
https://github.com/f1-outsourcing/plugins/tree/hostrouteif/plugins/meta/firewallnetns

-----Original Message-----
To: user
Subject: Re: Is chained cni networks supported in mesos 1.7

Are you interested in implementing the CNI chain support?

-Gilbert

On Wed, Jul 24, 2019 at 12:52 PM Marc Roos <M....@f1-outsourcing.eu> 
wrote:


	 
	Hmm, I guess I should not get my hopes up this will be there soon?
	[0]
	https://issues.apache.org/jira/browse/MESOS-7178
	
	
	
	-----Original Message-----
	From: Jie Yu [mailto:yujie.jay@gmail.com] 
	Sent: woensdag 24 juli 2019 21:35
	To: user
	Subject: Re: Is chained cni networks supported in mesos 1.7
	
	No, not yet
	
	On Wed, Jul 24, 2019 at 12:27 PM Marc Roos 
<M....@f1-outsourcing.eu> 
	wrote:
	
	
	
	
	
	
	
	        This error message of course
	        E0724 21:19:17.852210  1160 cni.cpp:330] Failed to parse 
CNI 
	network 
	        configuration file '/etc/mesos-cni/93-chain.conflist': 
Protobuf 
	parse 
	        failed: Missing required fields: typ
	
	
	        -----Original Message-----
	        Subject: Is chained cni networks supported in mesos 1.7
	
	
	        I am getting this error, while I don not have problems 
using it 
	with 
	        cnitool.
	
	         cni.cpp:330] Failed to parse CNI network configuration 
file
	        '/etc/mesos-cni/93-chain-routing-overwrite.conflist.bak': 
Protobuf 
	parse
	        failed: Missing required fields: type
	
	        [@ mesos-cni]# cat 93-chain.conflist
	        {
	          "name": "test-chain",
	          "plugins": [{
	                "type": "bridge",
	                "bridge": "test-chain0",
	                "isGateway": false,
	                "isDefaultGateway": false,
	                "ipMasq": false,
	                "ipam": {
	                    "type": "host-local",
	                    "subnet": "10.15.15.0/24"
	                }
	            },
	            {
	              "type": "portmap",
	              "capabilities": {"portMappings": true},
	              "snat": false
	            }]
	        }
	
	
	        [@ mesos-cni]#  CNI_PATH="/usr/libexec/cni/"  
	        NETCONFPATH="/etc/mesos-cni" cnitool-0.5.2 add test-chain 
	        /var/run/netns/testing {
	            "ip4": {
	                "ip": "10.15.15.2/24",
	                "gateway": "10.15.15.1"
	            },
	            "dns": {}
	
	
	
	
	
	



RE: Is chained cni networks supported in mesos 1.7

Posted by Marc Roos <M....@f1-outsourcing.eu>.
Hi Gilbert,

How is it going with the chain implementation?

 Thanks,
Marc





-----Original Message-----
From: Gilbert Song [mailto:gilbert@apache.org] 
Sent: woensdag 14 augustus 2019 22:24
To: user
Subject: Re: Is chained cni networks supported in mesos 1.7

Are you interested in implementing the CNI chain support?

-Gilbert

On Wed, Jul 24, 2019 at 12:52 PM Marc Roos <M....@f1-outsourcing.eu> 
wrote:


	 
	Hmm, I guess I should not get my hopes up this will be there soon?
	[0]
	https://issues.apache.org/jira/browse/MESOS-7178
	
	
	
	-----Original Message-----
	From: Jie Yu [mailto:yujie.jay@gmail.com] 
	Sent: woensdag 24 juli 2019 21:35
	To: user
	Subject: Re: Is chained cni networks supported in mesos 1.7
	
	No, not yet
	
	On Wed, Jul 24, 2019 at 12:27 PM Marc Roos 
<M....@f1-outsourcing.eu> 
	wrote:
	
	
	
	
	
	
	
	        This error message of course
	        E0724 21:19:17.852210  1160 cni.cpp:330] Failed to parse 
CNI 
	network 
	        configuration file '/etc/mesos-cni/93-chain.conflist': 
Protobuf 
	parse 
	        failed: Missing required fields: typ
	
	
	        -----Original Message-----
	        Subject: Is chained cni networks supported in mesos 1.7
	
	
	        I am getting this error, while I don not have problems 
using it 
	with 
	        cnitool.
	
	         cni.cpp:330] Failed to parse CNI network configuration 
file
	        '/etc/mesos-cni/93-chain-routing-overwrite.conflist.bak': 
Protobuf 
	parse
	        failed: Missing required fields: type
	
	        [@ mesos-cni]# cat 93-chain.conflist
	        {
	          "name": "test-chain",
	          "plugins": [{
	                "type": "bridge",
	                "bridge": "test-chain0",
	                "isGateway": false,
	                "isDefaultGateway": false,
	                "ipMasq": false,
	                "ipam": {
	                    "type": "host-local",
	                    "subnet": "10.15.15.0/24"
	                }
	            },
	            {
	              "type": "portmap",
	              "capabilities": {"portMappings": true},
	              "snat": false
	            }]
	        }
	
	
	        [@ mesos-cni]#  CNI_PATH="/usr/libexec/cni/"  
	        NETCONFPATH="/etc/mesos-cni" cnitool-0.5.2 add test-chain 
	        /var/run/netns/testing {
	            "ip4": {
	                "ip": "10.15.15.2/24",
	                "gateway": "10.15.15.1"
	            },
	            "dns": {}