wso2 / api-manager

All issues, tasks, improvements and new features of WSO2 API Manager
Apache License 2.0
34 stars 8 forks source link

Enable failover config when importing api via apictl tool #1859

Closed SiluniPathirana closed 9 months ago

SiluniPathirana commented 1 year ago

Description

When importing the API using apictl tool even though we defined "failOver: true" in the params.yaml , we could observe that the load-balanced configs specified in the params.yaml are not reflected in the publisher portal.

Steps to Reproduce

  1. Tried to import an API using apictl tool version "Version: 4.1.0 Build Date: 2022-04-05" 05:22:20 UTC." in the latest APIM 4.1.0 update level 187 by following the below steps.

  2. To enable the "Enable Failover" config in the endpoint configuration, I have defined "failOver: true" in the params.yaml as follows. environments:

    • name: dev3 configs: endpointType: rest endpointRoutingPolicy: load_balanced failOver: true loadBalanceEndpoints: production:
  3. Imported the API using the following command. ./apictl import api -f PetstoreProject --environment dev --params params.yaml.

  4. Then when we checked the load-balanced configs of the imported API, from the publisher portal. we could observe that the load-balanced configs specified in the params.yaml are reflected in the publisher portal as follows but the "Enable Failover" config is not selected.

image

Affected Component

APIM

Version

4.1.0

Environment Details (with versions)

No response

Relevant Log Output

No response

Related Issues

No response

Suggested Labels

No response

YasasRangika commented 9 months ago

closing as the master fix: https://github.com/wso2/carbon-apimgt/pull/12041 has already been merged.