AE-2036: After upgrade of AMP Enable prompt not coming

Review Request #994 — Created July 28, 2025 and submitted

ngurunathan
AMP
amp_3_7_1
AE-2036
apoorva.sn, mmiriam, pmurugaiyan

Made sure that successful or failed execution of avxapps_startup.sh script doesnt affect execution of backend service. Added logs for avxapps_startup service. As standardoutput flag doesnt support filepath in centos 7, just redirected to syslog with specified identifier.
Added restart on fail for backend.service. On detecting failure, it can restart once. Currently it cant restart more than once as the main process pid isnt tracked by systemd.

Tested locally

systemctl status startup
● startup.service - Array Management Platform Console Daemon
Loaded: loaded (/usr/lib/systemd/system/startup.service; enabled; vendor preset: disabled)
Active: inactive (dead) since Mon 2025-07-28 23:00:53 CST; 14min ago
Process: 2395 ExecStart=/bin/bash -c /ca/bin/backend >> /var/log/avxapps_startup.log 2>&1 (code=exited, status=0/SUCCESS)
Main PID: 2395 (code=exited, status=0/SUCCESS)

Description From Last Updated

Can we add the logs as well? Ref - init/backend.service

pmurugaiyanpmurugaiyan
pmurugaiyan
  1. 
      
  2. branches/amp_3_7_1/init/backend.service (Diff revision 1)
     
     

    Can we add the logs as well? Ref - init/backend.service

    1. Tried StandardOutput=file:/var/log/array-backend.log . This doesnt seem to work with centos 7, systemd 219. Tried redirecting to a logfile in ExecStart: /bin/bash -c '/ca/bin/backend >> /var/log/backend.log' . With this, systemd couldnt track the exact pid of backend process. So just added an syslog identifier so that we can filter the logs from /var/log/messages .
      We can also use standard output: journal and manually create /var/log/journal. Journal logs will get persisted under /var/log/journal/backend, but I wasn't sure how many services will get affected with this.

    2. Sure Nandita

  3. 
      
pmurugaiyan
  1. Ship It!
  2. 
      
mmiriam
  1. Ship It!
  2. 
      
ngurunathan
apoorva.sn
  1. if possible please add a script to start the backend service if it is not up. We can ask the customer to execute this script if the enable prompt is not coming.

    1. Sure, will raise a separate review request for this

  2. 
      
ngurunathan
Review request changed

Status: Closed (submitted)

Loading...