Changing Port Range in Global Settings for On-Demand Plans cause error "external port xxxx assigned to router group yyyy is outside the new port range"
search cancel

Changing Port Range in Global Settings for On-Demand Plans cause error "external port xxxx assigned to router group yyyy is outside the new port range"

book

Article ID: 293236

calendar_today

Updated On:

Products

VMware RabbitMQ

Issue/Introduction

You may need to change the port range in Global Settings for On-Demand Plans, and if that port range is outside ports already assigned to existing service instances using service-gateway, the upgrades for the service instances will fail in Upgrade All Service Instances errand with error similar to the following.

[upgrade-all-service-instances] 2024/01/16 11:06:59.665816 operation type: upgrade failed for service instance f78a0d9d-6c9a-4297-be83-d0847d200c59: unexpected status code: 500. description: failed to create router groups: external port 1224 assigned to router group RMQ-service-instance_f78a0d9d-6c9a-4297-be83-d0847d200c59-AMQP is outside the new port range [1075-1125] 

 

. This is expected as described in docs

Caution
If you already have service instances using service-gateway, any modifications to this range must include ports that are already assigned to these service instances. If the port range does not contain the ports already assigned to service instances, the upgrades for the service instances fail. For example, if service-gateway access has the port range 1000-1005, and there are service instances that correspond to ports 10001001, and 1002, then the new port range must have ports 10001001, and 1002.


Environment

Product Version: 2.1

Resolution

The solution would be the following.
  1. Disable Service Gateway Access in all RabbitMQ on-demand plans that have it enabled.
  2. Deploy the VMware RabbitMQ for Tanzu Application Service Tile with Upgrade All Service Instances errand on.
  3. Reenable Service Gateway Access in the on-demand plan that had it enabled previously.
  4. Deploy the the VMware RabbitMQ for Tanzu Application Service Tile Upgrade All Service Instances errand on.
This time, the instances external port should be within the port range configured in Global Settings for On-Demand Plans