new feature (#50)
* test
* new feature : support batch delete services
* 更新yaml文件
diff --git a/server/core/proto/services.pb.go b/server/core/proto/services.pb.go
index 6cf10ee..ae8b4b8 100644
--- a/server/core/proto/services.pb.go
+++ b/server/core/proto/services.pb.go
@@ -1,6 +1,5 @@
-// Code generated by protoc-gen-go.
+// Code generated by protoc-gen-go. DO NOT EDIT.
// source: services.proto
-// DO NOT EDIT!
/*
Package proto is a generated protocol buffer package.
@@ -88,6 +87,9 @@
SchemaInfos
ServiceDetail
GetServiceDetailResponse
+ DelServicesRequest
+ DelServicesRspInfo
+ DelServicesResponse
*/
package proto
@@ -2354,6 +2356,81 @@
return nil
}
+// 删除服务请求
+type DelServicesRequest struct {
+ ServiceIds []string `protobuf:"bytes,1,rep,name=serviceIds" json:"serviceIds,omitempty"`
+ Force bool `protobuf:"varint,2,opt,name=force" json:"force,omitempty"`
+}
+
+func (m *DelServicesRequest) Reset() { *m = DelServicesRequest{} }
+func (m *DelServicesRequest) String() string { return proto1.CompactTextString(m) }
+func (*DelServicesRequest) ProtoMessage() {}
+func (*DelServicesRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{79} }
+
+func (m *DelServicesRequest) GetServiceIds() []string {
+ if m != nil {
+ return m.ServiceIds
+ }
+ return nil
+}
+
+func (m *DelServicesRequest) GetForce() bool {
+ if m != nil {
+ return m.Force
+ }
+ return false
+}
+
+// 删除服务响应内容
+type DelServicesRspInfo struct {
+ ErrMessage string `protobuf:"bytes,1,opt,name=errMessage" json:"errMessage,omitempty"`
+ ServiceId string `protobuf:"bytes,2,opt,name=serviceId" json:"serviceId,omitempty"`
+}
+
+func (m *DelServicesRspInfo) Reset() { *m = DelServicesRspInfo{} }
+func (m *DelServicesRspInfo) String() string { return proto1.CompactTextString(m) }
+func (*DelServicesRspInfo) ProtoMessage() {}
+func (*DelServicesRspInfo) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{80} }
+
+func (m *DelServicesRspInfo) GetErrMessage() string {
+ if m != nil {
+ return m.ErrMessage
+ }
+ return ""
+}
+
+func (m *DelServicesRspInfo) GetServiceId() string {
+ if m != nil {
+ return m.ServiceId
+ }
+ return ""
+}
+
+// 删除服务响应
+type DelServicesResponse struct {
+ Response *Response `protobuf:"bytes,1,opt,name=response" json:"response,omitempty"`
+ Services []*DelServicesRspInfo `protobuf:"bytes,2,rep,name=services" json:"services,omitempty"`
+}
+
+func (m *DelServicesResponse) Reset() { *m = DelServicesResponse{} }
+func (m *DelServicesResponse) String() string { return proto1.CompactTextString(m) }
+func (*DelServicesResponse) ProtoMessage() {}
+func (*DelServicesResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{81} }
+
+func (m *DelServicesResponse) GetResponse() *Response {
+ if m != nil {
+ return m.Response
+ }
+ return nil
+}
+
+func (m *DelServicesResponse) GetServices() []*DelServicesRspInfo {
+ if m != nil {
+ return m.Services
+ }
+ return nil
+}
+
func init() {
proto1.RegisterType((*HeartbeatSetRequest)(nil), "com.huawei.paas.cse.serviceregistry.api.HeartbeatSetRequest")
proto1.RegisterType((*HeartbeatSetElement)(nil), "com.huawei.paas.cse.serviceregistry.api.HeartbeatSetElement")
@@ -2434,6 +2511,9 @@
proto1.RegisterType((*SchemaInfos)(nil), "com.huawei.paas.cse.serviceregistry.api.SchemaInfos")
proto1.RegisterType((*ServiceDetail)(nil), "com.huawei.paas.cse.serviceregistry.api.ServiceDetail")
proto1.RegisterType((*GetServiceDetailResponse)(nil), "com.huawei.paas.cse.serviceregistry.api.GetServiceDetailResponse")
+ proto1.RegisterType((*DelServicesRequest)(nil), "com.huawei.paas.cse.serviceregistry.api.DelServicesRequest")
+ proto1.RegisterType((*DelServicesRspInfo)(nil), "com.huawei.paas.cse.serviceregistry.api.DelServicesRspInfo")
+ proto1.RegisterType((*DelServicesResponse)(nil), "com.huawei.paas.cse.serviceregistry.api.DelServicesResponse")
proto1.RegisterEnum("com.huawei.paas.cse.serviceregistry.api.Response_Code", Response_Code_name, Response_Code_value)
}
@@ -2468,6 +2548,7 @@
CreateDependenciesForMircServices(ctx context.Context, in *CreateDependenciesRequest, opts ...grpc.CallOption) (*CreateDependenciesResponse, error)
GetProviderDependencies(ctx context.Context, in *GetDependenciesRequest, opts ...grpc.CallOption) (*GetProDependenciesResponse, error)
GetConsumerDependencies(ctx context.Context, in *GetDependenciesRequest, opts ...grpc.CallOption) (*GetConDependenciesResponse, error)
+ DeleteServices(ctx context.Context, in *DelServicesRequest, opts ...grpc.CallOption) (*DelServicesResponse, error)
}
type serviceCtrlClient struct {
@@ -2658,6 +2739,15 @@
return out, nil
}
+func (c *serviceCtrlClient) DeleteServices(ctx context.Context, in *DelServicesRequest, opts ...grpc.CallOption) (*DelServicesResponse, error) {
+ out := new(DelServicesResponse)
+ err := grpc.Invoke(ctx, "/com.huawei.paas.cse.serviceregistry.api.ServiceCtrl/deleteServices", in, out, c.cc, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
// Server API for ServiceCtrl service
type ServiceCtrlServer interface {
@@ -2681,6 +2771,7 @@
CreateDependenciesForMircServices(context.Context, *CreateDependenciesRequest) (*CreateDependenciesResponse, error)
GetProviderDependencies(context.Context, *GetDependenciesRequest) (*GetProDependenciesResponse, error)
GetConsumerDependencies(context.Context, *GetDependenciesRequest) (*GetConDependenciesResponse, error)
+ DeleteServices(context.Context, *DelServicesRequest) (*DelServicesResponse, error)
}
func RegisterServiceCtrlServer(s *grpc.Server, srv ServiceCtrlServer) {
@@ -3047,6 +3138,24 @@
return interceptor(ctx, in, info, handler)
}
+func _ServiceCtrl_DeleteServices_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(DelServicesRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(ServiceCtrlServer).DeleteServices(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: "/com.huawei.paas.cse.serviceregistry.api.ServiceCtrl/DeleteServices",
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(ServiceCtrlServer).DeleteServices(ctx, req.(*DelServicesRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
var _ServiceCtrl_serviceDesc = grpc.ServiceDesc{
ServiceName: "com.huawei.paas.cse.serviceregistry.api.ServiceCtrl",
HandlerType: (*ServiceCtrlServer)(nil),
@@ -3131,6 +3240,10 @@
MethodName: "getConsumerDependencies",
Handler: _ServiceCtrl_GetConsumerDependencies_Handler,
},
+ {
+ MethodName: "deleteServices",
+ Handler: _ServiceCtrl_DeleteServices_Handler,
+ },
},
Streams: []grpc.StreamDesc{},
Metadata: "services.proto",
@@ -3625,188 +3738,193 @@
func init() { proto1.RegisterFile("services.proto", fileDescriptor0) }
var fileDescriptor0 = []byte{
- // 2922 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xd4, 0x5c, 0xdf, 0x8f, 0xdb, 0xc6,
- 0xf1, 0xff, 0xae, 0x7e, 0xdc, 0x49, 0x23, 0x9f, 0x7d, 0xa6, 0x65, 0x1f, 0xad, 0x6f, 0x50, 0xb8,
- 0x44, 0x80, 0x06, 0x45, 0x20, 0x24, 0xd7, 0xe6, 0x47, 0x13, 0x3b, 0xf6, 0x9d, 0xec, 0xd8, 0x67,
- 0xfb, 0x6c, 0x97, 0x3a, 0x27, 0x48, 0x9a, 0x26, 0xe0, 0x89, 0x7b, 0x12, 0x63, 0x89, 0x54, 0xc8,
- 0xd5, 0x25, 0xea, 0x5b, 0x82, 0xf4, 0x77, 0x9b, 0x36, 0x68, 0xfa, 0x94, 0x02, 0x79, 0xf2, 0x5b,
- 0x1f, 0x5b, 0x14, 0x45, 0x80, 0xa0, 0x69, 0x5f, 0xfa, 0xd0, 0xf4, 0xb5, 0x45, 0xff, 0x86, 0xfe,
- 0x09, 0x05, 0x5a, 0xec, 0x0f, 0x92, 0x4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x34, 0x48, 0x6f, 0x90, 0x42, 0xe1,
- 0x93, 0x92, 0xac, 0x29, 0x14, 0x3e, 0x31, 0xc9, 0xfa, 0x18, 0x62, 0x2a, 0x3f, 0x90, 0xbe, 0xa2,
- 0xa0, 0x64, 0xfb, 0xe8, 0x43, 0x7a, 0x95, 0x4f, 0xfa, 0x74, 0xc3, 0xe6, 0x27, 0x25, 0x38, 0x79,
- 0xd5, 0x39, 0xc4, 0xae, 0x2d, 0x07, 0x55, 0xde, 0x47, 0xb0, 0xde, 0x8f, 0x85, 0x88, 0x72, 0xdd,
- 0xe1, 0xb7, 0x32, 0x8c, 0x8d, 0x45, 0xa6, 0x3e, 0x40, 0x70, 0xa2, 0x1f, 0xfd, 0x38, 0x42, 0xa6,
- 0x9b, 0xa1, 0xfc, 0x2d, 0x86, 0x4c, 0x37, 0xc3, 0xc8, 0x77, 0x19, 0xb6, 0x1f, 0x83, 0x45, 0xbf,
- 0x03, 0xf2, 0x72, 0x95, 0x7d, 0x37, 0x64, 0x7f, 0x85, 0xfd, 0x7c, 0xe3, 0x7f, 0x01, 0x00, 0x00,
- 0xff, 0xff, 0xd5, 0xe7, 0xc0, 0xb1, 0x50, 0x44, 0x00, 0x00,
+ // 2997 bytes of a gzipped FileDescriptorProto
+ 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x5c, 0x5b, 0x8f, 0xdb, 0xc6,
+ 0xf5, 0xff, 0x8f, 0x2e, 0xbb, 0xab, 0x23, 0xef, 0x7a, 0x4d, 0xaf, 0xbd, 0xb4, 0xfe, 0x41, 0xe1,
+ 0x12, 0x01, 0x1a, 0x14, 0x81, 0x90, 0x6c, 0x9b, 0x4b, 0x13, 0x3b, 0xf6, 0xae, 0xec, 0xd8, 0x6b,
+ 0x7b, 0x6d, 0x97, 0x5a, 0xc7, 0x48, 0x9a, 0x26, 0xe0, 0x8a, 0xb3, 0x12, 0x63, 0x89, 0x54, 0xc8,
+ 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 0xd7, 0x96,
+ 0x53, 0x3c, 0x1f, 0x20, 0x58, 0xef, 0xc6, 0x12, 0x82, 0xb9, 0x32, 0x0a, 0xdb, 0x19, 0xc6, 0xc6,
+ 0xf2, 0x90, 0x1f, 0x22, 0x38, 0xde, 0x8d, 0x7e, 0x0a, 0x23, 0xd3, 0x39, 0x55, 0xfe, 0xf2, 0x46,
+ 0xa6, 0x73, 0x6a, 0xe4, 0x2b, 0x1c, 0x3b, 0x8f, 0xc1, 0xbc, 0x5f, 0x7d, 0x79, 0xa9, 0xca, 0xbe,
+ 0x12, 0x73, 0xb0, 0xc4, 0x7e, 0xbe, 0xf5, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x66, 0xb0, 0xdd,
+ 0xeb, 0x3e, 0x46, 0x00, 0x00,
}
diff --git a/server/core/proto/services.proto b/server/core/proto/services.proto
index fe0a31d..164af71 100644
--- a/server/core/proto/services.proto
+++ b/server/core/proto/services.proto
@@ -30,6 +30,7 @@
rpc createDependenciesForMircServices (CreateDependenciesRequest) returns (CreateDependenciesResponse);
rpc getProviderDependencies (GetDependenciesRequest) returns (GetProDependenciesResponse);
rpc getConsumerDependencies (GetDependenciesRequest) returns (GetConDependenciesResponse);
+ rpc deleteServices (DelServicesRequest) returns (DelServicesResponse);
}
service ServiceInstanceCtrl {
@@ -506,3 +507,23 @@
Response response = 1;
ServiceDetail service = 2;
}
+
+
+
+//删除服务请求
+message DelServicesRequest {
+ repeated string serviceIds = 1;
+ bool force = 2;
+}
+//删除服务响应内容
+message DelServicesRspInfo {
+ string errMessage = 1;
+ string serviceId = 2;
+}
+
+//删除服务响应
+message DelServicesResponse {
+ Response response = 1;
+ repeated DelServicesRspInfo services = 2;
+}
+
diff --git a/server/core/swagger/services.yaml b/server/core/swagger/services.yaml
index bc1f24d..979627c 100644
--- a/server/core/swagger/services.yaml
+++ b/server/core/swagger/services.yaml
@@ -170,6 +170,30 @@
description: 内部错误
schema:
type: string
+ delete:
+ description: |
+ 批量删除指定的微服务定义及其相关信息,同时注销其所有实例信息。
+ operationId: deleteServices
+ parameters:
+ - name: serviceIds
+ in: body
+ description: 批量删除服务的服务ID列表
+ required: true
+ schema:
+ $ref: '#/definitions/DelServicesRequest'
+ tags:
+ - microservices
+ responses:
+ 200:
+ description: 更新成功
+ 400:
+ description: 错误的请求
+ schema:
+ $ref: '#/definitions/DelServicesResponse'
+ 500:
+ description: 内部错误
+ schema:
+ type: string
/registry/v3/microservices/{serviceId}/properties:
put:
description: |
@@ -1571,4 +1595,33 @@
type: string
errMessage:
description: 错误信息,成功为空,不成功,则为错误,在部分成功的场景使用
+ type: string
+
+ DelServicesRequest:
+ type: object
+ properties:
+ serviceIds:
+ type: array
+ items:
+ type: string
+ force:
+ description: 不传即默认为false。 强制删除,则与该服务相关的信息删除,非强制删除: 如果作为该被依赖(作为provider,提供服务,且不是只存在自依赖)或者存在实例,则不能删除,其它均删除。
+ type: string
+
+ DelServicesResponse:
+ type: object
+ properties:
+ services:
+ type: array
+ items:
+ $ref: "#/definitions/DelServicesRspInfo"
+
+ DelServicesRspInfo:
+ type: object
+ properties:
+ serviceId:
+ description: 微服务id
+ type: string
+ errMessage:
+ description: 错误信息,成功为空,不成功,则为错误,在部分成功的场景使用
type: string
\ No newline at end of file
diff --git a/server/rest/microservice_controller.go b/server/rest/microservice_controller.go
index a8b8434..ae0f0f6 100644
--- a/server/rest/microservice_controller.go
+++ b/server/rest/microservice_controller.go
@@ -42,6 +42,7 @@
{rest.HTTP_METHOD_PUT, "/registry/v3/dependencies", this.CreateDependenciesForMicroServices},
{rest.HTTP_METHOD_GET, "/registry/v3/microservices/:consumerId/providers", this.GetConProDependencies},
{rest.HTTP_METHOD_GET, "/registry/v3/microservices/:providerId/consumers", this.GetProConDependencies},
+ {rest.HTTP_METHOD_DELETE, "/registry/v3/microservices", this.UnregisterServices},
}
}
@@ -278,3 +279,41 @@
resp.Response = nil
WriteJsonObject(http.StatusOK, resp, w)
}
+
+func (this *MicroServiceService) UnregisterServices(w http.ResponseWriter, r *http.Request) {
+ request_body,err := ioutil.ReadAll(r.Body)
+ if err != nil{
+ util.LOGGER.Error("body ,err",err)
+ WriteText(http.StatusBadRequest, err.Error(), w)
+ return
+ }
+
+ request := &pb.DelServicesRequest{}
+
+ err = json.Unmarshal(request_body, request)
+ if err != nil {
+ util.LOGGER.Error("unmarshal ,err ", err)
+ WriteText(http.StatusBadRequest, err.Error(), w)
+ return
+ }
+
+ resp, err := ServiceAPI.DeleteServices(r.Context(), request)
+
+ if resp.Response.Code == pb.Response_SUCCESS {
+ WriteText(http.StatusOK, "", w)
+ return
+ }
+ if resp.Services == nil || len(resp.Services) == 0 {
+ WriteText(http.StatusBadRequest, resp.Response.Message, w)
+ return
+ }
+ resp.Response = nil
+ objJson, err := json.Marshal(resp)
+ if err != nil {
+ WriteText(http.StatusInternalServerError, err.Error(), w)
+ return
+ }
+ WriteJson(http.StatusBadRequest, objJson, w)
+ return
+}
+
diff --git a/server/service/microservices.go b/server/service/microservices.go
index 211be5c..26cf1bf 100644
--- a/server/service/microservices.go
+++ b/server/service/microservices.go
@@ -184,6 +184,154 @@
}, nil
}
+func (s *ServiceController) DeleteServicePri(ctx context.Context, ServiceId string, force bool) (*pb.Response, error) {
+ tenant := util.ParseTenantProject(ctx)
+
+ service, err := ms.GetServiceByServiceId(ctx, tenant, ServiceId)
+ if err != nil {
+ util.LOGGER.Errorf(err, "delete microservice failed, serviceId is %s: get service failed.", ServiceId)
+ return pb.CreateResponse(pb.Response_FAIL, err.Error()), err
+ }
+
+ if service == nil {
+ util.LOGGER.Errorf(err, "delete microservice failed, serviceId is %s: service not exist.", ServiceId)
+ return pb.CreateResponse(pb.Response_FAIL, "service not exist"), nil
+ }
+
+ util.LOGGER.Infof("start delete service %s", ServiceId)
+
+ // 强制删除,则与该服务相关的信息删除,非强制删除: 如果作为该被依赖(作为provider,提供服务,且不是只存在自依赖)或者存在实例,则不能删除
+ if !force {
+ keyConDependency := apt.GenerateProviderDependencyKey(tenant, ServiceId, "")
+ services, err := dependency.GetDependencies(ctx, keyConDependency, tenant)
+ if err != nil {
+ util.LOGGER.Errorf(err, "delete microservice failed, serviceId is %s:(unforce) inner err, get service dependency failed.", ServiceId)
+ return pb.CreateResponse(pb.Response_FAIL, "Get dependency info failed."), err
+ }
+ if len(services) > 1 || (len(services) == 1 && services[0].ServiceId != ServiceId) {
+ util.LOGGER.Errorf(nil, "delete microservice failed, serviceId is %s:(unforce) can't delete, other services rely it.", ServiceId)
+ return pb.CreateResponse(pb.Response_FAIL, "Can not delete this service, other service rely it."), err
+ }
+
+ instancesKey := apt.GenerateInstanceKey(tenant, ServiceId, "")
+ rsp, err := store.Store().Instance().Search(ctx, ®istry.PluginOp{
+ Action: registry.GET,
+ Key: []byte(instancesKey),
+ WithPrefix: true,
+ CountOnly: true,
+ })
+ if err != nil {
+ util.LOGGER.Errorf(err, "delete microservice failed, serviceId is %s:(unforce) inner err,get instances failed.", ServiceId)
+ return pb.CreateResponse(pb.Response_FAIL, "Get instance failed."), err
+ }
+
+ if rsp.Count > 0 {
+ util.LOGGER.Errorf(nil, "delete microservice failed, serviceId is %s:(unforce) can't delete, exist instance.", ServiceId)
+ return pb.CreateResponse(pb.Response_FAIL, "Can not delete this service, exist instance."), err
+ }
+ }
+
+ consumer := &pb.MicroServiceKey{
+ AppId: service.AppId,
+ ServiceName: service.ServiceName,
+ Version: service.Version,
+ Alias: service.Alias,
+ Tenant: tenant,
+ }
+
+ //refresh msCache consumerCache, ensure that watch can notify consumers when no cache.
+ err = dependency.RefreshDependencyCache(tenant, ServiceId, service)
+ if err != nil {
+ util.LOGGER.Errorf(err, "delete microservice failed, serviceId is %s: inner err, refresh service dependency cache failed.", ServiceId)
+ return pb.CreateResponse(pb.Response_FAIL, "Refresh dependency cache failed."), err
+ }
+
+ opts := []*registry.PluginOp{
+ {
+ Action: registry.DELETE,
+ Key: []byte(apt.GenerateServiceIndexKey(consumer)),
+ },
+ {
+ Action: registry.DELETE,
+ Key: []byte(apt.GenerateServiceAliasKey(consumer)),
+ },
+ {
+ Action: registry.DELETE,
+ Key: []byte(apt.GenerateServiceKey(tenant, ServiceId)),
+ },
+ {
+ Action: registry.DELETE,
+ Key: []byte(strings.Join([]string{
+ apt.GetServiceRuleRootKey(tenant),
+ ServiceId,
+ "",
+ }, "/")),
+ },
+ }
+
+ //删除依赖规则
+ lock, err := mux.Lock(mux.GLOBAL_LOCK)
+ if err != nil {
+ util.LOGGER.Errorf(err, "delete microservice failed, serviceId is %s: inner err, create lock failed.", ServiceId)
+ return pb.CreateResponse(pb.Response_FAIL, err.Error()), err
+ }
+ optsTmp, err := dependency.DeleteDependencyForService(ctx, consumer, ServiceId)
+ lock.Unlock()
+ if err != nil {
+ util.LOGGER.Errorf(err, "delete microservice failed, serviceId is %s: inner err, delete dependency failed.", ServiceId)
+ return pb.CreateResponse(pb.Response_FAIL, err.Error()), err
+ }
+ opts = append(opts, optsTmp...)
+
+ //删除黑白名单
+ rulekey := apt.GenerateServiceRuleKey(tenant, ServiceId, "")
+ opt := ®istry.PluginOp{
+ Action: registry.DELETE,
+ Key: []byte(rulekey),
+ WithPrefix: true,
+ }
+ opts = append(opts, opt)
+ indexKey := apt.GenerateRuleIndexKey(tenant, ServiceId, "", "")
+ opts = append(opts, ®istry.PluginOp{
+ Action: registry.DELETE,
+ Key: []byte(indexKey),
+ })
+ opts = append(opts, opt)
+
+ //删除shemas
+ schemaKey := apt.GenerateServiceSchemaKey(tenant, ServiceId, "")
+ opt = ®istry.PluginOp{
+ Action: registry.DELETE,
+ Key: []byte(schemaKey),
+ WithPrefix: true,
+ }
+ opts = append(opts, opt)
+
+ //删除tags
+ tagsKey := apt.GenerateServiceTagKey(tenant, ServiceId)
+ opt = ®istry.PluginOp{
+ Action: registry.DELETE,
+ Key: []byte(tagsKey),
+ }
+ opts = append(opts, opt)
+
+ //删除实例
+ err = serviceUtil.DeleteServiceAllInstances(ctx, ServiceId)
+ if err != nil {
+ util.LOGGER.Errorf(err, "delete microservice failed, serviceId is %s: delete all instances failed.", ServiceId)
+ return pb.CreateResponse(pb.Response_FAIL, "Delete all instances failed for service."), err
+ }
+
+ _, err = registry.GetRegisterCenter().Txn(ctx, opts)
+ if err != nil {
+ util.LOGGER.Errorf(err, "delete microservice failed, serviceId is %s: commit data into etcd failed.", ServiceId)
+ return pb.CreateResponse(pb.Response_FAIL, "commit operations failed"), nil
+ }
+
+ util.LOGGER.Infof("delete microservice successful: serviceid is %s,operator is %s.", ServiceId, util.GetIPFromContext(ctx))
+ return pb.CreateResponse(pb.Response_SUCCESS, "unregister service successfully"), nil
+}
+
func (s *ServiceController) Delete(ctx context.Context, in *pb.DeleteServiceRequest) (*pb.DeleteServiceResponse, error) {
if in == nil || len(in.ServiceId) == 0 || in.ServiceId == apt.Service.ServiceId {
util.LOGGER.Errorf(nil, "delete microservice failed: service empty.")
@@ -199,176 +347,88 @@
}, nil
}
- force := in.Force
- tenant := util.ParseTenantProject(ctx)
+ resp, err := s.DeleteServicePri(ctx, in.ServiceId,in.Force)
- service, err := ms.GetServiceByServiceId(ctx, tenant, in.ServiceId)
- if err != nil {
- util.LOGGER.Errorf(err, "delete microservice failed, serviceId is %s: get service failed.", in.ServiceId)
- return &pb.DeleteServiceResponse{
- Response: pb.CreateResponse(pb.Response_FAIL, err.Error()),
- }, err
- }
-
- if service == nil {
- util.LOGGER.Errorf(err, "delete microservice failed, serviceId is %s: service not exist.", in.ServiceId)
- return &pb.DeleteServiceResponse{
- Response: pb.CreateResponse(pb.Response_FAIL, "service not exist"),
- }, nil
- }
-
- util.LOGGER.Infof("start delete service %s", in.ServiceId)
-
- // 强制删除,则与该服务相关的信息删除,非强制删除: 如果作为该被依赖(作为provider,提供服务,且不是只存在自依赖)或者存在实例,则不能删除
- if !force {
- keyConDependency := apt.GenerateProviderDependencyKey(tenant, in.ServiceId, "")
- services, err := dependency.GetDependencies(ctx, keyConDependency, tenant)
- if err != nil {
- util.LOGGER.Errorf(err, "delete microservice failed, serviceId is %s:(unforce) inner err, get service dependency failed.", in.ServiceId)
- return &pb.DeleteServiceResponse{
- Response: pb.CreateResponse(pb.Response_FAIL, "Get dependency info failed."),
- }, err
- }
- if len(services) > 1 || (len(services) == 1 && services[0].ServiceId != in.ServiceId) {
- util.LOGGER.Errorf(nil, "delete microservice failed, serviceId is %s:(unforce) can't delete, other services rely it.", in.ServiceId)
- return &pb.DeleteServiceResponse{
- Response: pb.CreateResponse(pb.Response_FAIL, "Can not delete this service, other service rely it."),
- }, err
- }
-
- instancesKey := apt.GenerateInstanceKey(tenant, in.ServiceId, "")
- rsp, err := store.Store().Instance().Search(ctx, ®istry.PluginOp{
- Action: registry.GET,
- Key: []byte(instancesKey),
- WithPrefix: true,
- CountOnly: true,
- })
- if err != nil {
- util.LOGGER.Errorf(err, "delete microservice failed, serviceId is %s:(unforce) inner err,get instances failed.", in.ServiceId)
- return &pb.DeleteServiceResponse{
- Response: pb.CreateResponse(pb.Response_FAIL, "Get instance failed."),
- }, err
- }
-
- if rsp.Count > 0 {
- util.LOGGER.Errorf(nil, "delete microservice failed, serviceId is %s:(unforce) can't delete, exist instance.", in.ServiceId)
- return &pb.DeleteServiceResponse{
- Response: pb.CreateResponse(pb.Response_FAIL, "Can not delete this service, exist instance."),
- }, err
- }
- }
-
- consumer := &pb.MicroServiceKey{
- AppId: service.AppId,
- ServiceName: service.ServiceName,
- Version: service.Version,
- Alias: service.Alias,
- Tenant: tenant,
- }
-
- //refresh msCache consumerCache, ensure that watch can notify consumers when no cache.
- err = dependency.RefreshDependencyCache(tenant, in.ServiceId, service)
- if err != nil {
- util.LOGGER.Errorf(err, "delete microservice failed, serviceId is %s: inner err, refresh service dependency cache failed.", in.ServiceId)
- return &pb.DeleteServiceResponse{
- Response: pb.CreateResponse(pb.Response_FAIL, "Refresh dependency cache failed."),
- }, err
- }
-
- opts := []*registry.PluginOp{
- {
- Action: registry.DELETE,
- Key: []byte(apt.GenerateServiceIndexKey(consumer)),
- },
- {
- Action: registry.DELETE,
- Key: []byte(apt.GenerateServiceAliasKey(consumer)),
- },
- {
- Action: registry.DELETE,
- Key: []byte(apt.GenerateServiceKey(tenant, in.ServiceId)),
- },
- {
- Action: registry.DELETE,
- Key: []byte(strings.Join([]string{
- apt.GetServiceRuleRootKey(tenant),
- in.ServiceId,
- "",
- }, "/")),
- },
- }
-
- //删除依赖规则
- lock, err := mux.Lock(mux.GLOBAL_LOCK)
- if err != nil {
- util.LOGGER.Errorf(err, "delete microservice failed, serviceId is %s: inner err, create lock failed.", in.ServiceId)
- return &pb.DeleteServiceResponse{
- Response: pb.CreateResponse(pb.Response_FAIL, err.Error()),
- }, err
- }
- optsTmp, err := dependency.DeleteDependencyForService(ctx, consumer, in.ServiceId)
- lock.Unlock()
- if err != nil {
- util.LOGGER.Errorf(err, "delete microservice failed, serviceId is %s: inner err, delete dependency failed.", in.ServiceId)
- return &pb.DeleteServiceResponse{
- Response: pb.CreateResponse(pb.Response_FAIL, err.Error()),
- }, err
- }
- opts = append(opts, optsTmp...)
-
- //删除黑白名单
- rulekey := apt.GenerateServiceRuleKey(tenant, in.ServiceId, "")
- opt := ®istry.PluginOp{
- Action: registry.DELETE,
- Key: []byte(rulekey),
- WithPrefix: true,
- }
- opts = append(opts, opt)
- indexKey := apt.GenerateRuleIndexKey(tenant, in.ServiceId, "", "")
- opts = append(opts, ®istry.PluginOp{
- Action: registry.DELETE,
- Key: []byte(indexKey),
- })
- opts = append(opts, opt)
-
- //删除shemas
- schemaKey := apt.GenerateServiceSchemaKey(tenant, in.ServiceId, "")
- opt = ®istry.PluginOp{
- Action: registry.DELETE,
- Key: []byte(schemaKey),
- WithPrefix: true,
- }
- opts = append(opts, opt)
-
- //删除tags
- tagsKey := apt.GenerateServiceTagKey(tenant, in.ServiceId)
- opt = ®istry.PluginOp{
- Action: registry.DELETE,
- Key: []byte(tagsKey),
- }
- opts = append(opts, opt)
-
- //删除实例
- err = serviceUtil.DeleteServiceAllInstances(ctx, in)
- if err != nil {
- util.LOGGER.Errorf(err, "delete microservice failed, serviceId is %s: delete all instances failed.", in.ServiceId)
- return &pb.DeleteServiceResponse{
- Response: pb.CreateResponse(pb.Response_FAIL, "Delete all instances failed for service."),
- }, err
- }
-
- _, err = registry.GetRegisterCenter().Txn(ctx, opts)
- if err != nil {
- util.LOGGER.Errorf(err, "delete microservice failed, serviceId is %s: commit data into etcd failed.", in.ServiceId)
- return &pb.DeleteServiceResponse{
- Response: pb.CreateResponse(pb.Response_FAIL, "commit operations failed"),
- }, nil
- }
-
- util.LOGGER.Infof("delete microservice successful: serviceid is %s,operator is %s.", in.ServiceId, util.GetIPFromContext(ctx))
return &pb.DeleteServiceResponse{
- Response: pb.CreateResponse(pb.Response_SUCCESS, "unregister service successfully"),
- }, nil
+ Response:resp,
+ },err
+}
+
+func (s *ServiceController)DeleteServices(ctx context.Context, request *pb.DelServicesRequest)(*pb.DelServicesResponse, error){
+ // 合法性检查
+ if request == nil || request.ServiceIds == nil || len(request.ServiceIds) == 0 {
+ return &pb.DelServicesResponse{
+ Response: pb.CreateResponse(pb.Response_FAIL, "Invalid request param"),
+ Services:nil,
+ },nil
+ }
+
+ existFlag := map[string]bool{}
+ nuoMultilCount := 0
+ // 批量删除服务
+ serviceRespChan := make(chan *pb.DelServicesRspInfo , len(request.ServiceIds))
+ for _, serviceId := range request.ServiceIds{
+ //ServiceId重复性检查
+ if _ ,ok := existFlag[serviceId]; ok {
+ util.LOGGER.Warnf(nil, "delete microservice %s , multiple.", serviceId)
+ continue
+ } else {
+ existFlag[serviceId] = true
+ nuoMultilCount++
+ }
+
+ serviceRst := &pb.DelServicesRspInfo{
+ ServiceId : serviceId,
+ ErrMessage:"",
+ }
+
+ //检查服务ID合法性
+ in := &pb.DeleteServiceRequest{
+ ServiceId : serviceId,
+ Force : request.Force,
+ }
+ err := apt.Validate(in)
+ if err != nil {
+ util.LOGGER.Errorf(err, "delete microservice failed, serviceId is %s: invalid parameters.", in.ServiceId)
+ serviceRst.ErrMessage = err.Error()
+ serviceRespChan <- serviceRst
+ continue
+ }
+
+ //执行删除服务操作
+ go func(serviceItem string){
+ resp , err := s.DeleteServicePri(ctx, serviceItem, request.Force)
+ if err != nil {
+ serviceRst.ErrMessage = err.Error()
+ }else if resp.Code != pb.Response_SUCCESS{
+ serviceRst.ErrMessage = resp.Message
+ }
+
+ serviceRespChan <- serviceRst
+ }(serviceId)
+ }
+
+ //获取批量删除服务的结果
+ count := 0
+ responseCode := pb.Response_SUCCESS
+ delServiceRspInfo := []*pb.DelServicesRspInfo{}
+ for serviceRespItem := range serviceRespChan{
+ count++
+ if len(serviceRespItem.ErrMessage) != 0{
+ responseCode = pb.Response_FAIL
+ }
+ delServiceRspInfo = append(delServiceRspInfo, serviceRespItem)
+ //结果收集over,关闭通道
+ if count == nuoMultilCount{
+ close(serviceRespChan)
+ }
+ }
+
+ util.LOGGER.Infof("Batch DeleteServices servicid = %v , result = %d, ", request.ServiceIds, responseCode)
+ return &pb.DelServicesResponse{
+ Response: pb.CreateResponse(responseCode, "Delservices"),
+ Services: delServiceRspInfo,
+ },nil
}
func (s *ServiceController) GetOne(ctx context.Context, in *pb.GetServiceRequest) (*pb.GetServiceResponse, error) {
diff --git a/server/service/microservices_test.go b/server/service/microservices_test.go
index 4a10e28..efa8453 100644
--- a/server/service/microservices_test.go
+++ b/server/service/microservices_test.go
@@ -670,4 +670,158 @@
})
})
})
+
+ Describe("DeleteServices", func() {
+ Context("normal", func() {
+ var serviceId3 string
+ var serviceId4 string
+ var serviceId5 string
+ var serviceId6 string
+ var instanceId6 string
+ // 创建服务4,服务5,服务6,其中服务6创建了实例关系
+ It("批量删除服务,创建依赖的服务4", func() {
+ resp, err := serviceResource.Create(getContext(), &pb.CreateServiceRequest{
+ Service: &pb.MicroService{
+ ServiceName: "test-services-03",
+ Alias: "ts_03",
+ AppId: "default_03",
+ Version: "1.0.0",
+ Level: "FRONT",
+ Schemas: []string{
+ "xxxxxxxxxx",
+ },
+ Status: "UP",
+ },
+ })
+ Expect(err).To(BeNil())
+ serviceId3 = resp.ServiceId
+ fmt.Println("UT=========ServiceId" + serviceId3)
+ Expect(resp.GetResponse().Code).To(Equal(pb.Response_SUCCESS))
+ })
+
+ It("批量删除服务,创建依赖的服务4", func() {
+ resp, err := serviceResource.Create(getContext(), &pb.CreateServiceRequest{
+ Service: &pb.MicroService{
+ ServiceName: "test-services-04",
+ Alias: "ts_04",
+ AppId: "default_04",
+ Version: "1.0.0",
+ Level: "FRONT",
+ Schemas: []string{
+ "xxxxxxxxxx",
+ },
+ Status: "UP",
+ },
+ })
+ Expect(err).To(BeNil())
+ serviceId4 = resp.ServiceId
+ fmt.Println("UT=========ServiceId" + serviceId4)
+ Expect(resp.GetResponse().Code).To(Equal(pb.Response_SUCCESS))
+ })
+ It("批量删除服务,创建依赖的服务5", func() {
+ resp, err := serviceResource.Create(getContext(), &pb.CreateServiceRequest{
+ Service: &pb.MicroService{
+ ServiceName: "test-services-05",
+ Alias: "ts_05",
+ AppId: "default_05",
+ Version: "1.0.0",
+ Level: "FRONT",
+ Schemas: []string{
+ "xxxxxxxx11",
+ },
+ Status: "UP",
+ },
+ })
+ Expect(err).To(BeNil())
+ serviceId5 = resp.ServiceId
+ fmt.Println("UT=========ServiceId5 " + serviceId5)
+ fmt.Printf("TEST CREATE service %d", resp.GetResponse().Code)
+ Expect(resp.GetResponse().Code).To(Equal(pb.Response_SUCCESS))
+ })
+ It("批量删除服务,创建依赖的服务6", func() {
+ resp, err := serviceResource.Create(getContext(), &pb.CreateServiceRequest{
+ Service: &pb.MicroService{
+ ServiceName: "test-services-06",
+ Alias: "ts_06",
+ AppId: "default_06",
+ Version: "1.0.0",
+ Level: "FRONT",
+ Schemas: []string{
+ "xxxxxxxxxxxxx",
+ },
+ Status: "UP",
+ },
+ })
+ Expect(err).To(BeNil())
+ serviceId6 = resp.ServiceId
+ fmt.Println("UT=========ServiceId" + serviceId6)
+ Expect(resp.GetResponse().Code).To(Equal(pb.Response_SUCCESS))
+ })
+
+ It("批量删除服务,创建依赖的服务6", func() {
+ respReg, err := insResource.Register(getContext(), &pb.RegisterInstanceRequest{
+ Instance: &pb.MicroServiceInstance{
+ ServiceId: serviceId6,
+ Endpoints: []string{
+ "rest:127.0.0.1:8081",
+ },
+ HostName: "UT-HOST",
+ Status: pb.MSI_UP,
+ Stage: "prod",
+ },
+ })
+ instanceId6 = respReg.InstanceId
+ Expect(err).To(BeNil())
+ fmt.Println("UT============" + respReg.GetResponse().Message)
+ Expect(respReg.GetResponse().Code).To(Equal(pb.Response_SUCCESS))
+ })
+
+ It("批量删除服务3和服务4", func() {
+ resp, err := serviceResource.DeleteServices(getContext(), &pb.DelServicesRequest{
+ ServiceIds: []string{serviceId3,serviceId4},
+ Force: false ,
+ },
+ )
+ Expect(err).To(BeNil())
+ fmt.Println("UT============" + resp.GetResponse().Message)
+ Expect(resp.GetResponse().Code).To(Equal(pb.Response_SUCCESS))
+ })
+
+ It("批量删除服务5和服务6", func() {
+ resp, err := serviceResource.DeleteServices(getContext(), &pb.DelServicesRequest{
+ ServiceIds: []string{serviceId5,serviceId6},
+ Force: false ,
+ },
+ )
+ Expect(err).To(BeNil())
+ //期待结果失败
+ fmt.Println("UT============" + resp.GetResponse().Message)
+ Expect(resp.GetResponse().Code).To(Equal(pb.Response_FAIL))
+ })
+
+ It("删除服务6的实例,删除服务5和服务6", func() {
+
+ respReg, err := insResource.Unregister(getContext(), &pb.UnregisterInstanceRequest{
+ ServiceId: serviceId6,
+ InstanceId:instanceId6,
+ })
+
+ Expect(err).To(BeNil())
+ Expect(respReg.GetResponse().Code).To(Equal(pb.Response_SUCCESS))
+
+ resp, err := serviceResource.DeleteServices(getContext(), &pb.DelServicesRequest{
+ ServiceIds: []string{serviceId6},
+ Force: false ,
+ },
+ )
+ Expect(err).To(BeNil())
+ //期待结果失败
+ fmt.Println("UT============" + resp.GetResponse().Message)
+ Expect(resp.GetResponse().Code).To(Equal(pb.Response_SUCCESS))
+ })
+
+
+
+ })
+ })
})
diff --git a/server/service/util/instance_util.go b/server/service/util/instance_util.go
index 3c6c439..43452d7 100644
--- a/server/service/util/instance_util.go
+++ b/server/service/util/instance_util.go
@@ -136,10 +136,10 @@
return false
}
-func DeleteServiceAllInstances(ctx context.Context, in *pb.DeleteServiceRequest) error {
+func DeleteServiceAllInstances(ctx context.Context, ServiceId string) error {
tenant := util.ParseTenantProject(ctx)
- instanceLeaseKey := apt.GenerateInstanceLeaseKey(tenant, in.ServiceId, "")
+ instanceLeaseKey := apt.GenerateInstanceLeaseKey(tenant, ServiceId, "")
resp, err := store.Store().Lease().Search(ctx, ®istry.PluginOp{
Action: registry.GET,
Key: []byte(instanceLeaseKey),