how to handle SSL using novaclient library

asked 2014-03-27 01:39:59 -0600

laocius gravatar image

I am writing a python script to manage my instances. Before, everything worked well. Now the server require SSL authentication. I mean OS_AUTH_URL is something like https://xxxxx In CLI, I can use nova --insecure but in my script, I am using 'novaclient' library rather than calling CLI nova. The question is how to do the same thing in python library.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-03-27 03:21:27 -0600

laocius gravatar image

from novaclient.client import Client nova=Client(2,os.environ['OS_USERNAME'],os.environ['OS_PASSWORD'],os.environ['OS_TENANT_NAME'],os.environ['OS_AUTH_URL'],True)

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

Stats

Asked: 2014-03-27 01:39:59 -0600

Seen: 476 times

Last updated: Mar 27 '14