Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems running openstack commands on new installation #34

Closed
amanda11 opened this issue Feb 1, 2021 · 0 comments · Fixed by #35
Closed

Problems running openstack commands on new installation #34

amanda11 opened this issue Feb 1, 2021 · 0 comments · Fixed by #35
Assignees

Comments

@amanda11
Copy link
Contributor

amanda11 commented Feb 1, 2021

Installing the openstack pack on a new environment succeeded, but attempts to run commands such as openstack.server.list failed reporting an exception trace similar to following:

 File "/opt/stackstorm/virtualenvs/openstack/bin/openstack", line 6, in <module>
    from openstackclient.shell import main
  File "/opt/stackstorm/virtualenvs/openstack/lib/python3.6/site-packages/openstackclient/shell.py", line 24, in <module>
    from osc_lib import shell
  File "/opt/stackstorm/virtualenvs/openstack/lib/python3.6/site-packages/osc_lib/shell.py", line 24, in <module>
    from cliff import app
  File "/opt/stackstorm/virtualenvs/openstack/lib/python3.6/site-packages/cliff/app.py", line 22, in <module>
    import cmd2
  File "/opt/stackstorm/virtualenvs/openstack/lib/python3.6/site-packages/cmd2/__init__.py", line 30, in <module>
    from .cmd2 import Cmd
  File "/opt/stackstorm/virtualenvs/openstack/lib/python3.6/site-packages/cmd2/cmd2.py", line 182, in <module>
    class Cmd(cmd.Cmd):
  File "/opt/stackstorm/virtualenvs/openstack/lib/python3.6/site-packages/cmd2/cmd2.py", line 2785, in Cmd
    alias_parser = DEFAULT_ARGUMENT_PARSER(description=alias_description, epilog=alias_epilog)
  File "/opt/stackstorm/virtualenvs/openstack/lib/python3.6/site-packages/cmd2/argparse_custom.py", line 835, in __init__
    allow_abbrev=allow_abbrev)
TypeError: __init__() got an unexpected keyword argument 'allow_abbrev'
"
  stdout: ''

Investigation on what had changed, tracked it down to the problems only existed when newer version of cliff module were installed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant