分享

openstack【juno】入门 【swift篇】二十五:验证安装(控制节点)

pig2 发表于 2015-2-22 12:23:02 [显示全部楼层] 只看大图 回帖奖励 阅读模式 关闭右栏 14 141790
本帖最后由 pig2 于 2015-2-26 17:32 编辑
问题导读
1.swift stat的作用是什么?
2.swift如何上传一个文件?
3.如何查看swift列表?






控制节点执行下面命令:
1.环境变量生效
  1. source demo-openrc.sh
复制代码


2.显示服务状态

  1. swift stat
复制代码

输出下面信息
  1.       Account: AUTH_bfb31e69f05b44cd89e1336c09042e2f
  2.      Containers: 0
  3.         Objects: 0
  4.           Bytes: 0
  5.    Content-Type: text/plain; charset=utf-8
  6.     X-Timestamp: 1424577028.33577
  7.      X-Trans-Id: tx0163866e80294069b81d3-0054e95204
  8. X-Put-Timestamp: 1424577028.33577
复制代码

2.png


3.上传一个测试文件

这里创建了一个testSwift文件
  1. swift upload demo-container1 testSwift
复制代码
3.png


4.列出容器

  1. swift list
复制代码
4.png



5.下载文件

  1. swift download demo-container1 testSwift
复制代码






遇到问题

执行命令:
  1. swift list
复制代码


产生如下错误:
  1. Traceback (most recent call last):
  2.   File "/usr/bin/swift", line 10, in <module>
  3.     sys.exit(main())
  4.   File "/usr/lib/python2.7/dist-packages/swiftclient/shell.py", line 1287, in main
  5.     globals()['st_%s' % args[0]](parser, argv[1:], output)
  6.   File "/usr/lib/python2.7/dist-packages/swiftclient/shell.py", line 492, in st_stat
  7.     stat_result = swift.stat()
  8.   File "/usr/lib/python2.7/dist-packages/swiftclient/service.py", line 427, in stat
  9.     raise SwiftError('Account not found', exc=err)
  10. swiftclient.service.SwiftError: 'Account not found'
复制代码


不能定位错误,使用--debug,如下命令
  1. swift --debug stat
复制代码


输出下面信息
  1. DEBUG:keystoneclient.auth.identity.v2:Making authentication request to http://controller:5000/v2.0/tokens
  2. INFO:urllib3.connectionpool:Starting new HTTP connection (1): controller
  3. DEBUG:urllib3.connectionpool:Setting read timeout to None
  4. DEBUG:urllib3.connectionpool:"POST /v2.0/tokens HTTP/1.1" 200 2799
  5. DEBUG:iso8601.iso8601:Parsed 2015-02-20T05:52:16Z into {'tz_sign': None, 'second_fraction': None, 'hour': u'05', 'daydash': u'20', 'tz_hour': None, 'month': None, 'timezone': u'Z', 'second': u'16', 'tz_minute': None, 'year': u'2015', 'separator': u'T', 'monthdash': u'02', 'day': None, 'minute': u'52'} with default timezone <iso8601.iso8601.Utc object at 0x7f0ddb06ba10>
  6. DEBUG:iso8601.iso8601:Got u'2015' for 'year' with default None
  7. DEBUG:iso8601.iso8601:Got u'02' for 'monthdash' with default 1
  8. DEBUG:iso8601.iso8601:Got 2 for 'month' with default 2
  9. DEBUG:iso8601.iso8601:Got u'20' for 'daydash' with default 1
  10. DEBUG:iso8601.iso8601:Got 20 for 'day' with default 20
  11. DEBUG:iso8601.iso8601:Got u'05' for 'hour' with default None
  12. DEBUG:iso8601.iso8601:Got u'52' for 'minute' with default None
  13. DEBUG:iso8601.iso8601:Got u'16' for 'second' with default None
  14. INFO:urllib3.connectionpool:Starting new HTTP connection (1): controller
  15. DEBUG:urllib3.connectionpool:Setting read timeout to None
  16. DEBUG:urllib3.connectionpool:"HEAD /v1/AUTH_bfb31e69f05b44cd89e1336c09042e2f HTTP/1.1" 503 0
  17. INFO:swiftclient:REQ: curl -i http://controller:8080/v1/AUTH_bfb31e69f05b44cd89e1336c09042e2f -I -H "X-Auth-Token: e0712594a90d47d398dc3e435648b0f6"
  18. INFO:swiftclient:RESP STATUS: 503 Internal Server Error
  19. INFO:swiftclient:RESP HEADERS: [('date', 'Fri, 20 Feb 2015 04:52:16 GMT'), ('content-length', '0'), ('content-type', 'text/html; charset=UTF-8'), ('x-trans-id', 'txf9179cecb3f84d2d89515-0054e6bd80')]
  20. DEBUG:urllib3.connectionpool:Setting read timeout to None
  21. DEBUG:urllib3.connectionpool:"HEAD /v1/AUTH_bfb31e69f05b44cd89e1336c09042e2f HTTP/1.1" 503 0
  22. INFO:swiftclient:REQ: curl -i http://controller:8080/v1/AUTH_bfb31e69f05b44cd89e1336c09042e2f -I -H "X-Auth-Token: e0712594a90d47d398dc3e435648b0f6"
  23. INFO:swiftclient:RESP STATUS: 503 Internal Server Error
  24. INFO:swiftclient:RESP HEADERS: [('date', 'Fri, 20 Feb 2015 04:52:17 GMT'), ('content-length', '0'), ('content-type', 'text/html; charset=UTF-8'), ('x-trans-id', 'tx564066dbdf9c479a80317-0054e6bd81')]
  25. DEBUG:urllib3.connectionpool:Setting read timeout to None
  26. DEBUG:urllib3.connectionpool:"HEAD /v1/AUTH_bfb31e69f05b44cd89e1336c09042e2f HTTP/1.1" 503 0
  27. INFO:swiftclient:REQ: curl -i http://controller:8080/v1/AUTH_bfb31e69f05b44cd89e1336c09042e2f -I -H "X-Auth-Token: e0712594a90d47d398dc3e435648b0f6"
  28. INFO:swiftclient:RESP STATUS: 503 Internal Server Error
  29. INFO:swiftclient:RESP HEADERS: [('date', 'Fri, 20 Feb 2015 04:52:19 GMT'), ('content-length', '0'), ('content-type', 'text/html; charset=UTF-8'), ('x-trans-id', 'tx8026db12471043108f8aa-0054e6bd83')]
  30. DEBUG:urllib3.connectionpool:Setting read timeout to None
  31. DEBUG:urllib3.connectionpool:"HEAD /v1/AUTH_bfb31e69f05b44cd89e1336c09042e2f HTTP/1.1" 503 0
  32. INFO:swiftclient:REQ: curl -i http://controller:8080/v1/AUTH_bfb31e69f05b44cd89e1336c09042e2f -I -H "X-Auth-Token: e0712594a90d47d398dc3e435648b0f6"
  33. INFO:swiftclient:RESP STATUS: 503 Internal Server Error
  34. INFO:swiftclient:RESP HEADERS: [('date', 'Fri, 20 Feb 2015 04:52:23 GMT'), ('content-length', '0'), ('content-type', 'text/html; charset=UTF-8'), ('x-trans-id', 'tx672d65e6e5cc4bcb81a99-0054e6bd87')]
  35. DEBUG:urllib3.connectionpool:Setting read timeout to None
  36. DEBUG:urllib3.connectionpool:"HEAD /v1/AUTH_bfb31e69f05b44cd89e1336c09042e2f HTTP/1.1" 503 0
  37. INFO:swiftclient:REQ: curl -i http://controller:8080/v1/AUTH_bfb31e69f05b44cd89e1336c09042e2f -I -H "X-Auth-Token: e0712594a90d47d398dc3e435648b0f6"
  38. INFO:swiftclient:RESP STATUS: 503 Internal Server Error
  39. INFO:swiftclient:RESP HEADERS: [('date', 'Fri, 20 Feb 2015 04:52:31 GMT'), ('content-length', '0'), ('content-type', 'text/html; charset=UTF-8'), ('x-trans-id', 'tx3b40cb1889c7403494571-0054e6bd8f')]
  40. DEBUG:urllib3.connectionpool:Setting read timeout to None
  41. DEBUG:urllib3.connectionpool:"HEAD /v1/AUTH_bfb31e69f05b44cd89e1336c09042e2f HTTP/1.1" 503 0
  42. INFO:swiftclient:REQ: curl -i http://controller:8080/v1/AUTH_bfb31e69f05b44cd89e1336c09042e2f -I -H "X-Auth-Token: e0712594a90d47d398dc3e435648b0f6"
  43. INFO:swiftclient:RESP STATUS: 503 Internal Server Error
  44. INFO:swiftclient:RESP HEADERS: [('date', 'Fri, 20 Feb 2015 04:52:47 GMT'), ('content-length', '0'), ('content-type', 'text/html; charset=UTF-8'), ('x-trans-id', 'tx38758acf7fe74c5cb1597-0054e6bd9f')]
  45. ERROR:swiftclient:Account HEAD failed: http://controller:8080/v1/AUTH_bfb31e69f05b44cd89e1336c09042e2f 503 Internal Server Error
  46. Traceback (most recent call last):
  47.   File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 1236, in _retry
  48.     rv = func(self.url, self.token, *args, **kwargs)
  49.   File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 521, in head_account
  50.     http_response_content=body)
  51. ClientException: Account HEAD failed: http://controller:8080/v1/AUTH_bfb31e69f05b44cd89e1336c09042e2f 503 Internal Server Error
  52. Traceback (most recent call last):
  53.   File "/usr/bin/swift", line 10, in <module>
  54.     sys.exit(main())
  55.   File "/usr/lib/python2.7/dist-packages/swiftclient/shell.py", line 1287, in main
  56.     globals()['st_%s' % args[0]](parser, argv[1:], output)
  57.   File "/usr/lib/python2.7/dist-packages/swiftclient/shell.py", line 492, in st_stat
  58.     stat_result = swift.stat()
  59.   File "/usr/lib/python2.7/dist-packages/swiftclient/service.py", line 427, in stat
  60.     raise SwiftError('Account not found', exc=err)
  61. swiftclient.service.SwiftError: 'Account not found'
复制代码

下面错误是核心

  1. INFO:swiftclient:REQ: curl -i http://controller:8080/v1/AUTH_bfb31e69f05b44cd89e1336c09042e2f -I -H "X-Auth-Token: e0712594a90d47d398dc3e435648b0f6"
  2. INFO:swiftclient:RESP STATUS: 503 Internal Server Error
复制代码
意思是:请求服务器资源,不能从服务器获取。
这里面有两方面错误:
要么是
问题可能性
1.账户错误
2.服务器错误
验证:
1.账户错误,创建了另外一个swift 代理节点,结果还是一样。
2.服务器错误
这个有两个节点object1和object2
因此object1和object2是关键。但是并不知道到底是哪里的错误。
因此采用谷歌、百度。
答案如下:
1.配置文件错误,即授权错误
auth_host, auth_port, 和 auth_protocol错误。
auth_host不能访问,本文是10.0.0.11,这个都是相互通信的,如果使用的是私有ip,可能产生问题。
本系列使用下面url来代替上面,使用的是controller
auth_uri = http://controller:5000/v2.0,所以不会这里的问题。

2.object节点发生改变, 下面三个包则需要重新复制到其他节点
account.ring.gz
container.ring.gz
object.ring.gz

上面方案是从百度谷歌得到,但是都没有起作用。
########################################
问题的原因:
由于这里使用的是虚拟机,object1配置完毕,对于object2直接使用的克隆的方式。

所以对object2做了如下核实措施:
1.mac地址重新生成
2.hostname在控制节点、object1和object2节点都必须包含如下内容:
  1. 10.0.0.51        object1
  2. 10.0.0.52        object2
复制代码
3.配置文件管理ip,都必须替换成10.0.0.52.
再次执行swift stat,问题得到解决。




相关内容:

openstack【juno】入门 【准备篇】零:整体介绍

openstack【juno】入门 【准备篇】一: Ubuntu14.04远程连接(ssh安装)

openstack【juno】入门 【准备篇】二::NTP安装

openstack【juno】入门 【准备篇】三:mysql(MariaDB)安装

openstack【juno】入门 【准备篇】四::RabbitMQ 安装

openstack【juno】入门 【keystone篇】五::Keystone部署及介绍

openstack【juno】入门 【keystone篇】六::Keystone使用及遇到问题解决办法

openstack【juno】入门 【keystone篇】七:创建 service entity 和 API endpoint

openstack【juno】入门 【keystone篇】八:新手操作篇(验证操作篇)

openstack【juno】入门 【keystone篇】九:创建openstack客户端环境变量脚本

openstack【juno】入门 【glance 篇】十:glance初步介绍

openstack【juno】入门 【glance 篇】十一:glance安装配置

openstack【juno】入门 【glance 篇】十二:glance安装配置验证及相关操作

openstack【juno】入门 【nova 篇】十三(1):nova简单介绍

openstack【juno】入门 【nova 篇】十三(2):安装配置计算服务

openstack【juno】入门 【网络篇】十四:neutron介绍

openstack【juno】入门 【网络篇】十五:neutron安装部署(控制节点)

openstack【juno】入门 【网络篇】十六:neutron安装部署(网络节点)

openstack【juno】入门 【网络篇】十七:neutron安装部署(计算节点)

openstack【juno】入门 【网络篇】十八:创建实例化网络

openstack【juno】入门 【dashboard篇】十九:添加dashboard

openstack【juno】入门 【cinder篇】二十:cinder介绍及安装配置【控制节点】

openstack【juno】入门 【cinder篇】二十一:安装配置块存储节点(cinder)

openstack【juno】入门 【swift篇】二十二:对象存储安装配置【控制节点】

openstack【juno】入门 【swift篇】二十三:安装配置swift节点

openstack【juno】入门 【swift篇】二十四:创建初始rings

openstack【juno】入门 【swift篇】二十五:验证安装(控制节点)

openstack【juno】入门 【实例篇】二十六:创建实例(neutron)

openstack【juno】入门 【总结篇】二十七:openstack排除故障及常见问题记录

openstack【juno】入门 【总结篇】二十八:keystone及网络总结


已有(15)人评论

跳转到指定楼层
wendell 发表于 2016-3-19 20:29:48
我的swift stat正常
但是upload的时候,就报404 ,不知道么情况
回复

使用道具 举报

shinan920 发表于 2015-3-26 17:34:46
版主:我执行swift stat出现和你一样的错误,我是单节点部署,swift所有模块都安装在controller vmware虚拟机。这个怎么解决
回复

使用道具 举报

langke93 发表于 2015-3-26 19:43:23
shinan920 发表于 2015-3-26 17:34
版主:我执行swift stat出现和你一样的错误,我是单节点部署,swift所有模块都安装在controller vmware虚拟 ...

看看日志,很多错的地方不一样
回复

使用道具 举报

kaiser1103 发表于 2015-5-26 16:19:51
[mw_shl_code=bash,true]INFO:swiftclient:REQ: curl -i http://controller:8080/v1/AUTH_bfb31e69f05b44cd89e1336c09042e2f -I -H "X-Auth-Token: e0712594a90d47d398dc3e435648b0f6"
INFO:swiftclient:RESP STATUS: 503 Internal Server Error[/mw_shl_code]


这个错误,今天查了好久,才发现几个文件配置问题;
这里说下,

注意以下每个文件对应的端口和pipeline开启的服务都不一样!!!:
account-server.conf
bind_port = 6002
pipeline = healthcheck recon account-server

container-server.conf
bind_port = 6001
pipeline = healthcheck recon container-server


object-server.conf

bind_port = 6000
pipeline = healthcheck recon object-server

回复

使用道具 举报

zhichen08 发表于 2015-10-22 13:50:21
楼主,我遇到了这个问题,您知道怎么解决吗:
root@controller:~# swift --debug stat
DEBUG:keystoneclient.auth.identity.v2:Making authentication request to http://controller:5000/v2.0/tokens
INFO:urllib3.connectionpool:Starting new HTTP connection (1): controller
DEBUG:urllib3.connectionpool:Setting read timeout to None
DEBUG:urllib3.connectionpool:"POST /v2.0/tokens HTTP/1.1" 200 2799
DEBUG:iso8601.iso8601:Parsed 2015-10-22T05:09:23Z into {'tz_sign': None, 'second_fraction': None, 'hour': u'05', 'daydash': u'22', 'tz_hour': None, 'month': None, 'timezone': u'Z', 'second': u'23', 'tz_minute': None, 'year': u'2015', 'separator': u'T', 'monthdash': u'10', 'day': None, 'minute': u'09'} with default timezone <iso8601.iso8601.Utc object at 0x7fdbb6ef3bd0>
DEBUG:iso8601.iso8601:Got u'2015' for 'year' with default None
DEBUG:iso8601.iso8601:Got u'10' for 'monthdash' with default 1
DEBUG:iso8601.iso8601:Got 10 for 'month' with default 10
DEBUG:iso8601.iso8601:Got u'22' for 'daydash' with default 1
DEBUG:iso8601.iso8601:Got 22 for 'day' with default 22
DEBUG:iso8601.iso8601:Got u'05' for 'hour' with default None
DEBUG:iso8601.iso8601:Got u'09' for 'minute' with default None
DEBUG:iso8601.iso8601:Got u'23' for 'second' with default None
INFO:urllib3.connectionpool:Starting new HTTP connection (1): controller
DEBUG:urllib3.connectionpool:Setting read timeout to None
DEBUG:urllib3.connectionpool:"HEAD /v1/AUTH_fa078051669841e98e27a4623d3937f7 HTTP/1.1" 403 0
INFO:swiftclient:REQ: curl -i http://controller:8080/v1/AUTH_fa078051669841e98e27a4623d3937f7 -I -H "X-Auth-Token: 466ff25554de4f91aac70fb4632b8847"
INFO:swiftclient:RESP STATUS: 403 Forbidden
INFO:swiftclient:RESP HEADERS: [('date', 'Thu, 22 Oct 2015 04:09:24 GMT'), ('content-length', '0'), ('content-type', 'text/html; charset=UTF-8'), ('x-trans-id', 'txe00e411479e040928b064-0056286174')]
ERROR:swiftclient:Account HEAD failed: http://controller:8080/v1/AUTH_fa078051669841e98e27a4623d3937f7 403 Forbidden
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 1236, in _retry
    rv = func(self.url, self.token, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 521, in head_account
    http_response_content=body)
ClientException: Account HEAD failed: http://controller:8080/v1/AUTH_fa078051669841e98e27a4623d3937f7 403 Forbidden
Traceback (most recent call last):
  File "/usr/bin/swift", line 10, in <module>
    sys.exit(main())
  File "/usr/lib/python2.7/dist-packages/swiftclient/shell.py", line 1287, in main
    globals()['st_%s' % args[0]](parser, argv[1:], output)
  File "/usr/lib/python2.7/dist-packages/swiftclient/shell.py", line 492, in st_stat
    stat_result = swift.stat()
  File "/usr/lib/python2.7/dist-packages/swiftclient/service.py", line 427, in stat
    raise SwiftError('Account not found', exc=err)
swiftclient.service.SwiftError: 'Account not found'

回复

使用道具 举报

leo_1989 发表于 2015-10-22 16:25:40
zhichen08 发表于 2015-10-22 13:50
楼主,我遇到了这个问题,您知道怎么解决吗:
root@controller:~# swift --debug stat
DEBUG:keystonecli ...

ERROR:swiftclient:Account HEAD failed: http://controller:8080/v1/AUTH_fa078051669841e98e27a4623d3937f7 403 Forbidden

token有问题
回复

使用道具 举报

guanrui74 发表于 2016-2-23 10:46:52
请大家帮我看看,memcached总起不来。

[root@controller ~]# systemctl status memcached.service
● memcached.service - Memcached
   Loaded: loaded (/usr/lib/systemd/system/memcached.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since 二 2016-02-23 10:18:52 CST; 25min ago
Main PID: 23313 (code=exited, status=204/MEMORY)

2月 23 10:18:52 controller systemd[1]: Started Memcached.
2月 23 10:18:52 controller systemd[1]: Starting Memcached...
2月 23 10:18:52 controller systemd[1]: memcached.service: main process exited, code=exited, status=204/MEMORY
2月 23 10:18:52 controller systemd[1]: Unit memcached.service entered failed state.
2月 23 10:18:52 controller systemd[1]: memcached.service failed.

点评

这样看不出来的,需要查看日志  发表于 2016-2-23 12:12
回复

使用道具 举报

guanrui74 发表于 2016-2-23 14:22:25
guanrui74 发表于 2016-2-23 10:46
请大家帮我看看,memcached总起不来。

[root@controller ~]# systemctl status memcached.service

需要哪些日志?
回复

使用道具 举报

guanrui74 发表于 2016-3-2 16:13:13
新装了个liberty版的openstack swift ,步骤都是按照官网的文档。上传时还是报错。
各位大神帮着看看。
[root@controller ~]# swift --debug upload container1 /root/demo-openrc.sh
DEBUG:keystoneclient.auth.identity.v3.base:Making authentication request to http://controller:5000/v3/auth/tokens
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): controller
DEBUG:requests.packages.urllib3.connectionpool:"POST /v3/auth/tokens HTTP/1.1" 201 1695
/usr/lib/python2.7/site-packages/keystoneclient/service_catalog.py:196: UserWarning: Providing attr without filter_value to get_urls() is deprecated as of the 1.7.0 release and may be removed in the 2.0.0 release. Either both should be provided or neither should be provided.
  'Providing attr without filter_value to get_urls() is '
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): controller
DEBUG:requests.packages.urllib3.connectionpool:"PUT /v1/AUTH_30838676605443388e02d16d9ddf783b/container1 HTTP/1.1" 503 118
INFO:swiftclient:REQ: curl -i http://controller:8080/v1/AUTH_30838676605443388e02d16d9ddf783b/container1 -X PUT -H "Content-Length: 0" -H "X-Auth-Token: 56ad9a957ada4210afc4ebbfcf26ff84"
INFO:swiftclient:RESP STATUS: 503 Service Unavailable
INFO:swiftclient:RESP HEADERS: [('date', 'Wed, 02 Mar 2016 08:09:03 GMT'), ('content-length', '118'), ('content-type', 'text/html; charset=UTF-8'), ('x-trans-id', 'tx66f4a4fe98c645f291103-0056d69f9e')]
INFO:swiftclient:RESP BODY: <html><h1>Service Unavailable</h1><p>The server is currently unavailable. Please try again at a later time.</p></html>
DEBUG:requests.packages.urllib3.connectionpool:"PUT /v1/AUTH_30838676605443388e02d16d9ddf783b/container1 HTTP/1.1" 503 118
INFO:swiftclient:REQ: curl -i http://controller:8080/v1/AUTH_30838676605443388e02d16d9ddf783b/container1 -X PUT -H "Content-Length: 0" -H "X-Auth-Token: 56ad9a957ada4210afc4ebbfcf26ff84"
INFO:swiftclient:RESP STATUS: 503 Service Unavailable
INFO:swiftclient:RESP HEADERS: [('date', 'Wed, 02 Mar 2016 08:09:04 GMT'), ('content-length', '118'), ('content-type', 'text/html; charset=UTF-8'), ('x-trans-id', 'tx2fdbb1af37944d66b6736-0056d69fa0')]
INFO:swiftclient:RESP BODY: <html><h1>Service Unavailable</h1><p>The server is currently unavailable. Please try again at a later time.</p></html>
DEBUG:requests.packages.urllib3.connectionpool:"PUT /v1/AUTH_30838676605443388e02d16d9ddf783b/container1 HTTP/1.1" 503 118
INFO:swiftclient:REQ: curl -i http://controller:8080/v1/AUTH_30838676605443388e02d16d9ddf783b/container1 -X PUT -H "Content-Length: 0" -H "X-Auth-Token: 56ad9a957ada4210afc4ebbfcf26ff84"
INFO:swiftclient:RESP STATUS: 503 Service Unavailable
INFO:swiftclient:RESP HEADERS: [('date', 'Wed, 02 Mar 2016 08:09:06 GMT'), ('content-length', '118'), ('content-type', 'text/html; charset=UTF-8'), ('x-trans-id', 'tx39b4e55e846648c6adb2e-0056d69fa2')]
INFO:swiftclient:RESP BODY: <html><h1>Service Unavailable</h1><p>The server is currently unavailable. Please try again at a later time.</p></html>
DEBUG:requests.packages.urllib3.connectionpool:"PUT /v1/AUTH_30838676605443388e02d16d9ddf783b/container1 HTTP/1.1" 503 118
INFO:swiftclient:REQ: curl -i http://controller:8080/v1/AUTH_30838676605443388e02d16d9ddf783b/container1 -X PUT -H "Content-Length: 0" -H "X-Auth-Token: 56ad9a957ada4210afc4ebbfcf26ff84"
INFO:swiftclient:RESP STATUS: 503 Service Unavailable
INFO:swiftclient:RESP HEADERS: [('date', 'Wed, 02 Mar 2016 08:09:10 GMT'), ('content-length', '118'), ('content-type', 'text/html; charset=UTF-8'), ('x-trans-id', 'tx76c8a8d4e9e242ffb50a6-0056d69fa6')]
INFO:swiftclient:RESP BODY: <html><h1>Service Unavailable</h1><p>The server is currently unavailable. Please try again at a later time.</p></html>
DEBUG:requests.packages.urllib3.connectionpool:"PUT /v1/AUTH_30838676605443388e02d16d9ddf783b/container1 HTTP/1.1" 503 118
INFO:swiftclient:REQ: curl -i http://controller:8080/v1/AUTH_30838676605443388e02d16d9ddf783b/container1 -X PUT -H "Content-Length: 0" -H "X-Auth-Token: 56ad9a957ada4210afc4ebbfcf26ff84"
INFO:swiftclient:RESP STATUS: 503 Service Unavailable
INFO:swiftclient:RESP HEADERS: [('date', 'Wed, 02 Mar 2016 08:09:18 GMT'), ('content-length', '118'), ('content-type', 'text/html; charset=UTF-8'), ('x-trans-id', 'txdd1745d4925a493290c97-0056d69fae')]
INFO:swiftclient:RESP BODY: <html><h1>Service Unavailable</h1><p>The server is currently unavailable. Please try again at a later time.</p></html>
DEBUG:requests.packages.urllib3.connectionpool:"PUT /v1/AUTH_30838676605443388e02d16d9ddf783b/container1 HTTP/1.1" 503 118
INFO:swiftclient:REQ: curl -i http://controller:8080/v1/AUTH_30838676605443388e02d16d9ddf783b/container1 -X PUT -H "Content-Length: 0" -H "X-Auth-Token: 56ad9a957ada4210afc4ebbfcf26ff84"
INFO:swiftclient:RESP STATUS: 503 Service Unavailable
INFO:swiftclient:RESP HEADERS: [('date', 'Wed, 02 Mar 2016 08:09:34 GMT'), ('content-length', '118'), ('content-type', 'text/html; charset=UTF-8'), ('x-trans-id', 'txfacfb570902e4821b01d9-0056d69fbe')]
INFO:swiftclient:RESP BODY: <html><h1>Service Unavailable</h1><p>The server is currently unavailable. Please try again at a later time.</p></html>
ERROR:swiftclient:Container PUT failed: http://controller:8080/v1/AUTH_30838676605443388e02d16d9ddf783b/container1 503 Service Unavailable  [first 60 chars of response] <html><h1>Service Unavailable</h1><p>The server is currently
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/swiftclient/client.py", line 1390, in _retry
    service_token=self.service_token, **kwargs)
  File "/usr/lib/python2.7/site-packages/swiftclient/client.py", line 809, in put_container
    http_response_content=body)
ClientException: Container PUT failed: http://controller:8080/v1/AUTH_30838676605443388e02d16d9ddf783b/container1 503 Service Unavailable  [first 60 chars of response] <html><h1>Service Unavailable</h1><p>The server is currently
ERROR:swiftclient.service:Container PUT failed: http://controller:8080/v1/AUTH_30838676605443388e02d16d9ddf783b/container1 503 Service Unavailable  [first 60 chars of response] <html><h1>Service Unavailable</h1><p>The server is currently
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/swiftclient/service.py", line 1538, in _create_container_job
    container, headers, response_dict=create_response
  File "/usr/lib/python2.7/site-packages/swiftclient/client.py", line 1466, in put_container
    response_dict=response_dict)
  File "/usr/lib/python2.7/site-packages/swiftclient/client.py", line 1390, in _retry
    service_token=self.service_token, **kwargs)
  File "/usr/lib/python2.7/site-packages/swiftclient/client.py", line 809, in put_container
    http_response_content=body)
ClientException: Container PUT failed: http://controller:8080/v1/AUTH_30838676605443388e02d16d9ddf783b/container1 503 Service Unavailable  [first 60 chars of response] <html><h1>Service Unavailable</h1><p>The server is currently
Warning: failed to create container 'container1': 503 Service Unavailable: <html><h1>Service Unavailable</h1><p>The server is currently
DEBUG:keystoneclient.auth.identity.v3.base:Making authentication request to http://controller:5000/v3/auth/tokens
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): controller
DEBUG:requests.packages.urllib3.connectionpool:"POST /v3/auth/tokens HTTP/1.1" 201 1695
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): controller
DEBUG:requests.packages.urllib3.connectionpool:"HEAD /v1/AUTH_30838676605443388e02d16d9ddf783b/container1/root/demo-openrc.sh HTTP/1.1" 404 0
INFO:swiftclient:REQ: curl -i http://controller:8080/v1/AUTH_30838676605443388e02d16d9ddf783b/container1/root/demo-openrc.sh -I -H "X-Auth-Token: d690543daaa04f7b9aaa8e6d8666b64e"
INFO:swiftclient:RESP STATUS: 404 Not Found
INFO:swiftclient:RESP HEADERS: [('date', 'Wed, 02 Mar 2016 08:09:34 GMT'), ('content-length', '0'), ('content-type', 'text/html; charset=UTF-8'), ('x-trans-id', 'tx73075833f3294bd88e3ef-0056d69fbe')]
ERROR:swiftclient:Object HEAD failed: http://controller:8080/v1/AUTH_30838676605443388e02d16d9ddf783b/container1/root/demo-openrc.sh 404 Not Found
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/swiftclient/client.py", line 1390, in _retry
    service_token=self.service_token, **kwargs)
  File "/usr/lib/python2.7/site-packages/swiftclient/client.py", line 994, in head_object
    http_response_content=body)
ClientException: Object HEAD failed: http://controller:8080/v1/AUTH_30838676605443388e02d16d9ddf783b/container1/root/demo-openrc.sh 404 Not Found
DEBUG:requests.packages.urllib3.connectionpool:"PUT /v1/AUTH_30838676605443388e02d16d9ddf783b/container1/root/demo-openrc.sh HTTP/1.1" 404 70
INFO:swiftclient:REQ: curl -i http://controller:8080/v1/AUTH_30838676605443388e02d16d9ddf783b/container1/root/demo-openrc.sh -X PUT -H "X-Auth-Token: d690543daaa04f7b9aaa8e6d8666b64e"
INFO:swiftclient:RESP STATUS: 404 Not Found
INFO:swiftclient:RESP HEADERS: [('date', 'Wed, 02 Mar 2016 08:09:34 GMT'), ('content-length', '70'), ('content-type', 'text/html; charset=UTF-8'), ('x-trans-id', 'txac81c99d17e4463b9b3a5-0056d69fbe')]
INFO:swiftclient:RESP BODY: <html><h1>Not Found</h1><p>The resource could not be found.</p></html>
ERROR:swiftclient:Object PUT failed: http://controller:8080/v1/AUTH_30838676605443388e02d16d9ddf783b/container1/root/demo-openrc.sh 404 Not Found  [first 60 chars of response] <html><h1>Not Found</h1><p>The resource could not be found.<
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/swiftclient/client.py", line 1390, in _retry
    service_token=self.service_token, **kwargs)
  File "/usr/lib/python2.7/site-packages/swiftclient/client.py", line 1104, in put_object
    http_response_content=body)
ClientException: Object PUT failed: http://controller:8080/v1/AUTH_30838676605443388e02d16d9ddf783b/container1/root/demo-openrc.sh 404 Not Found  [first 60 chars of response] <html><h1>Not Found</h1><p>The resource could not be found.<
ERROR:swiftclient.service:Object PUT failed: http://controller:8080/v1/AUTH_30838676605443388e02d16d9ddf783b/container1/root/demo-openrc.sh 404 Not Found  [first 60 chars of response] <html><h1>Not Found</h1><p>The resource could not be found.<
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/swiftclient/service.py", line 1941, in _upload_object_job
    response_dict=obr
  File "/usr/lib/python2.7/site-packages/swiftclient/client.py", line 1516, in put_object
    response_dict=response_dict)
  File "/usr/lib/python2.7/site-packages/swiftclient/client.py", line 1390, in _retry
    service_token=self.service_token, **kwargs)
  File "/usr/lib/python2.7/site-packages/swiftclient/client.py", line 1104, in put_object
    http_response_content=body)
ClientException: Object PUT failed: http://controller:8080/v1/AUTH_30838676605443388e02d16d9ddf783b/container1/root/demo-openrc.sh 404 Not Found  [first 60 chars of response] <html><h1>Not Found</h1><p>The resource could not be found.<
Object PUT failed: http://controller:8080/v1/AUTH_30838676605443388e02d16d9ddf783b/container1/root/demo-openrc.sh 404 Not Found  [first 60 chars of response] <html><h1>Not Found</h1><p>The resource could not be found.<
回复

使用道具 举报

12下一页
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条