fuel-devops should not use a common folder ~/.devops for colecting logs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Fix Committed
|
Low
|
Serhii Boikov |
Bug Description
Problem description:
fuel-devops creates a folder ~/.devops in the home directory of the current user, and places there log.yaml and log files.
- different versions of fuel-devops have a different configuration in the log.yaml
- different fuel-devops instances, installed in the different python virtual environments, shoud not mix it's logs in a single file.
Proposed solution:
- search for log.yaml in the folder where the fuel-devops installed (it is already copied there, but is not used)
- create log files in the LOGS_DIR or in the "${WORKSPACE}/logs" if LOGS_DIR is empty; instead of ~/.devops/logs , so that we could get these logs next to the fuel-qa system_test.log and archive fuel-devops logs along with other artifacts on CI for each job.
Changed in fuel: | |
status: | New → Confirmed |
tags: | removed: non-release |
Changed in fuel: | |
milestone: | 9.0 → 10.0 |
Changed in fuel: | |
assignee: | Fuel QA Team (fuel-qa) → Serhii Boikov (sboykov) |
Changed in fuel: | |
status: | Confirmed → In Progress |
Reviewed: https:/ /review. openstack. org/320366 /git.openstack. org/cgit/ openstack/ fuel-devops/ commit/ ?id=1ec01a8ef10 a9dbf8e12c81d84 47e87c6ecb3c82
Committed: https:/
Submitter: Jenkins
Branch: release/2.9
commit 1ec01a8ef10a9db f8e12c81d8447e8 7c6ecb3c82
Author: Serhii Boikov <email address hidden>
Date: Thu May 19 13:44:42 2016 +0300
Logger and it's settings were moved into scripts.
- Log.yaml has been removed.
- All settings for logger have been moved into scripts.
- Changed log.levels for some events to debug in libvirt_driver.py.
- Added variables LOGS_DIR and LOGS_SIZE.
- LOGS_DIR - EnvVar with path to the directory where devops logs are stored.
Default path is ~/.devops
- LOGS_SIZE - EnvVar with Size of devops log file(in bytes).
Default size 10485760(10MB).
Closes-Bug: #1546629 419d5a0df3051a0 339ce4b82b4
Change-Id: Ia84841bce0deae