)]}'
{"etc/neutron/plugins/ml2/ml2_conf.ini":[{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"6477756b09e7550ecf31253f52653a758e044171","unresolved":false,"context_lines":[{"line_number":64,"context_line":""},{"line_number":65,"context_line":"[mech_driver_agent]"},{"line_number":66,"context_line":"# (ListOpt) Comma-separated list of:"},{"line_number":67,"context_line":"# mech_driver_rpc\u003d\u003cmechdriver name\u003e:\u003ctopic name on mechanism dirve side\u003e:\u003ctopic"},{"line_number":68,"context_line":"# name on ovs_neutron_agent side\u003e. When it is configured, mechanism driver and"},{"line_number":69,"context_line":"# ovs_neturon_agent can use RPC call to exchange information."},{"line_number":70,"context_line":"#"}],"source_content_type":"text/x-properties","patch_set":5,"id":"baada198_3e4e1470","line":67,"updated":"2014-07-02 16:58:18.000000000","message":"nit: dirve -\u003e drive","commit_id":"4bf5fd49cfa55f7c9d8b65ae5fed0aec01816ebc"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"437c937556f2a9d02b80dd68d623f6aece4b8c66","unresolved":false,"context_lines":[{"line_number":64,"context_line":""},{"line_number":65,"context_line":"[mech_driver_agent]"},{"line_number":66,"context_line":"# (ListOpt) Comma-separated list of:"},{"line_number":67,"context_line":"# mech_driver_rpc\u003d\u003cmechdriver name\u003e:\u003ctopic name on mechanism dirve side\u003e:\u003ctopic"},{"line_number":68,"context_line":"# name on ovs_neutron_agent side\u003e. When it is configured, mechanism driver and"},{"line_number":69,"context_line":"# ovs_neturon_agent can use RPC call to exchange information."},{"line_number":70,"context_line":"#"}],"source_content_type":"text/x-properties","patch_set":5,"id":"baada198_d86274ac","line":67,"in_reply_to":"baada198_3e4e1470","updated":"2014-07-09 15:38:22.000000000","message":"Done","commit_id":"4bf5fd49cfa55f7c9d8b65ae5fed0aec01816ebc"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"6477756b09e7550ecf31253f52653a758e044171","unresolved":false,"context_lines":[{"line_number":65,"context_line":"[mech_driver_agent]"},{"line_number":66,"context_line":"# (ListOpt) Comma-separated list of:"},{"line_number":67,"context_line":"# mech_driver_rpc\u003d\u003cmechdriver name\u003e:\u003ctopic name on mechanism dirve side\u003e:\u003ctopic"},{"line_number":68,"context_line":"# name on ovs_neutron_agent side\u003e. When it is configured, mechanism driver and"},{"line_number":69,"context_line":"# ovs_neturon_agent can use RPC call to exchange information."},{"line_number":70,"context_line":"#"},{"line_number":71,"context_line":"# Example:"}],"source_content_type":"text/x-properties","patch_set":5,"id":"baada198_de46f820","line":68,"updated":"2014-07-02 16:58:18.000000000","message":"Please put the explanation at line 66, as it is done for example for the mechanism_drivers at line 15","commit_id":"4bf5fd49cfa55f7c9d8b65ae5fed0aec01816ebc"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"437c937556f2a9d02b80dd68d623f6aece4b8c66","unresolved":false,"context_lines":[{"line_number":65,"context_line":"[mech_driver_agent]"},{"line_number":66,"context_line":"# (ListOpt) Comma-separated list of:"},{"line_number":67,"context_line":"# mech_driver_rpc\u003d\u003cmechdriver name\u003e:\u003ctopic name on mechanism dirve side\u003e:\u003ctopic"},{"line_number":68,"context_line":"# name on ovs_neutron_agent side\u003e. When it is configured, mechanism driver and"},{"line_number":69,"context_line":"# ovs_neturon_agent can use RPC call to exchange information."},{"line_number":70,"context_line":"#"},{"line_number":71,"context_line":"# Example:"}],"source_content_type":"text/x-properties","patch_set":5,"id":"baada198_2b4cfc41","line":68,"in_reply_to":"baada198_de46f820","updated":"2014-07-09 15:38:22.000000000","message":"Done","commit_id":"4bf5fd49cfa55f7c9d8b65ae5fed0aec01816ebc"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"6477756b09e7550ecf31253f52653a758e044171","unresolved":false,"context_lines":[{"line_number":66,"context_line":"# (ListOpt) Comma-separated list of:"},{"line_number":67,"context_line":"# mech_driver_rpc\u003d\u003cmechdriver name\u003e:\u003ctopic name on mechanism dirve side\u003e:\u003ctopic"},{"line_number":68,"context_line":"# name on ovs_neutron_agent side\u003e. When it is configured, mechanism driver and"},{"line_number":69,"context_line":"# ovs_neturon_agent can use RPC call to exchange information."},{"line_number":70,"context_line":"#"},{"line_number":71,"context_line":"# Example:"},{"line_number":72,"context_line":"# mech_driver_rpc \u003d md:p_topic:a_topic[,md1:p_topic1:a_topic1,...]"}],"source_content_type":"text/x-properties","patch_set":5,"id":"baada198_3eea940f","line":69,"updated":"2014-07-02 16:58:18.000000000","message":"nit: ovs_neturon_agent -\u003e ovs_neutron_agent","commit_id":"4bf5fd49cfa55f7c9d8b65ae5fed0aec01816ebc"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"437c937556f2a9d02b80dd68d623f6aece4b8c66","unresolved":false,"context_lines":[{"line_number":66,"context_line":"# (ListOpt) Comma-separated list of:"},{"line_number":67,"context_line":"# mech_driver_rpc\u003d\u003cmechdriver name\u003e:\u003ctopic name on mechanism dirve side\u003e:\u003ctopic"},{"line_number":68,"context_line":"# name on ovs_neutron_agent side\u003e. When it is configured, mechanism driver and"},{"line_number":69,"context_line":"# ovs_neturon_agent can use RPC call to exchange information."},{"line_number":70,"context_line":"#"},{"line_number":71,"context_line":"# Example:"},{"line_number":72,"context_line":"# mech_driver_rpc \u003d md:p_topic:a_topic[,md1:p_topic1:a_topic1,...]"}],"source_content_type":"text/x-properties","patch_set":5,"id":"baada198_98ed5cf2","line":69,"in_reply_to":"baada198_3eea940f","updated":"2014-07-09 15:38:22.000000000","message":"Done","commit_id":"4bf5fd49cfa55f7c9d8b65ae5fed0aec01816ebc"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"6477756b09e7550ecf31253f52653a758e044171","unresolved":false,"context_lines":[{"line_number":69,"context_line":"# ovs_neturon_agent can use RPC call to exchange information."},{"line_number":70,"context_line":"#"},{"line_number":71,"context_line":"# Example:"},{"line_number":72,"context_line":"# mech_driver_rpc \u003d md:p_topic:a_topic[,md1:p_topic1:a_topic1,...]"},{"line_number":73,"context_line":"# Where:"},{"line_number":74,"context_line":"# md: name of the mechanism driver."},{"line_number":75,"context_line":"# p_topic : listening consumer on plugin side."}],"source_content_type":"text/x-properties","patch_set":5,"id":"baada198_9eb800e7","line":72,"updated":"2014-07-02 16:58:18.000000000","message":"Can you add a concrete example?\nAlso the square brackets are confusing. The list should be comma-separated, right?","commit_id":"4bf5fd49cfa55f7c9d8b65ae5fed0aec01816ebc"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"437c937556f2a9d02b80dd68d623f6aece4b8c66","unresolved":false,"context_lines":[{"line_number":69,"context_line":"# ovs_neturon_agent can use RPC call to exchange information."},{"line_number":70,"context_line":"#"},{"line_number":71,"context_line":"# Example:"},{"line_number":72,"context_line":"# mech_driver_rpc \u003d md:p_topic:a_topic[,md1:p_topic1:a_topic1,...]"},{"line_number":73,"context_line":"# Where:"},{"line_number":74,"context_line":"# md: name of the mechanism driver."},{"line_number":75,"context_line":"# p_topic : listening consumer on plugin side."}],"source_content_type":"text/x-properties","patch_set":5,"id":"baada198_cb9f00b3","line":72,"in_reply_to":"baada198_9eb800e7","updated":"2014-07-09 15:38:22.000000000","message":"Sure, will add example and remove the square brackets. And yes, it is comm-separated list.","commit_id":"4bf5fd49cfa55f7c9d8b65ae5fed0aec01816ebc"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"00df084aa08409588580cfcb857d7afe771bb38e","unresolved":false,"context_lines":[{"line_number":20,"context_line":"# Example: mechanism_drivers \u003d cisco,logger"},{"line_number":21,"context_line":"# Example: mechanism_drivers \u003d openvswitch,brocade"},{"line_number":22,"context_line":"# Example: mechanism_drivers \u003d linuxbridge,brocade"},{"line_number":23,"context_line":"# Example: mechanism_drivers \u003d openvswitch,cisco_dfa"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"[ml2_type_flat]"},{"line_number":26,"context_line":"# (ListOpt) List of physical_network names with which flat networks"}],"source_content_type":"text/x-properties","patch_set":19,"id":"1abeadc6_a79f8db3","line":23,"updated":"2014-08-19 10:29:15.000000000","message":"a bit unneeded... however, that does not bother me","commit_id":"9948525d9fec9e0d067b65fe8bcb9da114122d19"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"6e162f393cc6cf523f14b619fdaa0ad31f70da7e","unresolved":false,"context_lines":[{"line_number":20,"context_line":"# Example: mechanism_drivers \u003d cisco,logger"},{"line_number":21,"context_line":"# Example: mechanism_drivers \u003d openvswitch,brocade"},{"line_number":22,"context_line":"# Example: mechanism_drivers \u003d linuxbridge,brocade"},{"line_number":23,"context_line":"# Example: mechanism_drivers \u003d openvswitch,cisco_dfa"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"[ml2_type_flat]"},{"line_number":26,"context_line":"# (ListOpt) List of physical_network names with which flat networks"}],"source_content_type":"text/x-properties","patch_set":19,"id":"1abeadc6_8202726d","line":23,"in_reply_to":"1abeadc6_a79f8db3","updated":"2014-08-19 19:33:09.000000000","message":"Agreed, but followed the other examples.","commit_id":"9948525d9fec9e0d067b65fe8bcb9da114122d19"}],"etc/neutron/plugins/ml2/ml2_conf_cisco.ini":[{"author":{"_account_id":8645,"name":"Trinath Somanchi","email":"trinath.somanchi@freescale.com","username":"trinaths"},"change_message_id":"f006f0c8e9218a49ac4d0b61801852f6b17a603f","unresolved":false,"context_lines":[{"line_number":95,"context_line":""},{"line_number":96,"context_line":"[ml2_cisco_dfa]"},{"line_number":97,"context_line":"# (StrOpt) IP address of Cisco DCNM (Data Center Network Manager)."},{"line_number":98,"context_line":"# dcnm_ip\u003d1.1.1.1"},{"line_number":99,"context_line":"#"},{"line_number":100,"context_line":"# (StrOpt) User login name for DCNM."},{"line_number":101,"context_line":"# dcnm_user\u003dusername"}],"source_content_type":"text/x-properties","patch_set":23,"id":"1abeadc6_d89b9b70","line":98,"updated":"2014-08-26 06:59:55.000000000","message":"space between key/value pairs,\n\ndcnm_ip \u003d 1.1.1.1","commit_id":"b11b889913806b379ae32190c3be5fee387491f1"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"6e7f4b648d57b26643d971003d3aadb1c65ee56e","unresolved":false,"context_lines":[{"line_number":95,"context_line":""},{"line_number":96,"context_line":"[ml2_cisco_dfa]"},{"line_number":97,"context_line":"# (StrOpt) IP address of Cisco DCNM (Data Center Network Manager)."},{"line_number":98,"context_line":"# dcnm_ip\u003d1.1.1.1"},{"line_number":99,"context_line":"#"},{"line_number":100,"context_line":"# (StrOpt) User login name for DCNM."},{"line_number":101,"context_line":"# dcnm_user\u003dusername"}],"source_content_type":"text/x-properties","patch_set":23,"id":"1abeadc6_07ce8183","line":98,"in_reply_to":"1abeadc6_d89b9b70","updated":"2014-08-26 15:36:55.000000000","message":"Done","commit_id":"b11b889913806b379ae32190c3be5fee387491f1"}],"neutron/db/migration/alembic_migrations/versions/469426cd2173_cisco_dfa_mech_driver.py":[{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"ed9ebce9e04ff794b3c8281df42d496f236343b1","unresolved":false,"context_lines":[{"line_number":29,"context_line":""},{"line_number":30,"context_line":"migration_for_plugins \u003d ["},{"line_number":31,"context_line":"    \u0027neutron.plugins.ml2.plugin.Ml2Plugin\u0027"},{"line_number":32,"context_line":"]"},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"from alembic import op"},{"line_number":35,"context_line":"import sqlalchemy as sa"}],"source_content_type":"text/x-python","patch_set":7,"id":"baada198_ac3c62e2","line":32,"updated":"2014-07-21 08:48:04.000000000","message":"migration should be unconditional","commit_id":"1772b2332553c3823f29b89cb8390ac795ea7d16"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"3b2e54f6f325779e2f4346d0cd09e8442835bacf","unresolved":false,"context_lines":[{"line_number":29,"context_line":""},{"line_number":30,"context_line":"migration_for_plugins \u003d ["},{"line_number":31,"context_line":"    \u0027neutron.plugins.ml2.plugin.Ml2Plugin\u0027"},{"line_number":32,"context_line":"]"},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"from alembic import op"},{"line_number":35,"context_line":"import sqlalchemy as sa"}],"source_content_type":"text/x-python","patch_set":7,"id":"baada198_a1ca996b","line":32,"in_reply_to":"baada198_ac3c62e2","updated":"2014-07-22 00:33:27.000000000","message":"Do you mean using the following ?\n\nmigration_for_plugins \u003d [\t\n       \u0027*\u0027\n]\n\nWill add and update the head.py","commit_id":"1772b2332553c3823f29b89cb8390ac795ea7d16"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"ed9ebce9e04ff794b3c8281df42d496f236343b1","unresolved":false,"context_lines":[{"line_number":52,"context_line":"    op.create_table("},{"line_number":53,"context_line":"        \u0027cisco_dfa_config_profile_bindings\u0027,"},{"line_number":54,"context_line":"        sa.Column(\u0027network_id\u0027, sa.String(36)),"},{"line_number":55,"context_line":"        sa.Column(\u0027cfg_profile_id\u0027, sa.String(255)),"},{"line_number":56,"context_line":"        sa.PrimaryKeyConstraint(\u0027network_id\u0027, \u0027cfg_profile_id\u0027))"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"    op.create_table("}],"source_content_type":"text/x-python","patch_set":7,"id":"baada198_071c47c1","line":55,"updated":"2014-07-21 08:48:04.000000000","message":"In model this column is set to sa.String(36)","commit_id":"1772b2332553c3823f29b89cb8390ac795ea7d16"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"3b2e54f6f325779e2f4346d0cd09e8442835bacf","unresolved":false,"context_lines":[{"line_number":52,"context_line":"    op.create_table("},{"line_number":53,"context_line":"        \u0027cisco_dfa_config_profile_bindings\u0027,"},{"line_number":54,"context_line":"        sa.Column(\u0027network_id\u0027, sa.String(36)),"},{"line_number":55,"context_line":"        sa.Column(\u0027cfg_profile_id\u0027, sa.String(255)),"},{"line_number":56,"context_line":"        sa.PrimaryKeyConstraint(\u0027network_id\u0027, \u0027cfg_profile_id\u0027))"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"    op.create_table("}],"source_content_type":"text/x-python","patch_set":7,"id":"baada198_e12c9195","line":55,"in_reply_to":"baada198_071c47c1","updated":"2014-07-22 00:33:27.000000000","message":"Done","commit_id":"1772b2332553c3823f29b89cb8390ac795ea7d16"},{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"b2e4d8e7f7c3f2f7036a00b576dde4d5eb19bff3","unresolved":false,"context_lines":[{"line_number":27,"context_line":""},{"line_number":28,"context_line":"migration_for_plugins \u003d ["},{"line_number":29,"context_line":"    \u0027*\u0027"},{"line_number":30,"context_line":"]"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"from alembic import op"},{"line_number":33,"context_line":"import sqlalchemy as sa"}],"source_content_type":"text/x-python","patch_set":18,"id":"1abeadc6_a62f9da0","line":30,"updated":"2014-08-19 03:56:15.000000000","message":"Remove this list.","commit_id":"6f46a2f4ca9f2351b56718a9b24ced6b7620d082"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"f83664885f3f5042855fe1f392983472eb968c0f","unresolved":false,"context_lines":[{"line_number":27,"context_line":""},{"line_number":28,"context_line":"migration_for_plugins \u003d ["},{"line_number":29,"context_line":"    \u0027*\u0027"},{"line_number":30,"context_line":"]"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"from alembic import op"},{"line_number":33,"context_line":"import sqlalchemy as sa"}],"source_content_type":"text/x-python","patch_set":18,"id":"1abeadc6_613acfce","line":30,"in_reply_to":"1abeadc6_a62f9da0","updated":"2014-08-19 04:23:09.000000000","message":"Done","commit_id":"6f46a2f4ca9f2351b56718a9b24ced6b7620d082"},{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"b2e4d8e7f7c3f2f7036a00b576dde4d5eb19bff3","unresolved":false,"context_lines":[{"line_number":33,"context_line":"import sqlalchemy as sa"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"from neutron.db import migration"},{"line_number":37,"context_line":""},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"def upgrade(active_plugins\u003dNone, options\u003dNone):"}],"source_content_type":"text/x-python","patch_set":18,"id":"1abeadc6_c62c99ae","line":36,"updated":"2014-08-19 03:56:15.000000000","message":"Remove.","commit_id":"6f46a2f4ca9f2351b56718a9b24ced6b7620d082"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"f83664885f3f5042855fe1f392983472eb968c0f","unresolved":false,"context_lines":[{"line_number":33,"context_line":"import sqlalchemy as sa"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"from neutron.db import migration"},{"line_number":37,"context_line":""},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"def upgrade(active_plugins\u003dNone, options\u003dNone):"}],"source_content_type":"text/x-python","patch_set":18,"id":"1abeadc6_4174f398","line":36,"in_reply_to":"1abeadc6_c62c99ae","updated":"2014-08-19 04:23:09.000000000","message":"Done","commit_id":"6f46a2f4ca9f2351b56718a9b24ced6b7620d082"},{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"b2e4d8e7f7c3f2f7036a00b576dde4d5eb19bff3","unresolved":false,"context_lines":[{"line_number":38,"context_line":""},{"line_number":39,"context_line":"def upgrade(active_plugins\u003dNone, options\u003dNone):"},{"line_number":40,"context_line":"    if not migration.should_run(active_plugins, migration_for_plugins):"},{"line_number":41,"context_line":"        return"},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"    op.create_table("},{"line_number":44,"context_line":"        \u0027cisco_dfa_config_profiles\u0027,"}],"source_content_type":"text/x-python","patch_set":18,"id":"1abeadc6_e618b586","line":41,"updated":"2014-08-19 03:56:15.000000000","message":"Remove the above two lines.","commit_id":"6f46a2f4ca9f2351b56718a9b24ced6b7620d082"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"f83664885f3f5042855fe1f392983472eb968c0f","unresolved":false,"context_lines":[{"line_number":38,"context_line":""},{"line_number":39,"context_line":"def upgrade(active_plugins\u003dNone, options\u003dNone):"},{"line_number":40,"context_line":"    if not migration.should_run(active_plugins, migration_for_plugins):"},{"line_number":41,"context_line":"        return"},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"    op.create_table("},{"line_number":44,"context_line":"        \u0027cisco_dfa_config_profiles\u0027,"}],"source_content_type":"text/x-python","patch_set":18,"id":"1abeadc6_61680fbb","line":41,"in_reply_to":"1abeadc6_e618b586","updated":"2014-08-19 04:23:09.000000000","message":"Done","commit_id":"6f46a2f4ca9f2351b56718a9b24ced6b7620d082"},{"author":{"_account_id":6524,"name":"Henry Gessau","email":"HenryG@gessau.net","username":"gessau"},"change_message_id":"b2e4d8e7f7c3f2f7036a00b576dde4d5eb19bff3","unresolved":false,"context_lines":[{"line_number":64,"context_line":""},{"line_number":65,"context_line":"def downgrade(active_plugins\u003dNone, options\u003dNone):"},{"line_number":66,"context_line":"    if not migration.should_run(active_plugins, migration_for_plugins):"},{"line_number":67,"context_line":"        return"},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"    op.drop_table(\u0027cisco_dfa_config_profiles\u0027)"},{"line_number":70,"context_line":"    op.drop_table(\u0027cisco_dfa_config_profile_bindings\u0027)"}],"source_content_type":"text/x-python","patch_set":18,"id":"1abeadc6_061e9170","line":67,"updated":"2014-08-19 03:56:15.000000000","message":"Remove the above two lines.","commit_id":"6f46a2f4ca9f2351b56718a9b24ced6b7620d082"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"f83664885f3f5042855fe1f392983472eb968c0f","unresolved":false,"context_lines":[{"line_number":64,"context_line":""},{"line_number":65,"context_line":"def downgrade(active_plugins\u003dNone, options\u003dNone):"},{"line_number":66,"context_line":"    if not migration.should_run(active_plugins, migration_for_plugins):"},{"line_number":67,"context_line":"        return"},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"    op.drop_table(\u0027cisco_dfa_config_profiles\u0027)"},{"line_number":70,"context_line":"    op.drop_table(\u0027cisco_dfa_config_profile_bindings\u0027)"}],"source_content_type":"text/x-python","patch_set":18,"id":"1abeadc6_81652be3","line":67,"in_reply_to":"1abeadc6_061e9170","updated":"2014-08-19 04:23:09.000000000","message":"Done","commit_id":"6f46a2f4ca9f2351b56718a9b24ced6b7620d082"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"02be96eb7969215a0e065116d7ab2aa68d507558","unresolved":false,"context_lines":[{"line_number":53,"context_line":""},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"def downgrade(active_plugins\u003dNone, options\u003dNone):"},{"line_number":56,"context_line":"    op.drop_table(\u0027cisco_dfa_config_profiles\u0027)"},{"line_number":57,"context_line":"    op.drop_table(\u0027cisco_dfa_config_profile_bindings\u0027)"},{"line_number":58,"context_line":"    op.drop_table(\u0027cisco_dfa_project_cache\u0027)"}],"source_content_type":"text/x-python","patch_set":19,"id":"1abeadc6_5d192678","line":56,"updated":"2014-08-19 11:42:42.000000000","message":"should these be in reverse order of upgrade? convention?","commit_id":"9948525d9fec9e0d067b65fe8bcb9da114122d19"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"6e162f393cc6cf523f14b619fdaa0ad31f70da7e","unresolved":false,"context_lines":[{"line_number":53,"context_line":""},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"def downgrade(active_plugins\u003dNone, options\u003dNone):"},{"line_number":56,"context_line":"    op.drop_table(\u0027cisco_dfa_config_profiles\u0027)"},{"line_number":57,"context_line":"    op.drop_table(\u0027cisco_dfa_config_profile_bindings\u0027)"},{"line_number":58,"context_line":"    op.drop_table(\u0027cisco_dfa_project_cache\u0027)"}],"source_content_type":"text/x-python","patch_set":19,"id":"1abeadc6_22199e88","line":56,"in_reply_to":"1abeadc6_5d192678","updated":"2014-08-19 19:33:09.000000000","message":"Good catch. I\u0027ll rearrange the downgrade order.","commit_id":"9948525d9fec9e0d067b65fe8bcb9da114122d19"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"e42b89332ea0461d2ae9c982b5e771f3404a708e","unresolved":false,"context_lines":[{"line_number":26,"context_line":"down_revision \u003d \u0027aae5706a396\u0027"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"from alembic import op"},{"line_number":29,"context_line":"import sqlalchemy as sa"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"def upgrade(active_plugins\u003dNone, options\u003dNone):"}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_19667ded","line":29,"updated":"2014-08-28 18:53:56.000000000","message":"i think that this should only be done if this is the cisco plugin and not other plugins","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"5ce09020034ab1d260a593b372e6142cc5b952ee","unresolved":false,"context_lines":[{"line_number":26,"context_line":"down_revision \u003d \u0027aae5706a396\u0027"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"from alembic import op"},{"line_number":29,"context_line":"import sqlalchemy as sa"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"def upgrade(active_plugins\u003dNone, options\u003dNone):"}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_df37854b","line":29,"in_reply_to":"1abeadc6_19667ded","updated":"2014-08-28 19:57:50.000000000","message":"Not clear what you mean here. Are you saying using \u0027sa\u0027 module is not allowed here? It is being used in e.g. L34,35,...","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"3e973b569c560f8a67f33b7353e38eb007acee69","unresolved":false,"context_lines":[{"line_number":26,"context_line":"down_revision \u003d \u0027aae5706a396\u0027"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"from alembic import op"},{"line_number":29,"context_line":"import sqlalchemy as sa"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"def upgrade(active_plugins\u003dNone, options\u003dNone):"}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_9fdec4d8","line":29,"in_reply_to":"1abeadc6_77eaf6d8","updated":"2014-08-29 15:12:38.000000000","message":"Thanks Ann for the clarification","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"},{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"572217950345eb7098de5aee3f45ef924c4629ed","unresolved":false,"context_lines":[{"line_number":26,"context_line":"down_revision \u003d \u0027aae5706a396\u0027"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"from alembic import op"},{"line_number":29,"context_line":"import sqlalchemy as sa"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"def upgrade(active_plugins\u003dNone, options\u003dNone):"}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_77eaf6d8","line":29,"in_reply_to":"1abeadc6_9776b2a2","updated":"2014-08-29 10:31:17.000000000","message":"Migrations are unconditional now. No conditions should be in migration. This change already merged https://review.openstack.org/108700.","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"3e973b569c560f8a67f33b7353e38eb007acee69","unresolved":false,"context_lines":[{"line_number":26,"context_line":"down_revision \u003d \u0027aae5706a396\u0027"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"from alembic import op"},{"line_number":29,"context_line":"import sqlalchemy as sa"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"def upgrade(active_plugins\u003dNone, options\u003dNone):"}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_3f04d048","line":29,"in_reply_to":"1abeadc6_9776b2a2","updated":"2014-08-29 15:12:38.000000000","message":"Please refer to Ann\u0027s reply below.","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"f39f8dd0a8e97b6999b7a420090edd1de01d4f67","unresolved":false,"context_lines":[{"line_number":26,"context_line":"down_revision \u003d \u0027aae5706a396\u0027"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"from alembic import op"},{"line_number":29,"context_line":"import sqlalchemy as sa"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"def upgrade(active_plugins\u003dNone, options\u003dNone):"}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_9776b2a2","line":29,"in_reply_to":"1abeadc6_df37854b","updated":"2014-08-29 10:25:40.000000000","message":"please see https://github.com/openstack/neutron/blob/master/neutron/db/migration/alembic_migrations/versions/1341ed32cc1e_nvp_netbinding_update.py#L30 for an example. \nYou should only run the migration code if the specific plugin is used:\nhttps://github.com/openstack/neutron/blob/master/neutron/db/migration/alembic_migrations/versions/1341ed32cc1e_nvp_netbinding_update.py#L50","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"a5c17de3ea212017114595b1fb215636d7f9399c","unresolved":false,"context_lines":[{"line_number":28,"context_line":"from alembic import op"},{"line_number":29,"context_line":"import sqlalchemy as sa"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"def upgrade(active_plugins\u003dNone, options\u003dNone):"},{"line_number":33,"context_line":"    op.create_table("},{"line_number":34,"context_line":"        \u0027cisco_dfa_config_profiles\u0027,"}],"source_content_type":"text/x-python","patch_set":28,"id":"fa98f980_e1bd3004","line":31,"updated":"2014-08-31 05:37:52.000000000","message":"This is still a problem.\n\nYou need something like:\n\nmigration_for_plugins \u003d [\n\u0027neutron.plugins.ml2.plugin.Ml2Plugin\u0027\n]","commit_id":"e87a682baffcf54d39ea85d22214ffca75295c4b"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"b9769a805d438f2cb7529b6670975bca3bce39bc","unresolved":false,"context_lines":[{"line_number":28,"context_line":"from alembic import op"},{"line_number":29,"context_line":"import sqlalchemy as sa"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"def upgrade(active_plugins\u003dNone, options\u003dNone):"},{"line_number":33,"context_line":"    op.create_table("},{"line_number":34,"context_line":"        \u0027cisco_dfa_config_profiles\u0027,"}],"source_content_type":"text/x-python","patch_set":28,"id":"fa98f980_811464f6","line":31,"in_reply_to":"fa98f980_e1bd3004","updated":"2014-08-31 05:49:24.000000000","message":"Please look at the patch set 18 and read Henry Gessau\u0027s comment.  It\u0027s been long time ago changes in database migration committed and there is not need of codes that you are referring to.","commit_id":"e87a682baffcf54d39ea85d22214ffca75295c4b"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"a5c17de3ea212017114595b1fb215636d7f9399c","unresolved":false,"context_lines":[{"line_number":29,"context_line":"import sqlalchemy as sa"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"def upgrade(active_plugins\u003dNone, options\u003dNone):"},{"line_number":33,"context_line":"    op.create_table("},{"line_number":34,"context_line":"        \u0027cisco_dfa_config_profiles\u0027,"},{"line_number":35,"context_line":"        sa.Column(\u0027id\u0027, sa.String(36)),"}],"source_content_type":"text/x-python","patch_set":28,"id":"fa98f980_01bb140f","line":32,"updated":"2014-08-31 05:37:52.000000000","message":"and:\n\n if not migration.should_run(active_plugins, migration_for_plugins):\nreturn","commit_id":"e87a682baffcf54d39ea85d22214ffca75295c4b"}],"neutron/plugins/ml2/drivers/cisco/dfa/__init__.py":[{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"511b3417415c2c0343e78c9f18a3f6bad3bc967f","unresolved":false,"context_lines":[{"line_number":11,"context_line":"#    distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT"},{"line_number":12,"context_line":"#    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the"},{"line_number":13,"context_line":"#    License for the specific language governing permissions and limitations"},{"line_number":14,"context_line":"#    under the License."}],"source_content_type":"text/x-python","patch_set":4,"id":"baada198_d6737faf","line":14,"updated":"2014-07-01 08:47:11.000000000","message":"make this file empty.","commit_id":"476eb1913182b27d2730874e39bf3d394428a11c"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"a14ecef8f675768de334b8ec15f0017e2ba220ad","unresolved":false,"context_lines":[{"line_number":11,"context_line":"#    distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT"},{"line_number":12,"context_line":"#    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the"},{"line_number":13,"context_line":"#    License for the specific language governing permissions and limitations"},{"line_number":14,"context_line":"#    under the License."}],"source_content_type":"text/x-python","patch_set":4,"id":"baada198_9281f391","line":14,"in_reply_to":"baada198_d6737faf","updated":"2014-07-02 00:03:21.000000000","message":"Done","commit_id":"476eb1913182b27d2730874e39bf3d394428a11c"}],"neutron/plugins/ml2/drivers/cisco/dfa/cfg_profile_db_v2.py":[{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"511b3417415c2c0343e78c9f18a3f6bad3bc967f","unresolved":false,"context_lines":[{"line_number":22,"context_line":"from neutron.db import models_v2"},{"line_number":23,"context_line":"from neutron.plugins.ml2.drivers.cisco.dfa import dfa_exceptions as dexc"},{"line_number":24,"context_line":"from neutron.plugins.ml2.drivers.cisco.dfa import dfa_models_v2"},{"line_number":25,"context_line":"from sqlalchemy.orm import exc"},{"line_number":26,"context_line":""},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"DEFAULT_CFG_PROFILE_ID \u003d \u002700000000-0000-0000-0000-000000000000\u0027"}],"source_content_type":"text/x-python","patch_set":4,"id":"baada198_96874761","line":25,"updated":"2014-07-01 08:47:11.000000000","message":"import 3rd party libs before neutron stuff.","commit_id":"476eb1913182b27d2730874e39bf3d394428a11c"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"a14ecef8f675768de334b8ec15f0017e2ba220ad","unresolved":false,"context_lines":[{"line_number":22,"context_line":"from neutron.db import models_v2"},{"line_number":23,"context_line":"from neutron.plugins.ml2.drivers.cisco.dfa import dfa_exceptions as dexc"},{"line_number":24,"context_line":"from neutron.plugins.ml2.drivers.cisco.dfa import dfa_models_v2"},{"line_number":25,"context_line":"from sqlalchemy.orm import exc"},{"line_number":26,"context_line":""},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"DEFAULT_CFG_PROFILE_ID \u003d \u002700000000-0000-0000-0000-000000000000\u0027"}],"source_content_type":"text/x-python","patch_set":4,"id":"baada198_e0133a5a","line":25,"in_reply_to":"baada198_96874761","updated":"2014-07-02 00:03:21.000000000","message":"Done","commit_id":"476eb1913182b27d2730874e39bf3d394428a11c"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"6477756b09e7550ecf31253f52653a758e044171","unresolved":false,"context_lines":[{"line_number":70,"context_line":""},{"line_number":71,"context_line":"    def _delete_config_profile(self, cfg_profile_id):"},{"line_number":72,"context_line":"        \"\"\"Delete config profile.\"\"\""},{"line_number":73,"context_line":"        db_session \u003d db.get_session()"},{"line_number":74,"context_line":"        with db_session.begin(subtransactions\u003dTrue):"},{"line_number":75,"context_line":"            (db_session.query(dfa_models_v2.ConfigProfile)."},{"line_number":76,"context_line":"             filter_by(id\u003dcfg_profile_id).delete())"}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_5c2591a9","line":73,"updated":"2014-07-02 16:58:18.000000000","message":"You might want to delete lines 73, and 74. Start the transaction inside invalidate_config_profile and pass the session.\nUsing the current code, the transaction will last only for one delete operation.","commit_id":"4bf5fd49cfa55f7c9d8b65ae5fed0aec01816ebc"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"437c937556f2a9d02b80dd68d623f6aece4b8c66","unresolved":false,"context_lines":[{"line_number":70,"context_line":""},{"line_number":71,"context_line":"    def _delete_config_profile(self, cfg_profile_id):"},{"line_number":72,"context_line":"        \"\"\"Delete config profile.\"\"\""},{"line_number":73,"context_line":"        db_session \u003d db.get_session()"},{"line_number":74,"context_line":"        with db_session.begin(subtransactions\u003dTrue):"},{"line_number":75,"context_line":"            (db_session.query(dfa_models_v2.ConfigProfile)."},{"line_number":76,"context_line":"             filter_by(id\u003dcfg_profile_id).delete())"}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_47c34338","line":73,"in_reply_to":"baada198_5c2591a9","updated":"2014-07-09 15:38:22.000000000","message":"Sure. Make sense.","commit_id":"4bf5fd49cfa55f7c9d8b65ae5fed0aec01816ebc"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"6477756b09e7550ecf31253f52653a758e044171","unresolved":false,"context_lines":[{"line_number":115,"context_line":"        \"\"\"Invalidate the onfig profile database."},{"line_number":116,"context_line":"        \"\"\""},{"line_number":117,"context_line":"        db_session \u003d db.get_session()"},{"line_number":118,"context_line":"        entries \u003d db_session.query(dfa_models_v2.ConfigProfile).all()"},{"line_number":119,"context_line":"        for ent in entries:"},{"line_number":120,"context_line":"            if not self._get_config_profile_binding(db_session, ent.id):"},{"line_number":121,"context_line":"                # The config profile is not bind to any network."}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_5c5cb125","line":118,"updated":"2014-07-02 16:58:18.000000000","message":"Start the transaction here.\n\nwith db_session.begin(subtransactions\u003dTrue):","commit_id":"4bf5fd49cfa55f7c9d8b65ae5fed0aec01816ebc"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"437c937556f2a9d02b80dd68d623f6aece4b8c66","unresolved":false,"context_lines":[{"line_number":115,"context_line":"        \"\"\"Invalidate the onfig profile database."},{"line_number":116,"context_line":"        \"\"\""},{"line_number":117,"context_line":"        db_session \u003d db.get_session()"},{"line_number":118,"context_line":"        entries \u003d db_session.query(dfa_models_v2.ConfigProfile).all()"},{"line_number":119,"context_line":"        for ent in entries:"},{"line_number":120,"context_line":"            if not self._get_config_profile_binding(db_session, ent.id):"},{"line_number":121,"context_line":"                # The config profile is not bind to any network."}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_6745a7b2","line":118,"in_reply_to":"baada198_5c5cb125","updated":"2014-07-09 15:38:22.000000000","message":"Done","commit_id":"4bf5fd49cfa55f7c9d8b65ae5fed0aec01816ebc"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"6477756b09e7550ecf31253f52653a758e044171","unresolved":false,"context_lines":[{"line_number":117,"context_line":"        db_session \u003d db.get_session()"},{"line_number":118,"context_line":"        entries \u003d db_session.query(dfa_models_v2.ConfigProfile).all()"},{"line_number":119,"context_line":"        for ent in entries:"},{"line_number":120,"context_line":"            if not self._get_config_profile_binding(db_session, ent.id):"},{"line_number":121,"context_line":"                # The config profile is not bind to any network."},{"line_number":122,"context_line":"                # Delete it from database."},{"line_number":123,"context_line":"                self._delete_config_profile(ent.id)"}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_dc8c4182","line":120,"updated":"2014-07-02 16:58:18.000000000","message":"I am not sure what you are checking here...as far as I can tell _get_config_profile_binding returns a collection of dfa_models_v2.ConfigProfile, whose id is ent.id ...is that right? What am I missing? Why do you need this check?","commit_id":"4bf5fd49cfa55f7c9d8b65ae5fed0aec01816ebc"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"437c937556f2a9d02b80dd68d623f6aece4b8c66","unresolved":false,"context_lines":[{"line_number":117,"context_line":"        db_session \u003d db.get_session()"},{"line_number":118,"context_line":"        entries \u003d db_session.query(dfa_models_v2.ConfigProfile).all()"},{"line_number":119,"context_line":"        for ent in entries:"},{"line_number":120,"context_line":"            if not self._get_config_profile_binding(db_session, ent.id):"},{"line_number":121,"context_line":"                # The config profile is not bind to any network."},{"line_number":122,"context_line":"                # Delete it from database."},{"line_number":123,"context_line":"                self._delete_config_profile(ent.id)"}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_e710d7aa","line":120,"in_reply_to":"baada198_dc8c4182","updated":"2014-07-09 15:38:22.000000000","message":"The intention is not to delete a profile which is being used by a network.","commit_id":"4bf5fd49cfa55f7c9d8b65ae5fed0aec01816ebc"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"6477756b09e7550ecf31253f52653a758e044171","unresolved":false,"context_lines":[{"line_number":151,"context_line":"        \"\"\""},{"line_number":152,"context_line":"        db_session \u003d db.get_session()"},{"line_number":153,"context_line":"        try:"},{"line_number":154,"context_line":"            cfgp \u003d db_session.query(dfa_models_v2.ConfigProfileBinding).\\"},{"line_number":155,"context_line":"                filter_by(network_id\u003dnetwork_id).one()"},{"line_number":156,"context_line":"            cfgp_entry \u003d self.get_cfg_profile(db_session, cfgp.cfg_profile_id)"},{"line_number":157,"context_line":"            return cfgp_entry.forwarding_mode"}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_9c47291d","line":154,"updated":"2014-07-02 16:58:18.000000000","message":"For splitting the line prefer the use of parenthesis instead of \u0027\\\u0027 as per hacking guide","commit_id":"4bf5fd49cfa55f7c9d8b65ae5fed0aec01816ebc"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"437c937556f2a9d02b80dd68d623f6aece4b8c66","unresolved":false,"context_lines":[{"line_number":151,"context_line":"        \"\"\""},{"line_number":152,"context_line":"        db_session \u003d db.get_session()"},{"line_number":153,"context_line":"        try:"},{"line_number":154,"context_line":"            cfgp \u003d db_session.query(dfa_models_v2.ConfigProfileBinding).\\"},{"line_number":155,"context_line":"                filter_by(network_id\u003dnetwork_id).one()"},{"line_number":156,"context_line":"            cfgp_entry \u003d self.get_cfg_profile(db_session, cfgp.cfg_profile_id)"},{"line_number":157,"context_line":"            return cfgp_entry.forwarding_mode"}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_471fc3b7","line":154,"in_reply_to":"baada198_9c47291d","updated":"2014-07-09 15:38:22.000000000","message":"Done","commit_id":"4bf5fd49cfa55f7c9d8b65ae5fed0aec01816ebc"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"6477756b09e7550ecf31253f52653a758e044171","unresolved":false,"context_lines":[{"line_number":185,"context_line":"                                  filter_by(name\u003dcfgp_name).one())"},{"line_number":186,"context_line":"                    cpid \u003d cfgp_entry.id"},{"line_number":187,"context_line":""},{"line_number":188,"context_line":"            with db_session.begin(subtransactions\u003dTrue):"},{"line_number":189,"context_line":"                binding \u003d dfa_models_v2.ConfigProfileBinding(network_id\u003dnetid,"},{"line_number":190,"context_line":"                                                             cfg_profile_id\u003d"},{"line_number":191,"context_line":"                                                             cpid)"}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_1ca6b9c1","line":188,"updated":"2014-07-02 16:58:18.000000000","message":"You don\u0027t need another transaction here since you started one at line 182. Put everything under that first one transaction.","commit_id":"4bf5fd49cfa55f7c9d8b65ae5fed0aec01816ebc"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"6477756b09e7550ecf31253f52653a758e044171","unresolved":false,"context_lines":[{"line_number":189,"context_line":"                binding \u003d dfa_models_v2.ConfigProfileBinding(network_id\u003dnetid,"},{"line_number":190,"context_line":"                                                             cfg_profile_id\u003d"},{"line_number":191,"context_line":"                                                             cpid)"},{"line_number":192,"context_line":"                db_session.add(binding)"},{"line_number":193,"context_line":"        except exc.NoResultFound:"},{"line_number":194,"context_line":"            raise dexc.ConfigProfileNotFound(network_id\u003dnetid)"},{"line_number":195,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_5c3af136","line":192,"updated":"2014-07-02 16:58:18.000000000","message":"This is the only line that it\u0027s modifying the DB, correct me if I am wrong. In this case I don\u0027t think you need a transaction at all","commit_id":"4bf5fd49cfa55f7c9d8b65ae5fed0aec01816ebc"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"437c937556f2a9d02b80dd68d623f6aece4b8c66","unresolved":false,"context_lines":[{"line_number":189,"context_line":"                binding \u003d dfa_models_v2.ConfigProfileBinding(network_id\u003dnetid,"},{"line_number":190,"context_line":"                                                             cfg_profile_id\u003d"},{"line_number":191,"context_line":"                                                             cpid)"},{"line_number":192,"context_line":"                db_session.add(binding)"},{"line_number":193,"context_line":"        except exc.NoResultFound:"},{"line_number":194,"context_line":"            raise dexc.ConfigProfileNotFound(network_id\u003dnetid)"},{"line_number":195,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_87bb9b74","line":192,"in_reply_to":"baada198_5c3af136","updated":"2014-07-09 15:38:22.000000000","message":"That is correct. \nSo line 182 can be removed as well?","commit_id":"4bf5fd49cfa55f7c9d8b65ae5fed0aec01816ebc"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"e73ae335860866e807380ea518f0569ee8656678","unresolved":false,"context_lines":[{"line_number":189,"context_line":"                binding \u003d dfa_models_v2.ConfigProfileBinding(network_id\u003dnetid,"},{"line_number":190,"context_line":"                                                             cfg_profile_id\u003d"},{"line_number":191,"context_line":"                                                             cpid)"},{"line_number":192,"context_line":"                db_session.add(binding)"},{"line_number":193,"context_line":"        except exc.NoResultFound:"},{"line_number":194,"context_line":"            raise dexc.ConfigProfileNotFound(network_id\u003dnetid)"},{"line_number":195,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_db6b7cef","line":192,"in_reply_to":"baada198_87bb9b74","updated":"2014-07-23 10:50:20.000000000","message":"Sorry for the very slow reply...My comment was confusing. I didn\u0027t mean to remove the line, that would cause the session not to be open. I was just thinking of removing the \"subtransactions\u003dTrue\" but it\u0027s not so important. I will keep commenting on the new patch.","commit_id":"4bf5fd49cfa55f7c9d8b65ae5fed0aec01816ebc"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"6477756b09e7550ecf31253f52653a758e044171","unresolved":false,"context_lines":[{"line_number":190,"context_line":"                                                             cfg_profile_id\u003d"},{"line_number":191,"context_line":"                                                             cpid)"},{"line_number":192,"context_line":"                db_session.add(binding)"},{"line_number":193,"context_line":"        except exc.NoResultFound:"},{"line_number":194,"context_line":"            raise dexc.ConfigProfileNotFound(network_id\u003dnetid)"},{"line_number":195,"context_line":""},{"line_number":196,"context_line":"    def delete_dfa_cfg_profile_binding(self, network_id):"}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_3c00dd66","line":193,"updated":"2014-07-02 16:58:18.000000000","message":"You might want to try/except directly on the line that might cause this exception, which is line 183 I assume. That would make the code more clear\n\ntry:\n\tcfgp_entry \u003d (db_session.query(\n\t\t\tdfa_models_v2.ConfigProfile).\n\t\t\tfilter_by(name\u003dcfgp_name).one())\nexcept exc.NoResultFound:\n     raise dexc.ConfigProfileNotFound(network_id\u003dnetid)","commit_id":"4bf5fd49cfa55f7c9d8b65ae5fed0aec01816ebc"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"437c937556f2a9d02b80dd68d623f6aece4b8c66","unresolved":false,"context_lines":[{"line_number":190,"context_line":"                                                             cfg_profile_id\u003d"},{"line_number":191,"context_line":"                                                             cpid)"},{"line_number":192,"context_line":"                db_session.add(binding)"},{"line_number":193,"context_line":"        except exc.NoResultFound:"},{"line_number":194,"context_line":"            raise dexc.ConfigProfileNotFound(network_id\u003dnetid)"},{"line_number":195,"context_line":""},{"line_number":196,"context_line":"    def delete_dfa_cfg_profile_binding(self, network_id):"}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_4ae6ea45","line":193,"in_reply_to":"baada198_3c00dd66","updated":"2014-07-09 15:38:22.000000000","message":"Done","commit_id":"4bf5fd49cfa55f7c9d8b65ae5fed0aec01816ebc"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"6477756b09e7550ecf31253f52653a758e044171","unresolved":false,"context_lines":[{"line_number":198,"context_line":"        \"\"\""},{"line_number":199,"context_line":"        try:"},{"line_number":200,"context_line":"            db_session \u003d db.get_session()"},{"line_number":201,"context_line":"            with db_session.begin(subtransactions\u003dTrue):"},{"line_number":202,"context_line":"                entry \u003d (db_session.query(dfa_models_v2.ConfigProfileBinding)."},{"line_number":203,"context_line":"                         filter_by(network_id\u003dnetwork_id).one())"},{"line_number":204,"context_line":"                db_session.delete(entry)"}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_7c8a55c0","line":201,"updated":"2014-07-02 16:58:18.000000000","message":"You can remove this if the only operation performed in this transaction is the deletion.","commit_id":"4bf5fd49cfa55f7c9d8b65ae5fed0aec01816ebc"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"437c937556f2a9d02b80dd68d623f6aece4b8c66","unresolved":false,"context_lines":[{"line_number":198,"context_line":"        \"\"\""},{"line_number":199,"context_line":"        try:"},{"line_number":200,"context_line":"            db_session \u003d db.get_session()"},{"line_number":201,"context_line":"            with db_session.begin(subtransactions\u003dTrue):"},{"line_number":202,"context_line":"                entry \u003d (db_session.query(dfa_models_v2.ConfigProfileBinding)."},{"line_number":203,"context_line":"                         filter_by(network_id\u003dnetwork_id).one())"},{"line_number":204,"context_line":"                db_session.delete(entry)"}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_6ab56e30","line":201,"in_reply_to":"baada198_7c8a55c0","updated":"2014-07-09 15:38:22.000000000","message":"same comment as line 211","commit_id":"4bf5fd49cfa55f7c9d8b65ae5fed0aec01816ebc"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"6477756b09e7550ecf31253f52653a758e044171","unresolved":false,"context_lines":[{"line_number":200,"context_line":"            db_session \u003d db.get_session()"},{"line_number":201,"context_line":"            with db_session.begin(subtransactions\u003dTrue):"},{"line_number":202,"context_line":"                entry \u003d (db_session.query(dfa_models_v2.ConfigProfileBinding)."},{"line_number":203,"context_line":"                         filter_by(network_id\u003dnetwork_id).one())"},{"line_number":204,"context_line":"                db_session.delete(entry)"},{"line_number":205,"context_line":"        except exc.NoResultFound:"},{"line_number":206,"context_line":"            raise dexc.ConfigProfileNotFound(network_id\u003dnetwork_id)"}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_9c69e927","line":203,"updated":"2014-07-02 16:58:18.000000000","message":"You can do the delete directly:\ndb_session.query(dfa_models_v2.ConfigProfileBinding).\n\t\t\tfilter_by(network_id\u003dnetwork_id).delete()","commit_id":"4bf5fd49cfa55f7c9d8b65ae5fed0aec01816ebc"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"437c937556f2a9d02b80dd68d623f6aece4b8c66","unresolved":false,"context_lines":[{"line_number":200,"context_line":"            db_session \u003d db.get_session()"},{"line_number":201,"context_line":"            with db_session.begin(subtransactions\u003dTrue):"},{"line_number":202,"context_line":"                entry \u003d (db_session.query(dfa_models_v2.ConfigProfileBinding)."},{"line_number":203,"context_line":"                         filter_by(network_id\u003dnetwork_id).one())"},{"line_number":204,"context_line":"                db_session.delete(entry)"},{"line_number":205,"context_line":"        except exc.NoResultFound:"},{"line_number":206,"context_line":"            raise dexc.ConfigProfileNotFound(network_id\u003dnetwork_id)"}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_070b0b2c","line":203,"in_reply_to":"baada198_9c69e927","updated":"2014-07-09 15:38:22.000000000","message":"sure. will modify it.","commit_id":"4bf5fd49cfa55f7c9d8b65ae5fed0aec01816ebc"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"6477756b09e7550ecf31253f52653a758e044171","unresolved":false,"context_lines":[{"line_number":208,"context_line":"    def create_config_profile(self, cp):"},{"line_number":209,"context_line":"        \"\"\"Create Config Profile.\"\"\""},{"line_number":210,"context_line":"        db_session \u003d db.get_session()"},{"line_number":211,"context_line":"        with db_session.begin(subtransactions\u003dTrue):"},{"line_number":212,"context_line":"            cfgp \u003d dfa_models_v2.ConfigProfile(id\u003dcp[\u0027id\u0027], name\u003dcp[\u0027name\u0027],"},{"line_number":213,"context_line":"                                               forwarding_mode\u003d"},{"line_number":214,"context_line":"                                               cp[\u0027forwarding_mode\u0027])"}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_1c6879f4","line":211,"updated":"2014-07-02 16:58:18.000000000","message":"Same comment as before, no need of opening a transaction for one operation (I see only one operation at line 215)","commit_id":"4bf5fd49cfa55f7c9d8b65ae5fed0aec01816ebc"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"437c937556f2a9d02b80dd68d623f6aece4b8c66","unresolved":false,"context_lines":[{"line_number":208,"context_line":"    def create_config_profile(self, cp):"},{"line_number":209,"context_line":"        \"\"\"Create Config Profile.\"\"\""},{"line_number":210,"context_line":"        db_session \u003d db.get_session()"},{"line_number":211,"context_line":"        with db_session.begin(subtransactions\u003dTrue):"},{"line_number":212,"context_line":"            cfgp \u003d dfa_models_v2.ConfigProfile(id\u003dcp[\u0027id\u0027], name\u003dcp[\u0027name\u0027],"},{"line_number":213,"context_line":"                                               forwarding_mode\u003d"},{"line_number":214,"context_line":"                                               cp[\u0027forwarding_mode\u0027])"}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_2773afe8","line":211,"in_reply_to":"baada198_1c6879f4","updated":"2014-07-09 15:38:22.000000000","message":"Without this the nothing is added to the database.","commit_id":"4bf5fd49cfa55f7c9d8b65ae5fed0aec01816ebc"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"d9d9f52e3e57a881c39e516bc9f89b6078bac4a2","unresolved":false,"context_lines":[{"line_number":179,"context_line":"                # The config profile is not provided when creating network."},{"line_number":180,"context_line":"                # Use \u0027defaultNetworkL2Profile\u0027 as default config profile."},{"line_number":181,"context_line":"                cfgp_name \u003d \u0027defaultNetworkL2Profile\u0027"},{"line_number":182,"context_line":"                with db_session.begin(subtransactions\u003dTrue):"},{"line_number":183,"context_line":"                    cfgp_entry \u003d (db_session.query("},{"line_number":184,"context_line":"                                  dfa_models_v2.ConfigProfile)."},{"line_number":185,"context_line":"                                  filter_by(name\u003dcfgp_name).one())"}],"source_content_type":"text/x-python","patch_set":8,"id":"baada198_f6cbf5a1","line":182,"updated":"2014-07-23 14:05:02.000000000","message":"why not moving this line before line 179 and remove line 188?","commit_id":"0cacf91bd31d574cdae1635843141dc2b1c4a137"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"7efd49818763bdc8ad70ab75885947e31fea556e","unresolved":false,"context_lines":[{"line_number":179,"context_line":"                # The config profile is not provided when creating network."},{"line_number":180,"context_line":"                # Use \u0027defaultNetworkL2Profile\u0027 as default config profile."},{"line_number":181,"context_line":"                cfgp_name \u003d \u0027defaultNetworkL2Profile\u0027"},{"line_number":182,"context_line":"                with db_session.begin(subtransactions\u003dTrue):"},{"line_number":183,"context_line":"                    cfgp_entry \u003d (db_session.query("},{"line_number":184,"context_line":"                                  dfa_models_v2.ConfigProfile)."},{"line_number":185,"context_line":"                                  filter_by(name\u003dcfgp_name).one())"}],"source_content_type":"text/x-python","patch_set":8,"id":"baada198_a594a9e8","line":182,"in_reply_to":"baada198_f6cbf5a1","updated":"2014-07-24 22:37:33.000000000","message":"Done","commit_id":"0cacf91bd31d574cdae1635843141dc2b1c4a137"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"d9d9f52e3e57a881c39e516bc9f89b6078bac4a2","unresolved":false,"context_lines":[{"line_number":202,"context_line":"                entry \u003d (db_session.query(dfa_models_v2.ConfigProfileBinding)."},{"line_number":203,"context_line":"                         filter_by(network_id\u003dnetwork_id).one())"},{"line_number":204,"context_line":"                db_session.delete(entry)"},{"line_number":205,"context_line":"        except exc.NoResultFound:"},{"line_number":206,"context_line":"            raise dexc.ConfigProfileNotFound(network_id\u003dnetwork_id)"},{"line_number":207,"context_line":""},{"line_number":208,"context_line":"    def create_config_profile(self, cp):"}],"source_content_type":"text/x-python","patch_set":8,"id":"baada198_15d4dce7","line":205,"updated":"2014-07-23 14:05:02.000000000","message":"one() can throw also MultipleResultsFound is it ok to raise it as is? There are other points in this file where you except only the NoResultFound exception if it\u0027s a choice please ignore my comment, otherwise address it everywhere please.","commit_id":"0cacf91bd31d574cdae1635843141dc2b1c4a137"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"7efd49818763bdc8ad70ab75885947e31fea556e","unresolved":false,"context_lines":[{"line_number":202,"context_line":"                entry \u003d (db_session.query(dfa_models_v2.ConfigProfileBinding)."},{"line_number":203,"context_line":"                         filter_by(network_id\u003dnetwork_id).one())"},{"line_number":204,"context_line":"                db_session.delete(entry)"},{"line_number":205,"context_line":"        except exc.NoResultFound:"},{"line_number":206,"context_line":"            raise dexc.ConfigProfileNotFound(network_id\u003dnetwork_id)"},{"line_number":207,"context_line":""},{"line_number":208,"context_line":"    def create_config_profile(self, cp):"}],"source_content_type":"text/x-python","patch_set":8,"id":"baada198_a3c0214b","line":205,"in_reply_to":"baada198_15d4dce7","updated":"2014-07-24 22:37:33.000000000","message":"I\u0027ll include the other exception as well.","commit_id":"0cacf91bd31d574cdae1635843141dc2b1c4a137"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"e42b89332ea0461d2ae9c982b5e771f3404a708e","unresolved":false,"context_lines":[{"line_number":30,"context_line":"    try:"},{"line_number":31,"context_line":"        return (session.query(dfa_models_v2.ConfigProfileBinding)."},{"line_number":32,"context_line":"                filter_by(network_id\u003dnet_id).one())"},{"line_number":33,"context_line":"    except (exc.NoResultFound, exc.MultipleResultsFound):"},{"line_number":34,"context_line":"        return None"},{"line_number":35,"context_line":""},{"line_number":36,"context_line":""}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_f9c46193","line":33,"updated":"2014-08-28 18:53:56.000000000","message":"i think that these two exceptions should maybe be broken into 2 and maybe logged. but that can be done in another patch if you want","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"e42b89332ea0461d2ae9c982b5e771f3404a708e","unresolved":false,"context_lines":[{"line_number":31,"context_line":"        return (session.query(dfa_models_v2.ConfigProfileBinding)."},{"line_number":32,"context_line":"                filter_by(network_id\u003dnet_id).one())"},{"line_number":33,"context_line":"    except (exc.NoResultFound, exc.MultipleResultsFound):"},{"line_number":34,"context_line":"        return None"},{"line_number":35,"context_line":""},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"def add_dfa_cfg_profile_binding(session, netid, cpid):"}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_39e4193b","line":34,"updated":"2014-08-28 18:53:56.000000000","message":"by default the method returns None.\nYou could just pass here","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"5ce09020034ab1d260a593b372e6142cc5b952ee","unresolved":false,"context_lines":[{"line_number":31,"context_line":"        return (session.query(dfa_models_v2.ConfigProfileBinding)."},{"line_number":32,"context_line":"                filter_by(network_id\u003dnet_id).one())"},{"line_number":33,"context_line":"    except (exc.NoResultFound, exc.MultipleResultsFound):"},{"line_number":34,"context_line":"        return None"},{"line_number":35,"context_line":""},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"def add_dfa_cfg_profile_binding(session, netid, cpid):"}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_7fde7112","line":34,"in_reply_to":"1abeadc6_39e4193b","updated":"2014-08-28 19:57:50.000000000","message":"Done","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"c3a648a418d865963c94405ce1b4d7059763b142","unresolved":false,"context_lines":[{"line_number":59,"context_line":"    try:"},{"line_number":60,"context_line":"        return (session.query(models_v2.Network)."},{"line_number":61,"context_line":"                filter_by(id\u003dnetid).one())"},{"line_number":62,"context_line":"    except (exc.NoResultFound, exc.MultipleResultsFound):"},{"line_number":63,"context_line":"        raise dexc.NetworkNotFound(network_id\u003dnetid)"},{"line_number":64,"context_line":""},{"line_number":65,"context_line":""}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_3ab13e47","line":62,"updated":"2014-08-29 13:37:02.000000000","message":"MultipleResultsFound will never be thrown here","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"3e973b569c560f8a67f33b7353e38eb007acee69","unresolved":false,"context_lines":[{"line_number":59,"context_line":"    try:"},{"line_number":60,"context_line":"        return (session.query(models_v2.Network)."},{"line_number":61,"context_line":"                filter_by(id\u003dnetid).one())"},{"line_number":62,"context_line":"    except (exc.NoResultFound, exc.MultipleResultsFound):"},{"line_number":63,"context_line":"        raise dexc.NetworkNotFound(network_id\u003dnetid)"},{"line_number":64,"context_line":""},{"line_number":65,"context_line":""}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_d53c9d95","line":62,"in_reply_to":"1abeadc6_3ab13e47","updated":"2014-08-29 15:12:38.000000000","message":"This one added based on comment In patch set 8, that one() can throw MultipleResultsFound.","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"c3a648a418d865963c94405ce1b4d7059763b142","unresolved":false,"context_lines":[{"line_number":73,"context_line":"        try:"},{"line_number":74,"context_line":"            cfgp_entry \u003d db_session.query("},{"line_number":75,"context_line":"                dfa_models_v2.ConfigProfile).filter_by(id\u003dcfgid).one()"},{"line_number":76,"context_line":"        except (exc.NoResultFound, exc.MultipleResultsFound):"},{"line_number":77,"context_line":"            raise dexc.ConfigProfileIdNotFound(profile_id\u003dcfgid)"},{"line_number":78,"context_line":"        return cfgp_entry.name"},{"line_number":79,"context_line":""}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_9ab25247","line":76,"updated":"2014-08-29 13:37:02.000000000","message":"same as above","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"3e973b569c560f8a67f33b7353e38eb007acee69","unresolved":false,"context_lines":[{"line_number":73,"context_line":"        try:"},{"line_number":74,"context_line":"            cfgp_entry \u003d db_session.query("},{"line_number":75,"context_line":"                dfa_models_v2.ConfigProfile).filter_by(id\u003dcfgid).one()"},{"line_number":76,"context_line":"        except (exc.NoResultFound, exc.MultipleResultsFound):"},{"line_number":77,"context_line":"            raise dexc.ConfigProfileIdNotFound(profile_id\u003dcfgid)"},{"line_number":78,"context_line":"        return cfgp_entry.name"},{"line_number":79,"context_line":""}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_55488d2c","line":76,"in_reply_to":"1abeadc6_9ab25247","updated":"2014-08-29 15:12:38.000000000","message":"same as reply to same comment above","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"e42b89332ea0461d2ae9c982b5e771f3404a708e","unresolved":false,"context_lines":[{"line_number":88,"context_line":"        cfgp \u003d (db_session.query(dfa_models_v2.ConfigProfileBinding)."},{"line_number":89,"context_line":"            filter_by(network_id\u003dnetwork_id).one())"},{"line_number":90,"context_line":"        cfgid \u003d cfgp.cfg_profile_id"},{"line_number":91,"context_line":"        try:"},{"line_number":92,"context_line":"            cfgp_entry \u003d db_session.query("},{"line_number":93,"context_line":"                dfa_models_v2.ConfigProfile).filter_by(id\u003dcfgid).one()"},{"line_number":94,"context_line":"        except (exc.NoResultFound, exc.MultipleResultsFound):"}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_f972a17a","line":91,"updated":"2014-08-28 18:53:56.000000000","message":"why do you need the nested try here?\ni think it would be better to break it into two","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"e11cc55c16d398536f3276dff6b4123094f14a8b","unresolved":false,"context_lines":[{"line_number":88,"context_line":"        cfgp \u003d (db_session.query(dfa_models_v2.ConfigProfileBinding)."},{"line_number":89,"context_line":"            filter_by(network_id\u003dnetwork_id).one())"},{"line_number":90,"context_line":"        cfgid \u003d cfgp.cfg_profile_id"},{"line_number":91,"context_line":"        try:"},{"line_number":92,"context_line":"            cfgp_entry \u003d db_session.query("},{"line_number":93,"context_line":"                dfa_models_v2.ConfigProfile).filter_by(id\u003dcfgid).one()"},{"line_number":94,"context_line":"        except (exc.NoResultFound, exc.MultipleResultsFound):"}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_c9a32eb0","line":91,"in_reply_to":"1abeadc6_5fd535e3","updated":"2014-08-29 12:26:18.000000000","message":"Agree with Gary. Should break into two try blocks, one that is getting the cfgid and then a second to get the entry, or you could do this in one query with a join on the two tables (though it would only be able to report that forward mode not found and not profile ID not found).","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"5ce09020034ab1d260a593b372e6142cc5b952ee","unresolved":false,"context_lines":[{"line_number":88,"context_line":"        cfgp \u003d (db_session.query(dfa_models_v2.ConfigProfileBinding)."},{"line_number":89,"context_line":"            filter_by(network_id\u003dnetwork_id).one())"},{"line_number":90,"context_line":"        cfgid \u003d cfgp.cfg_profile_id"},{"line_number":91,"context_line":"        try:"},{"line_number":92,"context_line":"            cfgp_entry \u003d db_session.query("},{"line_number":93,"context_line":"                dfa_models_v2.ConfigProfile).filter_by(id\u003dcfgid).one()"},{"line_number":94,"context_line":"        except (exc.NoResultFound, exc.MultipleResultsFound):"}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_5fd535e3","line":91,"in_reply_to":"1abeadc6_f972a17a","updated":"2014-08-28 19:57:50.000000000","message":"Raising different exceptions","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"c3a648a418d865963c94405ce1b4d7059763b142","unresolved":false,"context_lines":[{"line_number":91,"context_line":"        try:"},{"line_number":92,"context_line":"            cfgp_entry \u003d db_session.query("},{"line_number":93,"context_line":"                dfa_models_v2.ConfigProfile).filter_by(id\u003dcfgid).one()"},{"line_number":94,"context_line":"        except (exc.NoResultFound, exc.MultipleResultsFound):"},{"line_number":95,"context_line":"            raise dexc.ConfigProfileIdNotFound(profile_id\u003dcfgid)"},{"line_number":96,"context_line":""},{"line_number":97,"context_line":"        return cfgp_entry.forwarding_mode"}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_9fa32442","line":94,"updated":"2014-08-29 13:37:02.000000000","message":"i think for query filtered by id, there should not be a possibility of MultipleResultsFound","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"3e973b569c560f8a67f33b7353e38eb007acee69","unresolved":false,"context_lines":[{"line_number":91,"context_line":"        try:"},{"line_number":92,"context_line":"            cfgp_entry \u003d db_session.query("},{"line_number":93,"context_line":"                dfa_models_v2.ConfigProfile).filter_by(id\u003dcfgid).one()"},{"line_number":94,"context_line":"        except (exc.NoResultFound, exc.MultipleResultsFound):"},{"line_number":95,"context_line":"            raise dexc.ConfigProfileIdNotFound(profile_id\u003dcfgid)"},{"line_number":96,"context_line":""},{"line_number":97,"context_line":"        return cfgp_entry.forwarding_mode"}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_9516a547","line":94,"in_reply_to":"1abeadc6_9fa32442","updated":"2014-08-29 15:12:38.000000000","message":"same as reply to same comment above","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"},{"author":{"_account_id":6072,"name":"Eugene Nikanorov","email":"enikanorov@mirantis.com","username":"enikanorov"},"change_message_id":"c3a648a418d865963c94405ce1b4d7059763b142","unresolved":false,"context_lines":[{"line_number":105,"context_line":""},{"line_number":106,"context_line":"    try:"},{"line_number":107,"context_line":"        with db_session.begin(subtransactions\u003dTrue):"},{"line_number":108,"context_line":"            entry \u003d (db_session.query(dfa_models_v2.ConfigProfileBinding)."},{"line_number":109,"context_line":"                     filter_by(network_id\u003dnetwork_id).one())"},{"line_number":110,"context_line":"            db_session.delete(entry)"},{"line_number":111,"context_line":"    except (exc.NoResultFound, exc.MultipleResultsFound):"}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_daa04af6","line":108,"updated":"2014-08-29 13:37:02.000000000","message":"that\u0027s confusing logic. Looks like it\u0027s implied everywhere that there should be single binding between profile and network.\n\nI think this should be enforced at db schema level.\nThen you may avoid catching MultipleResultsFound everywhere.\n\nOtherwise, if there could be multiple bindings for the same network, this method should accept both network_id and config profile id","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"3e973b569c560f8a67f33b7353e38eb007acee69","unresolved":false,"context_lines":[{"line_number":105,"context_line":""},{"line_number":106,"context_line":"    try:"},{"line_number":107,"context_line":"        with db_session.begin(subtransactions\u003dTrue):"},{"line_number":108,"context_line":"            entry \u003d (db_session.query(dfa_models_v2.ConfigProfileBinding)."},{"line_number":109,"context_line":"                     filter_by(network_id\u003dnetwork_id).one())"},{"line_number":110,"context_line":"            db_session.delete(entry)"},{"line_number":111,"context_line":"    except (exc.NoResultFound, exc.MultipleResultsFound):"}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_35df916a","line":108,"in_reply_to":"1abeadc6_daa04af6","updated":"2014-08-29 15:12:38.000000000","message":"Do you mean catching the MutipleResultFound is a confusing logic here?\nThere is one to one mapping between config profile id and network id and there should not be multiple binding.\nAs I mentioned in earlier comment based on a comment in patch set 8, that one() can also return MultipleResultsFound exception, I included in here.","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"},{"author":{"_account_id":9380,"name":"Sayaji Patil","email":"sayaji15@gmail.com","username":"Sayaji"},"change_message_id":"4314089170c390d1b8721fb4d7917ba3a154ab30","unresolved":false,"context_lines":[{"line_number":49,"context_line":"                                                     cfg_profile_id\u003dcpid)"},{"line_number":50,"context_line":"        session.add(binding)"},{"line_number":51,"context_line":"    except (exc.NoResultFound, exc.MultipleResultsFound):"},{"line_number":52,"context_line":"        raise dexc.ConfigProfileNotFound(network_id\u003dnetid)"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"def get_network_entry(session, netid):"}],"source_content_type":"text/x-python","patch_set":28,"id":"fa98f980_15c7d613","line":52,"updated":"2014-08-30 20:08:18.000000000","message":"I find it a bit misleading. In case of exc.MultipleResultsFound, dexc.ConfigProfileNotFound is raised","commit_id":"e87a682baffcf54d39ea85d22214ffca75295c4b"},{"author":{"_account_id":9380,"name":"Sayaji Patil","email":"sayaji15@gmail.com","username":"Sayaji"},"change_message_id":"4314089170c390d1b8721fb4d7917ba3a154ab30","unresolved":false,"context_lines":[{"line_number":59,"context_line":"        return (session.query(models_v2.Network)."},{"line_number":60,"context_line":"                filter_by(id\u003dnetid).one())"},{"line_number":61,"context_line":"    except (exc.NoResultFound, exc.MultipleResultsFound):"},{"line_number":62,"context_line":"        raise dexc.NetworkNotFound(network_id\u003dnetid)"},{"line_number":63,"context_line":""},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"def get_config_profile_name(db_session, netid):"}],"source_content_type":"text/x-python","patch_set":28,"id":"fa98f980_35ccda35","line":62,"updated":"2014-08-30 20:08:18.000000000","message":"Do you have to handle exc.MultipleResultsFound? Isn\u0027t netid unique","commit_id":"e87a682baffcf54d39ea85d22214ffca75295c4b"}],"neutron/plugins/ml2/drivers/cisco/dfa/cisco_dfa_rest.py":[{"author":{"_account_id":1923,"name":"Mohammad Banikazemi","email":"mbanikazemi@gmail.com","username":"mb-s"},"change_message_id":"98f2f0c361dc4458663980f72cf6aa0644320e6e","unresolved":false,"context_lines":[{"line_number":54,"context_line":"        self._create_part_url \u003d tmp_url"},{"line_number":55,"context_line":"        self._del_org_url \u003d self._org_url + \u0027/%s\u0027"},{"line_number":56,"context_line":"        self._del_part \u003d self._org_url + \u0027/%s/partitions/%s\u0027"},{"line_number":57,"context_line":"        self._del_network_url \u003d self._org_url + \\"},{"line_number":58,"context_line":"            \u0027/%s/partitions/%s/networks/segment/%s\u0027"},{"line_number":59,"context_line":"        self._login_url \u003d \u0027http://%s/rest/logon\u0027 % (self._ip)"},{"line_number":60,"context_line":"        self._logout_url \u003d \u0027http://%s/rest/logout\u0027 % (self._ip)"}],"source_content_type":"text/x-python","patch_set":3,"id":"baada198_c1cd985f","line":57,"updated":"2014-06-30 16:12:43.000000000","message":"[H904] Wrap long lines in parentheses and not a backslash for line continuation.","commit_id":"73cc2d94b65921105d274fa431955143acaee12d"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"c436473dcd9ee0c9cbd90ff93cf20db114221035","unresolved":false,"context_lines":[{"line_number":54,"context_line":"        self._create_part_url \u003d tmp_url"},{"line_number":55,"context_line":"        self._del_org_url \u003d self._org_url + \u0027/%s\u0027"},{"line_number":56,"context_line":"        self._del_part \u003d self._org_url + \u0027/%s/partitions/%s\u0027"},{"line_number":57,"context_line":"        self._del_network_url \u003d self._org_url + \\"},{"line_number":58,"context_line":"            \u0027/%s/partitions/%s/networks/segment/%s\u0027"},{"line_number":59,"context_line":"        self._login_url \u003d \u0027http://%s/rest/logon\u0027 % (self._ip)"},{"line_number":60,"context_line":"        self._logout_url \u003d \u0027http://%s/rest/logout\u0027 % (self._ip)"}],"source_content_type":"text/x-python","patch_set":3,"id":"baada198_c26753e9","line":57,"in_reply_to":"baada198_c1cd985f","updated":"2014-07-01 00:05:27.000000000","message":"Done","commit_id":"73cc2d94b65921105d274fa431955143acaee12d"},{"author":{"_account_id":1923,"name":"Mohammad Banikazemi","email":"mbanikazemi@gmail.com","username":"mb-s"},"change_message_id":"98f2f0c361dc4458663980f72cf6aa0644320e6e","unresolved":false,"context_lines":[{"line_number":191,"context_line":"    def _check_for_supported_profile(self, thisprofile):"},{"line_number":192,"context_line":"        \"\"\"Filter those profiles that are not currently supported."},{"line_number":193,"context_line":"        \"\"\""},{"line_number":194,"context_line":"        if thisprofile.endswith(\u0027Ipv4TfProfile\u0027) or \\"},{"line_number":195,"context_line":"           thisprofile.endswith(\u0027Ipv4EfProfile\u0027) or \\"},{"line_number":196,"context_line":"           \u0027defaultNetworkL2Profile\u0027 in thisprofile:"},{"line_number":197,"context_line":"            return True"}],"source_content_type":"text/x-python","patch_set":3,"id":"baada198_219574e4","line":194,"updated":"2014-06-30 16:12:43.000000000","message":"ditto.","commit_id":"73cc2d94b65921105d274fa431955143acaee12d"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"c436473dcd9ee0c9cbd90ff93cf20db114221035","unresolved":false,"context_lines":[{"line_number":191,"context_line":"    def _check_for_supported_profile(self, thisprofile):"},{"line_number":192,"context_line":"        \"\"\"Filter those profiles that are not currently supported."},{"line_number":193,"context_line":"        \"\"\""},{"line_number":194,"context_line":"        if thisprofile.endswith(\u0027Ipv4TfProfile\u0027) or \\"},{"line_number":195,"context_line":"           thisprofile.endswith(\u0027Ipv4EfProfile\u0027) or \\"},{"line_number":196,"context_line":"           \u0027defaultNetworkL2Profile\u0027 in thisprofile:"},{"line_number":197,"context_line":"            return True"}],"source_content_type":"text/x-python","patch_set":3,"id":"baada198_02622bd8","line":194,"in_reply_to":"baada198_219574e4","updated":"2014-07-01 00:05:27.000000000","message":"Done","commit_id":"73cc2d94b65921105d274fa431955143acaee12d"},{"author":{"_account_id":1923,"name":"Mohammad Banikazemi","email":"mbanikazemi@gmail.com","username":"mb-s"},"change_message_id":"98f2f0c361dc4458663980f72cf6aa0644320e6e","unresolved":false,"context_lines":[{"line_number":204,"context_line":"        profile_list \u003d []"},{"line_number":205,"context_line":"        these_profiles \u003d []"},{"line_number":206,"context_line":"        these_profiles \u003d self._config_profile_list()"},{"line_number":207,"context_line":"        if len(these_profiles) \u003e 0:"},{"line_number":208,"context_line":"            for i in range(0, len(these_profiles)):"},{"line_number":209,"context_line":"                p \u003d these_profiles[i].get(\"profileName\")"},{"line_number":210,"context_line":"                if self._check_for_supported_profile(p):"}],"source_content_type":"text/x-python","patch_set":3,"id":"baada198_8c81174d","line":207,"updated":"2014-06-30 16:12:43.000000000","message":"profile_list \u003d [p.get(\u0027profileName\u0027) for p in these_profiles\n                     if self._check_for_supported_profile(p.get(\u0027profileName\u0027))]\n\nor\n\nprofile_list \u003d [q for p in these_profiles for q in p.get(\u0027profileName\u0027)\n                     if self._check_for_supported_profile(q)]","commit_id":"73cc2d94b65921105d274fa431955143acaee12d"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"c436473dcd9ee0c9cbd90ff93cf20db114221035","unresolved":false,"context_lines":[{"line_number":204,"context_line":"        profile_list \u003d []"},{"line_number":205,"context_line":"        these_profiles \u003d []"},{"line_number":206,"context_line":"        these_profiles \u003d self._config_profile_list()"},{"line_number":207,"context_line":"        if len(these_profiles) \u003e 0:"},{"line_number":208,"context_line":"            for i in range(0, len(these_profiles)):"},{"line_number":209,"context_line":"                p \u003d these_profiles[i].get(\"profileName\")"},{"line_number":210,"context_line":"                if self._check_for_supported_profile(p):"}],"source_content_type":"text/x-python","patch_set":3,"id":"baada198_d3cf1caf","line":207,"in_reply_to":"baada198_07c5e05a","updated":"2014-07-01 00:05:27.000000000","message":"Done","commit_id":"73cc2d94b65921105d274fa431955143acaee12d"},{"author":{"_account_id":1923,"name":"Mohammad Banikazemi","email":"mbanikazemi@gmail.com","username":"mb-s"},"change_message_id":"b01c49e8c092b00d20d662a42e52b03e2ecb74f4","unresolved":false,"context_lines":[{"line_number":204,"context_line":"        profile_list \u003d []"},{"line_number":205,"context_line":"        these_profiles \u003d []"},{"line_number":206,"context_line":"        these_profiles \u003d self._config_profile_list()"},{"line_number":207,"context_line":"        if len(these_profiles) \u003e 0:"},{"line_number":208,"context_line":"            for i in range(0, len(these_profiles)):"},{"line_number":209,"context_line":"                p \u003d these_profiles[i].get(\"profileName\")"},{"line_number":210,"context_line":"                if self._check_for_supported_profile(p):"}],"source_content_type":"text/x-python","patch_set":3,"id":"baada198_07c5e05a","line":207,"in_reply_to":"baada198_8c81174d","updated":"2014-06-30 16:28:28.000000000","message":"For the second option above please see the following corrected version. Need [  ] for q as shown here:\n\nprofile_list \u003d [q for p in these_profiles for q in [p.get(\u0027profileName\u0027)]\n                     if self._check_for_supported_profile(q)]","commit_id":"73cc2d94b65921105d274fa431955143acaee12d"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"10ad2d179480789a84d0141dd3c9849d116ffb88","unresolved":false,"context_lines":[{"line_number":65,"context_line":""},{"line_number":66,"context_line":"        :network_info: network parameters to be created on DCNM"},{"line_number":67,"context_line":"        \"\"\""},{"line_number":68,"context_line":"        url \u003d self._create_network_url % (network_info[\u0027partitionName\u0027],"},{"line_number":69,"context_line":"                                          network_info[\u0027partitionName\u0027])"},{"line_number":70,"context_line":"        payload \u003d network_info"},{"line_number":71,"context_line":""}],"source_content_type":"text/x-python","patch_set":12,"id":"baada198_eca7f3a6","line":68,"range":{"start_line":68,"start_character":56,"end_line":68,"end_character":69},"updated":"2014-08-05 11:10:19.000000000","message":"organizationName?","commit_id":"662099e140c3044d2c625a7ce4ea53e06c966d5e"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"f72d1727276bb6251ade2fc18336673dd9b1582f","unresolved":false,"context_lines":[{"line_number":65,"context_line":""},{"line_number":66,"context_line":"        :network_info: network parameters to be created on DCNM"},{"line_number":67,"context_line":"        \"\"\""},{"line_number":68,"context_line":"        url \u003d self._create_network_url % (network_info[\u0027partitionName\u0027],"},{"line_number":69,"context_line":"                                          network_info[\u0027partitionName\u0027])"},{"line_number":70,"context_line":"        payload \u003d network_info"},{"line_number":71,"context_line":""}],"source_content_type":"text/x-python","patch_set":12,"id":"baada198_6e37374c","line":68,"in_reply_to":"baada198_eca7f3a6","updated":"2014-08-06 21:15:34.000000000","message":"Because the organization and partition name are the same in the url.","commit_id":"662099e140c3044d2c625a7ce4ea53e06c966d5e"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"02be96eb7969215a0e065116d7ab2aa68d507558","unresolved":false,"context_lines":[{"line_number":40,"context_line":"        self._TIMEOUT_RESPONSE \u003d 10"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"        # urls"},{"line_number":43,"context_line":"        net_url \u003d \u0027http://%s/\u0027 % self._ip"},{"line_number":44,"context_line":"        net_url +\u003d \u0027rest/auto-config/organizations/%s/partitions/%s/networks\u0027"},{"line_number":45,"context_line":"        self._create_network_url \u003d net_url"},{"line_number":46,"context_line":"        cfg_url \u003d \u0027http://%s/rest/auto-config/profiles\u0027 % self._ip"}],"source_content_type":"text/x-python","patch_set":19,"id":"1abeadc6_1d924e9f","line":43,"updated":"2014-08-19 11:42:42.000000000","message":"Will https ever be supported?","commit_id":"9948525d9fec9e0d067b65fe8bcb9da114122d19"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"6e162f393cc6cf523f14b619fdaa0ad31f70da7e","unresolved":false,"context_lines":[{"line_number":40,"context_line":"        self._TIMEOUT_RESPONSE \u003d 10"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"        # urls"},{"line_number":43,"context_line":"        net_url \u003d \u0027http://%s/\u0027 % self._ip"},{"line_number":44,"context_line":"        net_url +\u003d \u0027rest/auto-config/organizations/%s/partitions/%s/networks\u0027"},{"line_number":45,"context_line":"        self._create_network_url \u003d net_url"},{"line_number":46,"context_line":"        cfg_url \u003d \u0027http://%s/rest/auto-config/profiles\u0027 % self._ip"}],"source_content_type":"text/x-python","patch_set":19,"id":"1abeadc6_36b55f31","line":43,"in_reply_to":"1abeadc6_1d924e9f","updated":"2014-08-19 19:33:09.000000000","message":"The DCNM (cisco\u0027s Data Center Network Manager) supports http.","commit_id":"9948525d9fec9e0d067b65fe8bcb9da114122d19"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"02be96eb7969215a0e065116d7ab2aa68d507558","unresolved":false,"context_lines":[{"line_number":267,"context_line":"        cfg_args.append(\"$vrfName\u003d\" + tenant_name + \u0027:\u0027 + tenant_name)"},{"line_number":268,"context_line":"        cfg_args \u003d \u0027;\u0027.join(cfg_args)"},{"line_number":269,"context_line":""},{"line_number":270,"context_line":"        ip_range \u003d \"\""},{"line_number":271,"context_line":"        for ip_pool in subnet.allocation_pools:"},{"line_number":272,"context_line":"            ip_range +\u003d \"%s-%s,\" % (ip_pool[\u0027start\u0027], ip_pool[\u0027end\u0027])"},{"line_number":273,"context_line":""}],"source_content_type":"text/x-python","patch_set":19,"id":"1abeadc6_ddaff692","line":270,"updated":"2014-08-19 11:42:42.000000000","message":"Could do:\n    ip_range \u003d \u0027,\u0027.join([\"%s-%s\" % (p[\u0027start\u0027], p[\u0027end\u0027]) for p in subnet.allocation_pools])\n\nThis will eliminate the extra trailing comma and is faster.","commit_id":"9948525d9fec9e0d067b65fe8bcb9da114122d19"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"6e162f393cc6cf523f14b619fdaa0ad31f70da7e","unresolved":false,"context_lines":[{"line_number":267,"context_line":"        cfg_args.append(\"$vrfName\u003d\" + tenant_name + \u0027:\u0027 + tenant_name)"},{"line_number":268,"context_line":"        cfg_args \u003d \u0027;\u0027.join(cfg_args)"},{"line_number":269,"context_line":""},{"line_number":270,"context_line":"        ip_range \u003d \"\""},{"line_number":271,"context_line":"        for ip_pool in subnet.allocation_pools:"},{"line_number":272,"context_line":"            ip_range +\u003d \"%s-%s,\" % (ip_pool[\u0027start\u0027], ip_pool[\u0027end\u0027])"},{"line_number":273,"context_line":""}],"source_content_type":"text/x-python","patch_set":19,"id":"1abeadc6_b6cecfb2","line":270,"in_reply_to":"1abeadc6_ddaff692","updated":"2014-08-19 19:33:09.000000000","message":"Thanks for the tip. I\u0027ll use that code.","commit_id":"9948525d9fec9e0d067b65fe8bcb9da114122d19"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"02be96eb7969215a0e065116d7ab2aa68d507558","unresolved":false,"context_lines":[{"line_number":288,"context_line":"        LOG.info(_(\"network_info\u003d%s\"), network_info)"},{"line_number":289,"context_line":""},{"line_number":290,"context_line":"        self._create_network(network_info)"},{"line_number":291,"context_line":"        return"},{"line_number":292,"context_line":""},{"line_number":293,"context_line":"    def delete_network(self, tenant_name, network):"},{"line_number":294,"context_line":"        \"\"\"Delete network on the DCNM."}],"source_content_type":"text/x-python","patch_set":19,"id":"1abeadc6_bd831a03","line":291,"updated":"2014-08-19 11:42:42.000000000","message":"not needed. Here and other places.","commit_id":"9948525d9fec9e0d067b65fe8bcb9da114122d19"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"6e162f393cc6cf523f14b619fdaa0ad31f70da7e","unresolved":false,"context_lines":[{"line_number":288,"context_line":"        LOG.info(_(\"network_info\u003d%s\"), network_info)"},{"line_number":289,"context_line":""},{"line_number":290,"context_line":"        self._create_network(network_info)"},{"line_number":291,"context_line":"        return"},{"line_number":292,"context_line":""},{"line_number":293,"context_line":"    def delete_network(self, tenant_name, network):"},{"line_number":294,"context_line":"        \"\"\"Delete network on the DCNM."}],"source_content_type":"text/x-python","patch_set":19,"id":"1abeadc6_2ac09029","line":291,"in_reply_to":"1abeadc6_bd831a03","updated":"2014-08-19 19:33:09.000000000","message":"Done","commit_id":"9948525d9fec9e0d067b65fe8bcb9da114122d19"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"e42b89332ea0461d2ae9c982b5e771f3404a708e","unresolved":false,"context_lines":[{"line_number":69,"context_line":"                                          network_info[\u0027partitionName\u0027])"},{"line_number":70,"context_line":"        payload \u003d network_info"},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"        LOG.info(_(\u0027url %(url)s payload %(payload)s\u0027),"},{"line_number":73,"context_line":"                 {\u0027url\u0027: url, \u0027payload\u0027: payload})"},{"line_number":74,"context_line":"        return (self._send_request(\u0027POST\u0027, url, payload, \u0027network\u0027))"},{"line_number":75,"context_line":""}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_3969798c","line":72,"updated":"2014-08-28 18:53:56.000000000","message":"please use the logging hint _LI","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"e11cc55c16d398536f3276dff6b4123094f14a8b","unresolved":false,"context_lines":[{"line_number":69,"context_line":"                                          network_info[\u0027partitionName\u0027])"},{"line_number":70,"context_line":"        payload \u003d network_info"},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"        LOG.info(_(\u0027url %(url)s payload %(payload)s\u0027),"},{"line_number":73,"context_line":"                 {\u0027url\u0027: url, \u0027payload\u0027: payload})"},{"line_number":74,"context_line":"        return (self._send_request(\u0027POST\u0027, url, payload, \u0027network\u0027))"},{"line_number":75,"context_line":""}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_49d39e03","line":72,"in_reply_to":"1abeadc6_3969798c","updated":"2014-08-29 12:26:18.000000000","message":"+1, since it is a new file, you should use _LI, _LE, _LW, _LC for all logs.","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"3e973b569c560f8a67f33b7353e38eb007acee69","unresolved":false,"context_lines":[{"line_number":69,"context_line":"                                          network_info[\u0027partitionName\u0027])"},{"line_number":70,"context_line":"        payload \u003d network_info"},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"        LOG.info(_(\u0027url %(url)s payload %(payload)s\u0027),"},{"line_number":73,"context_line":"                 {\u0027url\u0027: url, \u0027payload\u0027: payload})"},{"line_number":74,"context_line":"        return (self._send_request(\u0027POST\u0027, url, payload, \u0027network\u0027))"},{"line_number":75,"context_line":""}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_15845509","line":72,"in_reply_to":"1abeadc6_49d39e03","updated":"2014-08-29 15:12:38.000000000","message":"As I mentioned to Gary\u0027s comment since it is all over the patch, I can open a bug and take care of all the hints in the log messages. Gary agreed and hopefully it is okay with you.","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"e11cc55c16d398536f3276dff6b4123094f14a8b","unresolved":false,"context_lines":[{"line_number":210,"context_line":""},{"line_number":211,"context_line":"            self._logout()"},{"line_number":212,"context_line":"        except requests.ConnectionError as e:"},{"line_number":213,"context_line":"            LOG.error(_(\u0027Error connecting to %s\u0027), url)"},{"line_number":214,"context_line":"            LOG.exception(str(e))"},{"line_number":215,"context_line":"            raise dexc.DFAClientRequestFailed(reason\u003de)"},{"line_number":216,"context_line":"        except requests.HTTPError as e:"}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_29002265","line":213,"updated":"2014-08-29 12:26:18.000000000","message":"Should use save_and_reraise_exception() with block for each of these exceptions that are doing logging and then raising exception, as there is a potential (likely) context switch with logging and loss of exception info.\n\nHere and L217, 220.","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"e42b89332ea0461d2ae9c982b5e771f3404a708e","unresolved":false,"context_lines":[{"line_number":210,"context_line":""},{"line_number":211,"context_line":"            self._logout()"},{"line_number":212,"context_line":"        except requests.ConnectionError as e:"},{"line_number":213,"context_line":"            LOG.error(_(\u0027Error connecting to %s\u0027), url)"},{"line_number":214,"context_line":"            LOG.exception(str(e))"},{"line_number":215,"context_line":"            raise dexc.DFAClientRequestFailed(reason\u003de)"},{"line_number":216,"context_line":"        except requests.HTTPError as e:"}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_b90ca9ed","line":213,"updated":"2014-08-28 18:53:56.000000000","message":"please use the logging hint _LE","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"3e973b569c560f8a67f33b7353e38eb007acee69","unresolved":false,"context_lines":[{"line_number":210,"context_line":""},{"line_number":211,"context_line":"            self._logout()"},{"line_number":212,"context_line":"        except requests.ConnectionError as e:"},{"line_number":213,"context_line":"            LOG.error(_(\u0027Error connecting to %s\u0027), url)"},{"line_number":214,"context_line":"            LOG.exception(str(e))"},{"line_number":215,"context_line":"            raise dexc.DFAClientRequestFailed(reason\u003de)"},{"line_number":216,"context_line":"        except requests.HTTPError as e:"}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_b09d6fbe","line":213,"in_reply_to":"1abeadc6_29002265","updated":"2014-08-29 15:12:38.000000000","message":"if I use save_and_rerasie_exception() here, how can I raise DFAClientRequestFailed exception?\nIs it okay to use save_and_reraise_exception(reraise\u003dFalse) and then \nraise dexc.DFAClientRequestFailed ?","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"e42b89332ea0461d2ae9c982b5e771f3404a708e","unresolved":false,"context_lines":[{"line_number":211,"context_line":"            self._logout()"},{"line_number":212,"context_line":"        except requests.ConnectionError as e:"},{"line_number":213,"context_line":"            LOG.error(_(\u0027Error connecting to %s\u0027), url)"},{"line_number":214,"context_line":"            LOG.exception(str(e))"},{"line_number":215,"context_line":"            raise dexc.DFAClientRequestFailed(reason\u003de)"},{"line_number":216,"context_line":"        except requests.HTTPError as e:"},{"line_number":217,"context_line":"            LOG.exception(str(e))"}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_59fd55b0","line":214,"updated":"2014-08-28 18:53:56.000000000","message":"why the additional log - you already know that it is a connection error. you could log the string above","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"3e973b569c560f8a67f33b7353e38eb007acee69","unresolved":false,"context_lines":[{"line_number":211,"context_line":"            self._logout()"},{"line_number":212,"context_line":"        except requests.ConnectionError as e:"},{"line_number":213,"context_line":"            LOG.error(_(\u0027Error connecting to %s\u0027), url)"},{"line_number":214,"context_line":"            LOG.exception(str(e))"},{"line_number":215,"context_line":"            raise dexc.DFAClientRequestFailed(reason\u003de)"},{"line_number":216,"context_line":"        except requests.HTTPError as e:"},{"line_number":217,"context_line":"            LOG.exception(str(e))"}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_30987fbf","line":214,"in_reply_to":"1abeadc6_59fd55b0","updated":"2014-08-29 15:12:38.000000000","message":"Done","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"e42b89332ea0461d2ae9c982b5e771f3404a708e","unresolved":false,"context_lines":[{"line_number":284,"context_line":"                        \"partitionName\": tenant_name,"},{"line_number":285,"context_line":"                        \"description\": network.name,"},{"line_number":286,"context_line":"                        \"dhcpScope\": dhcp_scopes}"},{"line_number":287,"context_line":"        LOG.info(_(\"network_info\u003d%s\"), network_info)"},{"line_number":288,"context_line":""},{"line_number":289,"context_line":"        self._create_network(network_info)"},{"line_number":290,"context_line":""}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_591475e8","line":287,"updated":"2014-08-28 18:53:56.000000000","message":"please use hint","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"e42b89332ea0461d2ae9c982b5e771f3404a708e","unresolved":false,"context_lines":[{"line_number":301,"context_line":"            \u0027partitionName\u0027: tenant_name,"},{"line_number":302,"context_line":"            \u0027segmentId\u0027: seg_id,"},{"line_number":303,"context_line":"        }"},{"line_number":304,"context_line":"        LOG.info(_(\"network_info\u003d%s\"), network_info)"},{"line_number":305,"context_line":""},{"line_number":306,"context_line":"        self._delete_network(network_info)"},{"line_number":307,"context_line":""}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_99d9ad59","line":304,"updated":"2014-08-28 18:53:56.000000000","message":"ditto","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"838fab593cc07834c4629a816a88172c96054399","unresolved":false,"context_lines":[{"line_number":17,"context_line":"from neutron.openstack.common import jsonutils"},{"line_number":18,"context_line":"from neutron.openstack.common import log as logging"},{"line_number":19,"context_line":"from neutron.plugins.ml2.drivers.cisco.dfa import dfa_exceptions as dexc"},{"line_number":20,"context_line":"from oslo.config import cfg"},{"line_number":21,"context_line":"import requests"},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"LOG \u003d logging.getLogger(__name__)"}],"source_content_type":"text/x-python","patch_set":27,"id":"1abeadc6_4ed2b25c","line":20,"updated":"2014-08-29 20:33:18.000000000","message":"import ordering is not correct\n\nfrom oslo.config import cfg\nimport requests\n\u003cblank line\u003e\nfrom neutron.openstack from jsonutils\n...","commit_id":"466409a0add3304ff814f394012958889db9a2f4"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"1c48fba88e2f733cf844d6a9cb7eadd773cba9d6","unresolved":false,"context_lines":[{"line_number":17,"context_line":"from neutron.openstack.common import jsonutils"},{"line_number":18,"context_line":"from neutron.openstack.common import log as logging"},{"line_number":19,"context_line":"from neutron.plugins.ml2.drivers.cisco.dfa import dfa_exceptions as dexc"},{"line_number":20,"context_line":"from oslo.config import cfg"},{"line_number":21,"context_line":"import requests"},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"LOG \u003d logging.getLogger(__name__)"}],"source_content_type":"text/x-python","patch_set":27,"id":"1abeadc6_04a8961e","line":20,"in_reply_to":"1abeadc6_4ed2b25c","updated":"2014-08-30 03:19:27.000000000","message":"Done","commit_id":"466409a0add3304ff814f394012958889db9a2f4"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"838fab593cc07834c4629a816a88172c96054399","unresolved":false,"context_lines":[{"line_number":161,"context_line":"                            auth\u003d(self._user, self._pwd),"},{"line_number":162,"context_line":"                            timeout\u003dself._TIMEOUT_RESPONSE)"},{"line_number":163,"context_line":"        session_id \u003d \u0027\u0027"},{"line_number":164,"context_line":"        if res and res.status_code \u003e\u003d self._resp_ok:"},{"line_number":165,"context_line":"            session_id \u003d res.json().get(\u0027Dcnm-Token\u0027)"},{"line_number":166,"context_line":"        self._req_headers.update({\u0027Dcnm-Token\u0027: session_id})"},{"line_number":167,"context_line":""}],"source_content_type":"text/x-python","patch_set":27,"id":"1abeadc6_eecd3e5e","line":164,"updated":"2014-08-29 20:33:18.000000000","message":"Do we really want to accept something other than 200 here?","commit_id":"466409a0add3304ff814f394012958889db9a2f4"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"1c48fba88e2f733cf844d6a9cb7eadd773cba9d6","unresolved":false,"context_lines":[{"line_number":161,"context_line":"                            auth\u003d(self._user, self._pwd),"},{"line_number":162,"context_line":"                            timeout\u003dself._TIMEOUT_RESPONSE)"},{"line_number":163,"context_line":"        session_id \u003d \u0027\u0027"},{"line_number":164,"context_line":"        if res and res.status_code \u003e\u003d self._resp_ok:"},{"line_number":165,"context_line":"            session_id \u003d res.json().get(\u0027Dcnm-Token\u0027)"},{"line_number":166,"context_line":"        self._req_headers.update({\u0027Dcnm-Token\u0027: session_id})"},{"line_number":167,"context_line":""}],"source_content_type":"text/x-python","patch_set":27,"id":"1abeadc6_848026f8","line":164,"in_reply_to":"1abeadc6_eecd3e5e","updated":"2014-08-30 03:19:27.000000000","message":"Done","commit_id":"466409a0add3304ff814f394012958889db9a2f4"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"838fab593cc07834c4629a816a88172c96054399","unresolved":false,"context_lines":[{"line_number":180,"context_line":"            if payload and payload !\u003d \u0027\u0027:"},{"line_number":181,"context_line":"                payload_json \u003d jsonutils.dumps(payload)"},{"line_number":182,"context_line":"            self._login()"},{"line_number":183,"context_line":"            if operation \u003d\u003d \u0027POST\u0027:"},{"line_number":184,"context_line":"                res \u003d requests.post(url,"},{"line_number":185,"context_line":"                                    data\u003dpayload_json,"},{"line_number":186,"context_line":"                                    headers\u003dself._req_headers,"}],"source_content_type":"text/x-python","patch_set":27,"id":"1abeadc6_ae5b4684","line":183,"updated":"2014-08-29 20:33:18.000000000","message":"so you can actually consolidate most of this:\nreplace 183-206 with:\ndesc_lookup \u003d {\u0027POST\u0027: \u0027creation\u0027, \u0027PUT\u0027: \u0027update\u0027, \u0027DELETE\u0027:\u0027deletion\u0027}\n\nres \u003d requests.request(operation, url, data\u003d, headers\u003d,timeout\u003d)\ndesc +\u003d desc_lookup.get(operation, operation.lower())","commit_id":"466409a0add3304ff814f394012958889db9a2f4"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"1c48fba88e2f733cf844d6a9cb7eadd773cba9d6","unresolved":false,"context_lines":[{"line_number":180,"context_line":"            if payload and payload !\u003d \u0027\u0027:"},{"line_number":181,"context_line":"                payload_json \u003d jsonutils.dumps(payload)"},{"line_number":182,"context_line":"            self._login()"},{"line_number":183,"context_line":"            if operation \u003d\u003d \u0027POST\u0027:"},{"line_number":184,"context_line":"                res \u003d requests.post(url,"},{"line_number":185,"context_line":"                                    data\u003dpayload_json,"},{"line_number":186,"context_line":"                                    headers\u003dself._req_headers,"}],"source_content_type":"text/x-python","patch_set":27,"id":"1abeadc6_477610a5","line":183,"in_reply_to":"1abeadc6_ae5b4684","updated":"2014-08-30 03:19:27.000000000","message":"Thanks. totally make sense.","commit_id":"466409a0add3304ff814f394012958889db9a2f4"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"838fab593cc07834c4629a816a88172c96054399","unresolved":false,"context_lines":[{"line_number":212,"context_line":"            LOG.exception(_(\u0027Error connecting to %s\u0027), url)"},{"line_number":213,"context_line":"            raise dexc.DFAClientRequestFailed(reason\u003de)"},{"line_number":214,"context_line":"        except requests.HTTPError as e:"},{"line_number":215,"context_line":"            LOG.exception(str(e))"},{"line_number":216,"context_line":"            raise dexc.DFAClientRequestFailed(reason\u003de)"},{"line_number":217,"context_line":"        except requests.Timeout as e:"},{"line_number":218,"context_line":"            LOG.exception(str(e))"}],"source_content_type":"text/x-python","patch_set":27,"id":"1abeadc6_ce8a42be","line":215,"updated":"2014-08-29 20:33:18.000000000","message":"no need to call string on e... LOG.exception will  do that for you.  Also you can consolidate this code too:\n\nreplace lines 214-220:\n\nexcept (requests.HTTPError, requests.Timeout) as e:\n    LOG.exception(\u0027Error during request\u0027)\n    raise raise dexc.DFAClientRequestFailed(reason\u003de)","commit_id":"466409a0add3304ff814f394012958889db9a2f4"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"1c48fba88e2f733cf844d6a9cb7eadd773cba9d6","unresolved":false,"context_lines":[{"line_number":212,"context_line":"            LOG.exception(_(\u0027Error connecting to %s\u0027), url)"},{"line_number":213,"context_line":"            raise dexc.DFAClientRequestFailed(reason\u003de)"},{"line_number":214,"context_line":"        except requests.HTTPError as e:"},{"line_number":215,"context_line":"            LOG.exception(str(e))"},{"line_number":216,"context_line":"            raise dexc.DFAClientRequestFailed(reason\u003de)"},{"line_number":217,"context_line":"        except requests.Timeout as e:"},{"line_number":218,"context_line":"            LOG.exception(str(e))"}],"source_content_type":"text/x-python","patch_set":27,"id":"1abeadc6_076098cd","line":215,"in_reply_to":"1abeadc6_ce8a42be","updated":"2014-08-30 03:19:27.000000000","message":"Done","commit_id":"466409a0add3304ff814f394012958889db9a2f4"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"838fab593cc07834c4629a816a88172c96054399","unresolved":false,"context_lines":[{"line_number":256,"context_line":"        seg_id \u003d str(network.provider__segmentation_id)"},{"line_number":257,"context_line":"        subnet_ip_mask \u003d subnet.cidr.split(\u0027/\u0027)"},{"line_number":258,"context_line":"        gw_ip \u003d subnet.gateway_ip"},{"line_number":259,"context_line":"        cfg_args \u003d []"},{"line_number":260,"context_line":"        cfg_args.append(\"$segmentId\u003d\" + seg_id)"},{"line_number":261,"context_line":"        cfg_args.append(\"$netMaskLength\u003d\" + subnet_ip_mask[1])"},{"line_number":262,"context_line":"        cfg_args.append(\"$gatewayIpAddress\u003d\" + gw_ip)"}],"source_content_type":"text/x-python","patch_set":27,"id":"1abeadc6_ce7882c6","line":259,"updated":"2014-08-29 20:33:18.000000000","message":"append is slow here.. you can reformat and build the elements in the list definition\n\ncfg_args \u003d [\n   \"$segmentId\u003d\" + seg_id,\n   \"$netMaskLength\u003d\" + subnet_ip_mask[1],\n   ...\n\n]","commit_id":"466409a0add3304ff814f394012958889db9a2f4"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"1c48fba88e2f733cf844d6a9cb7eadd773cba9d6","unresolved":false,"context_lines":[{"line_number":256,"context_line":"        seg_id \u003d str(network.provider__segmentation_id)"},{"line_number":257,"context_line":"        subnet_ip_mask \u003d subnet.cidr.split(\u0027/\u0027)"},{"line_number":258,"context_line":"        gw_ip \u003d subnet.gateway_ip"},{"line_number":259,"context_line":"        cfg_args \u003d []"},{"line_number":260,"context_line":"        cfg_args.append(\"$segmentId\u003d\" + seg_id)"},{"line_number":261,"context_line":"        cfg_args.append(\"$netMaskLength\u003d\" + subnet_ip_mask[1])"},{"line_number":262,"context_line":"        cfg_args.append(\"$gatewayIpAddress\u003d\" + gw_ip)"}],"source_content_type":"text/x-python","patch_set":27,"id":"1abeadc6_67878c61","line":259,"in_reply_to":"1abeadc6_ce7882c6","updated":"2014-08-30 03:19:27.000000000","message":"Done","commit_id":"466409a0add3304ff814f394012958889db9a2f4"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"838fab593cc07834c4629a816a88172c96054399","unresolved":false,"context_lines":[{"line_number":282,"context_line":"                        \"partitionName\": tenant_name,"},{"line_number":283,"context_line":"                        \"description\": network.name,"},{"line_number":284,"context_line":"                        \"dhcpScope\": dhcp_scopes}"},{"line_number":285,"context_line":"        LOG.info(_(\"network_info\u003d%s\"), network_info)"},{"line_number":286,"context_line":""},{"line_number":287,"context_line":"        self._create_network(network_info)"},{"line_number":288,"context_line":""}],"source_content_type":"text/x-python","patch_set":27,"id":"1abeadc6_2e51f62f","line":285,"updated":"2014-08-29 20:33:18.000000000","message":"This log message should probably say include that this log is a result of create_network.  Also this seems like this should be debug information and not translated.  Please see https://wiki.openstack.org/wiki/LoggingStandards#INFO_log_level_is_for_Operators","commit_id":"466409a0add3304ff814f394012958889db9a2f4"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"1c48fba88e2f733cf844d6a9cb7eadd773cba9d6","unresolved":false,"context_lines":[{"line_number":282,"context_line":"                        \"partitionName\": tenant_name,"},{"line_number":283,"context_line":"                        \"description\": network.name,"},{"line_number":284,"context_line":"                        \"dhcpScope\": dhcp_scopes}"},{"line_number":285,"context_line":"        LOG.info(_(\"network_info\u003d%s\"), network_info)"},{"line_number":286,"context_line":""},{"line_number":287,"context_line":"        self._create_network(network_info)"},{"line_number":288,"context_line":""}],"source_content_type":"text/x-python","patch_set":27,"id":"1abeadc6_87f10803","line":285,"in_reply_to":"1abeadc6_2e51f62f","updated":"2014-08-30 03:19:27.000000000","message":"Done","commit_id":"466409a0add3304ff814f394012958889db9a2f4"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"838fab593cc07834c4629a816a88172c96054399","unresolved":false,"context_lines":[{"line_number":299,"context_line":"            \u0027partitionName\u0027: tenant_name,"},{"line_number":300,"context_line":"            \u0027segmentId\u0027: seg_id,"},{"line_number":301,"context_line":"        }"},{"line_number":302,"context_line":"        LOG.info(_(\"network_info\u003d%s\"), network_info)"},{"line_number":303,"context_line":""},{"line_number":304,"context_line":"        self._delete_network(network_info)"},{"line_number":305,"context_line":""}],"source_content_type":"text/x-python","patch_set":27,"id":"1abeadc6_2e281696","line":302,"updated":"2014-08-29 20:33:18.000000000","message":"same general comment on adding a better descriptor than just the data structure","commit_id":"466409a0add3304ff814f394012958889db9a2f4"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"1c48fba88e2f733cf844d6a9cb7eadd773cba9d6","unresolved":false,"context_lines":[{"line_number":299,"context_line":"            \u0027partitionName\u0027: tenant_name,"},{"line_number":300,"context_line":"            \u0027segmentId\u0027: seg_id,"},{"line_number":301,"context_line":"        }"},{"line_number":302,"context_line":"        LOG.info(_(\"network_info\u003d%s\"), network_info)"},{"line_number":303,"context_line":""},{"line_number":304,"context_line":"        self._delete_network(network_info)"},{"line_number":305,"context_line":""}],"source_content_type":"text/x-python","patch_set":27,"id":"1abeadc6_a7f444f1","line":302,"in_reply_to":"1abeadc6_2e281696","updated":"2014-08-30 03:19:27.000000000","message":"Done","commit_id":"466409a0add3304ff814f394012958889db9a2f4"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"838fab593cc07834c4629a816a88172c96054399","unresolved":false,"context_lines":[{"line_number":317,"context_line":"        :org_name: name of organization to be created"},{"line_number":318,"context_line":"        :desc: string that describes organization"},{"line_number":319,"context_line":"        \"\"\""},{"line_number":320,"context_line":"        if desc is None:"},{"line_number":321,"context_line":"            desc \u003d org_name"},{"line_number":322,"context_line":"        self._create_org(org_name, desc)"},{"line_number":323,"context_line":"        self._create_partition(org_name, org_name, desc)"}],"source_content_type":"text/x-python","patch_set":27,"id":"1abeadc6_712bcf81","line":320,"updated":"2014-08-29 20:33:18.000000000","message":"replace 320-321 with:\n\ndesc \u003d desc or org_name","commit_id":"466409a0add3304ff814f394012958889db9a2f4"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"1c48fba88e2f733cf844d6a9cb7eadd773cba9d6","unresolved":false,"context_lines":[{"line_number":317,"context_line":"        :org_name: name of organization to be created"},{"line_number":318,"context_line":"        :desc: string that describes organization"},{"line_number":319,"context_line":"        \"\"\""},{"line_number":320,"context_line":"        if desc is None:"},{"line_number":321,"context_line":"            desc \u003d org_name"},{"line_number":322,"context_line":"        self._create_org(org_name, desc)"},{"line_number":323,"context_line":"        self._create_partition(org_name, org_name, desc)"}],"source_content_type":"text/x-python","patch_set":27,"id":"1abeadc6_04ab3675","line":320,"in_reply_to":"1abeadc6_712bcf81","updated":"2014-08-30 03:19:27.000000000","message":"Done","commit_id":"466409a0add3304ff814f394012958889db9a2f4"}],"neutron/plugins/ml2/drivers/cisco/dfa/config.py":[{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"511b3417415c2c0343e78c9f18a3f6bad3bc967f","unresolved":false,"context_lines":[{"line_number":38,"context_line":"                       \"and exchange information.\""},{"line_number":39,"context_line":"                       \"\u003cmechanism dirver name\u003e:\u003cmechanism driver topicname\u003e:\""},{"line_number":40,"context_line":"                       \"\u003ctopic name on neutron agent side\u003e\")),"},{"line_number":41,"context_line":"]"},{"line_number":42,"context_line":""},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"cfg.CONF.register_opts(ml2_cisco_dfa_opts, \"ml2_cisco_dfa\")"}],"source_content_type":"text/x-python","patch_set":4,"id":"baada198_16233706","line":41,"updated":"2014-07-01 08:47:11.000000000","message":"- why to have two copies of definition of this option?\n- why this needs to be configurable?","commit_id":"476eb1913182b27d2730874e39bf3d394428a11c"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"a14ecef8f675768de334b8ec15f0017e2ba220ad","unresolved":false,"context_lines":[{"line_number":38,"context_line":"                       \"and exchange information.\""},{"line_number":39,"context_line":"                       \"\u003cmechanism dirver name\u003e:\u003cmechanism driver topicname\u003e:\""},{"line_number":40,"context_line":"                       \"\u003ctopic name on neutron agent side\u003e\")),"},{"line_number":41,"context_line":"]"},{"line_number":42,"context_line":""},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"cfg.CONF.register_opts(ml2_cisco_dfa_opts, \"ml2_cisco_dfa\")"}],"source_content_type":"text/x-python","patch_set":4,"id":"baada198_23e8dc0f","line":41,"in_reply_to":"baada198_16233706","updated":"2014-07-02 00:03:21.000000000","message":"1. I removed this copy and added code to read config.\n\n2. The reason is that on the agent side (ovs_neutron_agent) we need to setup rpc to exchange info with mechanism driver. Made it configurable to setup the rpc if the parameters are defined for cisco dfa.","commit_id":"476eb1913182b27d2730874e39bf3d394428a11c"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"ec0cc9cedb123a78113171039d4ef22c362cbf15","unresolved":false,"context_lines":[{"line_number":50,"context_line":"            for parsed_item in parsed_file.keys():"},{"line_number":51,"context_line":"                for key, value in parsed_file[parsed_item].items():"},{"line_number":52,"context_line":"                    if parsed_item \u003d\u003d \u0027mech_driver_agent\u0027:"},{"line_number":53,"context_line":"                        self.dfa_cfg[key] \u003d value"}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_06692625","line":53,"updated":"2014-07-02 00:50:38.000000000","message":"you want to avoid importing neutron/plugins/openvswitch/common/config.py for some reasons?","commit_id":"4bf5fd49cfa55f7c9d8b65ae5fed0aec01816ebc"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"437c937556f2a9d02b80dd68d623f6aece4b8c66","unresolved":false,"context_lines":[{"line_number":50,"context_line":"            for parsed_item in parsed_file.keys():"},{"line_number":51,"context_line":"                for key, value in parsed_file[parsed_item].items():"},{"line_number":52,"context_line":"                    if parsed_item \u003d\u003d \u0027mech_driver_agent\u0027:"},{"line_number":53,"context_line":"                        self.dfa_cfg[key] \u003d value"}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_0acdd286","line":53,"in_reply_to":"baada198_06692625","updated":"2014-07-09 15:38:22.000000000","message":"I tried not to import from openvswitch or agent side in the MD, so added the code to read from the config file. If it is okay I\u0027ll keep it otherwise import the config from openvswitch.","commit_id":"4bf5fd49cfa55f7c9d8b65ae5fed0aec01816ebc"},{"author":{"_account_id":8645,"name":"Trinath Somanchi","email":"trinath.somanchi@freescale.com","username":"trinaths"},"change_message_id":"f006f0c8e9218a49ac4d0b61801852f6b17a603f","unresolved":false,"context_lines":[{"line_number":25,"context_line":"    cfg.StrOpt(\u0027dcnm_user\u0027, default\u003d\u0027user\u0027,"},{"line_number":26,"context_line":"               help\u003d_(\"User login name for DCNM.\")),"},{"line_number":27,"context_line":"    cfg.StrOpt(\u0027dcnm_password\u0027, default\u003d\u0027password\u0027,"},{"line_number":28,"context_line":"               help\u003d_(\"Login password for DCNM.\")),"},{"line_number":29,"context_line":"    cfg.StrOpt(\u0027gateway_mac\u0027, default\u003d\u002700:00:DE:AD:BE:EF\u0027,"},{"line_number":30,"context_line":"               help\u003d_(\"Gateway mac address when using proxy mode.\")),"},{"line_number":31,"context_line":"]"}],"source_content_type":"text/x-python","patch_set":23,"id":"1abeadc6_3899ef6e","line":28,"updated":"2014-08-26 06:59:55.000000000","message":"secret\u003dTrue,","commit_id":"b11b889913806b379ae32190c3be5fee387491f1"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"e6517e634e857b82f4c3976505382e1dc22560f9","unresolved":false,"context_lines":[{"line_number":25,"context_line":"    cfg.StrOpt(\u0027dcnm_user\u0027, default\u003d\u0027user\u0027,"},{"line_number":26,"context_line":"               help\u003d_(\"User login name for DCNM.\")),"},{"line_number":27,"context_line":"    cfg.StrOpt(\u0027dcnm_password\u0027, default\u003d\u0027password\u0027,"},{"line_number":28,"context_line":"               help\u003d_(\"Login password for DCNM.\")),"},{"line_number":29,"context_line":"    cfg.StrOpt(\u0027gateway_mac\u0027, default\u003d\u002700:00:DE:AD:BE:EF\u0027,"},{"line_number":30,"context_line":"               help\u003d_(\"Gateway mac address when using proxy mode.\")),"},{"line_number":31,"context_line":"]"}],"source_content_type":"text/x-python","patch_set":23,"id":"1abeadc6_f0713e78","line":28,"in_reply_to":"1abeadc6_3899ef6e","updated":"2014-08-26 14:40:45.000000000","message":"+1","commit_id":"b11b889913806b379ae32190c3be5fee387491f1"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"6e7f4b648d57b26643d971003d3aadb1c65ee56e","unresolved":false,"context_lines":[{"line_number":25,"context_line":"    cfg.StrOpt(\u0027dcnm_user\u0027, default\u003d\u0027user\u0027,"},{"line_number":26,"context_line":"               help\u003d_(\"User login name for DCNM.\")),"},{"line_number":27,"context_line":"    cfg.StrOpt(\u0027dcnm_password\u0027, default\u003d\u0027password\u0027,"},{"line_number":28,"context_line":"               help\u003d_(\"Login password for DCNM.\")),"},{"line_number":29,"context_line":"    cfg.StrOpt(\u0027gateway_mac\u0027, default\u003d\u002700:00:DE:AD:BE:EF\u0027,"},{"line_number":30,"context_line":"               help\u003d_(\"Gateway mac address when using proxy mode.\")),"},{"line_number":31,"context_line":"]"}],"source_content_type":"text/x-python","patch_set":23,"id":"1abeadc6_07e76113","line":28,"in_reply_to":"1abeadc6_3899ef6e","updated":"2014-08-26 15:36:55.000000000","message":"Done","commit_id":"b11b889913806b379ae32190c3be5fee387491f1"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"e42b89332ea0461d2ae9c982b5e771f3404a708e","unresolved":false,"context_lines":[{"line_number":44,"context_line":"        read_ok \u003d multi_parser.read(cfg.CONF.config_file)"},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"        if len(read_ok) !\u003d len(cfg.CONF.config_file):"},{"line_number":47,"context_line":"            raise cfg.Error(_(\"Failed to read config files %(cfgf)s\"),"},{"line_number":48,"context_line":"                            {\u0027cfgf\u0027: cfg.CONF.config_file})"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"        for parsed_file in multi_parser.parsed:"}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_39eed9ed","line":47,"updated":"2014-08-28 18:53:56.000000000","message":"this will not work, you need a % instead of the ,","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"3e973b569c560f8a67f33b7353e38eb007acee69","unresolved":false,"context_lines":[{"line_number":44,"context_line":"        read_ok \u003d multi_parser.read(cfg.CONF.config_file)"},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"        if len(read_ok) !\u003d len(cfg.CONF.config_file):"},{"line_number":47,"context_line":"            raise cfg.Error(_(\"Failed to read config files %(cfgf)s\"),"},{"line_number":48,"context_line":"                            {\u0027cfgf\u0027: cfg.CONF.config_file})"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"        for parsed_file in multi_parser.parsed:"}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_bf91c048","line":47,"in_reply_to":"1abeadc6_39eed9ed","updated":"2014-08-29 15:12:38.000000000","message":"Done","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"e11cc55c16d398536f3276dff6b4123094f14a8b","unresolved":false,"context_lines":[{"line_number":44,"context_line":"        read_ok \u003d multi_parser.read(cfg.CONF.config_file)"},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"        if len(read_ok) !\u003d len(cfg.CONF.config_file):"},{"line_number":47,"context_line":"            raise cfg.Error(_(\"Failed to read config files %(cfgf)s\"),"},{"line_number":48,"context_line":"                            {\u0027cfgf\u0027: cfg.CONF.config_file})"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"        for parsed_file in multi_parser.parsed:"}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_4941dea7","line":47,"in_reply_to":"1abeadc6_39eed9ed","updated":"2014-08-29 12:26:18.000000000","message":"nit: cfgf -\u003e file","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"3e973b569c560f8a67f33b7353e38eb007acee69","unresolved":false,"context_lines":[{"line_number":44,"context_line":"        read_ok \u003d multi_parser.read(cfg.CONF.config_file)"},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"        if len(read_ok) !\u003d len(cfg.CONF.config_file):"},{"line_number":47,"context_line":"            raise cfg.Error(_(\"Failed to read config files %(cfgf)s\"),"},{"line_number":48,"context_line":"                            {\u0027cfgf\u0027: cfg.CONF.config_file})"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"        for parsed_file in multi_parser.parsed:"}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_9f6fa45f","line":47,"in_reply_to":"1abeadc6_4941dea7","updated":"2014-08-29 15:12:38.000000000","message":"Done","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"838fab593cc07834c4629a816a88172c96054399","unresolved":false,"context_lines":[{"line_number":33,"context_line":"cfg.CONF.register_opts(ml2_cisco_dfa_opts, \"ml2_cisco_dfa\")"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"class CiscoDFAConfig(object):"},{"line_number":37,"context_line":"    \"\"\"Cisco DFA Mechanism Driver Configuration class.\"\"\""},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"    dfa_cfg \u003d {}"}],"source_content_type":"text/x-python","patch_set":27,"id":"1abeadc6_5176d3a4","line":36,"updated":"2014-08-29 20:33:18.000000000","message":"Why is this necessary?","commit_id":"466409a0add3304ff814f394012958889db9a2f4"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"1c48fba88e2f733cf844d6a9cb7eadd773cba9d6","unresolved":false,"context_lines":[{"line_number":33,"context_line":"cfg.CONF.register_opts(ml2_cisco_dfa_opts, \"ml2_cisco_dfa\")"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"class CiscoDFAConfig(object):"},{"line_number":37,"context_line":"    \"\"\"Cisco DFA Mechanism Driver Configuration class.\"\"\""},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"    dfa_cfg \u003d {}"}],"source_content_type":"text/x-python","patch_set":27,"id":"1abeadc6_07ab3875","line":36,"in_reply_to":"1abeadc6_5176d3a4","updated":"2014-08-30 03:19:27.000000000","message":"Because of duplicate register options I had to get value of  \u0027mech_driver_agent\u0027 using this config.","commit_id":"466409a0add3304ff814f394012958889db9a2f4"}],"neutron/plugins/ml2/drivers/cisco/dfa/config_profile.py":[{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"6477756b09e7550ecf31253f52653a758e044171","unresolved":false,"context_lines":[{"line_number":43,"context_line":""},{"line_number":44,"context_line":"class Config_profile(extensions.ExtensionDescriptor):"},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"    @classmethod"},{"line_number":47,"context_line":"    def get_name(cls):"},{"line_number":48,"context_line":"        return \"Cisco DFA Config Profiles\""},{"line_number":49,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_bff3ff9c","line":46,"updated":"2014-07-02 16:58:18.000000000","message":"Why @classmethod? You don\u0027t use the cls attribute","commit_id":"4bf5fd49cfa55f7c9d8b65ae5fed0aec01816ebc"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"437c937556f2a9d02b80dd68d623f6aece4b8c66","unresolved":false,"context_lines":[{"line_number":43,"context_line":""},{"line_number":44,"context_line":"class Config_profile(extensions.ExtensionDescriptor):"},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"    @classmethod"},{"line_number":47,"context_line":"    def get_name(cls):"},{"line_number":48,"context_line":"        return \"Cisco DFA Config Profiles\""},{"line_number":49,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_82501733","line":46,"in_reply_to":"baada198_bff3ff9c","updated":"2014-07-09 15:38:22.000000000","message":"The extension api is using it.\nThe implementation of this class is similar to existing extension\u0027s classes.","commit_id":"4bf5fd49cfa55f7c9d8b65ae5fed0aec01816ebc"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"8cbdcc74fe2d579755400ab1e3a50eea7cb7570c","unresolved":false,"context_lines":[{"line_number":70,"context_line":"        plugin \u003d manager.NeutronManager.get_plugin()"},{"line_number":71,"context_line":"        for md in plugin.mechanism_manager.ordered_mech_drivers:"},{"line_number":72,"context_line":"            if hasattr(md.obj, \u0027_supported_extension_aliases\u0027):"},{"line_number":73,"context_line":"                if cls.get_alias() in md.obj._supported_extension_aliases:"},{"line_number":74,"context_line":"                    plugin \u003d md.obj"},{"line_number":75,"context_line":"                    break"},{"line_number":76,"context_line":""}],"source_content_type":"text/x-python","patch_set":9,"id":"baada198_d4cf82b1","line":73,"updated":"2014-07-24 23:34:01.000000000","message":"You need to package this extension as a service plugin, and explicitly configure it. The mechanism driver API does not include a _supported_extension_alias property, and drivers should not have any direct dependencies on internal ML2 code such as its MechanismManager.","commit_id":"15172c9ecdb964400cbfe3356dcab4f4bb461413"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"dbdb7e1234fb9013b1d23135317c2e6b71fc5d22","unresolved":false,"context_lines":[{"line_number":70,"context_line":"        plugin \u003d manager.NeutronManager.get_plugin()"},{"line_number":71,"context_line":"        for md in plugin.mechanism_manager.ordered_mech_drivers:"},{"line_number":72,"context_line":"            if hasattr(md.obj, \u0027_supported_extension_aliases\u0027):"},{"line_number":73,"context_line":"                if cls.get_alias() in md.obj._supported_extension_aliases:"},{"line_number":74,"context_line":"                    plugin \u003d md.obj"},{"line_number":75,"context_line":"                    break"},{"line_number":76,"context_line":""}],"source_content_type":"text/x-python","patch_set":9,"id":"baada198_945ca782","line":73,"in_reply_to":"baada198_d4cf82b1","updated":"2014-07-29 15:36:43.000000000","message":"Will implement the config_profile resource as service plugin.\n_supported_extension_aliases  will be gone with implementation of new ExtensionDriver.","commit_id":"15172c9ecdb964400cbfe3356dcab4f4bb461413"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"ed5bfea4906488eb59f640ce8edc6a0475d95c84","unresolved":false,"context_lines":[{"line_number":70,"context_line":"        plugin \u003d manager.NeutronManager.get_plugin()"},{"line_number":71,"context_line":"        for md in plugin.mechanism_manager.ordered_mech_drivers:"},{"line_number":72,"context_line":"            if hasattr(md.obj, \u0027_supported_extension_aliases\u0027):"},{"line_number":73,"context_line":"                if cls.get_alias() in md.obj._supported_extension_aliases:"},{"line_number":74,"context_line":"                    plugin \u003d md.obj"},{"line_number":75,"context_line":"                    break"},{"line_number":76,"context_line":""}],"source_content_type":"text/x-python","patch_set":9,"id":"baada198_d90b217a","line":73,"in_reply_to":"baada198_d4cf82b1","updated":"2014-08-01 23:47:47.000000000","message":"With new ExtensionDriver dependency to _supported_extension_aliases will be removed and it can be modified to use the name of mechanism driver instead.\n\nOne concern that I have is as follow:\n\nWhile I was implementing config profile (which is a vendor specific) as a service plugin, I needed to modify some of the existing common file(s) (for instance some vendor specific definition to the neutron/neutron/plugins/common/constants.py).\nWhen vendor specific service name (i.e. config profile) appears along with vpn, faas, lbaas,... (which are not vendor specific)  would that be acceptable? and wouldn\u0027t raise any issue with other reviewers.","commit_id":"15172c9ecdb964400cbfe3356dcab4f4bb461413"}],"neutron/plugins/ml2/drivers/cisco/dfa/constants.py":[{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"00df084aa08409588580cfcb857d7afe771bb38e","unresolved":false,"context_lines":[{"line_number":13,"context_line":"#    License for the specific language governing permissions and limitations"},{"line_number":14,"context_line":"#    under the License."},{"line_number":15,"context_line":"#"},{"line_number":16,"context_line":"# @author: Nader Lahouti, Cisco Systems, Inc."},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"CISCO_DFA_MECH_DRVR_NAME \u003d \u0027cisco_dfa\u0027"},{"line_number":19,"context_line":"DEFAULT_CFG_PROFILE_ID \u003d \u002700000000-0000-0000-0000-000000000000\u0027"}],"source_content_type":"text/x-python","patch_set":19,"id":"1abeadc6_47915998","line":16,"updated":"2014-08-19 10:29:15.000000000","message":"note that there is patch in review for removing author tags. I\u0027m not aware if they\u0027re verboten or not now, but a pep8 check to prevent their addition is being implemented.\n\nIf you don\u0027t feel strongly about having your name in these modules, please consider removing @author tags.\n\nYour authorship will be preserved in git logs.","commit_id":"9948525d9fec9e0d067b65fe8bcb9da114122d19"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"6e162f393cc6cf523f14b619fdaa0ad31f70da7e","unresolved":false,"context_lines":[{"line_number":13,"context_line":"#    License for the specific language governing permissions and limitations"},{"line_number":14,"context_line":"#    under the License."},{"line_number":15,"context_line":"#"},{"line_number":16,"context_line":"# @author: Nader Lahouti, Cisco Systems, Inc."},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"CISCO_DFA_MECH_DRVR_NAME \u003d \u0027cisco_dfa\u0027"},{"line_number":19,"context_line":"DEFAULT_CFG_PROFILE_ID \u003d \u002700000000-0000-0000-0000-000000000000\u0027"}],"source_content_type":"text/x-python","patch_set":19,"id":"1abeadc6_aa1020a9","line":16,"in_reply_to":"1abeadc6_47915998","updated":"2014-08-19 19:33:09.000000000","message":"I am not aware of that patch. I was following the GNU guideline. If it is not needed, I\u0027ll remove the author tag.","commit_id":"9948525d9fec9e0d067b65fe8bcb9da114122d19"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"838fab593cc07834c4629a816a88172c96054399","unresolved":false,"context_lines":[{"line_number":15,"context_line":"#"},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"CISCO_DFA_MECH_DRVR_NAME \u003d \u0027cisco_dfa\u0027"},{"line_number":18,"context_line":"DEFAULT_CFG_PROFILE_ID \u003d \u002700000000-0000-0000-0000-000000000000\u0027"},{"line_number":19,"context_line":"CONFIG_PROFILE_ID \u003d \u0027dfa:cfg_profile_id\u0027"}],"source_content_type":"text/x-python","patch_set":27,"id":"1abeadc6_b1cba7a2","line":18,"updated":"2014-08-29 20:33:18.000000000","message":"suggest you programmatically calc it\n\nDEFAULT_CFG_PROFILE_ID \u003d str(uuid.UUID(int\u003d0))","commit_id":"466409a0add3304ff814f394012958889db9a2f4"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"1c48fba88e2f733cf844d6a9cb7eadd773cba9d6","unresolved":false,"context_lines":[{"line_number":15,"context_line":"#"},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"CISCO_DFA_MECH_DRVR_NAME \u003d \u0027cisco_dfa\u0027"},{"line_number":18,"context_line":"DEFAULT_CFG_PROFILE_ID \u003d \u002700000000-0000-0000-0000-000000000000\u0027"},{"line_number":19,"context_line":"CONFIG_PROFILE_ID \u003d \u0027dfa:cfg_profile_id\u0027"}],"source_content_type":"text/x-python","patch_set":27,"id":"1abeadc6_67bb0cc4","line":18,"in_reply_to":"1abeadc6_b1cba7a2","updated":"2014-08-30 03:19:27.000000000","message":"Done","commit_id":"466409a0add3304ff814f394012958889db9a2f4"}],"neutron/plugins/ml2/drivers/cisco/dfa/dfa_cfg_profile.py":[{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"6477756b09e7550ecf31253f52653a758e044171","unresolved":false,"context_lines":[{"line_number":30,"context_line":""},{"line_number":31,"context_line":"class Dfa_cfg_profile(extensions.ExtensionDescriptor):"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"    @classmethod"},{"line_number":34,"context_line":"    def get_name(cls):"},{"line_number":35,"context_line":"        return \"Cisco DFA Config Profile Extension\""},{"line_number":36,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_bf4a1fc3","line":33,"updated":"2014-07-02 16:58:18.000000000","message":"Why @classmethod ?","commit_id":"4bf5fd49cfa55f7c9d8b65ae5fed0aec01816ebc"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"437c937556f2a9d02b80dd68d623f6aece4b8c66","unresolved":false,"context_lines":[{"line_number":30,"context_line":""},{"line_number":31,"context_line":"class Dfa_cfg_profile(extensions.ExtensionDescriptor):"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"    @classmethod"},{"line_number":34,"context_line":"    def get_name(cls):"},{"line_number":35,"context_line":"        return \"Cisco DFA Config Profile Extension\""},{"line_number":36,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_020a4725","line":33,"in_reply_to":"baada198_bf4a1fc3","updated":"2014-07-09 15:38:22.000000000","message":"For the same reason described in neutron/plugins/ml2/drivers/cisco/dfa/config_profile.py","commit_id":"4bf5fd49cfa55f7c9d8b65ae5fed0aec01816ebc"}],"neutron/plugins/ml2/drivers/cisco/dfa/dfa_exceptions.py":[{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"e42b89332ea0461d2ae9c982b5e771f3404a708e","unresolved":false,"context_lines":[{"line_number":13,"context_line":"#    License for the specific language governing permissions and limitations"},{"line_number":14,"context_line":"#    under the License."},{"line_number":15,"context_line":"#"},{"line_number":16,"context_line":"# @author: Nader Lahouti, Cisco Systems, Inc."},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"\"\"\"Exceptions used by DFA ML2 mechanism drivers.\"\"\""},{"line_number":19,"context_line":""}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_d9b245e4","line":16,"updated":"2014-08-28 18:53:56.000000000","message":"no need for author","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"e42b89332ea0461d2ae9c982b5e771f3404a708e","unresolved":false,"context_lines":[{"line_number":13,"context_line":"#    License for the specific language governing permissions and limitations"},{"line_number":14,"context_line":"#    under the License."},{"line_number":15,"context_line":"#"},{"line_number":16,"context_line":"# @author: Nader Lahouti, Cisco Systems, Inc."},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"\"\"\"Exceptions used by DFA ML2 mechanism drivers.\"\"\""},{"line_number":19,"context_line":""}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_d9b6c5f8","line":16,"updated":"2014-08-28 18:53:56.000000000","message":"no need for author here","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"}],"neutron/plugins/ml2/drivers/cisco/dfa/dfa_instance_api.py":[{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"6477756b09e7550ecf31253f52653a758e044171","unresolved":false,"context_lines":[{"line_number":115,"context_line":"        self._create_token()"},{"line_number":116,"context_line":"        try:"},{"line_number":117,"context_line":"            servers \u003d self._novaclnt.servers.list(True, search_opts)"},{"line_number":118,"context_line":"            dmsg \u003d _(\u0027_get_instances_for_project: servers\u003d%s\u0027)"},{"line_number":119,"context_line":"            LOG.debug(dmsg % servers)"},{"line_number":120,"context_line":"            return servers"},{"line_number":121,"context_line":"        except nexc.Unauthorized:"}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_bf785ff3","line":118,"updated":"2014-07-02 16:58:18.000000000","message":"No need of i18n translation for debug messages","commit_id":"4bf5fd49cfa55f7c9d8b65ae5fed0aec01816ebc"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"437c937556f2a9d02b80dd68d623f6aece4b8c66","unresolved":false,"context_lines":[{"line_number":115,"context_line":"        self._create_token()"},{"line_number":116,"context_line":"        try:"},{"line_number":117,"context_line":"            servers \u003d self._novaclnt.servers.list(True, search_opts)"},{"line_number":118,"context_line":"            dmsg \u003d _(\u0027_get_instances_for_project: servers\u003d%s\u0027)"},{"line_number":119,"context_line":"            LOG.debug(dmsg % servers)"},{"line_number":120,"context_line":"            return servers"},{"line_number":121,"context_line":"        except nexc.Unauthorized:"}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_5d298088","line":118,"in_reply_to":"baada198_bf785ff3","updated":"2014-07-09 15:38:22.000000000","message":"Done","commit_id":"4bf5fd49cfa55f7c9d8b65ae5fed0aec01816ebc"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"6477756b09e7550ecf31253f52653a758e044171","unresolved":false,"context_lines":[{"line_number":116,"context_line":"        try:"},{"line_number":117,"context_line":"            servers \u003d self._novaclnt.servers.list(True, search_opts)"},{"line_number":118,"context_line":"            dmsg \u003d _(\u0027_get_instances_for_project: servers\u003d%s\u0027)"},{"line_number":119,"context_line":"            LOG.debug(dmsg % servers)"},{"line_number":120,"context_line":"            return servers"},{"line_number":121,"context_line":"        except nexc.Unauthorized:"},{"line_number":122,"context_line":"            emsg \u003d (_(\u0027Failed to get novaclient:Unauthorised \u0027"}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_dfe1939b","line":119,"updated":"2014-07-02 16:58:18.000000000","message":"This line can be:\nLOG.debug(\u0027_get_instances_for_project: servers\u003d%s\u0027, servers)","commit_id":"4bf5fd49cfa55f7c9d8b65ae5fed0aec01816ebc"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"437c937556f2a9d02b80dd68d623f6aece4b8c66","unresolved":false,"context_lines":[{"line_number":116,"context_line":"        try:"},{"line_number":117,"context_line":"            servers \u003d self._novaclnt.servers.list(True, search_opts)"},{"line_number":118,"context_line":"            dmsg \u003d _(\u0027_get_instances_for_project: servers\u003d%s\u0027)"},{"line_number":119,"context_line":"            LOG.debug(dmsg % servers)"},{"line_number":120,"context_line":"            return servers"},{"line_number":121,"context_line":"        except nexc.Unauthorized:"},{"line_number":122,"context_line":"            emsg \u003d (_(\u0027Failed to get novaclient:Unauthorised \u0027"}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_3d45ac42","line":119,"in_reply_to":"baada198_dfe1939b","updated":"2014-07-09 15:38:22.000000000","message":"Done","commit_id":"4bf5fd49cfa55f7c9d8b65ae5fed0aec01816ebc"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"6477756b09e7550ecf31253f52653a758e044171","unresolved":false,"context_lines":[{"line_number":134,"context_line":"        instances \u003d self._get_instances_for_project(project_id)"},{"line_number":135,"context_line":"        for inst in instances:"},{"line_number":136,"context_line":"            if inst.id.replace(\u0027-\u0027, \u0027\u0027) \u003d\u003d uuid:"},{"line_number":137,"context_line":"                dmsg \u003d _(\u0027get_instance_for_uuid: name\u003d%s\u0027)"},{"line_number":138,"context_line":"                LOG.debug(dmsg % inst.name)"},{"line_number":139,"context_line":"                instance_name \u003d inst.name"},{"line_number":140,"context_line":"                return instance_name"}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_7f032742","line":137,"updated":"2014-07-02 16:58:18.000000000","message":"Ditto","commit_id":"4bf5fd49cfa55f7c9d8b65ae5fed0aec01816ebc"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"437c937556f2a9d02b80dd68d623f6aece4b8c66","unresolved":false,"context_lines":[{"line_number":134,"context_line":"        instances \u003d self._get_instances_for_project(project_id)"},{"line_number":135,"context_line":"        for inst in instances:"},{"line_number":136,"context_line":"            if inst.id.replace(\u0027-\u0027, \u0027\u0027) \u003d\u003d uuid:"},{"line_number":137,"context_line":"                dmsg \u003d _(\u0027get_instance_for_uuid: name\u003d%s\u0027)"},{"line_number":138,"context_line":"                LOG.debug(dmsg % inst.name)"},{"line_number":139,"context_line":"                instance_name \u003d inst.name"},{"line_number":140,"context_line":"                return instance_name"}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_5d77c09f","line":137,"in_reply_to":"baada198_7f032742","updated":"2014-07-09 15:38:22.000000000","message":"Done","commit_id":"4bf5fd49cfa55f7c9d8b65ae5fed0aec01816ebc"},{"author":{"_account_id":1923,"name":"Mohammad Banikazemi","email":"mbanikazemi@gmail.com","username":"mb-s"},"change_message_id":"31e04aa26880209b0f196ee1cfeed6c7ac3d8a65","unresolved":false,"context_lines":[{"line_number":30,"context_line":""},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"class DFAInstanceAPI(object):"},{"line_number":33,"context_line":"    \"\"\"This class provides API to get instance\u0027s info."},{"line_number":34,"context_line":"    For now the only API is for getting instance\u0027s name."},{"line_number":35,"context_line":"    \"\"\""},{"line_number":36,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"baada198_07fed937","line":33,"updated":"2014-07-22 02:03:33.000000000","message":"Please have a look at:  http://docs.openstack.org/developer/hacking/#docstrings","commit_id":"0cacf91bd31d574cdae1635843141dc2b1c4a137"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"7efd49818763bdc8ad70ab75885947e31fea556e","unresolved":false,"context_lines":[{"line_number":30,"context_line":""},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"class DFAInstanceAPI(object):"},{"line_number":33,"context_line":"    \"\"\"This class provides API to get instance\u0027s info."},{"line_number":34,"context_line":"    For now the only API is for getting instance\u0027s name."},{"line_number":35,"context_line":"    \"\"\""},{"line_number":36,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"baada198_e349328f","line":33,"in_reply_to":"baada198_07fed937","updated":"2014-07-24 22:37:33.000000000","message":"Done","commit_id":"0cacf91bd31d574cdae1635843141dc2b1c4a137"},{"author":{"_account_id":1923,"name":"Mohammad Banikazemi","email":"mbanikazemi@gmail.com","username":"mb-s"},"change_message_id":"31e04aa26880209b0f196ee1cfeed6c7ac3d8a65","unresolved":false,"context_lines":[{"line_number":53,"context_line":"            str(self._auth_port) + self._ver"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"    def _create_token(self):"},{"line_number":56,"context_line":"        \"\"\"Create new token for using novaclient API."},{"line_number":57,"context_line":"        \"\"\""},{"line_number":58,"context_line":"        ks \u003d keyc.Client(username\u003dself._user_name,"},{"line_number":59,"context_line":"                         password\u003dself._admin_password,"}],"source_content_type":"text/x-python","patch_set":8,"id":"baada198_a7e52da5","line":56,"updated":"2014-07-22 02:03:33.000000000","message":"This should be a single line. Please correct the docstrings through out the patch.","commit_id":"0cacf91bd31d574cdae1635843141dc2b1c4a137"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"7efd49818763bdc8ad70ab75885947e31fea556e","unresolved":false,"context_lines":[{"line_number":53,"context_line":"            str(self._auth_port) + self._ver"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"    def _create_token(self):"},{"line_number":56,"context_line":"        \"\"\"Create new token for using novaclient API."},{"line_number":57,"context_line":"        \"\"\""},{"line_number":58,"context_line":"        ks \u003d keyc.Client(username\u003dself._user_name,"},{"line_number":59,"context_line":"                         password\u003dself._admin_password,"}],"source_content_type":"text/x-python","patch_set":8,"id":"baada198_034f0693","line":56,"in_reply_to":"baada198_a7e52da5","updated":"2014-07-24 22:37:33.000000000","message":"Done","commit_id":"0cacf91bd31d574cdae1635843141dc2b1c4a137"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"02be96eb7969215a0e065116d7ab2aa68d507558","unresolved":false,"context_lines":[{"line_number":74,"context_line":"        else:"},{"line_number":75,"context_line":"            # Failed request."},{"line_number":76,"context_line":"            LOG.error(_(\u0027Failed to send token create request.\u0027))"},{"line_number":77,"context_line":"            return None"},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"    def _create_nova_client(self):"},{"line_number":80,"context_line":"        \"\"\"Creates nova client object.\"\"\""}],"source_content_type":"text/x-python","patch_set":19,"id":"1abeadc6_3d946ae1","line":77,"updated":"2014-08-19 11:42:42.000000000","message":"not needed","commit_id":"9948525d9fec9e0d067b65fe8bcb9da114122d19"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"6e162f393cc6cf523f14b619fdaa0ad31f70da7e","unresolved":false,"context_lines":[{"line_number":74,"context_line":"        else:"},{"line_number":75,"context_line":"            # Failed request."},{"line_number":76,"context_line":"            LOG.error(_(\u0027Failed to send token create request.\u0027))"},{"line_number":77,"context_line":"            return None"},{"line_number":78,"context_line":""},{"line_number":79,"context_line":"    def _create_nova_client(self):"},{"line_number":80,"context_line":"        \"\"\"Creates nova client object.\"\"\""}],"source_content_type":"text/x-python","patch_set":19,"id":"1abeadc6_e26c069f","line":77,"in_reply_to":"1abeadc6_3d946ae1","updated":"2014-08-19 19:33:09.000000000","message":"will remove the return.","commit_id":"9948525d9fec9e0d067b65fe8bcb9da114122d19"},{"author":{"_account_id":8645,"name":"Trinath Somanchi","email":"trinath.somanchi@freescale.com","username":"trinaths"},"change_message_id":"f006f0c8e9218a49ac4d0b61801852f6b17a603f","unresolved":false,"context_lines":[{"line_number":104,"context_line":"        search_opts \u003d {\u0027marker\u0027: None,"},{"line_number":105,"context_line":"                       \u0027all_tenants\u0027: True,"},{"line_number":106,"context_line":"                       \u0027project_id\u0027: project_id}"},{"line_number":107,"context_line":"        self._create_token()"},{"line_number":108,"context_line":"        try:"},{"line_number":109,"context_line":"            servers \u003d self._novaclnt.servers.list(True, search_opts)"},{"line_number":110,"context_line":"            LOG.debug(\u0027_get_instances_for_project: servers\u003d%s\u0027 % servers)"}],"source_content_type":"text/x-python","patch_set":23,"id":"1abeadc6_18e273d5","line":107,"updated":"2014-08-26 06:59:55.000000000","message":"Do you need a new token for this? Have you tried with out L107?","commit_id":"b11b889913806b379ae32190c3be5fee387491f1"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"6e7f4b648d57b26643d971003d3aadb1c65ee56e","unresolved":false,"context_lines":[{"line_number":104,"context_line":"        search_opts \u003d {\u0027marker\u0027: None,"},{"line_number":105,"context_line":"                       \u0027all_tenants\u0027: True,"},{"line_number":106,"context_line":"                       \u0027project_id\u0027: project_id}"},{"line_number":107,"context_line":"        self._create_token()"},{"line_number":108,"context_line":"        try:"},{"line_number":109,"context_line":"            servers \u003d self._novaclnt.servers.list(True, search_opts)"},{"line_number":110,"context_line":"            LOG.debug(\u0027_get_instances_for_project: servers\u003d%s\u0027 % servers)"}],"source_content_type":"text/x-python","patch_set":23,"id":"1abeadc6_e738a53f","line":107,"in_reply_to":"1abeadc6_18e273d5","updated":"2014-08-26 15:36:55.000000000","message":"Yes token is needed. Also this method is called when L130 couldn\u0027t find the project info.","commit_id":"b11b889913806b379ae32190c3be5fee387491f1"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"e42b89332ea0461d2ae9c982b5e771f3404a708e","unresolved":false,"context_lines":[{"line_number":13,"context_line":"#    License for the specific language governing permissions and limitations"},{"line_number":14,"context_line":"#    under the License."},{"line_number":15,"context_line":"#"},{"line_number":16,"context_line":"# @author: Nader Lahouti, Cisco Systems, Inc."},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"\"\"\""},{"line_number":19,"context_line":"This file provides a wrapper to novaclient API, for getting the instacne\u0027s"}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_19c83d54","line":16,"updated":"2014-08-28 18:53:56.000000000","message":"ditto","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"e42b89332ea0461d2ae9c982b5e771f3404a708e","unresolved":false,"context_lines":[{"line_number":13,"context_line":"#    License for the specific language governing permissions and limitations"},{"line_number":14,"context_line":"#    under the License."},{"line_number":15,"context_line":"#"},{"line_number":16,"context_line":"# @author: Nader Lahouti, Cisco Systems, Inc."},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"\"\"\""},{"line_number":19,"context_line":"This file provides a wrapper to novaclient API, for getting the instacne\u0027s"}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_d9ade59c","line":16,"updated":"2014-08-28 18:53:56.000000000","message":"no need for author","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"5ce09020034ab1d260a593b372e6142cc5b952ee","unresolved":false,"context_lines":[{"line_number":13,"context_line":"#    License for the specific language governing permissions and limitations"},{"line_number":14,"context_line":"#    under the License."},{"line_number":15,"context_line":"#"},{"line_number":16,"context_line":"# @author: Nader Lahouti, Cisco Systems, Inc."},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"\"\"\""},{"line_number":19,"context_line":"This file provides a wrapper to novaclient API, for getting the instacne\u0027s"}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_5ffd35b0","line":16,"in_reply_to":"1abeadc6_19c83d54","updated":"2014-08-28 19:57:50.000000000","message":"I noticed it yesterday in the mailing list ([openstack-dev] [Neutron] Author tags)  and the discussion is that it is better to land in Kilo.","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"e42b89332ea0461d2ae9c982b5e771f3404a708e","unresolved":false,"context_lines":[{"line_number":64,"context_line":"                    endpoints \u003d sc[\u0027endpoints\u0027]"},{"line_number":65,"context_line":"                    for endp in endpoints:"},{"line_number":66,"context_line":"                        self._auth_url \u003d endp[\u0027adminURL\u0027]"},{"line_number":67,"context_line":"            LOG.info(_(\u0027_create_token: token \u003d %s\u0027), token)"},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"            # Create nova clinet."},{"line_number":70,"context_line":"            self._novaclnt \u003d self._create_nova_client()"}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_39c1792f","line":67,"updated":"2014-08-28 18:53:56.000000000","message":"please use log hints","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"e42b89332ea0461d2ae9c982b5e771f3404a708e","unresolved":false,"context_lines":[{"line_number":64,"context_line":"                    endpoints \u003d sc[\u0027endpoints\u0027]"},{"line_number":65,"context_line":"                    for endp in endpoints:"},{"line_number":66,"context_line":"                        self._auth_url \u003d endp[\u0027adminURL\u0027]"},{"line_number":67,"context_line":"            LOG.info(_(\u0027_create_token: token \u003d %s\u0027), token)"},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"            # Create nova clinet."},{"line_number":70,"context_line":"            self._novaclnt \u003d self._create_nova_client()"}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_1993dd5b","line":67,"updated":"2014-08-28 18:53:56.000000000","message":"please use logging hint _LI","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"5ce09020034ab1d260a593b372e6142cc5b952ee","unresolved":false,"context_lines":[{"line_number":64,"context_line":"                    endpoints \u003d sc[\u0027endpoints\u0027]"},{"line_number":65,"context_line":"                    for endp in endpoints:"},{"line_number":66,"context_line":"                        self._auth_url \u003d endp[\u0027adminURL\u0027]"},{"line_number":67,"context_line":"            LOG.info(_(\u0027_create_token: token \u003d %s\u0027), token)"},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"            # Create nova clinet."},{"line_number":70,"context_line":"            self._novaclnt \u003d self._create_nova_client()"}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_3c7ec7af","line":67,"in_reply_to":"1abeadc6_1993dd5b","updated":"2014-08-28 19:57:50.000000000","message":"Done","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"e42b89332ea0461d2ae9c982b5e771f3404a708e","unresolved":false,"context_lines":[{"line_number":66,"context_line":"                        self._auth_url \u003d endp[\u0027adminURL\u0027]"},{"line_number":67,"context_line":"            LOG.info(_(\u0027_create_token: token \u003d %s\u0027), token)"},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"            # Create nova clinet."},{"line_number":70,"context_line":"            self._novaclnt \u003d self._create_nova_client()"},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"            return token"}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_59be35af","line":69,"updated":"2014-08-28 18:53:56.000000000","message":"typo","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"e42b89332ea0461d2ae9c982b5e771f3404a708e","unresolved":false,"context_lines":[{"line_number":66,"context_line":"                        self._auth_url \u003d endp[\u0027adminURL\u0027]"},{"line_number":67,"context_line":"            LOG.info(_(\u0027_create_token: token \u003d %s\u0027), token)"},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"            # Create nova clinet."},{"line_number":70,"context_line":"            self._novaclnt \u003d self._create_nova_client()"},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"            return token"}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_5999d577","line":69,"updated":"2014-08-28 18:53:56.000000000","message":"typo - clinet \u003d\u003e client","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"5ce09020034ab1d260a593b372e6142cc5b952ee","unresolved":false,"context_lines":[{"line_number":66,"context_line":"                        self._auth_url \u003d endp[\u0027adminURL\u0027]"},{"line_number":67,"context_line":"            LOG.info(_(\u0027_create_token: token \u003d %s\u0027), token)"},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"            # Create nova clinet."},{"line_number":70,"context_line":"            self._novaclnt \u003d self._create_nova_client()"},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"            return token"}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_fc77efd1","line":69,"in_reply_to":"1abeadc6_59be35af","updated":"2014-08-28 19:57:50.000000000","message":"Done","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"e42b89332ea0461d2ae9c982b5e771f3404a708e","unresolved":false,"context_lines":[{"line_number":73,"context_line":""},{"line_number":74,"context_line":"        else:"},{"line_number":75,"context_line":"            # Failed request."},{"line_number":76,"context_line":"            LOG.error(_(\u0027Failed to send token create request.\u0027))"},{"line_number":77,"context_line":""},{"line_number":78,"context_line":"    def _create_nova_client(self):"},{"line_number":79,"context_line":"        \"\"\"Creates nova client object.\"\"\""}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_99e36dd8","line":76,"updated":"2014-08-28 18:53:56.000000000","message":"hint","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"e42b89332ea0461d2ae9c982b5e771f3404a708e","unresolved":false,"context_lines":[{"line_number":73,"context_line":""},{"line_number":74,"context_line":"        else:"},{"line_number":75,"context_line":"            # Failed request."},{"line_number":76,"context_line":"            LOG.error(_(\u0027Failed to send token create request.\u0027))"},{"line_number":77,"context_line":""},{"line_number":78,"context_line":"    def _create_nova_client(self):"},{"line_number":79,"context_line":"        \"\"\"Creates nova client object.\"\"\""}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_f97c6122","line":76,"updated":"2014-08-28 18:53:56.000000000","message":"please use hint","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"5ce09020034ab1d260a593b372e6142cc5b952ee","unresolved":false,"context_lines":[{"line_number":73,"context_line":""},{"line_number":74,"context_line":"        else:"},{"line_number":75,"context_line":"            # Failed request."},{"line_number":76,"context_line":"            LOG.error(_(\u0027Failed to send token create request.\u0027))"},{"line_number":77,"context_line":""},{"line_number":78,"context_line":"    def _create_nova_client(self):"},{"line_number":79,"context_line":"        \"\"\"Creates nova client object.\"\"\""}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_5c7b83bd","line":76,"in_reply_to":"1abeadc6_f97c6122","updated":"2014-08-28 19:57:50.000000000","message":"Done","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"e42b89332ea0461d2ae9c982b5e771f3404a708e","unresolved":false,"context_lines":[{"line_number":88,"context_line":"            clnt.client.management_url \u003d self._auth_url"},{"line_number":89,"context_line":"            return clnt"},{"line_number":90,"context_line":"        except nexc.Unauthorized:"},{"line_number":91,"context_line":"            thismsg \u003d \u0027Failed to get novaclient:Unauthorised \u0027\\"},{"line_number":92,"context_line":"                      \u0027project_id\u003d%s user\u003d%s\u0027 % (self.project_id,"},{"line_number":93,"context_line":"                                                 self._user_name)"},{"line_number":94,"context_line":"            raise nexc.ClientException(thismsg)"}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_d9e965b8","line":91,"updated":"2014-08-28 18:53:56.000000000","message":"missing translation","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"e42b89332ea0461d2ae9c982b5e771f3404a708e","unresolved":false,"context_lines":[{"line_number":88,"context_line":"            clnt.client.management_url \u003d self._auth_url"},{"line_number":89,"context_line":"            return clnt"},{"line_number":90,"context_line":"        except nexc.Unauthorized:"},{"line_number":91,"context_line":"            thismsg \u003d \u0027Failed to get novaclient:Unauthorised \u0027\\"},{"line_number":92,"context_line":"                      \u0027project_id\u003d%s user\u003d%s\u0027 % (self.project_id,"},{"line_number":93,"context_line":"                                                 self._user_name)"},{"line_number":94,"context_line":"            raise nexc.ClientException(thismsg)"}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_99952d35","line":91,"updated":"2014-08-28 18:53:56.000000000","message":"please use a trans;ation here\n\nplease also use () so you do not need the \\","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"5ce09020034ab1d260a593b372e6142cc5b952ee","unresolved":false,"context_lines":[{"line_number":88,"context_line":"            clnt.client.management_url \u003d self._auth_url"},{"line_number":89,"context_line":"            return clnt"},{"line_number":90,"context_line":"        except nexc.Unauthorized:"},{"line_number":91,"context_line":"            thismsg \u003d \u0027Failed to get novaclient:Unauthorised \u0027\\"},{"line_number":92,"context_line":"                      \u0027project_id\u003d%s user\u003d%s\u0027 % (self.project_id,"},{"line_number":93,"context_line":"                                                 self._user_name)"},{"line_number":94,"context_line":"            raise nexc.ClientException(thismsg)"}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_dc46b37a","line":91,"in_reply_to":"1abeadc6_99952d35","updated":"2014-08-28 19:57:50.000000000","message":"Done","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"5ce09020034ab1d260a593b372e6142cc5b952ee","unresolved":false,"context_lines":[{"line_number":88,"context_line":"            clnt.client.management_url \u003d self._auth_url"},{"line_number":89,"context_line":"            return clnt"},{"line_number":90,"context_line":"        except nexc.Unauthorized:"},{"line_number":91,"context_line":"            thismsg \u003d \u0027Failed to get novaclient:Unauthorised \u0027\\"},{"line_number":92,"context_line":"                      \u0027project_id\u003d%s user\u003d%s\u0027 % (self.project_id,"},{"line_number":93,"context_line":"                                                 self._user_name)"},{"line_number":94,"context_line":"            raise nexc.ClientException(thismsg)"}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_bc41f764","line":91,"in_reply_to":"1abeadc6_d9e965b8","updated":"2014-08-28 19:57:50.000000000","message":"Done","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"e42b89332ea0461d2ae9c982b5e771f3404a708e","unresolved":false,"context_lines":[{"line_number":94,"context_line":"            raise nexc.ClientException(thismsg)"},{"line_number":95,"context_line":""},{"line_number":96,"context_line":"        except nexc.AuthorizationFailure as err:"},{"line_number":97,"context_line":"            raise nexc.ClientException(\"Failed to get novaclient %s\" % (err))"},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"    def _get_instances_for_project(self, project_id):"},{"line_number":100,"context_line":"        \"\"\"Return all instances for a given project."}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_b996693c","line":97,"updated":"2014-08-28 18:53:56.000000000","message":"translation","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"5ce09020034ab1d260a593b372e6142cc5b952ee","unresolved":false,"context_lines":[{"line_number":94,"context_line":"            raise nexc.ClientException(thismsg)"},{"line_number":95,"context_line":""},{"line_number":96,"context_line":"        except nexc.AuthorizationFailure as err:"},{"line_number":97,"context_line":"            raise nexc.ClientException(\"Failed to get novaclient %s\" % (err))"},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"    def _get_instances_for_project(self, project_id):"},{"line_number":100,"context_line":"        \"\"\"Return all instances for a given project."}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_1c5cab4a","line":97,"in_reply_to":"1abeadc6_b996693c","updated":"2014-08-28 19:57:50.000000000","message":"Done","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"e42b89332ea0461d2ae9c982b5e771f3404a708e","unresolved":false,"context_lines":[{"line_number":110,"context_line":"            LOG.debug(\u0027_get_instances_for_project: servers\u003d%s\u0027 % servers)"},{"line_number":111,"context_line":"            return servers"},{"line_number":112,"context_line":"        except nexc.Unauthorized:"},{"line_number":113,"context_line":"            emsg \u003d (_(\u0027Failed to get novaclient:Unauthorised \u0027"},{"line_number":114,"context_line":"                    \u0027project_id\u003d%(proj)s user\u003d%(user)s\u0027),"},{"line_number":115,"context_line":"                    {\u0027proj\u0027: self.project_id, \u0027name\u0027: self._user_name})"},{"line_number":116,"context_line":"            LOG.exception(emsg)"}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_19cf5d57","line":113,"updated":"2014-08-28 18:53:56.000000000","message":"logging hint","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"e42b89332ea0461d2ae9c982b5e771f3404a708e","unresolved":false,"context_lines":[{"line_number":110,"context_line":"            LOG.debug(\u0027_get_instances_for_project: servers\u003d%s\u0027 % servers)"},{"line_number":111,"context_line":"            return servers"},{"line_number":112,"context_line":"        except nexc.Unauthorized:"},{"line_number":113,"context_line":"            emsg \u003d (_(\u0027Failed to get novaclient:Unauthorised \u0027"},{"line_number":114,"context_line":"                    \u0027project_id\u003d%(proj)s user\u003d%(user)s\u0027),"},{"line_number":115,"context_line":"                    {\u0027proj\u0027: self.project_id, \u0027name\u0027: self._user_name})"},{"line_number":116,"context_line":"            LOG.exception(emsg)"}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_f9a3819b","line":113,"updated":"2014-08-28 18:53:56.000000000","message":"logging hint","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"e11cc55c16d398536f3276dff6b4123094f14a8b","unresolved":false,"context_lines":[{"line_number":110,"context_line":"            LOG.debug(\u0027_get_instances_for_project: servers\u003d%s\u0027 % servers)"},{"line_number":111,"context_line":"            return servers"},{"line_number":112,"context_line":"        except nexc.Unauthorized:"},{"line_number":113,"context_line":"            emsg \u003d (_(\u0027Failed to get novaclient:Unauthorised \u0027"},{"line_number":114,"context_line":"                    \u0027project_id\u003d%(proj)s user\u003d%(user)s\u0027),"},{"line_number":115,"context_line":"                    {\u0027proj\u0027: self.project_id, \u0027name\u0027: self._user_name})"},{"line_number":116,"context_line":"            LOG.exception(emsg)"}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_49047e49","line":113,"in_reply_to":"1abeadc6_1c23cbbd","updated":"2014-08-29 12:26:18.000000000","message":"Yeah, it is OK as is. I was mistaking that too, thinking that _LE was needed,  but it is not for exceptions.","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"5ce09020034ab1d260a593b372e6142cc5b952ee","unresolved":false,"context_lines":[{"line_number":110,"context_line":"            LOG.debug(\u0027_get_instances_for_project: servers\u003d%s\u0027 % servers)"},{"line_number":111,"context_line":"            return servers"},{"line_number":112,"context_line":"        except nexc.Unauthorized:"},{"line_number":113,"context_line":"            emsg \u003d (_(\u0027Failed to get novaclient:Unauthorised \u0027"},{"line_number":114,"context_line":"                    \u0027project_id\u003d%(proj)s user\u003d%(user)s\u0027),"},{"line_number":115,"context_line":"                    {\u0027proj\u0027: self.project_id, \u0027name\u0027: self._user_name})"},{"line_number":116,"context_line":"            LOG.exception(emsg)"}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_1c23cbbd","line":113,"in_reply_to":"1abeadc6_f9a3819b","updated":"2014-08-28 19:57:50.000000000","message":"In here I followed this guideline from http://docs.openstack.org/developer/oslo.i18n/guidelines.html\n\n\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\nDo not do this:\n\n# WRONG\n\nmsg \u003d _LE(\u0027There was an error.\u0027)\n\nLOG.exception(msg)\n\nraise LocalExceptionClass(msg)\n\nInstead, use this style:\n\n# RIGHT\n\nmsg \u003d _(\u0027There was an error.\u0027)\n\nLOG.exception(msg)\n\nraise LocalExceptionClass(msg)\n\n\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\nWhat should be followed?","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"e42b89332ea0461d2ae9c982b5e771f3404a708e","unresolved":false,"context_lines":[{"line_number":116,"context_line":"            LOG.exception(emsg)"},{"line_number":117,"context_line":"            raise nexc.ClientException(emsg)"},{"line_number":118,"context_line":"        except nexc.AuthorizationFailure as err:"},{"line_number":119,"context_line":"            emsg \u003d _(\"Failed to get novaclient %s\")"},{"line_number":120,"context_line":"            LOG.exception(emsg % err)"},{"line_number":121,"context_line":"            raise nexc.ClientException(emsg % err)"},{"line_number":122,"context_line":""}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_59a715a7","line":119,"updated":"2014-08-28 18:53:56.000000000","message":"hint","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"e42b89332ea0461d2ae9c982b5e771f3404a708e","unresolved":false,"context_lines":[{"line_number":116,"context_line":"            LOG.exception(emsg)"},{"line_number":117,"context_line":"            raise nexc.ClientException(emsg)"},{"line_number":118,"context_line":"        except nexc.AuthorizationFailure as err:"},{"line_number":119,"context_line":"            emsg \u003d _(\"Failed to get novaclient %s\")"},{"line_number":120,"context_line":"            LOG.exception(emsg % err)"},{"line_number":121,"context_line":"            raise nexc.ClientException(emsg % err)"},{"line_number":122,"context_line":""}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_990a8d88","line":119,"updated":"2014-08-28 18:53:56.000000000","message":"hint","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"5ce09020034ab1d260a593b372e6142cc5b952ee","unresolved":false,"context_lines":[{"line_number":116,"context_line":"            LOG.exception(emsg)"},{"line_number":117,"context_line":"            raise nexc.ClientException(emsg)"},{"line_number":118,"context_line":"        except nexc.AuthorizationFailure as err:"},{"line_number":119,"context_line":"            emsg \u003d _(\"Failed to get novaclient %s\")"},{"line_number":120,"context_line":"            LOG.exception(emsg % err)"},{"line_number":121,"context_line":"            raise nexc.ClientException(emsg % err)"},{"line_number":122,"context_line":""}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_1c0aeb25","line":119,"in_reply_to":"1abeadc6_990a8d88","updated":"2014-08-28 19:57:50.000000000","message":"same as above.","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"838fab593cc07834c4629a816a88172c96054399","unresolved":false,"context_lines":[{"line_number":19,"context_line":"information such as display_name."},{"line_number":20,"context_line":"\"\"\""},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"from keystoneclient.v2_0 import client as keyc"},{"line_number":23,"context_line":"from neutron.openstack.common import log as logging"},{"line_number":24,"context_line":"from novaclient import exceptions as nexc"},{"line_number":25,"context_line":"from novaclient.v1_1 import client as nova_client"}],"source_content_type":"text/x-python","patch_set":27,"id":"1abeadc6_31b79722","line":22,"updated":"2014-08-29 20:33:18.000000000","message":"library ordering here\n\nkeystone import\nnova import\n\u003cblank line\u003e\nneutron import","commit_id":"466409a0add3304ff814f394012958889db9a2f4"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"1c48fba88e2f733cf844d6a9cb7eadd773cba9d6","unresolved":false,"context_lines":[{"line_number":19,"context_line":"information such as display_name."},{"line_number":20,"context_line":"\"\"\""},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"from keystoneclient.v2_0 import client as keyc"},{"line_number":23,"context_line":"from neutron.openstack.common import log as logging"},{"line_number":24,"context_line":"from novaclient import exceptions as nexc"},{"line_number":25,"context_line":"from novaclient.v1_1 import client as nova_client"}],"source_content_type":"text/x-python","patch_set":27,"id":"1abeadc6_a7ffe464","line":22,"in_reply_to":"1abeadc6_31b79722","updated":"2014-08-30 03:19:27.000000000","message":"Done","commit_id":"466409a0add3304ff814f394012958889db9a2f4"}],"neutron/plugins/ml2/drivers/cisco/dfa/dfa_mech_driver_rpc.py":[{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"e42b89332ea0461d2ae9c982b5e771f3404a708e","unresolved":false,"context_lines":[{"line_number":13,"context_line":"#    License for the specific language governing permissions and limitations"},{"line_number":14,"context_line":"#    under the License."},{"line_number":15,"context_line":"#"},{"line_number":16,"context_line":"# @author: Nader Lahouti, Cisco Systems, Inc."},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"from neutron.common import rpc as n_rpc"},{"line_number":19,"context_line":"from neutron.common import topics"}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_f9f8e17d","line":16,"updated":"2014-08-28 18:53:56.000000000","message":"no need for author","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"}],"neutron/plugins/ml2/drivers/cisco/dfa/dfa_models_v2.py":[{"author":{"_account_id":7249,"name":"Ann Taraday","email":"akamyshnikova@mirantis.com","username":"AKamyshnikova"},"change_message_id":"ed9ebce9e04ff794b3c8281df42d496f236343b1","unresolved":false,"context_lines":[{"line_number":47,"context_line":""},{"line_number":48,"context_line":"    network_id \u003d sa.Column(sa.String(36),"},{"line_number":49,"context_line":"                           primary_key\u003dTrue,"},{"line_number":50,"context_line":"                           default\u003d\"\")"},{"line_number":51,"context_line":"    cfg_profile_id \u003d sa.Column(sa.String(36), primary_key\u003dTrue)"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"baada198_47263fbb","line":50,"updated":"2014-07-21 08:48:04.000000000","message":"If you set default in model it is better to add also server_default in model and in migration.","commit_id":"1772b2332553c3823f29b89cb8390ac795ea7d16"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"3b2e54f6f325779e2f4346d0cd09e8442835bacf","unresolved":false,"context_lines":[{"line_number":47,"context_line":""},{"line_number":48,"context_line":"    network_id \u003d sa.Column(sa.String(36),"},{"line_number":49,"context_line":"                           primary_key\u003dTrue,"},{"line_number":50,"context_line":"                           default\u003d\"\")"},{"line_number":51,"context_line":"    cfg_profile_id \u003d sa.Column(sa.String(36), primary_key\u003dTrue)"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"baada198_526fb827","line":50,"in_reply_to":"baada198_47263fbb","updated":"2014-07-22 00:33:27.000000000","message":"Not needed. Will remove it.","commit_id":"1772b2332553c3823f29b89cb8390ac795ea7d16"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"10ad2d179480789a84d0141dd3c9849d116ffb88","unresolved":false,"context_lines":[{"line_number":43,"context_line":""},{"line_number":44,"context_line":"    network_id \u003d sa.Column(sa.String(36),"},{"line_number":45,"context_line":"                           primary_key\u003dTrue)"},{"line_number":46,"context_line":"    cfg_profile_id \u003d sa.Column(sa.String(36), primary_key\u003dTrue)"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"class ProjectNameCache(model_base.BASEV2):"}],"source_content_type":"text/x-python","patch_set":12,"id":"baada198_cc4b0fb1","line":46,"updated":"2014-08-05 11:10:19.000000000","message":"why all columns are primary_key?","commit_id":"662099e140c3044d2c625a7ce4ea53e06c966d5e"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"7a824ea4e9f142e34d046c198314f7ee50b8bb3f","unresolved":false,"context_lines":[{"line_number":43,"context_line":""},{"line_number":44,"context_line":"    network_id \u003d sa.Column(sa.String(36),"},{"line_number":45,"context_line":"                           primary_key\u003dTrue)"},{"line_number":46,"context_line":"    cfg_profile_id \u003d sa.Column(sa.String(36), primary_key\u003dTrue)"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"class ProjectNameCache(model_base.BASEV2):"}],"source_content_type":"text/x-python","patch_set":12,"id":"baada198_33524d68","line":46,"in_reply_to":"baada198_2f5efd13","updated":"2014-08-12 01:48:06.000000000","message":"it\u0027s ok to have more than one primary key columns.\niiuc it ends up with a multi-column index.\ngenerally a multi-column index (A,B) won\u0027t speed up lookups with B much.","commit_id":"662099e140c3044d2c625a7ce4ea53e06c966d5e"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"f72d1727276bb6251ade2fc18336673dd9b1582f","unresolved":false,"context_lines":[{"line_number":43,"context_line":""},{"line_number":44,"context_line":"    network_id \u003d sa.Column(sa.String(36),"},{"line_number":45,"context_line":"                           primary_key\u003dTrue)"},{"line_number":46,"context_line":"    cfg_profile_id \u003d sa.Column(sa.String(36), primary_key\u003dTrue)"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"class ProjectNameCache(model_base.BASEV2):"}],"source_content_type":"text/x-python","patch_set":12,"id":"baada198_2f5efd13","line":46,"in_reply_to":"baada198_cc4b0fb1","updated":"2014-08-06 21:15:34.000000000","message":"netwrok_id is primary_key. but in some cases was using cfg_profile_id for access a row in the table.\n\nDo you see any issue? I checked places in the code that more than one primary_key were used in the table.","commit_id":"662099e140c3044d2c625a7ce4ea53e06c966d5e"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"10ad2d179480789a84d0141dd3c9849d116ffb88","unresolved":false,"context_lines":[{"line_number":56,"context_line":""},{"line_number":57,"context_line":"    project_id \u003d sa.Column(sa.String(255),"},{"line_number":58,"context_line":"                           primary_key\u003dTrue)"},{"line_number":59,"context_line":"    project_name \u003d sa.Column(sa.String(255), primary_key\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":12,"id":"baada198_0c46e7a7","line":59,"updated":"2014-08-05 11:10:19.000000000","message":"ditto","commit_id":"662099e140c3044d2c625a7ce4ea53e06c966d5e"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"f72d1727276bb6251ade2fc18336673dd9b1582f","unresolved":false,"context_lines":[{"line_number":56,"context_line":""},{"line_number":57,"context_line":"    project_id \u003d sa.Column(sa.String(255),"},{"line_number":58,"context_line":"                           primary_key\u003dTrue)"},{"line_number":59,"context_line":"    project_name \u003d sa.Column(sa.String(255), primary_key\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":12,"id":"baada198_49d8ad80","line":59,"in_reply_to":"baada198_0c46e7a7","updated":"2014-08-06 21:15:34.000000000","message":"project_id is the primary key. Remove primary_key for the project_name.","commit_id":"662099e140c3044d2c625a7ce4ea53e06c966d5e"},{"author":{"_account_id":1689,"name":"Robert Kukura","email":"rk@theep.net","username":"rkukura"},"change_message_id":"e40aca5e29f22b8a0e920630c7d3340fe97d53cd","unresolved":false,"context_lines":[{"line_number":44,"context_line":"    network_id \u003d sa.Column(sa.String(36),"},{"line_number":45,"context_line":"                           sa.ForeignKey(\u0027networks.id\u0027, ondelete\u003d\"CASCADE\"),"},{"line_number":46,"context_line":"                           primary_key\u003dTrue)"},{"line_number":47,"context_line":"    cfg_profile_id \u003d sa.Column(sa.String(36), primary_key\u003dTrue)"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"class ProjectNameCache(model_base.BASEV2):"}],"source_content_type":"text/x-python","patch_set":19,"id":"1abeadc6_edbebffe","line":47,"updated":"2014-08-19 13:32:02.000000000","message":"Why is this column part of the primary key? Can the same network have multiple DFA profiles?","commit_id":"9948525d9fec9e0d067b65fe8bcb9da114122d19"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"6e162f393cc6cf523f14b619fdaa0ad31f70da7e","unresolved":false,"context_lines":[{"line_number":44,"context_line":"    network_id \u003d sa.Column(sa.String(36),"},{"line_number":45,"context_line":"                           sa.ForeignKey(\u0027networks.id\u0027, ondelete\u003d\"CASCADE\"),"},{"line_number":46,"context_line":"                           primary_key\u003dTrue)"},{"line_number":47,"context_line":"    cfg_profile_id \u003d sa.Column(sa.String(36), primary_key\u003dTrue)"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"class ProjectNameCache(model_base.BASEV2):"}],"source_content_type":"text/x-python","patch_set":19,"id":"1abeadc6_22b7ded9","line":47,"in_reply_to":"1abeadc6_edbebffe","updated":"2014-08-19 19:33:09.000000000","message":"- In some cases \u0027cfg_profile_id\u0027 is used to get entry from the table. \n\n- When creating a network, only one DFA profile can be selected.","commit_id":"9948525d9fec9e0d067b65fe8bcb9da114122d19"}],"neutron/plugins/ml2/drivers/cisco/dfa/mech_cisco_dfa.py":[{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"6477756b09e7550ecf31253f52653a758e044171","unresolved":false,"context_lines":[{"line_number":257,"context_line":"        except dexc.DFAClientRequestFailed as ex:"},{"line_number":258,"context_line":"            emsg \u003d _(\u0027Failed to create network %(net)s. Error:%(err)s.\u0027)"},{"line_number":259,"context_line":"            LOG.error(emsg % {\u0027net\u0027: net.name, \u0027err\u0027: ex})"},{"line_number":260,"context_line":"            raise ex"},{"line_number":261,"context_line":""},{"line_number":262,"context_line":"    def create_subnet_postcommit(self, context):"},{"line_number":263,"context_line":"        projid \u003d context.current.get(\u0027tenant_id\u0027)"}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_42a76a0c","line":260,"updated":"2014-07-02 16:58:18.000000000","message":"why not raising a ml2_exc.MechanismDriverError ?","commit_id":"4bf5fd49cfa55f7c9d8b65ae5fed0aec01816ebc"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"437c937556f2a9d02b80dd68d623f6aece4b8c66","unresolved":false,"context_lines":[{"line_number":257,"context_line":"        except dexc.DFAClientRequestFailed as ex:"},{"line_number":258,"context_line":"            emsg \u003d _(\u0027Failed to create network %(net)s. Error:%(err)s.\u0027)"},{"line_number":259,"context_line":"            LOG.error(emsg % {\u0027net\u0027: net.name, \u0027err\u0027: ex})"},{"line_number":260,"context_line":"            raise ex"},{"line_number":261,"context_line":""},{"line_number":262,"context_line":"    def create_subnet_postcommit(self, context):"},{"line_number":263,"context_line":"        projid \u003d context.current.get(\u0027tenant_id\u0027)"}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_bdcc5cbc","line":260,"in_reply_to":"baada198_42a76a0c","updated":"2014-07-09 15:38:22.000000000","message":"Done","commit_id":"4bf5fd49cfa55f7c9d8b65ae5fed0aec01816ebc"},{"author":{"_account_id":1923,"name":"Mohammad Banikazemi","email":"mbanikazemi@gmail.com","username":"mb-s"},"change_message_id":"31e04aa26880209b0f196ee1cfeed6c7ac3d8a65","unresolved":false,"context_lines":[{"line_number":153,"context_line":"        \"\"\""},{"line_number":154,"context_line":"        self._get_agent_topic()"},{"line_number":155,"context_line":"        if not self._agent_topic or not self._mech_drv_topic:"},{"line_number":156,"context_line":"            LOG.debug(_(\u0027Mechanism Driver notifer is not initialized\u0027))"},{"line_number":157,"context_line":"            return"},{"line_number":158,"context_line":"        self.dfa_notifier \u003d drpc.MechDriversAgentNotifierApi(topics.AGENT,"},{"line_number":159,"context_line":"                                                             self._agent_topic)"}],"source_content_type":"text/x-python","patch_set":8,"id":"baada198_e7c48593","line":156,"updated":"2014-07-22 02:03:33.000000000","message":"no _ for debug messages.","commit_id":"0cacf91bd31d574cdae1635843141dc2b1c4a137"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"7efd49818763bdc8ad70ab75885947e31fea556e","unresolved":false,"context_lines":[{"line_number":153,"context_line":"        \"\"\""},{"line_number":154,"context_line":"        self._get_agent_topic()"},{"line_number":155,"context_line":"        if not self._agent_topic or not self._mech_drv_topic:"},{"line_number":156,"context_line":"            LOG.debug(_(\u0027Mechanism Driver notifer is not initialized\u0027))"},{"line_number":157,"context_line":"            return"},{"line_number":158,"context_line":"        self.dfa_notifier \u003d drpc.MechDriversAgentNotifierApi(topics.AGENT,"},{"line_number":159,"context_line":"                                                             self._agent_topic)"}],"source_content_type":"text/x-python","patch_set":8,"id":"baada198_03362603","line":156,"in_reply_to":"baada198_e7c48593","updated":"2014-07-24 22:37:33.000000000","message":"Done","commit_id":"0cacf91bd31d574cdae1635843141dc2b1c4a137"},{"author":{"_account_id":1923,"name":"Mohammad Banikazemi","email":"mbanikazemi@gmail.com","username":"mb-s"},"change_message_id":"31e04aa26880209b0f196ee1cfeed6c7ac3d8a65","unresolved":false,"context_lines":[{"line_number":312,"context_line":"        }"},{"line_number":313,"context_line":"        if self.inst_name:"},{"line_number":314,"context_line":"            self.dfa_notifier.send_vm_info(context._plugin_context, vm_info)"},{"line_number":315,"context_line":"        LOG.debug(_(\"update_port_postommit : %(vm_info)s\"),"},{"line_number":316,"context_line":"                  {\u0027vm_info\u0027: vm_info})"},{"line_number":317,"context_line":""},{"line_number":318,"context_line":"    def delete_port_postcommit(self, context):"}],"source_content_type":"text/x-python","patch_set":8,"id":"baada198_0747b91d","line":315,"updated":"2014-07-22 02:03:33.000000000","message":"No _ for debug messages.","commit_id":"0cacf91bd31d574cdae1635843141dc2b1c4a137"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"7efd49818763bdc8ad70ab75885947e31fea556e","unresolved":false,"context_lines":[{"line_number":312,"context_line":"        }"},{"line_number":313,"context_line":"        if self.inst_name:"},{"line_number":314,"context_line":"            self.dfa_notifier.send_vm_info(context._plugin_context, vm_info)"},{"line_number":315,"context_line":"        LOG.debug(_(\"update_port_postommit : %(vm_info)s\"),"},{"line_number":316,"context_line":"                  {\u0027vm_info\u0027: vm_info})"},{"line_number":317,"context_line":""},{"line_number":318,"context_line":"    def delete_port_postcommit(self, context):"}],"source_content_type":"text/x-python","patch_set":8,"id":"baada198_433c9ee1","line":315,"in_reply_to":"baada198_0747b91d","updated":"2014-07-24 22:37:33.000000000","message":"Done","commit_id":"0cacf91bd31d574cdae1635843141dc2b1c4a137"},{"author":{"_account_id":1923,"name":"Mohammad Banikazemi","email":"mbanikazemi@gmail.com","username":"mb-s"},"change_message_id":"31e04aa26880209b0f196ee1cfeed6c7ac3d8a65","unresolved":false,"context_lines":[{"line_number":342,"context_line":"        }"},{"line_number":343,"context_line":"        if self.inst_name:"},{"line_number":344,"context_line":"            self.dfa_notifier.send_vm_info(context._plugin_context, vm_info)"},{"line_number":345,"context_line":"        LOG.debug(_(\"delete_port_postommit : %(vm_info)s\"),"},{"line_number":346,"context_line":"                  {\u0027vm_info\u0027: vm_info})"}],"source_content_type":"text/x-python","patch_set":8,"id":"baada198_278d9d7c","line":345,"updated":"2014-07-22 02:03:33.000000000","message":"No _ for debug messages.","commit_id":"0cacf91bd31d574cdae1635843141dc2b1c4a137"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"7efd49818763bdc8ad70ab75885947e31fea556e","unresolved":false,"context_lines":[{"line_number":342,"context_line":"        }"},{"line_number":343,"context_line":"        if self.inst_name:"},{"line_number":344,"context_line":"            self.dfa_notifier.send_vm_info(context._plugin_context, vm_info)"},{"line_number":345,"context_line":"        LOG.debug(_(\"delete_port_postommit : %(vm_info)s\"),"},{"line_number":346,"context_line":"                  {\u0027vm_info\u0027: vm_info})"}],"source_content_type":"text/x-python","patch_set":8,"id":"baada198_832156b6","line":345,"in_reply_to":"baada198_278d9d7c","updated":"2014-07-24 22:37:33.000000000","message":"Done","commit_id":"0cacf91bd31d574cdae1635843141dc2b1c4a137"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"e42b89332ea0461d2ae9c982b5e771f3404a708e","unresolved":false,"context_lines":[{"line_number":13,"context_line":"#    License for the specific language governing permissions and limitations"},{"line_number":14,"context_line":"#    under the License."},{"line_number":15,"context_line":"#"},{"line_number":16,"context_line":"# @author: Nader Lahouti, Cisco Systems Inc."},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"\"\"\""},{"line_number":19,"context_line":"ML2 Mechanism Driver for Cisco DFA platforms."}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_39efb9b2","line":16,"updated":"2014-08-28 18:53:56.000000000","message":"no need","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"e42b89332ea0461d2ae9c982b5e771f3404a708e","unresolved":false,"context_lines":[{"line_number":124,"context_line":"                    self._mech_drv_topic \u003d val.split(\u0027:\u0027)[1]"},{"line_number":125,"context_line":"                    self._agent_topic \u003d val.split(\u0027:\u0027)[2]"},{"line_number":126,"context_line":"                except IndexError:"},{"line_number":127,"context_line":"                    emsg \u003d _(\u0027No topics is defined for %s mechanism driver\u0027)"},{"line_number":128,"context_line":"                    LOG.error(emsg % dfa_const.CISCO_DFA_MECH_DRVR_NAME)"},{"line_number":129,"context_line":"                    return"},{"line_number":130,"context_line":""}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_193d9d2b","line":127,"updated":"2014-08-28 18:53:56.000000000","message":"please use log hint","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"e42b89332ea0461d2ae9c982b5e771f3404a708e","unresolved":false,"context_lines":[{"line_number":182,"context_line":"        try:"},{"line_number":183,"context_line":"            self._dcnm_client.delete_network(tenant_name, net)"},{"line_number":184,"context_line":"        except dexc.DFAClientRequestFailed as ex:"},{"line_number":185,"context_line":"            emsg \u003d _(\u0027Failed to create network %(net)s. Error:%(err)s.\u0027)"},{"line_number":186,"context_line":"            LOG.error(emsg % {\u0027net\u0027: net.name, \u0027err\u0027: ex})"},{"line_number":187,"context_line":"            raise ml2_exc.MechanismDriverError"},{"line_number":188,"context_line":""}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_f96d4133","line":185,"updated":"2014-08-28 18:53:56.000000000","message":"missing hint","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"e42b89332ea0461d2ae9c982b5e771f3404a708e","unresolved":false,"context_lines":[{"line_number":194,"context_line":"        subnet \u003d context.current"},{"line_number":195,"context_line":"        if subnet[\u0027name\u0027] \u003d\u003d \u0027private-subnet\u0027:"},{"line_number":196,"context_line":"            emsg \u003d _(\"%s is default subnet and no need to create it in DCNM.\")"},{"line_number":197,"context_line":"            LOG.info(emsg % subnet[\u0027name\u0027])"},{"line_number":198,"context_line":"            return"},{"line_number":199,"context_line":""},{"line_number":200,"context_line":"        session \u003d context._plugin_context.session"}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_196bdd1e","line":197,"updated":"2014-08-28 18:53:56.000000000","message":"hint","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"e42b89332ea0461d2ae9c982b5e771f3404a708e","unresolved":false,"context_lines":[{"line_number":208,"context_line":"        try:"},{"line_number":209,"context_line":"            self._dcnm_client.create_network(tenant_name, net, snet)"},{"line_number":210,"context_line":"        except dexc.DFAClientRequestFailed as ex:"},{"line_number":211,"context_line":"            emsg \u003d _(\u0027Failed to create network %(net)s. Error:%(err)s.\u0027)"},{"line_number":212,"context_line":"            LOG.error(emsg % {\u0027net\u0027: net.name, \u0027err\u0027: ex})"},{"line_number":213,"context_line":"            raise ml2_exc.MechanismDriverError"},{"line_number":214,"context_line":""}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_79613138","line":211,"updated":"2014-08-28 18:53:56.000000000","message":"hint","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"838fab593cc07834c4629a816a88172c96054399","unresolved":false,"context_lines":[{"line_number":95,"context_line":"                                                  self._dcnm_client)"},{"line_number":96,"context_line":""},{"line_number":97,"context_line":"        # Spawn a task, to process notification queue for keystone events."},{"line_number":98,"context_line":"        eventlet.spawn(self._process_keystone_events)"},{"line_number":99,"context_line":""},{"line_number":100,"context_line":"        # Initialize nova client wrapper. It will be used to get more"},{"line_number":101,"context_line":"        # information for an instance."}],"source_content_type":"text/x-python","patch_set":27,"id":"1abeadc6_11c61b68","line":98,"updated":"2014-08-29 20:33:18.000000000","message":"I do not think it is appropriate for mech driver to spawn a thread to listen to keystone events.  A common deployment pattern is to spawn multiple Neutron instances and then load balance the API.  When you have multiple listeners consuming the same event what is the expected behavior?","commit_id":"466409a0add3304ff814f394012958889db9a2f4"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"1c48fba88e2f733cf844d6a9cb7eadd773cba9d6","unresolved":false,"context_lines":[{"line_number":95,"context_line":"                                                  self._dcnm_client)"},{"line_number":96,"context_line":""},{"line_number":97,"context_line":"        # Spawn a task, to process notification queue for keystone events."},{"line_number":98,"context_line":"        eventlet.spawn(self._process_keystone_events)"},{"line_number":99,"context_line":""},{"line_number":100,"context_line":"        # Initialize nova client wrapper. It will be used to get more"},{"line_number":101,"context_line":"        # information for an instance."}],"source_content_type":"text/x-python","patch_set":27,"id":"1abeadc6_67ccec35","line":98,"in_reply_to":"1abeadc6_11c61b68","updated":"2014-08-30 03:19:27.000000000","message":"Based on the event in the notification queue, an entry will be created in the project cache data base. With multiple listener there won\u0027t be duplicate entry in the database as the name/tenant id is the same.","commit_id":"466409a0add3304ff814f394012958889db9a2f4"},{"author":{"_account_id":9380,"name":"Sayaji Patil","email":"sayaji15@gmail.com","username":"Sayaji"},"change_message_id":"4314089170c390d1b8721fb4d7917ba3a154ab30","unresolved":false,"context_lines":[{"line_number":192,"context_line":"            return"},{"line_number":193,"context_line":""},{"line_number":194,"context_line":"        subnet \u003d context.current"},{"line_number":195,"context_line":"        if subnet[\u0027name\u0027] \u003d\u003d \u0027private-subnet\u0027:"},{"line_number":196,"context_line":"            emsg \u003d _(\"%s is default subnet and no need to create it in DCNM.\")"},{"line_number":197,"context_line":"            LOG.info(emsg % subnet[\u0027name\u0027])"},{"line_number":198,"context_line":"            return"}],"source_content_type":"text/x-python","patch_set":28,"id":"fa98f980_1531960b","line":195,"updated":"2014-08-30 20:08:18.000000000","message":"Is it safe to make this assumption ? Someone can name a non-default subnet \"private-subnet\"","commit_id":"e87a682baffcf54d39ea85d22214ffca75295c4b"}],"neutron/plugins/ml2/drivers/cisco/dfa/project_events.py":[{"author":{"_account_id":1923,"name":"Mohammad Banikazemi","email":"mbanikazemi@gmail.com","username":"mb-s"},"change_message_id":"31e04aa26880209b0f196ee1cfeed6c7ac3d8a65","unresolved":false,"context_lines":[{"line_number":74,"context_line":"        proj \u003d keyc.projects.get(project_id)"},{"line_number":75,"context_line":"        proj_name \u003d proj.name"},{"line_number":76,"context_line":"        desc \u003d proj.description"},{"line_number":77,"context_line":"        LOG.debug(_(\"project_create_event: %(proj)s %(proj_name)s %(desc)s.\"),"},{"line_number":78,"context_line":"                  {\u0027proj\u0027: proj, \u0027proj_name\u0027: proj_name, \u0027desc\u0027: desc})"},{"line_number":79,"context_line":"        if proj_name not in proj_exceptions_list:"},{"line_number":80,"context_line":"            try:"}],"source_content_type":"text/x-python","patch_set":8,"id":"baada198_27d83d1d","line":77,"updated":"2014-07-22 02:03:33.000000000","message":"Please check for using internationalization for debug messages through out the patch and remove. I won\u0027t note the others.","commit_id":"0cacf91bd31d574cdae1635843141dc2b1c4a137"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"7efd49818763bdc8ad70ab75885947e31fea556e","unresolved":false,"context_lines":[{"line_number":74,"context_line":"        proj \u003d keyc.projects.get(project_id)"},{"line_number":75,"context_line":"        proj_name \u003d proj.name"},{"line_number":76,"context_line":"        desc \u003d proj.description"},{"line_number":77,"context_line":"        LOG.debug(_(\"project_create_event: %(proj)s %(proj_name)s %(desc)s.\"),"},{"line_number":78,"context_line":"                  {\u0027proj\u0027: proj, \u0027proj_name\u0027: proj_name, \u0027desc\u0027: desc})"},{"line_number":79,"context_line":"        if proj_name not in proj_exceptions_list:"},{"line_number":80,"context_line":"            try:"}],"source_content_type":"text/x-python","patch_set":8,"id":"baada198_230eca3d","line":77,"in_reply_to":"baada198_27d83d1d","updated":"2014-07-24 22:37:33.000000000","message":"Fixed all of them.","commit_id":"0cacf91bd31d574cdae1635843141dc2b1c4a137"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"10ad2d179480789a84d0141dd3c9849d116ffb88","unresolved":false,"context_lines":[{"line_number":39,"context_line":"}"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"proj_exceptions_list \u003d \\"},{"line_number":42,"context_line":"    [\u0027admin\u0027, \u0027service\u0027, \u0027invisible_to_admin\u0027, \u0027demo\u0027, \u0027alt_demo\u0027]"},{"line_number":43,"context_line":""},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"class NotificationEndpoint(object):"}],"source_content_type":"text/x-python","patch_set":12,"id":"baada198_8cf3d708","line":42,"updated":"2014-08-05 11:10:19.000000000","message":"is this list related to devstack?\nwhy is this necessary?","commit_id":"662099e140c3044d2c625a7ce4ea53e06c966d5e"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"f72d1727276bb6251ade2fc18336673dd9b1582f","unresolved":false,"context_lines":[{"line_number":39,"context_line":"}"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"proj_exceptions_list \u003d \\"},{"line_number":42,"context_line":"    [\u0027admin\u0027, \u0027service\u0027, \u0027invisible_to_admin\u0027, \u0027demo\u0027, \u0027alt_demo\u0027]"},{"line_number":43,"context_line":""},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"class NotificationEndpoint(object):"}],"source_content_type":"text/x-python","patch_set":12,"id":"baada198_ee60a736","line":42,"in_reply_to":"baada198_8cf3d708","updated":"2014-08-06 21:15:34.000000000","message":"Yes it is. Needed to filter these default projects to be created on DCNM.","commit_id":"662099e140c3044d2c625a7ce4ea53e06c966d5e"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"02be96eb7969215a0e065116d7ab2aa68d507558","unresolved":false,"context_lines":[{"line_number":38,"context_line":"    }"},{"line_number":39,"context_line":"}"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"proj_exceptions_list \u003d \\"},{"line_number":42,"context_line":"    [\u0027admin\u0027, \u0027service\u0027, \u0027invisible_to_admin\u0027, \u0027demo\u0027, \u0027alt_demo\u0027]"},{"line_number":43,"context_line":""},{"line_number":44,"context_line":""}],"source_content_type":"text/x-python","patch_set":19,"id":"1abeadc6_9d357ef9","line":41,"updated":"2014-08-19 11:42:42.000000000","message":"eliminate backslash for continuation.","commit_id":"9948525d9fec9e0d067b65fe8bcb9da114122d19"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"6e162f393cc6cf523f14b619fdaa0ad31f70da7e","unresolved":false,"context_lines":[{"line_number":38,"context_line":"    }"},{"line_number":39,"context_line":"}"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"proj_exceptions_list \u003d \\"},{"line_number":42,"context_line":"    [\u0027admin\u0027, \u0027service\u0027, \u0027invisible_to_admin\u0027, \u0027demo\u0027, \u0027alt_demo\u0027]"},{"line_number":43,"context_line":""},{"line_number":44,"context_line":""}],"source_content_type":"text/x-python","patch_set":19,"id":"1abeadc6_22ea7e0f","line":41,"in_reply_to":"1abeadc6_9d357ef9","updated":"2014-08-19 19:33:09.000000000","message":"Done","commit_id":"9948525d9fec9e0d067b65fe8bcb9da114122d19"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"02be96eb7969215a0e065116d7ab2aa68d507558","unresolved":false,"context_lines":[{"line_number":85,"context_line":"            try:"},{"line_number":86,"context_line":"                dcnmc.create_project(proj_name, desc)"},{"line_number":87,"context_line":"            except dexc.DFAClientConnectionFailed as ex:"},{"line_number":88,"context_line":"                LOG.error(_(\u0027Failed to create %(proj)s. Error:%(err)s.\u0027),"},{"line_number":89,"context_line":"                          {\u0027proj\u0027: proj_name, \u0027err\u0027: ex})"},{"line_number":90,"context_line":"                raise ex"},{"line_number":91,"context_line":""}],"source_content_type":"text/x-python","patch_set":19,"id":"1abeadc6_98274cb6","line":88,"updated":"2014-08-19 11:42:42.000000000","message":"Use save_and_reraise_exception() with clause in handler, since there may be a change in context, due to log message.","commit_id":"9948525d9fec9e0d067b65fe8bcb9da114122d19"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"6e162f393cc6cf523f14b619fdaa0ad31f70da7e","unresolved":false,"context_lines":[{"line_number":85,"context_line":"            try:"},{"line_number":86,"context_line":"                dcnmc.create_project(proj_name, desc)"},{"line_number":87,"context_line":"            except dexc.DFAClientConnectionFailed as ex:"},{"line_number":88,"context_line":"                LOG.error(_(\u0027Failed to create %(proj)s. Error:%(err)s.\u0027),"},{"line_number":89,"context_line":"                          {\u0027proj\u0027: proj_name, \u0027err\u0027: ex})"},{"line_number":90,"context_line":"                raise ex"},{"line_number":91,"context_line":""}],"source_content_type":"text/x-python","patch_set":19,"id":"1abeadc6_ea2058b2","line":88,"in_reply_to":"1abeadc6_98274cb6","updated":"2014-08-19 19:33:09.000000000","message":"Done","commit_id":"9948525d9fec9e0d067b65fe8bcb9da114122d19"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"02be96eb7969215a0e065116d7ab2aa68d507558","unresolved":false,"context_lines":[{"line_number":149,"context_line":"                self.events_handler[event](self._keystone, project_id,"},{"line_number":150,"context_line":"                                           self._dcnm_client)"},{"line_number":151,"context_line":"        except KeyError:"},{"line_number":152,"context_line":"            LOG.error(_(\u0027event_type %s does not have payload/resource_info\u0027"},{"line_number":153,"context_line":"                      \u0027key\u0027), event)"},{"line_number":154,"context_line":""},{"line_number":155,"context_line":"    def event_handler(self):"}],"source_content_type":"text/x-python","patch_set":19,"id":"1abeadc6_7830b0e8","line":152,"updated":"2014-08-19 11:42:42.000000000","message":"space at end of string.","commit_id":"9948525d9fec9e0d067b65fe8bcb9da114122d19"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"6e162f393cc6cf523f14b619fdaa0ad31f70da7e","unresolved":false,"context_lines":[{"line_number":149,"context_line":"                self.events_handler[event](self._keystone, project_id,"},{"line_number":150,"context_line":"                                           self._dcnm_client)"},{"line_number":151,"context_line":"        except KeyError:"},{"line_number":152,"context_line":"            LOG.error(_(\u0027event_type %s does not have payload/resource_info\u0027"},{"line_number":153,"context_line":"                      \u0027key\u0027), event)"},{"line_number":154,"context_line":""},{"line_number":155,"context_line":"    def event_handler(self):"}],"source_content_type":"text/x-python","patch_set":19,"id":"1abeadc6_05c90778","line":152,"in_reply_to":"1abeadc6_7830b0e8","updated":"2014-08-19 19:33:09.000000000","message":"Done","commit_id":"9948525d9fec9e0d067b65fe8bcb9da114122d19"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"e42b89332ea0461d2ae9c982b5e771f3404a708e","unresolved":false,"context_lines":[{"line_number":13,"context_line":"#    License for the specific language governing permissions and limitations"},{"line_number":14,"context_line":"#    under the License."},{"line_number":15,"context_line":"#"},{"line_number":16,"context_line":"# @author: Nader Lahouti, Cisco Systems, Inc."},{"line_number":17,"context_line":""},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"from keystoneclient.v3 import client"}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_b9574959","line":16,"updated":"2014-08-28 18:53:56.000000000","message":"not needed","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"e42b89332ea0461d2ae9c982b5e771f3404a708e","unresolved":false,"context_lines":[{"line_number":16,"context_line":"# @author: Nader Lahouti, Cisco Systems, Inc."},{"line_number":17,"context_line":""},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"from keystoneclient.v3 import client"},{"line_number":20,"context_line":"from neutron.openstack.common import excutils"},{"line_number":21,"context_line":"from neutron.openstack.common import log as logging"},{"line_number":22,"context_line":"from neutron.plugins.ml2.drivers.cisco.dfa import dfa_exceptions as dexc"}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_5948f5b2","line":19,"updated":"2014-08-28 18:53:56.000000000","message":"keystone is 3rd party","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"e42b89332ea0461d2ae9c982b5e771f3404a708e","unresolved":false,"context_lines":[{"line_number":21,"context_line":"from neutron.openstack.common import log as logging"},{"line_number":22,"context_line":"from neutron.plugins.ml2.drivers.cisco.dfa import dfa_exceptions as dexc"},{"line_number":23,"context_line":"from neutron.plugins.ml2.drivers.cisco.dfa import projects_cache_db_v2"},{"line_number":24,"context_line":"from oslo.config import cfg"},{"line_number":25,"context_line":"from oslo import messaging"},{"line_number":26,"context_line":""},{"line_number":27,"context_line":""}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_394b39b2","line":24,"updated":"2014-08-28 18:53:56.000000000","message":"oslo is 3rd party","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"f39f8dd0a8e97b6999b7a420090edd1de01d4f67","unresolved":false,"context_lines":[{"line_number":21,"context_line":"from neutron.openstack.common import log as logging"},{"line_number":22,"context_line":"from neutron.plugins.ml2.drivers.cisco.dfa import dfa_exceptions as dexc"},{"line_number":23,"context_line":"from neutron.plugins.ml2.drivers.cisco.dfa import projects_cache_db_v2"},{"line_number":24,"context_line":"from oslo.config import cfg"},{"line_number":25,"context_line":"from oslo import messaging"},{"line_number":26,"context_line":""},{"line_number":27,"context_line":""}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_b7872e60","line":24,"in_reply_to":"1abeadc6_1f52dd66","updated":"2014-08-29 10:25:40.000000000","message":"should be:\n\nfrom oslo.config import cfg\nfrom oslo import messaging\nfrom keystoneclient.v3 import client\n\nfrom neutron.openstack.common import excutils\n...","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"5ce09020034ab1d260a593b372e6142cc5b952ee","unresolved":false,"context_lines":[{"line_number":21,"context_line":"from neutron.openstack.common import log as logging"},{"line_number":22,"context_line":"from neutron.plugins.ml2.drivers.cisco.dfa import dfa_exceptions as dexc"},{"line_number":23,"context_line":"from neutron.plugins.ml2.drivers.cisco.dfa import projects_cache_db_v2"},{"line_number":24,"context_line":"from oslo.config import cfg"},{"line_number":25,"context_line":"from oslo import messaging"},{"line_number":26,"context_line":""},{"line_number":27,"context_line":""}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_1f52dd66","line":24,"in_reply_to":"1abeadc6_394b39b2","updated":"2014-08-28 19:57:50.000000000","message":"Do you mean it should be used before other import? I didn\u0027t get any error runnign tox and so with jenkins.","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"3e973b569c560f8a67f33b7353e38eb007acee69","unresolved":false,"context_lines":[{"line_number":21,"context_line":"from neutron.openstack.common import log as logging"},{"line_number":22,"context_line":"from neutron.plugins.ml2.drivers.cisco.dfa import dfa_exceptions as dexc"},{"line_number":23,"context_line":"from neutron.plugins.ml2.drivers.cisco.dfa import projects_cache_db_v2"},{"line_number":24,"context_line":"from oslo.config import cfg"},{"line_number":25,"context_line":"from oslo import messaging"},{"line_number":26,"context_line":""},{"line_number":27,"context_line":""}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_5fad0c30","line":24,"in_reply_to":"1abeadc6_b7872e60","updated":"2014-08-29 15:12:38.000000000","message":"Done","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"e42b89332ea0461d2ae9c982b5e771f3404a708e","unresolved":false,"context_lines":[{"line_number":152,"context_line":"                self.events_handler[event](self._keystone, project_id,"},{"line_number":153,"context_line":"                                           self._dcnm_client)"},{"line_number":154,"context_line":"        except KeyError:"},{"line_number":155,"context_line":"            LOG.error(_(\u0027event_type %s does not have payload/resource_info \u0027"},{"line_number":156,"context_line":"                      \u0027key\u0027), event)"},{"line_number":157,"context_line":""},{"line_number":158,"context_line":"    def event_handler(self):"}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_79c85122","line":155,"updated":"2014-08-28 18:53:56.000000000","message":"loggin hingt","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"e42b89332ea0461d2ae9c982b5e771f3404a708e","unresolved":false,"context_lines":[{"line_number":153,"context_line":"                                           self._dcnm_client)"},{"line_number":154,"context_line":"        except KeyError:"},{"line_number":155,"context_line":"            LOG.error(_(\u0027event_type %s does not have payload/resource_info \u0027"},{"line_number":156,"context_line":"                      \u0027key\u0027), event)"},{"line_number":157,"context_line":""},{"line_number":158,"context_line":"    def event_handler(self):"},{"line_number":159,"context_line":"        \"\"\"Prepare connection and channels for listenning to the events.\"\"\""}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_99cd2d34","line":156,"updated":"2014-08-28 18:53:56.000000000","message":"indentation","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"5ce09020034ab1d260a593b372e6142cc5b952ee","unresolved":false,"context_lines":[{"line_number":153,"context_line":"                                           self._dcnm_client)"},{"line_number":154,"context_line":"        except KeyError:"},{"line_number":155,"context_line":"            LOG.error(_(\u0027event_type %s does not have payload/resource_info \u0027"},{"line_number":156,"context_line":"                      \u0027key\u0027), event)"},{"line_number":157,"context_line":""},{"line_number":158,"context_line":"    def event_handler(self):"},{"line_number":159,"context_line":"        \"\"\"Prepare connection and channels for listenning to the events.\"\"\""}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_5fdff5d5","line":156,"in_reply_to":"1abeadc6_99cd2d34","updated":"2014-08-28 19:57:50.000000000","message":"Why is that? Run tox and didn\u0027t get any error.","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"838fab593cc07834c4629a816a88172c96054399","unresolved":false,"context_lines":[{"line_number":51,"context_line":"        self._event_hndlr.callback(event_type, payload)"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"class EventsHandler(projects_cache_db_v2.ProjectsInfoCache):"},{"line_number":55,"context_line":"    \"\"\"This class defines methods to listen and process the project events.\"\"\""},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"    def __init__(self, ser_name, dcnm_client):"}],"source_content_type":"text/x-python","patch_set":27,"id":"1abeadc6_512ed343","line":54,"updated":"2014-08-29 20:33:18.000000000","message":"This is not robust and will likely cause lots of headaches because the assumption is that Neutron will always be up when Keystone notification events are generated.","commit_id":"466409a0add3304ff814f394012958889db9a2f4"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"1c48fba88e2f733cf844d6a9cb7eadd773cba9d6","unresolved":false,"context_lines":[{"line_number":51,"context_line":"        self._event_hndlr.callback(event_type, payload)"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"class EventsHandler(projects_cache_db_v2.ProjectsInfoCache):"},{"line_number":55,"context_line":"    \"\"\"This class defines methods to listen and process the project events.\"\"\""},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"    def __init__(self, ser_name, dcnm_client):"}],"source_content_type":"text/x-python","patch_set":27,"id":"1abeadc6_8758288b","line":54,"in_reply_to":"1abeadc6_512ed343","updated":"2014-08-30 03:19:27.000000000","message":"Are you saying the cause of problem is that lots of events remain in the queue without processing?\nAfter restarting the neutron, the event will be processed.","commit_id":"466409a0add3304ff814f394012958889db9a2f4"}],"neutron/plugins/ml2/drivers/cisco/dfa/projects_cache_db_v2.py":[{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"6477756b09e7550ecf31253f52653a758e044171","unresolved":false,"context_lines":[{"line_number":39,"context_line":"        \"\"\"Create and entry in the database.\"\"\""},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"        db_session \u003d db.get_session()"},{"line_number":42,"context_line":"        with db_session.begin(subtransactions\u003dTrue):"},{"line_number":43,"context_line":"            projid \u003d proj_info[\"project_id\"]"},{"line_number":44,"context_line":"            projname \u003d proj_info[\"project_name\"]"},{"line_number":45,"context_line":"            thisproj \u003d dfa_models_v2.ProjectNameCache(project_id\u003dprojid,"}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_0284925c","line":42,"updated":"2014-07-02 16:58:18.000000000","message":"is this needed?","commit_id":"4bf5fd49cfa55f7c9d8b65ae5fed0aec01816ebc"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"437c937556f2a9d02b80dd68d623f6aece4b8c66","unresolved":false,"context_lines":[{"line_number":39,"context_line":"        \"\"\"Create and entry in the database.\"\"\""},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"        db_session \u003d db.get_session()"},{"line_number":42,"context_line":"        with db_session.begin(subtransactions\u003dTrue):"},{"line_number":43,"context_line":"            projid \u003d proj_info[\"project_id\"]"},{"line_number":44,"context_line":"            projname \u003d proj_info[\"project_name\"]"},{"line_number":45,"context_line":"            thisproj \u003d dfa_models_v2.ProjectNameCache(project_id\u003dprojid,"}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_7e1617a9","line":42,"in_reply_to":"baada198_0284925c","updated":"2014-07-09 15:38:22.000000000","message":"I tried to follow the existing framework that is done in other files as well. Without this nothing is added to the database.","commit_id":"4bf5fd49cfa55f7c9d8b65ae5fed0aec01816ebc"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"e73ae335860866e807380ea518f0569ee8656678","unresolved":false,"context_lines":[{"line_number":39,"context_line":"        \"\"\"Create and entry in the database.\"\"\""},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"        db_session \u003d db.get_session()"},{"line_number":42,"context_line":"        with db_session.begin(subtransactions\u003dTrue):"},{"line_number":43,"context_line":"            projid \u003d proj_info[\"project_id\"]"},{"line_number":44,"context_line":"            projname \u003d proj_info[\"project_name\"]"},{"line_number":45,"context_line":"            thisproj \u003d dfa_models_v2.ProjectNameCache(project_id\u003dprojid,"}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_1b0a5427","line":42,"in_reply_to":"baada198_7e1617a9","updated":"2014-07-23 10:50:20.000000000","message":"Sorry my comment was not clear...I was always referring to the subtransactions flag","commit_id":"4bf5fd49cfa55f7c9d8b65ae5fed0aec01816ebc"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"6477756b09e7550ecf31253f52653a758e044171","unresolved":false,"context_lines":[{"line_number":52,"context_line":""},{"line_number":53,"context_line":"        db_session \u003d db.get_session()"},{"line_number":54,"context_line":"        thisproj \u003d None"},{"line_number":55,"context_line":"        with db_session.begin(subtransactions\u003dTrue):"},{"line_number":56,"context_line":"            thisproj \u003d self._get_project_entry(db_session, proj_id)"},{"line_number":57,"context_line":"            db_session.delete(thisproj)"},{"line_number":58,"context_line":"        return thisproj"}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_e28cfe81","line":55,"updated":"2014-07-02 16:58:18.000000000","message":"is this needed?","commit_id":"4bf5fd49cfa55f7c9d8b65ae5fed0aec01816ebc"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"437c937556f2a9d02b80dd68d623f6aece4b8c66","unresolved":false,"context_lines":[{"line_number":52,"context_line":""},{"line_number":53,"context_line":"        db_session \u003d db.get_session()"},{"line_number":54,"context_line":"        thisproj \u003d None"},{"line_number":55,"context_line":"        with db_session.begin(subtransactions\u003dTrue):"},{"line_number":56,"context_line":"            thisproj \u003d self._get_project_entry(db_session, proj_id)"},{"line_number":57,"context_line":"            db_session.delete(thisproj)"},{"line_number":58,"context_line":"        return thisproj"}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_1e1fdbb8","line":55,"in_reply_to":"baada198_e28cfe81","updated":"2014-07-09 15:38:22.000000000","message":"same as line 42","commit_id":"4bf5fd49cfa55f7c9d8b65ae5fed0aec01816ebc"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"6477756b09e7550ecf31253f52653a758e044171","unresolved":false,"context_lines":[{"line_number":54,"context_line":"        thisproj \u003d None"},{"line_number":55,"context_line":"        with db_session.begin(subtransactions\u003dTrue):"},{"line_number":56,"context_line":"            thisproj \u003d self._get_project_entry(db_session, proj_id)"},{"line_number":57,"context_line":"            db_session.delete(thisproj)"},{"line_number":58,"context_line":"        return thisproj"},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"    def get_project_name(self, proj_id):"}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_c2f29ad1","line":57,"updated":"2014-07-02 16:58:18.000000000","message":"Exception can be thrown , is that OK for the caller? Better catching and returning None?","commit_id":"4bf5fd49cfa55f7c9d8b65ae5fed0aec01816ebc"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"437c937556f2a9d02b80dd68d623f6aece4b8c66","unresolved":false,"context_lines":[{"line_number":54,"context_line":"        thisproj \u003d None"},{"line_number":55,"context_line":"        with db_session.begin(subtransactions\u003dTrue):"},{"line_number":56,"context_line":"            thisproj \u003d self._get_project_entry(db_session, proj_id)"},{"line_number":57,"context_line":"            db_session.delete(thisproj)"},{"line_number":58,"context_line":"        return thisproj"},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"    def get_project_name(self, proj_id):"}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_7e3537f6","line":57,"in_reply_to":"baada198_c2f29ad1","updated":"2014-07-09 15:38:22.000000000","message":"Exception is raised in _get_project_entry and caller catching it.","commit_id":"4bf5fd49cfa55f7c9d8b65ae5fed0aec01816ebc"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"6477756b09e7550ecf31253f52653a758e044171","unresolved":false,"context_lines":[{"line_number":61,"context_line":"        \"\"\"Returns project\u0027s name.\"\"\""},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"        db_session \u003d db.get_session()"},{"line_number":64,"context_line":"        with db_session.begin(subtransactions\u003dTrue):"},{"line_number":65,"context_line":"            thisproj \u003d self._get_project_entry(db_session, proj_id)"},{"line_number":66,"context_line":"            return thisproj.project_name"},{"line_number":67,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_c2c9ba79","line":64,"updated":"2014-07-02 16:58:18.000000000","message":"Not needed, _get_project_entry doesn\u0027t modify the DB","commit_id":"4bf5fd49cfa55f7c9d8b65ae5fed0aec01816ebc"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"437c937556f2a9d02b80dd68d623f6aece4b8c66","unresolved":false,"context_lines":[{"line_number":61,"context_line":"        \"\"\"Returns project\u0027s name.\"\"\""},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"        db_session \u003d db.get_session()"},{"line_number":64,"context_line":"        with db_session.begin(subtransactions\u003dTrue):"},{"line_number":65,"context_line":"            thisproj \u003d self._get_project_entry(db_session, proj_id)"},{"line_number":66,"context_line":"            return thisproj.project_name"},{"line_number":67,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_be3fcfd5","line":64,"in_reply_to":"baada198_c2c9ba79","updated":"2014-07-09 15:38:22.000000000","message":"same as line 42","commit_id":"4bf5fd49cfa55f7c9d8b65ae5fed0aec01816ebc"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"6477756b09e7550ecf31253f52653a758e044171","unresolved":false,"context_lines":[{"line_number":69,"context_line":"        \"\"\"Update projects DB.\"\"\""},{"line_number":70,"context_line":""},{"line_number":71,"context_line":"        db_session \u003d db.get_session()"},{"line_number":72,"context_line":"        with db_session.begin(subtransactions\u003dTrue):"},{"line_number":73,"context_line":"            thisproj \u003d self._get_project_entry(db_session, id)"},{"line_number":74,"context_line":"            thisproj.update(proj_info)"},{"line_number":75,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_02a3b2b2","line":72,"updated":"2014-07-02 16:58:18.000000000","message":"Is that needed?","commit_id":"4bf5fd49cfa55f7c9d8b65ae5fed0aec01816ebc"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"437c937556f2a9d02b80dd68d623f6aece4b8c66","unresolved":false,"context_lines":[{"line_number":69,"context_line":"        \"\"\"Update projects DB.\"\"\""},{"line_number":70,"context_line":""},{"line_number":71,"context_line":"        db_session \u003d db.get_session()"},{"line_number":72,"context_line":"        with db_session.begin(subtransactions\u003dTrue):"},{"line_number":73,"context_line":"            thisproj \u003d self._get_project_entry(db_session, id)"},{"line_number":74,"context_line":"            thisproj.update(proj_info)"},{"line_number":75,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_fe07871b","line":72,"in_reply_to":"baada198_02a3b2b2","updated":"2014-07-09 15:38:22.000000000","message":"same as line 42","commit_id":"4bf5fd49cfa55f7c9d8b65ae5fed0aec01816ebc"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"10ad2d179480789a84d0141dd3c9849d116ffb88","unresolved":false,"context_lines":[{"line_number":26,"context_line":"class ProjectsInfoCache(object):"},{"line_number":27,"context_line":"    \"\"\"Project DB API.\"\"\""},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"    def _get_project_entry(self, db_session, id):"},{"line_number":30,"context_line":"        \"\"\"Get a project entry from the table."},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"        :param db_session: database session object"}],"source_content_type":"text/x-python","patch_set":12,"id":"baada198_2c7d6b71","line":29,"updated":"2014-08-05 11:10:19.000000000","message":"please avoid shadowing \"id\".","commit_id":"662099e140c3044d2c625a7ce4ea53e06c966d5e"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"f72d1727276bb6251ade2fc18336673dd9b1582f","unresolved":false,"context_lines":[{"line_number":26,"context_line":"class ProjectsInfoCache(object):"},{"line_number":27,"context_line":"    \"\"\"Project DB API.\"\"\""},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"    def _get_project_entry(self, db_session, id):"},{"line_number":30,"context_line":"        \"\"\"Get a project entry from the table."},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"        :param db_session: database session object"}],"source_content_type":"text/x-python","patch_set":12,"id":"baada198_6e4c97ca","line":29,"in_reply_to":"baada198_2c7d6b71","updated":"2014-08-06 21:15:34.000000000","message":"Done","commit_id":"662099e140c3044d2c625a7ce4ea53e06c966d5e"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"10ad2d179480789a84d0141dd3c9849d116ffb88","unresolved":false,"context_lines":[{"line_number":74,"context_line":"            thisproj \u003d self._get_project_entry(db_session, proj_id)"},{"line_number":75,"context_line":"            return thisproj.project_name"},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"    def update_projects_cache_db(self, id, proj_info):"},{"line_number":78,"context_line":"        \"\"\"Update projects DB."},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"        :param id: project id"}],"source_content_type":"text/x-python","patch_set":12,"id":"baada198_aca97be0","line":77,"updated":"2014-08-05 11:10:19.000000000","message":"ditto","commit_id":"662099e140c3044d2c625a7ce4ea53e06c966d5e"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"f72d1727276bb6251ade2fc18336673dd9b1582f","unresolved":false,"context_lines":[{"line_number":74,"context_line":"            thisproj \u003d self._get_project_entry(db_session, proj_id)"},{"line_number":75,"context_line":"            return thisproj.project_name"},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"    def update_projects_cache_db(self, id, proj_info):"},{"line_number":78,"context_line":"        \"\"\"Update projects DB."},{"line_number":79,"context_line":""},{"line_number":80,"context_line":"        :param id: project id"}],"source_content_type":"text/x-python","patch_set":12,"id":"baada198_8e49ebba","line":77,"in_reply_to":"baada198_aca97be0","updated":"2014-08-06 21:15:34.000000000","message":"Done","commit_id":"662099e140c3044d2c625a7ce4ea53e06c966d5e"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"10ad2d179480789a84d0141dd3c9849d116ffb88","unresolved":false,"context_lines":[{"line_number":85,"context_line":"            thisproj \u003d self._get_project_entry(db_session, id)"},{"line_number":86,"context_line":"            thisproj.update(proj_info)"},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"    def get_network_segid(self, id):"},{"line_number":89,"context_line":"        \"\"\"Get network segmentation id."},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"        :param id: requested segment id"}],"source_content_type":"text/x-python","patch_set":12,"id":"baada198_cca6af0d","line":88,"updated":"2014-08-05 11:10:19.000000000","message":"ditto","commit_id":"662099e140c3044d2c625a7ce4ea53e06c966d5e"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"f72d1727276bb6251ade2fc18336673dd9b1582f","unresolved":false,"context_lines":[{"line_number":85,"context_line":"            thisproj \u003d self._get_project_entry(db_session, id)"},{"line_number":86,"context_line":"            thisproj.update(proj_info)"},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"    def get_network_segid(self, id):"},{"line_number":89,"context_line":"        \"\"\"Get network segmentation id."},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"        :param id: requested segment id"}],"source_content_type":"text/x-python","patch_set":12,"id":"baada198_ae46afa5","line":88,"in_reply_to":"baada198_cca6af0d","updated":"2014-08-06 21:15:34.000000000","message":"Done","commit_id":"662099e140c3044d2c625a7ce4ea53e06c966d5e"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"e42b89332ea0461d2ae9c982b5e771f3404a708e","unresolved":false,"context_lines":[{"line_number":13,"context_line":"#    License for the specific language governing permissions and limitations"},{"line_number":14,"context_line":"#    under the License."},{"line_number":15,"context_line":"#"},{"line_number":16,"context_line":"# @author: Nader Lahouti, Cisco Systems, Inc."},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"from sqlalchemy.orm import exc"},{"line_number":19,"context_line":""}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_f9db81ea","line":16,"updated":"2014-08-28 18:53:56.000000000","message":"do not need this","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"}],"neutron/plugins/openvswitch/agent/ovs_neutron_agent.py":[{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"6477756b09e7550ecf31253f52653a758e044171","unresolved":false,"context_lines":[{"line_number":288,"context_line":"            heartbeat.start(interval\u003dreport_interval)"},{"line_number":289,"context_line":""},{"line_number":290,"context_line":"    def _create_mech_driver_topics_list(self, mech_drvr):"},{"line_number":291,"context_line":"        # Create list of topics for each mechanism driver and agent."},{"line_number":292,"context_line":"        # name: name of mechanism driver,"},{"line_number":293,"context_line":"        # plugin_topic: topic name on the mechanism driver side,"},{"line_number":294,"context_line":"        # agent_topic: topic name on the agent side."}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_62b54ecc","line":291,"updated":"2014-07-02 16:58:18.000000000","message":"These comments can be turned in a proper docstring","commit_id":"4bf5fd49cfa55f7c9d8b65ae5fed0aec01816ebc"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"437c937556f2a9d02b80dd68d623f6aece4b8c66","unresolved":false,"context_lines":[{"line_number":288,"context_line":"            heartbeat.start(interval\u003dreport_interval)"},{"line_number":289,"context_line":""},{"line_number":290,"context_line":"    def _create_mech_driver_topics_list(self, mech_drvr):"},{"line_number":291,"context_line":"        # Create list of topics for each mechanism driver and agent."},{"line_number":292,"context_line":"        # name: name of mechanism driver,"},{"line_number":293,"context_line":"        # plugin_topic: topic name on the mechanism driver side,"},{"line_number":294,"context_line":"        # agent_topic: topic name on the agent side."}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_146c1736","line":291,"in_reply_to":"baada198_62b54ecc","updated":"2014-07-09 15:38:22.000000000","message":"Done","commit_id":"4bf5fd49cfa55f7c9d8b65ae5fed0aec01816ebc"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"6477756b09e7550ecf31253f52653a758e044171","unresolved":false,"context_lines":[{"line_number":296,"context_line":"        for val in mech_drvr:"},{"line_number":297,"context_line":"            if len(val) \u003e 0:"},{"line_number":298,"context_line":"                tmplist \u003d val.split(\u0027:\u0027)"},{"line_number":299,"context_line":"                while len(tmplist) \u003c len(key_list):"},{"line_number":300,"context_line":"                    tmplist.append(None)"},{"line_number":301,"context_line":"                d \u003d dict(itertools.izip(key_list, tmplist))"},{"line_number":302,"context_line":"                self._mech_driver_rpc_topics.append(d)"}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_82550252","line":299,"updated":"2014-07-02 16:58:18.000000000","message":"Are those lines really needed? You assume that some of the values for \u0027name\u0027 or \u0027plugin_topic\u0027 or \u0027agent_topic\u0027 can be empty, is that OK? Should an exception be thrown instead?","commit_id":"4bf5fd49cfa55f7c9d8b65ae5fed0aec01816ebc"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"437c937556f2a9d02b80dd68d623f6aece4b8c66","unresolved":false,"context_lines":[{"line_number":296,"context_line":"        for val in mech_drvr:"},{"line_number":297,"context_line":"            if len(val) \u003e 0:"},{"line_number":298,"context_line":"                tmplist \u003d val.split(\u0027:\u0027)"},{"line_number":299,"context_line":"                while len(tmplist) \u003c len(key_list):"},{"line_number":300,"context_line":"                    tmplist.append(None)"},{"line_number":301,"context_line":"                d \u003d dict(itertools.izip(key_list, tmplist))"},{"line_number":302,"context_line":"                self._mech_driver_rpc_topics.append(d)"}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_e75b772c","line":299,"in_reply_to":"baada198_82550252","updated":"2014-07-09 15:38:22.000000000","message":"If they are empty the value in None and the topic won\u0027t be added to the consumer\u0027s list.","commit_id":"4bf5fd49cfa55f7c9d8b65ae5fed0aec01816ebc"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"6477756b09e7550ecf31253f52653a758e044171","unresolved":false,"context_lines":[{"line_number":300,"context_line":"                    tmplist.append(None)"},{"line_number":301,"context_line":"                d \u003d dict(itertools.izip(key_list, tmplist))"},{"line_number":302,"context_line":"                self._mech_driver_rpc_topics.append(d)"},{"line_number":303,"context_line":"        LOG.debug(_(\u0027List of mechanism drivers RPC topics\u003d%s\u0027),"},{"line_number":304,"context_line":"                  (self._mech_driver_rpc_topics))"},{"line_number":305,"context_line":""},{"line_number":306,"context_line":"    def _setup_mech_driver_consumers(self, consumers):"}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_02df320e","line":303,"updated":"2014-07-02 16:58:18.000000000","message":"translations are not needed for debug messages","commit_id":"4bf5fd49cfa55f7c9d8b65ae5fed0aec01816ebc"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"437c937556f2a9d02b80dd68d623f6aece4b8c66","unresolved":false,"context_lines":[{"line_number":300,"context_line":"                    tmplist.append(None)"},{"line_number":301,"context_line":"                d \u003d dict(itertools.izip(key_list, tmplist))"},{"line_number":302,"context_line":"                self._mech_driver_rpc_topics.append(d)"},{"line_number":303,"context_line":"        LOG.debug(_(\u0027List of mechanism drivers RPC topics\u003d%s\u0027),"},{"line_number":304,"context_line":"                  (self._mech_driver_rpc_topics))"},{"line_number":305,"context_line":""},{"line_number":306,"context_line":"    def _setup_mech_driver_consumers(self, consumers):"}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_c70e73e5","line":303,"in_reply_to":"baada198_02df320e","updated":"2014-07-09 15:38:22.000000000","message":"Done","commit_id":"4bf5fd49cfa55f7c9d8b65ae5fed0aec01816ebc"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"6477756b09e7550ecf31253f52653a758e044171","unresolved":false,"context_lines":[{"line_number":304,"context_line":"                  (self._mech_driver_rpc_topics))"},{"line_number":305,"context_line":""},{"line_number":306,"context_line":"    def _setup_mech_driver_consumers(self, consumers):"},{"line_number":307,"context_line":"        # Add agent\u0027s topic to the listening consumers list, for every"},{"line_number":308,"context_line":"        # mechanism driver in the _mech_driver_rpc_topics list."},{"line_number":309,"context_line":"        for md in self._mech_driver_rpc_topics:"},{"line_number":310,"context_line":"            a_topic \u003d md[\u0027agent_topic\u0027]"}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_42e92ab7","line":307,"updated":"2014-07-02 16:58:18.000000000","message":"ditto","commit_id":"4bf5fd49cfa55f7c9d8b65ae5fed0aec01816ebc"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"437c937556f2a9d02b80dd68d623f6aece4b8c66","unresolved":false,"context_lines":[{"line_number":304,"context_line":"                  (self._mech_driver_rpc_topics))"},{"line_number":305,"context_line":""},{"line_number":306,"context_line":"    def _setup_mech_driver_consumers(self, consumers):"},{"line_number":307,"context_line":"        # Add agent\u0027s topic to the listening consumers list, for every"},{"line_number":308,"context_line":"        # mechanism driver in the _mech_driver_rpc_topics list."},{"line_number":309,"context_line":"        for md in self._mech_driver_rpc_topics:"},{"line_number":310,"context_line":"            a_topic \u003d md[\u0027agent_topic\u0027]"}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_a7789f90","line":307,"in_reply_to":"baada198_42e92ab7","updated":"2014-07-09 15:38:22.000000000","message":"Done","commit_id":"4bf5fd49cfa55f7c9d8b65ae5fed0aec01816ebc"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"ec0cc9cedb123a78113171039d4ef22c362cbf15","unresolved":false,"context_lines":[{"line_number":311,"context_line":"            if a_topic:"},{"line_number":312,"context_line":"                consumers.append([a_topic, topics.UPDATE])"},{"line_number":313,"context_line":""},{"line_number":314,"context_line":"    def send_vm_info(self, context, **kwargs):"},{"line_number":315,"context_line":"        # NOTE: The oui data prepared by this method will be used by another"},{"line_number":316,"context_line":"        # blueprint that implements support for VDP in neutron agent:"},{"line_number":317,"context_line":"        # https://review.openstack.org/#/c/89728/"}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_a6deba3d","line":314,"updated":"2014-07-02 00:50:38.000000000","message":"it seems imbalanced to hardcode this method here while making the associated rpc mechanism very configurable.","commit_id":"4bf5fd49cfa55f7c9d8b65ae5fed0aec01816ebc"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"437c937556f2a9d02b80dd68d623f6aece4b8c66","unresolved":false,"context_lines":[{"line_number":311,"context_line":"            if a_topic:"},{"line_number":312,"context_line":"                consumers.append([a_topic, topics.UPDATE])"},{"line_number":313,"context_line":""},{"line_number":314,"context_line":"    def send_vm_info(self, context, **kwargs):"},{"line_number":315,"context_line":"        # NOTE: The oui data prepared by this method will be used by another"},{"line_number":316,"context_line":"        # blueprint that implements support for VDP in neutron agent:"},{"line_number":317,"context_line":"        # https://review.openstack.org/#/c/89728/"}],"source_content_type":"text/x-python","patch_set":5,"id":"baada198_a79fbfb3","line":314,"in_reply_to":"baada198_a6deba3d","updated":"2014-07-09 15:38:22.000000000","message":"Do you mean add this method configurable or add it dynamically?","commit_id":"4bf5fd49cfa55f7c9d8b65ae5fed0aec01816ebc"},{"author":{"_account_id":105,"name":"Kyle Mestery","email":"mestery@mestery.com","username":"mestery"},"change_message_id":"ef746fb283733dc2295ed85e13ed0fc656cc3cd2","unresolved":false,"context_lines":[{"line_number":185,"context_line":"            \u0027agent_type\u0027: q_const.AGENT_TYPE_OVS,"},{"line_number":186,"context_line":"            \u0027start_flag\u0027: True}"},{"line_number":187,"context_line":""},{"line_number":188,"context_line":"        # This list keeps list of topic\u0027s name for agent and mechanism drivers."},{"line_number":189,"context_line":"        self._mech_driver_rpc_topics \u003d []"},{"line_number":190,"context_line":"        # Populate the _mech_driver_rpc_topics list."},{"line_number":191,"context_line":"        md_rpc \u003d cfg.CONF.mech_driver_agent.mech_driver_rpc"}],"source_content_type":"text/x-python","patch_set":8,"id":"baada198_e01128b0","line":188,"updated":"2014-07-24 21:27:59.000000000","message":"All of the changes in this file are not directly related to the DFA drive. You should split these out into a separate patch and make the DFA patch dependent on that patch.","commit_id":"0cacf91bd31d574cdae1635843141dc2b1c4a137"},{"author":{"_account_id":105,"name":"Kyle Mestery","email":"mestery@mestery.com","username":"mestery"},"change_message_id":"0c919ea3af772ee808283e9983131c7b5a89931c","unresolved":false,"context_lines":[{"line_number":185,"context_line":"            \u0027agent_type\u0027: q_const.AGENT_TYPE_OVS,"},{"line_number":186,"context_line":"            \u0027start_flag\u0027: True}"},{"line_number":187,"context_line":""},{"line_number":188,"context_line":"        # This list keeps list of topic\u0027s name for agent and mechanism drivers."},{"line_number":189,"context_line":"        self._mech_driver_rpc_topics \u003d []"},{"line_number":190,"context_line":"        # Populate the _mech_driver_rpc_topics list."},{"line_number":191,"context_line":"        md_rpc \u003d cfg.CONF.mech_driver_agent.mech_driver_rpc"}],"source_content_type":"text/x-python","patch_set":8,"id":"baada198_6530a607","line":188,"in_reply_to":"baada198_41072170","updated":"2014-07-25 18:09:01.000000000","message":"Ideally what I\u0027d like to see is perhaps these broken out into their own patch. It\u0027s likely this could be merged easier, since the changes in this file look to be self-contained (I could be wrong). Breaking it into smaller chunks will help with review as well.","commit_id":"0cacf91bd31d574cdae1635843141dc2b1c4a137"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"4f8b0e26d07995bcf67e4c67bfe07e40447fa611","unresolved":false,"context_lines":[{"line_number":185,"context_line":"            \u0027agent_type\u0027: q_const.AGENT_TYPE_OVS,"},{"line_number":186,"context_line":"            \u0027start_flag\u0027: True}"},{"line_number":187,"context_line":""},{"line_number":188,"context_line":"        # This list keeps list of topic\u0027s name for agent and mechanism drivers."},{"line_number":189,"context_line":"        self._mech_driver_rpc_topics \u003d []"},{"line_number":190,"context_line":"        # Populate the _mech_driver_rpc_topics list."},{"line_number":191,"context_line":"        md_rpc \u003d cfg.CONF.mech_driver_agent.mech_driver_rpc"}],"source_content_type":"text/x-python","patch_set":8,"id":"baada198_2b7743d5","line":188,"in_reply_to":"baada198_6530a607","updated":"2014-07-28 17:12:50.000000000","message":"I\u0027ll move the changes in this file to a new patch.","commit_id":"0cacf91bd31d574cdae1635843141dc2b1c4a137"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"7efd49818763bdc8ad70ab75885947e31fea556e","unresolved":false,"context_lines":[{"line_number":185,"context_line":"            \u0027agent_type\u0027: q_const.AGENT_TYPE_OVS,"},{"line_number":186,"context_line":"            \u0027start_flag\u0027: True}"},{"line_number":187,"context_line":""},{"line_number":188,"context_line":"        # This list keeps list of topic\u0027s name for agent and mechanism drivers."},{"line_number":189,"context_line":"        self._mech_driver_rpc_topics \u003d []"},{"line_number":190,"context_line":"        # Populate the _mech_driver_rpc_topics list."},{"line_number":191,"context_line":"        md_rpc \u003d cfg.CONF.mech_driver_agent.mech_driver_rpc"}],"source_content_type":"text/x-python","patch_set":8,"id":"baada198_ee783991","line":188,"in_reply_to":"baada198_e01128b0","updated":"2014-07-24 22:37:33.000000000","message":"Is it acceptable to add it as part of this patch?\n\nhttps://review.openstack.org/#/c/105563/","commit_id":"0cacf91bd31d574cdae1635843141dc2b1c4a137"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"c27cf428f3ad1a8cfb1db59bd20129fa5e7879e9","unresolved":false,"context_lines":[{"line_number":185,"context_line":"            \u0027agent_type\u0027: q_const.AGENT_TYPE_OVS,"},{"line_number":186,"context_line":"            \u0027start_flag\u0027: True}"},{"line_number":187,"context_line":""},{"line_number":188,"context_line":"        # This list keeps list of topic\u0027s name for agent and mechanism drivers."},{"line_number":189,"context_line":"        self._mech_driver_rpc_topics \u003d []"},{"line_number":190,"context_line":"        # Populate the _mech_driver_rpc_topics list."},{"line_number":191,"context_line":"        md_rpc \u003d cfg.CONF.mech_driver_agent.mech_driver_rpc"}],"source_content_type":"text/x-python","patch_set":8,"id":"baada198_41072170","line":188,"in_reply_to":"baada198_e01128b0","updated":"2014-07-25 13:17:50.000000000","message":"These changes are related to the part of DFA MD that needs to send VM info (when VM is created) to the OVS neutron agent. For that reason it is needed to have RPC config for the MD on the agent side.","commit_id":"0cacf91bd31d574cdae1635843141dc2b1c4a137"}],"neutron/tests/unit/ml2/drivers/cisco/dfa/test_cisco_dfa_rest.py":[{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"80b489513e39a1899f8dcc42ce96e66dbd383275","unresolved":false,"context_lines":[{"line_number":20,"context_line":"from neutron.plugins.ml2.drivers.cisco.dfa import cisco_dfa_rest as dc"},{"line_number":21,"context_line":"from neutron.plugins.ml2.drivers.cisco.dfa import config  # noqa"},{"line_number":22,"context_line":"from neutron.tests import base"},{"line_number":23,"context_line":"from oslo.config import cfg"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"\"\"\"This file includes test cases for cisco_dfa_rest.py"}],"source_content_type":"text/x-python","patch_set":20,"id":"1abeadc6_d335f9f7","line":23,"updated":"2014-08-20 11:23:05.000000000","message":"This import should be moved up (see hacking guide for import ordering/grouping of imports).","commit_id":"22fb27845bb003abb6fe0acc9d796ad286f53994"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"de9b1ea0d77f0408e2c8f73d3692eb8a82ac00d3","unresolved":false,"context_lines":[{"line_number":20,"context_line":"from neutron.plugins.ml2.drivers.cisco.dfa import cisco_dfa_rest as dc"},{"line_number":21,"context_line":"from neutron.plugins.ml2.drivers.cisco.dfa import config  # noqa"},{"line_number":22,"context_line":"from neutron.tests import base"},{"line_number":23,"context_line":"from oslo.config import cfg"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"\"\"\"This file includes test cases for cisco_dfa_rest.py"}],"source_content_type":"text/x-python","patch_set":20,"id":"1abeadc6_989d51bf","line":23,"in_reply_to":"1abeadc6_d335f9f7","updated":"2014-08-20 19:43:29.000000000","message":"Done","commit_id":"22fb27845bb003abb6fe0acc9d796ad286f53994"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"80b489513e39a1899f8dcc42ce96e66dbd383275","unresolved":false,"context_lines":[{"line_number":23,"context_line":"from oslo.config import cfg"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"\"\"\"This file includes test cases for cisco_dfa_rest.py"},{"line_number":27,"context_line":"\"\"\""},{"line_number":28,"context_line":"FAKE_DCNM_IP \u003d \u00271.1.1.1\u0027"},{"line_number":29,"context_line":"FAKE_DCNM_USERNAME \u003d \u0027dcnmuser\u0027"}],"source_content_type":"text/x-python","patch_set":20,"id":"1abeadc6_5321e9b2","line":26,"updated":"2014-08-20 11:23:05.000000000","message":"nit: could put end quotes on same line.","commit_id":"22fb27845bb003abb6fe0acc9d796ad286f53994"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"de9b1ea0d77f0408e2c8f73d3692eb8a82ac00d3","unresolved":false,"context_lines":[{"line_number":23,"context_line":"from oslo.config import cfg"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"\"\"\"This file includes test cases for cisco_dfa_rest.py"},{"line_number":27,"context_line":"\"\"\""},{"line_number":28,"context_line":"FAKE_DCNM_IP \u003d \u00271.1.1.1\u0027"},{"line_number":29,"context_line":"FAKE_DCNM_USERNAME \u003d \u0027dcnmuser\u0027"}],"source_content_type":"text/x-python","patch_set":20,"id":"1abeadc6_18b14147","line":26,"in_reply_to":"1abeadc6_5321e9b2","updated":"2014-08-20 19:43:29.000000000","message":"Done","commit_id":"22fb27845bb003abb6fe0acc9d796ad286f53994"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"80b489513e39a1899f8dcc42ce96e66dbd383275","unresolved":false,"context_lines":[{"line_number":31,"context_line":"org_url \u003d \u0027http://%s/rest/auto-config/organizations\u0027"},{"line_number":32,"context_line":"part_url \u003d \u0027http://%s/rest/auto-config/organizations/%s/partitions\u0027"},{"line_number":33,"context_line":"net_url \u003d \u0027http://%s/rest/auto-config/organizations/%s/partitions/%s/networks\u0027"},{"line_number":34,"context_line":"del_net_url \u003d \u0027http://%s/rest/auto-config/organizations\u0027 + \\"},{"line_number":35,"context_line":"              \u0027/%s/partitions/%s/networks/segment/%s\u0027"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":""}],"source_content_type":"text/x-python","patch_set":20,"id":"1abeadc6_d31c197a","line":34,"updated":"2014-08-20 11:23:05.000000000","message":"eliminate back slash.","commit_id":"22fb27845bb003abb6fe0acc9d796ad286f53994"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"de9b1ea0d77f0408e2c8f73d3692eb8a82ac00d3","unresolved":false,"context_lines":[{"line_number":31,"context_line":"org_url \u003d \u0027http://%s/rest/auto-config/organizations\u0027"},{"line_number":32,"context_line":"part_url \u003d \u0027http://%s/rest/auto-config/organizations/%s/partitions\u0027"},{"line_number":33,"context_line":"net_url \u003d \u0027http://%s/rest/auto-config/organizations/%s/partitions/%s/networks\u0027"},{"line_number":34,"context_line":"del_net_url \u003d \u0027http://%s/rest/auto-config/organizations\u0027 + \\"},{"line_number":35,"context_line":"              \u0027/%s/partitions/%s/networks/segment/%s\u0027"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":""}],"source_content_type":"text/x-python","patch_set":20,"id":"1abeadc6_9884715f","line":34,"in_reply_to":"1abeadc6_d31c197a","updated":"2014-08-20 19:43:29.000000000","message":"Done","commit_id":"22fb27845bb003abb6fe0acc9d796ad286f53994"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"80b489513e39a1899f8dcc42ce96e66dbd383275","unresolved":false,"context_lines":[{"line_number":42,"context_line":""},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"class TestCiscoDFAClient(base.BaseTestCase):"},{"line_number":45,"context_line":"    \"\"\"Test cases for DFARESTClient.\"\"\""},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"    def setUp(self):"},{"line_number":48,"context_line":"        # Declare the test resource."}],"source_content_type":"text/x-python","patch_set":20,"id":"1abeadc6_330d4d3f","line":45,"updated":"2014-08-20 11:23:05.000000000","message":"Not: pep257, put a blank line before class docstrings.","commit_id":"22fb27845bb003abb6fe0acc9d796ad286f53994"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"de9b1ea0d77f0408e2c8f73d3692eb8a82ac00d3","unresolved":false,"context_lines":[{"line_number":42,"context_line":""},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"class TestCiscoDFAClient(base.BaseTestCase):"},{"line_number":45,"context_line":"    \"\"\"Test cases for DFARESTClient.\"\"\""},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"    def setUp(self):"},{"line_number":48,"context_line":"        # Declare the test resource."}],"source_content_type":"text/x-python","patch_set":20,"id":"1abeadc6_b8892d77","line":45,"in_reply_to":"1abeadc6_330d4d3f","updated":"2014-08-20 19:43:29.000000000","message":"I didn\u0027t get any error regarding this running tox and also in jenkins. \nIs pep257 used in jenkins for static analysis tool?","commit_id":"22fb27845bb003abb6fe0acc9d796ad286f53994"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"80b489513e39a1899f8dcc42ce96e66dbd383275","unresolved":false,"context_lines":[{"line_number":58,"context_line":"        self.dcnm_client \u003d dc.DFARESTClient()"},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"        # Mock send_request method."},{"line_number":61,"context_line":"        self.dcnm_client._send_request \u003d mock_dcnm"},{"line_number":62,"context_line":"        self.testnetwork \u003d TestNetwork()"},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"    def test_create_org(self):"}],"source_content_type":"text/x-python","patch_set":20,"id":"1abeadc6_ce9f10b3","line":61,"updated":"2014-08-20 11:23:05.000000000","message":"I think you can do...\n\n    mock.patch.object(self.dcnm_client, \u0027_send_request\u0027).start()\n\ninstead of L50, 60-61.","commit_id":"22fb27845bb003abb6fe0acc9d796ad286f53994"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"de9b1ea0d77f0408e2c8f73d3692eb8a82ac00d3","unresolved":false,"context_lines":[{"line_number":58,"context_line":"        self.dcnm_client \u003d dc.DFARESTClient()"},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"        # Mock send_request method."},{"line_number":61,"context_line":"        self.dcnm_client._send_request \u003d mock_dcnm"},{"line_number":62,"context_line":"        self.testnetwork \u003d TestNetwork()"},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"    def test_create_org(self):"}],"source_content_type":"text/x-python","patch_set":20,"id":"1abeadc6_f87f2564","line":61,"in_reply_to":"1abeadc6_ce9f10b3","updated":"2014-08-20 19:43:29.000000000","message":"Done","commit_id":"22fb27845bb003abb6fe0acc9d796ad286f53994"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"e42b89332ea0461d2ae9c982b5e771f3404a708e","unresolved":false,"context_lines":[{"line_number":13,"context_line":"#    License for the specific language governing permissions and limitations"},{"line_number":14,"context_line":"#    under the License."},{"line_number":15,"context_line":"#"},{"line_number":16,"context_line":"# @author: Nader Lahouti, Cisco Systems, Inc."},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"import mock"},{"line_number":19,"context_line":"from oslo.config import cfg"}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_39e259a0","line":16,"updated":"2014-08-28 18:53:56.000000000","message":"do not need this","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"}],"neutron/tests/unit/ml2/drivers/cisco/dfa/test_mech_cisco_dfa.py":[{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"80b489513e39a1899f8dcc42ce96e66dbd383275","unresolved":false,"context_lines":[{"line_number":27,"context_line":"from neutron.plugins.ml2.drivers.cisco.dfa import project_events"},{"line_number":28,"context_line":"from neutron.plugins.ml2.drivers.cisco.dfa import projects_cache_db_v2"},{"line_number":29,"context_line":"from neutron.tests import base"},{"line_number":30,"context_line":"from oslo.config import cfg"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"FAKE_NETWORK_NAME \u003d \u0027test_dfa_network\u0027"}],"source_content_type":"text/x-python","patch_set":20,"id":"1abeadc6_ce863065","line":30,"updated":"2014-08-20 11:23:05.000000000","message":"move up.","commit_id":"22fb27845bb003abb6fe0acc9d796ad286f53994"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"de9b1ea0d77f0408e2c8f73d3692eb8a82ac00d3","unresolved":false,"context_lines":[{"line_number":27,"context_line":"from neutron.plugins.ml2.drivers.cisco.dfa import project_events"},{"line_number":28,"context_line":"from neutron.plugins.ml2.drivers.cisco.dfa import projects_cache_db_v2"},{"line_number":29,"context_line":"from neutron.tests import base"},{"line_number":30,"context_line":"from oslo.config import cfg"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"FAKE_NETWORK_NAME \u003d \u0027test_dfa_network\u0027"}],"source_content_type":"text/x-python","patch_set":20,"id":"1abeadc6_85016908","line":30,"in_reply_to":"1abeadc6_ce863065","updated":"2014-08-20 19:43:29.000000000","message":"Done","commit_id":"22fb27845bb003abb6fe0acc9d796ad286f53994"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"80b489513e39a1899f8dcc42ce96e66dbd383275","unresolved":false,"context_lines":[{"line_number":56,"context_line":""},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"class FakeNetworkContext(object):"},{"line_number":59,"context_line":"    \"\"\"Network context for testing purposes only.\"\"\""},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"    def __init__(self, network):"},{"line_number":62,"context_line":"        self._network \u003d network"}],"source_content_type":"text/x-python","patch_set":20,"id":"1abeadc6_8e8c3881","line":59,"updated":"2014-08-20 11:23:05.000000000","message":"nit: PEP257 adding blank line before class docstrings on each class in file.","commit_id":"22fb27845bb003abb6fe0acc9d796ad286f53994"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"de9b1ea0d77f0408e2c8f73d3692eb8a82ac00d3","unresolved":false,"context_lines":[{"line_number":56,"context_line":""},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"class FakeNetworkContext(object):"},{"line_number":59,"context_line":"    \"\"\"Network context for testing purposes only.\"\"\""},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"    def __init__(self, network):"},{"line_number":62,"context_line":"        self._network \u003d network"}],"source_content_type":"text/x-python","patch_set":20,"id":"1abeadc6_4043bf41","line":59,"in_reply_to":"1abeadc6_8e8c3881","updated":"2014-08-20 19:43:29.000000000","message":"Please refer to my previous reply.","commit_id":"22fb27845bb003abb6fe0acc9d796ad286f53994"},{"author":{"_account_id":6659,"name":"Paul Michali","email":"pc@michali.net","username":"pcm"},"change_message_id":"80b489513e39a1899f8dcc42ce96e66dbd383275","unresolved":false,"context_lines":[{"line_number":186,"context_line":"        return port_context"},{"line_number":187,"context_line":""},{"line_number":188,"context_line":"    def test_create_network_postcommit_no_profile(self):"},{"line_number":189,"context_line":"        session \u003d mock.MagicMock()"},{"line_number":190,"context_line":"        self.net_context._plugin_context.session \u003d session"},{"line_number":191,"context_line":"        query \u003d session.query.return_value"},{"line_number":192,"context_line":"        query.filter_by.return_value.one.return_value \u003d None"}],"source_content_type":"text/x-python","patch_set":20,"id":"1abeadc6_6edc3c13","line":189,"updated":"2014-08-20 11:23:05.000000000","message":"Can you assign the _plugin_context.session in _create_*_context(), instead of in the test cases?\n\nThe _plugin_context is already a mock, why is session mock needed too?\n\nApplies to all the test cases using session.","commit_id":"22fb27845bb003abb6fe0acc9d796ad286f53994"},{"author":{"_account_id":10393,"name":"nlahouti","email":"nader.lahouti@gmail.com","username":"nlahouti"},"change_message_id":"de9b1ea0d77f0408e2c8f73d3692eb8a82ac00d3","unresolved":false,"context_lines":[{"line_number":186,"context_line":"        return port_context"},{"line_number":187,"context_line":""},{"line_number":188,"context_line":"    def test_create_network_postcommit_no_profile(self):"},{"line_number":189,"context_line":"        session \u003d mock.MagicMock()"},{"line_number":190,"context_line":"        self.net_context._plugin_context.session \u003d session"},{"line_number":191,"context_line":"        query \u003d session.query.return_value"},{"line_number":192,"context_line":"        query.filter_by.return_value.one.return_value \u003d None"}],"source_content_type":"text/x-python","patch_set":20,"id":"1abeadc6_fb6b9aee","line":189,"in_reply_to":"1abeadc6_6edc3c13","updated":"2014-08-20 19:43:29.000000000","message":"Done","commit_id":"22fb27845bb003abb6fe0acc9d796ad286f53994"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"e42b89332ea0461d2ae9c982b5e771f3404a708e","unresolved":false,"context_lines":[{"line_number":13,"context_line":"#    License for the specific language governing permissions and limitations"},{"line_number":14,"context_line":"#    under the License."},{"line_number":15,"context_line":"#"},{"line_number":16,"context_line":"# @author: Nader Lahouti, Cisco Systems, Inc."},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"import mock"},{"line_number":19,"context_line":"from oslo.config import cfg"}],"source_content_type":"text/x-python","patch_set":26,"id":"1abeadc6_59df15d6","line":16,"updated":"2014-08-28 18:53:56.000000000","message":"do not need this","commit_id":"b378574939350f67467187c8fa343a8f3dfdcbe6"}]}
