Unable to 'pull request' from Github Enterprise cloud (github.com) as Source Control in Aria Suite Lifecycle Manager
search cancel

Unable to 'pull request' from Github Enterprise cloud (github.com) as Source Control in Aria Suite Lifecycle Manager

book

Article ID: 384130

calendar_today

Updated On: 02-04-2025

Products

VMware Aria Suite

Issue/Introduction

In Aria Suite Lifecycle Manager we are unable to 'pull request' from Github Enterprise cloud (github.com) as Source Control. It fails with error:

2024-12-18 19:35:19.838 ERROR <FQDN> --- [ContentAsync-25] c.v.b.s.g.GitHubServiceImpl [pullRequest] : Client Exception : response body - {"message":"Validation Failed","errors":[{"resource":"PullRequest","code":"custom","message":"A pull request already exists for ####-innersource:vLCM_Content_Req_6295_UUID."}],"documentation_url":"https://docs.github.com/rest/pulls/pulls#create-a-pull-request","status":"422"}
2024-12-18 19:35:19.838 ERROR <FQDN> --- [ContentAsync-25] c.v.b.s.g.GitHubServiceImpl [pullRequest] : Client Exception : response status - 422 UNPROCESSABLE_ENTITY
2024-12-18 19:35:19.838 ERROR <FQDN> --- [ContentAsync-25] c.v.b.s.g.GitHubServiceImpl [pullRequest] : Failed to create merge request on github branch with name [vLCM_Content_Req_6295_UUID_1] org.springframework.web.client.HttpClientErrorException$UnprocessableEntity: 422 Unprocessable Entity
at org.springframework.web.client.HttpClientErrorException.create(HttpClientErrorException.java:99)
at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:122)
at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:102)

Environment

Aria Suite Lifecycle Manager 8.12 and later.

Cause

The response for the pull request creation includes an id value that exceeds the size limit of a Java integer.

In LCM, we have a REST client configured to retry API calls in case of failures. Due to the oversized id value, an exception is triggered, leading the REST client to repeatedly attempt creating the pull request, which is causing the issue.

 

Resolution

The fix will be available in the release 8.18 Patch-2.

To resolve the issue, please replace the Jar file with the one provided in this KB.

Replace the jar file:

Steps to apply the jar :

  1. Take a snapshot of the LCM Appliance.
  2. Replace the existing jar file in the below location with the jar file attached to this KB.

    # /opt/vmware/vlcm/blackstone/spring-common

  3. Restart the service with the command "systemctl restart blackstone-spring"
  4. Try to add the endpoint again.

 

The above steps should enable us to add Github Enterprise cloud (github.com) as Source Control in Aria Suite Lifecycle Manager.

Attachments

blackstone-external-8.18.0.jar get_app