)]}'
{"nova/compute/api.py":[{"author":{"_account_id":6873,"name":"Matt Riedemann","email":"mriedem.os@gmail.com","username":"mriedem"},"change_message_id":"c7788c81dc7905db224aa7a9aeee3dca1d919daa","unresolved":false,"context_lines":[{"line_number":3804,"context_line":""},{"line_number":3805,"context_line":"    @check_instance_lock"},{"line_number":3806,"context_line":"    @check_instance_state(vm_state\u003d[vm_states.ACTIVE, vm_states.STOPPED])"},{"line_number":3807,"context_line":"    @check_instance_host(check_is_up\u003dTrue)"},{"line_number":3808,"context_line":"    def resize(self, context, instance, flavor_id\u003dNone, clean_shutdown\u003dTrue,"},{"line_number":3809,"context_line":"               host_name\u003dNone, auto_disk_config\u003dNone):"},{"line_number":3810,"context_line":"        \"\"\"Resize (ie, migrate) a running instance."}],"source_content_type":"text/x-python","patch_set":1,"id":"3fa7e38b_585b3bf8","line":3807,"updated":"2019-12-19 20:22:04.000000000","message":"Note that I intentionally made check_instance_host come after check_instance_state because if the instance is shelved offloaded then the error message from check_instance_state makes more sense than the InstanceNotReady message from check_instance_host.","commit_id":"3fdb60ac0def446fe857b68542306bbba5e9dd4d"}],"nova/tests/unit/compute/test_compute_api.py":[{"author":{"_account_id":6873,"name":"Matt Riedemann","email":"mriedem.os@gmail.com","username":"mriedem"},"change_message_id":"c7788c81dc7905db224aa7a9aeee3dca1d919daa","unresolved":false,"context_lines":[{"line_number":6236,"context_line":""},{"line_number":6237,"context_line":""},{"line_number":6238,"context_line":"class ComputeAPIUnitTestCase(_ComputeAPIUnitTestMixIn, test.NoDBTestCase):"},{"line_number":6239,"context_line":"    def setUp(self):"},{"line_number":6240,"context_line":"        super(ComputeAPIUnitTestCase, self).setUp()"},{"line_number":6241,"context_line":"        self.compute_api \u003d compute_api.API()"},{"line_number":6242,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"3fa7e38b_9868d388","side":"PARENT","line":6239,"updated":"2019-12-19 20:22:04.000000000","message":"Oh this is a bit unrelated and unnecessary. I was originally mocking get_instance_host_status in _ComputeAPIUnitTestMixIn.setUp which defines it\u0027s own self.compute_api and was mocking the method on that object so didn\u0027t need this interfering with it. But it turned out that mocking get_instance_host_status in setUp broke another test and there wasn\u0027t an easy way to fix that which I could find, so I undid the changes to _ComputeAPIUnitTestMixIn.setUp but forgot about this - but it still makes sense - we don\u0027t need this since it\u0027s done in setUp for the mixin class. I can remove this if I need to respin though.","commit_id":"d5a786f540ef21b4c475176e3a5862e85fe9ab72"}],"releasenotes/notes/bug-1856925-check-source-compute-resize-16e9c3b24cf72301.yaml":[{"author":{"_account_id":6873,"name":"Matt Riedemann","email":"mriedem.os@gmail.com","username":"mriedem"},"change_message_id":"c7788c81dc7905db224aa7a9aeee3dca1d919daa","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"fixes:"},{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    This release contains a fix for `bug 1856925`_ such that ``resize`` and"},{"line_number":5,"context_line":"    ``migrate`` server actions will be rejected with a 409 ``HTTPConflict``"},{"line_number":6,"context_line":"    response if the source compute service is down."}],"source_content_type":"text/x-yaml","patch_set":1,"id":"3fa7e38b_b8634fab","line":4,"range":{"start_line":4,"start_character":36,"end_line":4,"end_character":50},"updated":"2019-12-19 20:22:04.000000000","message":"oops forgot the bug link","commit_id":"3fdb60ac0def446fe857b68542306bbba5e9dd4d"}]}
