Bug 35907 - tar in univention-samba4-backup generates sporadically failures
tar in univention-samba4-backup generates sporadically failures
Status: RESOLVED FIXED
Product: UCS Test
Classification: Unclassified
Component: Samba
unspecified
Other Linux
: P5 normal (vote)
: ---
Assigned To: Lukas Oyen
Arvid Requate
:
Depends on: 35392
Blocks:
  Show dependency treegraph
 
Reported: 2014-09-11 15:02 CEST by Stefan Gohmann
Modified: 2016-12-20 15:02 CET (History)
0 users

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Gohmann univentionstaff 2014-09-11 15:02:00 CEST
Please check if a test case is possible.

+++ This bug was initially created as a clone of Bug #35392 +++

The CRON job for univention-samba4-backup sends "from time to time" (about 2-3 times per month) a failure mail:

tar: ./private: file changed as we read it


System is a UCS DC Master 3.2-2 Errata 150
Comment 1 Dmitry Galkin univentionstaff 2014-11-10 15:31:07 CET
(In reply to Stefan Gohmann from comment #0)
> Please check if a test case is possible.
> 

The only thing that can be checked is that a 'tar' was called with a right set of arguments from the 'univention-samba4-backup', but that does not seem to be really useful.
Comment 2 Arvid Requate univentionstaff 2015-02-05 17:51:23 CET
Maybe check that running the cronjob (manually) doesn't output anything unexpected?
Comment 3 Dmitry Galkin univentionstaff 2015-02-10 12:13:58 CET
(In reply to Arvid Requate from comment #2)
> Maybe check that running the cronjob (manually) doesn't output anything
> unexpected?

Perhaps like that?

r57919:
  * 51_samba4/21backup_warning_messages: check that univention-samba4-backup
    does not print warnings (Bug #35907).
Comment 4 Arvid Requate univentionstaff 2015-02-16 20:26:20 CET
Ok, when matching the output of programs, it's recommended to run them under a defined locale, like

  LANG=C univention-samba4-backup
Comment 5 Dmitry Galkin univentionstaff 2015-02-17 11:12:39 CET
(In reply to Arvid Requate from comment #4)
> Ok, when matching the output of programs, it's recommended to run them under
> a defined locale, like
> 
>   LANG=C univention-samba4-backup

There is only one test in UCS and UCS@School which does it so far :-)

r58122:
  * 51_samba4/21backup_warning_messages: use "LANG=C" with
    univention-samba4-backup (Bug #35907).
Comment 6 Lukas Oyen univentionstaff 2016-12-20 15:02:54 CET
Udated the test case in r75423-30 (4.2-0) / 75426-29 (4.1-4):

- Some cleanup of local variables
- Simplified error matching/testing
- Concurrent modification of the backup dirs while the tool is running.