Datera driver expects deprecated response key with export call

Bug #1430024 reported by Mike Perez
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Low
Mike Perez

Bug Description

targetIDs used to have the iqn, but now it's in endpoint_idents.

Previously:

{
    '_ipColl': ['172.28.121.10', '172.28.120.10'],
    'acls': {},
    'activeServers': {'4594953e-f97f-e111-ad85-001e6738c0f0': '1'},
    'ctype': 'TC_BLOCK_ISCSI',
    'endpointsExt1': {
        '4594953e-f97f-e111-ad85-001e6738c0f0': {
            'ipHigh': 0,
            'ipLow': '192421036',
            'ipStr': '172.28.120.11',
            'ipV': 4,
            'name': '',
            'network': 24
        }
    },
    'endpointsExt2': {
        '4594953e-f97f-e111-ad85-001e6738c0f0': {
            'ipHigh': 0,
            'ipLow': '192486572',
            'ipStr': '172.28.121.11',
            'ipV': 4,
            'name': '',
            'network': 24
        }
    },
    'inodes': {'c20aba21-6ef6-446b-b374-45733b4883ba': '1'},
    'name': '',
    'networkPort': 0,
    'serverAllocation': 'TS_ALLOC_COMPLETED',
    'servers': {'4594953e-f97f-e111-ad85-001e6738c0f0': '1'},
    'targetAllocation': 'TS_ALLOC_COMPLETED',
    'targetIds': {
        '4594953e-f97f-e111-ad85-001e6738c0f0': {
            'ids': [{
                'dev': None,
                'id': 'iqn.2013-05.com.daterainc::01:sn:fc372bc0490b2dbe'
            }]
        }
    },
    'typeName': 'TargetIscsiConfig',
    'uuid': '7071efd7-9f22-4996-8f68-47e9ab19d0fd'
}

Currently:

{'_ipColl': ['172.28.150.11'],
 'active_servers': {'44454c4c-4d00-1048-8031-b4c04f4d4e31': True},
 'auth': {'atype': 'T_AUTH_NONE',
           'info': {'mpassword': '',
                     'muserid': '',
                     'password': '',
                     'userid': ''}},
 'endpoint_addrs': {'172.28.150.11': True},
 'endpoint_idents': {'iqn.2013-05.com.daterainc:OpenStack-a4e692e8-7f95-4f87-8fe6-cbcbab624012:01:sn:222b8e04f59aa0a3': True},
 'name': 'OpenStack-a4e692e8-7f95-4f87-8fe6-cbcbab624012',
 'server_allocation': 'TS_ALLOC_COMPLETED',
 'servers': {'44454c4c-4d00-1048-8031-b4c04f4d4e31': True},
 'targetIds': {'44454c4c-4d00-1048-8031-b4c04f4d4e31': True},
 'target_allocation': 'TS_ALLOC_COMPLETED',
 'target_ids': {'44454c4c-4d00-1048-8031-b4c04f4d4e31': True},
 'type': 'iscsi',
 'uuid': 'f11c2386-71d4-4352-a718-71c3e22f5888',
 'volumes': {'a4e692e8-7f95-4f87-8fe6-cbcbab624012': True}}

Tags: datera drivers
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/162774

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (master)

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

commit a754f317a708d9932aea743588468f0bb1cabdbb
Author: Mike Perez <email address hidden>
Date: Mon Mar 9 14:38:50 2015 -0700

    Update Datera's export to avoid deprecated keys

    The export call has been updated in Datera. The old location for the IQN
    has moved. This updates the Kilo driver with support of looking in the
    new location. The Juno driver will remain using the old location.

    Closes-Bug: #1430024
    Change-Id: I28a76ef849c2d3a0e4d08c5d0707e28d9617f534

Changed in cinder:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in cinder:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in cinder:
milestone: kilo-3 → 2015.1.0
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.