Applying a deployment package
A deployment package contains data, object definitions, and binary files. You can deploy a package in your environment using the AR System Deployment Management Console that provides a single method to promote data and definitions effectively and reliably across all servers in a server group. A user with AR System administrator permission or a Package Deployer role can deploy the package.
Package deployment workflow
The following graphic displays the workflow of package deployment process:
Before you begin
Ensure the following requirements are met before you deploy the package:
- You cannot import a package to apply a patch or hotfix on your system if you have Remedy Encryption Security installed.
If your base system has Remedy Encryption Security installed, disable the Remedy Encryption Security before importing or deploying a package. You can enable the Remedy Encryption Security again after deploying a package. - All servers in the server group have the platform (AR Server, CMDB, and Atrium Integrator Server) upgraded to version 18.08.
- All applications (ITSM, SRM, and SLM) on the servers in the server group are upgraded to version 18.05.
For more information, see Upgrading-the-applications. BMC recommends that the Preload action should be disabled. See About Mid Tier caching
However, if the Preload action is enabled, you must disable the Preload action on the mid tier servers that point to the server where you plan to deploy the package. Disable the Preload action from the Cache Settings page in the Mid Tier Configuration Tool.
See Cache setting parametersin the BMC Remedy AR System online documentation. You need not enable the Preload action after deployment.The minimum plug-in heap size required is 1024 MB for a package of size 250 MB or 300 MB.
If the heap size is less than 1024 MB, increase the heap size on all the servers in the server group. If you have multiple plug-in servers, update the heap size on the plug-in server where the AR Migrate plug-in is deployed.To update the heap size, open the armonitor.conf file and update the -Xmx value and restart the plug-in server. For example:"%BMC_JAVA_HOME%\java" -Xmx1024m "C:\BMCData\ARSystem\pluginsvr;C:\BMCData\ARSystem\pluginsvr\arpluginsvr91_build005.jar;
C:\BMCData\ARSystem\arserver\api\lib\arcmnapp91_build005.jar" com.bmc.arsys.pluginsvr.ARPluginServerMain
-x localhost -i "C:\BMCData\ARSystem" -m
As a best practice, ensure that the plug-in heap size is 3 times more than the deployment package size to avoid package import errors.
Check the ranking order for the components. As a best practice, BMC recommends providing rank 1 for admin server, rank 2 for integration server, and last ranks for the user-facing servers. Higher the ranking, higher is the preference given for deploying payloads on that server.
For more information, see Setting the component ranking order before deploying a binary payload in the Remedy AR System online documentation.- (Optional) If you have customizations, create a snapshot for reconciliation. Capture a snapshot of your application objects. For instructions, see Capturing-a-snapshot-of-server-application-objects.
Applying the package in your environment
A user with AR System administrator permission or a Package Deployer role can deploy the package by performing the following steps:
To download the package from the EPD site
See Downloading-the-installation-files.
To import the package
- Log in to Mid Tier as an administrator or a package deployer user by using the following URL:
http://<midTierServerName>:<port number>/arsys - From the IT Home page, select Applications > AR System Administration > AR System Deployment Management Console.
- In the Deployment Management Console, perform the following actions:
- Select Transfer Package > Import.
- In the Add Attachment dialog box, click Browse to navigate to the folder that has the 18.08 downloaded EPD package (ITSM, SRM, or SLM).
Select the package that you want to import, and then click OK.
The package status column shows the status as Importing until the package contents are completely imported. If the status shows Importing for more than 10 seconds, click Refresh to view the updated status.When the package is imported, the entry of the package is displayed in the AR System Deployment Management Console and the package status changes to Ready to Deploy.
- Select Transfer Package > Import.
To deploy the package
To upgrade the applications to version 18.08, deploy the packages in the following sequence:
- Remedy ITSM Suite
- BMC Service Request Management
- BMC Service Level Management
The AR System administrator or a Package Deployer performs the following steps to deploy the package in an environment:
- Log in to Mid Tier as an administrator or a package deployer user by using the following URL:
http://<midTierServerName>:<port number>/arsys/ - From the IT Home page, select Applications > AR System Administration > AR System Deployment Management Console.
- In the Deployment Management Console, perform the following actions:
- Select the package row that you have imported, and then select Operations > Deploy.
The following message is displayed if the package contains binaries:
This package includes files to be deployed/rollback. You can monitor the status of the file deployment/rollback by opening the package, selecting the item for file deployment and clicking on the "View Payload Status" button. (ARNOTE 10000)
- Select the package row that you have imported, and then select Operations > Deploy.
- In the message window, click OK.
- To view the package status, click Refresh.
When the package is successfully deployed, the status of the package changes to Deployed. - If your package contains binary files, to view the deployment status, perform the following actions:
- Select the deployed package entry, and then select Manage Package > View.
The AR System Deployment Management form opens. - Select Deployment Payload from the table next to the Deployment Package Contents panel.
- Click View Payload Status.
The AR System Single Point Deployment Status window opens displaying the list of server names in the Host Name column and the package deployment status in the Host Status column. - If a server's package deployment status shows the Waiting for Utility Run status, connect to the server and run the payload deployment utility. This utility needs to be run on all the servers that has Waiting for Utility Run status.
- Select the deployed package entry, and then select Manage Package > View.
To run the payload deployment utility
- On the server, set JAVA_HOME to point to the JRE top level folder.
Run the arpayloaddeploymentutil.bat (Windows) or arpayloaddeploymentutil.sh (UNIX) utility from the following location:
- (Windows): <installDirectory>\Program Files\BMC Software\ARSystem
- (UNIX): <installDirectory>/ARSystem/bin
- Repeat steps a and b on servers where the deployment status shows Waiting for Utility Run.
After you run the utility, the package for BMC Remedy IT Service Management is successfully applied to your environment.
Rolling back a package
If an issue occurs during the validation of the package, or if an error occurs while deploying the package, you can restore the objects on your server to the pre-deployment state.
Roll back the packages in the following sequence:
- BMC Service Level Management
- BMC Service Request Management
- Remedy ITSM Suite
To roll back a package
The AR System administrator or a Package Deployer performs the following steps to roll back a package:
- Log in to Mid Tier using the following URL:
http://<midTierServer>:<port number>/arsys/ - From the IT Home page, select Applications > AR System Administration > AR System Deployment Management Console.
- In the Deployment Management Console, perform the following actions:
- Select the package that has Deployed with Error status.
- Select Operations > Rollback.
- In the confirmation dialog box that is displayed, click Yes.
- (Optional) Click Refresh.
The State of the package changes from Rolling back to Rolled back.
If a package contains binary files, the state of the package is shown as Pending Rollback. - To view the payload deployment status for a package containing binary files, perform the following steps:
- Select the deployed package entry and click Manage Package > View.
The AR System Deployment Management form opens. - Select Deployment Payload from the table next to the Deployment Package Contents panel.
- The Deployment Payload status is shown as Rollback Pending.
- Click the View Payload Status button.
A table that shows the status of the package on all the servers in a server group is displayed.
- Select the deployed package entry and click Manage Package > View.
- Connect to the server that has the Wait for Utility Run status and run the payload utility.
- Repeat steps from i to v on all the servers of a server group from where you want to roll back the package.
After the payload utility is run, the package starts rolling back. You can view the package status on the main AR System Deployment Management Console. If the state changes to Rolled Back, it means that the package rollback is successful.
- Repeat steps from i to v on all the servers of a server group from where you want to roll back the package.
BMC_DEPLOYMENT_PACKAGES folder
The BMC_DEPLOYMENT_PACKAGES folder is automatically created on the target server when a package deployment or rollback operation is triggered from the AR System Deployment Management console. The folder is created at the following location:
<Install directory> \BMC Software\ARSystem\Arserver\Db\BMC_DEPLOYMENT_PACKAGES
This folder is a temporary working directory. You can safely delete this folder or the contents of this folder after successful package deployment or rollback on all the servers. Do NOT delete this folder or the contents of this folder when the package deployment or rollback is in progress.
Viewing the package deployment logs
You can check the following log files to view the package deployment status or any related errors. For more information, see Troubleshooting-package-deployment-issues.
Component | Location |
---|---|
| To check the payload deployment status, see the following log file:
To check the server version after deploying the package and payload logs, see the following log files:
|
Post deployment tasks
If you have customized any out-of-the-box objects, you need to reconcile the customizations. Use three-way reconciliation in Developer Studio to reconcile the objects if overlays exist for any of the objects that were updated. For more information, see Reconciling Workflow Objects in BMC Remedy AR System online documentation.
Clear plug-ins cache from the Cache Settings page in the Mid Tier Configuration Tool.
See Cache setting parametersin the BMC Remedy AR System online documentation.- (Optional) If needed, you may reset the heap size to its previous value and restart the plug-in server.
Related topics
Troubleshooting-package-deployment-issues
Creating and deploying a binary payloadin BMC Remedy AR System online documentation.
Creating and deploying a packagein BMC Remedy AR System online documentation.