)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":23847,"name":"Richard G. Pioso","email":"richard.pioso@gmail.com","username":"richard.pioso"},"change_message_id":"ea43132aa6967ff3ace501b46c4ab836be86a7a8","unresolved":false,"context_lines":[{"line_number":13,"context_line":"is serializable."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"Also changes an exception raised from set_target_raid_config"},{"line_number":16,"context_line":"in conductor.manager, as it is not tell what it\u0027s supposed to."},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"Co-Authored-By: Richard Pioso \u003crichard.pioso@dell.com\u003e"},{"line_number":19,"context_line":"Closes-Bug: #1639982"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"9a629dbe_3bbe3aff","line":16,"range":{"start_line":16,"start_character":26,"end_line":16,"end_character":27},"updated":"2016-11-10 23:56:54.000000000","message":"The phrase following the comma is unclear to me.\n\nPlease consider appending much, if not all, of the content in the original patch proposal\u0027s (https://review.openstack.org/#/c/395271/1) Commit Message. I believe the ironic Python client timeout and oslo_messaging \"Circular reference detected\" symptoms would be especially helpful.","commit_id":"8cb5f01dc94f9d86f39c8dce6cfc8b2a1aa83185"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"7f10012adbacdb9a756c239a4410ffdefac3e053","unresolved":false,"context_lines":[{"line_number":13,"context_line":"is serializable."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"Also changes an exception raised from set_target_raid_config"},{"line_number":16,"context_line":"in conductor.manager, as it is not tell what it\u0027s supposed to."},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"Co-Authored-By: Richard Pioso \u003crichard.pioso@dell.com\u003e"},{"line_number":19,"context_line":"Closes-Bug: #1639982"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"9a629dbe_f1768ca2","line":16,"range":{"start_line":16,"start_character":26,"end_line":16,"end_character":27},"in_reply_to":"9a629dbe_3bbe3aff","updated":"2016-11-11 14:48:55.000000000","message":"Well, for complete symptoms, people can go into the bug. Commit messages are usually not a source of knowledge for anyone, it may be release notes and bugs. I\u0027ll add some of the info here just in case.","commit_id":"8cb5f01dc94f9d86f39c8dce6cfc8b2a1aa83185"}],"ironic/common/exception.py":[{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"fcdf9d131c1366d814ec8dabaf2829663ed68f31","unresolved":false,"context_lines":[{"line_number":52,"context_line":""},{"line_number":53,"context_line":"        self.kwargs \u003d {}"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"        serializers \u003d [json.dumps, six.text_type]"},{"line_number":56,"context_line":"        unserializable_keys \u003d []"},{"line_number":57,"context_line":"        for k, v in kwargs.items():"},{"line_number":58,"context_line":"            exc_count \u003d 0"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a629dbe_0a1af416","line":55,"updated":"2016-11-11 10:17:13.000000000","message":"We use oslo code for serialization that can not be the same as hardcoded here.","commit_id":"8cb5f01dc94f9d86f39c8dce6cfc8b2a1aa83185"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"7f10012adbacdb9a756c239a4410ffdefac3e053","unresolved":false,"context_lines":[{"line_number":52,"context_line":""},{"line_number":53,"context_line":"        self.kwargs \u003d {}"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"        serializers \u003d [json.dumps, six.text_type]"},{"line_number":56,"context_line":"        unserializable_keys \u003d []"},{"line_number":57,"context_line":"        for k, v in kwargs.items():"},{"line_number":58,"context_line":"            exc_count \u003d 0"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a629dbe_d1bee8ac","line":55,"in_reply_to":"9a629dbe_0a1af416","updated":"2016-11-11 14:48:55.000000000","message":"Well, the exact oslo_messaging method used for it is deep inside private modules/private functions, so the best I can do is use oslo_serialization method.","commit_id":"8cb5f01dc94f9d86f39c8dce6cfc8b2a1aa83185"},{"author":{"_account_id":7080,"name":"Mathieu Mitchell","email":"mat128@gmail.com","username":"mat128"},"change_message_id":"91b3b400cd3075d79dca70336059ebd2cb9d5583","unresolved":false,"context_lines":[{"line_number":62,"context_line":"                    break"},{"line_number":63,"context_line":"                except Exception:"},{"line_number":64,"context_line":"                    exc_count +\u003d 1"},{"line_number":65,"context_line":"            if exc_count \u003d\u003d len(serializers):"},{"line_number":66,"context_line":"                unserializable_keys.append(k)"},{"line_number":67,"context_line":"            else:"},{"line_number":68,"context_line":"                self.kwargs[k] \u003d v"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a629dbe_f2adcee9","line":65,"updated":"2016-11-10 18:56:50.000000000","message":"clever :)","commit_id":"8cb5f01dc94f9d86f39c8dce6cfc8b2a1aa83185"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"fcdf9d131c1366d814ec8dabaf2829663ed68f31","unresolved":false,"context_lines":[{"line_number":67,"context_line":"            else:"},{"line_number":68,"context_line":"                self.kwargs[k] \u003d v"},{"line_number":69,"context_line":"        if unserializable_keys:"},{"line_number":70,"context_line":"            raise InvalidExceptionContents(keys\u003d\u0027, \u0027.join(unserializable_keys))"},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"        if \u0027code\u0027 not in self.kwargs:"},{"line_number":73,"context_line":"            try:"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a629dbe_eacce08a","line":70,"updated":"2016-11-11 10:17:13.000000000","message":"We hide original exception info here, will be not good for debug.","commit_id":"8cb5f01dc94f9d86f39c8dce6cfc8b2a1aa83185"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"7f10012adbacdb9a756c239a4410ffdefac3e053","unresolved":false,"context_lines":[{"line_number":67,"context_line":"            else:"},{"line_number":68,"context_line":"                self.kwargs[k] \u003d v"},{"line_number":69,"context_line":"        if unserializable_keys:"},{"line_number":70,"context_line":"            raise InvalidExceptionContents(keys\u003d\u0027, \u0027.join(unserializable_keys))"},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"        if \u0027code\u0027 not in self.kwargs:"},{"line_number":73,"context_line":"            try:"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a629dbe_91cf1055","line":70,"in_reply_to":"9a629dbe_eacce08a","updated":"2016-11-11 14:48:55.000000000","message":"Done","commit_id":"8cb5f01dc94f9d86f39c8dce6cfc8b2a1aa83185"},{"author":{"_account_id":23847,"name":"Richard G. Pioso","email":"richard.pioso@gmail.com","username":"richard.pioso"},"change_message_id":"ea43132aa6967ff3ace501b46c4ab836be86a7a8","unresolved":false,"context_lines":[{"line_number":107,"context_line":""},{"line_number":108,"context_line":""},{"line_number":109,"context_line":"class InvalidExceptionContents(IronicException):"},{"line_number":110,"context_line":"    _msg_fmt \u003d _(\"One or more parameters passed to an IronicException \""},{"line_number":111,"context_line":"                 \"constructor as kwargs can not be serialized. Please check \""},{"line_number":112,"context_line":"                 \"the contents of the following kwargs keys: %(keys)s.\")"},{"line_number":113,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"9a629dbe_bb816afd","line":110,"updated":"2016-11-10 23:56:54.000000000","message":"Nit, s/parameters/arguments/.","commit_id":"8cb5f01dc94f9d86f39c8dce6cfc8b2a1aa83185"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"7f10012adbacdb9a756c239a4410ffdefac3e053","unresolved":false,"context_lines":[{"line_number":107,"context_line":""},{"line_number":108,"context_line":""},{"line_number":109,"context_line":"class InvalidExceptionContents(IronicException):"},{"line_number":110,"context_line":"    _msg_fmt \u003d _(\"One or more parameters passed to an IronicException \""},{"line_number":111,"context_line":"                 \"constructor as kwargs can not be serialized. Please check \""},{"line_number":112,"context_line":"                 \"the contents of the following kwargs keys: %(keys)s.\")"},{"line_number":113,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"9a629dbe_110a208a","line":110,"in_reply_to":"9a629dbe_bb816afd","updated":"2016-11-11 14:48:55.000000000","message":"Done","commit_id":"8cb5f01dc94f9d86f39c8dce6cfc8b2a1aa83185"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"43f94131c024601f0c6e153fb7889f9de817273a","unresolved":false,"context_lines":[{"line_number":56,"context_line":"        # NOTE(vdrok): We try to do serialization here, as if it fails, this"},{"line_number":57,"context_line":"        # exception can\u0027t be sent over RPC."},{"line_number":58,"context_line":"        serializers \u003d [jsonutils.dumps, six.text_type]"},{"line_number":59,"context_line":"        exceptions \u003d collections.defaultdict(lambda: [])"},{"line_number":60,"context_line":"        for k, v in kwargs.items():"},{"line_number":61,"context_line":"            for serializer in serializers:"},{"line_number":62,"context_line":"                try:"}],"source_content_type":"text/x-python","patch_set":3,"id":"9a629dbe_00f70cf6","line":59,"updated":"2016-11-13 13:26:34.000000000","message":"+1","commit_id":"01ef85749bc96dbe1ab8f8d3523355a58e21501f"},{"author":{"_account_id":23847,"name":"Richard G. Pioso","email":"richard.pioso@gmail.com","username":"richard.pioso"},"change_message_id":"bb0c44c37d44549ac14f60337928a1244962387d","unresolved":false,"context_lines":[{"line_number":56,"context_line":"        # NOTE(vdrok): We try to do serialization here, as if it fails, this"},{"line_number":57,"context_line":"        # exception can\u0027t be sent over RPC."},{"line_number":58,"context_line":"        serializers \u003d [jsonutils.dumps, six.text_type]"},{"line_number":59,"context_line":"        exceptions \u003d collections.defaultdict(lambda: [])"},{"line_number":60,"context_line":"        for k, v in kwargs.items():"},{"line_number":61,"context_line":"            for serializer in serializers:"},{"line_number":62,"context_line":"                try:"}],"source_content_type":"text/x-python","patch_set":3,"id":"9a629dbe_c37b70f3","line":59,"updated":"2016-11-12 00:42:07.000000000","message":"defaultdict(list) would be simpler.","commit_id":"01ef85749bc96dbe1ab8f8d3523355a58e21501f"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"66c3be3ad1f08d986be2d317f1deb42b843b3ecd","unresolved":false,"context_lines":[{"line_number":56,"context_line":"        # NOTE(vdrok): We try to do serialization here, as if it fails, this"},{"line_number":57,"context_line":"        # exception can\u0027t be sent over RPC."},{"line_number":58,"context_line":"        serializers \u003d [jsonutils.dumps, six.text_type]"},{"line_number":59,"context_line":"        exceptions \u003d collections.defaultdict(lambda: [])"},{"line_number":60,"context_line":"        for k, v in kwargs.items():"},{"line_number":61,"context_line":"            for serializer in serializers:"},{"line_number":62,"context_line":"                try:"}],"source_content_type":"text/x-python","patch_set":3,"id":"7a77a97e_4382d053","line":59,"in_reply_to":"9a629dbe_00f70cf6","updated":"2016-11-15 13:40:14.000000000","message":"Done","commit_id":"01ef85749bc96dbe1ab8f8d3523355a58e21501f"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"43f94131c024601f0c6e153fb7889f9de817273a","unresolved":false,"context_lines":[{"line_number":64,"context_line":"                    break"},{"line_number":65,"context_line":"                except Exception as e:"},{"line_number":66,"context_line":"                    exceptions[k].append(e)"},{"line_number":67,"context_line":"            if len(exceptions[k]) \u003c len(serializers):"},{"line_number":68,"context_line":"                self.kwargs[k] \u003d v"},{"line_number":69,"context_line":"                del exceptions[k]"},{"line_number":70,"context_line":"        if exceptions:"}],"source_content_type":"text/x-python","patch_set":3,"id":"9a629dbe_20dc1074","line":67,"updated":"2016-11-13 13:26:34.000000000","message":"nit: you could use \"else\" branch of \"for\" loop here","commit_id":"01ef85749bc96dbe1ab8f8d3523355a58e21501f"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"66c3be3ad1f08d986be2d317f1deb42b843b3ecd","unresolved":false,"context_lines":[{"line_number":64,"context_line":"                    break"},{"line_number":65,"context_line":"                except Exception as e:"},{"line_number":66,"context_line":"                    exceptions[k].append(e)"},{"line_number":67,"context_line":"            if len(exceptions[k]) \u003c len(serializers):"},{"line_number":68,"context_line":"                self.kwargs[k] \u003d v"},{"line_number":69,"context_line":"                del exceptions[k]"},{"line_number":70,"context_line":"        if exceptions:"}],"source_content_type":"text/x-python","patch_set":3,"id":"7a77a97e_43881023","line":67,"in_reply_to":"9a629dbe_20dc1074","updated":"2016-11-15 13:40:14.000000000","message":"No, we\u0027d need to do this block if break actually was encountered, meaning we did serialize stuff successfully.","commit_id":"01ef85749bc96dbe1ab8f8d3523355a58e21501f"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"43f94131c024601f0c6e153fb7889f9de817273a","unresolved":false,"context_lines":[{"line_number":69,"context_line":"                del exceptions[k]"},{"line_number":70,"context_line":"        if exceptions:"},{"line_number":71,"context_line":"            raise InvalidExceptionContents("},{"line_number":72,"context_line":"                errors\u003d\u0027;\\n\u0027.join([\"%s: %s\" % (key, exc_list)"},{"line_number":73,"context_line":"                                   for key, exc_list in exceptions.items()]))"},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"        if \u0027code\u0027 not in self.kwargs:"}],"source_content_type":"text/x-python","patch_set":3,"id":"9a629dbe_40d90483","line":72,"updated":"2016-11-13 13:26:34.000000000","message":"nit: no need to unpack the tuple:\n\n \"%s: %s\" % tpl for tpl in exceptions.items()\n\nnit2: no need for []\n\nnit3 (or not really nit): I\u0027d prefer exception list to be nicer formatted. E.g. so that the end result looks like\n\n key1: (when converting to JSON) ValueError - \"blah-blah\"; (when converting to string) TypeError - \"foo bar\"","commit_id":"01ef85749bc96dbe1ab8f8d3523355a58e21501f"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"66c3be3ad1f08d986be2d317f1deb42b843b3ecd","unresolved":false,"context_lines":[{"line_number":69,"context_line":"                del exceptions[k]"},{"line_number":70,"context_line":"        if exceptions:"},{"line_number":71,"context_line":"            raise InvalidExceptionContents("},{"line_number":72,"context_line":"                errors\u003d\u0027;\\n\u0027.join([\"%s: %s\" % (key, exc_list)"},{"line_number":73,"context_line":"                                   for key, exc_list in exceptions.items()]))"},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"        if \u0027code\u0027 not in self.kwargs:"}],"source_content_type":"text/x-python","patch_set":3,"id":"7a77a97e_215ea9e9","line":72,"in_reply_to":"9a629dbe_40d90483","updated":"2016-11-15 13:40:14.000000000","message":"Done","commit_id":"01ef85749bc96dbe1ab8f8d3523355a58e21501f"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"43f94131c024601f0c6e153fb7889f9de817273a","unresolved":false,"context_lines":[{"line_number":113,"context_line":"    _msg_fmt \u003d _(\"One or more arguments passed to an IronicException \""},{"line_number":114,"context_line":"                 \"constructor as kwargs can not be serialized. Please check \""},{"line_number":115,"context_line":"                 \"the exceptions encountered during the serialization of the \""},{"line_number":116,"context_line":"                 \"following kwargs keys:\\n%(errors)s.\")"},{"line_number":117,"context_line":""},{"line_number":118,"context_line":""},{"line_number":119,"context_line":"class NotAuthorized(IronicException):"}],"source_content_type":"text/x-python","patch_set":3,"id":"9a629dbe_60e60846","line":116,"updated":"2016-11-13 13:26:34.000000000","message":"this will put a dot after the last \\n. honestly, I\u0027d prefer we don\u0027t put dots in the end of exceptions messages at all","commit_id":"01ef85749bc96dbe1ab8f8d3523355a58e21501f"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"66c3be3ad1f08d986be2d317f1deb42b843b3ecd","unresolved":false,"context_lines":[{"line_number":113,"context_line":"    _msg_fmt \u003d _(\"One or more arguments passed to an IronicException \""},{"line_number":114,"context_line":"                 \"constructor as kwargs can not be serialized. Please check \""},{"line_number":115,"context_line":"                 \"the exceptions encountered during the serialization of the \""},{"line_number":116,"context_line":"                 \"following kwargs keys:\\n%(errors)s.\")"},{"line_number":117,"context_line":""},{"line_number":118,"context_line":""},{"line_number":119,"context_line":"class NotAuthorized(IronicException):"}],"source_content_type":"text/x-python","patch_set":3,"id":"7a77a97e_23c23434","line":116,"in_reply_to":"9a629dbe_60e60846","updated":"2016-11-15 13:40:14.000000000","message":"Nope, it will put a dot on the same line as the output finishes, but OK.","commit_id":"01ef85749bc96dbe1ab8f8d3523355a58e21501f"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"69ff4a32e63b929b59fac2ad2949fae33eaa8722","unresolved":false,"context_lines":[{"line_number":61,"context_line":"        for k, v in kwargs.items():"},{"line_number":62,"context_line":"            for serializer, msg in serializers:"},{"line_number":63,"context_line":"                try:"},{"line_number":64,"context_line":"                    v \u003d serializer(v)"},{"line_number":65,"context_line":"                    break"},{"line_number":66,"context_line":"                except Exception as e:"},{"line_number":67,"context_line":"                    exceptions[k].append(\u0027(%s) %s\u0027 % (msg, six.text_type(e)))"}],"source_content_type":"text/x-python","patch_set":4,"id":"7a77a97e_8c56a2d0","line":64,"range":{"start_line":64,"start_character":20,"end_line":64,"end_character":23},"updated":"2016-11-16 12:18:09.000000000","message":"It\u0027s needed to reassign value here?","commit_id":"33c175da1ab669b258f48f82ff68b1ad080d7ddf"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"450eee7d35a0f4b4b08612e37074fb9151b9e4eb","unresolved":false,"context_lines":[{"line_number":61,"context_line":"        for k, v in kwargs.items():"},{"line_number":62,"context_line":"            for serializer, msg in serializers:"},{"line_number":63,"context_line":"                try:"},{"line_number":64,"context_line":"                    v \u003d serializer(v)"},{"line_number":65,"context_line":"                    break"},{"line_number":66,"context_line":"                except Exception as e:"},{"line_number":67,"context_line":"                    exceptions[k].append(\u0027(%s) %s\u0027 % (msg, six.text_type(e)))"}],"source_content_type":"text/x-python","patch_set":4,"id":"7a77a97e_ce74d569","line":64,"range":{"start_line":64,"start_character":20,"end_line":64,"end_character":23},"in_reply_to":"7a77a97e_4ccbaa53","updated":"2016-11-17 11:41:51.000000000","message":"It\u0027s not very good IMO because we create potentially inconsistency between serialization in oslo_messaging and here, but currently should work.","commit_id":"33c175da1ab669b258f48f82ff68b1ad080d7ddf"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"cdc42a146da3abbf43a37d790bfc0f89a120708c","unresolved":false,"context_lines":[{"line_number":61,"context_line":"        for k, v in kwargs.items():"},{"line_number":62,"context_line":"            for serializer, msg in serializers:"},{"line_number":63,"context_line":"                try:"},{"line_number":64,"context_line":"                    v \u003d serializer(v)"},{"line_number":65,"context_line":"                    break"},{"line_number":66,"context_line":"                except Exception as e:"},{"line_number":67,"context_line":"                    exceptions[k].append(\u0027(%s) %s\u0027 % (msg, six.text_type(e)))"}],"source_content_type":"text/x-python","patch_set":4,"id":"7a77a97e_4ccbaa53","line":64,"range":{"start_line":64,"start_character":20,"end_line":64,"end_character":23},"in_reply_to":"7a77a97e_8c56a2d0","updated":"2016-11-16 12:21:55.000000000","message":"I think yes, it is not required in case of jsonutils.dumps serialization, as oslo_messaging will do it anyway, but in case of converting to string, it is required. Just didn\u0027t want to add extra logic because of that.","commit_id":"33c175da1ab669b258f48f82ff68b1ad080d7ddf"},{"author":{"_account_id":23847,"name":"Richard G. Pioso","email":"richard.pioso@gmail.com","username":"richard.pioso"},"change_message_id":"b0e1e82a64303e431dcea9ba150dd5f0e4628e85","unresolved":false,"context_lines":[{"line_number":64,"context_line":"                    v \u003d serializer(v)"},{"line_number":65,"context_line":"                    break"},{"line_number":66,"context_line":"                except Exception as e:"},{"line_number":67,"context_line":"                    exceptions[k].append(\u0027(%s) %s\u0027 % (msg, six.text_type(e)))"},{"line_number":68,"context_line":"            if len(exceptions[k]) \u003c len(serializers):"},{"line_number":69,"context_line":"                self.kwargs[k] \u003d v"},{"line_number":70,"context_line":"                del exceptions[k]"}],"source_content_type":"text/x-python","patch_set":4,"id":"7a77a97e_2863dadd","line":67,"range":{"start_line":67,"start_character":0,"end_line":67,"end_character":20},"updated":"2016-11-16 00:37:10.000000000","message":"This doesn\u0027t include the class name of the exception instance, \u0027e\u0027, such as ValueError or TypeError. Seems like that would be useful, too.","commit_id":"33c175da1ab669b258f48f82ff68b1ad080d7ddf"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"66bf79a042da4dd39f205f59b92cb6eb762dde6a","unresolved":false,"context_lines":[{"line_number":64,"context_line":"                    v \u003d serializer(v)"},{"line_number":65,"context_line":"                    break"},{"line_number":66,"context_line":"                except Exception as e:"},{"line_number":67,"context_line":"                    exceptions[k].append(\u0027(%s) %s\u0027 % (msg, six.text_type(e)))"},{"line_number":68,"context_line":"            if len(exceptions[k]) \u003c len(serializers):"},{"line_number":69,"context_line":"                self.kwargs[k] \u003d v"},{"line_number":70,"context_line":"                del exceptions[k]"}],"source_content_type":"text/x-python","patch_set":4,"id":"7a77a97e_dfff9ea8","line":67,"range":{"start_line":67,"start_character":0,"end_line":67,"end_character":20},"in_reply_to":"7a77a97e_0c361252","updated":"2016-11-21 17:09:53.000000000","message":"1. Please do, this way it\u0027s going to be easier to backport, 2. six.text_type is redundant, %s already does it","commit_id":"33c175da1ab669b258f48f82ff68b1ad080d7ddf"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"cdc42a146da3abbf43a37d790bfc0f89a120708c","unresolved":false,"context_lines":[{"line_number":64,"context_line":"                    v \u003d serializer(v)"},{"line_number":65,"context_line":"                    break"},{"line_number":66,"context_line":"                except Exception as e:"},{"line_number":67,"context_line":"                    exceptions[k].append(\u0027(%s) %s\u0027 % (msg, six.text_type(e)))"},{"line_number":68,"context_line":"            if len(exceptions[k]) \u003c len(serializers):"},{"line_number":69,"context_line":"                self.kwargs[k] \u003d v"},{"line_number":70,"context_line":"                del exceptions[k]"}],"source_content_type":"text/x-python","patch_set":4,"id":"7a77a97e_0c361252","line":67,"range":{"start_line":67,"start_character":0,"end_line":67,"end_character":20},"in_reply_to":"7a77a97e_2863dadd","updated":"2016-11-16 12:21:55.000000000","message":"Hm, might be, will add if there are more things to fix, or in a followup.","commit_id":"33c175da1ab669b258f48f82ff68b1ad080d7ddf"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"1ea474c520ebcae1632448d6b351890ba98897e6","unresolved":false,"context_lines":[{"line_number":64,"context_line":"                    v \u003d serializer(v)"},{"line_number":65,"context_line":"                    break"},{"line_number":66,"context_line":"                except Exception as e:"},{"line_number":67,"context_line":"                    exceptions[k].append(\u0027(%s) %s\u0027 % (msg, six.text_type(e)))"},{"line_number":68,"context_line":"            if len(exceptions[k]) \u003c len(serializers):"},{"line_number":69,"context_line":"                self.kwargs[k] \u003d v"},{"line_number":70,"context_line":"                del exceptions[k]"}],"source_content_type":"text/x-python","patch_set":4,"id":"7a77a97e_1a1cc476","line":67,"range":{"start_line":67,"start_character":0,"end_line":67,"end_character":20},"in_reply_to":"7a77a97e_dfff9ea8","updated":"2016-11-21 17:39:16.000000000","message":"Done","commit_id":"33c175da1ab669b258f48f82ff68b1ad080d7ddf"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"e6726f76255c1e1fac48adae1e5b672a1a2024f3","unresolved":false,"context_lines":[{"line_number":54,"context_line":"        self.kwargs \u003d {}"},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"        # NOTE(vdrok): We try to do serialization here, as if it fails, this"},{"line_number":57,"context_line":"        # exception can\u0027t be sent over RPC."},{"line_number":58,"context_line":"        serializers \u003d [(jsonutils.dumps, _(\u0027when converting to JSON\u0027)),"},{"line_number":59,"context_line":"                       (six.text_type, _(\u0027when converting to string\u0027))]"},{"line_number":60,"context_line":"        exceptions \u003d collections.defaultdict(list)"}],"source_content_type":"text/x-python","patch_set":5,"id":"5a74a57a_bf50e90b","line":57,"updated":"2016-11-24 12:12:58.000000000","message":"Will be good to move this validation to a separate private function.","commit_id":"91a79675bbfd140c79b07febebea07eb8c9aa5c1"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"c547c437557fd3bec12010f4eb45121152f7c099","unresolved":false,"context_lines":[{"line_number":54,"context_line":"        self.kwargs \u003d {}"},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"        # NOTE(vdrok): We try to do serialization here, as if it fails, this"},{"line_number":57,"context_line":"        # exception can\u0027t be sent over RPC."},{"line_number":58,"context_line":"        serializers \u003d [(jsonutils.dumps, _(\u0027when converting to JSON\u0027)),"},{"line_number":59,"context_line":"                       (six.text_type, _(\u0027when converting to string\u0027))]"},{"line_number":60,"context_line":"        exceptions \u003d collections.defaultdict(list)"}],"source_content_type":"text/x-python","patch_set":5,"id":"5a74a57a_df41250d","line":57,"in_reply_to":"5a74a57a_bf50e90b","updated":"2016-11-24 12:16:23.000000000","message":"Good suggestion, will do. Hope that noone will request separate unit tests for this function :D","commit_id":"91a79675bbfd140c79b07febebea07eb8c9aa5c1"},{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"e19dc85c90b2c4708e9778ad14a77429609c0b19","unresolved":false,"context_lines":[{"line_number":35,"context_line":""},{"line_number":36,"context_line":"def _ensure_exception_kwargs_serializable(kwargs):"},{"line_number":37,"context_line":"    serializers \u003d [(jsonutils.dumps, _(\u0027when converting to JSON\u0027)),"},{"line_number":38,"context_line":"                   (six.text_type, _(\u0027when converting to string\u0027))]"},{"line_number":39,"context_line":"    exceptions \u003d collections.defaultdict(list)"},{"line_number":40,"context_line":"    serializable_kwargs \u003d {}"},{"line_number":41,"context_line":"    for k, v in kwargs.items():"}],"source_content_type":"text/x-python","patch_set":6,"id":"5a74a57a_915bfd2d","line":38,"updated":"2016-11-25 11:56:09.000000000","message":"nit: this can be made a top-level constant","commit_id":"21957eb821564e5fc233b0918fff3ab812631a66"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"3b3c95c922c8a9c1725b98b45cf6aa13cdbb646e","unresolved":false,"context_lines":[{"line_number":35,"context_line":""},{"line_number":36,"context_line":"def _ensure_exception_kwargs_serializable(kwargs):"},{"line_number":37,"context_line":"    serializers \u003d [(jsonutils.dumps, _(\u0027when converting to JSON\u0027)),"},{"line_number":38,"context_line":"                   (six.text_type, _(\u0027when converting to string\u0027))]"},{"line_number":39,"context_line":"    exceptions \u003d collections.defaultdict(list)"},{"line_number":40,"context_line":"    serializable_kwargs \u003d {}"},{"line_number":41,"context_line":"    for k, v in kwargs.items():"}],"source_content_type":"text/x-python","patch_set":6,"id":"5a74a57a_e818bb77","line":38,"in_reply_to":"5a74a57a_915bfd2d","updated":"2016-11-25 14:06:22.000000000","message":"Not sure about this, I don\u0027t think someone else would use this construct.","commit_id":"21957eb821564e5fc233b0918fff3ab812631a66"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"ddfa0eeb097015ddbad12d9c6fbb5a2c23ca8345","unresolved":false,"context_lines":[{"line_number":48,"context_line":"                    \u0027(%(serializer_type)s) %(e_type)s: %(e_contents)s\u0027 %"},{"line_number":49,"context_line":"                    {\u0027serializer_type\u0027: msg, \u0027e_contents\u0027: e,"},{"line_number":50,"context_line":"                     \u0027e_type\u0027: e.__class__.__name__})"},{"line_number":51,"context_line":"        if len(exceptions[k]) \u003c len(serializers):"},{"line_number":52,"context_line":"            serializable_kwargs[k] \u003d v"},{"line_number":53,"context_line":"            del exceptions[k]"},{"line_number":54,"context_line":"    if exceptions:"}],"source_content_type":"text/x-python","patch_set":6,"id":"5a74a57a_a2dee56a","line":51,"updated":"2016-11-25 13:11:55.000000000","message":"I think more simple to use\n\n for ...\n     ...\n else:\n     raise ...\n\nconstructions here.","commit_id":"21957eb821564e5fc233b0918fff3ab812631a66"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"9710c815396ce3c0079487b77a3d964777f0e930","unresolved":false,"context_lines":[{"line_number":48,"context_line":"                    \u0027(%(serializer_type)s) %(e_type)s: %(e_contents)s\u0027 %"},{"line_number":49,"context_line":"                    {\u0027serializer_type\u0027: msg, \u0027e_contents\u0027: e,"},{"line_number":50,"context_line":"                     \u0027e_type\u0027: e.__class__.__name__})"},{"line_number":51,"context_line":"        if len(exceptions[k]) \u003c len(serializers):"},{"line_number":52,"context_line":"            serializable_kwargs[k] \u003d v"},{"line_number":53,"context_line":"            del exceptions[k]"},{"line_number":54,"context_line":"    if exceptions:"}],"source_content_type":"text/x-python","patch_set":6,"id":"5a74a57a_054c029d","line":51,"in_reply_to":"5a74a57a_a2dee56a","updated":"2016-11-25 13:55:52.000000000","message":"It\u0027s ok as is, will be not simple.","commit_id":"21957eb821564e5fc233b0918fff3ab812631a66"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"ddfa0eeb097015ddbad12d9c6fbb5a2c23ca8345","unresolved":false,"context_lines":[{"line_number":78,"context_line":""},{"line_number":79,"context_line":"    def __init__(self, message\u003dNone, **kwargs):"},{"line_number":80,"context_line":""},{"line_number":81,"context_line":"        # NOTE(vdrok): We try to do kwargs serialization here, as if it fails,"},{"line_number":82,"context_line":"        # this exception can\u0027t be sent over RPC."},{"line_number":83,"context_line":"        self.kwargs \u003d _ensure_exception_kwargs_serializable(kwargs)"},{"line_number":84,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"5a74a57a_87101baa","line":81,"updated":"2016-11-25 13:11:55.000000000","message":"nit: I prefer docstring in this function instead of this comment.","commit_id":"21957eb821564e5fc233b0918fff3ab812631a66"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"3b3c95c922c8a9c1725b98b45cf6aa13cdbb646e","unresolved":false,"context_lines":[{"line_number":78,"context_line":""},{"line_number":79,"context_line":"    def __init__(self, message\u003dNone, **kwargs):"},{"line_number":80,"context_line":""},{"line_number":81,"context_line":"        # NOTE(vdrok): We try to do kwargs serialization here, as if it fails,"},{"line_number":82,"context_line":"        # this exception can\u0027t be sent over RPC."},{"line_number":83,"context_line":"        self.kwargs \u003d _ensure_exception_kwargs_serializable(kwargs)"},{"line_number":84,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"5a74a57a_08289785","line":81,"in_reply_to":"5a74a57a_87101baa","updated":"2016-11-25 14:06:22.000000000","message":"Done","commit_id":"21957eb821564e5fc233b0918fff3ab812631a66"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"2cf7f9b1eb09e215ce755763149ae93be6a178c2","unresolved":false,"context_lines":[{"line_number":37,"context_line":"    \"\"\"Ensure that kwargs are serializable"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"    Ensure that all kwargs passed to exception constructor can be passed over"},{"line_number":40,"context_line":"    RPC, by trying to serialize them to JSON, or, as a last resort, to string."},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"    :param kwargs: a dictionary of keyword arguments passed to the exception"},{"line_number":43,"context_line":"        constructor."}],"source_content_type":"text/x-python","patch_set":7,"id":"5a74a57a_8b158141","line":40,"range":{"start_line":40,"start_character":22,"end_line":40,"end_character":31},"updated":"2016-11-25 14:19:13.000000000","message":"s/serialize/convert","commit_id":"3659e9da9b3393a1d43854e2465c25be2a01da38"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"f0cb68df6c51808fac02c6b07047f4f3141b65ad","unresolved":false,"context_lines":[{"line_number":61,"context_line":"                     \u0027e_type\u0027: e.__class__.__name__})"},{"line_number":62,"context_line":"        if len(exceptions[k]) \u003c len(serializers):"},{"line_number":63,"context_line":"            serializable_kwargs[k] \u003d v"},{"line_number":64,"context_line":"            del exceptions[k]"},{"line_number":65,"context_line":"    if exceptions:"},{"line_number":66,"context_line":"        raise InvalidExceptionContents("},{"line_number":67,"context_line":"            errors\u003d\u0027;\\n\u0027.join("}],"source_content_type":"text/x-python","patch_set":8,"id":"5a74a57a_f2de6f3c","line":64,"updated":"2016-11-29 15:28:01.000000000","message":"So maybe this is a dumb question, but why don\u0027t you put this part at L55. Eg\n    serializable_kwargs[k] \u003d serializer(v)\n    exceptions.pop(k, None)\n    break\n\nand then get rid of L62-64? (Or maybe I am missing something.)","commit_id":"fe7b9dad6c84f3309c77dc86fb4b9aff6fa2da30"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"0c8612bc79cb0cb8f4b4ddc81d3573eb13803d40","unresolved":false,"context_lines":[{"line_number":61,"context_line":"                     \u0027e_type\u0027: e.__class__.__name__})"},{"line_number":62,"context_line":"        if len(exceptions[k]) \u003c len(serializers):"},{"line_number":63,"context_line":"            serializable_kwargs[k] \u003d v"},{"line_number":64,"context_line":"            del exceptions[k]"},{"line_number":65,"context_line":"    if exceptions:"},{"line_number":66,"context_line":"        raise InvalidExceptionContents("},{"line_number":67,"context_line":"            errors\u003d\u0027;\\n\u0027.join("}],"source_content_type":"text/x-python","patch_set":8,"id":"5a74a57a_9297fbea","line":64,"in_reply_to":"5a74a57a_f2de6f3c","updated":"2016-11-29 15:33:50.000000000","message":"Hm, right, it seems that should work too.","commit_id":"fe7b9dad6c84f3309c77dc86fb4b9aff6fa2da30"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"f0cb68df6c51808fac02c6b07047f4f3141b65ad","unresolved":false,"context_lines":[{"line_number":66,"context_line":"        raise InvalidExceptionContents("},{"line_number":67,"context_line":"            errors\u003d\u0027;\\n\u0027.join("},{"line_number":68,"context_line":"                \"%s: %s\" % (k, \u0027; \u0027.join(v)) for k, v in exceptions.items()"},{"line_number":69,"context_line":"            )"},{"line_number":70,"context_line":"        )"},{"line_number":71,"context_line":"    return serializable_kwargs"},{"line_number":72,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"5a74a57a_72c25f54","line":69,"updated":"2016-11-29 15:28:01.000000000","message":"Another dumb question. If this code is used in production, and we get to here, then this exception gets raised. Won\u0027t the user see the same behavior as w/o this change (except maybe not as frequently) -- that the API service will get a 500 error?","commit_id":"fe7b9dad6c84f3309c77dc86fb4b9aff6fa2da30"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"0c8612bc79cb0cb8f4b4ddc81d3573eb13803d40","unresolved":false,"context_lines":[{"line_number":66,"context_line":"        raise InvalidExceptionContents("},{"line_number":67,"context_line":"            errors\u003d\u0027;\\n\u0027.join("},{"line_number":68,"context_line":"                \"%s: %s\" % (k, \u0027; \u0027.join(v)) for k, v in exceptions.items()"},{"line_number":69,"context_line":"            )"},{"line_number":70,"context_line":"        )"},{"line_number":71,"context_line":"    return serializable_kwargs"},{"line_number":72,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"5a74a57a_d2333360","line":69,"in_reply_to":"5a74a57a_72c25f54","updated":"2016-11-29 15:33:50.000000000","message":"Correct, but that 500 error was not giving any actual info on what\u0027s happening. Also having an object that can not be converted to string is a pretty rare case as I mentioned in reply to Sam\u0027s comment.","commit_id":"fe7b9dad6c84f3309c77dc86fb4b9aff6fa2da30"},{"author":{"_account_id":23847,"name":"Richard G. Pioso","email":"richard.pioso@gmail.com","username":"richard.pioso"},"change_message_id":"801f6faa8981d83af257b9018fa7d29fdf7f235b","unresolved":false,"context_lines":[{"line_number":90,"context_line":"    def __init__(self, message\u003dNone, **kwargs):"},{"line_number":91,"context_line":""},{"line_number":92,"context_line":"        # NOTE(vdrok): We try to do kwargs serialization here, as if it fails,"},{"line_number":93,"context_line":"        # this exception can\u0027t be sent over RPC."},{"line_number":94,"context_line":"        self.kwargs \u003d _ensure_exception_kwargs_serializable(kwargs)"},{"line_number":95,"context_line":""},{"line_number":96,"context_line":"        if \u0027code\u0027 not in self.kwargs:"}],"source_content_type":"text/x-python","patch_set":8,"id":"5a74a57a_247bb7f6","line":93,"updated":"2016-11-25 16:58:47.000000000","message":"It seems like this comment is no longer necessary following the refactoring of the code and the addition of a docstring to the new function, _ensure_exception_kwargs_serializable().","commit_id":"fe7b9dad6c84f3309c77dc86fb4b9aff6fa2da30"},{"author":{"_account_id":7711,"name":"Yuriy Zveryanskyy","email":"yzveryanskyy@mirantis.com","username":"yuriyz"},"change_message_id":"9b382631d93459cd509034eb3dfba49cf66ab00b","unresolved":false,"context_lines":[{"line_number":90,"context_line":"    def __init__(self, message\u003dNone, **kwargs):"},{"line_number":91,"context_line":""},{"line_number":92,"context_line":"        # NOTE(vdrok): We try to do kwargs serialization here, as if it fails,"},{"line_number":93,"context_line":"        # this exception can\u0027t be sent over RPC."},{"line_number":94,"context_line":"        self.kwargs \u003d _ensure_exception_kwargs_serializable(kwargs)"},{"line_number":95,"context_line":""},{"line_number":96,"context_line":"        if \u0027code\u0027 not in self.kwargs:"}],"source_content_type":"text/x-python","patch_set":8,"id":"5a74a57a_f9581d8c","line":93,"in_reply_to":"5a74a57a_247bb7f6","updated":"2016-11-29 13:20:59.000000000","message":"+1 if new patchset should be prepared please remove it.","commit_id":"fe7b9dad6c84f3309c77dc86fb4b9aff6fa2da30"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"ea7044babc02fbf8b6f34ed7d9c38e4b648375cf","unresolved":false,"context_lines":[{"line_number":109,"context_line":"                prs \u003d \u0027, \u0027.join(\u0027%s: %s\u0027 % pair for pair in kwargs.items())"},{"line_number":110,"context_line":"                LOG.exception(_LE(\u0027Exception in string format operation \u0027"},{"line_number":111,"context_line":"                                  \u0027(arguments %s)\u0027), prs)"},{"line_number":112,"context_line":"                if CONF.fatal_exception_format_errors:"},{"line_number":113,"context_line":"                    raise e"},{"line_number":114,"context_line":"                else:"},{"line_number":115,"context_line":"                    # at least get the core self._msg_fmt out if something"}],"source_content_type":"text/x-python","patch_set":8,"id":"5a74a57a_52c3a337","line":112,"updated":"2016-11-29 15:31:22.000000000","message":"We have this code here to handle errors with the formatting of exceptions. I wonder if we should use the same config variable to decide what to do if the kwargs are not serializable.","commit_id":"fe7b9dad6c84f3309c77dc86fb4b9aff6fa2da30"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"9adfe589fc06ef95cff4865d0414739e465f4289","unresolved":false,"context_lines":[{"line_number":109,"context_line":"                prs \u003d \u0027, \u0027.join(\u0027%s: %s\u0027 % pair for pair in kwargs.items())"},{"line_number":110,"context_line":"                LOG.exception(_LE(\u0027Exception in string format operation \u0027"},{"line_number":111,"context_line":"                                  \u0027(arguments %s)\u0027), prs)"},{"line_number":112,"context_line":"                if CONF.fatal_exception_format_errors:"},{"line_number":113,"context_line":"                    raise e"},{"line_number":114,"context_line":"                else:"},{"line_number":115,"context_line":"                    # at least get the core self._msg_fmt out if something"}],"source_content_type":"text/x-python","patch_set":8,"id":"5a74a57a_72297f9a","line":112,"in_reply_to":"5a74a57a_52c3a337","updated":"2016-11-29 15:36:44.000000000","message":"Hm, replace the ones that are not serializable with something like \"can not serialize this\"?","commit_id":"fe7b9dad6c84f3309c77dc86fb4b9aff6fa2da30"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"3d879d534c5e147e9083594e7ac0d507f1d24ef2","unresolved":false,"context_lines":[{"line_number":53,"context_line":"    for k, v in kwargs.items():"},{"line_number":54,"context_line":"        for serializer, msg in serializers:"},{"line_number":55,"context_line":"            try:"},{"line_number":56,"context_line":"                serializable_kwargs[k] \u003d serializer(v)"},{"line_number":57,"context_line":"                exceptions.pop(k, None)"},{"line_number":58,"context_line":"                break"},{"line_number":59,"context_line":"            except Exception as e:"}],"source_content_type":"text/x-python","patch_set":10,"id":"5a74a57a_f292e14a","line":56,"updated":"2016-11-29 20:18:37.000000000","message":"I was wondering. if v is a string, jsonutils.dumps will add double quotes around them. Won\u0027t the msg look odd if it was eg InvalidStateRequested with action\u003d\u0027some action\u0027? I think it\u0027ll be something like \u0027The requested action \"\"some action\"\" can not be performed on node \"\"uuid\"\" while it is in state \"\"state\"\".\u0027\n\nAlso, if we change an integer to a string (since jsonutils.dumps(1) \u003d\u003d \u00271\u0027), won\u0027t we get an error if we then try to use it in a message like from exception InsufficientDiskSpace?\n\nDo we need to do this, or can we just keep the original v value, for it to be serialized later?","commit_id":"d71a50658d0d917b8849811436b326a58e317235"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"6c6b484c3412e9f834cf2951b0f09e82d806bcb9","unresolved":false,"context_lines":[{"line_number":53,"context_line":"    for k, v in kwargs.items():"},{"line_number":54,"context_line":"        for serializer, msg in serializers:"},{"line_number":55,"context_line":"            try:"},{"line_number":56,"context_line":"                serializable_kwargs[k] \u003d serializer(v)"},{"line_number":57,"context_line":"                exceptions.pop(k, None)"},{"line_number":58,"context_line":"                break"},{"line_number":59,"context_line":"            except Exception as e:"}],"source_content_type":"text/x-python","patch_set":10,"id":"5a74a57a_4312e559","line":56,"in_reply_to":"5a74a57a_68509e5f","updated":"2016-11-29 21:15:24.000000000","message":"do you know what self.kwargs is used for?","commit_id":"d71a50658d0d917b8849811436b326a58e317235"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"c87c1c1368f4f371165c3b788ac9bdbc08b5c6a1","unresolved":false,"context_lines":[{"line_number":53,"context_line":"    for k, v in kwargs.items():"},{"line_number":54,"context_line":"        for serializer, msg in serializers:"},{"line_number":55,"context_line":"            try:"},{"line_number":56,"context_line":"                serializable_kwargs[k] \u003d serializer(v)"},{"line_number":57,"context_line":"                exceptions.pop(k, None)"},{"line_number":58,"context_line":"                break"},{"line_number":59,"context_line":"            except Exception as e:"}],"source_content_type":"text/x-python","patch_set":10,"id":"5a74a57a_68509e5f","line":56,"in_reply_to":"5a74a57a_f292e14a","updated":"2016-11-29 21:08:52.000000000","message":"We do substitution with kwargs, not self.kwargs. that\u0027s why what you\u0027re describing won\u0027t happen.","commit_id":"d71a50658d0d917b8849811436b326a58e317235"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"2ab0557e77b0a3b0411d9f9942dfa878553e3440","unresolved":false,"context_lines":[{"line_number":64,"context_line":"        else:"},{"line_number":65,"context_line":"            # We might be able to actually put it into format string, but"},{"line_number":66,"context_line":"            # there is no guarantee, drop it just in case."},{"line_number":67,"context_line":"            kwargs.pop(k)"},{"line_number":68,"context_line":"    if exceptions:"},{"line_number":69,"context_line":"        LOG.error("},{"line_number":70,"context_line":"            _LE(\"One or more arguments passed to an %(exc_class)s \""}],"source_content_type":"text/x-python","patch_set":10,"id":"5a74a57a_cf61c1aa","line":67,"updated":"2016-11-29 17:27:13.000000000","message":"I\u0027m not removing all kwargs here, to allow the code in the constructor that handles it to do whatever it needs to, in case it changes at any point.","commit_id":"d71a50658d0d917b8849811436b326a58e317235"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"3d879d534c5e147e9083594e7ac0d507f1d24ef2","unresolved":false,"context_lines":[{"line_number":67,"context_line":"            kwargs.pop(k)"},{"line_number":68,"context_line":"    if exceptions:"},{"line_number":69,"context_line":"        LOG.error("},{"line_number":70,"context_line":"            _LE(\"One or more arguments passed to an %(exc_class)s \""},{"line_number":71,"context_line":"                \"constructor as kwargs can not be serialized. Here are the \""},{"line_number":72,"context_line":"                \"kwargs that were serialized: %(serialized)s. The following \""},{"line_number":73,"context_line":"                \"kwargs will be dropped from the exception object, please \""}],"source_content_type":"text/x-python","patch_set":10,"id":"5a74a57a_120e7de5","line":70,"updated":"2016-11-29 20:18:37.000000000","message":"nit. you don\u0027t know if it should be \u0027an\u0027 (for IronicException) or \u0027a\u0027 (for Conflict), so maybe s/an/the/. Or just delete \u0027an\u0027.","commit_id":"d71a50658d0d917b8849811436b326a58e317235"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"723231885d82f60b009dfbc175e50d1976f723f5","unresolved":false,"context_lines":[{"line_number":67,"context_line":"            kwargs.pop(k)"},{"line_number":68,"context_line":"    if exceptions:"},{"line_number":69,"context_line":"        LOG.error("},{"line_number":70,"context_line":"            _LE(\"One or more arguments passed to an %(exc_class)s \""},{"line_number":71,"context_line":"                \"constructor as kwargs can not be serialized. Here are the \""},{"line_number":72,"context_line":"                \"kwargs that were serialized: %(serialized)s. The following \""},{"line_number":73,"context_line":"                \"kwargs will be dropped from the exception object, please \""}],"source_content_type":"text/x-python","patch_set":10,"id":"5a74a57a_bcdca975","line":70,"in_reply_to":"5a74a57a_120e7de5","updated":"2016-11-30 08:23:31.000000000","message":"Done","commit_id":"d71a50658d0d917b8849811436b326a58e317235"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"3d879d534c5e147e9083594e7ac0d507f1d24ef2","unresolved":false,"context_lines":[{"line_number":68,"context_line":"    if exceptions:"},{"line_number":69,"context_line":"        LOG.error("},{"line_number":70,"context_line":"            _LE(\"One or more arguments passed to an %(exc_class)s \""},{"line_number":71,"context_line":"                \"constructor as kwargs can not be serialized. Here are the \""},{"line_number":72,"context_line":"                \"kwargs that were serialized: %(serialized)s. The following \""},{"line_number":73,"context_line":"                \"kwargs will be dropped from the exception object, please \""},{"line_number":74,"context_line":"                \"check the exceptions encountered during their serialization:\""}],"source_content_type":"text/x-python","patch_set":10,"id":"5a74a57a_f2bd81d8","line":71,"updated":"2016-11-29 20:18:37.000000000","message":"maybe s/Here are the kwargs that were serialized/The serialized arguments: /","commit_id":"d71a50658d0d917b8849811436b326a58e317235"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"3d879d534c5e147e9083594e7ac0d507f1d24ef2","unresolved":false,"context_lines":[{"line_number":69,"context_line":"        LOG.error("},{"line_number":70,"context_line":"            _LE(\"One or more arguments passed to an %(exc_class)s \""},{"line_number":71,"context_line":"                \"constructor as kwargs can not be serialized. Here are the \""},{"line_number":72,"context_line":"                \"kwargs that were serialized: %(serialized)s. The following \""},{"line_number":73,"context_line":"                \"kwargs will be dropped from the exception object, please \""},{"line_number":74,"context_line":"                \"check the exceptions encountered during their serialization:\""},{"line_number":75,"context_line":"                \"\\n%(errors)s\"),"}],"source_content_type":"text/x-python","patch_set":10,"id":"5a74a57a_929e0d62","line":72,"updated":"2016-11-29 20:18:37.000000000","message":"maybe s/The following kwargs will be dropped ..../These unserialized kwargs were dropped: /\n\nI\u0027m not sure we need to mention \u0027please check the exceptions..\u0027 -- those exceptions are mentioned in this message, right? So they are looking at them.","commit_id":"d71a50658d0d917b8849811436b326a58e317235"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"723231885d82f60b009dfbc175e50d1976f723f5","unresolved":false,"context_lines":[{"line_number":69,"context_line":"        LOG.error("},{"line_number":70,"context_line":"            _LE(\"One or more arguments passed to an %(exc_class)s \""},{"line_number":71,"context_line":"                \"constructor as kwargs can not be serialized. Here are the \""},{"line_number":72,"context_line":"                \"kwargs that were serialized: %(serialized)s. The following \""},{"line_number":73,"context_line":"                \"kwargs will be dropped from the exception object, please \""},{"line_number":74,"context_line":"                \"check the exceptions encountered during their serialization:\""},{"line_number":75,"context_line":"                \"\\n%(errors)s\"),"}],"source_content_type":"text/x-python","patch_set":10,"id":"5a74a57a_1c175dee","line":72,"in_reply_to":"5a74a57a_929e0d62","updated":"2016-11-30 08:23:31.000000000","message":"Done","commit_id":"d71a50658d0d917b8849811436b326a58e317235"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"3d879d534c5e147e9083594e7ac0d507f1d24ef2","unresolved":false,"context_lines":[{"line_number":109,"context_line":""},{"line_number":110,"context_line":"        if not message:"},{"line_number":111,"context_line":"            try:"},{"line_number":112,"context_line":"                message \u003d self._msg_fmt % kwargs"},{"line_number":113,"context_line":""},{"line_number":114,"context_line":"            except Exception as e:"},{"line_number":115,"context_line":"                # kwargs doesn\u0027t match a variable in self._msg_fmt"}],"source_content_type":"text/x-python","patch_set":10,"id":"5a74a57a_eab4ab83","line":112,"updated":"2016-11-29 20:18:37.000000000","message":"I want to make sure I understand. If we delete one or more key/values from kwargs, this most likely will fail and either L121 or L125 will happen.\n\nL121 will be gibberish (won\u0027t make sense to the user) but given that this will be a rare occurrence, we\u0027re ok with it?\n\nAlternatively, this is a hack, but instead of removing a nonserializable entry from kwargs, what about replacing the bad value with something that would most likely work even if somewhat nonsensical, eg use the value 0 (zero) or -1.\n\nAfter thinking a few seconds more, I think I\u0027m fine with the existing code. The user will see the unformatted msg which will be an indicating that something is wrong. Vs a msg that looks correct but that has the wrong value in it. Anyway, chances are rare that someone would set CONF.fatal_exception_format_errors to True.","commit_id":"d71a50658d0d917b8849811436b326a58e317235"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"723231885d82f60b009dfbc175e50d1976f723f5","unresolved":false,"context_lines":[{"line_number":109,"context_line":""},{"line_number":110,"context_line":"        if not message:"},{"line_number":111,"context_line":"            try:"},{"line_number":112,"context_line":"                message \u003d self._msg_fmt % kwargs"},{"line_number":113,"context_line":""},{"line_number":114,"context_line":"            except Exception as e:"},{"line_number":115,"context_line":"                # kwargs doesn\u0027t match a variable in self._msg_fmt"}],"source_content_type":"text/x-python","patch_set":10,"id":"5a74a57a_fcc70162","line":112,"in_reply_to":"5a74a57a_eab4ab83","updated":"2016-11-30 08:23:31.000000000","message":"Yeah, I\u0027d rather just output the unformatted string rather than try to come up with all-format-types-convertible value that would make it clear to everyone that it\u0027s not the actual value :)","commit_id":"d71a50658d0d917b8849811436b326a58e317235"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"964592d742f092e36818da64a054fd7d1801a879","unresolved":false,"context_lines":[{"line_number":75,"context_line":"        # We might be able to actually put the following keys\u0027 values into"},{"line_number":76,"context_line":"        # format string, but there is no guarantee, drop it just in case."},{"line_number":77,"context_line":"        for k in exceptions:"},{"line_number":78,"context_line":"            del kwargs[k]"},{"line_number":79,"context_line":"    return serializable_kwargs"},{"line_number":80,"context_line":""},{"line_number":81,"context_line":""}],"source_content_type":"text/x-python","patch_set":12,"id":"5a74a57a_3c6243d9","line":78,"updated":"2016-11-30 17:54:42.000000000","message":"I liked the \u0027else \u0027that you had before, since this adds an extra loop, but maybe people find this easier to understand and it won\u0027t take much extra cycles to do this given that there will be maybe one key.","commit_id":"bbbe0012d81e35ffa65eea9ccb1f8e7b96ae81c3"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"feebdfa2a488badf3f2cdcb6524f7ed8021d8f3b","unresolved":false,"context_lines":[{"line_number":75,"context_line":"        # We might be able to actually put the following keys\u0027 values into"},{"line_number":76,"context_line":"        # format string, but there is no guarantee, drop it just in case."},{"line_number":77,"context_line":"        for k in exceptions:"},{"line_number":78,"context_line":"            del kwargs[k]"},{"line_number":79,"context_line":"    return serializable_kwargs"},{"line_number":80,"context_line":""},{"line_number":81,"context_line":""}],"source_content_type":"text/x-python","patch_set":12,"id":"5a74a57a_6601776a","line":78,"in_reply_to":"5a74a57a_3c6243d9","updated":"2016-11-30 20:09:44.000000000","message":"Yup, but apparently py3 treats changing elements of kwargs while iterating through them as error, that\u0027s why I had to make this.","commit_id":"bbbe0012d81e35ffa65eea9ccb1f8e7b96ae81c3"}],"ironic/conductor/manager.py":[{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"66bf79a042da4dd39f205f59b92cb6eb762dde6a","unresolved":false,"context_lines":[{"line_number":2136,"context_line":"            node \u003d task.node"},{"line_number":2137,"context_line":"            if not getattr(task.driver, \u0027raid\u0027, None):"},{"line_number":2138,"context_line":"                raise exception.UnsupportedDriverExtension("},{"line_number":2139,"context_line":"                    driver\u003dtask.node.driver, extension\u003d\u0027raid\u0027)"},{"line_number":2140,"context_line":"            # Operator may try to unset node.target_raid_config.  So, try to"},{"line_number":2141,"context_line":"            # validate only if it is not empty."},{"line_number":2142,"context_line":"            if target_raid_config:"}],"source_content_type":"text/x-python","patch_set":4,"id":"7a77a97e_1fd75624","line":2139,"range":{"start_line":2139,"start_character":31,"end_line":2139,"end_character":37},"updated":"2016-11-21 17:09:53.000000000","message":"let\u0027s fix it in a separate (parent) patch","commit_id":"33c175da1ab669b258f48f82ff68b1ad080d7ddf"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"1ea474c520ebcae1632448d6b351890ba98897e6","unresolved":false,"context_lines":[{"line_number":2136,"context_line":"            node \u003d task.node"},{"line_number":2137,"context_line":"            if not getattr(task.driver, \u0027raid\u0027, None):"},{"line_number":2138,"context_line":"                raise exception.UnsupportedDriverExtension("},{"line_number":2139,"context_line":"                    driver\u003dtask.node.driver, extension\u003d\u0027raid\u0027)"},{"line_number":2140,"context_line":"            # Operator may try to unset node.target_raid_config.  So, try to"},{"line_number":2141,"context_line":"            # validate only if it is not empty."},{"line_number":2142,"context_line":"            if target_raid_config:"}],"source_content_type":"text/x-python","patch_set":4,"id":"7a77a97e_1fc036e0","line":2139,"range":{"start_line":2139,"start_character":31,"end_line":2139,"end_character":37},"in_reply_to":"7a77a97e_1fd75624","updated":"2016-11-21 17:39:16.000000000","message":"Done","commit_id":"33c175da1ab669b258f48f82ff68b1ad080d7ddf"}],"ironic/tests/unit/common/test_exception.py":[{"author":{"_account_id":23847,"name":"Richard G. Pioso","email":"richard.pioso@gmail.com","username":"richard.pioso"},"change_message_id":"52f417f2df2c30414d2ccbbb9d38ea725a4ba83f","unresolved":false,"context_lines":[{"line_number":40,"context_line":"    def test___init___invalid_kwarg(self):"},{"line_number":41,"context_line":"        self.assertRaisesRegex("},{"line_number":42,"context_line":"            exception.InvalidExceptionContents,"},{"line_number":43,"context_line":"            \u0027spam: .*JSON.* ValueError: Circular reference detected; \u0027"},{"line_number":44,"context_line":"            \u0027.*string.* NotImplementedError: nostr\u0027,"},{"line_number":45,"context_line":"            TestException,"},{"line_number":46,"context_line":"            spam\u003dUnserializable(), ham\u003d\u0027eggs\u0027"}],"source_content_type":"text/x-python","patch_set":5,"id":"7a77a97e_ceae07e7","line":43,"updated":"2016-11-21 22:50:31.000000000","message":"Since this is once again a regex, should this string and the one on the following line be raw?","commit_id":"91a79675bbfd140c79b07febebea07eb8c9aa5c1"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"36f267843c0f140413fee28874064688ef23fe2a","unresolved":false,"context_lines":[{"line_number":40,"context_line":"    def test___init___invalid_kwarg(self):"},{"line_number":41,"context_line":"        self.assertRaisesRegex("},{"line_number":42,"context_line":"            exception.InvalidExceptionContents,"},{"line_number":43,"context_line":"            \u0027spam: .*JSON.* ValueError: Circular reference detected; \u0027"},{"line_number":44,"context_line":"            \u0027.*string.* NotImplementedError: nostr\u0027,"},{"line_number":45,"context_line":"            TestException,"},{"line_number":46,"context_line":"            spam\u003dUnserializable(), ham\u003d\u0027eggs\u0027"}],"source_content_type":"text/x-python","patch_set":5,"id":"7a77a97e_e4490690","line":43,"in_reply_to":"7a77a97e_ceae07e7","updated":"2016-11-22 11:23:08.000000000","message":"raw string only needed if we need to avoid escaping, eg if we need to match \\n as two symbols instead of a newline. In this case, it\u0027s not needed.","commit_id":"91a79675bbfd140c79b07febebea07eb8c9aa5c1"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"3d879d534c5e147e9083594e7ac0d507f1d24ef2","unresolved":false,"context_lines":[{"line_number":47,"context_line":"        message \u003d log_mock.call_args[0][0] % log_mock.call_args[0][1]"},{"line_number":48,"context_line":"        re.search(\u0027spam: .*JSON.* ValueError: Circular reference detected; \u0027"},{"line_number":49,"context_line":"                  \u0027.*string.* NotImplementedError: nostr\u0027,"},{"line_number":50,"context_line":"                  message)"},{"line_number":51,"context_line":"        self.assertEqual({\u0027ham\u0027: \u0027\"eggs\"\u0027, \u0027code\u0027: 500}, e.kwargs)"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"    @mock.patch.object(exception.LOG, \u0027error\u0027, autospec\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":10,"id":"5a74a57a_ed50400d","line":50,"updated":"2016-11-29 20:18:37.000000000","message":"I\u0027m not sure what you want to do with this re.search().","commit_id":"d71a50658d0d917b8849811436b326a58e317235"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"c87c1c1368f4f371165c3b788ac9bdbc08b5c6a1","unresolved":false,"context_lines":[{"line_number":47,"context_line":"        message \u003d log_mock.call_args[0][0] % log_mock.call_args[0][1]"},{"line_number":48,"context_line":"        re.search(\u0027spam: .*JSON.* ValueError: Circular reference detected; \u0027"},{"line_number":49,"context_line":"                  \u0027.*string.* NotImplementedError: nostr\u0027,"},{"line_number":50,"context_line":"                  message)"},{"line_number":51,"context_line":"        self.assertEqual({\u0027ham\u0027: \u0027\"eggs\"\u0027, \u0027code\u0027: 500}, e.kwargs)"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"    @mock.patch.object(exception.LOG, \u0027error\u0027, autospec\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":10,"id":"5a74a57a_48012239","line":50,"in_reply_to":"5a74a57a_ed50400d","updated":"2016-11-29 21:08:52.000000000","message":"Oh, right, assert true missed :)","commit_id":"d71a50658d0d917b8849811436b326a58e317235"}],"releasenotes/notes/fix-rpc-exceptions-12c70eb6ba177e39.yaml":[{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"3d879d534c5e147e9083594e7ac0d507f1d24ef2","unresolved":false,"context_lines":[{"line_number":6,"context_line":"    conductor. Starting with this release, all non-serializable objects"},{"line_number":7,"context_line":"    contained in an exception\u0027s kwargs are dropped, allowing the receiver to"},{"line_number":8,"context_line":"    handle it as it is configured to via"},{"line_number":9,"context_line":"    ``[DEFAULT]fatal_exception_format_errors`` configuration option."}],"source_content_type":"text/x-yaml","patch_set":10,"id":"5a74a57a_fe0ab078","line":9,"updated":"2016-11-29 20:18:37.000000000","message":"Oh, this is hard to describe. Maybe replace \"dropped, allowing ...\" with\n\n\u0027dropped. The error returned by the service will depend on the configuration option ``[DEFAULT]fatal_exception-format_errors``.\n\nIf we want to actually describe the error returned, that would be yucky...","commit_id":"d71a50658d0d917b8849811436b326a58e317235"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"723231885d82f60b009dfbc175e50d1976f723f5","unresolved":false,"context_lines":[{"line_number":6,"context_line":"    conductor. Starting with this release, all non-serializable objects"},{"line_number":7,"context_line":"    contained in an exception\u0027s kwargs are dropped, allowing the receiver to"},{"line_number":8,"context_line":"    handle it as it is configured to via"},{"line_number":9,"context_line":"    ``[DEFAULT]fatal_exception_format_errors`` configuration option."}],"source_content_type":"text/x-yaml","patch_set":10,"id":"5a74a57a_fc48e1ce","line":9,"in_reply_to":"5a74a57a_fe0ab078","updated":"2016-11-30 08:23:31.000000000","message":"Done","commit_id":"d71a50658d0d917b8849811436b326a58e317235"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"964592d742f092e36818da64a054fd7d1801a879","unresolved":false,"context_lines":[{"line_number":4,"context_line":"    via RPC were causing oslo_messaging serializer to fail. This was leading"},{"line_number":5,"context_line":"    to 500 errors from ironic API, timing out waiting for response from the"},{"line_number":6,"context_line":"    conductor. Starting with this release, all non-serializable objects"},{"line_number":7,"context_line":"    contained in an exception\u0027s kwargs are dropped. If the error is going to"},{"line_number":8,"context_line":"    be returned by the service will depend on the configuration option"},{"line_number":9,"context_line":"    ``[DEFAULT]fatal_exception_format_errors``."}],"source_content_type":"text/x-yaml","patch_set":12,"id":"5a74a57a_40ae2899","line":7,"updated":"2016-11-30 17:54:42.000000000","message":"maybe s/If the error is going to be/Any error/","commit_id":"bbbe0012d81e35ffa65eea9ccb1f8e7b96ae81c3"},{"author":{"_account_id":12356,"name":"Vladyslav Drok","email":"vdrok@mirantis.com","username":"vdrok"},"change_message_id":"feebdfa2a488badf3f2cdcb6524f7ed8021d8f3b","unresolved":false,"context_lines":[{"line_number":4,"context_line":"    via RPC were causing oslo_messaging serializer to fail. This was leading"},{"line_number":5,"context_line":"    to 500 errors from ironic API, timing out waiting for response from the"},{"line_number":6,"context_line":"    conductor. Starting with this release, all non-serializable objects"},{"line_number":7,"context_line":"    contained in an exception\u0027s kwargs are dropped. If the error is going to"},{"line_number":8,"context_line":"    be returned by the service will depend on the configuration option"},{"line_number":9,"context_line":"    ``[DEFAULT]fatal_exception_format_errors``."}],"source_content_type":"text/x-yaml","patch_set":12,"id":"5a74a57a_e64907b9","line":7,"in_reply_to":"5a74a57a_40ae2899","updated":"2016-11-30 20:09:44.000000000","message":"Hm, any error misses a bit of info I think, maybe \u0027whether the error is going to be returned while formatting the exception message with only part of the arguments or not will depend...\u0027 dunno really. Will try to come up with something if there are more things to fix.","commit_id":"bbbe0012d81e35ffa65eea9ccb1f8e7b96ae81c3"}]}
