Skip to content

core dump when updating configuration with xDS #12043

Closed

Description

@vinzo99

DESCRIPTION

We are reporting a segmentation fault occuring with Envoy 1.14.1, in a situation where successive configuration updates are sent via xDS, successively adding/removing aggregate clusters. This could be related to the respective draining listener routes which reference these aggregate clusters.

Here is the full dump stack after troubleshooting with debug symbols binary :

sh-4.4$ gdb /usr/local/bin/envoy /tmp/core.11.11781.1594290271.envoy 
GNU gdb (GDB) Red Hat Enterprise Linux 8.2-11.el8
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/local/bin/envoy...done.

warning: exec file is newer than core file.
[New LWP 31]
[New LWP 13]
[New LWP 15]
[New LWP 28]
[New LWP 36]
[New LWP 21]
[New LWP 32]
[New LWP 23]
[New LWP 16]
[New LWP 12]
[New LWP 14]
[New LWP 27]
[New LWP 18]
[New LWP 29]
[New LWP 42]
[New LWP 17]
[New LWP 24]
[New LWP 30]
[New LWP 41]
[New LWP 37]
[New LWP 33]
[New LWP 35]
[New LWP 26]
[New LWP 22]
[New LWP 34]
[New LWP 39]
[New LWP 38]
[New LWP 11]
[New LWP 19]
[New LWP 40]
[New LWP 25]
[New LWP 20]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `/usr/local/bin/envoy -l info --log-path /mnt/log/envoyfifo --log-format [%l][%n'.
Program terminated with signal SIGABRT, Aborted.
#0  0x00007ff78c36670f in raise () from /lib64/libc.so.6
[Current thread is 1 (Thread 0x7ff78231a700 (LWP 31))]
Missing separate debuginfos, use: yum debuginfo-install cesp-envoy-debug-1.14.1-3.x86_64
(gdb) bt
#0  0x00007ff78c36670f in raise () from /lib64/libc.so.6
#1  0x00007ff78c350b25 in abort () from /lib64/libc.so.6
#2  0x000055db05b81fac in Envoy::Extensions::Clusters::Aggregate::Cluster::refresh(std::__1::function<bool (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)> const&)::$_1::operator()() const (this=0x55db0b79d580) at source/extensions/clusters/aggregate/cluster.cc:90
#3  0x000055db05b81dad in std::__1::__invoke<Envoy::Extensions::Clusters::Aggregate::Cluster::refresh(std::__1::function<bool (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)> const&)::$_1&> (__f=...) at /opt/llvm/bin/../include/c++/v1/type_traits:3530
#4  0x000055db05b81d5d in std::__1::__invoke_void_return_wrapper<void>::__call<Envoy::Extensions::Clusters::Aggregate::Cluster::refresh(std::__1::function<bool (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)> const&)::$_1&>(Envoy::Extensions::Clusters::Aggregate::Cluster::refresh(std::__1::function<bool (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)> const&)::$_1&) (__args=...) at /opt/llvm/bin/../include/c++/v1/__functional_base:348
#5  0x000055db05b81d2d in std::__1::__function::__alloc_func<Envoy::Extensions::Clusters::Aggregate::Cluster::refresh(std::__1::function<bool (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)> const&)::$_1, std::__1::allocator<Envoy::Extensions::Clusters::Aggregate::Cluster::refresh(std::__1::function<bool (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)> const&)::$_1>, void ()>::operator()() (this=0x55db0b79d580) at /opt/llvm/bin/../include/c++/v1/functional:1533
#6  0x000055db05b80eee in std::__1::__function::__func<Envoy::Extensions::Clusters::Aggregate::Cluster::refresh(std::__1::function<bool (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)> const&)::$_1, std::__1::allocator<Envoy::Extensions::Clusters::Aggregate::Cluster::refresh(std::__1::function<bool (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)> const&)::$_1>, void ()>::operator()() (this=0x55db0b79d570) at /opt/llvm/bin/../include/c++/v1/functional:1707
#7  0x000055db05a2f435 in std::__1::__function::__value_func<void ()>::operator()() const (this=0x55db0b350740) at /opt/llvm/bin/../include/c++/v1/functional:1860
#8  0x000055db05a2f0d5 in std::__1::function<void ()>::operator()() const (this=0x55db0b350740) at /opt/llvm/bin/../include/c++/v1/functional:2419
#9  0x000055db075ab6c5 in Envoy::ThreadLocal::InstanceImpl::Bookkeeper::runOnAllThreads(std::__1::function<void ()>)::$_5::operator()() const (this=0x55db0b350740) at source/common/thread_local/thread_local_impl.cc:90
#10 0x000055db075ab68d in std::__1::__invoke<Envoy::ThreadLocal::InstanceImpl::Bookkeeper::runOnAllThreads(std::__1::function<void ()>)::$_5&> (__f=...) at /opt/llvm/bin/../include/c++/v1/type_traits:3530
#11 0x000055db075ab63d in std::__1::__invoke_void_return_wrapper<void>::__call<Envoy::ThreadLocal::InstanceImpl::Bookkeeper::runOnAllThreads(std::__1::function<void ()>)::$_5&>(Envoy::ThreadLocal::InstanceImpl::Bookkeeper::runOnAllThreads(std::__1::function<void ()>)::$_5&) (__args=...) at /opt/llvm/bin/../include/c++/v1/__functional_base:348
#12 0x000055db075ab60d in std::__1::__function::__alloc_func<Envoy::ThreadLocal::InstanceImpl::Bookkeeper::runOnAllThreads(std::__1::function<void ()>)::$_5, std::__1::allocator<Envoy::ThreadLocal::InstanceImpl::Bookkeeper::runOnAllThreads(std::__1::function<void ()>)::$_5>, void ()>::operator()() (this=0x55db0b350740) at /opt/llvm/bin/../include/c++/v1/functional:1533
#13 0x000055db075aa80e in std::__1::__function::__func<Envoy::ThreadLocal::InstanceImpl::Bookkeeper::runOnAllThreads(std::__1::function<void ()>)::$_5, std::__1::allocator<Envoy::ThreadLocal::InstanceImpl::Bookkeeper::runOnAllThreads(std::__1::function<void ()>)::$_5>, void ()>::operator()() (this=0x55db0b350730) at /opt/llvm/bin/../include/c++/v1/functional:1707
#14 0x000055db05a2f435 in std::__1::__function::__value_func<void ()>::operator()() const (this=0x7ff782305d90) at /opt/llvm/bin/../include/c++/v1/functional:1860
#15 0x000055db05a2f0d5 in std::__1::function<void ()>::operator()() const (this=0x7ff782305d90) at /opt/llvm/bin/../include/c++/v1/functional:2419
#16 0x000055db07772a69 in Envoy::Event::DispatcherImpl::runPostCallbacks (this=0x55db0ad68780) at source/common/event/dispatcher_impl.cc:225
#17 0x000055db07775478 in Envoy::Event::DispatcherImpl::DispatcherImpl(std::__1::unique_ptr<Envoy::Buffer::WatermarkFactory, std::__1::default_delete<Envoy::Buffer::WatermarkFactory> >&&, Envoy::Api::Api&, Envoy::Event::TimeSystem&)::$_1::operator()() const (this=0x55db0ad43048) at source/common/event/dispatcher_impl.cc:43
#18 0x000055db0777543d in std::__1::__invoke<Envoy::Event::DispatcherImpl::DispatcherImpl(std::__1::unique_ptr<Envoy::Buffer::WatermarkFactory, std::__1::default_delete<Envoy::Buffer::WatermarkFactory> >&&, Envoy::Api::Api&, Envoy::Event::TimeSystem&)::$_1&> (__f=...) at /opt/llvm/bin/../include/c++/v1/type_traits:3530
#19 0x000055db077753ed in std::__1::__invoke_void_return_wrapper<void>::__call<Envoy::Event::DispatcherImpl::DispatcherImpl(std::__1::unique_ptr<Envoy::Buffer::WatermarkFactory, std::__1::default_delete<Envoy::Buffer::WatermarkFactory> >&&, Envoy::Api::Api&, Envoy::Event::TimeSystem&)::$_1&>(Envoy::Event::DispatcherImpl::DispatcherImpl(std::__1::unique_ptr<Envoy::Buffer::WatermarkFactory, std::__1::default_delete<Envoy::Buffer::WatermarkFactory> >&&, Envoy::Api::Api&, Envoy::Event::TimeSystem&)::$_1&) (__args=...) at /opt/llvm/bin/../include/c++/v1/__functional_base:348
#20 0x000055db077753bd in std::__1::__function::__alloc_func<Envoy::Event::DispatcherImpl::DispatcherImpl(std::__1::unique_ptr<Envoy::Buffer::WatermarkFactory, std::__1::default_delete<Envoy::Buffer::WatermarkFactory> >&&, Envoy::Api::Api&, Envoy::Event::TimeSystem&)::$_1, std::__1::allocator<Envoy::Event::DispatcherImpl::DispatcherImpl(std::__1::unique_ptr<Envoy::Buffer::WatermarkFactory, std::__1::default_delete<Envoy::Buffer::WatermarkFactory> >&&, Envoy::Api::Api&, Envoy::Event::TimeSystem&)::$_1>, void ()>::operator()() (this=0x55db0ad43048) at /opt/llvm/bin/../include/c++/v1/functional:1533
#21 0x000055db0777450e in std::__1::__function::__func<Envoy::Event::DispatcherImpl::DispatcherImpl(std::__1::unique_ptr<Envoy::Buffer::WatermarkFactory, std::__1::default_delete<Envoy::Buffer::WatermarkFactory> >&&, Envoy::Api::Api&, Envoy::Event::TimeSystem&)::$_1, std::__1::allocator<Envoy::Event::DispatcherImpl::DispatcherImpl(std::__1::unique_ptr<Envoy::Buffer::WatermarkFactory, std::__1::default_delete<Envoy::Buffer::WatermarkFactory> >&&, Envoy::Api::Api&, Envoy::Event::TimeSystem&)::$_1>, void ()>::operator()() (this=0x55db0ad43040) at /opt/llvm/bin/../include/c++/v1/functional:1707
#22 0x000055db05a2f435 in std::__1::__function::__value_func<void ()>::operator()() const (this=0x55db0ad43040) at /opt/llvm/bin/../include/c++/v1/functional:1860
#23 0x000055db05a2f0d5 in std::__1::function<void ()>::operator()() const (this=0x55db0ad43040) at /opt/llvm/bin/../include/c++/v1/functional:2419
#24 0x000055db077b1e1d in Envoy::Event::TimerImpl::TimerImpl(Envoy::CSmartPtr<event_base, &event_base_free>&, std::__1::function<void ()>, Envoy::Event::Dispatcher&)::$_0::operator()(int, short, void*) const (this=0xffffffff, 
    arg=0x55db0ad42fc0) at source/common/event/timer_impl.cc:15
#25 0x000055db077b1dc6 in Envoy::Event::TimerImpl::TimerImpl(Envoy::CSmartPtr<event_base, &event_base_free>&, std::__1::function<void ()>, Envoy::Event::Dispatcher&)::$_0::__invoke(int, short, void*) (arg=0x55db0ad42fc0)
    at source/common/event/timer_impl.cc:15
#26 0x000055db08284ca1 in event_process_active_single_queue (base=0x55db0ad6a000, activeq=0x55db0a9aff30, max_to_process=2147483647, endtime=0x0)
    at /build/tmp/_bazel_bazel/b570b5ccd0454dc9af9f65ab1833764d/sandbox/processwrapper-sandbox/2467/execroot/envoy/external/com_github_libevent_libevent/event.c:1713
#27 0x000055db0827f39a in event_process_active (base=0x55db0ad6a000)
    at /build/tmp/_bazel_bazel/b570b5ccd0454dc9af9f65ab1833764d/sandbox/processwrapper-sandbox/2467/execroot/envoy/external/com_github_libevent_libevent/event.c:1805
#28 0x000055db0827e26c in event_base_loop (base=0x55db0ad6a000, flags=0)
    at /build/tmp/_bazel_bazel/b570b5ccd0454dc9af9f65ab1833764d/sandbox/processwrapper-sandbox/2467/execroot/envoy/external/com_github_libevent_libevent/event.c:2047
#29 0x000055db077b0968 in Envoy::Event::LibeventScheduler::run (this=0x55db0ad687d0, mode=Envoy::Event::Dispatcher::RunType::Block) at source/common/event/libevent_scheduler.cc:47
#30 0x000055db0777297a in Envoy::Event::DispatcherImpl::run (this=0x55db0ad68780, type=Envoy::Event::Dispatcher::RunType::Block) at source/common/event/dispatcher_impl.cc:197
--Type <RET> for more, q to quit, c to continue without paging--
#31 0x000055db07748251 in Envoy::Server::WorkerImpl::threadRoutine (this=0x55db0ac82660, guard_dog=...) at source/server/worker_impl.cc:110
#32 0x000055db0774de4c in Envoy::Server::WorkerImpl::start(Envoy::Server::GuardDog&)::$_3::operator()() const (this=0x55db0b703008) at source/server/worker_impl.cc:75
#33 0x000055db0774de0d in std::__1::__invoke<Envoy::Server::WorkerImpl::start(Envoy::Server::GuardDog&)::$_3&> (__f=...) at /opt/llvm/bin/../include/c++/v1/type_traits:3530
#34 0x000055db0774ddbd in std::__1::__invoke_void_return_wrapper<void>::__call<Envoy::Server::WorkerImpl::start(Envoy::Server::GuardDog&)::$_3&>(Envoy::Server::WorkerImpl::start(Envoy::Server::GuardDog&)::$_3&) (__args=...)
    at /opt/llvm/bin/../include/c++/v1/__functional_base:348
#35 0x000055db0774dd8d in std::__1::__function::__alloc_func<Envoy::Server::WorkerImpl::start(Envoy::Server::GuardDog&)::$_3, std::__1::allocator<Envoy::Server::WorkerImpl::start(Envoy::Server::GuardDog&)::$_3>, void ()>::operator()() (this=0x55db0b703008) at /opt/llvm/bin/../include/c++/v1/functional:1533
#36 0x000055db0774cebe in std::__1::__function::__func<Envoy::Server::WorkerImpl::start(Envoy::Server::GuardDog&)::$_3, std::__1::allocator<Envoy::Server::WorkerImpl::start(Envoy::Server::GuardDog&)::$_3>, void ()>::operator()()
    (this=0x55db0b703000) at /opt/llvm/bin/../include/c++/v1/functional:1707
#37 0x000055db05a2f435 in std::__1::__function::__value_func<void ()>::operator()() const (this=0x55db0b703000) at /opt/llvm/bin/../include/c++/v1/functional:1860
#38 0x000055db05a2f0d5 in std::__1::function<void ()>::operator()() const (this=0x55db0b703000) at /opt/llvm/bin/../include/c++/v1/functional:2419
#39 0x000055db083f99b2 in Envoy::Thread::ThreadImplPosix::ThreadImplPosix(std::__1::function<void ()>)::$_0::operator()(void*) const (this=0x55db0b702ff0, arg=0x55db0b702ff0) at source/common/common/posix/thread_impl.cc:33
#40 0x000055db083f9985 in Envoy::Thread::ThreadImplPosix::ThreadImplPosix(std::__1::function<void ()>)::$_0::__invoke(void*) (arg=0x55db0b702ff0) at source/common/common/posix/thread_impl.cc:32
#41 0x00007ff78c6f92de in start_thread () from /lib64/libpthread.so.0
#42 0x00007ff78c42ae83 in clone () from /lib64/libc.so.6
(gdb) 
(gdb) 

Thanks for your support

Activity

  1. snowp commented on Jul 13, 2020

    @snowp
    Contributor

    This seems to be when the aggregate cluster attempts to rebuild its view of the inner clusters, but the TLS cluster for a cluster it cares about doesn't exist:

    void Cluster::refresh(const std::function<bool(const std::string&)>& skip_predicate) {
      // Post the priority set to worker threads.
      tls_->runOnAllThreads([this, skip_predicate, cluster_name = this->info()->name()]() {
        PriorityContext priority_set = linearizePrioritySet(skip_predicate);
        Upstream::ThreadLocalCluster* cluster = cluster_manager_.get(cluster_name);
        ASSERT(cluster != nullptr); // <- Line 90
        dynamic_cast<AggregateClusterLoadBalancer&>(cluster->loadBalancer()).refresh(priority_set);
      });
    }
    
  2. snowp commented on Jul 13, 2020

    @snowp
    Contributor

    @vinzo99 Would you be able to provide debug logs or a reproducer? That would help the debug process, thanks!

  3. vinzo99 commented on Jul 17, 2020

    @vinzo99
    Author

    Here are the requested logs :

    AggregateCluster name:cluster_one_aggregate"
       ClusterList:"
         cluster_one_primary"
         cluster_one_secondary"
    AggregateCluster name:cluster_two_aggregate"
       ClusterList:"
         cluster_two_primary"
         cluster_two_secondary"	 
    	 
    ---------- debug logs ----------------------
    
    {"msg":"[debug][config][source/common/config/grpc_mux_impl.cc:129] Received gRPC message for type.googleapis.com/envoy.api.v2.Listener at version 4"}}
    {"msg":"[debug][config][source/common/config/grpc_mux_impl.cc:98] Pausing discovery requests for type.googleapis.com/envoy.api.v2.RouteConfiguration"}}
    
    {"msg":"[debug][config][source/server/listener_manager_impl.cc:386] begin add/update listener: name=listener_one:8088 hash=14536976145116979266"}}
    
    {"msg":"[debug][config][source/server/listener_manager_impl.cc:95]   filter #0:"}}
    {"msg":"[debug][config][source/server/listener_manager_impl.cc:96]     name: envoy.http_connection_manager"}}
    {"msg":"[debug][config][source/server/listener_manager_impl.cc:103]   config: {"}}
    
    {"msg":"[debug][config][source/server/listener_manager_impl.cc:103]   config: {"}}
    {"msg":" \"route_config\": {"}}
    {"msg":"  \"name\": \"listener_one:8088\","}}
    {"msg":"  \"virtual_hosts\": ["}}
    {"msg":"   {"}}
    {"msg":"    \"routes\": ["}}
    {"msg":"     {"}}
    {"msg":"      \"route\": {"}}
    {"msg":"       \"cluster\": \"cluster_one_aggregate\","}}
    {"msg":"       \"timeout\": \"60.075s\""}}
    {"msg":"      },"}}
    {"msg":"      \"match\": {"}}
    {"msg":"       \"prefix\": \"/path1:primary/v2\","}}
    {"msg":"      }"}}
    {"msg":"     },"}}
    {"msg":"     {"}}
    {"msg":"      \"match\": {"}}
    {"msg":"       \"prefix\": \"/path1:secondary/v2\""}}
    {"msg":"      },"}}
    {"msg":"      \"route\": {"}}
    {"msg":"       \"cluster\": \"cluster_one_aggregate\","}}
    {"msg":"       \"timeout\": \"60.075s\""}}
    {"msg":"      }"}}
    {"msg":"     },"}}
    {"msg":"     {"}}
    {"msg":"    \"domains\": ["}}
    {"msg":"     \"domain1.org\","}}
    {"msg":"    ],"}}
    {"msg":"    \"name\": \"virtual_host_1\""}}
    {"msg":"   },"}}
    {"msg":"   {"}}
    {"msg":"   {"}}
    {"msg":"    \"routes\": ["}}
    {"msg":"     {"}}
    {"msg":"      \"match\": {"}}
    {"msg":"       \"prefix\": \"/path2/v2\""}}
    {"msg":"      },"}}
    {"msg":"      \"route\": {"}}
    {"msg":"       \"cluster\": \"cluster_two_aggregate\","}}
    {"msg":"       \"timeout\": \"60.075s\""}}
    {"msg":"      }"}}
    {"msg":"     },"}}
    {"msg":"    \"domains\": ["}}
    {"msg":"     \"domain2.org\","}}
    {"msg":"    ],"}}
    {"msg":"[debug][init][source/common/init/watcher_impl.cc:27] Listener-local-init-watcher listener_one:8088 destroyed"}}
    {"msg":"[debug][init][source/common/init/watcher_impl.cc:27] init manager Listener-local-init-manager listener_one:8088 14536976145116979266 destroyed"}}
    {"msg":"[debug][init][source/common/init/target_impl.cc:32] target Listener-init-target listener_one:8088 destroyed"}}
    {"msg":"[debug][config][source/common/config/grpc_mux_impl.cc:106] Resuming discovery requests for type.googleapis.com/envoy.api.v2.RouteConfiguration"}}
    {"msg":"[warning][config][source/common/config/grpc_subscription_impl.cc:101] gRPC config for type.googleapis.com/envoy.api.v2.Listener rejected: Error adding/updating listener(s) listener_one:8088: route: unknown cluster 'cluster_two_aggregate'"}}
    {"msg":"listener_one:8443: route: unknown cluster 'cluster_two_aggregate'"}}
    {}}
    {"msg":"[debug][config][source/common/config/grpc_mux_impl.cc:129] Received gRPC message for type.googleapis.com/envoy.api.v2.Cluster at version 4"}}
    {"msg":"[debug][config][source/common/config/grpc_mux_impl.cc:98] Pausing discovery requests for type.googleapis.com/envoy.api.v2.ClusterLoadAssignment"}}
    
    {"msg":"[debug][config][source/common/config/grpc_mux_impl.cc:98] Pausing discovery requests for type.googleapis.com/envoy.api.v2.Cluster"}}
    {"msg":"[debug][upstream][source/common/upstream/cluster_manager_impl.cc:581] add/update cluster cluster_two_primary starting warming"}}
    {"msg":"[debug][config][source/common/config/grpc_mux_impl.cc:75] gRPC mux addWatch for type.googleapis.com/envoy.api.v2.ClusterLoadAssignment"}}
    {"msg":"[info][upstream][source/common/upstream/cds_api_impl.cc:93] cds: add/update cluster 'cluster_two_primary'"}}
    ....
    {"msg":"[debug][upstream][source/common/upstream/cds_api_impl.cc:95] cds: add/update cluster 'cluster_one_aggregate' skipped"}}
    ...
    {"msg":"[debug][upstream][source/common/upstream/cluster_manager_impl.cc:581] add/update cluster cluster_two_secondary starting warming"}}
    {"msg":"[debug][config][source/common/config/grpc_mux_impl.cc:75] gRPC mux addWatch for type.googleapis.com/envoy.api.v2.ClusterLoadAssignment"}}
    {"msg":"[info][upstream][source/common/upstream/cds_api_impl.cc:93] cds: add/update cluster 'cluster_two_secondary'"}}
    ....
    {"msg":"[debug][upstream][source/common/upstream/cds_api_impl.cc:95] cds: add/update cluster 'cluster_one_primary' skipped"}}
    ...
    {"msg":"[debug][upstream][source/common/upstream/cluster_manager_impl.cc:581] add/update cluster cluster_two_aggregate starting warming"}}
    {"msg":"[critical][assert][source/extensions/clusters/aggregate/cluster.cc:90] assert failure: cluster != nullptr."}}
    {"type":"alarm","level":"alert","time":"2020-07-17T09:54:55.987713Z","process":"envoy-log-handler (26)","service":"sbi-dispatcher","system":"tas01","neid":"123456","container":"2a3a572a1b10","host":"aretoula-tas-node-1","timezone":"UTC","alarm":{"task":"notify","id":"160337","name":"server_can_not_listen","severity":"major","data":"{\"server_name\": httplb , \"reason\": \"[critical][assert][source/extensions/clusters/aggregate/cluster.cc:90] assert failure: cluster != nullptr.\"}"}}
    {"msg":"[critical][assert][source/extensions/clusters/aggregate/cluster.cc:90] assert failure: cluster != nullptr."}}
    {"type":"alarm","level":"alert","time":"2020-07-17T09:54:55.988055Z","process":"envoy-log-handler (26)","service":"sbi-dispatcher","system":"tas01","neid":"123456","container":"2a3a572a1b10","host":"aretoula-tas-node-1","timezone":"UTC","alarm":{"task":"notify","id":"160337","name":"server_can_not_listen","severity":"major","data":"{\"server_name\": httplb , \"reason\": \"[critical][assert][source/extensions/clusters/aggregate/cluster.cc:90] assert failure: cluster != nullptr.\"}"}}
    {"msg":"[critical][assert][source/extensions/clusters/aggregate/cluster.cc:90] assert failure: cluster != nullptr."}}
    {"type":"alarm","level":"alert","time":"2020-07-17T09:54:55.988075Z","process":"envoy-log-handler (26)","service":"sbi-dispatcher","system":"tas01","neid":"123456","container":"2a3a572a1b10","host":"aretoula-tas-node-1","timezone":"UTC","alarm":{"task":"notify","id":"160337","name":"server_can_not_listen","severity":"major","data":"{\"server_name\": httplb , \"reason\": \"[critical][assert][source/extensions/clusters/aggregate/cluster.cc:90] assert failure: cluster != nullptr.\"}"}}
    {"msg":"[critical][assert][source/extensions/clusters/aggregate/cluster.cc:90] assert failure: cluster != nullptr."}}
    {"type":"alarm","level":"alert","time":"2020-07-17T09:54:55.988100Z","process":"envoy-log-handler (26)","service":"sbi-dispatcher","system":"tas01","neid":"123456","container":"2a3a572a1b10","host":"aretoula-tas-node-1","timezone":"UTC","alarm":{"task":"notify","id":"160337","name":"server_can_not_listen","severity":"major","data":"{\"server_name\": httplb , \"reason\": \"[critical][assert][source/extensions/clusters/aggregate/cluster.cc:90] assert failure: cluster != nullptr.\"}"}}
    {"msg":"[critical][assert][source/extensions/clusters/aggregate/cluster.cc:90] assert failure: cluster != nullptr."}}
    {"type":"alarm","level":"alert","time":"2020-07-17T09:54:55.988113Z","process":"envoy-log-handler (26)","service":"sbi-dispatcher","system":"tas01","neid":"123456","container":"2a3a572a1b10","host":"aretoula-tas-node-1","timezone":"UTC","alarm":{"task":"notify","id":"160337","name":"server_can_not_listen","severity":"major","data":"{\"server_name\": httplb , \"reason\": \"[critical][assert][source/extensions/clusters/aggregate/cluster.cc:90] assert failure: cluster != nullptr.\"}"}}
    {"msg":"[critical][backtrace][bazel-out/k8-dbg/bin/source/server/_virtual_includes/backtrace_lib/server/backtrace.h:104] Caught Aborted, suspect faulting address 0x115c0000000b"}}
    
    ... AT THIS POINT HOT RESTART TOOK PLACE...
    
    
    ...........
    ...
    {"msg":"[info][upstream][source/common/upstream/cds_api_impl.cc:93] cds: add/update cluster 'cluster_one_aggregate'"}}
    ...
    {"msg":"[info][upstream][source/common/upstream/cds_api_impl.cc:93] cds: add/update cluster 'cluster_one_secondary'"}}
    ...
    {"msg":"[info][upstream][source/common/upstream/cds_api_impl.cc:93] cds: add/update cluster 'cluster_two_secondary'"}}
    ...
    {"msg":"[info][upstream][source/common/upstream/cds_api_impl.cc:93] cds: add/update cluster 'cluster_one_primary'"}}
    ...
    {"msg":"[info][upstream][source/common/upstream/cds_api_impl.cc:93] cds: add/update cluster 'cluster_two_aggregate'"}}
    ...
    {"msg":"[info][upstream][source/common/upstream/cds_api_impl.cc:93] cds: add/update cluster 'cluster_two_primary'"}}
    ...
    {"msg":"[info][upstream][source/common/upstream/cluster_manager_impl.cc:145] cm init: initializing secondary clusters"}}
    {"msg":"[info][upstream][source/common/upstream/cluster_manager_impl.cc:171] cm init: all clusters initialized"}}
    {"msg":"[info][main][source/server/server.cc:533] all clusters initialized. initializing init manager"}}
    ....
    
    {"msg":"[info][upstream][source/server/lds_api.cc:76] lds: add/update listener 'listener_one:8088'"}}
    {"msg":"[info][config][source/server/listener_manager_impl.cc:725] all dependencies initialized. starting workers"}}
    

    Thanks !

  4. ankatare commented on Jul 23, 2020

    @ankatare
    Contributor

    @vinzo99 i would like to take this issue.
    cc @htuch

  5. added this to the 1.16.0 milestone on Jul 24, 2020
  6. lretrain91 commented on Jul 30, 2020

    @lretrain91

    hello @ankatare any news about the fix ?

  7. ankatare commented on Jul 30, 2020

    @ankatare
    Contributor

    @lretrain91 currently investigating it and will update soon.

  8. ankatare commented on Jul 30, 2020

    @ankatare
    Contributor

    @vinzo99 Hi, would you please help me by providing steps to reproduce it.

  9. ankatare commented on Aug 5, 2020

    @ankatare
    Contributor

    @snowp please help to reproduce it.

  10. chrikar commented on Aug 12, 2020

    @chrikar

    Hello,

    From what I've seen on our environment, the main way to reproduce this is to remove and reintroduce an existing aggregate cluster configuration using the CDS (xDS). The crush does not occur immediately after the removal, as envoy is still trying to request what it considers as missing cluster information from the xDS server. The crash occurs during the next subsequent xDS cluster update.

    I'm not sure if you also need TLS configured for the cluster, based on the comment of @snowp above.

  11. 26 remaining items

  12. vinzo99 commented on Mar 18, 2021

    @vinzo99
    Author

    Hi,
    this means the next freeze including that fix will be v1.17.2, right ?

  13. ankatare commented on Mar 18, 2021

    @ankatare
    Contributor

    @vanhtuan0409 Hi, could you pls check #15195

  14. zarianec commented on Mar 18, 2021

    @zarianec

    We just tested our setup with the latest dev build of envoy and it still crashes.

    Version:

    envoy  version: 2c8f6639ba2fc1b83af5c95115045fb8b1b9fc88/1.18.0-dev/Clean/RELEASE/BoringSSL
    

    How we configure the envoy:
    We use filesystem xDS and trigger the changes with:

    sed -i '' /app/envoy/cds-config.yaml /app/envoy/lds-config.yaml
    

    Static config:

    node:
      id: default-node
      cluster: default-cluster
    
    dynamic_resources:
      lds_config:
        path: /app/envoy/lds-config.yaml
      cds_config:
        path: /app/envoy/cds-config.yaml
    

    Initial lds-config.yaml and cds-config.yaml are empty.

    Add some configs:

    cds-config.yaml:

    version_info: v0
    resources:
      - '@type': type.googleapis.com/envoy.config.cluster.v3.Cluster
        name: cluster-port-3000
        lb_policy: ROUND_ROBIN
        type: STATIC
        load_assignment:
          cluster_name: cluster-port-3000
          endpoints:
            - lb_endpoints:
                - endpoint:
                    address:
                      socket_address:
                        address: 172.17.0.3
                        port_value: 3000
    

    lds-config.yaml:

    We start with the TCP on 3000 port for both cluster and listener.

    version_info: v0
    resources:
      - '@type': type.googleapis.com/envoy.config.listener.v3.Listener
        name: tcp-port-3000-listener
        address:
          socket_address:
            address: 0.0.0.0
            port_value: 3000
        listener_filters:
          - name: envoy.filters.listener.original_src
            typed_config:
              '@type': >-
                type.googleapis.com/envoy.extensions.filters.listener.original_src.v3.OriginalSrc
              mark: 123
        filter_chains:
          - filters:
              - name: envoy.filters.network.tcp_proxy
                typed_config:
                  '@type': >-
                    type.googleapis.com/envoy.extensions.filters.network.tcp_proxy.v3.TcpProxy
                  stat_prefix: ingress_tcp
                  cluster: cluster-port-3000
    

    Let's crash it:

    Now we want to listen for UDP so the new lds-config.yaml is:

    version_info: v1
    resources:
      - '@type': type.googleapis.com/envoy.config.listener.v3.Listener
        name: udp-port-3000-listener
        reuse_port: true
        address:
          socket_address:
            protocol: UDP
            address: 0.0.0.0
            port_value: 3000
        listener_filters:
          - name: envoy.filters.udp_listener.udp_proxy
            typed_config:
              '@type': >-
                type.googleapis.com/envoy.extensions.filters.udp.udp_proxy.v3.UdpProxyConfig
              use_original_src_ip: true
              stat_prefix: service
              cluster: cluster-port-3000
    

    The result:

    [2021-03-18 11:25:26.708][73327][info][main] [source/server/server.cc:324] initializing epoch 0 (base id=0, hot restart version=11.104)
    [2021-03-18 11:25:26.708][73327][info][main] [source/server/server.cc:326] statically linked extensions:
    [2021-03-18 11:25:26.708][73327][info][main] [source/server/server.cc:328]   envoy.dubbo_proxy.serializers: dubbo.hessian2
    [2021-03-18 11:25:26.708][73327][info][main] [source/server/server.cc:328]   envoy.tracers: envoy.dynamic.ot, envoy.lightstep, envoy.tracers.datadog, envoy.tracers.dynamic_ot, envoy.tracers.lightstep, envoy.tracers.opencensus, envoy.tracers.skywalking, envoy.tracers.xray, envoy.tracers.zipkin, envoy.zipkin
    [2021-03-18 11:25:26.708][73327][info][main] [source/server/server.cc:328]   envoy.retry_priorities: envoy.retry_priorities.previous_priorities
    [2021-03-18 11:25:26.708][73327][info][main] [source/server/server.cc:328]   envoy.tls.cert_validator: envoy.tls.cert_validator.default, envoy.tls.cert_validator.spiffe
    [2021-03-18 11:25:26.708][73327][info][main] [source/server/server.cc:328]   envoy.rate_limit_descriptors: envoy.rate_limit_descriptors.expr
    [2021-03-18 11:25:26.708][73327][info][main] [source/server/server.cc:328]   envoy.matching.http.input: request-headers, request-trailers, response-headers, response-trailers
    [2021-03-18 11:25:26.708][73327][info][main] [source/server/server.cc:328]   envoy.resource_monitors: envoy.resource_monitors.fixed_heap, envoy.resource_monitors.injected_resource
    [2021-03-18 11:25:26.708][73327][info][main] [source/server/server.cc:328]   envoy.compression.compressor: envoy.compression.brotli.compressor, envoy.compression.gzip.compressor
    [2021-03-18 11:25:26.708][73327][info][main] [source/server/server.cc:328]   envoy.stats_sinks: envoy.dog_statsd, envoy.metrics_service, envoy.stat_sinks.dog_statsd, envoy.stat_sinks.hystrix, envoy.stat_sinks.metrics_service, envoy.stat_sinks.statsd, envoy.stat_sinks.wasm, envoy.statsd
    [2021-03-18 11:25:26.708][73327][info][main] [source/server/server.cc:328]   envoy.request_id: envoy.request_id.uuid
    [2021-03-18 11:25:26.708][73327][info][main] [source/server/server.cc:328]   envoy.compression.decompressor: envoy.compression.brotli.decompressor, envoy.compression.gzip.decompressor
    [2021-03-18 11:25:26.708][73327][info][main] [source/server/server.cc:328]   envoy.transport_sockets.downstream: envoy.transport_sockets.alts, envoy.transport_sockets.quic, envoy.transport_sockets.raw_buffer, envoy.transport_sockets.starttls, envoy.transport_sockets.tap, envoy.transport_sockets.tls, raw_buffer, starttls, tls
    [2021-03-18 11:25:26.708][73327][info][main] [source/server/server.cc:328]   envoy.access_loggers: envoy.access_loggers.file, envoy.access_loggers.http_grpc, envoy.access_loggers.stderror, envoy.access_loggers.stdoutput, envoy.access_loggers.tcp_grpc, envoy.access_loggers.wasm, envoy.file_access_log, envoy.http_grpc_access_log, envoy.stderror_access_log, envoy.stdoutput_access_log, envoy.tcp_grpc_access_log, envoy.wasm_access_log
    [2021-03-18 11:25:26.708][73327][info][main] [source/server/server.cc:328]   envoy.filters.network: envoy.client_ssl_auth, envoy.echo, envoy.ext_authz, envoy.filters.network.client_ssl_auth, envoy.filters.network.direct_response, envoy.filters.network.dubbo_proxy, envoy.filters.network.echo, envoy.filters.network.ext_authz, envoy.filters.network.http_connection_manager, envoy.filters.network.kafka_broker, envoy.filters.network.local_ratelimit, envoy.filters.network.mongo_proxy, envoy.filters.network.mysql_proxy, envoy.filters.network.postgres_proxy, envoy.filters.network.ratelimit, envoy.filters.network.rbac, envoy.filters.network.redis_proxy, envoy.filters.network.rocketmq_proxy, envoy.filters.network.sni_cluster, envoy.filters.network.sni_dynamic_forward_proxy, envoy.filters.network.tcp_proxy, envoy.filters.network.thrift_proxy, envoy.filters.network.wasm, envoy.filters.network.zookeeper_proxy, envoy.http_connection_manager, envoy.mongo_proxy, envoy.ratelimit, envoy.redis_proxy, envoy.tcp_proxy
    [2021-03-18 11:25:26.708][73327][info][main] [source/server/server.cc:328]   envoy.dubbo_proxy.protocols: dubbo
    [2021-03-18 11:25:26.708][73327][info][main] [source/server/server.cc:328]   envoy.thrift_proxy.transports: auto, framed, header, unframed
    [2021-03-18 11:25:26.708][73327][info][main] [source/server/server.cc:328]   envoy.upstreams: envoy.filters.connection_pools.tcp.generic
    [2021-03-18 11:25:26.708][73327][info][main] [source/server/server.cc:328]   envoy.grpc_credentials: envoy.grpc_credentials.aws_iam, envoy.grpc_credentials.default, envoy.grpc_credentials.file_based_metadata
    [2021-03-18 11:25:26.708][73327][info][main] [source/server/server.cc:328]   envoy.clusters: envoy.cluster.eds, envoy.cluster.logical_dns, envoy.cluster.original_dst, envoy.cluster.static, envoy.cluster.strict_dns, envoy.clusters.aggregate, envoy.clusters.dynamic_forward_proxy, envoy.clusters.redis
    [2021-03-18 11:25:26.708][73327][info][main] [source/server/server.cc:328]   envoy.udp_packet_writers: udp_default_writer, udp_gso_batch_writer
    [2021-03-18 11:25:26.708][73327][info][main] [source/server/server.cc:328]   envoy.retry_host_predicates: envoy.retry_host_predicates.omit_canary_hosts, envoy.retry_host_predicates.omit_host_metadata, envoy.retry_host_predicates.previous_hosts
    [2021-03-18 11:25:26.708][73327][info][main] [source/server/server.cc:328]   envoy.upstream_options: envoy.extensions.upstreams.http.v3.HttpProtocolOptions, envoy.upstreams.http.http_protocol_options
    [2021-03-18 11:25:26.708][73327][info][main] [source/server/server.cc:328]   envoy.internal_redirect_predicates: envoy.internal_redirect_predicates.allow_listed_routes, envoy.internal_redirect_predicates.previous_routes, envoy.internal_redirect_predicates.safe_cross_scheme
    [2021-03-18 11:25:26.708][73327][info][main] [source/server/server.cc:328]   envoy.dubbo_proxy.filters: envoy.filters.dubbo.router
    [2021-03-18 11:25:26.708][73327][info][main] [source/server/server.cc:328]   envoy.resolvers: envoy.ip
    [2021-03-18 11:25:26.708][73327][info][main] [source/server/server.cc:328]   envoy.quic_client_codec: quiche
    [2021-03-18 11:25:26.708][73327][info][main] [source/server/server.cc:328]   envoy.thrift_proxy.filters: envoy.filters.thrift.rate_limit, envoy.filters.thrift.router
    [2021-03-18 11:25:26.708][73327][info][main] [source/server/server.cc:328]   envoy.dubbo_proxy.route_matchers: default
    [2021-03-18 11:25:26.708][73327][info][main] [source/server/server.cc:328]   envoy.health_checkers: envoy.health_checkers.redis
    [2021-03-18 11:25:26.708][73327][info][main] [source/server/server.cc:328]   envoy.filters.listener: envoy.filters.listener.http_inspector, envoy.filters.listener.original_dst, envoy.filters.listener.original_src, envoy.filters.listener.proxy_protocol, envoy.filters.listener.tls_inspector, envoy.listener.http_inspector, envoy.listener.original_dst, envoy.listener.original_src, envoy.listener.proxy_protocol, envoy.listener.tls_inspector
    [2021-03-18 11:25:26.708][73327][info][main] [source/server/server.cc:328]   envoy.thrift_proxy.protocols: auto, binary, binary/non-strict, compact, twitter
    [2021-03-18 11:25:26.708][73327][info][main] [source/server/server.cc:328]   envoy.udp_listeners: default_udp_listener, quiche_quic_listener
    [2021-03-18 11:25:26.708][73327][info][main] [source/server/server.cc:328]   envoy.bootstrap: envoy.bootstrap.wasm, envoy.extensions.network.socket_interface.default_socket_interface
    [2021-03-18 11:25:26.708][73327][info][main] [source/server/server.cc:328]   envoy.filters.http: envoy.buffer, envoy.cors, envoy.csrf, envoy.ext_authz, envoy.ext_proc, envoy.fault, envoy.filters.http.adaptive_concurrency, envoy.filters.http.admission_control, envoy.filters.http.aws_lambda, envoy.filters.http.aws_request_signing, envoy.filters.http.buffer, envoy.filters.http.cache, envoy.filters.http.cdn_loop, envoy.filters.http.compressor, envoy.filters.http.cors, envoy.filters.http.csrf, envoy.filters.http.decompressor, envoy.filters.http.dynamic_forward_proxy, envoy.filters.http.dynamo, envoy.filters.http.ext_authz, envoy.filters.http.ext_proc, envoy.filters.http.fault, envoy.filters.http.grpc_http1_bridge, envoy.filters.http.grpc_http1_reverse_bridge, envoy.filters.http.grpc_json_transcoder, envoy.filters.http.grpc_stats, envoy.filters.http.grpc_web, envoy.filters.http.gzip, envoy.filters.http.header_to_metadata, envoy.filters.http.health_check, envoy.filters.http.ip_tagging, envoy.filters.http.jwt_authn, envoy.filters.http.local_ratelimit, envoy.filters.http.lua, envoy.filters.http.oauth2, envoy.filters.http.on_demand, envoy.filters.http.original_src, envoy.filters.http.ratelimit, envoy.filters.http.rbac, envoy.filters.http.router, envoy.filters.http.squash, envoy.filters.http.tap, envoy.filters.http.wasm, envoy.grpc_http1_bridge, envoy.grpc_json_transcoder, envoy.grpc_web, envoy.gzip, envoy.health_check, envoy.http_dynamo_filter, envoy.ip_tagging, envoy.local_rate_limit, envoy.lua, envoy.rate_limit, envoy.router, envoy.squash, match-wrapper
    [2021-03-18 11:25:26.708][73327][info][main] [source/server/server.cc:328]   envoy.guarddog_actions: envoy.watchdog.abort_action, envoy.watchdog.profile_action
    [2021-03-18 11:25:26.708][73327][info][main] [source/server/server.cc:328]   envoy.http.cache: envoy.extensions.http.cache.simple
    [2021-03-18 11:25:26.708][73327][info][main] [source/server/server.cc:328]   envoy.wasm.runtime: envoy.wasm.runtime.null, envoy.wasm.runtime.v8
    [2021-03-18 11:25:26.708][73327][info][main] [source/server/server.cc:328]   envoy.transport_sockets.upstream: envoy.transport_sockets.alts, envoy.transport_sockets.quic, envoy.transport_sockets.raw_buffer, envoy.transport_sockets.tap, envoy.transport_sockets.tls, envoy.transport_sockets.upstream_proxy_protocol, raw_buffer, tls
    [2021-03-18 11:25:26.708][73327][info][main] [source/server/server.cc:328]   envoy.filters.udp_listener: envoy.filters.udp.dns_filter, envoy.filters.udp_listener.udp_proxy
    [2021-03-18 11:25:26.708][73327][info][main] [source/server/server.cc:328]   envoy.matching.action: skip
    [2021-03-18 11:25:26.708][73327][info][main] [source/server/server.cc:328]   envoy.matching.input_matchers: envoy.matching.matchers.consistent_hashing
    [2021-03-18 11:25:26.708][73327][info][main] [source/server/server.cc:328]   envoy.quic_server_codec: quiche
    [2021-03-18 11:25:26.712][73327][warning][misc] [source/common/protobuf/message_validator_impl.cc:21] Deprecated field: type envoy.api.v2.core.ConfigSource Using the default now-deprecated value AUTO for enum 'envoy.api.v2.core.ConfigSource.resource_api_version' from file config_source.proto. This enum value will be removed from Envoy soon so a non-default value must now be explicitly set. Please see https://www.envoyproxy.io/docs/envoy/latest/version_history/version_history for details. If continued use of this field is absolutely necessary, see https://www.envoyproxy.io/docs/envoy/latest/configuration/operations/runtime#using-runtime-overrides-for-deprecated-features for how to apply a temporary and highly discouraged override.
    [2021-03-18 11:25:26.712][73327][warning][misc] [source/common/protobuf/message_validator_impl.cc:21] Deprecated field: type envoy.api.v2.core.ConfigSource Using the default now-deprecated value AUTO for enum 'envoy.api.v2.core.ConfigSource.resource_api_version' from file config_source.proto. This enum value will be removed from Envoy soon so a non-default value must now be explicitly set. Please see https://www.envoyproxy.io/docs/envoy/latest/version_history/version_history for details. If continued use of this field is absolutely necessary, see https://www.envoyproxy.io/docs/envoy/latest/configuration/operations/runtime#using-runtime-overrides-for-deprecated-features for how to apply a temporary and highly discouraged override.
    [2021-03-18 11:25:26.712][73327][info][main] [source/server/server.cc:344] HTTP header map info:
    [2021-03-18 11:25:26.713][73327][debug][runtime] [source/common/runtime/runtime_features.cc:31] Unable to use runtime singleton for feature envoy.http.headermap.lazy_map_min_size
    [2021-03-18 11:25:26.713][73327][debug][runtime] [source/common/runtime/runtime_features.cc:20] Unable to use runtime singleton for feature envoy.reloadable_features.header_map_correctly_coalesce_cookies
    [2021-03-18 11:25:26.713][73327][debug][runtime] [source/common/runtime/runtime_features.cc:31] Unable to use runtime singleton for feature envoy.http.headermap.lazy_map_min_size
    [2021-03-18 11:25:26.713][73327][debug][runtime] [source/common/runtime/runtime_features.cc:20] Unable to use runtime singleton for feature envoy.reloadable_features.header_map_correctly_coalesce_cookies
    [2021-03-18 11:25:26.714][73327][debug][runtime] [source/common/runtime/runtime_features.cc:31] Unable to use runtime singleton for feature envoy.http.headermap.lazy_map_min_size
    [2021-03-18 11:25:26.714][73327][debug][runtime] [source/common/runtime/runtime_features.cc:20] Unable to use runtime singleton for feature envoy.reloadable_features.header_map_correctly_coalesce_cookies
    [2021-03-18 11:25:26.714][73327][debug][runtime] [source/common/runtime/runtime_features.cc:31] Unable to use runtime singleton for feature envoy.http.headermap.lazy_map_min_size
    [2021-03-18 11:25:26.714][73327][debug][runtime] [source/common/runtime/runtime_features.cc:20] Unable to use runtime singleton for feature envoy.reloadable_features.header_map_correctly_coalesce_cookies
    [2021-03-18 11:25:26.714][73327][info][main] [source/server/server.cc:347]   request header map: 624 bytes: :authority,:method,:path,:protocol,:scheme,accept,accept-encoding,access-control-request-method,authentication,authorization,cache-control,cdn-loop,connection,content-encoding,content-length,content-type,expect,grpc-accept-encoding,grpc-timeout,if-match,if-modified-since,if-none-match,if-range,if-unmodified-since,keep-alive,origin,pragma,proxy-connection,referer,te,transfer-encoding,upgrade,user-agent,via,x-client-trace-id,x-envoy-attempt-count,x-envoy-decorator-operation,x-envoy-downstream-service-cluster,x-envoy-downstream-service-node,x-envoy-expected-rq-timeout-ms,x-envoy-external-address,x-envoy-force-trace,x-envoy-hedge-on-per-try-timeout,x-envoy-internal,x-envoy-ip-tags,x-envoy-max-retries,x-envoy-original-path,x-envoy-original-url,x-envoy-retriable-header-names,x-envoy-retriable-status-codes,x-envoy-retry-grpc-on,x-envoy-retry-on,x-envoy-upstream-alt-stat-name,x-envoy-upstream-rq-per-try-timeout-ms,x-envoy-upstream-rq-timeout-alt-response,x-envoy-upstream-rq-timeout-ms,x-forwarded-client-cert,x-forwarded-for,x-forwarded-proto,x-ot-span-context,x-request-id
    [2021-03-18 11:25:26.714][73327][info][main] [source/server/server.cc:347]   request trailer map: 136 bytes:
    [2021-03-18 11:25:26.714][73327][info][main] [source/server/server.cc:347]   response header map: 432 bytes: :status,access-control-allow-credentials,access-control-allow-headers,access-control-allow-methods,access-control-allow-origin,access-control-expose-headers,access-control-max-age,age,cache-control,connection,content-encoding,content-length,content-type,date,etag,expires,grpc-message,grpc-status,keep-alive,last-modified,location,proxy-connection,server,transfer-encoding,upgrade,vary,via,x-envoy-attempt-count,x-envoy-decorator-operation,x-envoy-degraded,x-envoy-immediate-health-check-fail,x-envoy-ratelimited,x-envoy-upstream-canary,x-envoy-upstream-healthchecked-cluster,x-envoy-upstream-service-time,x-request-id
    [2021-03-18 11:25:26.714][73327][info][main] [source/server/server.cc:347]   response trailer map: 160 bytes: grpc-message,grpc-status
    [2021-03-18 11:25:26.715][73327][debug][main] [source/server/overload_manager_impl.cc:368] No overload action is configured for envoy.overload_actions.shrink_heap.
    [2021-03-18 11:25:26.715][73327][debug][main] [source/server/overload_manager_impl.cc:368] No overload action is configured for envoy.overload_actions.reduce_timeouts.
    [2021-03-18 11:25:26.715][73327][debug][main] [source/server/overload_manager_impl.cc:368] No overload action is configured for envoy.overload_actions.stop_accepting_connections.
    [2021-03-18 11:25:26.715][73327][debug][main] [source/server/overload_manager_impl.cc:368] No overload action is configured for envoy.overload_actions.reject_incoming_connections.
    [2021-03-18 11:25:26.715][73327][info][main] [source/server/server.cc:497] admin address: 127.0.0.1:9901
    [2021-03-18 11:25:26.715][73327][info][main] [source/server/server.cc:662] runtime: layers:
      - name: base
        static_layer:
          {}
      - name: admin
        admin_layer:
          {}
    [2021-03-18 11:25:26.715][73327][info][config] [source/server/configuration_impl.cc:125] loading tracing configuration
    [2021-03-18 11:25:26.715][73327][info][config] [source/server/configuration_impl.cc:85] loading 0 static secret(s)
    [2021-03-18 11:25:26.715][73327][info][config] [source/server/configuration_impl.cc:91] loading 0 cluster(s)
    [2021-03-18 11:25:26.716][73331][debug][grpc] [source/common/grpc/google_async_client_impl.cc:50] completionThread running
    [2021-03-18 11:25:26.717][73327][debug][file] [source/common/filesystem/inotify/watcher_impl.cc:47] added watch for directory: '/app/envoy' file: 'cds-config.yaml' fd: 1
    [2021-03-18 11:25:26.717][73327][debug][upstream] [source/common/upstream/cluster_manager_impl.cc:137] maybe finish initialize state: 1
    [2021-03-18 11:25:26.717][73327][debug][upstream] [source/common/upstream/cluster_manager_impl.cc:146] maybe finish initialize primary init clusters empty: true
    [2021-03-18 11:25:26.717][73327][info][config] [source/server/configuration_impl.cc:95] loading 0 listener(s)
    [2021-03-18 11:25:26.717][73327][info][config] [source/server/configuration_impl.cc:107] loading stats configuration
    [2021-03-18 11:25:26.717][73327][debug][file] [source/common/filesystem/inotify/watcher_impl.cc:47] added watch for directory: '/app/envoy' file: 'lds-config.yaml' fd: 1
    [2021-03-18 11:25:26.717][73327][debug][init] [source/common/init/manager_impl.cc:24] added target LDS to init manager Server
    [2021-03-18 11:25:26.717][73327][debug][init] [source/common/init/manager_impl.cc:49] init manager RTDS contains no targets
    [2021-03-18 11:25:26.717][73327][debug][init] [source/common/init/watcher_impl.cc:14] init manager RTDS initialized, notifying RTDS
    [2021-03-18 11:25:26.717][73327][info][runtime] [source/common/runtime/runtime_impl.cc:425] RTDS has finished initialization
    [2021-03-18 11:25:26.717][73327][debug][upstream] [source/common/upstream/cluster_manager_impl.cc:206] continue initializing secondary clusters
    [2021-03-18 11:25:26.717][73327][debug][upstream] [source/common/upstream/cluster_manager_impl.cc:137] maybe finish initialize state: 2
    [2021-03-18 11:25:26.717][73327][debug][upstream] [source/common/upstream/cluster_manager_impl.cc:146] maybe finish initialize primary init clusters empty: true
    [2021-03-18 11:25:26.717][73327][debug][upstream] [source/common/upstream/cluster_manager_impl.cc:161] maybe finish initialize secondary init clusters empty: true
    [2021-03-18 11:25:26.717][73327][debug][upstream] [source/common/upstream/cluster_manager_impl.cc:182] maybe finish initialize cds api ready: true
    [2021-03-18 11:25:26.717][73327][info][upstream] [source/common/upstream/cluster_manager_impl.cc:184] cm init: initializing cds
    [2021-03-18 11:25:26.717][73327][debug][config] [source/common/config/filesystem_subscription_impl.cc:61] Filesystem config refresh for /app/envoy/cds-config.yaml
    [2021-03-18 11:25:26.718][73327][info][upstream] [source/common/upstream/cds_api_impl.cc:73] cds: add 0 cluster(s), remove 0 cluster(s)
    [2021-03-18 11:25:26.718][73327][info][upstream] [source/common/upstream/cds_api_impl.cc:108] cds: added/updated 0 cluster(s), skipped 0 unmodified cluster(s)
    [2021-03-18 11:25:26.718][73327][debug][upstream] [source/common/upstream/cluster_manager_impl.cc:137] maybe finish initialize state: 4
    [2021-03-18 11:25:26.718][73327][debug][upstream] [source/common/upstream/cluster_manager_impl.cc:146] maybe finish initialize primary init clusters empty: true
    [2021-03-18 11:25:26.718][73327][debug][upstream] [source/common/upstream/cluster_manager_impl.cc:161] maybe finish initialize secondary init clusters empty: true
    [2021-03-18 11:25:26.718][73327][debug][upstream] [source/common/upstream/cluster_manager_impl.cc:182] maybe finish initialize cds api ready: true
    [2021-03-18 11:25:26.718][73327][info][upstream] [source/common/upstream/cluster_manager_impl.cc:188] cm init: all clusters initialized
    [2021-03-18 11:25:26.718][73327][debug][config] [source/common/config/filesystem_subscription_impl.cc:71] Filesystem config update accepted for /app/envoy/cds-config.yaml: version_info: "v0"
    183412668: "envoy.api.v2.DiscoveryResponse"
    
    [2021-03-18 11:25:26.718][73327][warning][main] [source/server/server.cc:637] there is no configured limit to the number of allowed active connections. Set a limit via the runtime key overload.global_downstream_max_connections
    [2021-03-18 11:25:26.719][73327][info][main] [source/server/server.cc:740] all clusters initialized. initializing init manager
    [2021-03-18 11:25:26.719][73327][debug][init] [source/common/init/manager_impl.cc:53] init manager Server initializing
    [2021-03-18 11:25:26.719][73327][debug][init] [source/common/init/target_impl.cc:15] init manager Server initializing target LDS
    [2021-03-18 11:25:26.719][73327][debug][config] [source/common/config/filesystem_subscription_impl.cc:61] Filesystem config refresh for /app/envoy/lds-config.yaml
    [2021-03-18 11:25:26.719][73327][debug][init] [source/common/init/watcher_impl.cc:14] target LDS initialized, notifying init manager Server
    [2021-03-18 11:25:26.719][73327][debug][init] [source/common/init/watcher_impl.cc:14] init manager Server initialized, notifying RunHelper
    [2021-03-18 11:25:26.719][73327][info][config] [source/server/listener_manager_impl.cc:884] all dependencies initialized. starting workers
    [2021-03-18 11:25:26.719][73327][debug][config] [source/server/listener_manager_impl.cc:895] starting worker 0
    [2021-03-18 11:25:26.719][73327][debug][config] [source/common/config/filesystem_subscription_impl.cc:71] Filesystem config update accepted for /app/envoy/lds-config.yaml: version_info: "v1"
    183412668: "envoy.api.v2.DiscoveryResponse"
    
    [2021-03-18 11:25:26.719][73327][info][main] [source/server/server.cc:759] starting main dispatch loop
    [2021-03-18 11:25:26.719][73334][debug][main] [source/server/worker_impl.cc:128] worker entering dispatch loop
    [2021-03-18 11:25:26.720][73335][debug][grpc] [source/common/grpc/google_async_client_impl.cc:50] completionThread running
    [2021-03-18 11:25:28.265][73327][debug][file] [source/common/filesystem/inotify/watcher_impl.cc:72] notification: fd: 1 mask: 2 file: cds-config.yaml
    [2021-03-18 11:25:28.265][73327][debug][file] [source/common/filesystem/inotify/watcher_impl.cc:72] notification: fd: 1 mask: 2 file: cds-config.yaml
    [2021-03-18 11:25:28.266][73327][debug][file] [source/common/filesystem/inotify/watcher_impl.cc:72] notification: fd: 1 mask: 2 file: cds-config.yaml
    [2021-03-18 11:25:28.266][73327][debug][file] [source/common/filesystem/inotify/watcher_impl.cc:72] notification: fd: 1 mask: 2 file: cds-config.yaml
    [2021-03-18 11:25:28.267][73327][debug][file] [source/common/filesystem/inotify/watcher_impl.cc:72] notification: fd: 1 mask: 2 file: lds-config.yaml
    [2021-03-18 11:25:28.267][73327][debug][file] [source/common/filesystem/inotify/watcher_impl.cc:72] notification: fd: 1 mask: 2 file: lds-config.yaml
    [2021-03-18 11:25:28.267][73327][debug][file] [source/common/filesystem/inotify/watcher_impl.cc:72] notification: fd: 1 mask: 2 file: lds-config.yaml
    [2021-03-18 11:25:28.267][73327][debug][file] [source/common/filesystem/inotify/watcher_impl.cc:72] notification: fd: 1 mask: 2 file: lds-config.yaml
    [2021-03-18 11:25:28.273][73327][debug][file] [source/common/filesystem/inotify/watcher_impl.cc:72] notification: fd: 1 mask: 2 file: sedxC9rXx
    [2021-03-18 11:25:28.273][73327][debug][file] [source/common/filesystem/inotify/watcher_impl.cc:72] notification: fd: 1 mask: 2 file: sedxC9rXx
    [2021-03-18 11:25:28.274][73327][debug][file] [source/common/filesystem/inotify/watcher_impl.cc:72] notification: fd: 1 mask: 80 file: cds-config.yaml
    [2021-03-18 11:25:28.274][73327][debug][file] [source/common/filesystem/inotify/watcher_impl.cc:85] matched callback: file: cds-config.yaml
    [2021-03-18 11:25:28.274][73327][debug][config] [source/common/config/filesystem_subscription_impl.cc:61] Filesystem config refresh for /app/envoy/cds-config.yaml
    [2021-03-18 11:25:28.276][73327][info][upstream] [source/common/upstream/cds_api_impl.cc:73] cds: add 1 cluster(s), remove 0 cluster(s)
    [2021-03-18 11:25:28.276][73327][debug][upstream] [source/common/upstream/upstream_impl.cc:278] transport socket match, socket default selected for host with address 172.17.0.3:3000
    [2021-03-18 11:25:28.277][73327][debug][upstream] [source/common/upstream/cluster_manager_impl.cc:664] add/update cluster cluster-port-3000 starting warming
    [2021-03-18 11:25:28.277][73327][trace][upstream] [source/common/upstream/upstream_impl.cc:1355] Local locality:
    [2021-03-18 11:25:28.277][73327][debug][upstream] [source/common/upstream/upstream_impl.cc:1052] initializing Primary cluster cluster-port-3000 completed
    [2021-03-18 11:25:28.277][73327][debug][init] [source/common/init/manager_impl.cc:49] init manager Cluster cluster-port-3000 contains no targets
    [2021-03-18 11:25:28.277][73327][debug][init] [source/common/init/watcher_impl.cc:14] init manager Cluster cluster-port-3000 initialized, notifying ClusterImplBase
    [2021-03-18 11:25:28.277][73327][debug][upstream] [source/common/upstream/cluster_manager_impl.cc:666] warming cluster cluster-port-3000 complete
    [2021-03-18 11:25:28.277][73327][debug][upstream] [source/common/upstream/cluster_manager_impl.cc:959] adding TLS cluster cluster-port-3000
    [2021-03-18 11:25:28.277][73327][debug][upstream] [source/common/upstream/cluster_manager_impl.cc:1213] membership update for TLS cluster cluster-port-3000 added 1 removed 0
    [2021-03-18 11:25:28.277][73334][debug][upstream] [source/common/upstream/cluster_manager_impl.cc:959] adding TLS cluster cluster-port-3000
    [2021-03-18 11:25:28.277][73334][debug][upstream] [source/common/upstream/cluster_manager_impl.cc:1213] membership update for TLS cluster cluster-port-3000 added 1 removed 0
    [2021-03-18 11:25:28.278][73327][debug][upstream] [source/common/upstream/cds_api_impl.cc:90] cds: add/update cluster 'cluster-port-3000'
    [2021-03-18 11:25:28.278][73327][info][upstream] [source/common/upstream/cds_api_impl.cc:108] cds: added/updated 1 cluster(s), skipped 0 unmodified cluster(s)
    [2021-03-18 11:25:28.278][73327][debug][config] [source/common/config/filesystem_subscription_impl.cc:71] Filesystem config update accepted for /app/envoy/cds-config.yaml: version_info: "v0"
    resources {
      [type.googleapis.com/envoy.config.cluster.v3.Cluster] {
        name: "cluster-port-3000"
        type: STATIC
        connect_timeout {
          seconds: 15
        }
        per_connection_buffer_limit_bytes {
          value: 32768
        }
        load_assignment {
          cluster_name: "cluster-port-3000"
          endpoints {
            lb_endpoints {
              endpoint {
                address {
                  socket_address {
                    address: "172.17.0.3"
                    port_value: 3000
                  }
                }
              }
            }
          }
        }
      }
    }
    183412668: "envoy.api.v2.DiscoveryResponse"
    
    [2021-03-18 11:25:28.280][73327][debug][file] [source/common/filesystem/inotify/watcher_impl.cc:72] notification: fd: 1 mask: 80 file: cds-config.yaml
    [2021-03-18 11:25:28.281][73327][debug][file] [source/common/filesystem/inotify/watcher_impl.cc:72] notification: fd: 1 mask: 2 file: sedEfdJMA
    [2021-03-18 11:25:28.281][73327][debug][file] [source/common/filesystem/inotify/watcher_impl.cc:72] notification: fd: 1 mask: 2 file: sedEfdJMA
    [2021-03-18 11:25:28.282][73327][debug][file] [source/common/filesystem/inotify/watcher_impl.cc:72] notification: fd: 1 mask: 80 file: lds-config.yaml
    [2021-03-18 11:25:28.282][73327][debug][file] [source/common/filesystem/inotify/watcher_impl.cc:72] notification: fd: 1 mask: 80 file: lds-config.yaml
    [2021-03-18 11:25:28.282][73327][debug][file] [source/common/filesystem/inotify/watcher_impl.cc:85] matched callback: file: lds-config.yaml
    [2021-03-18 11:25:28.282][73327][debug][config] [source/common/config/filesystem_subscription_impl.cc:61] Filesystem config refresh for /app/envoy/lds-config.yaml
    [2021-03-18 11:25:28.283][73327][debug][config] [source/server/listener_manager_impl.cc:391] begin add/update listener: name=tcp-port-3000-listener hash=1289931257627296334
    [2021-03-18 11:25:28.283][73327][debug][config] [source/server/listener_manager_impl.cc:428] use full listener update path for listener name=tcp-port-3000-listener hash=1289931257627296334
    [2021-03-18 11:25:28.283][73327][debug][config] [source/server/listener_manager_impl.cc:127]   filter #0:
    [2021-03-18 11:25:28.283][73327][debug][config] [source/server/listener_manager_impl.cc:128]     name: envoy.filters.listener.original_src
    [2021-03-18 11:25:28.284][73327][debug][config] [source/server/listener_manager_impl.cc:134]   config: {"@type":"type.googleapis.com/envoy.extensions.filters.listener.original_src.v3.OriginalSrc","mark":123}
    [2021-03-18 11:25:28.284][73327][debug][config] [source/server/listener_manager_impl.cc:94]   filter #0:
    [2021-03-18 11:25:28.284][73327][debug][config] [source/server/listener_manager_impl.cc:95]     name: envoy.filters.network.tcp_proxy
    [2021-03-18 11:25:28.284][73327][debug][config] [source/server/listener_manager_impl.cc:101]   config: {"@type":"type.googleapis.com/envoy.extensions.filters.network.tcp_proxy.v3.TcpProxy","cluster":"cluster-port-3000","stat_prefix":"ingress_tcp"}
    [2021-03-18 11:25:28.286][73327][debug][config] [source/server/filter_chain_manager_impl.cc:228] new fc_contexts has 1 filter chains, including 1 newly built
    [2021-03-18 11:25:28.286][73327][debug][config] [source/server/listener_impl.cc:130] Create listen socket for listener tcp-port-3000-listener on address 0.0.0.0:3000
    [2021-03-18 11:25:28.286][73327][debug][config] [source/server/listener_impl.cc:120] Set listener tcp-port-3000-listener socket factory local address to 0.0.0.0:3000
    [2021-03-18 11:25:28.286][73327][debug][config] [source/server/listener_impl.cc:687] add warming listener: name=tcp-port-3000-listener, hash=1289931257627296334, address=0.0.0.0:3000
    [2021-03-18 11:25:28.286][73327][debug][misc] [source/server/listener_impl.cc:696] Initialize listener tcp-port-3000-listener local-init-manager.
    [2021-03-18 11:25:28.286][73327][debug][init] [source/common/init/manager_impl.cc:49] init manager Listener-local-init-manager tcp-port-3000-listener 1289931257627296334 contains no targets
    [2021-03-18 11:25:28.287][73327][debug][init] [source/common/init/watcher_impl.cc:14] init manager Listener-local-init-manager tcp-port-3000-listener 1289931257627296334 initialized, notifying Listener-local-init-watcher tcp-port-3000-listener
    [2021-03-18 11:25:28.287][73327][debug][config] [source/server/listener_impl.cc:687] warm complete. updating active listener: name=tcp-port-3000-listener, hash=1289931257627296334, address=0.0.0.0:3000
    [2021-03-18 11:25:28.287][73327][info][upstream] [source/server/lds_api.cc:78] lds: add/update listener 'tcp-port-3000-listener'
    [2021-03-18 11:25:28.287][73327][debug][config] [source/common/config/filesystem_subscription_impl.cc:71] Filesystem config update accepted for /app/envoy/lds-config.yaml: version_info: "v0"
    resources {
      [type.googleapis.com/envoy.config.listener.v3.Listener] {
        name: "tcp-port-3000-listener"
        address {
          socket_address {
            address: "0.0.0.0"
            port_value: 3000
          }
        }
        filter_chains {
          filters {
            name: "envoy.filters.network.tcp_proxy"
            typed_config {
              [type.googleapis.com/envoy.extensions.filters.network.tcp_proxy.v3.TcpProxy] {
                stat_prefix: "ingress_tcp"
                cluster: "cluster-port-3000"
              }
            }
          }
        }
        listener_filters {
          name: "envoy.filters.listener.original_src"
          typed_config {
            [type.googleapis.com/envoy.extensions.filters.listener.original_src.v3.OriginalSrc] {
              mark: 123
            }
          }
        }
      }
    }
    183412668: "envoy.api.v2.DiscoveryResponse"
    
    [2021-03-18 11:25:31.284][73327][debug][file] [source/common/filesystem/inotify/watcher_impl.cc:72] notification: fd: 1 mask: 2 file: lds-config.yaml
    [2021-03-18 11:25:31.284][73327][debug][file] [source/common/filesystem/inotify/watcher_impl.cc:72] notification: fd: 1 mask: 2 file: lds-config.yaml
    [2021-03-18 11:25:31.284][73327][debug][file] [source/common/filesystem/inotify/watcher_impl.cc:72] notification: fd: 1 mask: 2 file: lds-config.yaml
    [2021-03-18 11:25:31.285][73327][debug][file] [source/common/filesystem/inotify/watcher_impl.cc:72] notification: fd: 1 mask: 2 file: lds-config.yaml
    [2021-03-18 11:25:31.289][73327][debug][file] [source/common/filesystem/inotify/watcher_impl.cc:72] notification: fd: 1 mask: 2 file: sedSFWaII
    [2021-03-18 11:25:31.289][73327][debug][file] [source/common/filesystem/inotify/watcher_impl.cc:72] notification: fd: 1 mask: 2 file: sedSFWaII
    [2021-03-18 11:25:31.290][73327][debug][file] [source/common/filesystem/inotify/watcher_impl.cc:72] notification: fd: 1 mask: 80 file: cds-config.yaml
    [2021-03-18 11:25:31.290][73327][debug][file] [source/common/filesystem/inotify/watcher_impl.cc:85] matched callback: file: cds-config.yaml
    [2021-03-18 11:25:31.290][73327][debug][config] [source/common/config/filesystem_subscription_impl.cc:61] Filesystem config refresh for /app/envoy/cds-config.yaml
    [2021-03-18 11:25:31.291][73327][info][upstream] [source/common/upstream/cds_api_impl.cc:73] cds: add 1 cluster(s), remove 0 cluster(s)
    [2021-03-18 11:25:31.291][73327][debug][upstream] [source/common/upstream/cds_api_impl.cc:93] cds: add/update cluster 'cluster-port-3000' skipped
    [2021-03-18 11:25:31.291][73327][info][upstream] [source/common/upstream/cds_api_impl.cc:108] cds: added/updated 0 cluster(s), skipped 1 unmodified cluster(s)
    [2021-03-18 11:25:31.292][73327][debug][config] [source/common/config/filesystem_subscription_impl.cc:71] Filesystem config update accepted for /app/envoy/cds-config.yaml: version_info: "v0"
    resources {
      [type.googleapis.com/envoy.config.cluster.v3.Cluster] {
        name: "cluster-port-3000"
        type: STATIC
        connect_timeout {
          seconds: 15
        }
        per_connection_buffer_limit_bytes {
          value: 32768
        }
        load_assignment {
          cluster_name: "cluster-port-3000"
          endpoints {
            lb_endpoints {
              endpoint {
                address {
                  socket_address {
                    address: "172.17.0.3"
                    port_value: 3000
                  }
                }
              }
            }
          }
        }
      }
    }
    183412668: "envoy.api.v2.DiscoveryResponse"
    
    [2021-03-18 11:25:31.293][73327][debug][file] [source/common/filesystem/inotify/watcher_impl.cc:72] notification: fd: 1 mask: 80 file: cds-config.yaml
    [2021-03-18 11:25:31.293][73327][debug][file] [source/common/filesystem/inotify/watcher_impl.cc:72] notification: fd: 1 mask: 2 file: sednbDYyI
    [2021-03-18 11:25:31.294][73327][debug][file] [source/common/filesystem/inotify/watcher_impl.cc:72] notification: fd: 1 mask: 2 file: sednbDYyI
    [2021-03-18 11:25:31.294][73327][debug][file] [source/common/filesystem/inotify/watcher_impl.cc:72] notification: fd: 1 mask: 80 file: lds-config.yaml
    [2021-03-18 11:25:31.294][73327][debug][file] [source/common/filesystem/inotify/watcher_impl.cc:72] notification: fd: 1 mask: 80 file: lds-config.yaml
    [2021-03-18 11:25:31.294][73327][debug][file] [source/common/filesystem/inotify/watcher_impl.cc:85] matched callback: file: lds-config.yaml
    [2021-03-18 11:25:31.294][73327][debug][config] [source/common/config/filesystem_subscription_impl.cc:61] Filesystem config refresh for /app/envoy/lds-config.yaml
    [2021-03-18 11:25:31.295][73327][debug][config] [source/server/listener_manager_impl.cc:846] begin remove listener: name=tcp-port-3000-listener
    [2021-03-18 11:25:31.295][73327][debug][config] [source/server/listener_impl.cc:687] draining listener: name=tcp-port-3000-listener, hash=1289931257627296334, address=0.0.0.0:3000
    [2021-03-18 11:25:31.295][73327][info][upstream] [source/server/lds_api.cc:59] lds: remove listener 'tcp-port-3000-listener'
    [2021-03-18 11:25:31.295][73327][debug][config] [source/server/listener_manager_impl.cc:391] begin add/update listener: name=udp-port-3000-listener hash=10254837736157851731
    [2021-03-18 11:25:31.295][73327][debug][config] [source/server/listener_manager_impl.cc:428] use full listener update path for listener name=udp-port-3000-listener hash=10254837736157851731
    [2021-03-18 11:25:31.296][73327][debug][config] [source/server/listener_manager_impl.cc:155]   filter #0:
    [2021-03-18 11:25:31.296][73327][debug][config] [source/server/listener_manager_impl.cc:156]     name: envoy.filters.udp_listener.udp_proxy
    [2021-03-18 11:25:31.296][73327][debug][config] [source/server/listener_manager_impl.cc:162]   config: {"@type":"type.googleapis.com/envoy.extensions.filters.udp.udp_proxy.v3.UdpProxyConfig","use_original_src_ip":true,"cluster":"cluster-port-3000","stat_prefix":"service"}
    [2021-03-18 11:25:31.296][73327][debug][config] [source/server/filter_chain_manager_impl.cc:228] new fc_contexts has 0 filter chains, including 0 newly built
    [2021-03-18 11:25:31.296][73327][debug][config] [source/server/listener_impl.cc:687] add warming listener: name=udp-port-3000-listener, hash=10254837736157851731, address=0.0.0.0:3000
    [2021-03-18 11:25:31.296][73327][debug][misc] [source/server/listener_impl.cc:696] Initialize listener udp-port-3000-listener local-init-manager.
    [2021-03-18 11:25:31.296][73327][debug][init] [source/common/init/manager_impl.cc:49] init manager Listener-local-init-manager udp-port-3000-listener 10254837736157851731 contains no targets
    [2021-03-18 11:25:31.296][73327][debug][init] [source/common/init/watcher_impl.cc:14] init manager Listener-local-init-manager udp-port-3000-listener 10254837736157851731 initialized, notifying Listener-local-init-watcher udp-port-3000-listener
    [2021-03-18 11:25:31.296][73327][debug][config] [source/server/listener_impl.cc:687] warm complete. updating active listener: name=udp-port-3000-listener, hash=10254837736157851731, address=0.0.0.0:3000
    [2021-03-18 11:25:31.296][73327][info][upstream] [source/server/lds_api.cc:78] lds: add/update listener 'udp-port-3000-listener'
    [2021-03-18 11:25:31.296][73327][debug][config] [source/common/config/filesystem_subscription_impl.cc:71] Filesystem config update accepted for /app/envoy/lds-config.yaml: version_info: "v1"
    resources {
      [type.googleapis.com/envoy.config.listener.v3.Listener] {
        name: "udp-port-3000-listener"
        address {
          socket_address {
            protocol: UDP
            address: "0.0.0.0"
            port_value: 3000
          }
        }
        listener_filters {
          name: "envoy.filters.udp_listener.udp_proxy"
          typed_config {
            [type.googleapis.com/envoy.extensions.filters.udp.udp_proxy.v3.UdpProxyConfig] {
              stat_prefix: "service"
              cluster: "cluster-port-3000"
              use_original_src_ip: true
            }
          }
        }
        reuse_port: true
      }
    }
    183412668: "envoy.api.v2.DiscoveryResponse"
    
    [2021-03-18 11:25:31.296][73334][critical][backtrace] [bazel-out/k8-opt/bin/source/server/_virtual_includes/backtrace_lib/server/backtrace.h:104] Caught Segmentation fault, suspect faulting address 0x0
    [2021-03-18 11:25:31.296][73334][critical][backtrace] [bazel-out/k8-opt/bin/source/server/_virtual_includes/backtrace_lib/server/backtrace.h:91] Backtrace (use tools/stack_decode.py to get line numbers):
    [2021-03-18 11:25:31.296][73334][critical][backtrace] [bazel-out/k8-opt/bin/source/server/_virtual_includes/backtrace_lib/server/backtrace.h:92] Envoy version: 2c8f6639ba2fc1b83af5c95115045fb8b1b9fc88/1.18.0-dev/Clean/RELEASE/BoringSSL
    [2021-03-18 11:25:31.297][73334][critical][backtrace] [bazel-out/k8-opt/bin/source/server/_virtual_includes/backtrace_lib/server/backtrace.h:96] #0: __restore_rt [0x7fd5325f13c0]
    [2021-03-18 11:25:31.297][73334][critical][backtrace] [bazel-out/k8-opt/bin/source/server/_virtual_includes/backtrace_lib/server/backtrace.h:98] #1: [0x55a82bbfb916]
    [2021-03-18 11:25:31.297][73334][critical][backtrace] [bazel-out/k8-opt/bin/source/server/_virtual_includes/backtrace_lib/server/backtrace.h:98] #2: [0x55a82bbf9c9a]
    [2021-03-18 11:25:31.297][73334][critical][backtrace] [bazel-out/k8-opt/bin/source/server/_virtual_includes/backtrace_lib/server/backtrace.h:98] #3: [0x55a82bbf72ee]
    [2021-03-18 11:25:31.297][73334][critical][backtrace] [bazel-out/k8-opt/bin/source/server/_virtual_includes/backtrace_lib/server/backtrace.h:98] #4: [0x55a82bc056cd]
    [2021-03-18 11:25:31.297][73334][critical][backtrace] [bazel-out/k8-opt/bin/source/server/_virtual_includes/backtrace_lib/server/backtrace.h:98] #5: [0x55a82c0ced98]
    [2021-03-18 11:25:31.297][73334][critical][backtrace] [bazel-out/k8-opt/bin/source/server/_virtual_includes/backtrace_lib/server/backtrace.h:98] #6: [0x55a82c0cda81]
    [2021-03-18 11:25:31.297][73334][critical][backtrace] [bazel-out/k8-opt/bin/source/server/_virtual_includes/backtrace_lib/server/backtrace.h:98] #7: [0x55a82bbf67e8]
    [2021-03-18 11:25:31.297][73334][critical][backtrace] [bazel-out/k8-opt/bin/source/server/_virtual_includes/backtrace_lib/server/backtrace.h:98] #8: [0x55a82c84b343]
    [2021-03-18 11:25:31.297][73334][critical][backtrace] [bazel-out/k8-opt/bin/source/server/_virtual_includes/backtrace_lib/server/backtrace.h:96] #9: start_thread [0x7fd5325e5609]
    Segmentation fault
    
  15. ankatare commented on Mar 18, 2021

    @ankatare
    Contributor

    @zarianec Would you please try on a version that has that commit. see #15195

  16. zarianec commented on Mar 18, 2021

    @zarianec
  17. ankatare commented on Mar 18, 2021

    @ankatare
    Contributor

    @zarianec humm. Ideally it should have merged in main. Let @mattklein123 to check this.

  18. mattklein123 commented on Mar 18, 2021

    @mattklein123
    Member

    OK if it still crashes with the fix it's a different issue. I will try the repro instructions later today.

  19. self-assigned this
    on Mar 18, 2021
  20. mattklein123 commented on Mar 18, 2021

    @mattklein123
    Member

    @zarianec can you provide your bootstrap config so there is a self contained repro that I can do?

  21. zarianec commented on Mar 18, 2021

    @zarianec

    @mattklein123
    /app/envoy/envoy.yaml:

    node:
      id: default-node
      cluster: default-cluster
    
    dynamic_resources:
      lds_config:
        path: /app/envoy/lds-config.yaml
      cds_config:
        path: /app/envoy/cds-config.yaml
    

    And I start it with the command:

    envoy -c /app/envoy/envoy.yaml
    

    No additional flags or anything.

  22. mattklein123 commented on Mar 18, 2021

    @mattklein123
    Member

    OK thanks I will take a look.

  23. mattklein123 commented on Mar 18, 2021

    @mattklein123
    Member

    I'm able to repro this but I'm pretty sure that the issue that @zarianec reports is a different issue than the other crashes which I think are fixed by my other change. I will debug this new config crash.

  24. mattklein123 commented on Mar 19, 2021

    @mattklein123
    Member

    The issue reported by @zarianec is new so I opened #15562 to track that. I'm going to close this issue because I the originally reported crash has been fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions