When permissive traffic policy mode is not working as expected

1. Confirm Permissive traffic policy mode is enabled

Confirm permissive traffic policy mode is enabled by verifying the value for the permissive_traffic_policy_mode key in the osm-config ConfigMap. osm-config ConfigMap resides in the namespace OSM control plane namespace, osm-system by default.

# Returns true if permissive traffic policy mode is enabled
$ kubectl get configmap -n osm-system osm-config -o jsonpath='{.data.permissive_traffic_policy_mode}{"\n"}'

The above command must return a boolean string (true or false) indicating if permissive traffic policy mode is enabled.

2. Inspect OSM controller logs for errors

# When osm-controller is deployed in the osm-system namespace
kubectl logs -n osm-system $(kubectl get pod -n osm-system -l app=osm-controller -o jsonpath='{.items[0].metadata.name}')

Errors will be logged with the level key in the log message set to error:


3. Confirm the Envoy configuration

Confirm the Envoy proxy configuration on the client and server pods are allowing the client to access the server. Refer to the sample configurations to verify that the client has valid routes programmed to access the server.

When the setting needs to be persisted across upgrades

While the osm-config ConfigMap can be directly updated using the kubectl patch command, to persist configuration changes across upgrades, it is recommended to always use osm mesh upgrade CLI command to update the mesh configuration.

Refer to the configuring permissive traffic policy mode section to enable or disable permissive traffic policy mode.