[Openstack-operators] [Openstack-sdk] Error in making connection Openstack Python SDK

Anne Gentle annegentle at justwriteclick.com
Fri Mar 3 13:41:10 UTC 2017


On Fri, Mar 3, 2017 at 5:12 AM, Amit Kumar <ebiibe82 at gmail.com> wrote:

> 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 successful in executing the commands but python sdk
> connection is failing with following error:
>
> *"openstack.exceptions.HttpException: HttpException: Expecting to find
> domain in project - the server could not comply with the request since it
> is either malformed or otherwise incorrect. The client is assumed to be in
> error."*
>
> On noting the difference in wireshark traces, openstack command line
> client is adding "domain" related information in request but this domain
> related information is missing while attempting connection using python SDK.
>
> @openstack-sdk, could anyone provide information that how to add domain
> related information while attempting connection using python sdk.
>
>
I think that there may be two issues. One is that when you have a proxy
setup, the cloud will accept either Identity API v2.0 calls or Identity API
v3 calls. The Identity API v3 wants a domain indicator as well.

So, figure out which Identity API the cloud wants (I'm guessing v3) and add
domain info to your request.

Hope this helps -
Anne


> Regards,
> Amit
>
>
> On Thu, Mar 2, 2017 at 8:54 PM, Andy McCrae <andy.mccrae at gmail.com> wrote:
>
>> Hi Amit,
>>
>> Sending it again to include the ML!
>>
>> On 2 March 2017 at 11:01, Amit Kumar <ebiibe82 at gmail.com> wrote:
>>
>>> Hi All,
>>>
>>> I have deployed Openstack using Openstack-Ansible. I am using Newton
>>> release from tag 14.0.8. My test environment is containing only Compute
>>> Node and Controller Node (Infra Node).
>>> When using Openstack Python SDK, I am getting following error while
>>> making connection to external_vib_lp_address (192.168.255.45) binded to
>>> port 5000.
>>>
>>> *openstack.exceptions.SDKException: Connection failure that may be
>>> retried.*
>>>
>>
>> Based on the error this is a connection issue -  have you tested manually
>> connecting to the external address you listed on that port?
>> A good place to start would be to start looking at why it can't connect
>> and seeing if you can manually connect outside of using the SDK.
>>
>> Are you trying to connect from a separate host to the OpenStack
>> environment? If so can you even access 192.168.255.45?
>>
>> If you're still having issues feel free to jump into #openstack-ansible
>> on Freenode and hopefully you'll be able to get more help there!
>>
>> Andy
>>
>
>
> _______________________________________________
> OpenStack-operators mailing list
> OpenStack-operators at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
>
>


-- 

Read my blog: justwrite.click <https://justwriteclick.com>
Subscribe to Docs|Code: docslikecode.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-operators/attachments/20170303/ff2aca56/attachment.html>


More information about the OpenStack-operators mailing list