Ask Your Question
0

Nova 2.28.1 ERROR (AttributeError): 'module' object has no attribute 'TCP_KEEPCNT'

asked 2015-09-10 09:41:03 -0500

Just up graded to nova 2.28.1 on windows 7 and I get the error

ERROR (AttributeError): 'module' object has no attribute 'TCP_KEEPCNT'

How do I solve this problem?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2016-01-04 15:55:47 -0500

alexpilotti gravatar image

Fixed by: https://github.com/openstack/python-k...

and by: https://github.com/openstack/keystone...

The latter has not yet been released on pypi, so for now the workaround is:

pip install -U python-keystoneclient
git clone https://github.com/openstack/keystoneauth.git
pip install -U .\keystoneauth
edit flag offensive delete link more
0

answered 2015-09-10 09:47:37 -0500

In "c:\Python27\Lib\site-packages\keystoneclient\session.py" around line 934 are the offending lines

   def init_poolmanager(self, *args, **kwargs):
    if 'socket_options' not in kwargs:
        socket_options = [
            # Keep Nagle's algorithm off
            (socket.IPPROTO_TCP, socket.TCP_NODELAY, 1),
            # Turn on TCP Keep-Alive
            (socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1),
            # Set the maximum number of keep-alive probes
            (socket.IPPROTO_TCP, socket.TCP_KEEPCNT, 4),
            # Send keep-alive probes every 15 seconds
            (socket.IPPROTO_TCP, socket.TCP_KEEPINTVL, 15),
        ]

These should be changed to def init_poolmanager(self, *args, kwargs): if 'socket_options' not in kwargs: socket_options = [ # Keep Nagle's algorithm off (socket.IPPROTO_TCP, socket.TCP_NODELAY, 1), # Turn on TCP Keep-Alive (socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1), # Set the maximum number of keep-alive probes #(socket.IPPROTO_TCP, socket.TCP_KEEPCNT, 4), # Send keep-alive probes every 15 seconds #(socket.IPPROTO_TCP, socket.TCP_KEEPINTVL, 15), ]

Probably should be fixed to check for the existence of these objects before trying to set them, but just commenting the code out works fine.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-09-10 09:41:03 -0500

Seen: 903 times

Last updated: Jan 04 '16