Bug #1541

more finegrained timestamp when oned archiving logfile ( oned -b ) for eliminating log loss

Added by Jan Horacek over 8 years ago. Updated over 8 years ago.

Status:ClosedStart date:10/10/2012
Priority:NormalDue date:
Assignee:Javi Fontan% Done:

0%

Category:Core & System
Target version:Release 3.8
Resolution:fixed Pull request:
Affected Versions:OpenNebula 3.8

Description

when restarting oned daemon more than once in a minute and when the log archiving is enabled, the previous log is overwriten.

so when steps are
- restart after long time (big log is saved with timestamp A
- restart again in the same minute - timestamp for archiving B is the same as A, so the previous (and important because of long history in it) log is lost

it would be nice to a) apend another sub-suffix or b) incrase the number till it's unique

including seconds in the timestamp would help too.

(this is related to #1533 for setting log arhiving as default)


Related issues

Related to Bug #1533: "one" script, at start, should do a backup of oned.log by... Closed 10/08/2012

Associated revisions

Revision 2aa8d0b7
Added by Javi Fontan over 8 years ago

bug #1541: add seconds to oned.log backup name

related to #1533

History

#1 Updated by Ruben S. Montero over 8 years ago

  • Target version set to Release 3.8

#2 Updated by Ruben S. Montero over 8 years ago

  • Category set to Core & System
  • Status changed from New to Assigned
  • Assignee set to Javi Fontan

#3 Updated by Javi Fontan over 8 years ago

  • Status changed from Assigned to Closed
  • Resolution set to fixed

Adding seconds should be enough and does not add complexity.

Also available in: Atom PDF