Bug 1239144

Summary: appdirs requirement
Product: [Community] RDO Reporter: Martin Magr <mmagr>
Component: python-openstackclientAssignee: Jakub Ruzicka <jruzicka>
Status: CLOSED EOL QA Contact: Shai Revivo <srevivo>
Severity: high Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: apevec, jruzicka, jstransk
Target Milestone: ---   
Target Release: Kilo   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-19 15:43:38 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Martin Magr 2015-07-03 18:00:24 UTC
Description of problem:
Package python-openstackclient is missing python-appdirs Require:

[root@localhost ~]# openstack user list
Traceback (most recent call last):
  File "/usr/bin/openstack", line 6, in <module>
    from openstackclient.shell import main
  File "/usr/lib/python2.7/site-packages/openstackclient/shell.py", line 37, in <module>
    from os_client_config import config as cloud_config
  File "/usr/lib/python2.7/site-packages/os_client_config/__init__.py", line 15, in <module>
    from os_client_config.config import OpenStackConfig  # noqa
  File "/usr/lib/python2.7/site-packages/os_client_config/config.py", line 18, in <module>
    import appdirs
ImportError: No module named appdirs

Version-Release number of selected component (if applicable):
[root@localhost ~]# rpm -qa python-openstackclient
python-openstackclient-1.2.0-post24.fc21.noarch

Steps to Reproduce:
1. yum install python-openstackclient
2. openstack user list

Additional info:
This will probably need additional bug, but after installing python-appdirs manually I get following exception:

[root@localhost ~]# openstack user list
Traceback (most recent call last):
  File "/usr/bin/openstack", line 10, in <module>
    sys.exit(main())
  File "/usr/lib/python2.7/site-packages/openstackclient/shell.py", line 353, in main
    return OpenStackShell().run(argv)
  File "/usr/lib/python2.7/site-packages/openstackclient/shell.py", line 86, in __init__
    deferred_help=True)
TypeError: __init__() got an unexpected keyword argument 'deferred_help'
[root@localhost ~]# rpm -qa python-appdirs
python-appdirs-1.4.1-0.99.20150521.1352git.fc21.noarch

Comment 1 Martin Magr 2015-07-10 12:51:38 UTC
Problem in 'additional info' is cause by outdated python-cliff module.

Comment 2 Jiri Stransky 2015-07-10 12:55:32 UTC
Using python-cliff from delorean current fixes it:

python-cliff-1.13.0-post6.fc21.noarch

Comment 4 Chandan Kumar 2016-05-19 15:43:38 UTC
This bug is against a Version which has reached End of Life.
If it's still present in supported release (http://releases.openstack.org), please update Version and reopen.