-
Bug
-
Resolution: Done
-
Blocker
-
OSSM 2.3.0
-
False
-
None
-
False
-
Release Notes
-
Release Notes
-
In Progress
-
-
Bug description:
Service Mesh operator is deleting a ServiceMeshMemberRoll (smmr) when a ServiceMeshMember (smm) is removed manually. This an unexpected behaviour because there are more ServiceMeshMember objects created.
Bug reproducer:
- Initially there's no SMMR and SMM created, only a SMCP.
Â
#Â oc get smcp,smm,smmr -A
NAMESPACE    NAME     READY  STATUS       PROFILES    VERSION  AGEistio-system  servicemeshcontrolplane.maistra.io/basic  9/9   ComponentsReady  ["default"]  2.3.0   29m
Â
- Creating 2 SMMs (files attached)
Â
#Â oc apply -f smm01.yamlÂ
#Â oc apply -f smm02.yaml
NOTE: SMM can not be created with a name different of "default" because the Operator got an error like this
Error from server: error when creating "smmr01.yaml": admission webhook "smm.validation.maistra.io" denied the request: the ServiceMeshMember resource must be named "default"
// verify name == default
  if common.MemberName != smm.Name
Unknown macro: { Â Â Â Â return admission.Errored(http.StatusBadRequest, fmt.Errorf("the ServiceMeshMember resource must be named %q", common.MemberName)) Â Â }
Â
- Check the current status in order to verify SMM and SMMR have been created sucessfully:
Â
Â
#Â oc get smm,smmr -A
NAMESPACE Â Â Â Â Â Â NAME Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â CONTROL PLANE Â Â Â Â READY Â AGE
bookinfo       servicemeshmember.maistra.io/default  istio-system/basic  True   16s
my-awesome-project  servicemeshmember.maistra.io/default  istio-system/basic  True   12sNAMESPACE    NAME                    READY  STATUS    AGE
istio-system  servicemeshmemberroll.maistra.io/default  2/2   Configured  16s
Â
- Deleting one of the SMM created previously
Â
#Â oc delete smm default -n bookinfo
servicemeshmember.maistra.io "default" deleted
Â
- Verify that SMMR has been deleted, remains the second SMM
Â
#Â oc get smm,smmr -A
NAMESPACE Â Â Â Â Â Â NAME Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â CONTROL PLANE Â Â Â Â READY Â AGE
my-awesome-project  servicemeshmember.maistra.io/default  istio-system/basic  True   5m10s
Â
Once SMMR is deleted, the dataplane stops working.
Behaviour tested in OSSM 2.1, OSSM 2.2 and OSSM 2.3. As a workaround, it does not happen if the SMMR is created manually before creating SMM