Closed tanjunchen closed 1 year ago
@tanjunchen can you provider the original metadata of the nacos instance?
This is a bug caused by our attempt to auto-generate locality information labels for instances.
a place that may need fixing
You are welcome to fix and submit pr.
问题描述
The MeshRegistry can't work,it always print the logs.
影响的子模块(在下面列表中打'X')
重现问题的步骤
create istio cluster (istio 1.16.5)
install meshregistry component according to https://slime-io.github.io/user-guide/meshregistry/tutorial/
the logs of meshregistry
the logs of istiod
} 2023-07-19T06:48:44.505893Z info Loaded MeshConfig config from Kubernetes API server. 2023-07-19T06:48:44.506396Z info mesh configuration updated to: { "proxyListenPort": 15001, "connectTimeout": "10s", 2023-07-19T06:48:44.454472Z info FLAG: --tlsCertFile="" 2023-07-19T06:48:44.454475Z info FLAG: --tlsKeyFile="" 2023-07-19T06:48:44.454479Z info FLAG: --vklog="0" 2023-07-19T06:48:44.480798Z info initializing Istiod admin server 2023-07-19T06:48:44.481927Z info starting HTTP service at [::]:8080 2023-07-19T06:48:44.482039Z info klog Config not found: /var/run/secrets/remote/config 2023-07-19T06:48:44.495172Z info initializing mesh configuration ./etc/istio/config/mesh 2023-07-19T06:48:44.502581Z info controllers starting controller=configmap istio 2023-07-19T06:48:44.502840Z info Loaded MeshNetworks config from Kubernetes API server. 2023-07-19T06:48:44.502853Z info mesh networks configuration updated to: {
} 2023-07-19T06:48:44.505893Z info Loaded MeshConfig config from Kubernetes API server. 2023-07-19T06:48:44.506396Z info mesh configuration updated to: { "proxyListenPort": 15001, "connectTimeout": "10s", "protocolDetectionTimeout": "0s", "ingressClass": "istio", "ingressService": "istio-ingressgateway", "ingressControllerMode": "STRICT", "enableTracing": true, "accessLogFile": "/dev/stdout", "defaultConfig": { "configPath": "./etc/istio/proxy", "binaryPath": "/usr/local/bin/envoy", "serviceCluster": "istio-proxy", "drainDuration": "45s", "parentShutdownDuration": "60s", "discoveryAddress": "istiod.istio-system.svc:15012", "proxyAdminPort": 15000, "controlPlaneAuthPolicy": "MUTUAL_TLS", "statNameLength": 189, "concurrency": 2, "tracing": { "zipkin": { "address": "zipkin.istio-system:9411" } }, "proxyMetadata": { "ISTIO_META_DNS_AUTO_ALLOCATE": "true", "ISTIO_META_DNS_CAPTURE": "true" }, "statusPort": 15020, "terminationDrainDuration": "5s" }, "outboundTrafficPolicy": { "mode": "ALLOW_ANY" }, "configSources": [ { "address": "k8s://" }, { "terminationDrainDuration": "5s" }, "outboundTrafficPolicy": { "mode": "ALLOW_ANY" }, "configSources": [ { "address": "k8s://" }, { "address": "xds://meshregistry.mesh-operator.svc:16010" } ], "enableAutoMtls": true, "trustDomain": "cluster.local", "defaultServiceExportTo": [ "" ], "defaultVirtualServiceExportTo": [ "" ], "defaultDestinationRuleExportTo": [ "*" ], "rootNamespace": "istio-system", "localityLbSetting": { "enabled": true }, "dnsRefreshRate": "60s", "thriftConfig": {
} 2023-07-19T06:48:44.506411Z info mesh configuration sources have changed 2023-07-19T06:48:44.511548Z info initializing mesh networks from mesh config watcher 2023-07-19T06:48:44.511850Z info mesh configuration: { "proxyListenPort": 15001, "connectTimeout": "10s", "protocolDetectionTimeout": "0s", "ingressClass": "istio", "ingressService": "istio-ingressgateway", "ingressControllerMode": "STRICT", "enableTracing": true, "accessLogFile": "/dev/stdout", "defaultConfig": { "configPath": "./etc/istio/proxy", "binaryPath": "/usr/local/bin/envoy", "serviceCluster": "istio-proxy", "drainDuration": "45s", "parentShutdownDuration": "60s", "discoveryAddress": "istiod.istio-system.svc:15012", "proxyAdminPort": 15000, "controlPlaneAuthPolicy": "MUTUAL_TLS", "statNameLength": 189, "concurrency": 2, "tracing": { "zipkin": { "address": "zipkin.istio-system:9411" } }, "proxyMetadata": { "ISTIO_META_DNS_AUTO_ALLOCATE": "true", "ISTIO_META_DNS_CAPTURE": "true" }, "statusPort": 15020, "terminationDrainDuration": "5s" }, "outboundTrafficPolicy": { "mode": "ALLOW_ANY" }, "configSources": [ { "address": "k8s://" }, { "address": "xds://meshregistry.mesh-operator.svc:16010" } ], "enableAutoMtls": true, "trustDomain": "cluster.local", "defaultServiceExportTo": [ "" ], "defaultVirtualServiceExportTo": [ "" ], "defaultDestinationRuleExportTo": [ "*" ], "rootNamespace": "istio-system", "localityLbSetting": { "enabled": true }, "dnsRefreshRate": "60s", "thriftConfig": {
} 2023-07-19T06:48:44.511859Z info version: 1.16.5-ae8d5164776cd55bf61d9d3fc4658b44a77c6e24-Clean 2023-07-19T06:48:44.512181Z info flags: { "ServerOptions": { "HTTPAddr": ":8080", "HTTPSAddr": ":15017", "GRPCAddr": ":15010", "MonitoringAddr": ":15014", "EnableProfiling": true, "TLSOptions": { "CaCertFile": "", "CertFile": "", "KeyFile": "", "TLSCipherSuites": null, "CipherSuits": null }, "SecureGRPCAddr": ":15012" }, "InjectionOptions": { "InjectionDirectory": "./var/lib/istio/inject" }, "PodName": "istiod-554d9ddbd8-vglgz", "Namespace": "istio-system", "Revision": "default", "MeshConfigFile": "./etc/istio/config/mesh", "NetworksConfigFile": "./etc/istio/config/meshNetworks", "RegistryOptions": { "FileDir": "", "Registries": [ "Kubernetes" ], "KubeOptions": { "SystemNamespace": "", "MeshServiceController": null, "DomainSuffix": "cluster.local", "ClusterID": "Kubernetes", "ClusterAliases": {}, "Metrics": null, "XDSUpdater": null, "NetworksWatcher": null, "MeshWatcher": null, "EndpointMode": 1, "KubernetesAPIQPS": 80, "KubernetesAPIBurst": 160, "SyncTimeout": 0, "DiscoveryNamespacesFilter": null }, "ClusterRegistriesNamespace": "istio-system", "KubeConfig": "", "DistributionCacheRetention": 60000000000, "DistributionTrackingEnabled": false }, "CtrlZOptions": { "Port": 9876, "Address": "localhost" }, "KeepaliveOptions": { "Time": 30000000000, "Timeout": 10000000000, "MaxServerConnectionAge": 1800000000000, "MaxServerConnectionAgeGrace": 10000000000 }, "ShutdownDuration": 10000000000, "JwtRule": "" } 2023-07-19T06:48:44.512191Z info initializing mesh handlers 2023-07-19T06:48:44.512253Z info model reloading network gateways 2023-07-19T06:48:44.512263Z info creating CA and initializing public key 2023-07-19T06:48:44.512277Z info Using istiod file format for signing ca files 2023-07-19T06:48:44.512291Z info Use self-signed certificate as the CA certificate 2023-07-19T06:48:44.515997Z info pkica Load signing key and cert from existing secret istio-system:istio-ca-secret 2023-07-19T06:48:44.516279Z info pkica Using existing public key: -----BEGIN CERTIFICATE----- MIIC/TCCAeWgAwIBAgIRAOy2QIuiG1MdhZRCdx22FhAwDQYJKoZIhvcNAQELBQAw GDEWMBQGA1UEChMNY2x1c3Rlci5sb2NhbDAeFw0yMzA3MTkwNjM3MDdaFw0zMzA3 MTYwNjM3MDdaMBgxFjAUBgNVBAoTDWNsdXN0ZXIubG9jYWwwggEiMA0GCSqGSIb3 DQEBAQUAA4IBDwAwggEKAoIBAQCmi49Kn0uYd3Bf70sqbSg4NwTmT1C/an4KOO7F 2nVvTvkqBLqyTJ0zMNqSAPt4G0BNUs7VsIq6M4ikIp/Khg30r0W+Ti2rOYeEANs1 /3jGUa5oVFWcz52lYjohLNNDiRpWsg+VUU5jIjaU1V+c8PAdwqpAOqxrKpIOaEON Z0yGobr3r4GM8JSqLGb3QPUrdZA2FtGQ0F9HJnKXNyjgP4tNlqcz9WWk0FuMgsNa 4NNgQZAHzFWxZbwYsMDjf6hfrVHFTXdlJsxDQIeoE2TfLJMTDCeJylyT08up0ss4 ec537t/M7Im2WW5EXw14eHz17vil20V4MHG2SIXxiwtKeixfAgMBAAGjQjBAMA4G A1UdDwEB/wQEAwICBDAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBQRoYGTDQkx M8OS2ZjHp01Ak+vJzTANBgkqhkiG9w0BAQsFAAOCAQEAXwmA43w3yHK1Q0jjHx78 /uz636mp4Zaw3j7cSG1Nn9cVpukj+sRBl6H9g6TaxuqpLgtTn9IucZkW/Lped+Vu DJhvF86hnkM+zjvWtsydYr+ur0TFrFFGb/1CSSl1yMshgGEzti+ncwh2zpkChqO4 e52IFRt+/I5stSn7OUH2+xQCSs3CqOohl0+r6zLoXpF1/G4AWmOcrQGetS4t1Z5M bkwZaZwD4X6Hrm5V2bnKkiSTASTrtoMSQlDPUiQI/mcFAiTJ4gs0lx+a+3KWvkLL dytaKJ0HDwpn0SZRUetv7EsF8G0G+yRHh2kv5oYC54nwwtDoccOYreUvCKaJ7qL7 DA== -----END CERTIFICATE-----
2023-07-19T06:48:44.516307Z info rootcertrotator Set up back off time 59m26s to start rotator. 2023-07-19T06:48:44.516318Z info initializing controllers 2023-07-19T06:48:44.516356Z info No certificates specified, skipping K8S DNS certificate controller 2023-07-19T06:48:44.516544Z info rootcertrotator Jitter is enabled, wait 59m26s before starting root cert rotator. DJhvF86hnkM+zjvWtsydYr+ur0TFrFFGb/1CSSl1yMshgGEzti+ncwh2zpkChqO4 e52IFRt+/I5stSn7OUH2+xQCSs3CqOohl0+r6zLoXpF1/G4AWmOcrQGetS4t1Z5M bkwZaZwD4X6Hrm5V2bnKkiSTASTrtoMSQlDPUiQI/mcFAiTJ4gs0lx+a+3KWvkLL dytaKJ0HDwpn0SZRUetv7EsF8G0G+yRHh2kv5oYC54nwwtDoccOYreUvCKaJ7qL7 DA== -----END CERTIFICATE-----
2023-07-19T06:48:44.516307Z info rootcertrotator Set up back off time 59m26s to start rotator. 2023-07-19T06:48:44.516318Z info initializing controllers 2023-07-19T06:48:44.516356Z info No certificates specified, skipping K8S DNS certificate controller 2023-07-19T06:48:44.516544Z info rootcertrotator Jitter is enabled, wait 59m26s before starting root cert rotator. 2023-07-19T06:48:44.579181Z warn kube Skipping CRD gateway.networking.k8s.io/v1alpha2/ReferenceGrant as it is not presen t controller=crd-controller 2023-07-19T06:48:44.579207Z warn kube Skipping CRD gateway.networking.k8s.io/v1alpha2/ReferencePolicy as it is not prese nt controller=crd-controller 2023-07-19T06:48:44.579214Z warn kube Skipping CRD gateway.networking.k8s.io/v1alpha2/TCPRoute as it is not present co ntroller=crd-controller 2023-07-19T06:48:44.579220Z warn kube Skipping CRD gateway.networking.k8s.io/v1alpha2/TLSRoute as it is not present co ntroller=crd-controller 2023-07-19T06:48:44.579224Z warn kube Skipping CRD gateway.networking.k8s.io/v1beta1/GatewayClass as it is not present controller=crd-controller 2023-07-19T06:48:44.579230Z warn kube Skipping CRD gateway.networking.k8s.io/v1beta1/Gateway as it is not present co ntroller=crd-controller 2023-07-19T06:48:44.579236Z warn kube Skipping CRD gateway.networking.k8s.io/v1beta1/HTTPRoute as it is not present co ntroller=crd-controller 2023-07-19T06:48:44.579418Z warn Started K8S config 2023-07-19T06:48:44.583682Z warn Started XDS config [0xc00102e9a0 0xc000b2d450 0xc000dc7cc0] 2023-07-19T06:48:44.583897Z info Adding Kubernetes registry adapter 2023-07-19T06:48:44.583953Z info initializing Istiod DNS certificates host: istiod.istio-system.svc, custom host: 2023-07-19T06:48:44.586398Z info adsc Received meshregistry.mesh-operator.svc:16010 type core/v1alpha1/MeshConfig cnt=0 nonce= 2023-07-19T06:48:44.586440Z info adsc Received meshregistry.mesh-operator.svc:16010 type extensions.istio.io/v1alpha1/Wa smPlugin cnt=0 nonce= 2023-07-19T06:48:44.586457Z info adsc Received meshregistry.mesh-operator.svc:16010 type networking.istio.io/v1alpha3/De stinationRule cnt=0 nonce= 2023-07-19T06:48:44.586471Z info adsc Received meshregistry.mesh-operator.svc:16010 type networking.istio.io/v1alpha3/En voyFilter cnt=0 nonce= 2023-07-19T06:48:44.586483Z info adsc Received meshregistry.mesh-operator.svc:16010 type networking.istio.io/v1alpha3/Ga teway cnt=0 nonce= 2023-07-19T06:48:44.587090Z info adsc Received meshregistry.mesh-operator.svc:16010 type networking.istio.io/v1alpha3/Se rviceEntry cnt=2 nonce=2023-07-19 06:46:43.100632255 +0000 UTC m=+35.606165093 2023-07-19T06:48:44.587673Z warn adsc Error adding a new resource to the store 1 error occurred: