)]}'
{"files/keystone_data.sh":[{"author":{"_account_id":866,"name":"Chmouel Boudjnah","email":"chmouel@chmouel.com","username":"chmouel"},"change_message_id":"1382e3d4921d9a3b92757ae2799ed553784c0880","unresolved":false,"context_lines":[{"line_number":47,"context_line":"# role is also configurable in swift-proxy.conf"},{"line_number":48,"context_line":"RESELLER_ROLE\u003d$(keystone role-list | awk \"/ ResellerAdmin / { print \\$2 }\")"},{"line_number":49,"context_line":"if [[ ! \"$RESELLER_ROLE\" ]]; then"},{"line_number":50,"context_line":"    $RESELLER_ROLE\u003d$(get_id keystone role-create --name\u003dResellerAdmin)"},{"line_number":51,"context_line":"fi"},{"line_number":52,"context_line":"# Service role, so service users do not have to be admins"},{"line_number":53,"context_line":"SERVICE_ROLE\u003d$(get_id keystone role-create --name\u003dservice)"}],"source_content_type":"text/x-sh","patch_set":2,"id":"AAAAS3%2F%2FTy4%3D","line":50,"updated":"2013-09-30 14:26:05.000000000","message":"I think that\u0027s a mistake you should remove that $","commit_id":"a957f7e6dcb2908f1b28aa7c78f2c143ed27ac2b"},{"author":{"_account_id":866,"name":"Chmouel Boudjnah","email":"chmouel@chmouel.com","username":"chmouel"},"change_message_id":"71f9e6ab23f21a6856c65b296c8efc0bab93eb0e","unresolved":false,"context_lines":[{"line_number":45,"context_line":"# The admin role in swift allows a user to act as an admin for their tenant,"},{"line_number":46,"context_line":"# but ResellerAdmin is needed for a user to act as any tenant. The name of this"},{"line_number":47,"context_line":"# role is also configurable in swift-proxy.conf"},{"line_number":48,"context_line":"RESELLER_ROLE\u003d$(keystone role-list | awk \"/ ResellerAdmin / { print \\$2 }\")"},{"line_number":49,"context_line":"if [[ ! \"$RESELLER_ROLE\" ]]; then"},{"line_number":50,"context_line":"    RESELLER_ROLE\u003d$(get_id keystone role-create --name\u003dResellerAdmin)"},{"line_number":51,"context_line":"fi"}],"source_content_type":"text/x-sh","patch_set":3,"id":"AAAAS3%2F%2FTvI%3D","line":48,"updated":"2013-09-30 14:32:31.000000000","message":"I don\u0027t know if RESELLER_ROLE is just a pure swift thing and may not needed to be in the global file/keystone_data.sh i let others to jump in.","commit_id":"66b9ec831209773652f28e2e3667c26fed34617c"},{"author":{"_account_id":866,"name":"Chmouel Boudjnah","email":"chmouel@chmouel.com","username":"chmouel"},"change_message_id":"bd81c4b0fb15f81394d3211ec030822b669af20f","unresolved":false,"context_lines":[{"line_number":45,"context_line":"# The admin role in swift allows a user to act as an admin for their tenant,"},{"line_number":46,"context_line":"# but ResellerAdmin is needed for a user to act as any tenant. The name of this"},{"line_number":47,"context_line":"# role is also configurable in swift-proxy.conf"},{"line_number":48,"context_line":"RESELLER_ROLE\u003d$(keystone role-list | awk \"/ ResellerAdmin / { print \\$2 }\")"},{"line_number":49,"context_line":"if [[ ! \"$RESELLER_ROLE\" ]]; then"},{"line_number":50,"context_line":"    RESELLER_ROLE\u003d$(get_id keystone role-create --name\u003dResellerAdmin)"},{"line_number":51,"context_line":"fi"}],"source_content_type":"text/x-sh","patch_set":3,"id":"AAAAS3%2F%2FOlY%3D","line":48,"in_reply_to":"AAAAS3%2F%2FTsk%3D","updated":"2013-10-01 21:55:56.000000000","message":"Yeah but AFAIK they are used in the context of swift, so nova can talk to swift for replacing its nova-objectstore and ceilo do graph on swift.","commit_id":"66b9ec831209773652f28e2e3667c26fed34617c"},{"author":{"_account_id":7186,"name":"Matthieu Huin","email":"mhuin@redhat.com","username":"mhu"},"change_message_id":"3eebe9d08ba70f443be82cc507e481968297b13b","unresolved":false,"context_lines":[{"line_number":45,"context_line":"# The admin role in swift allows a user to act as an admin for their tenant,"},{"line_number":46,"context_line":"# but ResellerAdmin is needed for a user to act as any tenant. The name of this"},{"line_number":47,"context_line":"# role is also configurable in swift-proxy.conf"},{"line_number":48,"context_line":"RESELLER_ROLE\u003d$(keystone role-list | awk \"/ ResellerAdmin / { print \\$2 }\")"},{"line_number":49,"context_line":"if [[ ! \"$RESELLER_ROLE\" ]]; then"},{"line_number":50,"context_line":"    RESELLER_ROLE\u003d$(get_id keystone role-create --name\u003dResellerAdmin)"},{"line_number":51,"context_line":"fi"}],"source_content_type":"text/x-sh","patch_set":3,"id":"AAAAS3%2F%2FTsk%3D","line":48,"in_reply_to":"AAAAS3%2F%2FTvI%3D","updated":"2013-09-30 14:43:38.000000000","message":"According to the comments just above, the ResellerAdmin role is also used by Nova and Ceilometer, which is why the role was originally created in this script.","commit_id":"66b9ec831209773652f28e2e3667c26fed34617c"}],"lib/swift":[{"author":{"_account_id":8641,"name":"DennyZhang","email":"filebat.mark@gmail.com","username":"dennyzhang"},"change_message_id":"22efc47409e88d63834c68c4fada91add4058e31","unresolved":false,"context_lines":[{"line_number":465,"context_line":"    SERVICE_TENANT\u003d$(keystone tenant-list | awk \"/ $SERVICE_TENANT_NAME / { print \\$2 }\")"},{"line_number":466,"context_line":"    ADMIN_ROLE\u003d$(keystone role-list | awk \"/ admin / { print \\$2 }\")"},{"line_number":467,"context_line":"    RESELLER_ROLE\u003d$(keystone role-create --name\u003dResellerAdmin | awk \"/ id / { print \\$4 }\")"},{"line_number":468,"context_line":""},{"line_number":469,"context_line":"    SWIFT_USER\u003d$(keystone user-create --name\u003dswift --pass\u003d\"$SERVICE_PASSWORD\" \\"},{"line_number":470,"context_line":"        --tenant_id $SERVICE_TENANT --email\u003dswift@example.com | grep \" id \" | get_field 2)"},{"line_number":471,"context_line":"    keystone user-role-add --tenant-id $SERVICE_TENANT --user-id $SWIFT_USER --role-id $ADMIN_ROLE"}],"source_content_type":"text/x-swift","patch_set":3,"id":"AAAATn%2F%2BuH8%3D","line":468,"updated":"2013-11-21 04:10:07.000000000","message":"Add an assertion for RESELLER_ROLE, like: die_if_not_set $LINENO RESELLER_ROLE \"Failure creating role...\"","commit_id":"66b9ec831209773652f28e2e3667c26fed34617c"}]}
