{"action":"created","issue":{"url":"https://api.github.com/repos/openvswitch/ovn-kubernetes/issues/524","repository_url":"https://api.github.com/repos/openvswitch/ovn-kubernetes","labels_url":"https://api.github.com/repos/openvswitch/ovn-kubernetes/issues/524/labels{/name}","comments_url":"https://api.github.com/repos/openvswitch/ovn-kubernetes/issues/524/comments","events_url":"https://api.github.com/repos/openvswitch/ovn-kubernetes/issues/524/events","html_url":"https://github.com/openvswitch/ovn-kubernetes/issues/524","id":386685055,"node_id":"MDU6SXNzdWUzODY2ODUwNTU=","number":524,"title":"Service ClusterIp:port can not access","user":{"login":"daddylhz","id":9295771,"node_id":"MDQ6VXNlcjkyOTU3NzE=","avatar_url":"https://avatars2.githubusercontent.com/u/9295771?v=4","gravatar_id":"","url":"https://api.github.com/users/daddylhz","html_url":"https://github.com/daddylhz","followers_url":"https://api.github.com/users/daddylhz/followers","following_url":"https://api.github.com/users/daddylhz/following{/other_user}","gists_url":"https://api.github.com/users/daddylhz/gists{/gist_id}","starred_url":"https://api.github.com/users/daddylhz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daddylhz/subscriptions","organizations_url":"https://api.github.com/users/daddylhz/orgs","repos_url":"https://api.github.com/users/daddylhz/repos","events_url":"https://api.github.com/users/daddylhz/events{/privacy}","received_events_url":"https://api.github.com/users/daddylhz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-12-03T07:06:00Z","updated_at":"2018-12-03T18:00:40Z","closed_at":null,"author_association":"NONE","body":"I deploy ovn-kubernetes with files in dist/yaml.\r\n net_cidr:      \"10.16.0.0/16\"\r\n  svc_cidr:      \"10.10.0.0/16\"\r\nI  create two pod and service as follow:\r\n#kubectl get pod -o wide\r\nNAME      READY     STATUS    RESTARTS   AGE       IP          NODE\r\napp1-1    1/1       Running   1          2h        10.16.1.3   10.0.11.24\r\napp2-1    1/1       Running   1          2h        10.16.0.3   10.0.11.12\r\nkubectl get svc\r\nNAME         TYPE        CLUSTER-IP    EXTERNAL-IP   PORT(S)    AGE\r\nkubernetes   ClusterIP   10.10.0.1     <none>        443/TCP    4d\r\nsvc-web-1    ClusterIP   10.10.82.20   <none>        5555/TCP   2d\r\nkubectl get ep\r\nNAME         ENDPOINTS                           AGE\r\nkubernetes   10.0.11.12:15443,10.0.11.24:15443   4d\r\nsvc-web-1    10.16.0.3:5000,10.16.1.3:5000       2d\r\n\r\nI can access the two pod by pod ip\r\ncurl 10.16.0.3:5000\r\n10.16.0.3\r\ncurl 10.16.1.3:5000\r\n10.16.1.3\r\n\r\nBut I can not access the service's clusterIp:port\r\ncurl 10.10.82.20:5555\r\ncurl: (7) Failed connect to 10.10.82.20:5555; timeout\r\n\r\nOn the master node:\r\novn-nbctl list load-balancer\r\n_uuid               : 6be5b599-5ddd-4d8d-90a2-a724f833f71a\r\nexternal_ids        : {\"k8s-cluster-lb-tcp\"=yes}\r\nname                : \"\"\r\nprotocol            : tcp\r\nvips                : {\"10.10.0.10:53\"=\"10.0.11.12:53,10.0.11.24:53\", \"10.10.0.1:443\"=\"10.0.11.12:15443,10.0.11.24:15443\", \"10.10.82.20:5555\"=\"10.16.0.3:5000,10.16.1.3:5000\", \"None:10250\"=\"10.0.11.12:10250,10.0.11.24:10250\", \"None:8809\"=\"10.0.11.12:8809,10.0.11.24:8809\", \"None:9323\"=\"10.0.11.12:9323,10.0.11.24:9323\"}\r\n\r\n_uuid               : f2cc1886-d4c6-4b49-a948-eef0aee1248d\r\nexternal_ids        : {\"k8s-cluster-lb-udp\"=yes}\r\nname                : \"\"\r\nprotocol            : udp\r\nvips                : {}\r\n\r\n# In pod ovnkube\r\n cat /var/log/openvswitch/ovn-controller.log \r\n2018-12-03T11:15:48.559Z|00092|binding|INFO|Claiming lport default_app2-1 for this chassis.\r\n2018-12-03T11:15:48.559Z|00093|binding|INFO|default_app2-1: Claiming dynamic\r\n2018-12-03T11:15:48.976Z|00094|ofctrl|INFO|OpenFlow error: OFPT_ERROR (OF1.3) (xid=0x226): NXBMC_CT_DATAPATH_SUPPORT\r\nOFPT_FLOW_MOD (OF1.3) (xid=0x226): ADD table:18 priority=120,ct_state=+new+trk,tcp,metadata=0x3,nw_dst=10.10.82.20,tp_dst=5555 cookie:0xcf5e8d7c actions=group:1\r\n2018-12-03T11:15:48.976Z|00095|ofctrl|INFO|OpenFlow error: OFPT_ERROR (OF1.3) (xid=0x227): NXBMC_CT_DATAPATH_SUPPORT\r\nOFPT_FLOW_MOD (OF1.3) (xid=0x227): ADD table:18 priority=120,ct_state=+new+trk,tcp,metadata=0x6,nw_dst=10.10.82.20,tp_dst=5555 cookie:0x72de4e50 actions=group:1\r\n\r\n\r\novs-vswitchd.log  ovsdb-server.log  \r\n[root@host-10-0-11-12 ~]# cat /var/log/openvswitch/ovs-vswitchd.log \r\n2018-12-03T12:28:26.132Z|00001|vlog|INFO|opened log file /var/log/openvswitch/ovs-vswitchd.log\r\n2018-12-03T12:28:26.141Z|00002|ovs_numa|INFO|Discovered 2 CPU cores on NUMA node 0\r\n2018-12-03T12:28:26.141Z|00003|ovs_numa|INFO|Discovered 1 NUMA nodes and 2 CPU cores\r\n2018-12-03T12:28:26.141Z|00004|reconnect|INFO|unix:/var/run/openvswitch/db.sock: connecting...\r\n2018-12-03T12:28:26.222Z|00005|reconnect|INFO|unix:/var/run/openvswitch/db.sock: connected\r\n2018-12-03T12:28:26.225Z|00006|dpdk|INFO|DPDK Disabled - Use other_config:dpdk-init to enable\r\n2018-12-03T12:28:26.250Z|00007|ofproto_dpif|INFO|system@ovs-system: Datapath supports recirculation\r\n2018-12-03T12:28:26.250Z|00008|ofproto_dpif|INFO|system@ovs-system: VLAN header stack length probed as 1\r\n2018-12-03T12:28:26.250Z|00009|ofproto_dpif|INFO|system@ovs-system: MPLS label stack length probed as 1\r\n2018-12-03T12:28:26.250Z|00010|ofproto_dpif|INFO|system@ovs-system: Datapath does not support truncate action\r\n2018-12-03T12:28:26.250Z|00011|ofproto_dpif|INFO|system@ovs-system: Datapath supports unique flow ids\r\n2018-12-03T12:28:26.250Z|00012|ofproto_dpif|INFO|system@ovs-system: Datapath does not support clone action\r\n2018-12-03T12:28:26.250Z|00013|ofproto_dpif|INFO|system@ovs-system: Max sample nesting level probed as 3\r\n2018-12-03T12:28:26.250Z|00014|ofproto_dpif|INFO|system@ovs-system: Datapath does not support eventmask in conntrack action\r\n2018-12-03T12:28:26.250Z|00015|ofproto_dpif|INFO|system@ovs-system: Datapath does not support ct_clear action\r\n2018-12-03T12:28:26.250Z|00016|ofproto_dpif|INFO|system@ovs-system: Datapath does not support ct_state\r\n2018-12-03T12:28:26.250Z|00017|ofproto_dpif|INFO|system@ovs-system: Datapath does not support ct_zone\r\n2018-12-03T12:28:26.250Z|00018|ofproto_dpif|INFO|system@ovs-system: Datapath does not support ct_mark\r\n2018-12-03T12:28:26.250Z|00019|ofproto_dpif|INFO|system@ovs-system: Datapath does not support ct_label\r\n2018-12-03T12:28:26.250Z|00020|ofproto_dpif|INFO|system@ovs-system: Datapath does not support ct_state_nat\r\n2018-12-03T12:28:26.250Z|00021|ofproto_dpif|INFO|system@ovs-system: Datapath does not support ct_orig_tuple\r\n2018-12-03T12:28:26.250Z|00022|ofproto_dpif|INFO|system@ovs-system: Datapath does not support ct_orig_tuple6\r\n2018-12-03T12:28:26.337Z|00023|bridge|INFO|bridge br-int: added interface k8s-10.0.11.12 on port 1\r\n2018-12-03T12:28:26.367Z|00024|bridge|INFO|bridge br-int: added interface br-int on port 65534\r\n2018-12-03T12:28:26.367Z|00025|bridge|INFO|bridge br-int: added interface k8s-patch-br-int-br-localnet on port 2\r\n2018-12-03T12:28:26.387Z|00026|netdev_linux|INFO|ioctl(SIOCGIFINDEX) on genev_sys_6081 device failed: No such device\r\n2018-12-03T12:28:26.387Z|00027|bridge|INFO|bridge br-int: added interface ovn-4dd6c1-0 on port 3\r\n2018-12-03T12:28:26.389Z|00028|netdev_linux|INFO|ioctl(SIOCGIFINDEX) on genev_sys_6081 device failed: No such device\r\n2018-12-03T12:28:26.389Z|00029|bridge|INFO|bridge br-localnet: added interface k8s-patch-br-localnet-br-int on port 2\r\n2018-12-03T12:28:26.393Z|00030|bridge|INFO|bridge br-localnet: added interface br-localnet on port 65534\r\n2018-12-03T12:28:26.397Z|00031|bridge|INFO|bridge br-localnet: added interface br-nexthop on port 1\r\n2018-12-03T12:28:26.397Z|00032|bridge|INFO|bridge br-int: using datapath ID 000066380b0a1f4c\r\n2018-12-03T12:28:26.397Z|00033|connmgr|INFO|br-int: added service controller \"punix:/var/run/openvswitch/br-int.mgmt\"\r\n2018-12-03T12:28:26.397Z|00034|bridge|INFO|bridge br-localnet: using datapath ID 00007ec64faa7644\r\n2018-12-03T12:28:26.397Z|00035|connmgr|INFO|br-localnet: added service controller \"punix:/var/run/openvswitch/br-localnet.mgmt\"\r\n2018-12-03T12:28:26.424Z|00036|bridge|INFO|ovs-vswitchd (Open vSwitch) 2.9.2\r\n2018-12-03T12:28:26.426Z|00037|netdev_linux|INFO|ioctl(SIOCGIFINDEX) on genev_sys_6081 device failed: No such device\r\n2018-12-03T12:28:26.436Z|00038|netdev_linux|INFO|ioctl(SIOCGIFINDEX) on genev_sys_6081 device failed: No such device\r\n2018-12-03T12:28:28.107Z|00039|netdev_linux|INFO|ioctl(SIOCGIFINDEX) on genev_sys_6081 device failed: No such device\r\n2018-12-03T12:28:28.117Z|00040|netdev_linux|INFO|ioctl(SIOCGIFINDEX) on genev_sys_6081 device failed: No such device\r\n2018-12-03T12:28:28.265Z|00041|netdev_linux|INFO|ioctl(SIOCGIFINDEX) on genev_sys_6081 device failed: No such device\r\n2018-12-03T12:28:28.270Z|00042|netdev_linux|INFO|ioctl(SIOCGIFINDEX) on genev_sys_6081 device failed: No such device\r\n\r\n# Ovs version\r\n ovs-vsctl show\r\nad7b7ff7-aa2d-473c-bf97-43f21344657d\r\n    Bridge br-int\r\n        fail_mode: secure\r\n        Port br-int\r\n            Interface br-int\r\n                type: internal\r\n        Port \"ovn-4dd6c1-0\"\r\n            Interface \"ovn-4dd6c1-0\"\r\n                type: geneve\r\n                options: {csum=\"true\", key=flow, remote_ip=\"10.0.11.24\"}\r\n        Port \"k8s-10.0.11.12\"\r\n            Interface \"k8s-10.0.11.12\"\r\n                type: internal\r\n        Port \"k8s-patch-br-int-br-localnet\"\r\n            Interface \"k8s-patch-br-int-br-localnet\"\r\n                type: patch\r\n                options: {peer=\"k8s-patch-br-localnet-br-int\"}\r\n    Bridge br-localnet\r\n        Port \"k8s-patch-br-localnet-br-int\"\r\n            Interface \"k8s-patch-br-localnet-br-int\"\r\n                type: patch\r\n                options: {peer=\"k8s-patch-br-int-br-localnet\"}\r\n        Port br-nexthop\r\n            Interface br-nexthop\r\n                type: internal\r\n        Port br-localnet\r\n            Interface br-localnet\r\n                type: internal\r\n    ovs_version: \"2.9.2\"\r\n\r\novs-ofctl -V\r\novs-ofctl (Open vSwitch) 2.10.90\r\nOpenFlow versions 0x1:0x5\r\n\r\novn-controller -V\r\novn-controller (Open vSwitch) 2.10.90\r\nOpenFlow versions 0x4:0x4\r\n"},"comment":{"url":"https://api.github.com/repos/openvswitch/ovn-kubernetes/issues/comments/443806567","html_url":"https://github.com/openvswitch/ovn-kubernetes/issues/524#issuecomment-443806567","issue_url":"https://api.github.com/repos/openvswitch/ovn-kubernetes/issues/524","id":443806567,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MzgwNjU2Nw==","user":{"login":"shettyg","id":4305021,"node_id":"MDQ6VXNlcjQzMDUwMjE=","avatar_url":"https://avatars1.githubusercontent.com/u/4305021?v=4","gravatar_id":"","url":"https://api.github.com/users/shettyg","html_url":"https://github.com/shettyg","followers_url":"https://api.github.com/users/shettyg/followers","following_url":"https://api.github.com/users/shettyg/following{/other_user}","gists_url":"https://api.github.com/users/shettyg/gists{/gist_id}","starred_url":"https://api.github.com/users/shettyg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shettyg/subscriptions","organizations_url":"https://api.github.com/users/shettyg/orgs","repos_url":"https://api.github.com/users/shettyg/repos","events_url":"https://api.github.com/users/shettyg/events{/privacy}","received_events_url":"https://api.github.com/users/shettyg/received_events","type":"User","site_admin":false},"created_at":"2018-12-03T18:00:40Z","updated_at":"2018-12-03T18:00:40Z","author_association":"CONTRIBUTOR","body":"@daddylhz \r\n\r\nFor your question:\r\n>How to install kernel package? Is there any tutorial?\r\n\r\nYou can either\r\n1. Build kernel module RPM package with:\r\nhttp://docs.openvswitch.org/en/latest/intro/install/fedora/\r\n\r\nSpecifically, the section \"Kernel OVS Tree Datapath RPM\"\r\n\r\nOr, you can use Ubuntu 16.04, and just install the openvswitch-datapath-dkms package by following: https://github.com/openvswitch/ovn-kubernetes/blob/master/docs/INSTALL.UBUNTU.md"}}
{"actor":{"display_login":"shettyg"}}