apache / apache/dubbo-admin

dubbo-admin-0.0.4mesh路由不生效

Open
#863 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
4.1k
Forks
2.2k
Avg merge
10d 12h
Merged PRs (30d)
4

Description

- [ ] I have searched the [issues](https://github.com/apache/dubbo-admin/issues) of this repository and believe that this is not a duplicate.
- [ ] I have checked the [REAMDE](https://github.com/apache/dubbo-admin/blob/develop/README.md) of this repository and believe that this is not a duplicate.

### Environment

* Dubbo Admin version: 0.0.4
* Registry center detail (type and version): nacos 2.0.3
* Operating System version: win11
* Java version: 11

### Steps to reproduce this issue

1. mesh路由规则
apiVersion: service.dubbo.apache.org/v1alpha1
kind: DestinationRule
metadata: { name: idp-ods-service/DestinationRule }
spec:
host: idp-ods-service
subsets:
- labels: { servicetag: dataSyn }
name: dataSynLabel
- labels: { servicetag: public }
name: publicLabel
trafficPolicy:
loadBalancer: { simple: ROUND_ROBIN }

---

apiVersion: service.dubbo.apache.org/v1alpha1
kind: VirtualService
metadata: {name: idp-ods-service/StandardRouter}
spec:
dubbo:
- routedetail:
- match:
- sourceLabels: {servicetag: dataSyn}
name: dataSynRoutDetail
route:
- destination: {host: idp-ods-service, subset: dataSyn}
- match:
- sourceLabels: {servicetag: public}
name: publicRoutDetail
route:
- destination: {host: idp-ods-service, subset: public}
hosts: [idp-ods-service]
2. provider配置信息
dubbo:
application:
parameters:
servicetag: dataSyn
config-center:
address: nacos://127.0.0.1:8848
group: DEFAULT_GROUP
namespace: 76e70258-7bdc-465a-b646-5ddcea6de5ad
config-file: dubbo.properties
protocol: nacos
provider:
threads: 200
threadpool: fixed
loadbalance: roundrobin
server: netty4
3. consumer配置信息
dubbo:
application:
parameters:
servicetag: public
config-center:
address: nacos://127.0.0.1:8848
group: DEFAULT_GROUP
namespace: 76e70258-7bdc-465a-b646-5ddcea6de5ad
config-file: dubbo.properties
protocol: nacos
provider:
threads: 200
threadpool: fixed
loadbalance: roundrobin
server: netty4
4. dubbo.properties信息
dubbo.registry.address=nacos://127.0.0.1:8848?namespace=36f31d90-18a7-4138-940a-c3ef00078ed0
dubbo.registry.group=DEFAULT_GROUP
dubbo.registry.simplified=false
dubbo.registry.parameters[registry-type]=service
dubbo.metadata-report.address=nacos://127.0.0.1:8848?namespace=91eab0a1-2c05-4bd9-ab67-a6a3f2ba98f3
dubbo.metadata-report.group=DEFAULT_GROUP

Pls. provide [GitHub address] to reproduce this issue.

### Expected Result

按理说consumer的servicetag=public,provider启动时注册的servicetag=dataSyn,从servicetag=public的调用应该不会被servicetag的provider接收才对,感觉没有限制注

### Actual Result

实际上从consumer servicetag=public来的调用可以正常被provider servicetag=dataSyn接收并调用
请大神帮忙看看是否配置有问题

If there is an exception, please attach the exception trace:

```
Just put your stack trace here!
```

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the supplied mesh-routing configuration with Dubbo Admin 0.0.4, Nacos 2.0.3, and Java 11, then inspect whether the provider and consumer servicetag values are registered and matched. Done means a consumer tagged public cannot invoke the dataSyn provider, or the configuration error is identified.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
distributed-systems, networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.