On 07/09/2018 02:46 AM, jayshankar nair wrote:




Hi,

I am unable to create containers in object store.

"Unable to get the Swift service info".
"Unable to get the swift container listing".

My horizon is running on 192.168.0.19. My swift is running on 192.168.0.12(how can i change it).

I am trying to list the container with python sdk. Is this the right api.

from openstack import connection
conn = connection.Connection(auth_url="http://192.168.0.19:5000/v3";,
                       project_name="admin",username="admin",
                       password="6908a8d218f843dd",
                       user_domain_id="default",
                       project_domain_id="default",
                       identity_api_version=3)

That looks fine (although you don't need identity_api_version=3 - you are specifying domain_ids - it'll figure things out)

Can you add:

import openstack
openstack.enable_logging(http_debug=True)

before your current code and paste the output?

for container in conn,object_store.containers():
print(container.name).

I need documentation of python sdk

https://docs.openstack.org/openstacksdk/latest/

Thanks,
Jayshankar


__________________________________________________________________________
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev



__________________________________________________________________________
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

Reply via email to