iser target prefix default value is incorrect

Bug #1386159 reported by Gil Meir
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mirantis OpenStack
Fix Committed
High
Anton Arefiev

Bug Description

The file cinder/volume/driver.py has incorrect default value for iser_target_prefix:
on one hand the conf default value is iser_target_prefix='iqn.2010-10.org.openstack:',
but the ISERTgtAdm class in cinder/brick/iscsi/iscsi.py has a default value target_prefix='iqn.2010-10.org.iser.openstack:'.
The second one is correct, the prefix should contain the 'iser' part.

The traceback in volume.log:
8e436fad61750c0492d56f - - -] Exception during message handling: Resource could not be found.
2014-10-27 09:35:06.041 23646 TRACE oslo.messaging.rpc.dispatcher Traceback (most recent call last):
2014-10-27 09:35:06.041 23646 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/oslo/messaging/rpc/dispatcher.py", line 137, in _dispatch_and_reply
2014-10-27 09:35:06.041 23646 TRACE oslo.messaging.rpc.dispatcher incoming.message))
2014-10-27 09:35:06.041 23646 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/oslo/messaging/rpc/dispatcher.py", line 180, in _dispatch
2014-10-27 09:35:06.041 23646 TRACE oslo.messaging.rpc.dispatcher return self._do_dispatch(endpoint, method, ctxt, args)
2014-10-27 09:35:06.041 23646 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/oslo/messaging/rpc/dispatcher.py", line 126, in _do_dispatch
2014-10-27 09:35:06.041 23646 TRACE oslo.messaging.rpc.dispatcher result = getattr(endpoint, method)(ctxt, **new_args)
2014-10-27 09:35:06.041 23646 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/osprofiler/profiler.py", line 105, in wrapper
2014-10-27 09:35:06.041 23646 TRACE oslo.messaging.rpc.dispatcher return f(*args, **kwargs)
2014-10-27 09:35:06.041 23646 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/cinder/volume/manager.py", line 875, in initialize_connection
2014-10-27 09:35:06.041 23646 TRACE oslo.messaging.rpc.dispatcher volume)
2014-10-27 09:35:06.041 23646 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/osprofiler/profiler.py", line 105, in wrapper
2014-10-27 09:35:06.041 23646 TRACE oslo.messaging.rpc.dispatcher return f(*args, **kwargs)
2014-10-27 09:35:06.041 23646 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/cinder/volume/drivers/lvm.py", line 548, in create_export
2014-10-27 09:35:06.041 23646 TRACE oslo.messaging.rpc.dispatcher return self._create_export(context, volume)
2014-10-27 09:35:06.041 23646 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/cinder/volume/drivers/lvm.py", line 560, in _create_export
2014-10-27 09:35:06.041 23646 TRACE oslo.messaging.rpc.dispatcher self.configuration)
2014-10-27 09:35:06.041 23646 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/cinder/volume/iscsi.py", line 57, in create_export
2014-10-27 09:35:06.041 23646 TRACE oslo.messaging.rpc.dispatcher conf.iscsi_write_cache)
2014-10-27 09:35:06.041 23646 TRACE oslo.messaging.rpc.dispatcher File "/usr/lib/python2.6/site-packages/cinder/brick/iscsi/iscsi.py", line 237, in create_iscsi_target
2014-10-27 09:35:06.041 23646 TRACE oslo.messaging.rpc.dispatcher raise exception.NotFound()
2014-10-27 09:35:06.041 23646 TRACE oslo.messaging.rpc.dispatcher NotFound: Resource could not be found.

Please notice the juno/stable branch in openstack-cinder repository has the correct value: https://github.com/openstack/cinder/blob/stable/juno/cinder/volume/driver.py#L142, we tested the upstream cinder code in Mellanox and it works.

Build details:
{"build_id": "2014-10-24_15-03-21", "ostf_sha": "f47fd1d66a7255213ee075d5c11b8f111f922000", "build_number": "177", "auth_required": true, "api": "1.0", "nailgun_sha": "c3c0c41a786818f6a0350a3ada4ec5df739dae0b", "production": "docker", "fuelmain_sha": "b48ebc3d09168e75494b238d239f5277eda94d6d", "astute_sha": "97eea90efe0a1f17b4934919d6e459d270c10372", "feature_groups": ["experimental"], "release": "6.0", "release_versions": {"2014.2-6.0": {"VERSION": {"build_id": "2014-10-24_15-03-21", "ostf_sha": "f47fd1d66a7255213ee075d5c11b8f111f922000", "build_number": "177", "api": "1.0", "nailgun_sha": "c3c0c41a786818f6a0350a3ada4ec5df739dae0b", "production": "docker", "fuelmain_sha": "b48ebc3d09168e75494b238d239f5277eda94d6d", "astute_sha": "97eea90efe0a1f17b4934919d6e459d270c10372", "feature_groups": ["experimental"], "release": "6.0", "fuellib_sha": "349ef85e33497b315b56a3b74ef9f272bc8eb6e8"}}}, "fuellib_sha": "349ef85e33497b315b56a3b74ef9f272bc8eb6e8"}

Tags: cinder
Revision history for this message
Gil Meir (gilmeir-d) wrote :
Changed in fuel:
assignee: nobody → MOS Cinder (mos-cinder)
importance: Undecided → High
milestone: none → 6.0
status: New → Confirmed
Changed in mos:
status: New → Confirmed
importance: Undecided → High
assignee: nobody → MOS Cinder (mos-cinder)
milestone: none → 6.0
no longer affects: fuel
Anton Arefiev (aarefiev)
Changed in mos:
status: Confirmed → In Progress
assignee: MOS Cinder (mos-cinder) → Anton Arefiev (aarefiev)
Revision history for this message
OSCI Robot (oscirobot) wrote :
Revision history for this message
OSCI Robot (oscirobot) wrote :
Revision history for this message
OSCI Robot (oscirobot) wrote :

Package cinder has been built from changeset: https://review.fuel-infra.org/429
RPM Repository URL: http://osci-obs.vm.mirantis.net:82/centos-fuel-6.0-stable/centos

Revision history for this message
OSCI Robot (oscirobot) wrote :

Package cinder has been built from changeset: https://review.fuel-infra.org/429
DEB Repository URL: http://osci-obs.vm.mirantis.net:82/ubuntu-fuel-6.0-stable/ubuntu

Ivan Kolodyazhny (e0ne)
Changed in mos:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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