Reviewed:  https://review.openstack.org/522245
Committed: 
https://git.openstack.org/cgit/openstack/nova/commit/?id=05a73c0f3a9f8edf9024f9870279bc6fb7bba2e7
Submitter: Zuul
Branch:    master

commit 05a73c0f3a9f8edf9024f9870279bc6fb7bba2e7
Author: Silvan Kaiser <[email protected]>
Date:   Wed Nov 22 14:35:11 2017 +0100

    Added mount fstype based validation of Quobyte mounts
    
    The validation of Quobyte mounts is extended to validate based
    on a mounts file system type being set to "fuse.quobyte".
    This includes adding a new StaleVolumeMount exception type to
    the Nova exceptions.
    This also closes a bug concerning multi-registry configurations
    for Quobyte volumes due to no longer using the is_mounted()
    method that failed in that case.
    Finally this adds exception handling for the unmount call that
    is issued on trying to mount an already mounted volume.
    
    Closes-Bug: #1730933
    Closes-Bug: #1737131
    
    Change-Id: Ia5a23ce1123a68608ee2ec6f2ac5dca02da67c59


** Changed in: nova
       Status: In Progress => Fix Released

-- 
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/1737131

Title:
  Superfluous re-mount attempts with the Quobyte Nova driver and multi-
  registry volume URLs

Status in OpenStack Compute (nova):
  Fix Released

Bug description:
  When using a multi-registry volume URL in the Cinder Quobyte driver
  the Nova Quobyte driver does not detect existing mounts correctly.
  Upon trying to mount the given volume the driver fails because the
  mount already exists:

  [..]
  2017-12-08 08:32:29.277 25660 ERROR oslo_messaging.rpc.server   File 
"/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in 
force_reraise
  2017-12-08 08:32:29.277 25660 ERROR oslo_messaging.rpc.server     
six.reraise(self.type_, self.value, self.tb)
  2017-12-08 08:32:29.277 25660 ERROR oslo_messaging.rpc.server   File 
"/opt/stack/nova/nova/virt/block_device.py", line 389, in attach
  2017-12-08 08:32:29.277 25660 ERROR oslo_messaging.rpc.server     
device_type=self['device_type'], encryption=encryption)
  2017-12-08 08:32:29.277 25660 ERROR oslo_messaging.rpc.server   File 
"/opt/stack/nova/nova/virt/libvirt/driver.py", line 1248, in attach_volume
  2017-12-08 08:32:29.277 25660 ERROR oslo_messaging.rpc.server     
self._connect_volume(connection_info, disk_info, instance)
  2017-12-08 08:32:29.277 25660 ERROR oslo_messaging.rpc.server   File 
"/opt/stack/nova/nova/virt/libvirt/driver.py", line 1181, in _connect_volume
  2017-12-08 08:32:29.277 25660 ERROR oslo_messaging.rpc.server     
vol_driver.connect_volume(connection_info, disk_info, instance)
  2017-12-08 08:32:29.277 25660 ERROR oslo_messaging.rpc.server   File 
"/usr/local/lib/python2.7/dist-packages/oslo_concurrency/lockutils.py", line 
274, in inner
  2017-12-08 08:32:29.277 25660 ERROR oslo_messaging.rpc.server     return 
f(*args, **kwargs)
  2017-12-08 08:32:29.277 25660 ERROR oslo_messaging.rpc.server   File 
"/opt/stack/nova/nova/virt/libvirt/volume/quobyte.py", line 147, in 
connect_volume
  2017-12-08 08:32:29.277 25660 ERROR oslo_messaging.rpc.server     
CONF.libvirt.quobyte_client_cfg)
  2017-12-08 08:32:29.277 25660 ERROR oslo_messaging.rpc.server   File 
"/opt/stack/nova/nova/virt/libvirt/volume/quobyte.py", line 61, in mount_volume
  2017-12-08 08:32:29.277 25660 ERROR oslo_messaging.rpc.server     
utils.execute(*command)
  2017-12-08 08:32:29.277 25660 ERROR oslo_messaging.rpc.server   File 
"/opt/stack/nova/nova/utils.py", line 229, in execute
  2017-12-08 08:32:29.277 25660 ERROR oslo_messaging.rpc.server     return 
processutils.execute(*cmd, **kwargs)
  2017-12-08 08:32:29.277 25660 ERROR oslo_messaging.rpc.server   File 
"/usr/local/lib/python2.7/dist-packages/oslo_concurrency/processutils.py", line 
419, in execute
  2017-12-08 08:32:29.277 25660 ERROR oslo_messaging.rpc.server     
cmd=sanitized_cmd)
  2017-12-08 08:32:29.277 25660 ERROR oslo_messaging.rpc.server 
ProcessExecutionError: Unexpected error while running command.
  2017-12-08 08:32:29.277 25660 ERROR oslo_messaging.rpc.server Command: 
mount.quobyte --disable-xattrs 
78.46.57.153:7861,78.46.57.153:7861,78.46.57.153:7861/82000e41-c6ac-4be2-b31a-0543db93767c
 /mnt/quobyte-volume/531b7439e360bdea0a79870354906cab
  2017-12-08 08:32:29.277 25660 ERROR oslo_messaging.rpc.server Exit code: 4
  2017-12-08 08:32:29.277 25660 ERROR oslo_messaging.rpc.server Stdout: 
u'mount.quobyte failed: Unable to initialize mount point\n'
  2017-12-08 08:32:29.277 25660 ERROR oslo_messaging.rpc.server Stderr: 
u"Logging to file /opt/stack/logs/quobyte_client.log.\nfuse: mountpoint is not 
empty\nfuse: if you are sure this is safe, use the 'nonempty' mount option\n"
  2017-12-08 08:32:29.277 25660 ERROR oslo_messaging.rpc.server

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

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to