)]}'
{"nova/cmd/manage.py":[{"author":{"_account_id":6873,"name":"Matt Riedemann","email":"mriedem.os@gmail.com","username":"mriedem"},"change_message_id":"99b14aab21068a54a250b33b3eedca3ea37a4d65","unresolved":false,"context_lines":[{"line_number":1809,"context_line":"            allocations \u003d placement.get_allocs_for_consumer("},{"line_number":1810,"context_line":"                ctxt, instance.uuid)"},{"line_number":1811,"context_line":"        except ks_exc.ClientException as e:"},{"line_number":1812,"context_line":"            raise exception.AllocationUpdateFailed("},{"line_number":1813,"context_line":"                instance\u003dinstance.uuid,"},{"line_number":1814,"context_line":"                error\u003d_(\"Allocation retrieval failed: %s\") % e)"},{"line_number":1815,"context_line":"        except exception.ConsumerAllocationRetrievalFailed as e:"}],"source_content_type":"text/x-python","patch_set":1,"id":"3f79a3b5_4fb5ee7d","line":1812,"range":{"start_line":1812,"start_character":28,"end_line":1812,"end_character":50},"updated":"2018-08-28 21:53:28.000000000","message":"This isn\u0027t really how this exception is meant to be used - we only update allocations to fix the consumer project/user IDs. Having said that, ultimately what we want from the CLI is return code 3, which this would give us. I was thinking we\u0027d raise a more generic PlacementConnectionFailed error but this is probably OK. The docstring is off though...","commit_id":"b7aa6a3b93c79e0d0521f2de430b42ecf87989bb"},{"author":{"_account_id":6873,"name":"Matt Riedemann","email":"mriedem.os@gmail.com","username":"mriedem"},"change_message_id":"99b14aab21068a54a250b33b3eedca3ea37a4d65","unresolved":false,"context_lines":[{"line_number":2040,"context_line":"                except exception.ComputeHostNotFound as e:"},{"line_number":2041,"context_line":"                    print(e.format_message())"},{"line_number":2042,"context_line":"                    return 2"},{"line_number":2043,"context_line":"                except (exception.AllocationCreateFailed,"},{"line_number":2044,"context_line":"                        exception.AllocationUpdateFailed) as e:"},{"line_number":2045,"context_line":"                    print(e.format_message())"},{"line_number":2046,"context_line":"                    return 3"},{"line_number":2047,"context_line":""},{"line_number":2048,"context_line":"                # Make sure we don\u0027t go over the max count. Note that we"},{"line_number":2049,"context_line":"                # don\u0027t include instances that already have allocations in the"}],"source_content_type":"text/x-python","patch_set":1,"id":"3f79a3b5_2f83d2ab","line":2046,"range":{"start_line":2043,"start_character":16,"end_line":2046,"end_character":28},"updated":"2018-08-28 21:53:28.000000000","message":"Should probably handle some kind of generic placement connection error here.","commit_id":"b7aa6a3b93c79e0d0521f2de430b42ecf87989bb"}]}
