-
Notifications
You must be signed in to change notification settings - Fork 85
EOS-24098: Configure log directory #491
EOS-24098: Configure log directory #491
Conversation
Signed-off-by: Selvakumar <[email protected]>
Signed-off-by: Selvakumar <[email protected]>
Signed-off-by: Selvakumar <[email protected]>
py-utils/src/setup/utils_setup.py
Outdated
Conf.load('config_file', f'yaml:///{config_file_path}', skip_reload=True) | ||
# Get the log path | ||
log_dir = Conf.get('config_file', 'log_dir') | ||
log_path = os.path.join(log_dir, 'cortx/utils') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
log_path -> utils_log_path
Applicable at other places as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Need to get the log_dir from passed in confstore (from provisioner / template file) in mini-provisioning. If this is not provided, there should be a default value |
Signed-off-by: Selvakumar <[email protected]>
Signed-off-by: Rohit Dwivedi <[email protected]>
py-utils/src/setup/utils_setup.py
Outdated
config_file_path = '/etc/cortx/cortx.conf' | ||
Conf.load('config_file', f'yaml:///{config_file_path}', skip_reload=True) | ||
# Get the log path | ||
log_dir = Conf.get('config_file', 'log_dir', '/var/log') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be read from passed in information (like populated template file)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done in utils_setup config phase
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
config phase will set the log_dir for rest of the code.
But utils_setup log will go to the default place (i.e. /var/log/..). Hence asking to get the required log directory here as well, and create log file for utils_setup in that directory.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please work on comment
Signed-off-by: Selvakumar <[email protected]>
Signed-off-by: Selvakumar <[email protected]>
Signed-off-by: Selvakumar <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
* CORTX deployment on AWS Signed-off-by: Shailesh Vaidya <[email protected]> * Use $PWD Signed-off-by: Shailesh Vaidya <[email protected]> * Removed ssc-vm details Signed-off-by: Shailesh Vaidya <[email protected]> * Removed SSC VM details Signed-off-by: Shailesh Vaidya <[email protected]>
Signed-off-by: Selvakumar [email protected]
Problem Statement
Design
Coding
Testing
Review Checklist
Before posting the PR please ensure
Documentation