Ubuntu下部署swift时产生的错误记录

本文提供了解决OpenStack中Nova、JSON处理、Keystone命令执行错误、URL路由问题、Memcached缓存配置和Netaddr模块缺失等常见问题的方法。通过修改相关代码文件和安装依赖包来解决。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

问题1:

File "/usr/local/lib/python2.7/dist-packages/anyjson-0.3.3-py2.7.egg/anyjson/__init__.py", line 62, in __init__
    fdec = modinfo["filedecoder"]

解决办法:

https://bugs.launchpad.net/nova/+bug/1017765
https://review.openstack.org/#/c/9013/1/openstack/common/jsonutils.py

问题 2:

输入keystone user-list只打印出printt这个单词
解决办法:

修改/usr/share/pyshard/keystoneclient/utils.py
   37     print pt.get_string(sortby=fields[0])
   44     print pt.get_string(sortby='Property')


问题 3: No module named urlmap
解决办法:sudo apt-get install python-paste

问题4:

运行dashboard时:django.core.cache.backends.base.InvalidCacheBackendError: Memcached cache backend requires either the 'memcache' or 'cmemcache' library

解决办法:sudo apt-get install python-memcached

问题 5:

No module named netaddr
解决办法:apt-get install python-netaddr

问题 6:

FilterError: /usr/bin/env: node: No such file or directory
解决办法:sudo apt-get install nodejs

question 7:

执行keystone user-list 时,输出printt
解决办法:https://review.openstack.org/#/c/7200/1/keystoneclient/utils.py
question 8:

curl访问:
curl -i     -H "X-Auth-Key:ADMIN"     -H "X-Auth-User:swiftadmin"     http://192.168.100.133:35357/v2.0/

转载于:https://www.cnblogs.com/guobincheng/archive/2012/09/16/2687599.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值