)]}'
{"specs/mitaka/collect-neutron-port-meters.rst":[{"author":{"_account_id":6537,"name":"gordon chung","email":"gord@live.ca","username":"chungg"},"change_message_id":"7c4d0e044ec4f965ff07d03dfe9ff46cccc1c332","unresolved":false,"context_lines":[{"line_number":72,"context_line":"  network.services.sg.port.drop_rx_byte       g     type      p"},{"line_number":73,"context_line":"  network.services.sg.port.drop_tx_byte       g     type      p"},{"line_number":74,"context_line":"  network.services.sg.port.drop_rx_packet     g     packet    p"},{"line_number":75,"context_line":"  network.services.sg.port.drop_tx_packet     g     packet    p"},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"  Note:"},{"line_number":78,"context_line":"  g : gauge"}],"source_content_type":"text/x-rst","patch_set":3,"id":"7a5de9d1_2f6542e0","line":75,"updated":"2016-01-28 23:44:45.000000000","message":"can we add what metadata we expect to capture?","commit_id":"ff66a0d9b7ba510e550991d626cb47ea3be642b2"},{"author":{"_account_id":6537,"name":"gordon chung","email":"gord@live.ca","username":"chungg"},"change_message_id":"7c4d0e044ec4f965ff07d03dfe9ff46cccc1c332","unresolved":false,"context_lines":[{"line_number":160,"context_line":""},{"line_number":161,"context_line":"Performance/Scalability Impacts"},{"line_number":162,"context_line":"-------------------------------"},{"line_number":163,"context_line":"None"},{"line_number":164,"context_line":""},{"line_number":165,"context_line":"Other deployer impact"},{"line_number":166,"context_line":"---------------------"}],"source_content_type":"text/x-rst","patch_set":3,"id":"7a5de9d1_af513210","line":163,"updated":"2016-01-28 23:44:45.000000000","message":"can we describe how many additional api calls we expect?","commit_id":"ff66a0d9b7ba510e550991d626cb47ea3be642b2"},{"author":{"_account_id":11682,"name":"Ryan Moats","email":"rmoats@us.ibm.com","username":"regXboi"},"change_message_id":"e46cd3a78d53c82a40551b9fbd03af12d70fe85c","unresolved":false,"context_lines":[{"line_number":5,"context_line":" http://creativecommons.org/licenses/by/3.0/legalcode"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":8,"context_line":"Support collect neutron port meters"},{"line_number":9,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"https://blueprints.launchpad.net/ceilometer/+spec/support-to-collect-neutron-port-meters"}],"source_content_type":"text/x-rst","patch_set":4,"id":"5a5ae5dd_808095f8","line":8,"updated":"2016-02-05 14:38:44.000000000","message":"Collect neutron sg meters for instance ports\n\nThis isn\u0027t really about collecting per port meters as there are ports in neutron that carry traffic, but don\u0027t have security groups associated with them, so suggest changing the name to the above.","commit_id":"c45cc9a975fe26574d4e855750ac4f761c60db05"},{"author":{"_account_id":18137,"name":"Xia Linjuan","email":"ljxiash@cn.ibm.com","username":"xialinjuan"},"change_message_id":"e11c6d453f3db4d4d87977f200c1fea8d32d0fb5","unresolved":false,"context_lines":[{"line_number":5,"context_line":" http://creativecommons.org/licenses/by/3.0/legalcode"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":8,"context_line":"Support collect neutron port meters"},{"line_number":9,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"https://blueprints.launchpad.net/ceilometer/+spec/support-to-collect-neutron-port-meters"}],"source_content_type":"text/x-rst","patch_set":4,"id":"5a5ae5dd_aa6687b8","line":8,"in_reply_to":"5a5ae5dd_808095f8","updated":"2016-02-10 17:32:27.000000000","message":"Thanks. This title is much better.","commit_id":"c45cc9a975fe26574d4e855750ac4f761c60db05"},{"author":{"_account_id":11682,"name":"Ryan Moats","email":"rmoats@us.ibm.com","username":"regXboi"},"change_message_id":"e46cd3a78d53c82a40551b9fbd03af12d70fe85c","unresolved":false,"context_lines":[{"line_number":10,"context_line":""},{"line_number":11,"context_line":"https://blueprints.launchpad.net/ceilometer/+spec/support-to-collect-neutron-port-meters"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Neutron has applied security group on ports[1]. Access to instances is"},{"line_number":14,"context_line":"controlled by neutron security group. Network traffic will be dropped by"},{"line_number":15,"context_line":"a server if no security group rule explicitly allows it. Collecting the"},{"line_number":16,"context_line":"drop pkts/bytes and receive/send pkts/bytes is very important for VM"}],"source_content_type":"text/x-rst","patch_set":4,"id":"5a5ae5dd_407ffd14","line":13,"updated":"2016-02-05 14:38:44.000000000","message":"s/ports/instance ports/","commit_id":"c45cc9a975fe26574d4e855750ac4f761c60db05"},{"author":{"_account_id":18137,"name":"Xia Linjuan","email":"ljxiash@cn.ibm.com","username":"xialinjuan"},"change_message_id":"e11c6d453f3db4d4d87977f200c1fea8d32d0fb5","unresolved":false,"context_lines":[{"line_number":10,"context_line":""},{"line_number":11,"context_line":"https://blueprints.launchpad.net/ceilometer/+spec/support-to-collect-neutron-port-meters"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Neutron has applied security group on ports[1]. Access to instances is"},{"line_number":14,"context_line":"controlled by neutron security group. Network traffic will be dropped by"},{"line_number":15,"context_line":"a server if no security group rule explicitly allows it. Collecting the"},{"line_number":16,"context_line":"drop pkts/bytes and receive/send pkts/bytes is very important for VM"}],"source_content_type":"text/x-rst","patch_set":4,"id":"3a57f1b5_d0c8fb76","line":13,"in_reply_to":"5a5ae5dd_407ffd14","updated":"2016-02-10 17:32:27.000000000","message":"Done","commit_id":"c45cc9a975fe26574d4e855750ac4f761c60db05"},{"author":{"_account_id":11682,"name":"Ryan Moats","email":"rmoats@us.ibm.com","username":"regXboi"},"change_message_id":"e46cd3a78d53c82a40551b9fbd03af12d70fe85c","unresolved":false,"context_lines":[{"line_number":18,"context_line":"for bandwidth analysis, load balance analysis and so on."},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"The goal of this blueprint is to collect the drop/accept/send meters of"},{"line_number":21,"context_line":"port when neutron security group is enabled by default."},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"Problem description"},{"line_number":24,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":4,"id":"5a5ae5dd_c0b8cdca","line":21,"updated":"2016-02-05 14:38:44.000000000","message":"Please change line 21 to \n\nthe enabled security group associated with instance ports.","commit_id":"c45cc9a975fe26574d4e855750ac4f761c60db05"},{"author":{"_account_id":18137,"name":"Xia Linjuan","email":"ljxiash@cn.ibm.com","username":"xialinjuan"},"change_message_id":"e11c6d453f3db4d4d87977f200c1fea8d32d0fb5","unresolved":false,"context_lines":[{"line_number":18,"context_line":"for bandwidth analysis, load balance analysis and so on."},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"The goal of this blueprint is to collect the drop/accept/send meters of"},{"line_number":21,"context_line":"port when neutron security group is enabled by default."},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"Problem description"},{"line_number":24,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"}],"source_content_type":"text/x-rst","patch_set":4,"id":"3a57f1b5_1096934c","line":21,"in_reply_to":"5a5ae5dd_c0b8cdca","updated":"2016-02-10 17:32:27.000000000","message":"Done","commit_id":"c45cc9a975fe26574d4e855750ac4f761c60db05"},{"author":{"_account_id":6537,"name":"gordon chung","email":"gord@live.ca","username":"chungg"},"change_message_id":"a450ab8d3561c456b51d800571d777aed9593cad","unresolved":false,"context_lines":[{"line_number":23,"context_line":"Problem description"},{"line_number":24,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"Ceilometer currently doesn\u0027t support collect the drop bytes/pkts of the traffic"},{"line_number":27,"context_line":"to/from VM. Currently the network metrics of instance collected by hypervisor"},{"line_number":28,"context_line":"actually have been filtered by security group and only have receive/send"},{"line_number":29,"context_line":"counters. The drop counter would help us know better network condition of an"}],"source_content_type":"text/x-rst","patch_set":4,"id":"5a5ae5dd_95e7eb3f","line":26,"range":{"start_line":26,"start_character":37,"end_line":26,"end_character":45},"updated":"2016-02-03 16:00:56.000000000","message":"s/collect/collecting/","commit_id":"c45cc9a975fe26574d4e855750ac4f761c60db05"},{"author":{"_account_id":18137,"name":"Xia Linjuan","email":"ljxiash@cn.ibm.com","username":"xialinjuan"},"change_message_id":"e11c6d453f3db4d4d87977f200c1fea8d32d0fb5","unresolved":false,"context_lines":[{"line_number":23,"context_line":"Problem description"},{"line_number":24,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"Ceilometer currently doesn\u0027t support collect the drop bytes/pkts of the traffic"},{"line_number":27,"context_line":"to/from VM. Currently the network metrics of instance collected by hypervisor"},{"line_number":28,"context_line":"actually have been filtered by security group and only have receive/send"},{"line_number":29,"context_line":"counters. The drop counter would help us know better network condition of an"}],"source_content_type":"text/x-rst","patch_set":4,"id":"3a57f1b5_b08d3f33","line":26,"range":{"start_line":26,"start_character":37,"end_line":26,"end_character":45},"in_reply_to":"5a5ae5dd_95e7eb3f","updated":"2016-02-10 17:32:27.000000000","message":"Done","commit_id":"c45cc9a975fe26574d4e855750ac4f761c60db05"},{"author":{"_account_id":11682,"name":"Ryan Moats","email":"rmoats@us.ibm.com","username":"regXboi"},"change_message_id":"e46cd3a78d53c82a40551b9fbd03af12d70fe85c","unresolved":false,"context_lines":[{"line_number":31,"context_line":"analysis."},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"The neutron security group is enabled by default and default rules will be"},{"line_number":34,"context_line":"applied on every port. Then we can get the drop metric, otherwise we don\u0027t"},{"line_number":35,"context_line":"pull the data."},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"Proposed change"}],"source_content_type":"text/x-rst","patch_set":4,"id":"5a5ae5dd_20c0c129","line":34,"updated":"2016-02-05 14:38:44.000000000","message":"s/port/instance port/","commit_id":"c45cc9a975fe26574d4e855750ac4f761c60db05"},{"author":{"_account_id":18137,"name":"Xia Linjuan","email":"ljxiash@cn.ibm.com","username":"xialinjuan"},"change_message_id":"e11c6d453f3db4d4d87977f200c1fea8d32d0fb5","unresolved":false,"context_lines":[{"line_number":31,"context_line":"analysis."},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"The neutron security group is enabled by default and default rules will be"},{"line_number":34,"context_line":"applied on every port. Then we can get the drop metric, otherwise we don\u0027t"},{"line_number":35,"context_line":"pull the data."},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"Proposed change"}],"source_content_type":"text/x-rst","patch_set":4,"id":"3a57f1b5_5082cb01","line":34,"in_reply_to":"5a5ae5dd_20c0c129","updated":"2016-02-10 17:32:27.000000000","message":"Done","commit_id":"c45cc9a975fe26574d4e855750ac4f761c60db05"},{"author":{"_account_id":11682,"name":"Ryan Moats","email":"rmoats@us.ibm.com","username":"regXboi"},"change_message_id":"e46cd3a78d53c82a40551b9fbd03af12d70fe85c","unresolved":false,"context_lines":[{"line_number":39,"context_line":""},{"line_number":40,"context_line":"The proposal tries to solve the problem described above with changes:"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"* When the neutron security group is enabled, it will work on port. We can get"},{"line_number":43,"context_line":"  the drop/send/receive bytes/pkts metrics from \"neutron-openvswi-sg-chain\"."},{"line_number":44,"context_line":"  So first we need to make sure the security group is enabled. It can be"},{"line_number":45,"context_line":"  confirmed by the flag of \"port_security_enabled\" or the length of security"}],"source_content_type":"text/x-rst","patch_set":4,"id":"5a5ae5dd_a0ea71aa","line":42,"updated":"2016-02-05 14:38:44.000000000","message":"s/port/instance port/","commit_id":"c45cc9a975fe26574d4e855750ac4f761c60db05"},{"author":{"_account_id":18137,"name":"Xia Linjuan","email":"ljxiash@cn.ibm.com","username":"xialinjuan"},"change_message_id":"e11c6d453f3db4d4d87977f200c1fea8d32d0fb5","unresolved":false,"context_lines":[{"line_number":39,"context_line":""},{"line_number":40,"context_line":"The proposal tries to solve the problem described above with changes:"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"* When the neutron security group is enabled, it will work on port. We can get"},{"line_number":43,"context_line":"  the drop/send/receive bytes/pkts metrics from \"neutron-openvswi-sg-chain\"."},{"line_number":44,"context_line":"  So first we need to make sure the security group is enabled. It can be"},{"line_number":45,"context_line":"  confirmed by the flag of \"port_security_enabled\" or the length of security"}],"source_content_type":"text/x-rst","patch_set":4,"id":"3a57f1b5_307aaf25","line":42,"in_reply_to":"5a5ae5dd_a0ea71aa","updated":"2016-02-10 17:32:27.000000000","message":"Done","commit_id":"c45cc9a975fe26574d4e855750ac4f761c60db05"},{"author":{"_account_id":7293,"name":"Elena Ezhova","email":"ezhovaelena19@gmail.com","username":"elena"},"change_message_id":"b0f0f4f7cb4e12ca8a211c3bba62c337758c0749","unresolved":false,"context_lines":[{"line_number":68,"context_line":"  p : pollster"},{"line_number":69,"context_line":"  n : notification"},{"line_number":70,"context_line":""},{"line_number":71,"context_line":"  The metadata needed is below, we can extract metadata from port details:"},{"line_number":72,"context_line":"  meter_name"},{"line_number":73,"context_line":"  port_id"},{"line_number":74,"context_line":"  host_id"}],"source_content_type":"text/x-rst","patch_set":4,"id":"5a5ae5dd_e2bdd1b7","line":71,"updated":"2016-02-05 13:57:05.000000000","message":"The list below is a bit chaotic, can you make it match [1]?\n\n[1] http://developer.openstack.org/api-ref-networking-v2.html#listPorts","commit_id":"c45cc9a975fe26574d4e855750ac4f761c60db05"},{"author":{"_account_id":18137,"name":"Xia Linjuan","email":"ljxiash@cn.ibm.com","username":"xialinjuan"},"change_message_id":"e11c6d453f3db4d4d87977f200c1fea8d32d0fb5","unresolved":false,"context_lines":[{"line_number":68,"context_line":"  p : pollster"},{"line_number":69,"context_line":"  n : notification"},{"line_number":70,"context_line":""},{"line_number":71,"context_line":"  The metadata needed is below, we can extract metadata from port details:"},{"line_number":72,"context_line":"  meter_name"},{"line_number":73,"context_line":"  port_id"},{"line_number":74,"context_line":"  host_id"}],"source_content_type":"text/x-rst","patch_set":4,"id":"3a57f1b5_50d16bcc","line":71,"in_reply_to":"5a5ae5dd_00da6517","updated":"2016-02-10 17:32:27.000000000","message":"Elena, Ryan, thanks for your review. In the new patch I decided to have the port details as its resource metadata. Or should I only take some of the key attributes as its metadata?","commit_id":"c45cc9a975fe26574d4e855750ac4f761c60db05"},{"author":{"_account_id":11682,"name":"Ryan Moats","email":"rmoats@us.ibm.com","username":"regXboi"},"change_message_id":"e46cd3a78d53c82a40551b9fbd03af12d70fe85c","unresolved":false,"context_lines":[{"line_number":68,"context_line":"  p : pollster"},{"line_number":69,"context_line":"  n : notification"},{"line_number":70,"context_line":""},{"line_number":71,"context_line":"  The metadata needed is below, we can extract metadata from port details:"},{"line_number":72,"context_line":"  meter_name"},{"line_number":73,"context_line":"  port_id"},{"line_number":74,"context_line":"  host_id"}],"source_content_type":"text/x-rst","patch_set":4,"id":"5a5ae5dd_00da6517","line":71,"in_reply_to":"5a5ae5dd_e2bdd1b7","updated":"2016-02-05 14:38:44.000000000","message":"+1","commit_id":"c45cc9a975fe26574d4e855750ac4f761c60db05"},{"author":{"_account_id":18137,"name":"Xia Linjuan","email":"ljxiash@cn.ibm.com","username":"xialinjuan"},"change_message_id":"e11c6d453f3db4d4d87977f200c1fea8d32d0fb5","unresolved":false,"context_lines":[{"line_number":68,"context_line":"  p : pollster"},{"line_number":69,"context_line":"  n : notification"},{"line_number":70,"context_line":""},{"line_number":71,"context_line":"  The metadata needed is below, we can extract metadata from port details:"},{"line_number":72,"context_line":"  meter_name"},{"line_number":73,"context_line":"  port_id"},{"line_number":74,"context_line":"  host_id"}],"source_content_type":"text/x-rst","patch_set":4,"id":"3a57f1b5_30006f34","line":71,"in_reply_to":"5a5ae5dd_e2bdd1b7","updated":"2016-02-10 17:32:27.000000000","message":"Thanks for pointing this. I will make it more clear.","commit_id":"c45cc9a975fe26574d4e855750ac4f761c60db05"},{"author":{"_account_id":7293,"name":"Elena Ezhova","email":"ezhovaelena19@gmail.com","username":"elena"},"change_message_id":"b0f0f4f7cb4e12ca8a211c3bba62c337758c0749","unresolved":false,"context_lines":[{"line_number":81,"context_line":"  tenant_id"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"* API we need during polling:"},{"line_number":84,"context_line":"  /v2.0/ports?host\u003dhostname           Lists ports on hostname."},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"* In order to get accurate values of meters above, we use iptables command"},{"line_number":87,"context_line":"  on compute node."}],"source_content_type":"text/x-rst","patch_set":4,"id":"5a5ae5dd_6fd1caf9","line":84,"range":{"start_line":84,"start_character":14,"end_line":84,"end_character":27},"updated":"2016-02-05 13:57:05.000000000","message":"Port doesn\u0027t have such attribute, so you can\u0027t use it as a filtering parameter. Did you mean device_id?\n\nhttp://developer.openstack.org/api-ref-networking-v2.html#listPorts","commit_id":"c45cc9a975fe26574d4e855750ac4f761c60db05"},{"author":{"_account_id":18137,"name":"Xia Linjuan","email":"ljxiash@cn.ibm.com","username":"xialinjuan"},"change_message_id":"e11c6d453f3db4d4d87977f200c1fea8d32d0fb5","unresolved":false,"context_lines":[{"line_number":81,"context_line":"  tenant_id"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"* API we need during polling:"},{"line_number":84,"context_line":"  /v2.0/ports?host\u003dhostname           Lists ports on hostname."},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"* In order to get accurate values of meters above, we use iptables command"},{"line_number":87,"context_line":"  on compute node."}],"source_content_type":"text/x-rst","patch_set":4,"id":"3a57f1b5_e68d417c","line":84,"range":{"start_line":84,"start_character":14,"end_line":84,"end_character":27},"in_reply_to":"5a5ae5dd_6fd1caf9","updated":"2016-02-10 17:32:27.000000000","message":"Hmm, I want to filter out the related ports with the host, but could not find a proper api for it. It seems I have to get all the port and use the hostname to filter.","commit_id":"c45cc9a975fe26574d4e855750ac4f761c60db05"},{"author":{"_account_id":11682,"name":"Ryan Moats","email":"rmoats@us.ibm.com","username":"regXboi"},"change_message_id":"e46cd3a78d53c82a40551b9fbd03af12d70fe85c","unresolved":false,"context_lines":[{"line_number":93,"context_line":"  To get send/receive meters values,"},{"line_number":94,"context_line":"  1. Look up the FORWARD chain. The traffic will be record on"},{"line_number":95,"context_line":"  \"neutron-openvswi-sg-chain\"."},{"line_number":96,"context_line":"  2. Look up the \"neutron-openvswi-sg-chain\" chain. Assume we have a port"},{"line_number":97,"context_line":"  and its id is 47f860ec-7484-40be-87e3-f3fc4ed3bd3e, then we can find two"},{"line_number":98,"context_line":"  chain \"neutron-openvswi-i47f860ec-7\" and \"neutron-openvswi-o47f860ec-7\""},{"line_number":99,"context_line":"  in it. The two chain aims to record the incoming and outgoing traffic of"}],"source_content_type":"text/x-rst","patch_set":4,"id":"5a5ae5dd_40429daf","line":96,"updated":"2016-02-05 14:38:44.000000000","message":"s/a port/an instance port/","commit_id":"c45cc9a975fe26574d4e855750ac4f761c60db05"},{"author":{"_account_id":18137,"name":"Xia Linjuan","email":"ljxiash@cn.ibm.com","username":"xialinjuan"},"change_message_id":"e11c6d453f3db4d4d87977f200c1fea8d32d0fb5","unresolved":false,"context_lines":[{"line_number":93,"context_line":"  To get send/receive meters values,"},{"line_number":94,"context_line":"  1. Look up the FORWARD chain. The traffic will be record on"},{"line_number":95,"context_line":"  \"neutron-openvswi-sg-chain\"."},{"line_number":96,"context_line":"  2. Look up the \"neutron-openvswi-sg-chain\" chain. Assume we have a port"},{"line_number":97,"context_line":"  and its id is 47f860ec-7484-40be-87e3-f3fc4ed3bd3e, then we can find two"},{"line_number":98,"context_line":"  chain \"neutron-openvswi-i47f860ec-7\" and \"neutron-openvswi-o47f860ec-7\""},{"line_number":99,"context_line":"  in it. The two chain aims to record the incoming and outgoing traffic of"}],"source_content_type":"text/x-rst","patch_set":4,"id":"3a57f1b5_06de5d6d","line":96,"in_reply_to":"5a5ae5dd_40429daf","updated":"2016-02-10 17:32:27.000000000","message":"Done","commit_id":"c45cc9a975fe26574d4e855750ac4f761c60db05"},{"author":{"_account_id":7293,"name":"Elena Ezhova","email":"ezhovaelena19@gmail.com","username":"elena"},"change_message_id":"b0f0f4f7cb4e12ca8a211c3bba62c337758c0749","unresolved":false,"context_lines":[{"line_number":100,"context_line":"  the port, the two rules are named with the first ten characters of port"},{"line_number":101,"context_line":"  id. Before partial id, \"i\" and \"o\" represents incoming and outgoing traffic."},{"line_number":102,"context_line":"  3. Look up \"neutron-openvswi-o47f860ec-7\", add up all the Accept values can"},{"line_number":103,"context_line":"  get \"port.accept.rx\"."},{"line_number":104,"context_line":"  4. Look up \"neutron-openvswi-i47f860ec-7\", add up all the Accept values can"},{"line_number":105,"context_line":"  get \"port.accept.tx\""},{"line_number":106,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"5a5ae5dd_cfbc7ede","line":103,"range":{"start_line":103,"start_character":7,"end_line":103,"end_character":21},"updated":"2016-02-05 13:57:05.000000000","message":"port.accept_rx_byte/port.accept_rx_packet ?","commit_id":"c45cc9a975fe26574d4e855750ac4f761c60db05"},{"author":{"_account_id":18137,"name":"Xia Linjuan","email":"ljxiash@cn.ibm.com","username":"xialinjuan"},"change_message_id":"e11c6d453f3db4d4d87977f200c1fea8d32d0fb5","unresolved":false,"context_lines":[{"line_number":100,"context_line":"  the port, the two rules are named with the first ten characters of port"},{"line_number":101,"context_line":"  id. Before partial id, \"i\" and \"o\" represents incoming and outgoing traffic."},{"line_number":102,"context_line":"  3. Look up \"neutron-openvswi-o47f860ec-7\", add up all the Accept values can"},{"line_number":103,"context_line":"  get \"port.accept.rx\"."},{"line_number":104,"context_line":"  4. Look up \"neutron-openvswi-i47f860ec-7\", add up all the Accept values can"},{"line_number":105,"context_line":"  get \"port.accept.tx\""},{"line_number":106,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"3a57f1b5_a6d50944","line":103,"range":{"start_line":103,"start_character":7,"end_line":103,"end_character":21},"in_reply_to":"5a5ae5dd_cfbc7ede","updated":"2016-02-10 17:32:27.000000000","message":"Done","commit_id":"c45cc9a975fe26574d4e855750ac4f761c60db05"},{"author":{"_account_id":7293,"name":"Elena Ezhova","email":"ezhovaelena19@gmail.com","username":"elena"},"change_message_id":"b0f0f4f7cb4e12ca8a211c3bba62c337758c0749","unresolved":false,"context_lines":[{"line_number":102,"context_line":"  3. Look up \"neutron-openvswi-o47f860ec-7\", add up all the Accept values can"},{"line_number":103,"context_line":"  get \"port.accept.rx\"."},{"line_number":104,"context_line":"  4. Look up \"neutron-openvswi-i47f860ec-7\", add up all the Accept values can"},{"line_number":105,"context_line":"  get \"port.accept.tx\""},{"line_number":106,"context_line":""},{"line_number":107,"context_line":"  To get drop meter value,"},{"line_number":108,"context_line":"  1. add up DROP values of neutron-openvswi-i77d9be6b-6,"}],"source_content_type":"text/x-rst","patch_set":4,"id":"5a5ae5dd_0fc7f664","line":105,"range":{"start_line":105,"start_character":7,"end_line":105,"end_character":21},"updated":"2016-02-05 13:57:05.000000000","message":"ditto","commit_id":"c45cc9a975fe26574d4e855750ac4f761c60db05"},{"author":{"_account_id":18137,"name":"Xia Linjuan","email":"ljxiash@cn.ibm.com","username":"xialinjuan"},"change_message_id":"e11c6d453f3db4d4d87977f200c1fea8d32d0fb5","unresolved":false,"context_lines":[{"line_number":102,"context_line":"  3. Look up \"neutron-openvswi-o47f860ec-7\", add up all the Accept values can"},{"line_number":103,"context_line":"  get \"port.accept.rx\"."},{"line_number":104,"context_line":"  4. Look up \"neutron-openvswi-i47f860ec-7\", add up all the Accept values can"},{"line_number":105,"context_line":"  get \"port.accept.tx\""},{"line_number":106,"context_line":""},{"line_number":107,"context_line":"  To get drop meter value,"},{"line_number":108,"context_line":"  1. add up DROP values of neutron-openvswi-i77d9be6b-6,"}],"source_content_type":"text/x-rst","patch_set":4,"id":"3a57f1b5_8637adaf","line":105,"range":{"start_line":105,"start_character":7,"end_line":105,"end_character":21},"in_reply_to":"5a5ae5dd_0fc7f664","updated":"2016-02-10 17:32:27.000000000","message":"Done","commit_id":"c45cc9a975fe26574d4e855750ac4f761c60db05"},{"author":{"_account_id":7293,"name":"Elena Ezhova","email":"ezhovaelena19@gmail.com","username":"elena"},"change_message_id":"b0f0f4f7cb4e12ca8a211c3bba62c337758c0749","unresolved":false,"context_lines":[{"line_number":106,"context_line":""},{"line_number":107,"context_line":"  To get drop meter value,"},{"line_number":108,"context_line":"  1. add up DROP values of neutron-openvswi-i77d9be6b-6,"},{"line_number":109,"context_line":"  neutron-openvswi-o77d9be6b-6, neutron-openvswi-s77d9be6b-6 and value of"},{"line_number":110,"context_line":"  neutron-openvswi-sg-fallback chain."},{"line_number":111,"context_line":""},{"line_number":112,"context_line":"Alternatives"}],"source_content_type":"text/x-rst","patch_set":4,"id":"5a5ae5dd_2c8f60cd","line":109,"range":{"start_line":109,"start_character":32,"end_line":109,"end_character":60},"updated":"2016-02-05 13:57:05.000000000","message":"It wasn\u0027t mentioned before that SPOOF filter chain metrics would also be collected. Would they be added to drop_tx_* metrics?","commit_id":"c45cc9a975fe26574d4e855750ac4f761c60db05"},{"author":{"_account_id":18137,"name":"Xia Linjuan","email":"ljxiash@cn.ibm.com","username":"xialinjuan"},"change_message_id":"e11c6d453f3db4d4d87977f200c1fea8d32d0fb5","unresolved":false,"context_lines":[{"line_number":106,"context_line":""},{"line_number":107,"context_line":"  To get drop meter value,"},{"line_number":108,"context_line":"  1. add up DROP values of neutron-openvswi-i77d9be6b-6,"},{"line_number":109,"context_line":"  neutron-openvswi-o77d9be6b-6, neutron-openvswi-s77d9be6b-6 and value of"},{"line_number":110,"context_line":"  neutron-openvswi-sg-fallback chain."},{"line_number":111,"context_line":""},{"line_number":112,"context_line":"Alternatives"}],"source_content_type":"text/x-rst","patch_set":4,"id":"3a57f1b5_c69365f9","line":109,"range":{"start_line":109,"start_character":32,"end_line":109,"end_character":60},"in_reply_to":"5a5ae5dd_201c41c0","updated":"2016-02-10 17:32:27.000000000","message":"right. Thanks.","commit_id":"c45cc9a975fe26574d4e855750ac4f761c60db05"},{"author":{"_account_id":11682,"name":"Ryan Moats","email":"rmoats@us.ibm.com","username":"regXboi"},"change_message_id":"e46cd3a78d53c82a40551b9fbd03af12d70fe85c","unresolved":false,"context_lines":[{"line_number":106,"context_line":""},{"line_number":107,"context_line":"  To get drop meter value,"},{"line_number":108,"context_line":"  1. add up DROP values of neutron-openvswi-i77d9be6b-6,"},{"line_number":109,"context_line":"  neutron-openvswi-o77d9be6b-6, neutron-openvswi-s77d9be6b-6 and value of"},{"line_number":110,"context_line":"  neutron-openvswi-sg-fallback chain."},{"line_number":111,"context_line":""},{"line_number":112,"context_line":"Alternatives"}],"source_content_type":"text/x-rst","patch_set":4,"id":"5a5ae5dd_201c41c0","line":109,"range":{"start_line":109,"start_character":32,"end_line":109,"end_character":60},"in_reply_to":"5a5ae5dd_2c8f60cd","updated":"2016-02-05 14:38:44.000000000","message":"+1 - if this is going to be collected, let\u0027s introduce it in the list of chains above.","commit_id":"c45cc9a975fe26574d4e855750ac4f761c60db05"},{"author":{"_account_id":18137,"name":"Xia Linjuan","email":"ljxiash@cn.ibm.com","username":"xialinjuan"},"change_message_id":"e11c6d453f3db4d4d87977f200c1fea8d32d0fb5","unresolved":false,"context_lines":[{"line_number":106,"context_line":""},{"line_number":107,"context_line":"  To get drop meter value,"},{"line_number":108,"context_line":"  1. add up DROP values of neutron-openvswi-i77d9be6b-6,"},{"line_number":109,"context_line":"  neutron-openvswi-o77d9be6b-6, neutron-openvswi-s77d9be6b-6 and value of"},{"line_number":110,"context_line":"  neutron-openvswi-sg-fallback chain."},{"line_number":111,"context_line":""},{"line_number":112,"context_line":"Alternatives"}],"source_content_type":"text/x-rst","patch_set":4,"id":"3a57f1b5_06cf3d80","line":109,"range":{"start_line":109,"start_character":32,"end_line":109,"end_character":60},"in_reply_to":"5a5ae5dd_2c8f60cd","updated":"2016-02-10 17:32:27.000000000","message":"Thanks. I will mention it. For drop metric, it will add the spoof filter chain DROP value.","commit_id":"c45cc9a975fe26574d4e855750ac4f761c60db05"},{"author":{"_account_id":11682,"name":"Ryan Moats","email":"rmoats@us.ibm.com","username":"regXboi"},"change_message_id":"e46cd3a78d53c82a40551b9fbd03af12d70fe85c","unresolved":false,"context_lines":[{"line_number":128,"context_line":"We can let the two ways of collecting network metrics co-exist. From nova"},{"line_number":129,"context_line":"perspective, we can get the network send/receive counters via hypervisor."},{"line_number":130,"context_line":"From neutron perspective, we can get the network send/receive/drop counters"},{"line_number":131,"context_line":"from neutron port for network security analysis."},{"line_number":132,"context_line":""},{"line_number":133,"context_line":"Data model impact"},{"line_number":134,"context_line":"-----------------"}],"source_content_type":"text/x-rst","patch_set":4,"id":"5a5ae5dd_408cddd9","line":131,"updated":"2016-02-05 14:38:44.000000000","message":"There is also this alternative in development: https://blueprints.launchpad.net/neutron/+spec/performance-counters","commit_id":"c45cc9a975fe26574d4e855750ac4f761c60db05"},{"author":{"_account_id":18137,"name":"Xia Linjuan","email":"ljxiash@cn.ibm.com","username":"xialinjuan"},"change_message_id":"e11c6d453f3db4d4d87977f200c1fea8d32d0fb5","unresolved":false,"context_lines":[{"line_number":128,"context_line":"We can let the two ways of collecting network metrics co-exist. From nova"},{"line_number":129,"context_line":"perspective, we can get the network send/receive counters via hypervisor."},{"line_number":130,"context_line":"From neutron perspective, we can get the network send/receive/drop counters"},{"line_number":131,"context_line":"from neutron port for network security analysis."},{"line_number":132,"context_line":""},{"line_number":133,"context_line":"Data model impact"},{"line_number":134,"context_line":"-----------------"}],"source_content_type":"text/x-rst","patch_set":4,"id":"3a57f1b5_c6060520","line":131,"in_reply_to":"5a5ae5dd_408cddd9","updated":"2016-02-10 17:32:27.000000000","message":"Cool. Will look into it. Thanks you!","commit_id":"c45cc9a975fe26574d4e855750ac4f761c60db05"},{"author":{"_account_id":11682,"name":"Ryan Moats","email":"rmoats@us.ibm.com","username":"regXboi"},"change_message_id":"861f55a9c880d1ec02613935588a35dfa7bdc00d","unresolved":false,"context_lines":[{"line_number":70,"context_line":"  p : pollster"},{"line_number":71,"context_line":"  n : notification"},{"line_number":72,"context_line":""},{"line_number":73,"context_line":"  The sample will have the port details[4] as resource metadata:​"},{"line_number":74,"context_line":"  Metadata     Source                  Parameter\t Style\t  Type"},{"line_number":75,"context_line":"  port         /v2.0/ports/​{port_id}    port\t     plain\t  xsd:dict"},{"line_number":76,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"3a57f1b5_38ec988e","line":73,"updated":"2016-02-11 15:56:54.000000000","message":"nit: tab at end of line","commit_id":"585900f83a5807979ed59ea955f0572192f920b1"},{"author":{"_account_id":18137,"name":"Xia Linjuan","email":"ljxiash@cn.ibm.com","username":"xialinjuan"},"change_message_id":"6833c4dadc9109d1d591d25b71227ed6202818dd","unresolved":false,"context_lines":[{"line_number":70,"context_line":"  p : pollster"},{"line_number":71,"context_line":"  n : notification"},{"line_number":72,"context_line":""},{"line_number":73,"context_line":"  The sample will have the port details[4] as resource metadata:​"},{"line_number":74,"context_line":"  Metadata     Source                  Parameter\t Style\t  Type"},{"line_number":75,"context_line":"  port         /v2.0/ports/​{port_id}    port\t     plain\t  xsd:dict"},{"line_number":76,"context_line":""}],"source_content_type":"text/x-rst","patch_set":5,"id":"3a57f1b5_b330a9e9","line":73,"in_reply_to":"3a57f1b5_38ec988e","updated":"2016-02-11 16:05:25.000000000","message":"Done","commit_id":"585900f83a5807979ed59ea955f0572192f920b1"},{"author":{"_account_id":11682,"name":"Ryan Moats","email":"rmoats@us.ibm.com","username":"regXboi"},"change_message_id":"861f55a9c880d1ec02613935588a35dfa7bdc00d","unresolved":false,"context_lines":[{"line_number":71,"context_line":"  n : notification"},{"line_number":72,"context_line":""},{"line_number":73,"context_line":"  The sample will have the port details[4] as resource metadata:​"},{"line_number":74,"context_line":"  Metadata     Source                  Parameter\t Style\t  Type"},{"line_number":75,"context_line":"  port         /v2.0/ports/​{port_id}    port\t     plain\t  xsd:dict"},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"* API we need during polling:"}],"source_content_type":"text/x-rst","patch_set":5,"id":"3a57f1b5_78c0d0e0","line":74,"updated":"2016-02-11 15:56:54.000000000","message":"nit: replace tabs with spaces","commit_id":"585900f83a5807979ed59ea955f0572192f920b1"},{"author":{"_account_id":18137,"name":"Xia Linjuan","email":"ljxiash@cn.ibm.com","username":"xialinjuan"},"change_message_id":"6833c4dadc9109d1d591d25b71227ed6202818dd","unresolved":false,"context_lines":[{"line_number":71,"context_line":"  n : notification"},{"line_number":72,"context_line":""},{"line_number":73,"context_line":"  The sample will have the port details[4] as resource metadata:​"},{"line_number":74,"context_line":"  Metadata     Source                  Parameter\t Style\t  Type"},{"line_number":75,"context_line":"  port         /v2.0/ports/​{port_id}    port\t     plain\t  xsd:dict"},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"* API we need during polling:"}],"source_content_type":"text/x-rst","patch_set":5,"id":"3a57f1b5_3386f913","line":74,"in_reply_to":"3a57f1b5_78c0d0e0","updated":"2016-02-11 16:05:25.000000000","message":"Done","commit_id":"585900f83a5807979ed59ea955f0572192f920b1"},{"author":{"_account_id":11682,"name":"Ryan Moats","email":"rmoats@us.ibm.com","username":"regXboi"},"change_message_id":"861f55a9c880d1ec02613935588a35dfa7bdc00d","unresolved":false,"context_lines":[{"line_number":72,"context_line":""},{"line_number":73,"context_line":"  The sample will have the port details[4] as resource metadata:​"},{"line_number":74,"context_line":"  Metadata     Source                  Parameter\t Style\t  Type"},{"line_number":75,"context_line":"  port         /v2.0/ports/​{port_id}    port\t     plain\t  xsd:dict"},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"* API we need during polling:"},{"line_number":78,"context_line":"  /v2.0/ports           Lists ports."}],"source_content_type":"text/x-rst","patch_set":5,"id":"3a57f1b5_18b75c87","line":75,"updated":"2016-02-11 15:56:54.000000000","message":"ditto L74 comment","commit_id":"585900f83a5807979ed59ea955f0572192f920b1"},{"author":{"_account_id":18137,"name":"Xia Linjuan","email":"ljxiash@cn.ibm.com","username":"xialinjuan"},"change_message_id":"6833c4dadc9109d1d591d25b71227ed6202818dd","unresolved":false,"context_lines":[{"line_number":72,"context_line":""},{"line_number":73,"context_line":"  The sample will have the port details[4] as resource metadata:​"},{"line_number":74,"context_line":"  Metadata     Source                  Parameter\t Style\t  Type"},{"line_number":75,"context_line":"  port         /v2.0/ports/​{port_id}    port\t     plain\t  xsd:dict"},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"* API we need during polling:"},{"line_number":78,"context_line":"  /v2.0/ports           Lists ports."}],"source_content_type":"text/x-rst","patch_set":5,"id":"3a57f1b5_f378612d","line":75,"in_reply_to":"3a57f1b5_18b75c87","updated":"2016-02-11 16:05:25.000000000","message":"Thanks for your review. Done. :)","commit_id":"585900f83a5807979ed59ea955f0572192f920b1"},{"author":{"_account_id":9526,"name":"Zi Lian Ji","email":"jizilian@cn.ibm.com","username":"jizilian"},"change_message_id":"efcfd6d39beab96cc34cd73cf7345eb87e74fb9d","unresolved":false,"context_lines":[{"line_number":72,"context_line":""},{"line_number":73,"context_line":"  The sample will have the port details[4] as resource metadata:"},{"line_number":74,"context_line":"  Metadata     Source                   Parameter    Style    Type"},{"line_number":75,"context_line":"  port         /v2.0/ports/{port_id}    port         plain    xsd:dict"},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"* API we need during polling:"},{"line_number":78,"context_line":"  /v2.0/ports           Lists ports."}],"source_content_type":"text/x-rst","patch_set":7,"id":"dae33548_d62b4232","line":75,"updated":"2016-02-14 09:52:03.000000000","message":"Hi Linjuan\n\nPort is a object. Could you list the properties you want to add in the metadata?\n\nThanks","commit_id":"9c77028ee6756e76a40d312c557aa9c1da172140"}],"specs/mitaka/collect-neutron-sg-port-meters.rst":[{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"bfbc8f92c8a94138e490f93f23570cf9980c892d","unresolved":false,"context_lines":[{"line_number":43,"context_line":"  We can get the drop/send/receive bytes/pkts metrics from"},{"line_number":44,"context_line":"  \"neutron-openvswi-sg-chain\" with iptables. So first we need to make sure the"},{"line_number":45,"context_line":"  security group is enabled. It can be confirmed by the flag of"},{"line_number":46,"context_line":"  \"port_security_enabled\" or the length of security groups field in port"},{"line_number":47,"context_line":"  details. If disabled, we don’t poll the metrics of this port."},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"* We choose to use polling agent to get those metrics. As Neutron has applied"}],"source_content_type":"text/x-rst","patch_set":9,"id":"dae33548_c79a8913","line":46,"range":{"start_line":46,"start_character":2,"end_line":46,"end_character":25},"updated":"2016-02-18 15:50:42.000000000","message":"it\u0027s not quite about security groups, please see [1], inspecting port details seems the only way to ensure security groups on port\n\n[1] https://specs.openstack.org/openstack/neutron-specs/specs/kilo/ml2-ovs-portsecurity.html","commit_id":"8a1efee7551afeb79e5aa4614dceabc876f12f83"},{"author":{"_account_id":18137,"name":"Xia Linjuan","email":"ljxiash@cn.ibm.com","username":"xialinjuan"},"change_message_id":"91a30a31f8becd101c02a4ed50f92cfe737e1b96","unresolved":false,"context_lines":[{"line_number":43,"context_line":"  We can get the drop/send/receive bytes/pkts metrics from"},{"line_number":44,"context_line":"  \"neutron-openvswi-sg-chain\" with iptables. So first we need to make sure the"},{"line_number":45,"context_line":"  security group is enabled. It can be confirmed by the flag of"},{"line_number":46,"context_line":"  \"port_security_enabled\" or the length of security groups field in port"},{"line_number":47,"context_line":"  details. If disabled, we don’t poll the metrics of this port."},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"* We choose to use polling agent to get those metrics. As Neutron has applied"}],"source_content_type":"text/x-rst","patch_set":9,"id":"dae33548_961ffab6","line":46,"range":{"start_line":46,"start_character":2,"end_line":46,"end_character":25},"in_reply_to":"dae33548_c79a8913","updated":"2016-02-19 05:21:51.000000000","message":"Hi, Oleg, thank you for your review. Yes, you are right, I think we can use the second way to ensure security groups on port.","commit_id":"8a1efee7551afeb79e5aa4614dceabc876f12f83"},{"author":{"_account_id":5948,"name":"Oleg Bondarev","email":"obondarev@mirantis.com","username":"obondarev"},"change_message_id":"bfbc8f92c8a94138e490f93f23570cf9980c892d","unresolved":false,"context_lines":[{"line_number":87,"context_line":"* API we need during polling:"},{"line_number":88,"context_line":"  /v2.0/ports           Lists ports."},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"  We can use neutron client to get all the ports, then use hostname of"},{"line_number":91,"context_line":"  the node to filter out the related ports. In Ceilometer there is one"},{"line_number":92,"context_line":"  configuration of \"host\", it uses socket.gethostname() to get the hostname"},{"line_number":93,"context_line":"  by default. We get this configuration to get the ports on the host."},{"line_number":94,"context_line":""}],"source_content_type":"text/x-rst","patch_set":9,"id":"dae33548_0714714a","line":91,"range":{"start_line":90,"start_character":55,"end_line":91,"end_character":42},"updated":"2016-02-18 15:50:42.000000000","message":"may olso filter by device owner to exclude service ports (router, dhcp, etc)","commit_id":"8a1efee7551afeb79e5aa4614dceabc876f12f83"},{"author":{"_account_id":18137,"name":"Xia Linjuan","email":"ljxiash@cn.ibm.com","username":"xialinjuan"},"change_message_id":"91a30a31f8becd101c02a4ed50f92cfe737e1b96","unresolved":false,"context_lines":[{"line_number":87,"context_line":"* API we need during polling:"},{"line_number":88,"context_line":"  /v2.0/ports           Lists ports."},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"  We can use neutron client to get all the ports, then use hostname of"},{"line_number":91,"context_line":"  the node to filter out the related ports. In Ceilometer there is one"},{"line_number":92,"context_line":"  configuration of \"host\", it uses socket.gethostname() to get the hostname"},{"line_number":93,"context_line":"  by default. We get this configuration to get the ports on the host."},{"line_number":94,"context_line":""}],"source_content_type":"text/x-rst","patch_set":9,"id":"dae33548_206cdf07","line":91,"range":{"start_line":90,"start_character":55,"end_line":91,"end_character":42},"in_reply_to":"dae33548_0714714a","updated":"2016-02-19 05:21:51.000000000","message":"Yes, I will add this into spec.","commit_id":"8a1efee7551afeb79e5aa4614dceabc876f12f83"},{"author":{"_account_id":11682,"name":"Ryan Moats","email":"rmoats@us.ibm.com","username":"regXboi"},"change_message_id":"83a7bea31ecbb61b5e6c567bbcd70eb3b76d7c55","unresolved":false,"context_lines":[{"line_number":5,"context_line":" http://creativecommons.org/licenses/by/3.0/legalcode"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":8,"context_line":"Collect neutron security group meters for instance ports"},{"line_number":9,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"https://blueprints.launchpad.net/ceilometer/+spec/support-to-collect-neutron-port-meters"}],"source_content_type":"text/x-rst","patch_set":10,"id":"bae84128_bf8637b7","line":8,"updated":"2016-02-19 18:14:49.000000000","message":"nit: Capitalize Neutron here and on Ls 33, 42, 156, 157","commit_id":"9e14e43dafe775ccdee81aa70d251fc91bd421d8"},{"author":{"_account_id":18137,"name":"Xia Linjuan","email":"ljxiash@cn.ibm.com","username":"xialinjuan"},"change_message_id":"9f65f63eb1e0068e5069ac320793c5539ea5147d","unresolved":false,"context_lines":[{"line_number":5,"context_line":" http://creativecommons.org/licenses/by/3.0/legalcode"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":8,"context_line":"Collect neutron security group meters for instance ports"},{"line_number":9,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"https://blueprints.launchpad.net/ceilometer/+spec/support-to-collect-neutron-port-meters"}],"source_content_type":"text/x-rst","patch_set":10,"id":"bae84128_10b1e2e1","line":8,"in_reply_to":"bae84128_bf8637b7","updated":"2016-02-21 18:15:24.000000000","message":"Done","commit_id":"9e14e43dafe775ccdee81aa70d251fc91bd421d8"},{"author":{"_account_id":11682,"name":"Ryan Moats","email":"rmoats@us.ibm.com","username":"regXboi"},"change_message_id":"83a7bea31ecbb61b5e6c567bbcd70eb3b76d7c55","unresolved":false,"context_lines":[{"line_number":10,"context_line":""},{"line_number":11,"context_line":"https://blueprints.launchpad.net/ceilometer/+spec/support-to-collect-neutron-port-meters"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Neutron has applied security group on instance ports[1]. Access to instances"},{"line_number":14,"context_line":"is controlled by neutron security group. Network traffic will be dropped by"},{"line_number":15,"context_line":"a server if no security group rule explicitly allows it. Collecting the"},{"line_number":16,"context_line":"drop pkts/bytes and receive/send pkts/bytes is very important for VM"}],"source_content_type":"text/x-rst","patch_set":10,"id":"bae84128_7fd66fc6","line":13,"updated":"2016-02-19 18:14:49.000000000","message":"nit: First two sentences read better if re-written:\n\nAccess to instances is controlled by Neutron security groups applied to instance ports[1].","commit_id":"9e14e43dafe775ccdee81aa70d251fc91bd421d8"},{"author":{"_account_id":18137,"name":"Xia Linjuan","email":"ljxiash@cn.ibm.com","username":"xialinjuan"},"change_message_id":"9f65f63eb1e0068e5069ac320793c5539ea5147d","unresolved":false,"context_lines":[{"line_number":10,"context_line":""},{"line_number":11,"context_line":"https://blueprints.launchpad.net/ceilometer/+spec/support-to-collect-neutron-port-meters"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Neutron has applied security group on instance ports[1]. Access to instances"},{"line_number":14,"context_line":"is controlled by neutron security group. Network traffic will be dropped by"},{"line_number":15,"context_line":"a server if no security group rule explicitly allows it. Collecting the"},{"line_number":16,"context_line":"drop pkts/bytes and receive/send pkts/bytes is very important for VM"}],"source_content_type":"text/x-rst","patch_set":10,"id":"bae84128_f0b39ee7","line":13,"in_reply_to":"bae84128_7fd66fc6","updated":"2016-02-21 18:15:24.000000000","message":"Done","commit_id":"9e14e43dafe775ccdee81aa70d251fc91bd421d8"},{"author":{"_account_id":11682,"name":"Ryan Moats","email":"rmoats@us.ibm.com","username":"regXboi"},"change_message_id":"83a7bea31ecbb61b5e6c567bbcd70eb3b76d7c55","unresolved":false,"context_lines":[{"line_number":14,"context_line":"is controlled by neutron security group. Network traffic will be dropped by"},{"line_number":15,"context_line":"a server if no security group rule explicitly allows it. Collecting the"},{"line_number":16,"context_line":"drop pkts/bytes and receive/send pkts/bytes is very important for VM"},{"line_number":17,"context_line":"security. It can be used for security analysis, and also can be used"},{"line_number":18,"context_line":"for bandwidth analysis, load balance analysis and so on."},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"The goal of this blueprint is to collect the drop/accept/send meters of"}],"source_content_type":"text/x-rst","patch_set":10,"id":"bae84128_5f63ab1a","line":17,"updated":"2016-02-19 18:14:49.000000000","message":"nits: s/It/They/ and s/and also can be used for//","commit_id":"9e14e43dafe775ccdee81aa70d251fc91bd421d8"},{"author":{"_account_id":18137,"name":"Xia Linjuan","email":"ljxiash@cn.ibm.com","username":"xialinjuan"},"change_message_id":"9f65f63eb1e0068e5069ac320793c5539ea5147d","unresolved":false,"context_lines":[{"line_number":14,"context_line":"is controlled by neutron security group. Network traffic will be dropped by"},{"line_number":15,"context_line":"a server if no security group rule explicitly allows it. Collecting the"},{"line_number":16,"context_line":"drop pkts/bytes and receive/send pkts/bytes is very important for VM"},{"line_number":17,"context_line":"security. It can be used for security analysis, and also can be used"},{"line_number":18,"context_line":"for bandwidth analysis, load balance analysis and so on."},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"The goal of this blueprint is to collect the drop/accept/send meters of"}],"source_content_type":"text/x-rst","patch_set":10,"id":"bae84128_30c6a649","line":17,"in_reply_to":"bae84128_5f63ab1a","updated":"2016-02-21 18:15:24.000000000","message":"Done","commit_id":"9e14e43dafe775ccdee81aa70d251fc91bd421d8"},{"author":{"_account_id":11682,"name":"Ryan Moats","email":"rmoats@us.ibm.com","username":"regXboi"},"change_message_id":"83a7bea31ecbb61b5e6c567bbcd70eb3b76d7c55","unresolved":false,"context_lines":[{"line_number":27,"context_line":"traffic to/from instance. Currently the network metrics of instance collected"},{"line_number":28,"context_line":"by hypervisor actually have been filtered by security group and only have"},{"line_number":29,"context_line":"receive/send counters. The drop counter would help us know better network"},{"line_number":30,"context_line":"condition of an instance. And associated with send/receive counters, we can"},{"line_number":31,"context_line":"use them for analysis."},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"The neutron security group is enabled by default and default rules will be"}],"source_content_type":"text/x-rst","patch_set":10,"id":"bae84128_ff7effac","line":30,"updated":"2016-02-19 18:14:49.000000000","message":"s/. And associated/ and when combined/","commit_id":"9e14e43dafe775ccdee81aa70d251fc91bd421d8"},{"author":{"_account_id":18137,"name":"Xia Linjuan","email":"ljxiash@cn.ibm.com","username":"xialinjuan"},"change_message_id":"9f65f63eb1e0068e5069ac320793c5539ea5147d","unresolved":false,"context_lines":[{"line_number":27,"context_line":"traffic to/from instance. Currently the network metrics of instance collected"},{"line_number":28,"context_line":"by hypervisor actually have been filtered by security group and only have"},{"line_number":29,"context_line":"receive/send counters. The drop counter would help us know better network"},{"line_number":30,"context_line":"condition of an instance. And associated with send/receive counters, we can"},{"line_number":31,"context_line":"use them for analysis."},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"The neutron security group is enabled by default and default rules will be"}],"source_content_type":"text/x-rst","patch_set":10,"id":"bae84128_50cb6a53","line":30,"in_reply_to":"bae84128_ff7effac","updated":"2016-02-21 18:15:24.000000000","message":"Done","commit_id":"9e14e43dafe775ccdee81aa70d251fc91bd421d8"},{"author":{"_account_id":11682,"name":"Ryan Moats","email":"rmoats@us.ibm.com","username":"regXboi"},"change_message_id":"83a7bea31ecbb61b5e6c567bbcd70eb3b76d7c55","unresolved":false,"context_lines":[{"line_number":48,"context_line":""},{"line_number":49,"context_line":"* We choose to use polling agent to get those metrics. As Neutron has applied"},{"line_number":50,"context_line":"  security group on every instance port by default, it\u0027s somehow become a"},{"line_number":51,"context_line":"  service of network. So a new namespace will be created. Define it as"},{"line_number":52,"context_line":"  “network.service.sg.port”, each meters below will run under this namespace"},{"line_number":53,"context_line":"  as a pollster. we will have the pollsters under /ceilometer/network/servies/."},{"line_number":54,"context_line":""}],"source_content_type":"text/x-rst","patch_set":10,"id":"bae84128_bf091734","line":51,"updated":"2016-02-19 18:14:49.000000000","message":"a new namespace where?","commit_id":"9e14e43dafe775ccdee81aa70d251fc91bd421d8"},{"author":{"_account_id":18137,"name":"Xia Linjuan","email":"ljxiash@cn.ibm.com","username":"xialinjuan"},"change_message_id":"9f65f63eb1e0068e5069ac320793c5539ea5147d","unresolved":false,"context_lines":[{"line_number":48,"context_line":""},{"line_number":49,"context_line":"* We choose to use polling agent to get those metrics. As Neutron has applied"},{"line_number":50,"context_line":"  security group on every instance port by default, it\u0027s somehow become a"},{"line_number":51,"context_line":"  service of network. So a new namespace will be created. Define it as"},{"line_number":52,"context_line":"  “network.service.sg.port”, each meters below will run under this namespace"},{"line_number":53,"context_line":"  as a pollster. we will have the pollsters under /ceilometer/network/servies/."},{"line_number":54,"context_line":""}],"source_content_type":"text/x-rst","patch_set":10,"id":"bae84128_d0ddba15","line":51,"in_reply_to":"bae84128_bf091734","updated":"2016-02-21 18:15:24.000000000","message":"We can configure it in setup.cfg. I will write it in detail in the next changeset. Thanks for your review!","commit_id":"9e14e43dafe775ccdee81aa70d251fc91bd421d8"},{"author":{"_account_id":11682,"name":"Ryan Moats","email":"rmoats@us.ibm.com","username":"regXboi"},"change_message_id":"83a7bea31ecbb61b5e6c567bbcd70eb3b76d7c55","unresolved":false,"context_lines":[{"line_number":90,"context_line":"  For the condition that need to run network services in VM instances"},{"line_number":91,"context_line":"  (e.g. router service in VM or firewall service in VM), it is required by"},{"line_number":92,"context_line":"  some services for VMs to be able to receive/send all packets without any"},{"line_number":93,"context_line":"  kind of firewall, security group, anti spoofing on port. We can use this"},{"line_number":94,"context_line":"  API and set device_owner as compute:Nova to get ports which are not used"},{"line_number":95,"context_line":"  as service ports, then use hostname of the node to filter out the related"},{"line_number":96,"context_line":"  ports. In Ceilometer there is one configuration of \"host\", it uses"}],"source_content_type":"text/x-rst","patch_set":10,"id":"bae84128_ff039f0d","line":93,"updated":"2016-02-19 18:14:49.000000000","message":"nit: s/, anti/, or anti/","commit_id":"9e14e43dafe775ccdee81aa70d251fc91bd421d8"},{"author":{"_account_id":18137,"name":"Xia Linjuan","email":"ljxiash@cn.ibm.com","username":"xialinjuan"},"change_message_id":"9f65f63eb1e0068e5069ac320793c5539ea5147d","unresolved":false,"context_lines":[{"line_number":90,"context_line":"  For the condition that need to run network services in VM instances"},{"line_number":91,"context_line":"  (e.g. router service in VM or firewall service in VM), it is required by"},{"line_number":92,"context_line":"  some services for VMs to be able to receive/send all packets without any"},{"line_number":93,"context_line":"  kind of firewall, security group, anti spoofing on port. We can use this"},{"line_number":94,"context_line":"  API and set device_owner as compute:Nova to get ports which are not used"},{"line_number":95,"context_line":"  as service ports, then use hostname of the node to filter out the related"},{"line_number":96,"context_line":"  ports. In Ceilometer there is one configuration of \"host\", it uses"}],"source_content_type":"text/x-rst","patch_set":10,"id":"bae84128_90c5f23d","line":93,"in_reply_to":"bae84128_ff039f0d","updated":"2016-02-21 18:15:24.000000000","message":"Done","commit_id":"9e14e43dafe775ccdee81aa70d251fc91bd421d8"}]}
