Bug #4366

Do not execute vgdisplay on hyps if FS LVM DS is not set

Added by Alvaro Simon over 5 years ago. Updated about 5 years ago.

Status:ClosedStart date:03/07/2016
Priority:NormalDue date:
Assignee:Javi Fontan% Done:

0%

Category:Drivers - Storage
Target version:Release 5.0
Resolution:fixed Pull request:
Affected Versions:OpenNebula 4.14

Description

Hi

I think that this issue is also related with http://dev.opennebula.org/issues/2912

We are getting a lot of log errors from our hyps with this message:

2016-01-26T09:39:02.796813+01:00 hyp101 sudo: oneadmin : command not allowed ; TTY=unknown ; PWD=/var/tmp/one/im/kvm-probes.d ; USER=root ; COMMAND=/sbin/vgdisplay --separator : --units m -o vg_size,vg_free --nosuffix --noheadings -C vg-one-0

but we are not using any LVM FS DS in our system.

Right now monitor_ds.sh is trying to use any probe command even if the DS or service is not set or configured in ONE. This behaviour generates a lot of noisy logs from kvm/xen hyps.
For LVM case (or any other monitoring probe) ONE should execute the sudo vgdisplay command only if any LVM DS is configured in OpenNebula db. Probably the monitor_ds script should be changed a bit..

Cheers
Alvaro

Associated revisions

Revision b0f67a35
Added by Javi Fontan about 5 years ago

bug #4366: preserve line breaks in monitor_and_log

Revision 637f3ee3
Added by Javi Fontan about 5 years ago

bug #4366: add fs_lvm/monitor

Revision 5e2771d6
Added by Javi Fontan about 5 years ago

bug #4366: enable fs_lvm for system ds monitoring

Revision 890f726f
Added by Javi Fontan about 5 years ago

bug #4366: do not monitor lvm in tm/shared

Revision cb6b6f26
Added by Javi Fontan about 5 years ago

bug #4366: get disk info in tm/shared monitor

Revision af3790c2
Added by Javi Fontan about 5 years ago

bug #4366: bug getting datastores in tm/shared/monitor

History

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

  • Target version set to Release 5.0

#2 Updated by Javi Fontan about 5 years ago

  • Status changed from Pending to Closed
  • Assignee set to Javi Fontan
  • Resolution set to fixed

Also available in: Atom PDF