istio: buildGatewayListeners: Have zero listeners: 1 error occurred

Describe the bug When I try to create a gaway whih tcp protocol,Nothing happened ,istio-ingressgateway no log output, istio-pilot output error liks:


* gateway omitting listener "0.0.0.0_26443" due to: must have more than 0 chains in listener: &v2.Listener{Name:"0.0.0.0_26443", Address:core.Address{Address:(*core.Address_SocketAddress)(0xc420750f80)}, FilterChains:[]listener.FilterChain{}, UseOriginalDst:nil, PerConnectionBufferLimitBytes:nil, Metadata:(*core.Metadata)(nil), DeprecatedV1:(*v2.Listener_DeprecatedV1)(nil), DrainType:0, ListenerFilters:[]listener.ListenerFilter(nil), Transparent:nil, Freebind:nil, SocketOptions:[]*core.SocketOption(nil), TcpFastOpenQueueLength:nil}

Steps to reproduce the bug

cat <<EOF |istioctl create -f -
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
  name: bookinfo-gateway
  namespace: default
spec:
  selector:
    istio: ingressgateway
  servers:
  - hosts:
    - '*'
    port:
      name: dashboard
      number: 26443
      protocol: TCP
EOF

Version

root@128:/home/kinglong# istioctl  version
Version: 1.0.0
GitRevision: 3a136c90ec5e308f236e0d7ebb5c4c5e405217f4
User: root@71a9470ea93c
Hub: gcr.io/istio-release
GolangVersion: go1.10.1
BuildStatus: Clean

root@128:/home/kinglong# kubectl  version
Client Version: version.Info{Major:"1", Minor:"10", GitVersion:"v1.10.4", GitCommit:"5ca598b4ba5abb89bb773071ce452e33fb66339d", GitTreeState:"clean", BuildDate:"2018-06-06T08:13:03Z", GoVersion:"go1.9.3", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"11", GitVersion:"v1.11.2", GitCommit:"bb9ffb1654d4a729bb4cec18ff088eacc153c239", GitTreeState:"clean", BuildDate:"2018-08-07T23:08:19Z", GoVersion:"go1.10.3", Compiler:"gc", Platform:"linux/amd64"}

Is Istio Auth enabled or not? NO

Environment

root@128:/home/kinglong# uname -a Linux 128 4.4.0-116-generic #140-Ubuntu SMP Mon Feb 12 21:23:04 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 49 (21 by maintainers)

Most upvoted comments

Can we reopen please ? I have the same issue with Istio 1.5.0

still have the same issue on istio 1.7.0

020-08-25T03:18:56.898868Z	info	1 error occurred:
	* gateway omitting listener "0.0.0.0_5432" due to: must have more than 0 chains in listener: &envoy_config_listener_v3.Listener{state:impl.MessageState{NoUnkeyedLiterals:pragma.NoUnkeyedLiterals{}, DoNotCompare:pragma.DoNotCompare{}, DoNotCopy:pragma.DoNotCopy{}, atomicMessageInfo:(*impl.MessageInfo)(nil)}, sizeCache:0, unknownFields:[]uint8(nil), Name:"0.0.0.0_5432", Address:(*envoy_config_core_v3.Address)(0xc0014c4e00), FilterChains:[]*envoy_config_listener_v3.FilterChain{}, PerConnectionBufferLimitBytes:(*wrapperspb.UInt32Value)(nil), Metadata:(*envoy_config_core_v3.Metadata)(nil), DeprecatedV1:(*envoy_config_listener_v3.Listener_DeprecatedV1)(nil), DrainType:0, ListenerFilters:[]*envoy_config_listener_v3.ListenerFilter(nil), ListenerFiltersTimeout:(*durationpb.Duration)(nil), ContinueOnListenerFiltersTimeout:false, Transparent:(*wrapperspb.BoolValue)(nil), Freebind:(*wrapperspb.BoolValue)(nil), SocketOptions:[]*envoy_config_core_v3.SocketOption(nil), TcpFastOpenQueueLength:(*wrapperspb.UInt32Value)(nil), TrafficDirection:2, UdpListenerConfig:(*envoy_config_listener_v3.UdpListenerConfig)(nil), ApiListener:(*envoy_config_listener_v3.ApiListener)(nil), ConnectionBalanceConfig:(*envoy_config_listener_v3.Listener_ConnectionBalanceConfig)(nil), ReusePort:false, AccessLog:[]*envoy_config_accesslog_v3.AccessLog(nil), HiddenEnvoyDeprecatedUseOriginalDst:(*wrapperspb.BoolValue)(nil)}

Configuration:

apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
  name: postgres-vs
  namespace: postgres
spec:
  hosts:
  - "dev.local"
  gateways:
  - local-gateway
  tcp:
  - match:
    - port: 5432
    route:
    - destination:
        host: postgres-0
        port:
          number: 5432 
      weight: 100
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
  name: local-gateway
spec:
  selector:
    istio: ingressgateway # use Istio default gateway implementation
  servers:
  - port:
      number: 5432
      name: tcp
      protocol: TCP
    hosts:
    - "dev.local"

any messages about this?