← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1152248] Re: Can't attach a Volume to a VM with NetApp NFS Direct Driver

 

no response in a while, assuming this isn't an issue anymore closing the
bug.

** Changed in: nova
       Status: Incomplete => Invalid

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1152248

Title:
  Can't attach a Volume to a VM with NetApp NFS Direct Driver

Status in OpenStack Compute (Nova):
  Invalid

Bug description:
  OS : Debian Wheezy
  Nova version : 2.11.1.30.g8ac304f
  OpenStack installed with DevStack.

  I'm using a NetApp system for storing Volumes provided by NFS and
  expose volumes to VMs with NFS too.

  === Scenario

  cinder.conf :
  (...)

  nfs_shares_config = /etc/cinder/shares.conf
  nfs_mount_point_base = /etc/cinder/volumes

  volume_driver = cinder.volume.drivers.netapp.nfs.NetAppDirectCmodeNfsDriver
  netapp_server_hostname = 10.X.X.X
  netapp_server_port = 80
  netapp_login = admin
  netapp_password = secrete
  netapp_transport_type = http
  netapp_vserver = vs0

  1) I can start cinder-volume and see that it mounts my NFS share (hosted on NetApp) :
  mount :
  10.X.X.X:/voltest on /etc/cinder/volumes/44a3ed2e30a8aaf14a2ba926457f5666 type nfs4 (rw,relatime,vers=4,rsize=65536,wsize=65536,namlen=255,hard,proto=tcp,port=0,timeo=600,retrans=2,sec=sys,clientaddr=10.X.X.X,minorversion=0,local_lock=none,addr=10.X.X.X)

  2) I can create a volume :
  +--------------------------------------+-----------+--------------+------+-------------+----------+-------------+
  |                  ID                  |   Status  | Display Name | Size | Volume Type | Bootable | Attached to |
  +--------------------------------------+-----------+--------------+------+-------------+----------+-------------+
  | f2aae196-e6e4-4906-9f3f-153909c52f95 | available |     None     |  1   |     None    |  false   |             |
  +--------------------------------------+-----------+--------------+------+-------------+----------+-------------+

  3) Now I want to attach the volume to my VM and it fails.

  Here is my nova-compute.log TRACE :

  http://paste.openstack.org/show/5Xuo2ECF4O9cZt5unDOR/

  It fails.

  4) I want to attach the volume manually with virsh tool :
  attach-volume instance-001 --source XXXX --target vdb

  And it works !  I can manage the volume from the VM and put some
  files.

  === Investigation

  After investigation, I can see that the bug appears in Nova, here :
  https://github.com/openstack/nova/blob/master/nova/virt/libvirt/driver.py#L888-912

  My question : is it normal that we don't have a connector for NFS ? I only see iSCSI & FC.
  How is performed the mount ?

  Other interesting point, it works with standard NFS driver. I can
  create and attach volumes to VMs.

  Let me know if you need more informations, I would like to know if
  it's a bug or if I miss something on my configuration.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1152248/+subscriptions