fuel-devops should not use a common folder ~/.devops for colecting logs

Bug #1546629 reported by Dennis Dmitriev
6
This bug affects 1 person
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.

Tags: area-qa
Changed in fuel:
status: New → Confirmed
tags: removed: non-release
Changed in fuel:
milestone: 9.0 → 10.0
Serhii Boikov (sboykov)
Changed in fuel:
assignee: Fuel QA Team (fuel-qa) → Serhii Boikov (sboykov)
Changed in fuel:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-devops (release/2.9)

Reviewed: https://review.openstack.org/320366
Committed: https://git.openstack.org/cgit/openstack/fuel-devops/commit/?id=1ec01a8ef10a9dbf8e12c81d8447e87c6ecb3c82
Submitter: Jenkins
Branch: release/2.9

commit 1ec01a8ef10a9dbf8e12c81d8447e87c6ecb3c82
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
    Change-Id: Ia84841bce0deae419d5a0df3051a0339ce4b82b4

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-devops (master)

Reviewed: https://review.openstack.org/318578
Committed: https://git.openstack.org/cgit/openstack/fuel-devops/commit/?id=5f52bc270cb56138ae7358b3b8cd6c9ce5615177
Submitter: Jenkins
Branch: master

commit 5f52bc270cb56138ae7358b3b8cd6c9ce5615177
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
    Change-Id: Ia84841bce0deae419d5a0df3051a0339ce4b82b4

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.