)]}'
{"/PATCHSET_LEVEL":[{"author":{"_account_id":19234,"name":"Alexey Stupnikov","email":"aleksey.stupnikov@gmail.com","username":"astupnikov"},"change_message_id":"6c3ed6f5c3584cefaa6b8bbfa5f4b40192e7466d","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":3,"id":"3acf6758_47d10b08","updated":"2022-05-15 13:49:00.000000000","message":"Could you explain, which problem is solved by this change and how to reproduce this problem?","commit_id":"338a6f26526e155268e7c8acf5439c8b3e2058f0"},{"author":{"_account_id":31827,"name":"Jorhson Deng","email":"jorhson_deng@163.com","username":"dengzhaosen"},"change_message_id":"79dc6aa82d78536714d74203c19441b9836bb072","unresolved":true,"context_lines":[],"source_content_type":"","patch_set":3,"id":"3038f79d_a1ec8727","in_reply_to":"11e42082_b1b0951f","updated":"2022-05-19 12:14:56.000000000","message":"Do you print the filter_properties[\u0027ignore_hosts\u0027] values? There are any value in the objects.RequestSpec in the cold migration process?","commit_id":"338a6f26526e155268e7c8acf5439c8b3e2058f0"},{"author":{"_account_id":31827,"name":"Jorhson Deng","email":"jorhson_deng@163.com","username":"dengzhaosen"},"change_message_id":"ffb2ce5b02a7fa4e9cd2470223b0d230cb194aa3","unresolved":true,"context_lines":[],"source_content_type":"","patch_set":3,"id":"b4ffd1db_0f2cc9ab","in_reply_to":"2a66c3dc_5cac6a40","updated":"2022-05-20 00:43:28.000000000","message":"The self._allow_resize_to_same_host(same_flavor, instance) shuold retrun false in nova/compute/api.py#L4217, and the instance.host should add to filter_properties[\u0027ignore_hosts\u0027]. you can print the infomation of request_spec.ignore_hosts after nova/compute/api.py#L4222 and make sure the instance.host is added to request_spec.ignore_hosts","commit_id":"338a6f26526e155268e7c8acf5439c8b3e2058f0"},{"author":{"_account_id":19234,"name":"Alexey Stupnikov","email":"aleksey.stupnikov@gmail.com","username":"astupnikov"},"change_message_id":"b6caaa5ad32dbf2880efd8f3aaf8a5531843376a","unresolved":true,"context_lines":[],"source_content_type":"","patch_set":3,"id":"2a66c3dc_5cac6a40","in_reply_to":"3038f79d_a1ec8727","updated":"2022-05-19 13:07:49.000000000","message":"No, I looked at DB dump after first evacuation to confirm that there is no defined ignore_hosts value and then another evacuation (back to original host) was successful. Maybe I am missing something here, but I struggle to understand what.","commit_id":"338a6f26526e155268e7c8acf5439c8b3e2058f0"},{"author":{"_account_id":31827,"name":"Jorhson Deng","email":"jorhson_deng@163.com","username":"dengzhaosen"},"change_message_id":"8f2948aa178218b045090c27c25a74e9cddf7a9a","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":3,"id":"c61a9a32_47a04b35","in_reply_to":"3acf6758_47d10b08","updated":"2022-05-16 01:01:19.000000000","message":"If we operate the resize or cold migration with the ignore hosts[1], the ignore_hosts in the objects.RequestSpec will not be None. And if we start evaluting the instance, it will be ignore the hosts in the RequestSpec. So we should clear the value before starting.\n\n[1] https://github.com/openstack/nova/blob/master/nova/compute/api.py#L4222","commit_id":"338a6f26526e155268e7c8acf5439c8b3e2058f0"},{"author":{"_account_id":31827,"name":"Jorhson Deng","email":"jorhson_deng@163.com","username":"dengzhaosen"},"change_message_id":"05b208de73a0546017767d93ab6cfb398a4143ea","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":3,"id":"86ffe9e6_03f3754e","in_reply_to":"6b1ec88e_898bceb1","updated":"2022-05-17 09:45:42.000000000","message":"For a simple example, if there are two hosts:\nStep1: cold miagrate an instance from one host(node1) to the other host(node2). the ignore_hosts of the objects.RequestSpec will record the instance.host [1].\n\nStep2: If evaculating the instance from the node2, the scheduler will ignore the node1 host and report there is no valid host to schedule.\n[1] https://github.com/openstack/nova/blob/4939318649650b60dd07d161b80909e70d0e093e/nova/compute/api.py#L4217","commit_id":"338a6f26526e155268e7c8acf5439c8b3e2058f0"},{"author":{"_account_id":19234,"name":"Alexey Stupnikov","email":"aleksey.stupnikov@gmail.com","username":"astupnikov"},"change_message_id":"09088c114a173acb4c536adffaded62bb2a79652","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":3,"id":"6b1ec88e_898bceb1","in_reply_to":"7c8962e9_8bd47913","updated":"2022-05-17 08:54:22.000000000","message":"I tried to reproduce this according to your description and check if ignore_hosts blocks instance\u0027s rescue operation because instance was previously resized, but wasn\u0027t able to. From your perspective, what are correct steps to reproduce this issue?","commit_id":"338a6f26526e155268e7c8acf5439c8b3e2058f0"},{"author":{"_account_id":19234,"name":"Alexey Stupnikov","email":"aleksey.stupnikov@gmail.com","username":"astupnikov"},"change_message_id":"cb178255d0e468fe39dc17e3132703ef1248fb2d","unresolved":true,"context_lines":[],"source_content_type":"","patch_set":3,"id":"11e42082_b1b0951f","in_reply_to":"7d061260_06f450bd","updated":"2022-05-18 13:34:49.000000000","message":"Yes, allow_resize_to_same_host was false in my case.","commit_id":"338a6f26526e155268e7c8acf5439c8b3e2058f0"},{"author":{"_account_id":19234,"name":"Alexey Stupnikov","email":"aleksey.stupnikov@gmail.com","username":"astupnikov"},"change_message_id":"d6d21a482cae87d5d5301897e1471c5e1ca4a7c2","unresolved":true,"context_lines":[],"source_content_type":"","patch_set":3,"id":"d3115351_371da5d7","in_reply_to":"86ffe9e6_03f3754e","updated":"2022-05-17 15:11:58.000000000","message":"I failed to reproduce this in OpenStack deployment with two computes and there is no related entry (request_spec.ignore_hosts with old host) in nova database. Am I missing something?","commit_id":"338a6f26526e155268e7c8acf5439c8b3e2058f0"},{"author":{"_account_id":19234,"name":"Alexey Stupnikov","email":"aleksey.stupnikov@gmail.com","username":"astupnikov"},"change_message_id":"3813e590b7a7904f764a898850095451d25d6e0c","unresolved":true,"context_lines":[],"source_content_type":"","patch_set":3,"id":"f16396a8_6da3c01a","in_reply_to":"b4ffd1db_0f2cc9ab","updated":"2022-05-22 12:30:49.000000000","message":"From my perspective we need clear steps to reproduce for this problem described in appropriate LP bug.","commit_id":"338a6f26526e155268e7c8acf5439c8b3e2058f0"},{"author":{"_account_id":31827,"name":"Jorhson Deng","email":"jorhson_deng@163.com","username":"dengzhaosen"},"change_message_id":"9eb90dc982fba02f9dd6788e396508a3f5bb1050","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":3,"id":"7c8962e9_8bd47913","in_reply_to":"c0767695_b490f41a","updated":"2022-05-17 07:41:59.000000000","message":"the ignore_hosts is the element of the objects.RequestSpec, and everyone instance has it\u0027s own RequestSpec in DB. So if the previous ignore_hosts is not clear correctly like resize action, the evaculate action will use the value again.\nwe should deal with this value like this[1].\n[1] https://github.com/openstack/nova/blob/4939318649650b60dd07d161b80909e70d0e093e/nova/compute/api.py#L4216","commit_id":"338a6f26526e155268e7c8acf5439c8b3e2058f0"},{"author":{"_account_id":19234,"name":"Alexey Stupnikov","email":"aleksey.stupnikov@gmail.com","username":"astupnikov"},"change_message_id":"d93d9e8e9ed07f75eb80a6382333b27f04a6fc77","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":3,"id":"c0767695_b490f41a","in_reply_to":"c61a9a32_47a04b35","updated":"2022-05-16 13:34:30.000000000","message":"I am not sure if I understood this correctly, do you mean that ignore_hosts value from previous API requests could be used during evacuation?","commit_id":"338a6f26526e155268e7c8acf5439c8b3e2058f0"},{"author":{"_account_id":31827,"name":"Jorhson Deng","email":"jorhson_deng@163.com","username":"dengzhaosen"},"change_message_id":"cbee24a30b4da1a41282ca52409642fb583456dd","unresolved":true,"context_lines":[],"source_content_type":"","patch_set":3,"id":"7d061260_06f450bd","in_reply_to":"d3115351_371da5d7","updated":"2022-05-18 02:03:26.000000000","message":"\u003e I failed to reproduce this in OpenStack deployment with two computes and there is no related entry (request_spec.ignore_hosts with old host) in nova database. Am I missing something?\n\nDo you set the CONF.allow_resize_to_same_host to False or the instance.host is added to the filter_properties[\u0027ignore_hosts\u0027] or not in [1]?\n[1] https://github.com/openstack/nova/blob/4939318649650b60dd07d161b80909e70d0e093e/nova/compute/api.py#L4218","commit_id":"338a6f26526e155268e7c8acf5439c8b3e2058f0"}]}
