Ask Your Question

How can I know the openstacksdk connection is success or failture?

asked 2017-09-07 02:35:16 -0500

liaodalin19903 gravatar image

From openstacksdk source :, I can create a connect of connection:

 conn = connect.create_connection(settings.AUTH_URL, '', 'openstack', username, password)

But how can I know whether the conn is success? such as if I give a wrong password. or project name.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2017-09-07 03:12:27 -0500

liaodalin19903 gravatar image

Thanks for seanhandley, I can try to use the conn, so I can find whether there is issue.

Such as:

for server in conn.compute.servers():

    print server
edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2017-09-07 02:35:16 -0500

Seen: 102 times

Last updated: Sep 07 '17