eonpatapon / contrail-api-cli

Simple CLI program to browse Contrail API server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to run contrail-api-cli on Contrail 3.0

saad-ngnware opened this issue · comments

I'm facing the following error. '' TypeError: register_argparse_arguments() got an unexpected keyword argument 'default' '' when I run the following command in shell: contrail-api-cli or any argument it keeps throwing the same error.
Been stuck at this for hours now. Any help would be great.

Please paste the full traceback.

Traceback (most recent call last): File "/usr/bin/contrail-api-cli", line 9, in <module> load_entry_point('contrail-api-cli==0.1b2', 'console_scripts', 'contrail-api-cli')() File "/usr/lib/python2.7/dist-packages/contrail_api_cli/main.py", line 57, in main auth.register_argparse_arguments(parser, argv, default="http") TypeError: register_argparse_arguments() got an unexpected keyword argument 'default'

The above is the stack trace no matter what arguments I pass to contrail-api-cli

What's your python-keystoneclient version ?

python-keystoneclient 0.10.1

I think it is too old can you try with a newer version ?

You need 0.11.0 at least. I will update the requirements

Okay Thanks! I'll test it and let you know if any success comes my way.

Does it work ?

Yes it did after a lot of tries. https://pypi.python.org/pypi/contrail-api-cli
I compiled your code using the above link because pip wasn't getting me anywhere and I was running into all sorts of issues. But the thing here is that there seems to be no 'tree' command which is what I was looking forward to. Can you guide me what could be the possible issue?
My keystone version is 1.20 and Contrail 3.02 with Openstack Kilo
image

Unfortunately I have been running into this error on all Contrail 3.0 distros.
image

I don't get it, can you paste the pip.log somewhere maybe ?

Downloading/unpacking contrail-api-cli
Getting page https://pypi.python.org/simple/contrail-api-cli/
URLs to search for versions for contrail-api-cli:

Seems you need to run pip install --pre contrail-api-cli