随笔分类 -  Openstack

Openstack Swift 添加和删除 custom metadata name,通过 libcurl
摘要:X-Container-Meta-name,其中 name 可以随便写,name 之前的部分不能改动。 对应的,删除使用 X-Remove-Container-Meta-name,删除时要写个string,内容随意,但不能是0个字符,也不能是空格。并且注意“Meta”不能少。 int add_hea 阅读全文

posted @ 2020-12-17 11:11 liujx2019 阅读(177) 评论(0) 推荐(0)

Openstack Swift SLO & bulk delete 测试常用命令,文件等
摘要:curl -i -k \ -H "Content-Type: application/json" \ -d ' { "auth": { "identity": { "methods": ["password"], "password": { "user": { "name": "large_obj" 阅读全文

posted @ 2020-10-21 10:23 liujx2019 阅读(251) 评论(0) 推荐(0)

Openstack Swift Static Large Object (SLO)
摘要:Uploading Files Larger than 5 GB Using the REST API Before You Begin Purpose This tutorial shows how to upload files larger than 5 GB to Oracle Cloud 阅读全文

posted @ 2020-10-21 10:03 liujx2019 阅读(254) 评论(0) 推荐(0)

Openstack Swiftclient 查看 log
摘要:修改文件 /usr/lib/python2.7/dist-packages/swiftclient/client.py 注释掉 logger.addHandler(NullHandler()) 并添加 handler = logging.StreamHandler(sys.stderr) logge 阅读全文

posted @ 2020-10-20 18:16 liujx2019 阅读(187) 评论(0) 推荐(0)

Openstack Swift 批量删除 (bulk delete)
摘要:Bulk Delete Requests must be of type DELETE, and have an Content-Type header of text/plain. The data is a new-line separated list of url-encoded objec 阅读全文

posted @ 2020-10-20 17:36 liujx2019 阅读(366) 评论(0) 推荐(0)

Windows cURL 获取 Openstack Swift Token
摘要:1. Download CURL for Windows from https://curl.haxx.se/windows/ 2. Extract it to a place, such as "C:\Program Files\". 3. Open CMD and cd to "C:\Progr 阅读全文

posted @ 2020-08-25 13:30 liujx2019 阅读(174) 评论(0) 推荐(0)

重启 Openstack Swift 服务
摘要:Restart the Swift services: service swift-account-auditor restart service swift-account restart service swift-account-reaper restart service swift-acc 阅读全文

posted @ 2020-06-16 12:09 liujx2019 阅读(372) 评论(0) 推荐(0)

kernel reported iSCSI connection 1:0 error (1022-Invalid or unknown error code) state (3)
摘要:简而言之,内存不够了。 https://serverfault.com/questions/828839/kernel-reported-iscsi-connection-10-error-1022-invalid-or-unknown-error-code I got a couple of re 阅读全文

posted @ 2020-06-15 11:26 liujx2019 阅读(1991) 评论(0) 推荐(0)

Openstack Swift 创建用户和 container
摘要:openstack user create --domain default --password-prompt [用户名];openstack role add --project admin --user [用户名] admin;swift post [container 名]; 阅读全文

posted @ 2019-07-24 09:58 liujx2019 阅读(684) 评论(0) 推荐(0)

取 token 并查看 container 信息
摘要:curl -i -k \ -H "Content-Type: application/json" \ -d ' { "auth": { "identity": { "methods": ["password"], "password": { "user": { "name": "radmin", ... 阅读全文

posted @ 2019-07-08 17:00 liujx2019 阅读(225) 评论(0) 推荐(0)

Openstack object list 一次最多有一万个 object
摘要:When you request a list of containers or objects, Object Storage returns a maximum of 10,000 names for each request. To get subsequent names, you must 阅读全文

posted @ 2019-03-07 13:52 liujx2019 阅读(146) 评论(0) 推荐(0)

Openstack 的 Log 在 /var/log/syslog 里 【Ubuntu】
摘要:Storage node 的 log 也要看看。 阅读全文

posted @ 2019-03-07 13:50 liujx2019 阅读(129) 评论(0) 推荐(0)

Openstack Python 源代码的路径
摘要:/usr/lib/python2.7/dist-packages/swift/ 阅读全文

posted @ 2019-01-28 17:13 liujx2019 阅读(561) 评论(0) 推荐(0)

Openstack Keystone V3 利用 curl 命令获取 token
摘要:curl -i \ -H "Content-Type: application/json" \ -d ' { "auth": { "identity": { "methods": ["password"], "password": { "user": { "name": "admin", "doma 阅读全文

posted @ 2019-01-18 11:21 liujx2019 阅读(2716) 评论(0) 推荐(0)

导航