summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2013-03-12 18:50:35 +0000
committerGerrit Code Review <review@openstack.org>2013-03-12 18:50:35 +0000
commit80f925eccfcfe9aa2bd3f7f4c90e7e622ec7803f (patch)
tree4ba0762dd4a091ce0a01ca128bfb6cdb31801fb4
parentf0fc1240090938ae9d945bb91bfeda4e5d42ac9c (diff)
parent786424b4561df6408128e2cd1b79b00c8b638cdc (diff)
downloadnova-80f925eccfcfe9aa2bd3f7f4c90e7e622ec7803f.tar.gz
nova-80f925eccfcfe9aa2bd3f7f4c90e7e622ec7803f.tar.xz
nova-80f925eccfcfe9aa2bd3f7f4c90e7e622ec7803f.zip
Merge "Fixes nbd device can't be released error"
-rw-r--r--nova/virt/disk/mount/api.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/nova/virt/disk/mount/api.py b/nova/virt/disk/mount/api.py
index 3690f6ddf..85e1d109f 100644
--- a/nova/virt/disk/mount/api.py
+++ b/nova/virt/disk/mount/api.py
@@ -187,9 +187,10 @@ class Mount(object):
LOG.debug(_("Mount %(dev)s on %(dir)s") %
{'dev': self.mapped_device, 'dir': self.mount_dir})
_out, err = utils.trycmd('mount', self.mapped_device, self.mount_dir,
- run_as_root=True)
+ discard_warnings=True, run_as_root=True)
if err:
self.error = _('Failed to mount filesystem: %s') % err
+ LOG.debug(self.error)
return False
self.mounted = True