kolla-build fails at start due to AtrributeError please help

asked 2017-10-19 10:26:53 -0500

jcorkey gravatar image

updated 2017-10-19 10:27:21 -0500

I got the kolla repo with the stable/pike branch and did a pip install and it was successful. Also followed all the steps on the quick start guide to get everything setup and configured.

I run kolla-build -b centos -t source and I get the error below. Any attempt of using the kolla-build command causes this error below:

Traceback (most recent call last):
  File "/usr/bin/kolla-build", line 6, in <module>
    from kolla.cmd.build import main
  File "/usr/lib/python2.7/site-packages/kolla/cmd/build.py", line 26, in <module>
    from kolla.image import build
  File "/usr/lib/python2.7/site-packages/kolla/image/build.py", line 24, in <module>
    import requests
  File "/usr/lib/python2.7/site-packages/requests/__init__.py", line 84, in <module>
    from urllib3.contrib import pyopenssl
  File "/usr/lib/python2.7/site-packages/urllib3/contrib/pyopenssl.py", line 46, in <module>
    import OpenSSL.SSL
  File "/usr/lib/python2.7/site-packages/OpenSSL/__init__.py", line 8, in <module>
    from OpenSSL import rand, crypto, SSL
  File "/usr/lib/python2.7/site-packages/OpenSSL/SSL.py", line 105, in <module>
AttributeError: 'module' object has no attribute 'SSL_ST_INIT'

What is causing this error?? How do I fix this?

edit retag flag offensive close merge delete


I've not used kolla-build before, but it looks like your version of pyOpenSSL is incompatible (or not present). Try to reinstall it?

zerorobben gravatar imagezerorobben ( 2017-10-19 10:37:31 -0500 )edit

That fixed it but now its giving a similar error below:

File "/usr/lib/python2.7/site-packages/kolla/image/build.py", line 586, in __init__ self.dc = docker.APIClient(version='auto', **docker_kwargs) AttributeError: 'module' object has no attribute 'APIClient'

jcorkey gravatar imagejcorkey ( 2017-10-19 10:49:28 -0500 )edit

Now it looks as though you've not installed the Docker SDK. The Python script has import docker and this line attempts to access docker.APIClient, but that fails because it doesn't exist. Have you installed the prerequisites for this software?

zerorobben gravatar imagezerorobben ( 2017-10-19 10:59:18 -0500 )edit