Issue with Update of Virtual service using V3 API
search cancel

Issue with Update of Virtual service using V3 API

book

Article ID: 200606

calendar_today

Updated On:

Products

CA Cloud Test Mobile CA Application Test

Issue/Introduction

Working on a use case to insert new RR pairs (new transactions) to the existing virtual service image using V3 api (/lisa-virtualize-invoke/api/v3/vses/) which was originally created using DevTest workstation getting the below error:


 msg:: {"error":"Virtual Service failed to be deployed, already deployed?"}
 createVseEndpoint call failed !!! HTTP status code: HTTP/1.1 500 Server Error

Steps followed.
1. Created a simple http stub using json R-R pair in DevTest workstation
2. Deployed it directly from DevTest workstation. It is working successfully.
3. Add new RR pairs (new transactions) to the same virtual service using V3 api. It is throwing the reported error.

 

Environment

Release : 10.5

Component : CA Service Virtualization

Cause

Changing of the VS name when deploying VS could be the cause of the issue.

Resolution

Support recommend the below to resolve the issue.
. When create a VS make sure VSM is created or placed in the Project/VirtualServices folder, VSI is in Project/VirtualServices/Images folder and VTS file is in Project/Data folder.
. Make sure VSM/VSI/VTS file names are same. For example, Test.vsm/Test.vsi/Test.vts.
. When deployed the VS, don't change the name. For example, leave the VS name as Test for Test.vsm.
 

Additional Information

Discussed this issue in broadcom community at https://community.broadcom.com/enterprisesoftware/communities/community-home/digestviewer/viewthread?GroupId=1843&MessageKey=fdb180f2-fc37-47e6-8d0c-d5274a7e6595&CommunityKey=94bda077-625b-4914-8ac3-c88a06c2cc23&tab=digestviewer&ReturnUrl=%2fenterprisesoftware%2fcommunities%2fcommunity-home%2fdigestviewer%3fcommunitykey%3d94bda077-625b-4914-8ac3-c88a06c2cc23%26tab%3ddigestviewer%26SuccessMsg%3dThank%2byou%2bfor%2bsubmitting%2byour%2bmessage.&SuccessMsg=Thank%20you%20for%20submitting%20your%20message.

Service Virtualization API v3: https://techdocs.broadcom.com/us/en/ca-enterprise-software/devops/devtest-solutions/10-5/using/using-the-apis/service-virtualization-api-v3.html#concept.dita_14d09617429fb8fc9c3abbbdc71919ab63171848_UpdateaVirtualService