openstack commands fail in stable/mitaka caused by openstack.__version__ attribute not found
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack SDK |
Confirmed
|
Undecided
|
Unassigned | ||
devstack |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
install devstack mitaka version on ubuntu trusty on Dec 19 2016. devstack script failed when executing openstack command.
++userrc_
++userrc_
+./stack.
+lib/keystone:
++lib/keystone:
Traceback (most recent call last):
File "/usr/local/
from openstackclient
File "/usr/local/
from openstackclient
File "/usr/local/
'openstack.
File "/usr/local/
__import_
File "/usr/local/
from openstack import connection
File "/usr/local/
from openstack import session as _session
File "/usr/local/
DEFAULT_
AttributeError: 'module' object has no attribute '__version__'
+lib/keystone:
+lib/keystone:
+./stack.
++./stack.
+./stack.
+./stack.
+./stack.
+./stack.
+./stack.
+./stack.
Error on exit
+./stack.
+./stack.
+./stack.
World dumping... see /opt/stack/
+./stack.
jenkins@
jenkins@
jenkins@
jenkins@
jenkins@
upgraded openstacksdk to 0.9.* fixed the issue. but requirements has capped openstacksdk to 0.8.1 for stable/mitaka. something must have changed. Setuptools is 32.1.2 which is upgdated on Dec 18 2016, not sure if that is the issue.
Changed in python-openstacksdk: | |
status: | New → Confirmed |
Changed in devstack: | |
status: | New → Confirmed |
tags: | added: openstack-version.mitaka |
Changed in devstack: | |
status: | Confirmed → In Progress |
openstack client commands failed right after horizon test-requirements were installed.
ubuntu@test3:~$ upper-constrain ts.txt -r horizon/ test-requiremen ts.txt ubuntu/ .cache/ pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. ubuntu/ .cache/ pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. upper-constrain ts.txt (line 25)) lib/python2. 7/dist- packages/ pip/_vendor/ requests/ packages/ urllib3/ util/ssl_ .py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https:/ /urllib3. readthedocs. io/en/latest/ security. html#snimissing warning. lib/python2. 7/dist- packages/ pip/_vendor/ requests/ packages/ urllib3/ util/ssl_ .py:122: InsecurePlatfor mWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https:/ /urllib3. readthedocs. io/en/latest/ security. html#insecurepl atformwarning. ormWarning 1.2.3-py2- none-any. whl (1.9MB) ███████ ███████ ███████ █████| 1.9MB 400kB/s upper-constrain ts.txt (line 94)) 4.0.3.tar. gz (354kB) ███████ ███████ ███████ █████| 358kB 2.2MB/s upper-constrain ts.txt (line 110)) nose-1. 4.3-py2. py3-none- any.whl upper-constrain ts.txt (line 117)) 0.12.tar. gz (1.6MB) ███████ ███████ ███████ █████| 1.6MB 513kB/s upper-constrain ts.txt (line 177)) 3.0-py2. py3-none- any.whl (56kB) ███████ ███████ ███████ █████| 61kB 6.2MB/s upper-constrain ts.txt (line 180)) 14.0-py2. py3-none- any.whl (40kB) ███████ ███████ ███████ █████| 40kB 6.0MB/s upper-constrain ts.txt (line 187)) 0.13.6. tar....
ubuntu@test3:~$
ubuntu@test3:~$ openstack
(openstack) quit
ubuntu@test3:~$
ubuntu@test3:~$
ubuntu@test3:~$
ubuntu@test3:~$
ubuntu@test3:~$
ubuntu@test3:~$
ubuntu@test3:~$
ubuntu@test3:~$
ubuntu@test3:~$ sudo pip install -c requirements/
sudo: unable to resolve host test3
The directory '/home/
The directory '/home/
Ignoring dnspython3: markers 'python_version == "3.4"' don't match your environment
Collecting Sphinx===1.2.3 (from -c requirements/
/usr/local/
SNIMissingWarning
/usr/local/
InsecurePlatf
Downloading Sphinx-
100% |██████
Collecting coverage===4.0.3 (from -c requirements/
Downloading coverage-
100% |██████
Collecting django-nose===1.4.3 (from -c requirements/
Downloading django_
Collecting docutils===0.12 (from -c requirements/
Downloading docutils-
100% |██████
Collecting mock===1.3.0 (from -c requirements/
Downloading mock-1.
100% |██████
Collecting mox3===0.14.0 (from -c requirements/
Downloading mox3-0.
100% |██████
Collecting nodeenv===0.13.6 (from -c requirements/
Downloading nodeenv-