)]}'
{"cinder/image/glance.py":[{"author":{"_account_id":9303,"name":"Abhishek Kekane","email":"akekane@redhat.com","username":"abhishekkekane"},"change_message_id":"613a848b96963661d41e7a9220197d972f71783f","unresolved":true,"context_lines":[{"line_number":379,"context_line":"        Returns a dict containing image metadata on success."},{"line_number":380,"context_line":"        \"\"\""},{"line_number":381,"context_line":"        client \u003d GlanceClientWrapper()"},{"line_number":382,"context_line":"        try:"},{"line_number":383,"context_line":"            return client.call(context, \u0027add_image_location\u0027,"},{"line_number":384,"context_line":"                               image_id, url, {})"},{"line_number":385,"context_line":"        except Exception:"}],"source_content_type":"text/x-python","patch_set":2,"id":"64a75909_1de47556","line":382,"updated":"2023-08-09 18:19:21.000000000","message":"Since this is service to service api call, is there any way to provide service role in context?\n\nIf i restrict glance api from (role:service or role:project_member) to role:service this call will always get 403 from glance as it will have roles admin,member,reader in context and not service.","commit_id":"8b6fc6090856ad34108ae3f50a39362b1afca19c"},{"author":{"_account_id":27615,"name":"Rajat Dhasmana","email":"rajatdhasmana@gmail.com","username":"whoami-rajat"},"change_message_id":"a671bf780a92ede3da1e414812357b7ed1c7de83","unresolved":true,"context_lines":[{"line_number":379,"context_line":"        Returns a dict containing image metadata on success."},{"line_number":380,"context_line":"        \"\"\""},{"line_number":381,"context_line":"        client \u003d GlanceClientWrapper()"},{"line_number":382,"context_line":"        try:"},{"line_number":383,"context_line":"            return client.call(context, \u0027add_image_location\u0027,"},{"line_number":384,"context_line":"                               image_id, url, {})"},{"line_number":385,"context_line":"        except Exception:"}],"source_content_type":"text/x-python","patch_set":2,"id":"a2f87c8b_65f539e5","line":382,"in_reply_to":"42b5f196_660e5c76","updated":"2023-08-10 08:23:41.000000000","message":"yes, the PoC needs to be updated to include that, this was proposed to test out the glance side changes, will work on it.","commit_id":"8b6fc6090856ad34108ae3f50a39362b1afca19c"},{"author":{"_account_id":9303,"name":"Abhishek Kekane","email":"akekane@redhat.com","username":"abhishekkekane"},"change_message_id":"e446668310fdd5d28c5914aa82101f73fe3e5c6b","unresolved":true,"context_lines":[{"line_number":379,"context_line":"        Returns a dict containing image metadata on success."},{"line_number":380,"context_line":"        \"\"\""},{"line_number":381,"context_line":"        client \u003d GlanceClientWrapper()"},{"line_number":382,"context_line":"        try:"},{"line_number":383,"context_line":"            return client.call(context, \u0027add_image_location\u0027,"},{"line_number":384,"context_line":"                               image_id, url, {})"},{"line_number":385,"context_line":"        except Exception:"}],"source_content_type":"text/x-python","patch_set":2,"id":"42b5f196_660e5c76","line":382,"in_reply_to":"64a75909_1de47556","updated":"2023-08-09 18:21:30.000000000","message":"(Pdb) req.context.roles\n[\u0027member\u0027, \u0027admin\u0027, \u0027reader\u0027]\n(Pdb) req.context.service_roles\n[]","commit_id":"8b6fc6090856ad34108ae3f50a39362b1afca19c"}]}
