VMware: Backup create fails with 'ValueError: Invalid InitiatorConnector protocol specified VMDK'

Bug #1602660 reported by Vipin Balachandran
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
High
Vipin Balachandran

Bug Description

Backup create fails with following traceback:

2016-07-13 17:45:25.720 ERROR oslo_messaging.rpc.dispatcher [req-afe36d6c-f7bb-4cd6-8efd-b5922ee07276 ad6a5b5c6988462ab14b9a8fc8150030 016aa02133d8469b9a58c9c97e4c565a] Exception during message handling: Invalid InitiatorConnector protocol specified VMDK
2016-07-13 17:45:25.720 TRACE oslo_messaging.rpc.dispatcher Traceback (most recent call last):
2016-07-13 17:45:25.720 TRACE oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 138, in _dispatch_and_reply
2016-07-13 17:45:25.720 TRACE oslo_messaging.rpc.dispatcher incoming.message))
2016-07-13 17:45:25.720 TRACE oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 185, in _dispatch
2016-07-13 17:45:25.720 TRACE oslo_messaging.rpc.dispatcher return self._do_dispatch(endpoint, method, ctxt, args)
2016-07-13 17:45:25.720 TRACE oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 127, in _do_dispatch
2016-07-13 17:45:25.720 TRACE oslo_messaging.rpc.dispatcher result = func(ctxt, **new_args)
2016-07-13 17:45:25.720 TRACE oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/osprofiler/profiler.py", line 147, in wrapper
2016-07-13 17:45:25.720 TRACE oslo_messaging.rpc.dispatcher return f(*args, **kwargs)
2016-07-13 17:45:25.720 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/cinder/cinder/backup/manager.py", line 406, in create_backup
2016-07-13 17:45:25.720 TRACE oslo_messaging.rpc.dispatcher self._update_backup_error(backup, context, six.text_type(err))
2016-07-13 17:45:25.720 TRACE oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__
2016-07-13 17:45:25.720 TRACE oslo_messaging.rpc.dispatcher self.force_reraise()
2016-07-13 17:45:25.720 TRACE oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise
2016-07-13 17:45:25.720 TRACE oslo_messaging.rpc.dispatcher six.reraise(self.type_, self.value, self.tb)
2016-07-13 17:45:25.720 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/cinder/cinder/backup/manager.py", line 400, in create_backup
2016-07-13 17:45:25.720 TRACE oslo_messaging.rpc.dispatcher self._run_backup(context, backup, volume)
2016-07-13 17:45:25.720 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/cinder/cinder/backup/manager.py", line 436, in _run_backup
2016-07-13 17:45:25.720 TRACE oslo_messaging.rpc.dispatcher properties, is_snapshot)
2016-07-13 17:45:25.720 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/cinder/cinder/backup/manager.py", line 907, in _attach_device
2016-07-13 17:45:25.720 TRACE oslo_messaging.rpc.dispatcher return self._attach_volume(context, backup_device, properties)
2016-07-13 17:45:25.720 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/cinder/cinder/backup/manager.py", line 934, in _attach_volume
2016-07-13 17:45:25.720 TRACE oslo_messaging.rpc.dispatcher {'volume_id', volume.id})
2016-07-13 17:45:25.720 TRACE oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__
2016-07-13 17:45:25.720 TRACE oslo_messaging.rpc.dispatcher self.force_reraise()
2016-07-13 17:45:25.720 TRACE oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise
2016-07-13 17:45:25.720 TRACE oslo_messaging.rpc.dispatcher six.reraise(self.type_, self.value, self.tb)
2016-07-13 17:45:25.720 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/cinder/cinder/backup/manager.py", line 400, in create_backup
2016-07-13 17:45:25.720 TRACE oslo_messaging.rpc.dispatcher self._run_backup(context, backup, volume)
2016-07-13 17:45:25.720 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/cinder/cinder/backup/manager.py", line 436, in _run_backup
2016-07-13 17:45:25.720 TRACE oslo_messaging.rpc.dispatcher properties, is_snapshot)
2016-07-13 17:45:25.720 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/cinder/cinder/backup/manager.py", line 907, in _attach_device
2016-07-13 17:45:25.720 TRACE oslo_messaging.rpc.dispatcher return self._attach_volume(context, backup_device, properties)
2016-07-13 17:45:25.720 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/cinder/cinder/backup/manager.py", line 934, in _attach_volume
2016-07-13 17:45:25.720 TRACE oslo_messaging.rpc.dispatcher {'volume_id', volume.id})
2016-07-13 17:45:25.720 TRACE oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__
2016-07-13 17:45:25.720 TRACE oslo_messaging.rpc.dispatcher self.force_reraise()
2016-07-13 17:45:25.720 TRACE oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise
2016-07-13 17:45:25.720 TRACE oslo_messaging.rpc.dispatcher six.reraise(self.type_, self.value, self.tb)
2016-07-13 17:45:25.720 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/cinder/cinder/backup/manager.py", line 923, in _attach_volume
2016-07-13 17:45:25.720 TRACE oslo_messaging.rpc.dispatcher return self._connect_device(conn)
2016-07-13 17:45:25.720 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/cinder/cinder/backup/manager.py", line 945, in _connect_device
2016-07-13 17:45:25.720 TRACE oslo_messaging.rpc.dispatcher conn=conn)
2016-07-13 17:45:25.720 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/cinder/cinder/utils.py", line 557, in brick_get_connector
2016-07-13 17:45:25.720 TRACE oslo_messaging.rpc.dispatcher *args, **kwargs)
2016-07-13 17:45:25.720 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/os-brick/os_brick/initiator/connector.py", line 294, in factory
2016-07-13 17:45:25.720 TRACE oslo_messaging.rpc.dispatcher device_scan_attempts=device_scan_attempts,
2016-07-13 17:45:25.720 TRACE oslo_messaging.rpc.dispatcher ValueError: Invalid InitiatorConnector protocol specified VMDK

Tags: drivers vmware
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

Fix proposed to branch: master
Review: https://review.openstack.org/341502

Changed in cinder:
status: New → In Progress
Revision history for this message
Vipin Balachandran (vbala) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (master)

Reviewed: https://review.openstack.org/341502
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=18325aebc609a4cf2b4b7b939716c982411b31b6
Submitter: Jenkins
Branch: master

commit 18325aebc609a4cf2b4b7b939716c982411b31b6
Author: Vipin Balachandran <email address hidden>
Date: Mon Jul 11 22:38:08 2016 +0530

    VMware: Send additional connection info

    Change I743e676372703e74178c79683dd622d530981e04 removed volume
    backend driver calls for creating and restoring volume backups.
    The overridden methods for creating and restoring backups in
    the VMDK driver is no longer called and this breaks the backup-
    restore of volumes created by the VMDK driver. Now backup and
    restore of volumes use os-brick connectors.

    Change Ia1a20f93780593b1efbb74484c3fdd3ca3564290 added a new
    connector in os-brick to support vmdk volumes. The new vmdk
    connector requires additional connection info so that it can
    connect to vCenter server and access the volume vmdk to perform
    volume connect and disconnect.

    Closes-bug: #1602660
    Change-Id: I66a30366ccdae74e13f7a0e35cd7bfdfed2785be

Changed in cinder:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/cinder 9.0.0.0rc1

This issue was fixed in the openstack/cinder 9.0.0.0rc1 release candidate.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.