Windows: wintypes import issue

Bug #1434130 reported by Lucian Petrut
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Undecided
Lucian Petrut

Bug Description

In some environments, the Cinder Volume fails to start with the following error:

AttributeError: 'module' object has no attribute 'wintypes'

In order to avoid this, wintypes must be explicitly imported in vhdutils instead
of relying on the ctypes import and accessing wintypes as an attribute.

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

Changed in cinder:
assignee: nobody → Petrut Lucian (petrutlucian94)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (master)

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

commit c14cec2634a34f19a91a1587d4c148e8c22ef14d
Author: Lucian Petrut <email address hidden>
Date: Sun Mar 15 23:32:48 2015 +0200

    Windows: Fixes wintypes import issue in vhdutils

    At the moment, wintypes is accessed as a ctypes attribute. In
    some environments, this raises an AttributeError. For this
    reason, the Windows iSCSI and Windows SMBFS drivers fail to
    initialize.

    In order to avoid this, wintypes must be explicitly imported in
    vhdutils.

    Change-Id: I78bb916b0da3f7540e7a428d0bab10edc6a5b963
    Closes-Bug: #1434130

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