Custom wrapper.conf on agents are overwritten during agent upgrade
search cancel

Custom wrapper.conf on agents are overwritten during agent upgrade

book

Article ID: 215938

calendar_today

Updated On:

Products

CA Release Automation - Release Operations Center (Nolio)

Issue/Introduction

We have configured wrapper.conf file with the settings outlined below. However, when we upgrade the Agent from UI, our custom settings are being overwritten back to its default values. Is there a way we can avoid this overwriting as part of Agent Upgrade process?

 

Default entries in the wrapper.conf:

wrapper.port=32001

wrapper.port.min=32002

wrapper.port.max=32999

 

Our custom entries:

wrapper.port=32800

#wrapper.port.min=32002

#wrapper.port.max=32999

wrapper.jvm.port.min=32801

wrapper.jvm.port.max= 32899

 

 

Environment

Release : 6.7

Component : CA RELEASE AUTOMATION CORE

 

Resolution

There is no way for the upgrade to bypass overwriting the file. The solution is to make sure that the file it does overwrite it with has the desired settings.

  • Login to the mgmt server and open a command prompt.
  • cd to the folder: NAC_HOME/upgradeAgent/-1975/-1975/upgradeData/upgradeFiles/conf
  • copy the wrapper.conf.template file: cp wrapper.conf.template wrapper.conf.template.orig
  • edit the wrapper.conf.template file to include the settings you desire.
  • upgrade the agent via ROC -> Agent Management -> select an agent -> Upgrade -> deselect the "Use new upgrade procedure for Linux agents" option.