Unable to Untag the process for particular environment.
search cancel

Unable to Untag the process for particular environment.

book

Article ID: 9233

calendar_today

Updated On:

Products

CA Release Automation - Release Operations Center (Nolio) CA Release Automation - DataManagement Server (Nolio)

Issue/Introduction

While in the ROC -> Environments and Tags, trying to un-assign a tagged process from an environment generates the following error:

Server Error Unexpected error on server [Cannot un-assign process. It's being used in Templates and Releases that didn't finish yet.]. Please refer to server logs with timestamp [<timestamp>].

 

Or, while in ASAP -> Environments -> Assigned Processes, trying to un-assign a tagged process from an environment produces the following error: 

Can not un-assign this process.
Cannot un-assign process. It's being used in Templates and Releases that didn't finish yet. 

Environment

Release Automation 6.x

Cause

The tagged process is being used in a deployment/release. Or, the tagged process is being used in a Deployment Template.

Resolution

Tags Used In Deployments

Follow these steps to identify where the tagged process is being used. 

  1. Login to the ROC (Release Operations Center) UI.
  2. Go to Releases -> Deployments
  3. Select the appropriate application and environment.
  4. If there are two many deployments listed here and you cannot find a Running or Pending deployment then use the Filters to only show: Running or Pending.

 

If a deployment is actively running then you will need to either let it finish or stop it before you can un-assign that tag. If the deployment is Pending and you cannot stop/remove the deployment then you can use this procedure to stop and delete the job. 

 

  1. From the Deployments page, open the details for the deployment that is Pending.
  2. In the URL there is a number after "/main/deployments/". Take note of that number. 
  3. Navigate to JMX (http://<NAC hostname>:20203).
  4. Login with username/password nolio/nolio.
  5. Scroll down to the section "Domain: releasecenter".
  6. Select "releasecenter:type=Info".
  7. In the field to the right of "removeRelease", enter the ID of the pending deployment.
  8. Click the "Invoke" button on the same row (for "removeRelease").

 

Tags Used In Deployment Templates

If you need to change a tag used by a step assigned to a Deployment Template Phase, there are two options:

  1. Click on the Step using the old tag. This will bring you into the details for that step where you can see the Server Types, Environment/Release Parameters, etc..
  2. In the upper left corner of this page there is a Pencil icon next to the Step/Process Name. Click the Pencil icon button. 
  3. In the Edit window you will see a drop down menu with a list of available tags that can be used. 
  4. Select the desired tag so that you can release uses of the tag you would like to unassign. 
  5. Click Save