)]}'
{"zun/scheduler/chance_scheduler.py":[{"author":{"_account_id":10206,"name":"Madhuri Kumari","email":"madhuri.kumari@intel.com","username":"Madhuri"},"change_message_id":"a03a8c0843b2985bce94949ee471701255da1f4a","unresolved":false,"context_lines":[{"line_number":33,"context_line":""},{"line_number":34,"context_line":"        return random.choice(hosts)"},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"    def select_destinations(self, context, containers):"},{"line_number":37,"context_line":"        \"\"\"Selects random destinations.\"\"\""},{"line_number":38,"context_line":"        dests \u003d []"},{"line_number":39,"context_line":"        for container in containers:"}],"source_content_type":"text/x-python","patch_set":1,"id":"1a1ced50_c4818a4f","line":36,"range":{"start_line":36,"start_character":43,"end_line":36,"end_character":53},"updated":"2017-03-17 04:33:41.000000000","message":"What is the use of this containers here?","commit_id":"28fb04da6b256ec7db11e5f0c5043a9791345629"},{"author":{"_account_id":16277,"name":"Pradeep Kumar Singh","email":"ps4openstack@gmail.com","username":"pradeep_singh"},"change_message_id":"3d906490a30f8c886cb8bddb6208f06872a4b9e3","unresolved":false,"context_lines":[{"line_number":33,"context_line":""},{"line_number":34,"context_line":"        return random.choice(hosts)"},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"    def select_destinations(self, context, containers):"},{"line_number":37,"context_line":"        \"\"\"Selects random destinations.\"\"\""},{"line_number":38,"context_line":"        dests \u003d []"},{"line_number":39,"context_line":"        for container in containers:"}],"source_content_type":"text/x-python","patch_set":1,"id":"ffe62b97_9ab2fae5","line":36,"range":{"start_line":36,"start_character":43,"end_line":36,"end_character":53},"in_reply_to":"1a1ced50_c4818a4f","updated":"2017-03-26 09:44:30.000000000","message":"I think its there because scheduler driver select_destinations interface accepts containers as parameter,  but i am amazed there is no mapping between containers and hosts at https://github.com/openstack/zun/blob/master/zun/scheduler/filter_scheduler.py#L59, is it order of the list that determine where to schedule which container?","commit_id":"28fb04da6b256ec7db11e5f0c5043a9791345629"},{"author":{"_account_id":11536,"name":"hongbin","email":"hongbin034@gmail.com","username":"hongbin"},"change_message_id":"d7063c26a47cf8bc9f24b5e0c7e1eb9dfa1c9af0","unresolved":false,"context_lines":[{"line_number":33,"context_line":""},{"line_number":34,"context_line":"        return random.choice(hosts)"},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"    def select_destinations(self, context, containers):"},{"line_number":37,"context_line":"        \"\"\"Selects random destinations.\"\"\""},{"line_number":38,"context_line":"        dests \u003d []"},{"line_number":39,"context_line":"        for container in containers:"}],"source_content_type":"text/x-python","patch_set":1,"id":"ffe62b97_f8bfa7cd","line":36,"range":{"start_line":36,"start_character":43,"end_line":36,"end_character":53},"in_reply_to":"ffe62b97_9ab2fae5","updated":"2017-03-27 16:04:28.000000000","message":"The code was copied from nova and I guess the order of the list doesn\u0027t matter in nova side (if users request a group of vms with 3, nova just finds 3 hosts for them. The order doesn\u0027t matter since the 3 vms are all the same). In our case, zun doesn\u0027t support container group so the list of containers is guarantee to be one. Therefore, the order of the list doesn\u0027t matter as well.","commit_id":"28fb04da6b256ec7db11e5f0c5043a9791345629"}]}
