RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 694422 - libvirtd hangs if mounting the nfs specified by nfs pool gives no response.
Summary: libvirtd hangs if mounting the nfs specified by nfs pool gives no response.
Keywords:
Status: CLOSED DUPLICATE of bug 669777
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: libvirt
Version: 6.1
Hardware: Unspecified
OS: Unspecified
medium
high
Target Milestone: rc
: ---
Assignee: Osier Yang
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-04-07 10:26 UTC by Osier Yang
Modified: 2011-06-17 18:07 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-06-17 18:07:25 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Osier Yang 2011-04-07 10:26:46 UTC
Description of problem:
Discovered this when debugging another problem from QE.

1) define two nfs pool like following, (Note the two target paths' relationship)

# cat /etc/libvirt/storage/nfs1.xml 
<pool type='netfs'>
  <name>nfs</name>
  <uuid>a4d544c8-fe04-295d-7d06-ef86c1c6893f</uuid>
  <capacity>0</capacity>
  <allocation>0</allocation>
  <available>0</available>
  <source>
    <host name='10.66.6.148'/>
    <dir path='/var/lib/libvirt/images'/>
    <format type='auto'/>
  </source>
  <target>
    <path>/var/lib/libvirt/images</path>
    <permissions>
      <mode>0700</mode>
      <owner>-1</owner>
      <group>-1</group>
    </permissions>
  </target>
</pool>

# cat /etc/libvirt/storage/nfs2.xml 
<pool type='netfs'>
  <name>nfs</name>
  <uuid>a4d544c8-fe04-295d-7d06-ef86c1c6893f</uuid>
  <capacity>0</capacity>
  <allocation>0</allocation>
  <available>0</available>
  <source>
    <host name='10.66.6.148'/>
    <dir path='/var/lib/libvirt/images'/>
    <format type='auto'/>
  </source>
  <target>
    <path>/var/lib/libvirt/images/nfs</path>
    <permissions>
      <mode>0700</mode>
      <owner>-1</owner>
      <group>-1</group>
    </permissions>
  </target>
</pool>

2) set these two pools autostart

3) restart libvirtd.

Then libvirtd will hangs on initializing storage driver, waiting for mouting nfs return, which means we can't even get a connection to libvirtd anymore, and the worse is, once you restart libvirtd again, it starts more "mount" processes, as before it doing the mount, it looks up in /etc/mtab to see if the nfs is always mounted, unfortunately, the previous mounting is still waiting for reponse, have not return yet, so it comes more and more mouting process if you restart libvirtd again and again.

Though the testing method is not reasonable, but it can be served as negative testing, we might introduce timeout for the fs pool mounting.

Version-Release number of selected component (if applicable):
[root@localhost ~]# rpm -q libvirt
libvirt-0.8.7-15.el6.x86_64

How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 2 RHEL Program Management 2011-04-07 10:43:46 UTC
Since RHEL 6.1 External Beta has begun, and this bug remains
unresolved, it has been rejected as it is not proposed as
exception or blocker.

Red Hat invites you to ask your support representative to
propose this request, if appropriate and relevant, in the
next release of Red Hat Enterprise Linux.

Comment 3 Dave Allan 2011-06-17 18:07:25 UTC

*** This bug has been marked as a duplicate of bug 669777 ***


Note You need to log in before you can comment on or make changes to this bug.