Bug 156 - Option to attach extra disk for Log folder in AMP

Review Request #284 — Created June 12, 2024 and submitted — Latest diff uploaded

apoorva.sn
AMP
AMP_3_6_0
156
pmurugaiyan, prajesh, shuinvy

Problem

Customer wants to attach extra disk for the log folder and want option to store the logs in the disk from UI

Solution

This is the Rest API part giving option to user to save logs in extra disk
1. is_external_drive_available endpoint returns if an external disk is available for storage
2. save_logs endpoint accepts input from user if the logs must be stored in external or internal drive
For 'external' the logs are stored in '/external/elasticsearch' location and for 'internal' in '/var/log/elasticsearch'.
For the external drive attached a partition must be created and mounted in the AMP using Wiki: https://arraynetworks.atlassian.net/wiki/spaces/AMP/pages/2263941177/Create+a+new+partition+on+Centos

Tested the above 2 API's in AMP and follwing is the response for both:
1. is_external_drive_available
{"is_external_drive_available": true}

  1. save_logs
    {"status": "success"}
    for external option the logs will be stored in '/external/elasticsearch' location
    for internal in '/var/log/elasticsearch'
    Loading...