Bug 36160 - 99check_log_files should ignore some warnings
99check_log_files should ignore some warnings
Status: CLOSED FIXED
Product: UCS Test
Classification: Unclassified
Component: General
unspecified
Other Linux
: P5 normal (vote)
: UCS 4.0
Assigned To: Dmitry Galkin
Philipp Hahn
: interim-3
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-10-12 14:52 CEST by Stefan Gohmann
Modified: 2014-11-26 06:54 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-10-12 14:52:34 CEST
The following warnings should be ignored by 99check_log_files:

* Failed to load license information: 'univentionLicenseKeyID'

* Failed to load license information: [Errno 2] No such file or directory: '/etc/machine.secret'

* W: failed to convert the username messagebus to the uid

* Configure /usr/lib/univention-install/02univention-directory-notifier.inst
Starting Univention Directory Notifier daemon.
warning: univention-directory-notifier: unable to open supervise/ok: file does not exist
failed.
Comment 1 Dmitry Galkin univentionstaff 2014-10-13 11:07:51 CEST
(In reply to Stefan Gohmann from comment #0)
> The following warnings should be ignored by 99check_log_files:
> 
> * Failed to load license information: 'univentionLicenseKeyID'
> 
> * Failed to load license information: [Errno 2] No such file or directory:
> '/etc/machine.secret'

Those two I believe should be ignored as long as there is no installation profile (/etc/univention/installation_profile) via check_installation_profile() and extend_log_ignore_definitions() functions. I'll have a look at the next Jenkins job output.

> * W: failed to convert the username messagebus to the uid

> * Configure /usr/lib/univention-install/02univention-directory-notifier.inst
> Starting Univention Directory Notifier daemon.
> warning: univention-directory-notifier: unable to open supervise/ok: file
> does not exist

Added:
r54348:
  * Bug #36160:
    00_base/check_log_files_definitions.py: ignore few more warnings/error messages.


> failed.

Is that exactly a single-word pattern we'd like to ignore? (i.e. string 'failed' should match?)
Comment 2 Stefan Gohmann univentionstaff 2014-10-19 19:35:05 CEST
(In reply to Dmitry Galkin from comment #1)
> > failed.
> 
> Is that exactly a single-word pattern we'd like to ignore? (i.e. string
> 'failed' should match?)

See above, the message contains these lines:
------------------------------------------------------------------
Starting Univention Directory Notifier daemon.
warning: univention-directory-notifier: unable to open supervise/ok: file does not exist
failed.
------------------------------------------------------------------
Comment 3 Dmitry Galkin univentionstaff 2014-10-20 12:11:50 CEST
(In reply to Stefan Gohmann from comment #2)
> (In reply to Dmitry Galkin from comment #1)
> > > failed.
> > 
> > Is that exactly a single-word pattern we'd like to ignore? (i.e. string
> > 'failed' should match?)
> 
> See above, the message contains these lines:
> ------------------------------------------------------------------
> Starting Univention Directory Notifier daemon.
> warning: univention-directory-notifier: unable to open supervise/ok: file
> does not exist
> failed.
> ------------------------------------------------------------------

Perhaps, not the most elegant solution, but preserves the original approach of the test:

r54643:
  * Bug #36160:
    00_base/99check_log_files: check extra case if a line == 'failed.'
    00_base/check_log_files_definitions.py: extra ignore patterns added.
Comment 4 Philipp Hahn univentionstaff 2014-10-24 01:32:54 CEST
(In reply to Stefan Gohmann from comment #0)
OK: Failed to load license information:
OK: W: failed to convert the username messagebus to the uid
> 
> * Configure /usr/lib/univention-install/02univention-directory-notifier.inst
OK: Starting Univention Directory Notifier daemon.
OK: warning: univention-directory-notifier: unable to open supervise/ok: file does not exist
> failed.

OK: r54348,r54643
Comment 5 Stefan Gohmann univentionstaff 2014-11-26 06:54:31 CET
UCS 4.0-0 has been released:
 http://docs.univention.de/release-notes-4.0-0-en.html
 http://docs.univention.de/release-notes-4.0-0-de.html

If this error occurs again, please use "Clone This Bug".