)]}'
{"blazar/utils/openstack/nova.py":[{"author":{"_account_id":25625,"name":"Tetsuro Nakamura","email":"tetsuro.nakamura.bc@hco.ntt.co.jp","username":"tetsuro0907"},"change_message_id":"3fb8a41bbb5b5398fee6b5dceded7d91939ddd76","unresolved":false,"context_lines":[{"line_number":56,"context_line":"               help\u003d\u0027Aggregate metadata key for knowing owner project_id\u0027),"},{"line_number":57,"context_line":"    cfg.BoolOpt(\u0027az_aware\u0027,"},{"line_number":58,"context_line":"                default\u003dTrue,"},{"line_number":59,"context_line":"                help\u003d\u0027A flag to store oritinal availability zone\u0027)"},{"line_number":60,"context_line":"]"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"5f7c97a3_c9140544","line":59,"range":{"start_line":59,"start_character":38,"end_line":59,"end_character":46},"updated":"2018-06-11 10:28:02.000000000","message":"original?","commit_id":"87b2ab9b30b8cff3af7a8f3877bb8de4981d540e"},{"author":{"_account_id":8878,"name":"Masahito Muroi","email":"masahito.muroi@g.softbank.co.jp","username":"masa"},"change_message_id":"e1634744863c55c3040505d62e8a64941a31d06f","unresolved":false,"context_lines":[{"line_number":56,"context_line":"               help\u003d\u0027Aggregate metadata key for knowing owner project_id\u0027),"},{"line_number":57,"context_line":"    cfg.BoolOpt(\u0027az_aware\u0027,"},{"line_number":58,"context_line":"                default\u003dTrue,"},{"line_number":59,"context_line":"                help\u003d\u0027A flag to store oritinal availability zone\u0027)"},{"line_number":60,"context_line":"]"},{"line_number":61,"context_line":""},{"line_number":62,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"5f7c97a3_55f936c5","line":59,"range":{"start_line":59,"start_character":38,"end_line":59,"end_character":46},"in_reply_to":"5f7c97a3_c9140544","updated":"2018-06-13 06:23:21.000000000","message":"Done","commit_id":"87b2ab9b30b8cff3af7a8f3877bb8de4981d540e"},{"author":{"_account_id":25625,"name":"Tetsuro Nakamura","email":"tetsuro.nakamura.bc@hco.ntt.co.jp","username":"tetsuro0907"},"change_message_id":"3fb8a41bbb5b5398fee6b5dceded7d91939ddd76","unresolved":false,"context_lines":[{"line_number":464,"context_line":"            host_name \u003d hypervisor.hypervisor_hostname"},{"line_number":465,"context_line":"            for zone in self.nova.availability_zones.list():"},{"line_number":466,"context_line":"                if (host_name in zone.hosts"},{"line_number":467,"context_line":"                   and \u0027nova-compute\u0027 in zone.hosts[host_name].keys()):"},{"line_number":468,"context_line":"                    az_name \u003d zone.zoneName"},{"line_number":469,"context_line":""},{"line_number":470,"context_line":"        try:"}],"source_content_type":"text/x-python","patch_set":5,"id":"5f7c97a3_2936d903","line":467,"range":{"start_line":467,"start_character":62,"end_line":467,"end_character":69},"updated":"2018-06-11 10:28:02.000000000","message":"nix! would be faster a litttttle bit.","commit_id":"87b2ab9b30b8cff3af7a8f3877bb8de4981d540e"},{"author":{"_account_id":25625,"name":"Tetsuro Nakamura","email":"tetsuro.nakamura.bc@hco.ntt.co.jp","username":"tetsuro0907"},"change_message_id":"3fb8a41bbb5b5398fee6b5dceded7d91939ddd76","unresolved":false,"context_lines":[{"line_number":465,"context_line":"            for zone in self.nova.availability_zones.list():"},{"line_number":466,"context_line":"                if (host_name in zone.hosts"},{"line_number":467,"context_line":"                   and \u0027nova-compute\u0027 in zone.hosts[host_name].keys()):"},{"line_number":468,"context_line":"                    az_name \u003d zone.zoneName"},{"line_number":469,"context_line":""},{"line_number":470,"context_line":"        try:"},{"line_number":471,"context_line":"            return {\u0027id\u0027: hypervisor.id,"}],"source_content_type":"text/x-python","patch_set":5,"id":"5f7c97a3_e9b0e18d","line":468,"updated":"2018-06-11 10:28:02.000000000","message":"I have 2 questions here.\n\n\n1. As I looked into the Availability zones (os-availability-zone) section in Nova API reference [1], it says that the `hosts` field is always null. I haven\u0027t yet tried this on my real env... why does it work? :(\n\n[1] https://developer.openstack.org/api-ref/compute\n\n\n2. A host can belong to multiple availability zones, can\u0027t they? If that\u0027s true, holding only one `az_name` in blazar makes no sense to me?","commit_id":"87b2ab9b30b8cff3af7a8f3877bb8de4981d540e"},{"author":{"_account_id":25625,"name":"Tetsuro Nakamura","email":"tetsuro.nakamura.bc@hco.ntt.co.jp","username":"tetsuro0907"},"change_message_id":"4472daed582e01817450d98a1a41d137df1d228e","unresolved":false,"context_lines":[{"line_number":465,"context_line":"            for zone in self.nova.availability_zones.list():"},{"line_number":466,"context_line":"                if (host_name in zone.hosts"},{"line_number":467,"context_line":"                   and \u0027nova-compute\u0027 in zone.hosts[host_name].keys()):"},{"line_number":468,"context_line":"                    az_name \u003d zone.zoneName"},{"line_number":469,"context_line":""},{"line_number":470,"context_line":"        try:"},{"line_number":471,"context_line":"            return {\u0027id\u0027: hypervisor.id,"}],"source_content_type":"text/x-python","patch_set":5,"id":"5f7c97a3_90427c67","line":468,"in_reply_to":"5f7c97a3_55605601","updated":"2018-06-13 07:16:40.000000000","message":"\u003e But as you commented, it could confuse others and the default would change in later release.  I add detailed argument for the method call.\n\nAh, I missed that details\u003dTrue option.\n\n\u003e nova-compute service can\u0027t belong to multiple az. Different service running on one host can belong to different az. nova-conductor running on Host1 belongs to internal and nova-compute running on Host1 belongs to zone1.\n\nNow I got you. I was being confused since a host can blong to multiple aggregates. If a nova-compute service can\u0027t belong to multiple az, this is reasonable.\n\n\u003e When a nova-compute doesn\u0027t belong to any aggregate, the hostname doesn\u0027t appear in any aggregate. On the other hand, the os-availability-zone API shows nova-compute services which belongs to default az.\n\nRight, it seems that this is the right Nova API to use.\n\nCool! Thanks a lot for the detailed explanation.","commit_id":"87b2ab9b30b8cff3af7a8f3877bb8de4981d540e"},{"author":{"_account_id":8878,"name":"Masahito Muroi","email":"masahito.muroi@g.softbank.co.jp","username":"masa"},"change_message_id":"e1634744863c55c3040505d62e8a64941a31d06f","unresolved":false,"context_lines":[{"line_number":465,"context_line":"            for zone in self.nova.availability_zones.list():"},{"line_number":466,"context_line":"                if (host_name in zone.hosts"},{"line_number":467,"context_line":"                   and \u0027nova-compute\u0027 in zone.hosts[host_name].keys()):"},{"line_number":468,"context_line":"                    az_name \u003d zone.zoneName"},{"line_number":469,"context_line":""},{"line_number":470,"context_line":"        try:"},{"line_number":471,"context_line":"            return {\u0027id\u0027: hypervisor.id,"}],"source_content_type":"text/x-python","patch_set":5,"id":"5f7c97a3_55605601","line":468,"in_reply_to":"5f7c97a3_ac7bd7bc","updated":"2018-06-13 06:23:21.000000000","message":"Details availability zone API[1] returns hostname and the client az.list() call the details API in default [2]. But as you commented, it could confuse others and the default would change in later release.  I add detailed argument for the method call.\n\nnova-compute service can\u0027t belong to multiple az. Different service running on one host can belong to different az. nova-conductor running on Host1 belongs to internal and nova-compute running on Host1 belongs to zone1.\n\nWhen a nova-compute doesn\u0027t belong to any aggregate, the hostname doesn\u0027t appear in any aggregate. On the other hand, the os-availability-zone API shows nova-compute services which belongs to default az.\n\n1. https://developer.openstack.org/api-ref/compute/#get-detailed-availability-zone-information\n2. https://git.openstack.org/cgit/openstack/python-novaclient/tree/novaclient/v2/availability_zones.py#n37","commit_id":"87b2ab9b30b8cff3af7a8f3877bb8de4981d540e"},{"author":{"_account_id":25625,"name":"Tetsuro Nakamura","email":"tetsuro.nakamura.bc@hco.ntt.co.jp","username":"tetsuro0907"},"change_message_id":"4b3d08eb5f2242ab2d9abdefe83d422d1425ef47","unresolved":false,"context_lines":[{"line_number":465,"context_line":"            for zone in self.nova.availability_zones.list():"},{"line_number":466,"context_line":"                if (host_name in zone.hosts"},{"line_number":467,"context_line":"                   and \u0027nova-compute\u0027 in zone.hosts[host_name].keys()):"},{"line_number":468,"context_line":"                    az_name \u003d zone.zoneName"},{"line_number":469,"context_line":""},{"line_number":470,"context_line":"        try:"},{"line_number":471,"context_line":"            return {\u0027id\u0027: hypervisor.id,"}],"source_content_type":"text/x-python","patch_set":5,"id":"5f7c97a3_ac7bd7bc","line":468,"in_reply_to":"5f7c97a3_e9b0e18d","updated":"2018-06-11 11:04:27.000000000","message":"`GET /os-aggregates` seems to be the right API to use to me instead of `/os-availability-zone`, the hosts field of whose return value is  a list, iterable value.","commit_id":"87b2ab9b30b8cff3af7a8f3877bb8de4981d540e"},{"author":{"_account_id":25625,"name":"Tetsuro Nakamura","email":"tetsuro.nakamura.bc@hco.ntt.co.jp","username":"tetsuro0907"},"change_message_id":"4472daed582e01817450d98a1a41d137df1d228e","unresolved":false,"context_lines":[{"line_number":464,"context_line":"            host_name \u003d hypervisor.hypervisor_hostname"},{"line_number":465,"context_line":"            for zone in self.nova.availability_zones.list(detailed\u003dTrue):"},{"line_number":466,"context_line":"                if (host_name in zone.hosts"},{"line_number":467,"context_line":"                   and \u0027nova-compute\u0027 in zone.hosts[host_name].keys()):"},{"line_number":468,"context_line":"                    az_name \u003d zone.zoneName"},{"line_number":469,"context_line":""},{"line_number":470,"context_line":"        try:"}],"source_content_type":"text/x-python","patch_set":6,"id":"5f7c97a3_b08218c6","line":467,"range":{"start_line":467,"start_character":62,"end_line":467,"end_character":69},"updated":"2018-06-13 07:16:40.000000000","message":"nit: no need","commit_id":"da75402474189e32d27dc3e76c47681c6c3ab4ee"},{"author":{"_account_id":8878,"name":"Masahito Muroi","email":"masahito.muroi@g.softbank.co.jp","username":"masa"},"change_message_id":"96a03bf3f5873dcb29fb1a28d46a40876a537c38","unresolved":false,"context_lines":[{"line_number":464,"context_line":"            host_name \u003d hypervisor.hypervisor_hostname"},{"line_number":465,"context_line":"            for zone in self.nova.availability_zones.list(detailed\u003dTrue):"},{"line_number":466,"context_line":"                if (host_name in zone.hosts"},{"line_number":467,"context_line":"                   and \u0027nova-compute\u0027 in zone.hosts[host_name].keys()):"},{"line_number":468,"context_line":"                    az_name \u003d zone.zoneName"},{"line_number":469,"context_line":""},{"line_number":470,"context_line":"        try:"}],"source_content_type":"text/x-python","patch_set":6,"id":"5f7c97a3_ee4ad124","line":467,"range":{"start_line":467,"start_character":62,"end_line":467,"end_character":69},"in_reply_to":"5f7c97a3_b08218c6","updated":"2018-06-14 07:46:12.000000000","message":"Done","commit_id":"da75402474189e32d27dc3e76c47681c6c3ab4ee"}],"doc/source/specs/rocky/multi-freepools.rst":[{"author":{"_account_id":23840,"name":"Hiroaki Kobayashi","email":"kobayashi.hiroaki@lab.ntt.co.jp","username":"hiro-kobayashi"},"change_message_id":"3fb257a9ad39d7e3988af674a59ad0e830ca3d37","unresolved":false,"context_lines":[{"line_number":198,"context_line":""},{"line_number":199,"context_line":"If deployers move a host to another availability zone, the deployers need to"},{"line_number":200,"context_line":"re-create the host to apply the new availability zone to the Blazar DB.  The"},{"line_number":201,"context_line":"information is registered by Blazar automatically only at creating a host. "},{"line_number":202,"context_line":""},{"line_number":203,"context_line":"Developer impact"},{"line_number":204,"context_line":"----------------"}],"source_content_type":"text/x-rst","patch_set":4,"id":"5f7c97a3_bf6e1bc7","line":201,"range":{"start_line":201,"start_character":74,"end_line":201,"end_character":75},"updated":"2018-05-18 02:08:35.000000000","message":"Unnecessary space","commit_id":"714114f447faa24b48e57abb0c54526709f3da99"},{"author":{"_account_id":8878,"name":"Masahito Muroi","email":"masahito.muroi@g.softbank.co.jp","username":"masa"},"change_message_id":"9574fa947599c7a150b1220fc432fe12a1633e3f","unresolved":false,"context_lines":[{"line_number":198,"context_line":""},{"line_number":199,"context_line":"If deployers move a host to another availability zone, the deployers need to"},{"line_number":200,"context_line":"re-create the host to apply the new availability zone to the Blazar DB.  The"},{"line_number":201,"context_line":"information is registered by Blazar automatically only at creating a host. "},{"line_number":202,"context_line":""},{"line_number":203,"context_line":"Developer impact"},{"line_number":204,"context_line":"----------------"}],"source_content_type":"text/x-rst","patch_set":4,"id":"5f7c97a3_6d5f790e","line":201,"range":{"start_line":201,"start_character":74,"end_line":201,"end_character":75},"in_reply_to":"5f7c97a3_bf6e1bc7","updated":"2018-05-18 05:14:49.000000000","message":"Done","commit_id":"714114f447faa24b48e57abb0c54526709f3da99"},{"author":{"_account_id":25625,"name":"Tetsuro Nakamura","email":"tetsuro.nakamura.bc@hco.ntt.co.jp","username":"tetsuro0907"},"change_message_id":"3fb8a41bbb5b5398fee6b5dceded7d91939ddd76","unresolved":false,"context_lines":[{"line_number":196,"context_line":"Blazar can\u0027t find out the original az information while deployers upgrade"},{"line_number":197,"context_line":"Blazar."},{"line_number":198,"context_line":""},{"line_number":199,"context_line":"If deployers move a host to another availability zone, the deployers need to"},{"line_number":200,"context_line":"re-create the host to apply the new availability zone to the Blazar DB.  The"},{"line_number":201,"context_line":"information is registered by Blazar automatically only at creating a host."},{"line_number":202,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"5f7c97a3_09f51dcb","line":199,"range":{"start_line":199,"start_character":12,"end_line":199,"end_character":53},"updated":"2018-06-11 10:28:02.000000000","message":"via Nova API right?","commit_id":"87b2ab9b30b8cff3af7a8f3877bb8de4981d540e"},{"author":{"_account_id":8878,"name":"Masahito Muroi","email":"masahito.muroi@g.softbank.co.jp","username":"masa"},"change_message_id":"e1634744863c55c3040505d62e8a64941a31d06f","unresolved":false,"context_lines":[{"line_number":196,"context_line":"Blazar can\u0027t find out the original az information while deployers upgrade"},{"line_number":197,"context_line":"Blazar."},{"line_number":198,"context_line":""},{"line_number":199,"context_line":"If deployers move a host to another availability zone, the deployers need to"},{"line_number":200,"context_line":"re-create the host to apply the new availability zone to the Blazar DB.  The"},{"line_number":201,"context_line":"information is registered by Blazar automatically only at creating a host."},{"line_number":202,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"5f7c97a3_901efc5c","line":199,"range":{"start_line":199,"start_character":12,"end_line":199,"end_character":53},"in_reply_to":"5f7c97a3_09f51dcb","updated":"2018-06-13 06:23:21.000000000","message":"Done","commit_id":"87b2ab9b30b8cff3af7a8f3877bb8de4981d540e"},{"author":{"_account_id":25625,"name":"Tetsuro Nakamura","email":"tetsuro.nakamura.bc@hco.ntt.co.jp","username":"tetsuro0907"},"change_message_id":"3fb8a41bbb5b5398fee6b5dceded7d91939ddd76","unresolved":false,"context_lines":[{"line_number":197,"context_line":"Blazar."},{"line_number":198,"context_line":""},{"line_number":199,"context_line":"If deployers move a host to another availability zone, the deployers need to"},{"line_number":200,"context_line":"re-create the host to apply the new availability zone to the Blazar DB.  The"},{"line_number":201,"context_line":"information is registered by Blazar automatically only at creating a host."},{"line_number":202,"context_line":""},{"line_number":203,"context_line":"Developer impact"}],"source_content_type":"text/x-rst","patch_set":5,"id":"5f7c97a3_89092dde","line":200,"range":{"start_line":200,"start_character":0,"end_line":200,"end_character":18},"updated":"2018-06-11 10:28:02.000000000","message":"via Blazar API, right?","commit_id":"87b2ab9b30b8cff3af7a8f3877bb8de4981d540e"},{"author":{"_account_id":8878,"name":"Masahito Muroi","email":"masahito.muroi@g.softbank.co.jp","username":"masa"},"change_message_id":"e1634744863c55c3040505d62e8a64941a31d06f","unresolved":false,"context_lines":[{"line_number":197,"context_line":"Blazar."},{"line_number":198,"context_line":""},{"line_number":199,"context_line":"If deployers move a host to another availability zone, the deployers need to"},{"line_number":200,"context_line":"re-create the host to apply the new availability zone to the Blazar DB.  The"},{"line_number":201,"context_line":"information is registered by Blazar automatically only at creating a host."},{"line_number":202,"context_line":""},{"line_number":203,"context_line":"Developer impact"}],"source_content_type":"text/x-rst","patch_set":5,"id":"5f7c97a3_b021b8a0","line":200,"range":{"start_line":200,"start_character":0,"end_line":200,"end_character":18},"in_reply_to":"5f7c97a3_89092dde","updated":"2018-06-13 06:23:21.000000000","message":"Done","commit_id":"87b2ab9b30b8cff3af7a8f3877bb8de4981d540e"},{"author":{"_account_id":25625,"name":"Tetsuro Nakamura","email":"tetsuro.nakamura.bc@hco.ntt.co.jp","username":"tetsuro0907"},"change_message_id":"3fb8a41bbb5b5398fee6b5dceded7d91939ddd76","unresolved":false,"context_lines":[{"line_number":198,"context_line":""},{"line_number":199,"context_line":"If deployers move a host to another availability zone, the deployers need to"},{"line_number":200,"context_line":"re-create the host to apply the new availability zone to the Blazar DB.  The"},{"line_number":201,"context_line":"information is registered by Blazar automatically only at creating a host."},{"line_number":202,"context_line":""},{"line_number":203,"context_line":"Developer impact"},{"line_number":204,"context_line":"----------------"}],"source_content_type":"text/x-rst","patch_set":5,"id":"5f7c97a3_29d81950","line":201,"range":{"start_line":201,"start_character":58,"end_line":201,"end_character":74},"updated":"2018-06-11 10:28:02.000000000","message":"via ...","commit_id":"87b2ab9b30b8cff3af7a8f3877bb8de4981d540e"},{"author":{"_account_id":8878,"name":"Masahito Muroi","email":"masahito.muroi@g.softbank.co.jp","username":"masa"},"change_message_id":"e1634744863c55c3040505d62e8a64941a31d06f","unresolved":false,"context_lines":[{"line_number":198,"context_line":""},{"line_number":199,"context_line":"If deployers move a host to another availability zone, the deployers need to"},{"line_number":200,"context_line":"re-create the host to apply the new availability zone to the Blazar DB.  The"},{"line_number":201,"context_line":"information is registered by Blazar automatically only at creating a host."},{"line_number":202,"context_line":""},{"line_number":203,"context_line":"Developer impact"},{"line_number":204,"context_line":"----------------"}],"source_content_type":"text/x-rst","patch_set":5,"id":"5f7c97a3_503ce4c6","line":201,"range":{"start_line":201,"start_character":58,"end_line":201,"end_character":74},"in_reply_to":"5f7c97a3_29d81950","updated":"2018-06-13 06:23:21.000000000","message":"Done","commit_id":"87b2ab9b30b8cff3af7a8f3877bb8de4981d540e"},{"author":{"_account_id":25625,"name":"Tetsuro Nakamura","email":"tetsuro.nakamura.bc@hco.ntt.co.jp","username":"tetsuro0907"},"change_message_id":"3fb8a41bbb5b5398fee6b5dceded7d91939ddd76","unresolved":false,"context_lines":[{"line_number":199,"context_line":"If deployers move a host to another availability zone, the deployers need to"},{"line_number":200,"context_line":"re-create the host to apply the new availability zone to the Blazar DB.  The"},{"line_number":201,"context_line":"information is registered by Blazar automatically only at creating a host."},{"line_number":202,"context_line":""},{"line_number":203,"context_line":"Developer impact"},{"line_number":204,"context_line":"----------------"},{"line_number":205,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"5f7c97a3_4928f531","line":202,"updated":"2018-06-11 10:28:02.000000000","message":"nit: would be greater if it is specified that which API deployers are expected to use.","commit_id":"87b2ab9b30b8cff3af7a8f3877bb8de4981d540e"},{"author":{"_account_id":8878,"name":"Masahito Muroi","email":"masahito.muroi@g.softbank.co.jp","username":"masa"},"change_message_id":"e1634744863c55c3040505d62e8a64941a31d06f","unresolved":false,"context_lines":[{"line_number":199,"context_line":"If deployers move a host to another availability zone, the deployers need to"},{"line_number":200,"context_line":"re-create the host to apply the new availability zone to the Blazar DB.  The"},{"line_number":201,"context_line":"information is registered by Blazar automatically only at creating a host."},{"line_number":202,"context_line":""},{"line_number":203,"context_line":"Developer impact"},{"line_number":204,"context_line":"----------------"},{"line_number":205,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"5f7c97a3_7037a0e4","line":202,"in_reply_to":"5f7c97a3_4928f531","updated":"2018-06-13 06:23:21.000000000","message":"Done","commit_id":"87b2ab9b30b8cff3af7a8f3877bb8de4981d540e"}]}
