[openstack-dev] swift containers.
Monty Taylor
mordred at inaugust.com
Mon Jul 9 14:09:15 UTC 2018
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-request at lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
More information about the OpenStack-dev
mailing list