Re: [openstack-dev] swift containers.

2018-07-09 Thread jayshankar nair
 
Hi,

The debugging output is as below.

python firststack.py
Manager defaults:unknown running task compute.GET.servers.detail
REQ: curl -g -i -X GET http://192.168.0.19:5000/v3 -H "Accept: 
application/json" -H "User-Agent: openstacksdk/0.11.3 keystoneauth1/3.4.0 
python-requests/2.14.2 CPython/2.7.5"
RESP: [200] Date: Tue, 10 Jul 2018 01:15:04 GMT Server: Apache/2.4.6 (CentOS) 
Vary: X-Auth-Token,Accept-Encoding x-openstack-request-id: 
req-3c244cef-1c7c-4d51-9b18-e6e1d5418713 Content-Encoding: gzip Content-Length: 
196 Keep-Alive: timeout=15, max=100 Connection: Keep-Alive Content-Type: 
application/json 
RESP BODY: {"version": {"status": "stable", "updated": "2018-02-28T00:00:00Z", 
"media-types": [{"base": "application/json", "type": 
"application/vnd.openstack.identity-v3+json"}], "id": "v3.10", "links": 
[{"href": "http://192.168.0.19:5000/v3/";, "rel": "self"}]}}

GET call to None for http://192.168.0.19:5000/v3 used request id 
req-3c244cef-1c7c-4d51-9b18-e6e1d5418713
Making authentication request to http://192.168.0.19:5000/v3/auth/tokens
{"token": {"is_domain": false, "methods": ["password"], "roles": [{"id": 
"2e79a56540684ebb8fc177433d67b2a5", "name": "admin"}], "expires_at": 
"2018-07-10T02:15:05.00Z", "project": {"domain": {"id": "default", "name": 
"Default"}, "id": "4a0d46f830044e74b1a84c93e5dbacda", "name": "admin"}, 
"catalog": [{"endpoints": [{"url": "http://192.168.0.19:9696";, "interface": 
"admin", "region": "RegionOne", "region_id": "RegionOne", "id": 
"0b574bc23cc54bd8a1266ed858a2e87f"}, {"url": "http://192.168.0.19:9696";, 
"interface": "public", "region": "RegionOne", "region_id": "RegionOne", "id": 
"3066119a6c9147fa8e4626725c3a34ad"}, {"url": "http://192.168.0.19:9696";, 
"interface": "internal", "region": "RegionOne", "region_id": "RegionOne", "id": 
"4243ebf7df0f46fbb062b828d7147ca4"}], "type": "network", "id": 
"2c9f0da1dc514008bdc8bf967be6eeaa", "name": "neutron"}, {"endpoints": [{"url": 
"http://192.168.0.19:8776/v2/4a0d46f830044e74b1a84c93e5dbacda";, "interface": 
"public", "region": "RegionOne", "region_id": "RegionOne", "id": 
"59c73f5064b7494faa5ca3b389403746"}, {"url": 
"http://192.168.0.19:8776/v2/4a0d46f830044e74b1a84c93e5dbacda";, "interface": 
"admin", "region": "RegionOne", "region_id": "RegionOne", "id": 
"addbbfdb56a244eba884e3995a548b16"}, {"url": 
"http://192.168.0.19:8776/v2/4a0d46f830044e74b1a84c93e5dbacda";, "interface": 
"internal", "region": "RegionOne", "region_id": "RegionOne", "id": 
"f44419832a474e3fa08716945b520219"}], "type": "volumev2", "id": 
"31160ee3b1c54c8ca5a90c417f4f1425", "name": "cinderv2"}, {"endpoints": [{"url": 
"http://192.168.0.19:8776/v3/4a0d46f830044e74b1a84c93e5dbacda";, "interface": 
"admin", "region": "RegionOne", "region_id": "RegionOne", "id": 
"19b9b5d72f4540f183c4ab574d3efd71"}, {"url": 
"http://192.168.0.19:8776/v3/4a0d46f830044e74b1a84c93e5dbacda";, "interface": 
"internal", "region": "RegionOne", "region_id": "RegionOne", "id": 
"1ded29d260604e9b9cf14706fa558a21"}, {"url": 
"http://192.168.0.19:8776/v3/4a0d46f830044e74b1a84c93e5dbacda";, "interface": 
"public", "region": "RegionOne", "region_id": "RegionOne", "id": 
"c4021436be5845cf8efa797f27e48b63"}], "type": "volumev3", "id": 
"3da7323094724d35b987fe60fbc7ea38", "name": "cinderv3"}, {"endpoints": [{"url": 
"http://192.168.0.19:8776/v1/4a0d46f830044e74b1a84c93e5dbacda";, "interface": 
"admin", "region": "RegionOne", "region_id": "RegionOne", "id": 
"6b5f1f96bef1441fa16947e3d2578732"}, {"url": 
"http://192.168.0.19:8776/v1/4a0d46f830044e74b1a84c93e5dbacda";, "interface": 
"internal", "region": "RegionOne", "region_id": "RegionOne", "id": 
"d9dfe7db65824874af7a093f16a7ebd0"}, {"url": 
"http://192.168.0.19:8776/v1/4a0d46f830044e74b1a84c93e5dbacda";, "interface": 
"public", "region": "RegionOne", "region_id": "RegionOne", "id": 
"fed975472ca849b0a4d39570c3ab941b"}], "type": "volume", "id": 
"600f1705da8a41aeb87d22cff26a7d49", "name": "cinder"}, {"endpoints": [{"url": 
"http://192.168.0.19:8774/v2.1/4a0d46f830044e74b1a84c93e5dbacda";, "interface": 
"admin", "region": "RegionOne", "region_id": "RegionOne", "id": 
"2bea479cb5ea4d128ce9e7f8009be760"}, {"url": 
"http://192.168.0.19:8774/v2.1/4a0d46f830044e74b1a84c93e5dbacda";, "interface": 
"internal", "region": "RegionOne", "region_id": "RegionOne", "id": 
"babb14683847492eb3129535bda12f78"}, {"url": 
"http://192.168.0.19:8774/v2.1/4a0d46f830044e74b1a84c93e5dbacda";, "interface": 
"public", "region": "RegionOne", "region_id": "RegionOne", "id": 
"c82c93df6ffa4780a1e4c8912877f710"}], "type": "compute", "id": 
"6b4e3642519941bbbfb9c4163da331c7", "name": "nova"}, {"endpoints": [{"url": 
"http://192.168.0.12:8041";, "interface": "public", "region": "RegionOne", 
"region_id": "RegionOne", "id": "00055fa2240248bf9e693a1d446c7c59"}, {"url": 
"http://192.168.0.12:8041";, "interface": "internal", "region": "RegionOne", 
"region_id": "RegionOne", "id": "88431c7c2f67409fb0fc41fe68ec3ead"}, {"url": 
"http://192.168.0.12:8041";, "interf

Re: [openstack-dev] swift containers.

2018-07-09 Thread Monty Taylor

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


Re: [openstack-dev] swift containers.

2018-07-08 Thread jayshankar nair
 

   
 
 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 connectionconn = 
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)


for container in conn,object_store.containers():print(container.name).
I need documentation of python sdk
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-dev] swift containers.

2018-07-08 Thread jayshankar nair
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 connectionconn = 
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)


for container in conn,object_store.containers():print(container.name).
I need documentation of python sdk
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