Skip to content

Instantly share code, notes, and snippets.

@hrchu
Last active December 30, 2016 02:48
Show Gist options
  • Save hrchu/6c319b8ade78c812a55449639cf56d52 to your computer and use it in GitHub Desktop.
Save hrchu/6c319b8ade78c812a55449639cf56d52 to your computer and use it in GitHub Desktop.
coidc rgw install log
{
"user_id": "testuser",
"display_name": "First User",
"email": "",
"suspended": 0,
"max_buckets": 1000,
"auid": 0,
"subusers": [
{
"id": "testuser:swift",
"permissions": "full-control"
}
],
"keys": [
{
"user": "testuser",
"access_key": "QI4GC1958077CMP1D5J7",
"secret_key": "M9wNhRj0pZpEBbNhcsW2tfvcRBzXikNVWIna0OsR"
}
],
"swift_keys": [
{
"user": "testuser:swift",
"secret_key": "gDtb2k5oSfUzMYAJMNjvIuX9yJb1fLvJWPMO1nGT"
}
],
"caps": [],
"op_mask": "read, write, delete",
"default_placement": "",
"placement_tags": [],
"bucket_quota": {
"enabled": false,
"max_size_kb": -1,
"max_objects": -1
},
"user_quota": {
"enabled": false,
"max_size_kb": -1,
"max_objects": -1
},
"temp_url_keys": []
}
{
"user_id": "testuser",
"display_name": "First User",
"email": "",
"suspended": 0,
"max_buckets": 1000,
"auid": 0,
"subusers": [
{
"id": "testuser:swift",
"permissions": "full-control"
}
],
"keys": [
{
"user": "testuser",
"access_key": "QI4GC1958077CMP1D5J7",
"secret_key": "M9wNhRj0pZpEBbNhcsW2tfvcRBzXikNVWIna0OsR"
}
],
"swift_keys": [
{
"user": "testuser:swift",
"secret_key": "7ALlIg6MKnGsordFdUwAvfwrmffYy5shoVNl8jPn"
}
],
"caps": [],
"op_mask": "read, write, delete",
"default_placement": "",
"placement_tags": [],
"bucket_quota": {
"enabled": false,
"max_size_kb": -1,
"max_objects": -1
},
"user_quota": {
"enabled": false,
"max_size_kb": -1,
"max_objects": -1
},
"temp_url_keys": []
}
test
swift -A http://localhost:8080/auth/1.0 -U testuser:swift -K '7ALlIg6MKnGsordFdUwAvfwrmffYy5shoVNl8jPn' list
{
"user_id": "testuser",
"display_name": "First User",
"email": "",
"suspended": 0,
"max_buckets": 1000,
"auid": 0,
"subusers": [],
"keys": [
{
"user": "testuser",
"access_key": "QI4GC1958077CMP1D5J7",
"secret_key": "M9wNhRj0pZpEBbNhcsW2tfvcRBzXikNVWIna0OsR"
}
],
"swift_keys": [],
"caps": [],
"op_mask": "read, write, delete",
"default_placement": "",
"placement_tags": [],
"bucket_quota": {
"enabled": false,
"max_size_kb": -1,
"max_objects": -1
},
"user_quota": {
"enabled": false,
"max_size_kb": -1,
"max_objects": -1
},
"temp_url_keys": []
}
新版ceph建議用ceph-deploy裝全部含rgw, 這邊不用不用ceph-deploy裝rgw+整合keystone, 不含synchronization/多機房?, 單node, 裝到功能可以動
版本:ubuntu 16.04, ceph 10.2.3 (jewel), openstack/keystone mitaka
預先準備:好的keystone, ceph
1. sudo apt-get install radosgw
2. 新的文件只有寫ceph-deploy的裝法, 但我不要用ceph-deploy, 所以照這篇舊的文件設定rgw,
http://docs.ceph.com/docs/giant/radosgw/config/
我只有作keyring, ceph config
然後照新的文件調整設定和開帳號測試
http://docs.ceph.com/docs/jewel/install/install-ceph-gateway/
至此rgw安裝完成, 接下來要整合keystone
整合keystone照 http://docs.ceph.com/docs/master/radosgw/keystone/ 舊可以完成, 這邊用keystone v3 協定
範例 http://zhengtianbao.com/ceph/radosgw/2016/05/31/ceph-radosgw-install.html
主要卡關的1. ceph jewel支援keystone v3, 但文件沒寫, 要到master的文件才有 2. keystone那邊產生的domain是"Default"不是"default" orz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment