)]}'
{"nova/compute/api.py":[{"author":{"_account_id":6873,"name":"Matt Riedemann","email":"mriedem.os@gmail.com","username":"mriedem"},"change_message_id":"cea7352255cdbf81c22ab7f4b5f6de8942eb844b","unresolved":false,"context_lines":[{"line_number":3401,"context_line":"            if host_name \u003d\u003d instance.host:"},{"line_number":3402,"context_line":"                raise exception.CannotMigrateToSameHost()"},{"line_number":3403,"context_line":""},{"line_number":3404,"context_line":"            # Check whether host exists or not."},{"line_number":3405,"context_line":"            node \u003d objects.ComputeNode.get_first_node_by_host_for_old_compat("},{"line_number":3406,"context_line":"                context, host_name, use_slave\u003dTrue)"},{"line_number":3407,"context_line":""},{"line_number":3408,"context_line":"        self._check_auto_disk_config(instance, **extra_instance_updates)"},{"line_number":3409,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"3f79a3b5_9d461ca7","line":3406,"range":{"start_line":3404,"start_character":12,"end_line":3406,"end_character":51},"updated":"2018-09-19 22:51:58.000000000","message":"Yeah the same-cell check is going to be implicit here because when the API looks up the instance, it targets the context to the cell in which the instance currently lives, so if the admin specified a host that is not in the same cell the instance is in, this will fail to find the host and raise ComputeHostNotFound. That might be admittedly a bit confusing since the host does exist, just not in the same cell as the instance and we don\u0027t currently support cross-cell migrations.","commit_id":"61a12e1801b5fb810870ae5857cb09d2ae994f47"}]}
