Re: [Openstack] [Openstack-sdk] Error in making connection Openstack Python SDK

2017-03-04 Thread Michael Gale
Hello Amit, Happy to hear the code snip helped, I am using Python3 and the build in configparser: https://docs.python.org/3/library/configparser.html. If you are using Python2 the syntax is slightly different. I have a config file that looks like this: --snip-- [DEFAULT] verify_certs = false

Re: [Openstack] [Openstack-sdk] Error in making connection Openstack Python SDK

2017-03-04 Thread Amit Kumar
Thanks Michael for providing the code snippet. It was of great help. I was doing things as expected but missed to set interface in profile. Could you please provide some reference to what configparser object. I am using code provided by you except setting config parser object and getting SSL error

Re: [Openstack] [Openstack-sdk] Error in making connection Openstack Python SDK

2017-03-03 Thread Michael Gale
Hey, Here is how I am authenticating using openstacksdk: --snip-- from openstack import connection from openstack import profile from openstack import utils def _create_connection(self, cloud_params, configobj): auth_args = { 'auth_url' : cloud_params['OS_AUTH_URL'],

Re: [Openstack] [Openstack-sdk] Error in making connection Openstack Python SDK

2017-03-03 Thread Amit Kumar
Andy, thanks for your response. Address is reachable. I am running Horizon UI on this address successfully. I used "http" whereas it should be "https" but it is not working currently with https as well. Anyways, I tried the script from utility container where openstack command line client is succ