)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":6873,"name":"Matt Riedemann","email":"mriedem.os@gmail.com","username":"mriedem"},"change_message_id":"2778776644cdadc87e3f66b9bc1a9b7e4d60b8ae","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Gary Kotton \u003cgkotton@vmware.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2019-07-06 00:31:40 -0700"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Nova compute: add in log eception to help debug failures"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"When the system is under load, there are boot failures. The"},{"line_number":10,"context_line":"exception seen in the log file is:"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"7faddb67_0be7afe6","line":7,"range":{"start_line":7,"start_character":25,"end_line":7,"end_character":33},"updated":"2019-07-09 21:05:29.000000000","message":"exception","commit_id":"b6df85ea0477bd0f103d3a81131d83f6c1d3481a"}],"nova/compute/manager.py":[{"author":{"_account_id":6873,"name":"Matt Riedemann","email":"mriedem.os@gmail.com","username":"mriedem"},"change_message_id":"2778776644cdadc87e3f66b9bc1a9b7e4d60b8ae","unresolved":false,"context_lines":[{"line_number":1945,"context_line":"            retry \u003d filter_properties.get(\u0027retry\u0027)"},{"line_number":1946,"context_line":"            if not retry:"},{"line_number":1947,"context_line":"                # no retry information, do not reschedule."},{"line_number":1948,"context_line":"                LOG.debug(\"Retry info not present, will not reschedule\","},{"line_number":1949,"context_line":"                    instance\u003dinstance)"},{"line_number":1950,"context_line":"                self._cleanup_allocated_networks(context, instance,"},{"line_number":1951,"context_line":"                    requested_networks)"}],"source_content_type":"text/x-python","patch_set":1,"id":"7faddb67_6bd6632a","line":1948,"updated":"2019-07-09 21:05:29.000000000","message":"I guess we\u0027d either get here...","commit_id":"b6df85ea0477bd0f103d3a81131d83f6c1d3481a"},{"author":{"_account_id":6873,"name":"Matt Riedemann","email":"mriedem.os@gmail.com","username":"mriedem"},"change_message_id":"2778776644cdadc87e3f66b9bc1a9b7e4d60b8ae","unresolved":false,"context_lines":[{"line_number":1958,"context_line":"                self._set_instance_obj_error_state(context, instance,"},{"line_number":1959,"context_line":"                                                   clean_task_state\u003dTrue)"},{"line_number":1960,"context_line":"                return build_results.FAILED"},{"line_number":1961,"context_line":"            LOG.debug(e.format_message(), instance\u003dinstance)"},{"line_number":1962,"context_line":"            # This will be used for logging the exception"},{"line_number":1963,"context_line":"            retry[\u0027exc\u0027] \u003d traceback.format_exception(*sys.exc_info())"},{"line_number":1964,"context_line":"            # This will be used for setting the instance fault message"}],"source_content_type":"text/x-python","patch_set":1,"id":"7faddb67_8bf07fcb","line":1961,"updated":"2019-07-09 21:05:29.000000000","message":"...or here, but in neither case would we have a traceback and even if we did, it wouldn\u0027t be the traceback of the original error.","commit_id":"b6df85ea0477bd0f103d3a81131d83f6c1d3481a"},{"author":{"_account_id":6873,"name":"Matt Riedemann","email":"mriedem.os@gmail.com","username":"mriedem"},"change_message_id":"ad74ddf2a737ed42c94ec3223db0408ad743040c","unresolved":false,"context_lines":[{"line_number":2299,"context_line":"            raise exception.BuildAbortException(instance_uuid\u003dinstance.uuid,"},{"line_number":2300,"context_line":"                    reason\u003de.format_message())"},{"line_number":2301,"context_line":"        except Exception as e:"},{"line_number":2302,"context_line":"            LOG.exception(\u0027Failed to build and run instance\u0027,"},{"line_number":2303,"context_line":"                          instance\u003dinstance)"},{"line_number":2304,"context_line":"            self._notify_about_instance_usage(context, instance,"},{"line_number":2305,"context_line":"                    \u0027create.error\u0027, fault\u003de)"}],"source_content_type":"text/x-python","patch_set":1,"id":"3fa7e38b_3fcb5b1e","line":2302,"updated":"2019-10-30 18:08:57.000000000","message":"I just hit something in a functional test in rocky that this would have helped to debug:\n\nhttps://zuul.opendev.org/t/openstack/build/5b7bec9b9c5e487d8afb0eaf800527d5/log/job-output.txt#3188\n\n2019-10-29 21:52:22.763778 | ubuntu-xenial |     2019-10-29 21:52:16,798 ERROR [nova.scheduler.utils] Error from last host: host1 (node host1): [\u0027Traceback (most recent call last):\\n\u0027, \u0027  File \"nova/compute/manager.py\", line 2056, in _do_build_and_run_instance\\n    filter_properties, request_spec)\\n\u0027, \u0027  File \"nova/compute/manager.py\", line 2345, in _build_and_run_instance\\n    instance_uuid\u003dinstance.uuid, reason\u003dsix.text_type(e))\\n\u0027, \u0027RescheduledException: Build of instance e3ce7854-9885-4d3b-93fc-68e7885c8f5d was re-scheduled: Cannot modify readonly field uuid\\n\u0027]\n\nBecause we don\u0027t have the traceback I can\u0027t tell what is causing \"Cannot modify readonly field uuid\".","commit_id":"b6df85ea0477bd0f103d3a81131d83f6c1d3481a"},{"author":{"_account_id":6873,"name":"Matt Riedemann","email":"mriedem.os@gmail.com","username":"mriedem"},"change_message_id":"2778776644cdadc87e3f66b9bc1a9b7e4d60b8ae","unresolved":false,"context_lines":[{"line_number":2308,"context_line":"                    context, instance, self.host,"},{"line_number":2309,"context_line":"                    phase\u003dfields.NotificationPhase.ERROR, exception\u003de,"},{"line_number":2310,"context_line":"                    bdms\u003dblock_device_mapping, tb\u003dtb)"},{"line_number":2311,"context_line":"            raise exception.RescheduledException("},{"line_number":2312,"context_line":"                    instance_uuid\u003dinstance.uuid, reason\u003dsix.text_type(e))"},{"line_number":2313,"context_line":""},{"line_number":2314,"context_line":"        # NOTE(alaski): This is only useful during reschedules, remove it now."}],"source_content_type":"text/x-python","patch_set":1,"id":"7faddb67_8bc95f79","line":2311,"updated":"2019-07-09 21:05:29.000000000","message":"Could we use six.reraise here instead? And then in _do_build_and_run_instance which logs this, we could add exc_info\u003dTrue to the LOG.debug calls.\n\nI\u0027m just not sure we want to traceback for everything here since it could be lots of stuff and we\u0027ll potentially reschedule anyway.\n\nI may be less hesitant to add this if it were a warning log with exc_info\u003dTrue rather than LOG.exception.\n\nI\u0027m mostly thinking about this change I4e3343f250ee563e87001b0e17ab19dc872caa66 to avoid dumping the stack. That\u0027s a bit different though (BuildAbortException rather than RescheduledException for an unknown error).","commit_id":"b6df85ea0477bd0f103d3a81131d83f6c1d3481a"}]}
