)]}'
{"openstack_dashboard/dashboards/admin/aggregates/tests.py":[{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"d2a8067c3c63bb589bf1f4cc870f83f619d4139d","unresolved":false,"context_lines":[{"line_number":41,"context_line":""},{"line_number":42,"context_line":"        return aggregate_info"},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"    def _get_manage_workflow_data(self, aggregate, hosts\u003dNone, ):"},{"line_number":45,"context_line":"        aggregate_info \u003d {\"id\": aggregate.id}"},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"        if hosts:"}],"source_content_type":"text/x-python","patch_set":2,"id":"5f93b717_84f6df62","side":"PARENT","line":44,"range":{"start_line":44,"start_character":4,"end_line":44,"end_character":33},"updated":"2018-01-31 12:15:47.000000000","message":"This method is not used anywhere. It is good chance to drop it.","commit_id":"b967a3c3c717adfb39b094aea2df42fca44d5089"}],"openstack_dashboard/dashboards/admin/aggregates/workflows.py":[{"author":{"_account_id":6873,"name":"Matt Riedemann","email":"mriedem.os@gmail.com","username":"mriedem"},"change_message_id":"d610d72dda0aadecbc14a8722d8acdefa769c72a","unresolved":false,"context_lines":[{"line_number":117,"context_line":"        except Exception:"},{"line_number":118,"context_line":"            exceptions.handle(request, err_msg)"},{"line_number":119,"context_line":""},{"line_number":120,"context_line":"        host_names \u003d [hv.hypervisor_hostname for hv in hypervisors]"},{"line_number":121,"context_line":"        host_names.sort()"},{"line_number":122,"context_line":""},{"line_number":123,"context_line":"        self.fields[field_name].choices \u003d \\"}],"source_content_type":"text/x-python","patch_set":1,"id":"5f93b717_b98913cb","line":120,"updated":"2018-01-28 15:07:39.000000000","message":"This will be slightly different from before. The os-hosts response with the host_name was the service hostname. The os-hypervisors response with hypervisor_hostname is the compute node \u0027node\u0027 name, which for non-ironic computes is the same as the service hostname, but for ironic, it\u0027s the baremetal node UUID. Nova doesn\u0027t yet support aggregates for baremetal nodes, so maybe it doesn\u0027t matter here yet. Alternatively you could use the os-services API and filter on nova-compute services and get the hostname from those. If you do use the os-services API, make sure you filter out disabled services, because that\u0027s what GET /os-hosts would do internally.","commit_id":"1ad87fb1d4d6fe0c228c3b40cca8d5791abb0d93"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"717abbdf64cd038d070372612519e744bd1ed9ec","unresolved":false,"context_lines":[{"line_number":117,"context_line":"        except Exception:"},{"line_number":118,"context_line":"            exceptions.handle(request, err_msg)"},{"line_number":119,"context_line":""},{"line_number":120,"context_line":"        host_names \u003d [hv.hypervisor_hostname for hv in hypervisors]"},{"line_number":121,"context_line":"        host_names.sort()"},{"line_number":122,"context_line":""},{"line_number":123,"context_line":"        self.fields[field_name].choices \u003d \\"}],"source_content_type":"text/x-python","patch_set":1,"id":"5f93b717_c656342b","line":120,"in_reply_to":"5f93b717_b98913cb","updated":"2018-01-31 08:10:08.000000000","message":"Thanks. I previously thought a hypervisor is added to a host aggregate.\nDoes os-aggregates API expect a host name returned by os-services API? right?","commit_id":"1ad87fb1d4d6fe0c228c3b40cca8d5791abb0d93"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"a9e363b3185669aa89e5329345dc06966eeb0574","unresolved":false,"context_lines":[{"line_number":117,"context_line":"        except Exception:"},{"line_number":118,"context_line":"            exceptions.handle(request, err_msg)"},{"line_number":119,"context_line":""},{"line_number":120,"context_line":"        host_names \u003d [hv.hypervisor_hostname for hv in hypervisors]"},{"line_number":121,"context_line":"        host_names.sort()"},{"line_number":122,"context_line":""},{"line_number":123,"context_line":"        self.fields[field_name].choices \u003d \\"}],"source_content_type":"text/x-python","patch_set":1,"id":"5f93b717_e93c5cc9","line":120,"in_reply_to":"5f93b717_c656342b","updated":"2018-01-31 11:04:00.000000000","message":"I asked this in #openstack-nova and confirmed os-aggregates API expects a service host name.","commit_id":"1ad87fb1d4d6fe0c228c3b40cca8d5791abb0d93"}],"openstack_dashboard/dashboards/admin/instances/forms.py":[{"author":{"_account_id":6873,"name":"Matt Riedemann","email":"mriedem.os@gmail.com","username":"mriedem"},"change_message_id":"d610d72dda0aadecbc14a8722d8acdefa769c72a","unresolved":false,"context_lines":[{"line_number":45,"context_line":"        self.fields[\u0027host\u0027].choices \u003d self.populate_host_choices(request,"},{"line_number":46,"context_line":"                                                                 initial)"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"    def populate_host_choices(self, request, initial):"},{"line_number":49,"context_line":"        hypervisors \u003d initial.get(\u0027hypervisors\u0027)"},{"line_number":50,"context_line":"        current_host \u003d initial.get(\u0027current_host\u0027)"},{"line_number":51,"context_line":"        host_list \u003d [(hv.hypervisor_hostname,"}],"source_content_type":"text/x-python","patch_set":1,"id":"5f93b717_d9841fb4","line":48,"updated":"2018-01-28 15:07:39.000000000","message":"I\u0027m not sure what this is used for, but again you might consider getting the list of hosts from the list of enabled compute services, rather than the hypervisors (which are compute nodes and are 1:M for ironic (host:node) - 1:1 for every other compute driver).","commit_id":"1ad87fb1d4d6fe0c228c3b40cca8d5791abb0d93"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"a9e363b3185669aa89e5329345dc06966eeb0574","unresolved":false,"context_lines":[{"line_number":45,"context_line":"        self.fields[\u0027host\u0027].choices \u003d self.populate_host_choices(request,"},{"line_number":46,"context_line":"                                                                 initial)"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"    def populate_host_choices(self, request, initial):"},{"line_number":49,"context_line":"        hypervisors \u003d initial.get(\u0027hypervisors\u0027)"},{"line_number":50,"context_line":"        current_host \u003d initial.get(\u0027current_host\u0027)"},{"line_number":51,"context_line":"        host_list \u003d [(hv.hypervisor_hostname,"}],"source_content_type":"text/x-python","patch_set":1,"id":"5f93b717_c92f2086","line":48,"in_reply_to":"5f93b717_3a0b6c24","updated":"2018-01-31 11:04:00.000000000","message":"I asked this in #openstack-nova and confirmed it expects a service host name.","commit_id":"1ad87fb1d4d6fe0c228c3b40cca8d5791abb0d93"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"717abbdf64cd038d070372612519e744bd1ed9ec","unresolved":false,"context_lines":[{"line_number":45,"context_line":"        self.fields[\u0027host\u0027].choices \u003d self.populate_host_choices(request,"},{"line_number":46,"context_line":"                                                                 initial)"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"    def populate_host_choices(self, request, initial):"},{"line_number":49,"context_line":"        hypervisors \u003d initial.get(\u0027hypervisors\u0027)"},{"line_number":50,"context_line":"        current_host \u003d initial.get(\u0027current_host\u0027)"},{"line_number":51,"context_line":"        host_list \u003d [(hv.hypervisor_hostname,"}],"source_content_type":"text/x-python","patch_set":1,"id":"5f93b717_3a0b6c24","line":48,"in_reply_to":"5f93b717_d9841fb4","updated":"2018-01-31 08:10:08.000000000","message":"A host name here will be passed to os-migrateLive Action. Which should I use a service host name or a hypervisor name?","commit_id":"1ad87fb1d4d6fe0c228c3b40cca8d5791abb0d93"}]}
