Not able to retrieve network list

Asked by Santhan P on 2016-03-15

Hi,

I a new to using openstack sdk. I am following the example and created connection.

I am not able to fetch any details related to any service. I keep getting this error.

Code:
auth_args = {"auth_url" : "http://controller:35357/v2","project_name" : "admin", "user_name" : "admin","password" : "admin"}

conn = connection.Connection( **auth_args)

Error:
openstack.exceptions.NotFoundException: NotFoundException: The resource could not be found.

I also tried to get the token manually by using the below method

conn.authorize() --> This returns nothing and code fails

Can you please give your suggestions?

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack SDK Edit question
Assignee:
No assignee Edit question
Solved by:
Santhan P
Solved:
2016-03-22
Last query:
2016-03-22
Last reply:
Santhan P (shanthan-andhra) said : #1

It was due to incorrect auth_url.

xugangsh (xugangsh) said : #2

I hit the same error.
For auth_url, I think it should controller:5000/v2, right?
How do you solve it?

BTW, I found if no profile specified, it will not work, right?

Santhan P (shanthan-andhra) said : #3

Use v2.0 instead of v2. It will solve the error.

Also, this might help you https://github.com/openstack/python-openstacksdk/blob/master/examples/connect.py

Santhan P (shanthan-andhra) said : #4

Use v2.0 instead of v2. It will solve the error.

Also, this might help you
https://github.com/openstack/python-openstacksdk/blob/master/examples/connect.py

On 24 June 2016 at 20:37, xugangsh <email address hidden>
wrote:

> Your question #288692 on OpenStack SDK changed:
> https://answers.launchpad.net/python-openstacksdk/+question/288692
>
> xugangsh posted a new comment:
> I hit the same error.
> For auth_url, I think it should controller:5000/v2, right?
> How do you solve it?
>
> BTW, I found if no profile specified, it will not work, right?
>
> --
> You received this question notification because you asked the question.
>

--
Regards,
Santhan Pamulapati