contiv / netplugin

Container networking for various use cases
Apache License 2.0
512 stars 177 forks source link

Contiv on Openshift #1161

Closed Mikey032 closed 3 years ago

Mikey032 commented 5 years ago

Description

It isn't possible at the moment to deploy Contiv on Openshift 3.11. Currently someone readded Contiv on the 3.11 branch but it doesn't seem to work out very well. (https://github.com/openshift/openshift-ansible/issues/10788)

Expected Behavior

Contiv installation completes successful on Openshift 3.11.

Observed Behavior

We are using the contiv bridge mode with vlan encapsulation and ovs. The ovs is installed from an Openstack repo where the installation of ovs itself fails with dependency and permission errors. By using the official Centos ovs package, the ovs service starts successfully. The next problem is the etcd proxy that receives TLS errors when using the use_contiv_etcd=False option. When not using the option the Contiv etcd server is in a crashloop.

Something else that is weird is by specifying contiv_private_ext_subnet it only wants a /16 subnet. What is the reason for this?

Steps to Reproduce (for bugs)

  1. Install Ansible and clone the repo https://github.com/amon-ra/openshift-ansible/tree/oondeo-3.11
  2. edit the hosts file with adding: openshift_additional_repos=[{'id': 'centos-okd-ci', 'name': 'centos-okd-ci', 'baseurl' :'http://buildlogs.centos.org/centos/7/paas/x86_64/openshift-origin311/', 'gpgcheck' :'0', 'enabled' :'1'}]
  3. edit the Contiv role so the ovs package is installed from the official Centos repo
  4. run the playbook

Your Environment

srampal commented 5 years ago

FYI Contiv support with Openshift has not been actively maintained since about Openshift 3.7 so it’s likely not working for recent releases. For the etcd error, your quickest route may be to pursue the use_contiv_etcd=false option and triage the TLS errors.

On Dec 12, 2018, at 4:16 AM, MikeySmet notifications@github.com<mailto:notifications@github.com> wrote:

Description

It isn't possible at the moment to deploy Contiv on Openshift 3.11. Currently someone readded Contiv on the 3.11 branch but it doesn't seem to work out very well. (openshift/openshift-ansible#10788https://github.com/openshift/openshift-ansible/issues/10788)

Expected Behavior

Contiv installation completes successful on Openshift 3.11.

Observed Behavior

We are using the contiv bridge mode with vlan encapsulation and ovs. The ovs is installed from an Openstack repo where the installation of ovs itself fails with dependency and permission errors. By using the official Centos ovs package, the ovs service starts successfully. The next problem is the etcd proxy that receives TLS errors when using the use_contiv_etcd=False option. When not using the option the Contiv etcd server is in a crashloop.

Something else that is weird is by specifying contiv_private_ext_subnet it only wants a /16 subnet. What is the reason for this?

Steps to Reproduce (for bugs)

  1. Install Ansible and clone the repo https://github.com/amon-ra/openshift-ansible/tree/oondeo-3.11
  2. edit the hosts file with adding: openshift_additional_repos=[{'id': 'centos-okd-ci', 'name': 'centos-okd-ci', 'baseurl' :'http://buildlogs.centos.org/centos/7/paas/x86_64/openshift-origin311/', 'gpgcheck' :'0', 'enabled' :'1http://buildlogs.centos.org/centos/7/paas/x86_64/openshift-origin311/',%20'gpgcheck'%20:'0',%20'enabled'%20:'1'}]
  3. edit the Contiv role so the ovs package is installed from the official Centos repo
  4. run the playbook

Your Environment

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/contiv/netplugin/issues/1161, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AIL80LRGJqd1FBLn0iNey4DNOSVbUe-Iks5u4PONgaJpZM4ZPUtG.

Mikey032 commented 5 years ago

Solved the TLS errors and contiv netmaster en netplugins are working correctly except that it isn't possible to use services. A request, that goes from a containers to a service with service cidr 172.30.0.0/16, is routed to the default gateway which it denies. Doesn't the request need to stay in the "internal network"?

Mikey032 commented 5 years ago

After some changes it is now possible to use services from within pods using contiv but not from pods running in the host network. This traffic is routed to the default gateway. Is it possible to troubleshoot? EDIT: I have 2 nics on my virtual machines, a management nic and a data nic.