Bug 681118

Summary: file descriptor error when invoke pvs/lvs/vgs
Product: Red Hat Enterprise Linux 6 Reporter: Mohua Li <moli>
Component: ovirt-nodeAssignee: Alan Pevec <apevec>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.1CC: apevec, gouyang, leiwang, moli, mshao, ovirt-maint, ycui
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt-node-2.0.2-0.3.gitcf213a7.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-06 19:06:33 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Mohua Li 2011-03-01 06:56:33 UTC
Description of problem:

drop to shell, or in a installed rhev-hypervisor, run pvs/lvs/vgs,

#pvs

File descriptor 3(/etc/default/ovirt.augnew(deleted)) leaked on pvs invocation.Parent PID 12152:/bin/bash

File descriptor 4(/etc/default/ovirt.augnew(deleted)) leaked on pvs invocation.Parent PID 12152:/bin/bash

File descriptor 5(/etc/default/ovirt.augnew(deleted)) leaked on pvs invocation.Parent PID 12152:/bin/bash

File descriptor 3(/tmp/ffimA476v(deleted)) leaked on pvs invocation.Parent PID 12152:/bin/bash

notice, as this is output to stderr, so if you ssh to the server, you can't see this message,



[root@amd-1216-8-5 ~]# pvs 2>/dev/null
  PV                                                                                  VG     Fmt  Attr PSize   PFree
  /dev/mapper/1ATA     WDC WD2502ABYS-18B7A0                        WD-WCAT19563677p2 HostVG lvm2 a-   232.78g 222.18g


Version-Release number of selected component (if applicable):
6.1-8

How reproducible:
always

Steps to Reproduce:
1.just run pvs/vgs/lvs
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 7 Mohua Li 2011-08-29 08:19:12 UTC
rhev-hypervisor 6.2-0.14, as comment 5 mention, this is just a workaround, to suppress the warnings, 



[root@hp-slot2-eth0 log]# pvs
  PV                VG     Fmt  Attr PSize  PFree
  /dev/cciss/c0d0p3 HostVG lvm2 a-   67.86g    0 
[root@hp-slot2-eth0 log]# lvs
v  LV      VG     Attr   LSize  Origin Snap%  Move Log Copy%  Convert
  Config  HostVG -wi-ao  8.00m                                      
  Data    HostVG -wi-ao 58.00g                                      
  Logging HostVG -wi-ao  2.00g                                      
  Swap    HostVG -wi-ao  7.84g                                      
[root@hp-slot2-eth0 log]# vgs
  VG     #PV #LV #SN Attr   VSize  VFree
  HostVG   1   4   0 wz--n- 67.86g    0 
[root@hp-slot2-eth0 log]# lvscan
  ACTIVE            '/dev/HostVG/Swap' [7.84 GiB] inherit
  ACTIVE            '/dev/HostVG/Config' [8.00 MiB] inherit
  ACTIVE            '/dev/HostVG/Logging' [2.00 GiB] inherit
  ACTIVE            '/dev/HostVG/Data' [58.00 GiB] inherit
[root@hp-slot2-eth0 log]# pvscan
  PV /dev/cciss/c0d0p3   VG HostVG   lvm2 [67.86 GiB / 0    free]
  Total: 1 [67.86 GiB] / in use: 1 [67.86 GiB] / in no VG: 0 [0   ]

Comment 10 errata-xmlrpc 2011-12-06 19:06:33 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2011-1783.html