)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"17720dbfc46168621da959c1b0af1ccafc476fb0","unresolved":false,"context_lines":[{"line_number":9,"context_line":"Using the generic driver needs a service instance. The variable"},{"line_number":10,"context_line":"\"service_instance_name_or_id\" indicates that it\u0027s possible to use"},{"line_number":11,"context_line":"the UUID or the name of the Nova VM. Using the UUID already works and"},{"line_number":12,"context_line":"this fixes the usage of the VM name to find the service instance."},{"line_number":13,"context_line":"Without this fix, you get the following error when using the name:"},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"Failed to get Nova VM. No server with a name or ID of \u0027myname\u0027 exists."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"7a5de9d1_73009966","line":12,"range":{"start_line":12,"start_character":0,"end_line":12,"end_character":64},"updated":"2016-02-01 15:36:31.000000000","message":"Actually, current approach finds VM ok when VM owner tenant and context tenant is the same tenant. So, name of function says proper info, it expects name too, but will search only in scope of single tenant.","commit_id":"8111d59fbddc62370eb5e734025e0ffd35706a16"},{"author":{"_account_id":7102,"name":"Thomas Bechtold","email":"thomas.bechtold@chainguard.dev","username":"toabctl"},"change_message_id":"124949d0e078f446f8944eafa3e9cea8152e39df","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Using the generic driver needs a service instance. The variable"},{"line_number":10,"context_line":"\"service_instance_name_or_id\" indicates that it\u0027s possible to use"},{"line_number":11,"context_line":"the UUID or the name of the Nova VM. Using the UUID already works and"},{"line_number":12,"context_line":"this fixes the usage of the VM name to find the service instance."},{"line_number":13,"context_line":"Without this fix, you get the following error when using the name:"},{"line_number":14,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"5aef4532_185c81ec","line":11,"updated":"2016-03-08 07:08:33.000000000","message":"The message needs to be adjusted. Using the name already works when the VM is in the currently used tenant. It doesn\u0027t work when the VM is in a different tenant.","commit_id":"066d3e96e6548a812f755855c3ce189ceb788912"}],"manila/compute/nova.py":[{"author":{"_account_id":7872,"name":"Marc Koderer","email":"marc@koderer.com","username":"mkoderer"},"change_message_id":"c1e88c82dc2ed1017350de5a5f826e3cb54276ff","unresolved":false,"context_lines":[{"line_number":199,"context_line":"        try:"},{"line_number":200,"context_line":"            server \u003d utils.find_resource("},{"line_number":201,"context_line":"                novaclient(context).servers, instance_name_or_id,"},{"line_number":202,"context_line":"                all_tenants\u003dTrue)"},{"line_number":203,"context_line":"        except nova_exception.CommandError as e:"},{"line_number":204,"context_line":"            msg \u003d _(\"Failed to get Nova VM. %s\") % e"},{"line_number":205,"context_line":"            raise exception.ManilaException(msg)"}],"source_content_type":"text/x-python","patch_set":1,"id":"7a5de9d1_7538e0a0","line":202,"updated":"2016-01-29 07:47:44.000000000","message":"This would mean server list is executed with a wrong context (wrong tenant id). So I would rather fix the context instead of listing all servers.","commit_id":"8111d59fbddc62370eb5e734025e0ffd35706a16"},{"author":{"_account_id":7102,"name":"Thomas Bechtold","email":"thomas.bechtold@chainguard.dev","username":"toabctl"},"change_message_id":"8f8f4917ae6519738f33c51fc923fea4826b50ad","unresolved":false,"context_lines":[{"line_number":199,"context_line":"        try:"},{"line_number":200,"context_line":"            server \u003d utils.find_resource("},{"line_number":201,"context_line":"                novaclient(context).servers, instance_name_or_id,"},{"line_number":202,"context_line":"                all_tenants\u003dTrue)"},{"line_number":203,"context_line":"        except nova_exception.CommandError as e:"},{"line_number":204,"context_line":"            msg \u003d _(\"Failed to get Nova VM. %s\") % e"},{"line_number":205,"context_line":"            raise exception.ManilaException(msg)"}],"source_content_type":"text/x-python","patch_set":1,"id":"7a5de9d1_e0e0302b","line":202,"in_reply_to":"7a5de9d1_7538e0a0","updated":"2016-02-01 14:27:45.000000000","message":"So you would add another config parameter to set the tenant-id for the service instance?","commit_id":"8111d59fbddc62370eb5e734025e0ffd35706a16"},{"author":{"_account_id":7102,"name":"Thomas Bechtold","email":"thomas.bechtold@chainguard.dev","username":"toabctl"},"change_message_id":"1efa40392545d057534fda1c3b26ac2c12f8e55b","unresolved":false,"context_lines":[{"line_number":199,"context_line":"        try:"},{"line_number":200,"context_line":"            server \u003d utils.find_resource("},{"line_number":201,"context_line":"                novaclient(context).servers, instance_name_or_id,"},{"line_number":202,"context_line":"                all_tenants\u003dTrue)"},{"line_number":203,"context_line":"        except nova_exception.CommandError as e:"},{"line_number":204,"context_line":"            msg \u003d _(\"Failed to get Nova VM. %s\") % e"},{"line_number":205,"context_line":"            raise exception.ManilaException(msg)"}],"source_content_type":"text/x-python","patch_set":1,"id":"7a5de9d1_860daaea","line":202,"in_reply_to":"7a5de9d1_d31f0db5","updated":"2016-02-02 09:05:00.000000000","message":"@Valeriy: you want me to add a kwarg to \"server_get_by_name_or_id()\" ? I don\u0027t think we need that currently. We can imo add it when needed.","commit_id":"8111d59fbddc62370eb5e734025e0ffd35706a16"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"17720dbfc46168621da959c1b0af1ccafc476fb0","unresolved":false,"context_lines":[{"line_number":199,"context_line":"        try:"},{"line_number":200,"context_line":"            server \u003d utils.find_resource("},{"line_number":201,"context_line":"                novaclient(context).servers, instance_name_or_id,"},{"line_number":202,"context_line":"                all_tenants\u003dTrue)"},{"line_number":203,"context_line":"        except nova_exception.CommandError as e:"},{"line_number":204,"context_line":"            msg \u003d _(\"Failed to get Nova VM. %s\") % e"},{"line_number":205,"context_line":"            raise exception.ManilaException(msg)"}],"source_content_type":"text/x-python","patch_set":1,"id":"7a5de9d1_d31f0db5","line":202,"in_reply_to":"7a5de9d1_e0e0302b","updated":"2016-02-01 15:36:31.000000000","message":"If we add such key, then it should be possible to change it, so, need to add new key-word argument to this func called \"all_tenants\", and set some default value.","commit_id":"8111d59fbddc62370eb5e734025e0ffd35706a16"},{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"768b509a5179e2aeee5e39949e9a3e9eb8273bae","unresolved":false,"context_lines":[{"line_number":201,"context_line":"        try:"},{"line_number":202,"context_line":"            server \u003d utils.find_resource("},{"line_number":203,"context_line":"                novaclient(context).servers, instance_name_or_id)"},{"line_number":204,"context_line":"        except nova_exception.CommandError:"},{"line_number":205,"context_line":"            # we did not find the server in the current tenant,"},{"line_number":206,"context_line":"            # and proceed searching in all tenants"},{"line_number":207,"context_line":"            try:"},{"line_number":208,"context_line":"                server \u003d utils.find_resource("},{"line_number":209,"context_line":"                    novaclient(context).servers, instance_name_or_id,"},{"line_number":210,"context_line":"                    all_tenants\u003dTrue)"},{"line_number":211,"context_line":"            except nova_exception.CommandError as e:"},{"line_number":212,"context_line":"                msg \u003d _(\"Failed to get Nova VM. %s\") % e"},{"line_number":213,"context_line":"                raise exception.ManilaException(msg)"},{"line_number":214,"context_line":"        return _untranslate_server_summary_view(server)"},{"line_number":215,"context_line":""},{"line_number":216,"context_line":"    @translate_server_exception"}],"source_content_type":"text/x-python","patch_set":3,"id":"3afc51ec_acdecf0e","line":213,"range":{"start_line":204,"start_character":0,"end_line":213,"end_character":52},"updated":"2016-03-14 16:07:18.000000000","message":"None of this highlighted block is covered by unit tests.  Please add full coverage here.","commit_id":"1651ec4188fa89f99090064a7274be7c41c0cf87"}]}
