<div dir="ltr">This isn't that surprising to me, the CLI support for objects / containers in OpenStackClient is pretty basic.<div><br></div><div>I wonder if the swift CLI is doing something different (threading / looking at different endpoint types). Feel free to open a bug against OpenStackClient at: <a href="https://bugs.launchpad.net/python-openstackclient">https://bugs.launchpad.net/python-openstackclient</a></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 4, 2017 at 9:38 AM, <a href="mailto:dongjh@ahope.com.cn">dongjh@ahope.com.cn</a> <span dir="ltr"><<a href="mailto:dongjh@ahope.com.cn" target="_blank">dongjh@ahope.com.cn</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>
<div><b><span></span>The red lines hang several minutes... Swift CLI is fast...</b></div><div><br></div><div><span style="background-color:rgba(0,0,0,0)">[root@controller /]# . /demo-<wbr>openrc<br>[root@controller /]# <wbr>openstack object save <wbr>container1 cirros-0.3.4-x86_<wbr>64-disk.img --debug<br>START with options: [u'object'<wbr>, u'save', u'container1', u'<wbr>cirros-0.3.4-x86_64-disk.img',<wbr> u'--debug']<br>options: Namespace(access_key=<wbr>'', access_secret='***', <wbr>access_token='***', access_<wbr>token_endpoint='', access_<wbr>token_type='', auth_type='', <wbr>auth_url='<a href="http://controller:5000/v3" target="_blank">http://controller:<wbr>5000/v3</a>', authorization_code='<wbr>', cacert=None, cert='', <wbr>client_id='', client_secret='*<wbr>**', cloud='', consumer_key=''<wbr>, consumer_secret='***', <wbr>debug=True, default_domain='<wbr>default', default_domain_id=''<wbr>, default_domain_name='', <wbr>deferred_help=False, <wbr>discovery_endpoint='', domain_<wbr>id='', domain_name='', <wbr>endpoint='', identity_<wbr>provider='', identity_<wbr>provider_url='', insecure=<wbr>None, interface='', key='', <wbr>log_file=None, old_profile=<wbr>None, openid_scope='', os_<wbr>beta_command=False, os_<wbr>compute_api_version='', os_<wbr>data_processing_api_version='<wbr>1.1', os_data_processing_url='<wbr>', os_dns_api_version='2', os_<wbr>identity_api_version='3', os_<wbr>image_api_version='2', os_key_<wbr>manager_api_version='1', os_<wbr>network_api_version='', os_<wbr>object_api_version='', os_<wbr>orchestration_api_version='1',<wbr> os_project_id=None, os_<wbr>project_name=None, os_volume_<wbr>api_version='', os_workflow_<wbr>api_version='2', passcode='', <wbr>password='***', profile=None, <wbr>project_domain_id='', project_<wbr>domain_name='default', <wbr>project_id='', project_name='<wbr>demo', protocol='', redirect_<wbr>uri='', region_name='', <wbr>timing=False, token='***', <wbr>trust_id='', url='', user_<wbr>domain_id='', user_domain_<wbr>name='default', user_id='', <wbr>username='demo', verbose_<wbr>level=3, verify=None)<br>Auth plugin password selected<br>auth_config_hook(): {'auth_<wbr>type': 'password', 'beta_<wbr>command': False, u'compute_<wbr>api_version': u'2', u'<wbr>orchestration_api_version': '<wbr>1', u'database_api_version': <wbr>u'1.0', 'data_processing_api_<wbr>version': '1.1', 'auth_url': '<a href="http://controller:5000/v3" target="_blank"><wbr>http://controller:5000/v3</a>', u'<wbr>network_api_version': u'2', u'<wbr>message': u'', u'image_format'<wbr>: u'qcow2', 'networks': [], u'<wbr>image_api_version': '2', '<wbr>verify': True, u'dns_api_<wbr>version': '2', u'object_store_<wbr>api_version': u'1', 'username'<wbr>: 'demo', 'verbose_level': 3, <wbr>'region_name': '', 'api_<wbr>timeout': None, u'baremetal_<wbr>api_version': u'1', 'auth': {'<wbr>user_domain_name': 'default', <wbr>'project_name': 'demo', '<wbr>project_domain_name': '<wbr>default'}, 'default_domain': '<wbr>default', 'debug': True, u'<wbr>image_api_use_tasks': False, <wbr>u'floating_ip_source': u'<wbr>neutron', 'key': None, '<wbr>timing': False, 'password': '<wbr>demo', 'cacert': None, u'key_<wbr>manager_api_version': '1', u'<wbr>metering_api_version': u'2', '<wbr>deferred_help': False, u'<wbr>identity_api_version': '3', '<wbr>workflow_api_version': '2', u'<wbr>volume_api_version': u'2', '<wbr>cert': None, u'secgroup_<wbr>source': u'neutron', u'status'<wbr>: u'active', u'container_api_<wbr>version': u'1', u'interface': <wbr>None, u'disable_vendor_agent':<wbr> {}}<br>defaults: {u'auth_type': '<wbr>password', u'status': u'<wbr>active', u'compute_api_<wbr>version': u'2', 'key': None, <wbr>u'database_api_version': u'1.<wbr>0', 'api_timeout': None, u'<wbr>baremetal_api_version': u'1', <wbr>u'image_api_version': u'2', u'<wbr>metering_api_version': u'2', <wbr>u'image_api_use_tasks': False,<wbr> u'floating_ip_source': u'<wbr>neutron', u'orchestration_api_<wbr>version': u'1', 'cacert': <wbr>None, u'network_api_version': <wbr>u'2', u'message': u'', u'<wbr>image_format': u'qcow2', u'<wbr>key_manager_api_version': u'<wbr>v1', 'verify': True, u'<wbr>identity_api_version': u'2.0',<wbr> u'volume_api_version': u'2', <wbr>'cert': None, u'secgroup_<wbr>source': u'neutron', u'<wbr>container_api_version': u'1', <wbr>u'dns_api_version': u'2', u'<wbr>object_store_api_version': u'<wbr>1', u'interface': None, u'<wbr>disable_vendor_agent': {}}<br>cloud cfg: {'auth_type': '<wbr>password', 'beta_command': <wbr>False, u'compute_api_version':<wbr> u'2', 'key': None, u'<wbr>database_api_version': u'1.0',<wbr> 'data_processing_api_version'<wbr>: '1.1', 'auth_url': '<a href="http://controller:5000/v3" target="_blank">http://<wbr>controller:5000/v3</a>', u'<wbr>network_api_version': u'2', u'<wbr>message': u'', u'image_format'<wbr>: u'qcow2', 'networks': [], u'<wbr>image_api_version': '2', '<wbr>verify': True, u'dns_api_<wbr>version': '2', u'object_store_<wbr>api_version': u'1', 'username'<wbr>: 'demo', 'verbose_level': 3, <wbr>'region_name': '', 'api_<wbr>timeout': None, u'baremetal_<wbr>api_version': u'1', 'auth': {'<wbr>username': 'demo', 'project_<wbr>name': 'demo', 'user_domain_<wbr>name': 'default', 'auth_url': <wbr>'<a href="http://controller:5000/v3" target="_blank">http://controller:5000/v3</a>', '<wbr>password': '***', 'project_<wbr>domain_name': 'default'}, '<wbr>default_domain': 'default', u'<wbr>container_api_version': u'1', <wbr>u'image_api_use_tasks': False,<wbr> u'floating_ip_source': u'<wbr>neutron', u'orchestration_api_<wbr>version': '1', 'timing': <wbr>False, 'password': '***', '<wbr>cacert': None, u'key_manager_<wbr>api_version': '1', u'metering_<wbr>api_version': u'2', 'deferred_<wbr>help': False, u'identity_api_<wbr>version': '3', 'workflow_api_<wbr>version': '2', u'volume_api_<wbr>version': u'2', 'cert': None, <wbr>u'secgroup_source': u'neutron'<wbr>, u'status': u'active', '<wbr>debug': True, u'interface': <wbr>None, u'disable_vendor_agent':<wbr> {}}<br>compute API version 2, cmd <wbr>group openstack.compute.v2<br>network API version 2, cmd <wbr>group openstack.network.v2<br>image API version 2, cmd <wbr>group openstack.image.v2<br>volume API version 2, cmd <wbr>group openstack.volume.v2<br>identity API version 3, cmd <wbr>group openstack.identity.v3<br>object_store API version 1, <wbr>cmd group openstack.object_<wbr>store.v1<br>neutronclient API version 2, <wbr>cmd group openstack.<wbr>neutronclient.v2<br>dns API version 2, cmd group <wbr>openstack.dns.v2<br>key_manager API version 1, <wbr>cmd group openstack.key_<wbr>manager.v1<br>workflow_engine API version 2,<wbr> cmd group openstack.workflow_<wbr>engine.v2<br>orchestration API version 1, <wbr>cmd group openstack.<wbr>orchestration.v1<br>data_processing API version 1.<wbr>1, cmd group openstack.data_<wbr>processing.v1<br>Auth plugin password selected<br>auth_config_hook(): {'auth_<wbr>type': 'password', 'beta_<wbr>command': False, u'compute_<wbr>api_version': u'2', u'<wbr>orchestration_api_version': '<wbr>1', u'database_api_version': <wbr>u'1.0', 'data_processing_api_<wbr>version': '1.1', 'auth_url': '<a href="http://controller:5000/v3" target="_blank"><wbr>http://controller:5000/v3</a>', u'<wbr>network_api_version': u'2', u'<wbr>message': u'', u'image_format'<wbr>: u'qcow2', 'networks': [], u'<wbr>image_api_version': '2', '<wbr>verify': True, u'dns_api_<wbr>version': '2', u'object_store_<wbr>api_version': u'1', 'username'<wbr>: 'demo', 'verbose_level': 3, <wbr>'region_name': '', 'api_<wbr>timeout': None, u'baremetal_<wbr>api_version': u'1', 'auth': {'<wbr>user_domain_name': 'default', <wbr>'project_name': 'demo', '<wbr>project_domain_name': '<wbr>default'}, 'default_domain': '<wbr>default', 'debug': True, u'<wbr>image_api_use_tasks': False, <wbr>u'floating_ip_source': u'<wbr>neutron', 'key': None, '<wbr>timing': False, 'password': '<wbr>demo', 'cacert': None, u'key_<wbr>manager_api_version': '1', u'<wbr>metering_api_version': u'2', '<wbr>deferred_help': False, u'<wbr>identity_api_version': '3', '<wbr>workflow_api_version': '2', u'<wbr>volume_api_version': u'2', '<wbr>cert': None, u'secgroup_<wbr>source': u'neutron', u'status'<wbr>: u'active', u'container_api_<wbr>version': u'1', u'interface': <wbr>None, u'disable_vendor_agent':<wbr> {}}<br>Auth plugin password selected<br>auth_config_hook(): {'auth_<wbr>type': 'password', 'beta_<wbr>command': False, u'compute_<wbr>api_version': u'2', u'<wbr>orchestration_api_version': '<wbr>1', u'database_api_version': <wbr>u'1.0', 'data_processing_api_<wbr>version': '1.1', 'auth_url': '<a href="http://controller:5000/v3" target="_blank"><wbr>http://controller:5000/v3</a>', u'<wbr>network_api_version': u'2', u'<wbr>message': u'', u'image_format'<wbr>: u'qcow2', 'networks': [], u'<wbr>image_api_version': '2', '<wbr>verify': True, u'dns_api_<wbr>version': '2', u'object_store_<wbr>api_version': u'1', 'username'<wbr>: 'demo', 'verbose_level': 3, <wbr>'region_name': '', 'api_<wbr>timeout': None, u'baremetal_<wbr>api_version': u'1', 'auth': {'<wbr>user_domain_name': 'default', <wbr>'project_name': 'demo', '<wbr>project_domain_name': '<wbr>default'}, 'default_domain': '<wbr>default', 'debug': True, u'<wbr>image_api_use_tasks': False, <wbr>u'floating_ip_source': u'<wbr>neutron', 'key': None, '<wbr>timing': False, 'password': '<wbr>demo', 'cacert': None, u'key_<wbr>manager_api_version': '1', u'<wbr>metering_api_version': u'2', '<wbr>deferred_help': False, u'<wbr>identity_api_version': '3', '<wbr>workflow_api_version': '2', u'<wbr>volume_api_version': u'2', '<wbr>cert': None, u'secgroup_<wbr>source': u'neutron', u'status'<wbr>: u'active', u'container_api_<wbr>version': u'1', u'interface': <wbr>None, u'disable_vendor_agent':<wbr> {}}<br>command: object save -> <wbr>openstackclient.object.v1.<wbr>object.SaveObject<br>Using auth plugin: password<br>Using parameters {'username': <wbr>'demo', 'project_name': 'demo'<wbr>, 'user_domain_name': '<wbr>default', 'auth_url': '<a href="http://controller:5000/v3" target="_blank">http://<wbr>controller:5000/v3</a>', '<wbr>password': '***', 'project_<wbr>domain_name': 'default'}<br>Get auth_ref<br>REQ: curl -g -i -X GET <a href="http://controller:5000/v3" target="_blank">http://<wbr>controller:5000/v3</a> -H "Accept:<wbr> application/json" -H "User-<wbr>Agent: osc-lib keystoneauth1/<wbr>2.12.2 python-requests/2.10.0 <wbr>CPython/2.7.5"<br>Starting new HTTP connection (<wbr>1): controller<br>"GET /v3 HTTP/1.1" 200 249<br>RESP: [200] Date: Wed, 04 Jan <wbr>2017 14:16:47 GMT Server: <wbr>Apache/2.4.6 (CentOS) mod_<wbr>wsgi/3.4 Python/2.7.5 Vary: X-<wbr>Auth-Token x-openstack-<wbr>request-id: req-e87a77cb-ecf2-<wbr>49a8-9981-82abf8d1505d <wbr>Content-Length: 249 Keep-<wbr>Alive: timeout=5, max=100 <wbr>Connection: Keep-Alive <wbr>Content-Type: application/json<br>RESP BODY: {"version": {"<wbr>status": "stable", "updated": <wbr>"2016-10-06T00:00:00Z", "<wbr>media-types": [{"base": "<wbr>application/json", "type": "<wbr>application/vnd.openstack.<wbr>identity-v3+json"}], "id": "<wbr>v3.7", "links": [{"href": "<a href="http://controller:5000/v3/" target="_blank">htt<wbr>p://controller:5000/v3/</a>", "<wbr>rel": "self"}]}}<br><br>Making authentication request <wbr>to <a href="http://controller:5000/v3/auth/tokens" target="_blank">http://controller:5000/v3/<wbr>auth/tokens</a><br>"POST /v3/auth/tokens HTTP/1.<wbr>1" 201 4748<br>{"token": {"is_domain": false,<wbr> "methods": ["password"], "<wbr>roles": [{"id": "<wbr>f3b5edbdd90a46249c506fd725bea7<wbr>cc", "name": "user"}], "<wbr>expires_at": "2017-01-04T15:<wbr>16:47.000000Z", "project": {"<wbr>domain": {"id": "default", "<wbr>name": "Default"}, "id": "<wbr>6fc70c831270448296c9c25361769c<wbr>f5", "name": "demo"}, "<wbr>catalog": [{"endpoints": [{"<wbr>url": "<a href="http://controller:35357/v3/" target="_blank">http://controller:<wbr>35357/v3/</a>", "interface": "<wbr>internal", "region": "<wbr>RegionOne", "region_id": "<wbr>RegionOne", "id": "<wbr>6748fb0f735e49fea7af7197f5b9fd<wbr>2e"}, {"url": "<a href="http://controller:35357/v3/" target="_blank">http://<wbr>controller:35357/v3/</a>", "<wbr>interface": "admin", "region":<wbr> "RegionOne", "region_id": "<wbr>RegionOne", "id": "<wbr>705880eae3724ad4a7e87ec73abb9f<wbr>4a"}, {"url": "<a href="http://controller:5000/v3/" target="_blank">http://<wbr>controller:5000/v3/</a>", "<wbr>interface": "public", "region"<wbr>: "RegionOne", "region_id": "<wbr>RegionOne", "id": "<wbr>eef092ba38354716a07a8663a8799d<wbr>3b"}], "type": "identity", "<wbr>id": "<wbr>0d2367d19f2249a28bacb407a767f5<wbr>ea", "name": "keystone"}, {"<wbr>endpoints": [{"url": "<a href="http://controller:9292" target="_blank">http://<wbr>controller:9292</a>", "interface":<wbr> "internal", "region": "<wbr>RegionOne", "region_id": "<wbr>RegionOne", "id": "<wbr>72cd4dce5fda472c9ee4ccea1763bd<wbr>d8"}, {"url": "<a href="http://controller:9292" target="_blank">http://<wbr>controller:9292</a>", "interface":<wbr> "admin", "region": "<wbr>RegionOne", "region_id": "<wbr>RegionOne", "id": "<wbr>7f49508e41a7449286bbae22ad3e10<wbr>09"}, {"url": "<a href="http://controller:9292" target="_blank">http://<wbr>controller:9292</a>", "interface":<wbr> "public", "region": "<wbr>RegionOne", "region_id": "<wbr>RegionOne", "id": "<wbr>a39ad51dd9044bbbaa15d9b5bb408d<wbr>63"}], "type": "image", "id": <wbr>"<wbr>5aa73a7985914d019e255ba4735c80<wbr>50", "name": "glance"}, {"<wbr>endpoints": [{"url": "<a href="http://controller:8776/v1/6fc70c831270448296c9c25361769cf5" target="_blank">http://<wbr>controller:8776/v1/<wbr>6fc70c831270448296c9c25361769c<wbr>f5</a>", "interface": "admin", "<wbr>region": "RegionOne", "region_<wbr>id": "RegionOne", "id": "<wbr>94430dcb24fa4a67866b9211b115ba<wbr>8d"}, {"url": "<a href="http://controller:8776/v1/6fc70c831270448296c9c25361769cf5" target="_blank">http://<wbr>controller:8776/v1/<wbr>6fc70c831270448296c9c25361769c<wbr>f5</a>", "interface": "public", "<wbr>region": "RegionOne", "region_<wbr>id": "RegionOne", "id": "<wbr>9679385e8bf646c195b4387d07e398<wbr>13"}, {"url": "<a href="http://controller:8776/v1/6fc70c831270448296c9c25361769cf5" target="_blank">http://<wbr>controller:8776/v1/<wbr>6fc70c831270448296c9c25361769c<wbr>f5</a>", "interface": "internal", <wbr>"region": "RegionOne", "<wbr>region_id": "RegionOne", "id":<wbr> "<wbr>b121154b31f74c8f8d1fc45b1f2cf0<wbr>aa"}], "type": "volume", "id":<wbr> "<wbr>74ce6a390216440db29e6ea10f6b91<wbr>ff", "name": "cinder"}, {"<wbr>endpoints": [{"url": "<a href="http://controller:8774/v2.1/6fc70c831270448296c9c25361769cf5" target="_blank">http://<wbr>controller:8774/v2.1/<wbr>6fc70c831270448296c9c25361769c<wbr>f5</a>", "interface": "internal", <wbr>"region": "RegionOne", "<wbr>region_id": "RegionOne", "id":<wbr> "<wbr>2e1e0df066594307a01129e260de43<wbr>47"}, {"url": "<a href="http://controller:8774/v2.1/6fc70c831270448296c9c25361769cf5" target="_blank">http://<wbr>controller:8774/v2.1/<wbr>6fc70c831270448296c9c25361769c<wbr>f5</a>", "interface": "admin", "<wbr>region": "RegionOne", "region_<wbr>id": "RegionOne", "id": "<wbr>84fb72a51bc54856a8fc046fd5ae98<wbr>31"}, {"url": "<a href="http://controller:8774/v2.1/6fc70c831270448296c9c25361769cf5" target="_blank">http://<wbr>controller:8774/v2.1/<wbr>6fc70c831270448296c9c25361769c<wbr>f5</a>", "interface": "public", "<wbr>region": "RegionOne", "region_<wbr>id": "RegionOne", "id": "<wbr>ad77ed7ffd124197a268563a26e18a<wbr>7c"}], "type": "compute", "id"<wbr>: "<wbr>83b496cc41eb455ea1cd871b86d76d<wbr>09", "name": "nova"}, {"<wbr>endpoints": [{"url": "<a href="http://controller:8776/v2/6fc70c831270448296c9c25361769cf5" target="_blank">http://<wbr>controller:8776/v2/<wbr>6fc70c831270448296c9c25361769c<wbr>f5</a>", "interface": "admin", "<wbr>region": "RegionOne", "region_<wbr>id": "RegionOne", "id": "<wbr>06fb7274890f4e5580aedaa137415b<wbr>75"}, {"url": "<a href="http://controller:8776/v2/6fc70c831270448296c9c25361769cf5" target="_blank">http://<wbr>controller:8776/v2/<wbr>6fc70c831270448296c9c25361769c<wbr>f5</a>", "interface": "internal", <wbr>"region": "RegionOne", "<wbr>region_id": "RegionOne", "id":<wbr> "<wbr>660a72066792425392e615b41180ec<wbr>a7"}, {"url": "<a href="http://controller:8776/v2/6fc70c831270448296c9c25361769cf5" target="_blank">http://<wbr>controller:8776/v2/<wbr>6fc70c831270448296c9c25361769c<wbr>f5</a>", "interface": "public", "<wbr>region": "RegionOne", "region_<wbr>id": "RegionOne", "id": "<wbr>f13771cf78474a0a90eada29257cfb<wbr>40"}], "type": "volumev2", "<wbr>id": "<wbr>897dd05cadf2484f9085f21670aa48<wbr>5a", "name": "cinderv2"}, {"<wbr>endpoints": [{"url": "<a href="http://controller:8080/v1" target="_blank">http://<wbr>controller:8080/v1</a>", "<wbr>interface": "admin", "region":<wbr> "RegionOne", "region_id": "<wbr>RegionOne", "id": "<wbr>50905aefc490422d8590891af65da4<wbr>87"}, {"url": "<a href="http://controller:8080/v1/AUTH_6fc70c831270448296c9c25361769cf5" target="_blank">http://<wbr>controller:8080/v1/AUTH_<wbr>6fc70c831270448296c9c25361769c<wbr>f5</a>", "interface": "internal", <wbr>"region": "RegionOne", "<wbr>region_id": "RegionOne", "id":<wbr> "<wbr>b7106e3ae36b4f8292169a859754a1<wbr>c9"}, {"url": "<a href="http://controller:8080/v1/AUTH_6fc70c831270448296c9c25361769cf5" target="_blank">http://<wbr>controller:8080/v1/AUTH_<wbr>6fc70c831270448296c9c25361769c<wbr>f5</a>", "interface": "public", "<wbr>region": "RegionOne", "region_<wbr>id": "RegionOne", "id": "<wbr>fa222e78266c4f70b8a8267ecc18ef<wbr>4a"}], "type": "object-store",<wbr> "id": "<wbr>d85e6bb55ecf431c8a4693f24c2750<wbr>df", "name": "swift"}, {"<wbr>endpoints": [{"url": "<a href="http://controller:9696" target="_blank">http://<wbr>controller:9696</a>", "interface":<wbr> "admin", "region": "<wbr>RegionOne", "region_id": "<wbr>RegionOne", "id": "<wbr>0edaf79aac3f466daa38363e978198<wbr>ac"}, {"url": "<a href="http://controller:9696" target="_blank">http://<wbr>controller:9696</a>", "interface":<wbr> "internal", "region": "<wbr>RegionOne", "region_id": "<wbr>RegionOne", "id": "<wbr>2bf3f0355f9a448985d1a53cba578e<wbr>55"}, {"url": "<a href="http://controller:9696" target="_blank">http://<wbr>controller:9696</a>", "interface":<wbr> "public", "region": "<wbr>RegionOne", "region_id": "<wbr>RegionOne", "id": "<wbr>6d54619f9e72469f92823ab1bad703<wbr>53"}], "type": "network", "id"<wbr>: "<wbr>fc04a1ebb8944c709942dd686c42fe<wbr>94", "name": "neutron"}], "<wbr>user": {"domain": {"id": "<wbr>default", "name": "Default"}, <wbr>"id": "<wbr>d8acb30b89ed44bea9568d556b54b8<wbr>d3", "name": "demo"}, "audit_<wbr>ids": ["5vRBbs5HSHqKOnZ-<wbr>9kC2Jw"], "issued_at": "2017-<wbr>01-04T14:16:47.000000Z"}}<br>run(Namespace(container=u'<wbr>container1', file=None, <wbr>object=u'cirros-0.3.4-x86_64-<wbr>disk.img'))<br>Making authentication request <wbr>to <a href="http://controller:5000/v3/auth/tokens" target="_blank">http://controller:5000/v3/<wbr>auth/tokens</a><br>"POST /v3/auth/tokens HTTP/1.<wbr>1" 201 4748<br>{"token": {"is_domain": false,<wbr> "methods": ["password"], "<wbr>roles": [{"id": "<wbr>f3b5edbdd90a46249c506fd725bea7<wbr>cc", "name": "user"}], "<wbr>expires_at": "2017-01-04T15:<wbr>16:47.000000Z", "project": {"<wbr>domain": {"id": "default", "<wbr>name": "Default"}, "id": "<wbr>6fc70c831270448296c9c25361769c<wbr>f5", "name": "demo"}, "<wbr>catalog": [{"endpoints": [{"<wbr>url": "<a href="http://controller:35357/v3/" target="_blank">http://controller:<wbr>35357/v3/</a>", "interface": "<wbr>internal", "region": "<wbr>RegionOne", "region_id": "<wbr>RegionOne", "id": "<wbr>6748fb0f735e49fea7af7197f5b9fd<wbr>2e"}, {"url": "<a href="http://controller:35357/v3/" target="_blank">http://<wbr>controller:35357/v3/</a>", "<wbr>interface": "admin", "region":<wbr> "RegionOne", "region_id": "<wbr>RegionOne", "id": "<wbr>705880eae3724ad4a7e87ec73abb9f<wbr>4a"}, {"url": "<a href="http://controller:5000/v3/" target="_blank">http://<wbr>controller:5000/v3/</a>", "<wbr>interface": "public", "region"<wbr>: "RegionOne", "region_id": "<wbr>RegionOne", "id": "<wbr>eef092ba38354716a07a8663a8799d<wbr>3b"}], "type": "identity", "<wbr>id": "<wbr>0d2367d19f2249a28bacb407a767f5<wbr>ea", "name": "keystone"}, {"<wbr>endpoints": [{"url": "<a href="http://controller:9292" target="_blank">http://<wbr>controller:9292</a>", "interface":<wbr> "internal", "region": "<wbr>RegionOne", "region_id": "<wbr>RegionOne", "id": "<wbr>72cd4dce5fda472c9ee4ccea1763bd<wbr>d8"}, {"url": "<a href="http://controller:9292" target="_blank">http://<wbr>controller:9292</a>", "interface":<wbr> "admin", "region": "<wbr>RegionOne", "region_id": "<wbr>RegionOne", "id": "<wbr>7f49508e41a7449286bbae22ad3e10<wbr>09"}, {"url": "<a href="http://controller:9292" target="_blank">http://<wbr>controller:9292</a>", "interface":<wbr> "public", "region": "<wbr>RegionOne", "region_id": "<wbr>RegionOne", "id": "<wbr>a39ad51dd9044bbbaa15d9b5bb408d<wbr>63"}], "type": "image", "id": <wbr>"<wbr>5aa73a7985914d019e255ba4735c80<wbr>50", "name": "glance"}, {"<wbr>endpoints": [{"url": "<a href="http://controller:8776/v1/6fc70c831270448296c9c25361769cf5" target="_blank">http://<wbr>controller:8776/v1/<wbr>6fc70c831270448296c9c25361769c<wbr>f5</a>", "interface": "admin", "<wbr>region": "RegionOne", "region_<wbr>id": "RegionOne", "id": "<wbr>94430dcb24fa4a67866b9211b115ba<wbr>8d"}, {"url": "<a href="http://controller:8776/v1/6fc70c831270448296c9c25361769cf5" target="_blank">http://<wbr>controller:8776/v1/<wbr>6fc70c831270448296c9c25361769c<wbr>f5</a>", "interface": "public", "<wbr>region": "RegionOne", "region_<wbr>id": "RegionOne", "id": "<wbr>9679385e8bf646c195b4387d07e398<wbr>13"}, {"url": "<a href="http://controller:8776/v1/6fc70c831270448296c9c25361769cf5" target="_blank">http://<wbr>controller:8776/v1/<wbr>6fc70c831270448296c9c25361769c<wbr>f5</a>", "interface": "internal", <wbr>"region": "RegionOne", "<wbr>region_id": "RegionOne", "id":<wbr> "<wbr>b121154b31f74c8f8d1fc45b1f2cf0<wbr>aa"}], "type": "volume", "id":<wbr> "<wbr>74ce6a390216440db29e6ea10f6b91<wbr>ff", "name": "cinder"}, {"<wbr>endpoints": [{"url": "<a href="http://controller:8774/v2.1/6fc70c831270448296c9c25361769cf5" target="_blank">http://<wbr>controller:8774/v2.1/<wbr>6fc70c831270448296c9c25361769c<wbr>f5</a>", "interface": "internal", <wbr>"region": "RegionOne", "<wbr>region_id": "RegionOne", "id":<wbr> "<wbr>2e1e0df066594307a01129e260de43<wbr>47"}, {"url": "<a href="http://controller:8774/v2.1/6fc70c831270448296c9c25361769cf5" target="_blank">http://<wbr>controller:8774/v2.1/<wbr>6fc70c831270448296c9c25361769c<wbr>f5</a>", "interface": "admin", "<wbr>region": "RegionOne", "region_<wbr>id": "RegionOne", "id": "<wbr>84fb72a51bc54856a8fc046fd5ae98<wbr>31"}, {"url": "<a href="http://controller:8774/v2.1/6fc70c831270448296c9c25361769cf5" target="_blank">http://<wbr>controller:8774/v2.1/<wbr>6fc70c831270448296c9c25361769c<wbr>f5</a>", "interface": "public", "<wbr>region": "RegionOne", "region_<wbr>id": "RegionOne", "id": "<wbr>ad77ed7ffd124197a268563a26e18a<wbr>7c"}], "type": "compute", "id"<wbr>: "<wbr>83b496cc41eb455ea1cd871b86d76d<wbr>09", "name": "nova"}, {"<wbr>endpoints": [{"url": "<a href="http://controller:8776/v2/6fc70c831270448296c9c25361769cf5" target="_blank">http://<wbr>controller:8776/v2/<wbr>6fc70c831270448296c9c25361769c<wbr>f5</a>", "interface": "admin", "<wbr>region": "RegionOne", "region_<wbr>id": "RegionOne", "id": "<wbr>06fb7274890f4e5580aedaa137415b<wbr>75"}, {"url": "<a href="http://controller:8776/v2/6fc70c831270448296c9c25361769cf5" target="_blank">http://<wbr>controller:8776/v2/<wbr>6fc70c831270448296c9c25361769c<wbr>f5</a>", "interface": "internal", <wbr>"region": "RegionOne", "<wbr>region_id": "RegionOne", "id":<wbr> "<wbr>660a72066792425392e615b41180ec<wbr>a7"}, {"url": "<a href="http://controller:8776/v2/6fc70c831270448296c9c25361769cf5" target="_blank">http://<wbr>controller:8776/v2/<wbr>6fc70c831270448296c9c25361769c<wbr>f5</a>", "interface": "public", "<wbr>region": "RegionOne", "region_<wbr>id": "RegionOne", "id": "<wbr>f13771cf78474a0a90eada29257cfb<wbr>40"}], "type": "volumev2", "<wbr>id": "<wbr>897dd05cadf2484f9085f21670aa48<wbr>5a", "name": "cinderv2"}, {"<wbr>endpoints": [{"url": "<a href="http://controller:8080/v1" target="_blank">http://<wbr>controller:8080/v1</a>", "<wbr>interface": "admin", "region":<wbr> "RegionOne", "region_id": "<wbr>RegionOne", "id": "<wbr>50905aefc490422d8590891af65da4<wbr>87"}, {"url": "<a href="http://controller:8080/v1/AUTH_6fc70c831270448296c9c25361769cf5" target="_blank">http://<wbr>controller:8080/v1/AUTH_<wbr>6fc70c831270448296c9c25361769c<wbr>f5</a>", "interface": "internal", <wbr>"region": "RegionOne", "<wbr>region_id": "RegionOne", "id":<wbr> "<wbr>b7106e3ae36b4f8292169a859754a1<wbr>c9"}, {"url": "<a href="http://controller:8080/v1/AUTH_6fc70c831270448296c9c25361769cf5" target="_blank">http://<wbr>controller:8080/v1/AUTH_<wbr>6fc70c831270448296c9c25361769c<wbr>f5</a>", "interface": "public", "<wbr>region": "RegionOne", "region_<wbr>id": "RegionOne", "id": "<wbr>fa222e78266c4f70b8a8267ecc18ef<wbr>4a"}], "type": "object-store",<wbr> "id": "<wbr>d85e6bb55ecf431c8a4693f24c2750<wbr>df", "name": "swift"}, {"<wbr>endpoints": [{"url": "<a href="http://controller:9696" target="_blank">http://<wbr>controller:9696</a>", "interface":<wbr> "admin", "region": "<wbr>RegionOne", "region_id": "<wbr>RegionOne", "id": "<wbr>0edaf79aac3f466daa38363e978198<wbr>ac"}, {"url": "<a href="http://controller:9696" target="_blank">http://<wbr>controller:9696</a>", "interface":<wbr> "internal", "region": "<wbr>RegionOne", "region_id": "<wbr>RegionOne", "id": "<wbr>2bf3f0355f9a448985d1a53cba578e<wbr>55"}, {"url": "<a href="http://controller:9696" target="_blank">http://<wbr>controller:9696</a>", "interface":<wbr> "public", "region": "<wbr>RegionOne", "region_id": "<wbr>RegionOne", "id": "<wbr>6d54619f9e72469f92823ab1bad703<wbr>53"}], "type": "network", "id"<wbr>: "<wbr>fc04a1ebb8944c709942dd686c42fe<wbr>94", "name": "neutron"}], "<wbr>user": {"domain": {"id": "<wbr>default", "name": "Default"}, <wbr>"id": "<wbr>d8acb30b89ed44bea9568d556b54b8<wbr>d3", "name": "demo"}, "audit_<wbr>ids": ["<wbr>sLXGcKSWRpii4eOfA7MKBg"], "<wbr>issued_at": "2017-01-04T14:16:<wbr>47.000000Z"}}<br>REQ: curl -g -i -X GET <a href="http://controller:8080/v1/AUTH_6fc70c831270448296c9c25361769cf5/container1/cirros-0.3.4-x86_64-disk.img" target="_blank">http://<wbr>controller:8080/v1/AUTH_<wbr>6fc70c831270448296c9c25361769c<wbr>f5/container1/cirros-0.3.4-<wbr>x86_64-disk.img</a> -H "User-<wbr>Agent: osc-lib keystoneauth1/<wbr>2.12.2 python-requests/2.10.0 <wbr>CPython/2.7.5" -H "X-Auth-<wbr>Token: {SHA1}<wbr>222c5064b2a2330eca9637708a40df<wbr>fecb8bae4c"<br><font color="#ff0000">Starting new HTTP connection (<wbr>1): controller<br>"GET /v1/AUTH_<wbr>6fc70c831270448296c9c25361769c<wbr>f5/container1/cirros-0.3.4-<wbr>x86_64-disk.img HTTP/1.1" 200 <wbr>13287936</font><br>RESP: [200] Content-Length: <wbr>13287936 Accept-Ranges: bytes <wbr>Last-Modified: Wed, 04 Jan <wbr>2017 08:58:56 GMT Etag: <wbr>ee1eca47dc88f4879d8a229cc70a07<wbr>c6 X-Timestamp: 1483520335.<wbr>80174 Content-Type: <wbr>application/octet-stream X-<wbr>Trans-Id: <wbr>tx559e7d3d28aa49c995467-<wbr>00586d03cf Date: Wed, 04 Jan <wbr>2017 14:16:48 GMT Connection: <wbr>keep-alive<br>RESP BODY: QFI�s�<br>&N�JT�  F     �BU�@�@@�A��U�$<wbr>wK@?T���I@<�J@�jU���Q�(Y<br>�ZL<br>   D�_@<br>       �U<br>�g�YK���I@$DQ@o�O�1G@p_A@�rD��<wbr>�\������D��/F@R3�K���F� �K�V�<wbr>Q��t���▒▒���R?mE��WG@ D@ ;�D@ <wbr>\�D��D� �WA K@ �F�!+�G�!a�B�!�<wbr>2B�!��C�!�tE@!��G�"<br>yI�"HlN"��H�#�@�#JAJ@#N�N@#�{<wbr>H�$wK$YJ�$�6I�%7F%TI�%��D�%�R@<wbr>%��Q@&��Q�'BN�'��J(�J(`�F�(��<wbr>F�(�vD�)cC)B�M)[K�)��L�*IM*��<wbr>H�*�*I+1�F@+y�S@+��I�,D�S@,�<wbr>ZI@-,qE�-vrA@-��N@3nM�3�}M�4N�<wbr>M@4�L�5%J5��B�5��O�5�#�7�8�9�:<wbr>�;�<�=�>�?�@�A�B�C�D�E�F�G�H�<wbr>I�J�K^�L_�L�#_�M��YN��^�O���Q�<wbr>R�S�T�UY@VSV��T�WbP`X</span></div><div><span style="background-color:rgba(0,0,0,0)"><br></span></div><div><span style="background-color:rgba(0,0,0,0)"><br></span></div><div><span style="color:rgb(0,0,0);background-color:rgba(0,0,0,0)">time swift download <wbr>container1 cirros-0.3.4-x86_<wbr>64-disk.img<br><br><br>cirros-0.3.4-x86_64-disk.img [<wbr>auth 1.810s, headers 2.583s, <wbr>total 2.693s, 15.060 MB/s]<br><br>real    0m3.298s<br>user    0m2.035s<br>sys     0m0.189s<br></span></div><span class=""><div><span style="background-color:rgba(0,0,0,0)"><br></span></div><div><span style="background-color:rgba(0,0,0,0)"><br></span></div>
<div><br></div><hr style="width:210px;height:1px" color="#b5c4df" size="1" align="left">
<div><span><div style="MARGIN:10px;FONT-FAMILY:verdana;FONT-SIZE:10pt"><div style="margin:10px;font-size:10pt">==============================<wbr>===========</div><div style="margin:10px;font-size:10pt"><span style="color:rgb(0,0,0);background-color:rgba(0,0,0,0)">董 建 华<br>地址:杭州滨江区南环路3766号新世纪办公楼<br>邮编:310053<br>手机:<a href="tel:(385)%20713-2818" value="+13857132818" target="_blank">13857132818</a><br>总机:0571-28996000<br>传真:0571-28996001<br>热线:4006728686<br>网址:<a href="http://www.ahope.com.cn" target="_blank">www.ahope.com.cn</a><br>Email:dongjh@</span><span style="font-size:10pt;line-height:1.5;background-color:window"><a href="http://ahope.com.cn" target="_blank">ahope.com.cn</a></span></div></div></span></div>
</span><blockquote style="margin-top:0px;margin-bottom:0px;margin-left:0.5em"><div> </div><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm"><div style="PADDING-RIGHT:8px;PADDING-LEFT:8px;FONT-SIZE:12px;FONT-FAMILY:tahoma;COLOR:#000000;BACKGROUND:#efefef;PADDING-BOTTOM:8px;PADDING-TOP:8px"><div><b>From:</b> <a href="mailto:s.martinelli@gmail.com" target="_blank">Steve Martinelli</a></div><div><b>Date:</b> 2017-01-04 22:05</div><div><b>To:</b> <a href="mailto:dongjh@ahope.com.cn" target="_blank">wawayu</a></div><div><b>CC:</b> <a href="mailto:openstack@lists.openstack.org" target="_blank">openstack</a></div><div><b>Subject:</b> Re: [Openstack] Download file from swift extremely slow</div></div></div><div><div class="h5"><div><div class="m_7147613255238221445FoxDiv20170104221655762915"><div dir="ltr">Does doing ``<span style="color:rgb(0,0,0)">openstack object save container1 cirros-0.3.4-x86_64-disk.img --debug`` </span><span style="color:rgb(0,0,0)">give any additional information?</span><div><font color="#000000"><br></font></div><div><font color="#000000">What about using the swift CLI? any difference in speed? ``swift download </font><span style="color:rgb(0,0,0)">container1 cirros-0.3.4-x86_64-disk.img`` ?</span><font color="#000000"><br></font><div><font color="#000000"><br></font></div><div><font color="#000000"><br></font><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 4, 2017 at 7:19 AM, wawayu <span dir="ltr"><<a href="mailto:dongjh@ahope.com.cn" target="_blank">dongjh@ahope.com.cn</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">Anybody knows this ? <div></div><div style="color:rgb(0,0,0)"><div style="padding:2px 0px;font-size:12px;font-family:"arial narrow"">------------------ Original --<wbr>----------------</div><div style="padding:8px;font-size:12px;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial;background-color:rgb(239,239,239)"><div><b>From:</b> "董建华"<<a href="mailto:dongjh@ahope.com.cn" target="_blank">dongjh@ahope.com.c<wbr>n</a>></div><div><b>Date:</b> Wed, Jan 4, 2017 04:59 PM</div><div><b>To:</b> "openstack"<<a href="mailto:openstack@lists.openstack.org" target="_blank">openstack@list<wbr>s.openstack.org</a>>;</div><div><b>Subject:</b> [Openstack] Download file from swift extremely slow</div></div></div><div class="m_7147613255238221445gmail-HOEnZb"><div class="m_7147613255238221445gmail-h5">
<div><span style="color:rgb(0,0,0);background-color:rgba(0,0,0,0)">Hi experts</span></div><div><span style="color:rgb(0,0,0);background-color:rgba(0,0,0,0)"><br></span></div><div><span style="color:rgb(0,0,0);background-color:rgba(0,0,0,0)">I finished the swift installation following the install guide(</span><span style="background-color:rgba(0,0,0,0);font-size:10.5pt;line-height:1.5"><a href="http://docs.openstack.org/project-install-guide/object-storage/draft/get_started.html" target="_blank">http://docs.openstack.or<wbr>g/project-install-guide/object<wbr>-storage/draft/get_started.<wbr>html</a></span><span style="background-color:rgba(0,0,0,0);font-size:10.5pt;line-height:1.5">), file </span><span style="font-size:10.5pt;line-height:1.5;background-color:window">upload</span><span style="font-size:10.5pt;line-height:1.5;background-color:window"> </span><span style="background-color:rgba(0,0,0,0);font-size:10.5pt;line-height:1.5"> is very fast, but file download is extremely slow, why ?</span></div><div><span style="background-color:rgba(0,0,0,0);font-size:10.5pt;line-height:1.5"><br></span></div><div><span style="color:rgb(0,0,0);background-color:rgba(0,0,0,0)">[root@controller admin]#<b> time openstack object create container1 cirros-0.3.4-x86_64-disk.img</b><br>+-----------------------------<wbr>-+------------+---------------<wbr>-------------------+<br>| object                       | container  | etag                          <wbr>   |<br>+-----------------------------<wbr>-+------------+---------------<wbr>-------------------+<br>| cirros-0.3.4-x86_64-disk.img | container1 | ee1eca47dc88f4879d8a229cc70a07<wbr>c6 |<br>+-----------------------------<wbr>-+------------+---------------<wbr>-------------------+<br><br>real    0m3.807s<br>user    0m2.127s<br>sys     0m0.161s<br></span></div><div><span style="color:rgb(0,0,0);background-color:rgba(0,0,0,0)"><br></span></div><div><span style="color:rgb(0,0,0);background-color:rgba(0,0,0,0)"><br></span></div><div><span></span><span style="color:rgb(0,0,0);background-color:rgba(0,0,0,0)">[root@controller /]#<b> time  openstack object save container1 cirros-0.3.4-x86_64-disk.img</b><br>real    5m51.489s<br>user    5m48.172s<br>sys     0m2.094s<br></span></div>
<div><br></div><hr style="width:210px;height:1px" color="#b5c4df" size="1" align="left">
<div><span><div style="margin:10px;font-family:verdana;font-size:10pt"><div style="margin:10px;font-size:10pt">==============================<wbr>===========</div><div style="margin:10px;font-size:10pt"><span style="color:rgb(0,0,0);background-color:rgba(0,0,0,0)">董 建 华<br>地址:杭州滨江区南环路3766号新世纪办公楼<br>邮编:310053<br>手机:<a href="tel:(385)%20713-2818" value="+13857132818" target="_blank">13857132818</a><br>总机:0571-28996000<br>传真:0571-28996001<br>热线:4006728686<br>网址:<a href="http://www.ahope.com.cn" target="_blank">www.ahope.com.cn</a><br>Email:dongjh@</span><span style="font-size:10pt;line-height:1.5;background-color:window"><a href="http://ahope.com.cn" target="_blank">ahope.com.cn</a></span></div></div></span></div>
</div></div><br>______________________________<wbr>_________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi<wbr>-bin/mailman/listinfo/openstac<wbr>k</a><br>
Post to     : <a href="mailto:openstack@lists.openstack.org" target="_blank">openstack@lists.openstack.org</a><br>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi<wbr>-bin/mailman/listinfo/openstac<wbr>k</a><br>
<br></blockquote></div><br></div></div></div></div>
</div></div></div></div></blockquote>
</div></blockquote></div><br></div>