socket.TCP_KEEPCNT and socket.KEEPINTVL do not exist in windows

Bug #1483696 reported by Claudiu Belu
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
python-keystoneclient
Fix Released
Medium
Claudiu Belu

Bug Description

The python module 'socket' does not contain the attributes TCP_KEEPCNT or KEEPINTVL on Windows, which can cause issues for modules using the keystone client, such as nova (see log).

socket module contents on Windows: http://paste.openstack.org/show/412544/

Log: http://paste.openstack.org/show/tUb4rXXtmV9Nafw10GzL/

Revision history for this message
David Stanek (dstanek) wrote :

This is definitely a problem. I'm not sure about the priority since we don't advertise in our trove categories that we support Windows and I can't remember seeing a Windows discussion in the past.

Changed in python-keystoneclient:
importance: Undecided → Medium
status: New → Confirmed
Claudiu Belu (cbelu)
Changed in python-keystoneclient:
assignee: nobody → Claudiu Belu (cbelu)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-keystoneclient (master)

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

Changed in python-keystoneclient:
status: Confirmed → In Progress
Revision history for this message
Claudiu Belu (cbelu) wrote :

I would argue that this deserves a higher importance. It seems instances fail to spawn due to this issue in nova-compute on Hyper-V.

Revision history for this message
Ian Cordasco (icordasc) wrote :

Claudiu, which version of windows did you test this against?

Revision history for this message
Claudiu Belu (cbelu) wrote :

Windows Server 2012 R2.

Revision history for this message
John Garbutt (johngarbutt) wrote :

Seeing the same with OS X 10.10 and running python-novaclient unit tests.

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

Reviewed: https://review.openstack.org/211686
Committed: https://git.openstack.org/cgit/openstack/python-keystoneclient/commit/?id=33b24a6984c8de2f26af7900202bb85b6b5db125
Submitter: Jenkins
Branch: master

commit 33b24a6984c8de2f26af7900202bb85b6b5db125
Author: Claudiu Belu <email address hidden>
Date: Tue Aug 11 10:34:40 2015 -0700

    Fixes missing socket attribute error during init_poolmanager

    On Windows, the 'socket' python module does not contain the
    attributes TCP_KEEPCNT or TCP_KEEPINTVL, causing services
    consuming the library to malfunction.

    Adds conditionals for adding the mentioned socket attributes
    to the socket options.

    socket.SIO_KEEPALIVE_VALS cannot be added as a socket option
    for Windows, as there is another way entirely to enable that
    option.

    Change-Id: I2e9746ae65400bbd23c3b48dfc3167de9eb66494
    Partial-Bug: #1483696

Revision history for this message
Dolph Mathews (dolph) wrote :

The above fix appears to have mistakenly been marked as Partial-Bug, although it seems to resolve this issue. If that's not true, please re-open this bug.

Changed in python-keystoneclient:
status: In Progress → Fix Committed
Changed in python-keystoneclient:
milestone: none → 1.8.0
status: Fix Committed → Fix Released
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.