)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"b77e969a823120a251d400fa725c2b3f2c508979","unresolved":false,"context_lines":[{"line_number":12,"context_line":"Added new variable \u0027neutron-ipam\u0027 in config."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Partially-Implements: blueprint neutron-ipam"},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"Change-Id: Ia52ad70ef4f0b02cf82cfefcf50b9f1e30b05b79"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"3a961159_accc548b","line":15,"updated":"2015-01-15 14:00:21.000000000","message":"please add DocImpact and list the new configuration variables. This helps the doc team when documenting the version highlights","commit_id":"66e33d306590732f79de09940a89ff4ada59bcda"},{"author":{"_account_id":13768,"name":"Pavel Bondar","email":"pbondar@infoblox.com","username":"pavel_bondar"},"change_message_id":"aab18fae634202bf3670b12674248f4f4762ff15","unresolved":false,"context_lines":[{"line_number":12,"context_line":"Added new variable \u0027neutron-ipam\u0027 in config."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Partially-Implements: blueprint neutron-ipam"},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"Change-Id: Ia52ad70ef4f0b02cf82cfefcf50b9f1e30b05b79"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"3a961159_78c0634a","line":15,"in_reply_to":"3a961159_accc548b","updated":"2015-01-15 15:36:38.000000000","message":"sure, will do","commit_id":"66e33d306590732f79de09940a89ff4ada59bcda"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"434c1b871c7d5edd11e66f15ff32a1a8c5f80207","unresolved":false,"context_lines":[{"line_number":9,"context_line":"For Kilo single IPAM driver across system is used,"},{"line_number":10,"context_line":"so loading different driver per subnet is ignored for now."},{"line_number":11,"context_line":"IPAM Driver is loaded based on value of \u0027neutron-ipam\u0027."},{"line_number":12,"context_line":"Added new variable \u0027neutron-ipam\u0027 in config."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"DocImpact"},{"line_number":15,"context_line":"Partially-Implements: blueprint neutron-ipam"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"da86d52c_a2378baf","line":12,"updated":"2015-02-02 11:50:54.000000000","message":"It\u0027s ipam_driver, not neutron-ipam.","commit_id":"eb879bd058d971afd1895eef25ffda2c446625b1"}],"etc/neutron.conf":[{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"b77e969a823120a251d400fa725c2b3f2c508979","unresolved":false,"context_lines":[{"line_number":70,"context_line":"# Example: ipam_driver \u003d dummy_ipam"},{"line_number":71,"context_line":"# 2. If driver is not defined in setup.cfg:"},{"line_number":72,"context_line":"# Example: ipam_driver \u003d neutron.tests.unit.ipam.dummy_ipam_driver.DummyIPAMDriver"},{"line_number":73,"context_line":"#"},{"line_number":74,"context_line":"# ipam_driver \u003d dummy_ipam"},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"# (ListOpt) List of service plugin entrypoints to be loaded from the"}],"source_content_type":"text/plain","patch_set":2,"id":"3a961159_0cc00849","line":73,"updated":"2015-01-15 14:00:21.000000000","message":"with the existing IPAM be the default?","commit_id":"66e33d306590732f79de09940a89ff4ada59bcda"},{"author":{"_account_id":12912,"name":"John Belamaric","email":"jbelamaric@infoblox.com","username":"johnbelamaric"},"change_message_id":"8c17cd4712ee1bf7f61202a7666bd27f549e02b0","unresolved":false,"context_lines":[{"line_number":70,"context_line":"# Example: ipam_driver \u003d dummy_ipam"},{"line_number":71,"context_line":"# 2. If driver is not defined in setup.cfg:"},{"line_number":72,"context_line":"# Example: ipam_driver \u003d neutron.tests.unit.ipam.dummy_ipam_driver.DummyIPAMDriver"},{"line_number":73,"context_line":"#"},{"line_number":74,"context_line":"# ipam_driver \u003d dummy_ipam"},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"# (ListOpt) List of service plugin entrypoints to be loaded from the"}],"source_content_type":"text/plain","patch_set":2,"id":"3a961159_32ac3a35","line":73,"in_reply_to":"3a961159_0cc00849","updated":"2015-01-15 14:35:16.000000000","message":"Yes. It will be implemented in [1].\n\n[1] https://blueprints.launchpad.net/neutron/+spec/reference-ipam-driver","commit_id":"66e33d306590732f79de09940a89ff4ada59bcda"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"9665af3ff408e63c69280882bd7a3060919429cf","unresolved":false,"context_lines":[{"line_number":71,"context_line":"# 2. If driver is not defined in setup.cfg:"},{"line_number":72,"context_line":"# Example: ipam_driver \u003d neutron.tests.unit.ipam.fake_ipam_driver.FakeIPAMDriver"},{"line_number":73,"context_line":"#"},{"line_number":74,"context_line":"# ipam_driver \u003d fake_ipam"},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"# (ListOpt) List of service plugin entrypoints to be loaded from the"},{"line_number":77,"context_line":"# neutron.service_plugins namespace. See setup.cfg for the entrypoint names of"}],"source_content_type":"text/plain","patch_set":5,"id":"1a930d6b_a6ce2a2c","line":74,"updated":"2015-01-26 17:54:49.000000000","message":"fake_ipam is not something we should be putting into the sample config.  This will be confusing for operators.","commit_id":"6540336ad6115e1ac3031332e0fb0953981ab16e"},{"author":{"_account_id":13768,"name":"Pavel Bondar","email":"pbondar@infoblox.com","username":"pavel_bondar"},"change_message_id":"e68641fcd8dc1f3d9f77c0baea4be22c50b3788b","unresolved":false,"context_lines":[{"line_number":71,"context_line":"# 2. If driver is not defined in setup.cfg:"},{"line_number":72,"context_line":"# Example: ipam_driver \u003d neutron.tests.unit.ipam.fake_ipam_driver.FakeIPAMDriver"},{"line_number":73,"context_line":"#"},{"line_number":74,"context_line":"# ipam_driver \u003d fake_ipam"},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"# (ListOpt) List of service plugin entrypoints to be loaded from the"},{"line_number":77,"context_line":"# neutron.service_plugins namespace. See setup.cfg for the entrypoint names of"}],"source_content_type":"text/plain","patch_set":5,"id":"1a930d6b_f9c7be42","line":74,"in_reply_to":"1a930d6b_a6ce2a2c","updated":"2015-02-20 09:44:51.000000000","message":"Done","commit_id":"6540336ad6115e1ac3031332e0fb0953981ab16e"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"434c1b871c7d5edd11e66f15ff32a1a8c5f80207","unresolved":false,"context_lines":[{"line_number":71,"context_line":"# 2. If driver is not defined in setup.cfg:"},{"line_number":72,"context_line":"# Example: ipam_driver \u003d neutron.ipam.drivers.neutrondb_ipam.NeutronDbIpamDriver"},{"line_number":73,"context_line":"#"},{"line_number":74,"context_line":"# ipam_driver \u003d neutrondb_ipam"},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"# (ListOpt) List of service plugin entrypoints to be loaded from the"},{"line_number":77,"context_line":"# neutron.service_plugins namespace. See setup.cfg for the entrypoint names of"}],"source_content_type":"text/plain","patch_set":6,"id":"da86d52c_625593c5","line":74,"updated":"2015-02-02 11:50:54.000000000","message":"I think you should make your patch depend on the one that includes the driver.","commit_id":"eb879bd058d971afd1895eef25ffda2c446625b1"},{"author":{"_account_id":13768,"name":"Pavel Bondar","email":"pbondar@infoblox.com","username":"pavel_bondar"},"change_message_id":"29ec7ebc61390ad279faa57d220d0e1fcb518481","unresolved":false,"context_lines":[{"line_number":71,"context_line":"# 2. If driver is not defined in setup.cfg:"},{"line_number":72,"context_line":"# Example: ipam_driver \u003d neutron.ipam.drivers.neutrondb_ipam.NeutronDbIpamDriver"},{"line_number":73,"context_line":"#"},{"line_number":74,"context_line":"# ipam_driver \u003d neutrondb_ipam"},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"# (ListOpt) List of service plugin entrypoints to be loaded from the"},{"line_number":77,"context_line":"# neutron.service_plugins namespace. See setup.cfg for the entrypoint names of"}],"source_content_type":"text/plain","patch_set":6,"id":"da86d52c_67970049","line":74,"in_reply_to":"da86d52c_625593c5","updated":"2015-02-04 09:26:06.000000000","message":"Agree, I\u0027ll make my patch dependent on reference neutrondb_ipam implementaion.\nBut right now this patch is not in sync with \u0027Introduce External IPAM Interface\u0027, which it depends on.\nSo I\u0027ll update my dependency after reference driver implementation get synced with its root.","commit_id":"eb879bd058d971afd1895eef25ffda2c446625b1"},{"author":{"_account_id":9631,"name":"sajuptpm","email":"sajuptpm@gmail.com","username":"sajuptpm"},"change_message_id":"fe779a809ed326fd9fc6e6ce5e5ecf33b1fe327a","unresolved":false,"context_lines":[{"line_number":66,"context_line":"# (StrOpt) Neutron IPAM (IP address management) driver to be loaded from the"},{"line_number":67,"context_line":"# neutron.ipam_drivers namespace. See setup.cfg for the entry point names."},{"line_number":68,"context_line":"#"},{"line_number":69,"context_line":"# 1. If driver is defined in setup.cfg:"},{"line_number":70,"context_line":"# Example: ipam_driver \u003d neutrondb_ipam"},{"line_number":71,"context_line":"# 2. If driver is not defined in setup.cfg:"},{"line_number":72,"context_line":"# Example: ipam_driver \u003d neutron.ipam.drivers.neutrondb_ipam.NeutronDbIpamDriver"}],"source_content_type":"text/plain","patch_set":9,"id":"da86d52c_67fb4e79","line":69,"updated":"2015-02-05 10:19:08.000000000","message":"Little confusing to me.\nCould you please change it like this.\n\"If driver is defined in setup.cfg, specify name of the driver\"","commit_id":"90a0a510d0defc3b3dae9c8790a9638fcc376322"},{"author":{"_account_id":9631,"name":"sajuptpm","email":"sajuptpm@gmail.com","username":"sajuptpm"},"change_message_id":"fe779a809ed326fd9fc6e6ce5e5ecf33b1fe327a","unresolved":false,"context_lines":[{"line_number":68,"context_line":"#"},{"line_number":69,"context_line":"# 1. If driver is defined in setup.cfg:"},{"line_number":70,"context_line":"# Example: ipam_driver \u003d neutrondb_ipam"},{"line_number":71,"context_line":"# 2. If driver is not defined in setup.cfg:"},{"line_number":72,"context_line":"# Example: ipam_driver \u003d neutron.ipam.drivers.neutrondb_ipam.NeutronDbIpamDriver"},{"line_number":73,"context_line":"#"},{"line_number":74,"context_line":"# ipam_driver \u003d neutrondb_ipam"}],"source_content_type":"text/plain","patch_set":9,"id":"da86d52c_a748e6cc","line":71,"updated":"2015-02-05 10:19:08.000000000","message":"Little confusing to me.\nCould you please change it like this.\n\"If driver is not defined in setup.cfg, specify name of the driver class\"","commit_id":"90a0a510d0defc3b3dae9c8790a9638fcc376322"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"ab5a8f2723fb4e35117fa7b815cc0f2ff9b1d3ff","unresolved":false,"context_lines":[{"line_number":71,"context_line":"# 2. If driver is not defined in setup.cfg:"},{"line_number":72,"context_line":"# Example: ipam_driver \u003d neutron.ipam.drivers.neutrondb_ipam.driver.NeutronDbPool"},{"line_number":73,"context_line":"#"},{"line_number":74,"context_line":"# ipam_driver \u003d neutrondb_ipam"},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"# (ListOpt) List of service plugin entrypoints to be loaded from the"},{"line_number":77,"context_line":"# neutron.service_plugins namespace. See setup.cfg for the entrypoint names of"}],"source_content_type":"text/plain","patch_set":21,"id":"9a80dd14_82413065","line":74,"updated":"2015-03-13 12:23:20.000000000","message":"this is optional, so you might want to state here that this bit defaults to None, in which case no IPAM driver will be used.","commit_id":"529dcc0628d9a1c9f40e24b77f6d6c93a726dc75"},{"author":{"_account_id":13768,"name":"Pavel Bondar","email":"pbondar@infoblox.com","username":"pavel_bondar"},"change_message_id":"228f7495f137591e820f826d0914629d1c861ed9","unresolved":false,"context_lines":[{"line_number":71,"context_line":"# 2. If driver is not defined in setup.cfg:"},{"line_number":72,"context_line":"# Example: ipam_driver \u003d neutron.ipam.drivers.neutrondb_ipam.driver.NeutronDbPool"},{"line_number":73,"context_line":"#"},{"line_number":74,"context_line":"# ipam_driver \u003d neutrondb_ipam"},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"# (ListOpt) List of service plugin entrypoints to be loaded from the"},{"line_number":77,"context_line":"# neutron.service_plugins namespace. See setup.cfg for the entrypoint names of"}],"source_content_type":"text/plain","patch_set":21,"id":"9a80dd14_28e1432a","line":74,"in_reply_to":"9a80dd14_82413065","updated":"2015-03-13 12:37:08.000000000","message":"Even if it is default to neutron_ipam, ipam_driver is not used unless \u0027use_pluggable_ipam\u0027 config variable is not set.\nThis config variable is added in dependent review[1]\n\n1. https://review.openstack.org/#/c/153236/","commit_id":"529dcc0628d9a1c9f40e24b77f6d6c93a726dc75"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"5d16edde43267f1d8389446b90221f03212a3fcb","unresolved":false,"context_lines":[{"line_number":68,"context_line":"# 1. If driver is defined in setup.cfg:"},{"line_number":69,"context_line":"# Example: ipam_driver \u003d neutrondb_ipam"},{"line_number":70,"context_line":"# 2. If driver is not defined in setup.cfg:"},{"line_number":71,"context_line":"# Example: ipam_driver \u003d neutron.ipam.drivers.neutrondb_ipam.driver.NeutronDbPool"},{"line_number":72,"context_line":"#"},{"line_number":73,"context_line":"# ipam_driver \u003d"},{"line_number":74,"context_line":""}],"source_content_type":"text/plain","patch_set":49,"id":"7a016987_3b8cda34","line":71,"updated":"2015-05-26 12:28:02.000000000","message":"Why supporting 2 formats? iirc, core_plugin/service_plugins support both formats only for backward compatibility reasons.\n\nIMO, we should allow only stevedore","commit_id":"24fad23a3b94db7cc5c26ddb9438f2865ff1399c"},{"author":{"_account_id":13721,"name":"Hosung Hwang","email":"hhwang@infoblox.com","username":"hhwang"},"change_message_id":"f78296cee5fc2486216ce0bd8c861591948a0806","unresolved":false,"context_lines":[{"line_number":68,"context_line":"# 1. If driver is defined in setup.cfg:"},{"line_number":69,"context_line":"# Example: ipam_driver \u003d neutrondb_ipam"},{"line_number":70,"context_line":"# 2. If driver is not defined in setup.cfg:"},{"line_number":71,"context_line":"# Example: ipam_driver \u003d neutron.ipam.drivers.neutrondb_ipam.driver.NeutronDbPool"},{"line_number":72,"context_line":"#"},{"line_number":73,"context_line":"# ipam_driver \u003d"},{"line_number":74,"context_line":""}],"source_content_type":"text/plain","patch_set":49,"id":"7a016987_7077d2d4","line":71,"in_reply_to":"7a016987_3b8cda34","updated":"2015-05-27 17:12:34.000000000","message":"Done","commit_id":"24fad23a3b94db7cc5c26ddb9438f2865ff1399c"},{"author":{"_account_id":12912,"name":"John Belamaric","email":"jbelamaric@infoblox.com","username":"johnbelamaric"},"change_message_id":"fa9574fb029349811ce25af398db51ba4281ff43","unresolved":false,"context_lines":[{"line_number":68,"context_line":"# 1. If driver is defined in setup.cfg:"},{"line_number":69,"context_line":"# Example: ipam_driver \u003d neutrondb_ipam"},{"line_number":70,"context_line":"# 2. If driver is not defined in setup.cfg:"},{"line_number":71,"context_line":"# Example: ipam_driver \u003d neutron.ipam.drivers.neutrondb_ipam.driver.NeutronDbPool"},{"line_number":72,"context_line":"#"},{"line_number":73,"context_line":"# ipam_driver \u003d"},{"line_number":74,"context_line":""}],"source_content_type":"text/plain","patch_set":49,"id":"7a016987_b1690928","line":71,"in_reply_to":"7a016987_3b8cda34","updated":"2015-05-26 13:20:37.000000000","message":"This is using the same code, so that support comes whether we want it or not. To not have that support we would need to write new loader code. \n\nWe could take out the comment though.","commit_id":"24fad23a3b94db7cc5c26ddb9438f2865ff1399c"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"8f28fce2bfde83900652f811c468370e9cc29864","unresolved":false,"context_lines":[{"line_number":68,"context_line":"# 1. If driver is defined in setup.cfg:"},{"line_number":69,"context_line":"# Example: ipam_driver \u003d neutrondb_ipam"},{"line_number":70,"context_line":"# 2. If driver is not defined in setup.cfg:"},{"line_number":71,"context_line":"# Example: ipam_driver \u003d neutron.ipam.drivers.neutrondb_ipam.driver.NeutronDbPool"},{"line_number":72,"context_line":"#"},{"line_number":73,"context_line":"# ipam_driver \u003d"},{"line_number":74,"context_line":""}],"source_content_type":"text/plain","patch_set":49,"id":"7a016987_be50b85f","line":71,"in_reply_to":"7a016987_3b8cda34","updated":"2015-05-26 12:54:05.000000000","message":"What about out-of-tree IPAM drivers?","commit_id":"24fad23a3b94db7cc5c26ddb9438f2865ff1399c"},{"author":{"_account_id":13721,"name":"Hosung Hwang","email":"hhwang@infoblox.com","username":"hhwang"},"change_message_id":"8ec3460e35073566ae3eabd855fca261235fb4ce","unresolved":false,"context_lines":[{"line_number":68,"context_line":"# 1. If driver is defined in setup.cfg:"},{"line_number":69,"context_line":"# Example: ipam_driver \u003d neutrondb_ipam"},{"line_number":70,"context_line":"# 2. If driver is not defined in setup.cfg:"},{"line_number":71,"context_line":"# Example: ipam_driver \u003d neutron.ipam.drivers.neutrondb_ipam.driver.NeutronDbPool"},{"line_number":72,"context_line":"#"},{"line_number":73,"context_line":"# ipam_driver \u003d"},{"line_number":74,"context_line":""}],"source_content_type":"text/plain","patch_set":49,"id":"7a016987_10e09e95","line":71,"in_reply_to":"7a016987_b1690928","updated":"2015-05-27 17:11:56.000000000","message":"Fixed in Patch Set 52.","commit_id":"24fad23a3b94db7cc5c26ddb9438f2865ff1399c"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"c2fac150b3e8bf145b5bb84dd17973d888aa8828","unresolved":false,"context_lines":[{"line_number":68,"context_line":"# 1. If driver is defined in setup.cfg:"},{"line_number":69,"context_line":"# Example: ipam_driver \u003d neutrondb_ipam"},{"line_number":70,"context_line":"# 2. If driver is not defined in setup.cfg:"},{"line_number":71,"context_line":"# Example: ipam_driver \u003d neutron.ipam.drivers.neutrondb_ipam.driver.NeutronDbPool"},{"line_number":72,"context_line":"#"},{"line_number":73,"context_line":"# ipam_driver \u003d"},{"line_number":74,"context_line":""}],"source_content_type":"text/plain","patch_set":49,"id":"7a016987_d1dc8576","line":71,"in_reply_to":"7a016987_be50b85f","updated":"2015-05-26 13:08:00.000000000","message":"It seems we need to clarify somewhere entrypoint scope.\n\nEntrypoint scope is global not per package: out-of-tree drivers/packages can define entrypoints in the neutron.ipam_drivers namespace.","commit_id":"24fad23a3b94db7cc5c26ddb9438f2865ff1399c"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"b5fa3c47cbb3d1db683e17afebddb27cebcbc050","unresolved":false,"context_lines":[{"line_number":68,"context_line":"# 1. If driver is defined in setup.cfg:"},{"line_number":69,"context_line":"# Example: ipam_driver \u003d neutrondb_ipam"},{"line_number":70,"context_line":"# 2. If driver is not defined in setup.cfg:"},{"line_number":71,"context_line":"# Example: ipam_driver \u003d neutron.ipam.drivers.neutrondb_ipam.driver.NeutronDbPool"},{"line_number":72,"context_line":"#"},{"line_number":73,"context_line":"# ipam_driver \u003d"},{"line_number":74,"context_line":""}],"source_content_type":"text/plain","patch_set":49,"id":"7a016987_91f16d98","line":71,"in_reply_to":"7a016987_d1dc8576","updated":"2015-05-26 13:18:01.000000000","message":"Ah, I didn\u0027t know they are global. Thanks for the comment, I better go and educate myself on stevedore before making silly comments. :)","commit_id":"24fad23a3b94db7cc5c26ddb9438f2865ff1399c"}],"neutron/common/config.py":[{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"b77e969a823120a251d400fa725c2b3f2c508979","unresolved":false,"context_lines":[{"line_number":120,"context_line":"    cfg.IntOpt(\u0027send_events_interval\u0027, default\u003d2,"},{"line_number":121,"context_line":"               help\u003d_(\u0027Number of seconds between sending events to nova if \u0027"},{"line_number":122,"context_line":"                      \u0027there are any events to send.\u0027)),"},{"line_number":123,"context_line":"    cfg.StrOpt(\u0027ipam_driver\u0027, default\u003d\u0027dummy_ipam\u0027,"},{"line_number":124,"context_line":"               help\u003d_(\u0027IPAM driver to use.\u0027))"},{"line_number":125,"context_line":"]"},{"line_number":126,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_8cab1887","line":123,"updated":"2015-01-15 14:00:21.000000000","message":"why dummy?","commit_id":"66e33d306590732f79de09940a89ff4ada59bcda"},{"author":{"_account_id":12912,"name":"John Belamaric","email":"jbelamaric@infoblox.com","username":"johnbelamaric"},"change_message_id":"8c17cd4712ee1bf7f61202a7666bd27f549e02b0","unresolved":false,"context_lines":[{"line_number":120,"context_line":"    cfg.IntOpt(\u0027send_events_interval\u0027, default\u003d2,"},{"line_number":121,"context_line":"               help\u003d_(\u0027Number of seconds between sending events to nova if \u0027"},{"line_number":122,"context_line":"                      \u0027there are any events to send.\u0027)),"},{"line_number":123,"context_line":"    cfg.StrOpt(\u0027ipam_driver\u0027, default\u003d\u0027dummy_ipam\u0027,"},{"line_number":124,"context_line":"               help\u003d_(\u0027IPAM driver to use.\u0027))"},{"line_number":125,"context_line":"]"},{"line_number":126,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_f26d5204","line":123,"in_reply_to":"3a961159_8cab1887","updated":"2015-01-15 14:35:16.000000000","message":"This will be a fake driver used for unit tests only.","commit_id":"66e33d306590732f79de09940a89ff4ada59bcda"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"9665af3ff408e63c69280882bd7a3060919429cf","unresolved":false,"context_lines":[{"line_number":120,"context_line":"    cfg.IntOpt(\u0027send_events_interval\u0027, default\u003d2,"},{"line_number":121,"context_line":"               help\u003d_(\u0027Number of seconds between sending events to nova if \u0027"},{"line_number":122,"context_line":"                      \u0027there are any events to send.\u0027)),"},{"line_number":123,"context_line":"    cfg.StrOpt(\u0027ipam_driver\u0027, default\u003d\u0027fake_ipam\u0027,"},{"line_number":124,"context_line":"               help\u003d_(\u0027IPAM driver to use.\u0027))"},{"line_number":125,"context_line":"]"},{"line_number":126,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"1a930d6b_86c92e28","line":123,"updated":"2015-01-26 17:54:49.000000000","message":"previous comment about fake_ipam driver","commit_id":"6540336ad6115e1ac3031332e0fb0953981ab16e"},{"author":{"_account_id":13768,"name":"Pavel Bondar","email":"pbondar@infoblox.com","username":"pavel_bondar"},"change_message_id":"e68641fcd8dc1f3d9f77c0baea4be22c50b3788b","unresolved":false,"context_lines":[{"line_number":120,"context_line":"    cfg.IntOpt(\u0027send_events_interval\u0027, default\u003d2,"},{"line_number":121,"context_line":"               help\u003d_(\u0027Number of seconds between sending events to nova if \u0027"},{"line_number":122,"context_line":"                      \u0027there are any events to send.\u0027)),"},{"line_number":123,"context_line":"    cfg.StrOpt(\u0027ipam_driver\u0027, default\u003d\u0027fake_ipam\u0027,"},{"line_number":124,"context_line":"               help\u003d_(\u0027IPAM driver to use.\u0027))"},{"line_number":125,"context_line":"]"},{"line_number":126,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"1a930d6b_39bea6ae","line":123,"in_reply_to":"1a930d6b_86c92e28","updated":"2015-02-20 09:44:51.000000000","message":"Done","commit_id":"6540336ad6115e1ac3031332e0fb0953981ab16e"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"ab5a8f2723fb4e35117fa7b815cc0f2ff9b1d3ff","unresolved":false,"context_lines":[{"line_number":122,"context_line":"               help\u003d_(\u0027Number of seconds between sending events to nova if \u0027"},{"line_number":123,"context_line":"                      \u0027there are any events to send.\u0027)),"},{"line_number":124,"context_line":"    cfg.StrOpt(\u0027ipam_driver\u0027, default\u003d\u0027neutrondb_ipam\u0027,"},{"line_number":125,"context_line":"               help\u003d_(\u0027IPAM driver to use.\u0027))"},{"line_number":126,"context_line":"]"},{"line_number":127,"context_line":""},{"line_number":128,"context_line":"core_cli_opts \u003d ["}],"source_content_type":"text/x-python","patch_set":21,"id":"9a80dd14_6dd98d56","line":125,"updated":"2015-03-13 12:23:20.000000000","message":"how do you configure the case where one wants to use the old \"baked\" logic?","commit_id":"529dcc0628d9a1c9f40e24b77f6d6c93a726dc75"},{"author":{"_account_id":13768,"name":"Pavel Bondar","email":"pbondar@infoblox.com","username":"pavel_bondar"},"change_message_id":"228f7495f137591e820f826d0914629d1c861ed9","unresolved":false,"context_lines":[{"line_number":122,"context_line":"               help\u003d_(\u0027Number of seconds between sending events to nova if \u0027"},{"line_number":123,"context_line":"                      \u0027there are any events to send.\u0027)),"},{"line_number":124,"context_line":"    cfg.StrOpt(\u0027ipam_driver\u0027, default\u003d\u0027neutrondb_ipam\u0027,"},{"line_number":125,"context_line":"               help\u003d_(\u0027IPAM driver to use.\u0027))"},{"line_number":126,"context_line":"]"},{"line_number":127,"context_line":""},{"line_number":128,"context_line":"core_cli_opts \u003d ["}],"source_content_type":"text/x-python","patch_set":21,"id":"9a80dd14_883eaf89","line":125,"in_reply_to":"9a80dd14_6dd98d56","updated":"2015-03-13 12:37:08.000000000","message":"Selecting old or new logic is done in dependent review using \n\u0027use_pluggable_ipam\u0027 config variable.\nIt is added in [1]\n\n1. https://review.openstack.org/#/c/153236/","commit_id":"529dcc0628d9a1c9f40e24b77f6d6c93a726dc75"}],"neutron/ipam/base.py":[{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"b77e969a823120a251d400fa725c2b3f2c508979","unresolved":false,"context_lines":[{"line_number":181,"context_line":"        \"\"\"Tries to load driver by name from namespace"},{"line_number":182,"context_line":"           Fallback to load by class name."},{"line_number":183,"context_line":""},{"line_number":184,"context_line":"           Just copy-pasted now from NeutronManager _get_plugin_instance()."},{"line_number":185,"context_line":"           Can\u0027t just use it from NeutronManager since is a private method."},{"line_number":186,"context_line":"           TODO: (pbondar) consider making _get_plugin_instance a public"},{"line_number":187,"context_line":"                 method in NeutronManager."}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_6c7d0c1e","line":184,"updated":"2015-01-15 14:00:21.000000000","message":"i do not think that you need this comment - it is pointless - what if that code is updated","commit_id":"66e33d306590732f79de09940a89ff4ada59bcda"},{"author":{"_account_id":13768,"name":"Pavel Bondar","email":"pbondar@infoblox.com","username":"pavel_bondar"},"change_message_id":"aab18fae634202bf3670b12674248f4f4762ff15","unresolved":false,"context_lines":[{"line_number":181,"context_line":"        \"\"\"Tries to load driver by name from namespace"},{"line_number":182,"context_line":"           Fallback to load by class name."},{"line_number":183,"context_line":""},{"line_number":184,"context_line":"           Just copy-pasted now from NeutronManager _get_plugin_instance()."},{"line_number":185,"context_line":"           Can\u0027t just use it from NeutronManager since is a private method."},{"line_number":186,"context_line":"           TODO: (pbondar) consider making _get_plugin_instance a public"},{"line_number":187,"context_line":"                 method in NeutronManager."}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_bb93a54d","line":184,"in_reply_to":"3a961159_1bf839c3","updated":"2015-01-15 15:36:38.000000000","message":"Sounds reasonable to me, I\u0027ll try that way","commit_id":"66e33d306590732f79de09940a89ff4ada59bcda"},{"author":{"_account_id":12912,"name":"John Belamaric","email":"jbelamaric@infoblox.com","username":"johnbelamaric"},"change_message_id":"2d4fc98fd403a612f2ba8d3badced3e1276bf305","unresolved":false,"context_lines":[{"line_number":181,"context_line":"        \"\"\"Tries to load driver by name from namespace"},{"line_number":182,"context_line":"           Fallback to load by class name."},{"line_number":183,"context_line":""},{"line_number":184,"context_line":"           Just copy-pasted now from NeutronManager _get_plugin_instance()."},{"line_number":185,"context_line":"           Can\u0027t just use it from NeutronManager since is a private method."},{"line_number":186,"context_line":"           TODO: (pbondar) consider making _get_plugin_instance a public"},{"line_number":187,"context_line":"                 method in NeutronManager."}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_1bf839c3","line":184,"in_reply_to":"3a961159_35f42486","updated":"2015-01-15 15:32:26.000000000","message":"Looking at how the other plugin types are handled, it would probably be best to create an get_ipam_plugin call in the manager that is in turn called from here. then there is no need to copy this private method, you can call it inside the manager.","commit_id":"66e33d306590732f79de09940a89ff4ada59bcda"},{"author":{"_account_id":13768,"name":"Pavel Bondar","email":"pbondar@infoblox.com","username":"pavel_bondar"},"change_message_id":"c5a76c97c578ca24f830fd7f371d57c7fcfdce04","unresolved":false,"context_lines":[{"line_number":181,"context_line":"        \"\"\"Tries to load driver by name from namespace"},{"line_number":182,"context_line":"           Fallback to load by class name."},{"line_number":183,"context_line":""},{"line_number":184,"context_line":"           Just copy-pasted now from NeutronManager _get_plugin_instance()."},{"line_number":185,"context_line":"           Can\u0027t just use it from NeutronManager since is a private method."},{"line_number":186,"context_line":"           TODO: (pbondar) consider making _get_plugin_instance a public"},{"line_number":187,"context_line":"                 method in NeutronManager."}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_35f42486","line":184,"in_reply_to":"3a961159_6c7d0c1e","updated":"2015-01-15 14:53:56.000000000","message":"Just to confirm, is it ok to leave it copy-pasted here?\nOr I should try to make _get_plugin_instance public in NeutronManager, or move _get_plugin_instance into some new place where it will be public,\n so it could used by both NeutronManager and IPAMDriver?","commit_id":"66e33d306590732f79de09940a89ff4ada59bcda"},{"author":{"_account_id":9631,"name":"sajuptpm","email":"sajuptpm@gmail.com","username":"sajuptpm"},"change_message_id":"c51f74dce380e5e047a5cda5e03c6864382c229c","unresolved":false,"context_lines":[{"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."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"import abc"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"from oslo.config import cfg"}],"source_content_type":"text/x-python","patch_set":6,"id":"fa81d914_1dffaeab","line":15,"updated":"2015-01-29 12:26:13.000000000","message":"Following patch set implements neutron/ipam/base.py\nhttps://review.openstack.org/#/c/134339/\n\nSorry, I am curious to know that,\nHow did you pick that change in this patch set ?\nWill you sync with that patch set ? and How to merge?","commit_id":"eb879bd058d971afd1895eef25ffda2c446625b1"},{"author":{"_account_id":13768,"name":"Pavel Bondar","email":"pbondar@infoblox.com","username":"pavel_bondar"},"change_message_id":"70bf966ee6696def11cc30ab5d695c4ff1fd8ec8","unresolved":false,"context_lines":[{"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."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"import abc"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"from oslo.config import cfg"}],"source_content_type":"text/x-python","patch_set":6,"id":"fa81d914_5d0e7b35","line":15,"in_reply_to":"fa81d914_1dffaeab","updated":"2015-01-29 13:34:20.000000000","message":"I added https://review.openstack.org/#/c/134339/ as a  depency to my review.\nYou can find more info how to do it here:\nhttps://wiki.openstack.org/wiki/Gerrit_Workflow#Add_dependency","commit_id":"eb879bd058d971afd1895eef25ffda2c446625b1"},{"author":{"_account_id":4187,"name":"Ryan Tidwell","email":"rtidwell@suse.com","username":"ryan-tidwell"},"change_message_id":"a9ca303ec0618555445705e2934ee1aacc6f0a90","unresolved":false,"context_lines":[{"line_number":23,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"class SubnetPool(object):"},{"line_number":27,"context_line":"    \"\"\"Represents a pool of IPs available inside an address scope.\"\"\""},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"    ADDRESS_TYPE_IPV4 \u003d 4"}],"source_content_type":"text/x-python","patch_set":6,"id":"fa81d914_56c00a7c","line":26,"updated":"2015-01-29 19:11:51.000000000","message":"I made this same comment on https://review.openstack.org/#/c/134339/.  I\u0027m wondering if we should use IpamSubnetPool instead of SubnetPool. Not necessarily a comment for this patch, but something to consider.","commit_id":"eb879bd058d971afd1895eef25ffda2c446625b1"}],"neutron/ipam/driver.py":[{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"2daccab2d593f0255f5a8f9a41ce01d21c76c723","unresolved":false,"context_lines":[{"line_number":52,"context_line":"                                                   ipam_driver_name)"},{"line_number":53,"context_line":"        # Call driver specific get_instance method if defined"},{"line_number":54,"context_line":"        # Allows to implement singleton logic on driver level"},{"line_number":55,"context_line":"        if \u0027get_instance\u0027 in vars(driver_class):"},{"line_number":56,"context_line":"            return driver_class.get_instance(subnet_pool_id)"},{"line_number":57,"context_line":"        else:"},{"line_number":58,"context_line":"            return driver_class(subnet_pool_id)"}],"source_content_type":"text/x-python","patch_set":26,"id":"1a6ced46_33220fba","line":55,"updated":"2015-03-23 16:33:20.000000000","message":"if hasattr(driver_class, \u0027get_instance\u0027):","commit_id":"a3226ff136df04162e6efe5a3ecca29d99148cad"},{"author":{"_account_id":13768,"name":"Pavel Bondar","email":"pbondar@infoblox.com","username":"pavel_bondar"},"change_message_id":"ca541c7dbe1e90b95849face3094bfae7b8d55db","unresolved":false,"context_lines":[{"line_number":52,"context_line":"                                                   ipam_driver_name)"},{"line_number":53,"context_line":"        # Call driver specific get_instance method if defined"},{"line_number":54,"context_line":"        # Allows to implement singleton logic on driver level"},{"line_number":55,"context_line":"        if \u0027get_instance\u0027 in vars(driver_class):"},{"line_number":56,"context_line":"            return driver_class.get_instance(subnet_pool_id)"},{"line_number":57,"context_line":"        else:"},{"line_number":58,"context_line":"            return driver_class(subnet_pool_id)"}],"source_content_type":"text/x-python","patch_set":26,"id":"1a6ced46_a0a6880e","line":55,"in_reply_to":"1a6ced46_33220fba","updated":"2015-03-24 09:02:24.000000000","message":"There is a difference between hasattr() and checking vars(), which I am using here. vars() checks if attribute defined on class level only, it does not check dependency chain, but hasattr does.\nAnd since each driver_class is inherited from this Pool class it will allways have\nget_instance method detected by hasattr, but vars() will detect get_instance method only if it was redefined in child.\nAnd calling get_instance() detected by hasattr will lead to endless recursion(if get_instance was not redefined on driver level).\nI agree it is a bit hacky and probably I need to avoid doing such things.\nFor example, since redefining  get_instance on driver level serves only for implementing singleton pattern, then probably it will be more clear to do:\n\nif hasattr(driver_class, \u0027get_singleton\u0027):\n\nAnd use get_singleton() method on driver level to implement singleton pattern instead of redefing get_instance.\nThis way we eliminate all the tricky cases with call chain for \u0027get_instance\u0027 method","commit_id":"a3226ff136df04162e6efe5a3ecca29d99148cad"},{"author":{"_account_id":13768,"name":"Pavel Bondar","email":"pbondar@infoblox.com","username":"pavel_bondar"},"change_message_id":"32b098af98d80fc2972a8136ae8155cba26b68b2","unresolved":false,"context_lines":[{"line_number":52,"context_line":"                                                   ipam_driver_name)"},{"line_number":53,"context_line":"        # Call driver specific get_instance method if defined"},{"line_number":54,"context_line":"        # Allows to implement singleton logic on driver level"},{"line_number":55,"context_line":"        if \u0027get_instance\u0027 in vars(driver_class):"},{"line_number":56,"context_line":"            return driver_class.get_instance(subnet_pool_id)"},{"line_number":57,"context_line":"        else:"},{"line_number":58,"context_line":"            return driver_class(subnet_pool_id)"}],"source_content_type":"text/x-python","patch_set":26,"id":"1a6ced46_1d2df946","line":55,"in_reply_to":"1a6ced46_5df4d1f1","updated":"2015-03-24 12:46:09.000000000","message":"killed the change with headshot.","commit_id":"a3226ff136df04162e6efe5a3ecca29d99148cad"},{"author":{"_account_id":12912,"name":"John Belamaric","email":"jbelamaric@infoblox.com","username":"johnbelamaric"},"change_message_id":"04bf9bad58ac8613ada87cec11e04432f8de8258","unresolved":false,"context_lines":[{"line_number":52,"context_line":"                                                   ipam_driver_name)"},{"line_number":53,"context_line":"        # Call driver specific get_instance method if defined"},{"line_number":54,"context_line":"        # Allows to implement singleton logic on driver level"},{"line_number":55,"context_line":"        if \u0027get_instance\u0027 in vars(driver_class):"},{"line_number":56,"context_line":"            return driver_class.get_instance(subnet_pool_id)"},{"line_number":57,"context_line":"        else:"},{"line_number":58,"context_line":"            return driver_class(subnet_pool_id)"}],"source_content_type":"text/x-python","patch_set":26,"id":"1a6ced46_5df4d1f1","line":55,"in_reply_to":"1a6ced46_7d726dae","updated":"2015-03-24 12:41:29.000000000","message":"+1. Just eliminate the singleton option since it won\u0027t work in this release anyway (and may never be an option).","commit_id":"a3226ff136df04162e6efe5a3ecca29d99148cad"},{"author":{"_account_id":13768,"name":"Pavel Bondar","email":"pbondar@infoblox.com","username":"pavel_bondar"},"change_message_id":"063e83f2b34d087bfdab8bd185661c5a4800b543","unresolved":false,"context_lines":[{"line_number":52,"context_line":"                                                   ipam_driver_name)"},{"line_number":53,"context_line":"        # Call driver specific get_instance method if defined"},{"line_number":54,"context_line":"        # Allows to implement singleton logic on driver level"},{"line_number":55,"context_line":"        if \u0027get_instance\u0027 in vars(driver_class):"},{"line_number":56,"context_line":"            return driver_class.get_instance(subnet_pool_id)"},{"line_number":57,"context_line":"        else:"},{"line_number":58,"context_line":"            return driver_class(subnet_pool_id)"}],"source_content_type":"text/x-python","patch_set":26,"id":"1a6ced46_59f86649","line":55,"in_reply_to":"1a6ced46_9e03a40c","updated":"2015-03-24 12:33:15.000000000","message":"This is how it works in this patch, but it have slightly tricky call stack from my point of view(but may be it is ok).\n\n1) db_base_plugin call neutron.ipam.driver.Pool.get_instance()(this method)\n\n2) get_instance finds right driver_class and check if get_instance method was redefined in child, uses vars() for that. If we check hasattr(driver_class, \u0027get_instance\u0027) it always return True, because driver_class is inherited from  neutron.ipam.driver.Pool and it always has \u0027get_instance\u0027 in inheritance chain.\n\n3) if get_instance found redefined in child it gets called, for example, if reference driver is used: neutron.ipam.drivers.neutrondb_ipam.driver.NeutronDbPool.get_instance() is called which implements singleton right now.\n\nneutron.ipam.driver.Pool.get_instance() is always executed first to find appropriate ipam_driver to load \n\nSo if \u0027get_instance\u0027 redefined in NeutronDbPool we get:\nneutron.ipam.driver.Pool.get_instance()-\u003e neutron.ipam.drivers.neutrondb_ipam.driver.NeutronDbPool.get_instance() -\u003e neutron.ipam.drivers.neutrondb_ipam.driver.NeutronDbPool() \n\nIf \u0027get_instance\u0027  is not redefined:\nneutron.ipam.driver.Pool.get_instance()-\u003e neutron.ipam.drivers.neutrondb_ipam.driver.NeutronDbPool()\n\nAs I see we have 3 options now:\n\n1) I can leave this it as is, if that looks more straightforward then adding get_singleton\n\n2) Use get_singleton() for implementing singleton logic in child\n\n3) As I said all this singleton support part can be removed for now, because context with session and transaction will be passed to driver, and driver_class has to store it, so singleton can not be implemented in  driver_class child in this case.\n\n4) ...ideas?\n\nPlease, let me know what to choose.","commit_id":"a3226ff136df04162e6efe5a3ecca29d99148cad"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"21f8e44460c735e429dc94845adfd7c0cc002b80","unresolved":false,"context_lines":[{"line_number":52,"context_line":"                                                   ipam_driver_name)"},{"line_number":53,"context_line":"        # Call driver specific get_instance method if defined"},{"line_number":54,"context_line":"        # Allows to implement singleton logic on driver level"},{"line_number":55,"context_line":"        if \u0027get_instance\u0027 in vars(driver_class):"},{"line_number":56,"context_line":"            return driver_class.get_instance(subnet_pool_id)"},{"line_number":57,"context_line":"        else:"},{"line_number":58,"context_line":"            return driver_class(subnet_pool_id)"}],"source_content_type":"text/x-python","patch_set":26,"id":"1a6ced46_be106002","line":55,"in_reply_to":"1a6ced46_a0a6880e","updated":"2015-03-24 12:01:56.000000000","message":"\"This way we eliminate all the tricky cases with call chain for \u0027get_instance\u0027 method\" ... by using a non-obvious trick.","commit_id":"a3226ff136df04162e6efe5a3ecca29d99148cad"},{"author":{"_account_id":13768,"name":"Pavel Bondar","email":"pbondar@infoblox.com","username":"pavel_bondar"},"change_message_id":"f2f3f372cbcc92a8f73700529167488208e134d0","unresolved":false,"context_lines":[{"line_number":52,"context_line":"                                                   ipam_driver_name)"},{"line_number":53,"context_line":"        # Call driver specific get_instance method if defined"},{"line_number":54,"context_line":"        # Allows to implement singleton logic on driver level"},{"line_number":55,"context_line":"        if \u0027get_instance\u0027 in vars(driver_class):"},{"line_number":56,"context_line":"            return driver_class.get_instance(subnet_pool_id)"},{"line_number":57,"context_line":"        else:"},{"line_number":58,"context_line":"            return driver_class(subnet_pool_id)"}],"source_content_type":"text/x-python","patch_set":26,"id":"1a6ced46_437879f2","line":55,"in_reply_to":"1a6ced46_a0a6880e","updated":"2015-03-24 11:42:50.000000000","message":"Actually, latest approach is to pass context to driver and share transaction with it, since each plugin already wraps db_base method calls into transaction, so transaction separation is not going to not happen in Kilo.\nSo if context should be passed to driver, then we can\u0027t use singleton approach in it (need to store context in driver).\nAs a result I\u0027ll revert this part back to original, just \u0027return driver_class(subnet_pool_id)\u0027\nAnd will add singleton support for drivers later if it become needed.","commit_id":"a3226ff136df04162e6efe5a3ecca29d99148cad"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"5213937a2b3ee91b578645c3abae35f4c0378307","unresolved":false,"context_lines":[{"line_number":52,"context_line":"                                                   ipam_driver_name)"},{"line_number":53,"context_line":"        # Call driver specific get_instance method if defined"},{"line_number":54,"context_line":"        # Allows to implement singleton logic on driver level"},{"line_number":55,"context_line":"        if \u0027get_instance\u0027 in vars(driver_class):"},{"line_number":56,"context_line":"            return driver_class.get_instance(subnet_pool_id)"},{"line_number":57,"context_line":"        else:"},{"line_number":58,"context_line":"            return driver_class(subnet_pool_id)"}],"source_content_type":"text/x-python","patch_set":26,"id":"1a6ced46_9e03a40c","line":55,"in_reply_to":"1a6ced46_a0a6880e","updated":"2015-03-24 11:50:14.000000000","message":"I may miss the whole picture, so bear with me on that one.\n\nHow about providing a base non-signleton implementation, and allow children rewriting get_instance method,to implement the needed behaviour?","commit_id":"a3226ff136df04162e6efe5a3ecca29d99148cad"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"661a0463380c1e9cc0cdd2c620d3182bf9df73f7","unresolved":false,"context_lines":[{"line_number":52,"context_line":"                                                   ipam_driver_name)"},{"line_number":53,"context_line":"        # Call driver specific get_instance method if defined"},{"line_number":54,"context_line":"        # Allows to implement singleton logic on driver level"},{"line_number":55,"context_line":"        if \u0027get_instance\u0027 in vars(driver_class):"},{"line_number":56,"context_line":"            return driver_class.get_instance(subnet_pool_id)"},{"line_number":57,"context_line":"        else:"},{"line_number":58,"context_line":"            return driver_class(subnet_pool_id)"}],"source_content_type":"text/x-python","patch_set":26,"id":"1a6ced46_7d726dae","line":55,"in_reply_to":"1a6ced46_be106002","updated":"2015-03-24 12:38:50.000000000","message":"If it\u0027s not needed, just kill the change.","commit_id":"a3226ff136df04162e6efe5a3ecca29d99148cad"}],"neutron/ipam/ipam.py":[{"author":{"_account_id":9631,"name":"sajuptpm","email":"sajuptpm@gmail.com","username":"sajuptpm"},"change_message_id":"fe779a809ed326fd9fc6e6ce5e5ecf33b1fe327a","unresolved":false,"context_lines":[{"line_number":241,"context_line":"        # So ignore subnet_pool for now and load driver defined in config"},{"line_number":242,"context_line":"        ipam_driver_name \u003d cfg.CONF.ipam_driver"},{"line_number":243,"context_line":"        mgr \u003d manager.NeutronManager.get_instance()"},{"line_number":244,"context_line":""},{"line_number":245,"context_line":"        return mgr.load_ipam_driver(ipam_driver_name)"},{"line_number":246,"context_line":""},{"line_number":247,"context_line":"    @abc.abstractmethod"}],"source_content_type":"text/x-python","patch_set":9,"id":"da86d52c_c78ddad4","line":244,"updated":"2015-02-05 10:19:08.000000000","message":"Please remove this space","commit_id":"90a0a510d0defc3b3dae9c8790a9638fcc376322"}],"neutron/manager.py":[{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"434c1b871c7d5edd11e66f15ff32a1a8c5f80207","unresolved":false,"context_lines":[{"line_number":197,"context_line":""},{"line_number":198,"context_line":"    def load_ipam_driver(self, ipam_driver_name):"},{"line_number":199,"context_line":"        \"\"\"Loads IPAM driver from neutron.ipam_drivers namespace.\"\"\""},{"line_number":200,"context_line":"        LOG.info(_LI(\"Loading ipam driver: %s\"), ipam_driver_name)"},{"line_number":201,"context_line":"        return self._get_plugin_instance(\u0027neutron.ipam_drivers\u0027,"},{"line_number":202,"context_line":"                                         ipam_driver_name)"},{"line_number":203,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"da86d52c_42488f2d","line":200,"updated":"2015-02-02 11:50:54.000000000","message":"Do we need .info here and not just .debug? I think debug is enough, and then _LI should also be removed.","commit_id":"eb879bd058d971afd1895eef25ffda2c446625b1"},{"author":{"_account_id":13768,"name":"Pavel Bondar","email":"pbondar@infoblox.com","username":"pavel_bondar"},"change_message_id":"29ec7ebc61390ad279faa57d220d0e1fcb518481","unresolved":false,"context_lines":[{"line_number":197,"context_line":""},{"line_number":198,"context_line":"    def load_ipam_driver(self, ipam_driver_name):"},{"line_number":199,"context_line":"        \"\"\"Loads IPAM driver from neutron.ipam_drivers namespace.\"\"\""},{"line_number":200,"context_line":"        LOG.info(_LI(\"Loading ipam driver: %s\"), ipam_driver_name)"},{"line_number":201,"context_line":"        return self._get_plugin_instance(\u0027neutron.ipam_drivers\u0027,"},{"line_number":202,"context_line":"                                         ipam_driver_name)"},{"line_number":203,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"da86d52c_07900449","line":200,"in_reply_to":"da86d52c_42488f2d","updated":"2015-02-04 09:26:06.000000000","message":"Sure, will make it debug.","commit_id":"eb879bd058d971afd1895eef25ffda2c446625b1"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"134624d6b99cf63af0052ea492a1b277d49ecb12","unresolved":false,"context_lines":[{"line_number":195,"context_line":"                      {\"type\": plugin_inst.get_plugin_type(),"},{"line_number":196,"context_line":"                       \"desc\": plugin_inst.get_plugin_description()})"},{"line_number":197,"context_line":""},{"line_number":198,"context_line":"    @utils.synchronized(\u0027ipamdriver\u0027)"},{"line_number":199,"context_line":"    def load_ipam_driver(self, ipam_driver_name):"},{"line_number":200,"context_line":"        \"\"\"Loads IPAM driver from neutron.ipam_drivers namespace.\"\"\""},{"line_number":201,"context_line":"        LOG.debug(\"Loading ipam driver: %s\", ipam_driver_name)"}],"source_content_type":"text/x-python","patch_set":14,"id":"ba7be1f8_5aeb7d77","line":198,"updated":"2015-02-25 17:21:11.000000000","message":"why is this lock needed?","commit_id":"f6887ce1183f9324dc6ba9d0ae23f003618e5fdd"},{"author":{"_account_id":12912,"name":"John Belamaric","email":"jbelamaric@infoblox.com","username":"johnbelamaric"},"change_message_id":"bd6c2905c6b3970120ec52449ddd1a6a974edb43","unresolved":false,"context_lines":[{"line_number":195,"context_line":"                      {\"type\": plugin_inst.get_plugin_type(),"},{"line_number":196,"context_line":"                       \"desc\": plugin_inst.get_plugin_description()})"},{"line_number":197,"context_line":""},{"line_number":198,"context_line":"    @utils.synchronized(\u0027ipamdriver\u0027)"},{"line_number":199,"context_line":"    def load_ipam_driver(self, ipam_driver_name):"},{"line_number":200,"context_line":"        \"\"\"Loads IPAM driver from neutron.ipam_drivers namespace.\"\"\""},{"line_number":201,"context_line":"        LOG.debug(\"Loading ipam driver: %s\", ipam_driver_name)"}],"source_content_type":"text/x-python","patch_set":14,"id":"ba7be1f8_addc1e47","line":198,"in_reply_to":"ba7be1f8_0ddb6a7c","updated":"2015-02-26 13:06:01.000000000","message":"Another option would be to do a instance per pool as you suggest, but allow the driver to decide whether it stores a single connection and uses locks to serialize access, or it uses a connection pool. That is probably the right approach to take for now.","commit_id":"f6887ce1183f9324dc6ba9d0ae23f003618e5fdd"},{"author":{"_account_id":13768,"name":"Pavel Bondar","email":"pbondar@infoblox.com","username":"pavel_bondar"},"change_message_id":"23bde6484a3b1275c29c9b8307f5d6a2a6bf69d9","unresolved":false,"context_lines":[{"line_number":195,"context_line":"                      {\"type\": plugin_inst.get_plugin_type(),"},{"line_number":196,"context_line":"                       \"desc\": plugin_inst.get_plugin_description()})"},{"line_number":197,"context_line":""},{"line_number":198,"context_line":"    @utils.synchronized(\u0027ipamdriver\u0027)"},{"line_number":199,"context_line":"    def load_ipam_driver(self, ipam_driver_name):"},{"line_number":200,"context_line":"        \"\"\"Loads IPAM driver from neutron.ipam_drivers namespace.\"\"\""},{"line_number":201,"context_line":"        LOG.debug(\"Loading ipam driver: %s\", ipam_driver_name)"}],"source_content_type":"text/x-python","patch_set":14,"id":"ba7be1f8_320249b4","line":198,"in_reply_to":"ba7be1f8_175c574a","updated":"2015-02-26 12:44:01.000000000","message":"Should we enforce that only one driver is returned for subnet_pool, i.e. \u0027singleton\u0027 per subnet pool?\nIn this case mapping subnet_pool-\u003edriver_instance should be maintained and locking is still required","commit_id":"f6887ce1183f9324dc6ba9d0ae23f003618e5fdd"},{"author":{"_account_id":12912,"name":"John Belamaric","email":"jbelamaric@infoblox.com","username":"johnbelamaric"},"change_message_id":"d15e0429ea842ee8b0316a32a6c4adad859a1fc1","unresolved":false,"context_lines":[{"line_number":195,"context_line":"                      {\"type\": plugin_inst.get_plugin_type(),"},{"line_number":196,"context_line":"                       \"desc\": plugin_inst.get_plugin_description()})"},{"line_number":197,"context_line":""},{"line_number":198,"context_line":"    @utils.synchronized(\u0027ipamdriver\u0027)"},{"line_number":199,"context_line":"    def load_ipam_driver(self, ipam_driver_name):"},{"line_number":200,"context_line":"        \"\"\"Loads IPAM driver from neutron.ipam_drivers namespace.\"\"\""},{"line_number":201,"context_line":"        LOG.debug(\"Loading ipam driver: %s\", ipam_driver_name)"}],"source_content_type":"text/x-python","patch_set":14,"id":"ba7be1f8_0ddb6a7c","line":198,"in_reply_to":"ba7be1f8_320249b4","updated":"2015-02-26 13:04:19.000000000","message":"I am ambivalent. I wouldn\u0027t expect the driver to maintain any state other than the subnet pool, and perhaps a connection to the external IPAM (if any). If it\u0027s maintaining a connection, then it likely will need to serialize access over that connection - in this case, a connection pool is the proper solution.\n\nA simpler solution is just to have each request create a new instance of the driver which in turn creates a new connection to the external IPAM. That will be very inefficient. However, it may be best to start with that and optimize with a connection pool later - just so we can get something working end-to-end sooner to test the full functionality.","commit_id":"f6887ce1183f9324dc6ba9d0ae23f003618e5fdd"},{"author":{"_account_id":13768,"name":"Pavel Bondar","email":"pbondar@infoblox.com","username":"pavel_bondar"},"change_message_id":"cf7d7cbfa510252c07c82205c772f6b2e2ac6ee7","unresolved":false,"context_lines":[{"line_number":195,"context_line":"                      {\"type\": plugin_inst.get_plugin_type(),"},{"line_number":196,"context_line":"                       \"desc\": plugin_inst.get_plugin_description()})"},{"line_number":197,"context_line":""},{"line_number":198,"context_line":"    @utils.synchronized(\u0027ipamdriver\u0027)"},{"line_number":199,"context_line":"    def load_ipam_driver(self, ipam_driver_name):"},{"line_number":200,"context_line":"        \"\"\"Loads IPAM driver from neutron.ipam_drivers namespace.\"\"\""},{"line_number":201,"context_line":"        LOG.debug(\"Loading ipam driver: %s\", ipam_driver_name)"}],"source_content_type":"text/x-python","patch_set":14,"id":"ba7be1f8_42e61a45","line":198,"in_reply_to":"ba7be1f8_3b3328ac","updated":"2015-02-26 08:22:44.000000000","message":"Ryan, you right to guarantee singleton lock  should be in neutron.ipam.driver.Pool.\nI\u0027ll move it there","commit_id":"f6887ce1183f9324dc6ba9d0ae23f003618e5fdd"},{"author":{"_account_id":12912,"name":"John Belamaric","email":"jbelamaric@infoblox.com","username":"johnbelamaric"},"change_message_id":"d6232ae2d1e38c8dbda3b2482f07306a432f14e8","unresolved":false,"context_lines":[{"line_number":195,"context_line":"                      {\"type\": plugin_inst.get_plugin_type(),"},{"line_number":196,"context_line":"                       \"desc\": plugin_inst.get_plugin_description()})"},{"line_number":197,"context_line":""},{"line_number":198,"context_line":"    @utils.synchronized(\u0027ipamdriver\u0027)"},{"line_number":199,"context_line":"    def load_ipam_driver(self, ipam_driver_name):"},{"line_number":200,"context_line":"        \"\"\"Loads IPAM driver from neutron.ipam_drivers namespace.\"\"\""},{"line_number":201,"context_line":"        LOG.debug(\"Loading ipam driver: %s\", ipam_driver_name)"}],"source_content_type":"text/x-python","patch_set":14,"id":"ba7be1f8_b7af0b7c","line":198,"in_reply_to":"ba7be1f8_42e61a45","updated":"2015-02-26 12:22:29.000000000","message":"You can\u0027t have a singleton driver. You need one driver per subnet pool.","commit_id":"f6887ce1183f9324dc6ba9d0ae23f003618e5fdd"},{"author":{"_account_id":4187,"name":"Ryan Tidwell","email":"rtidwell@suse.com","username":"ryan-tidwell"},"change_message_id":"56227282750ae20ac427d3eac4ffbc9a35c1cb40","unresolved":false,"context_lines":[{"line_number":195,"context_line":"                      {\"type\": plugin_inst.get_plugin_type(),"},{"line_number":196,"context_line":"                       \"desc\": plugin_inst.get_plugin_description()})"},{"line_number":197,"context_line":""},{"line_number":198,"context_line":"    @utils.synchronized(\u0027ipamdriver\u0027)"},{"line_number":199,"context_line":"    def load_ipam_driver(self, ipam_driver_name):"},{"line_number":200,"context_line":"        \"\"\"Loads IPAM driver from neutron.ipam_drivers namespace.\"\"\""},{"line_number":201,"context_line":"        LOG.debug(\"Loading ipam driver: %s\", ipam_driver_name)"}],"source_content_type":"text/x-python","patch_set":14,"id":"ba7be1f8_3b3328ac","line":198,"in_reply_to":"ba7be1f8_5aeb7d77","updated":"2015-02-25 19:36:51.000000000","message":"I\u0027m assuming the concern here is that we might have multiple caller of get_instance() in neutron.ipam.driver.Pool and you\u0027re trying to guarantee a singleton?  That\u0027s a valid concern but I\u0027d handle it there, not here. I don\u0027t think this will help guarantee the singleton you\u0027re aiming for in get_instance() in neutron.ipam.driver.Pool.","commit_id":"f6887ce1183f9324dc6ba9d0ae23f003618e5fdd"},{"author":{"_account_id":13768,"name":"Pavel Bondar","email":"pbondar@infoblox.com","username":"pavel_bondar"},"change_message_id":"8cff21a028ed3f9416bbb46d5f85dc3492372003","unresolved":false,"context_lines":[{"line_number":195,"context_line":"                      {\"type\": plugin_inst.get_plugin_type(),"},{"line_number":196,"context_line":"                       \"desc\": plugin_inst.get_plugin_description()})"},{"line_number":197,"context_line":""},{"line_number":198,"context_line":"    @utils.synchronized(\u0027ipamdriver\u0027)"},{"line_number":199,"context_line":"    def load_ipam_driver(self, ipam_driver_name):"},{"line_number":200,"context_line":"        \"\"\"Loads IPAM driver from neutron.ipam_drivers namespace.\"\"\""},{"line_number":201,"context_line":"        LOG.debug(\"Loading ipam driver: %s\", ipam_driver_name)"}],"source_content_type":"text/x-python","patch_set":14,"id":"ba7be1f8_b1ad549d","line":198,"in_reply_to":"ba7be1f8_addc1e47","updated":"2015-02-26 14:16:43.000000000","message":"So for now I\u0027ll remove singleton/locking from driver loader and let specific driver choose, whether to use singleton driver, pool of driver instances or have instance per get_instance() request\nAny driver can implement whatever singleton/pool_of_drivers it needs by redefining __new__ method.","commit_id":"f6887ce1183f9324dc6ba9d0ae23f003618e5fdd"},{"author":{"_account_id":13768,"name":"Pavel Bondar","email":"pbondar@infoblox.com","username":"pavel_bondar"},"change_message_id":"109568786a331195848abbd081d93a7ece93eab6","unresolved":false,"context_lines":[{"line_number":195,"context_line":"                      {\"type\": plugin_inst.get_plugin_type(),"},{"line_number":196,"context_line":"                       \"desc\": plugin_inst.get_plugin_description()})"},{"line_number":197,"context_line":""},{"line_number":198,"context_line":"    @utils.synchronized(\u0027ipamdriver\u0027)"},{"line_number":199,"context_line":"    def load_ipam_driver(self, ipam_driver_name):"},{"line_number":200,"context_line":"        \"\"\"Loads IPAM driver from neutron.ipam_drivers namespace.\"\"\""},{"line_number":201,"context_line":"        LOG.debug(\"Loading ipam driver: %s\", ipam_driver_name)"}],"source_content_type":"text/x-python","patch_set":14,"id":"ba7be1f8_175c574a","line":198,"in_reply_to":"ba7be1f8_b7af0b7c","updated":"2015-02-26 12:37:36.000000000","message":"I see discussing on https://review.openstack.org/#/c/153236/8/neutron/db/db_base_plugin_v2.py line 87, looks like singleton pattern should not br used for driver.\nPlan to remove it from current implementation.","commit_id":"f6887ce1183f9324dc6ba9d0ae23f003618e5fdd"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"a521fa09b0a06679c1566c37b73b71abeb858882","unresolved":false,"context_lines":[{"line_number":195,"context_line":"                      {\"type\": plugin_inst.get_plugin_type(),"},{"line_number":196,"context_line":"                       \"desc\": plugin_inst.get_plugin_description()})"},{"line_number":197,"context_line":""},{"line_number":198,"context_line":"    @utils.synchronized(\u0027ipamdriver\u0027)"},{"line_number":199,"context_line":"    def load_ipam_driver(self, ipam_driver_name):"},{"line_number":200,"context_line":"        \"\"\"Loads IPAM driver from neutron.ipam_drivers namespace.\"\"\""},{"line_number":201,"context_line":"        LOG.debug(\"Loading ipam driver: %s\", ipam_driver_name)"}],"source_content_type":"text/x-python","patch_set":14,"id":"ba7be1f8_82862e12","line":198,"in_reply_to":"ba7be1f8_b7af0b7c","updated":"2015-02-26 21:53:23.000000000","message":"The interface has evolved a bit.  What used to be called the Driver in the interface is now called the Pool.  At this point, we could differentiate the driver from the neutron.ipam.driver.Pool instances.   There does need to be an instance of the Pool per pool id.  The whole point of this is so that the Pool carries the context of the pool so that we don\u0027t need to pass pool_id to all of the methods.\n\nIf we start seeing a driver as a manager of Pools then there may be some flexibility here.  I\u0027m not encouraging the use of a singleton, just trying to point out how things have evolved a bit.\n\nThe connection pool stuff sounds like a decent idea however, this is entirely an implementation detail.","commit_id":"f6887ce1183f9324dc6ba9d0ae23f003618e5fdd"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"c28c2f3397dd9d0ce2c7e038a14fe8463e6fbac7","unresolved":false,"context_lines":[{"line_number":127,"context_line":"        self.service_plugins \u003d {constants.CORE: self.plugin}"},{"line_number":128,"context_line":"        self._load_service_plugins()"},{"line_number":129,"context_line":""},{"line_number":130,"context_line":"    def _get_plugin_class(self, namespace, plugin_provider):"},{"line_number":131,"context_line":"        try:"},{"line_number":132,"context_line":"            # Try to resolve plugin by name"},{"line_number":133,"context_line":"            mgr \u003d driver.DriverManager(namespace, plugin_provider)"}],"source_content_type":"text/x-python","patch_set":17,"id":"9a80dd14_11e12cfe","line":130,"updated":"2015-03-06 11:56:19.000000000","message":"If I understand correctly the changes in this file are due to the fact that you need to pass an argument to the constructor of the ipam driver class. It would be simpler to add the argument here in the signature of this method and then initialize the plugin class doing plugin_call(args)  what do you think?","commit_id":"db2c0e8770bbcc2e1d6aaf877b09bdccf1c8b54c"},{"author":{"_account_id":13768,"name":"Pavel Bondar","email":"pbondar@infoblox.com","username":"pavel_bondar"},"change_message_id":"a9b165996373faae9b18d148306d6d4998fa6c3d","unresolved":false,"context_lines":[{"line_number":127,"context_line":"        self.service_plugins \u003d {constants.CORE: self.plugin}"},{"line_number":128,"context_line":"        self._load_service_plugins()"},{"line_number":129,"context_line":""},{"line_number":130,"context_line":"    def _get_plugin_class(self, namespace, plugin_provider):"},{"line_number":131,"context_line":"        try:"},{"line_number":132,"context_line":"            # Try to resolve plugin by name"},{"line_number":133,"context_line":"            mgr \u003d driver.DriverManager(namespace, plugin_provider)"}],"source_content_type":"text/x-python","patch_set":17,"id":"9a80dd14_f958fa8b","line":130,"in_reply_to":"9a80dd14_11e12cfe","updated":"2015-03-06 14:21:40.000000000","message":"Yes, you understood correctly, main reason is passing argument to constructor.\nAgree the way you describe will work fine.\nHowever I prefer to separate searching right class and creating an instance of the class, because it allows to keep code more independent (changing argument count, adding optional arguments for driver constructor does not affect manager.py) and simple(no need to add new optional arguments and introduce if/else logic inside _get_plugin_instance, no need to pass arguments down through the chain load_ipam_driver_class-\u003e_get_plugin_instance),","commit_id":"db2c0e8770bbcc2e1d6aaf877b09bdccf1c8b54c"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"ab5a8f2723fb4e35117fa7b815cc0f2ff9b1d3ff","unresolved":false,"context_lines":[{"line_number":127,"context_line":"        self.service_plugins \u003d {constants.CORE: self.plugin}"},{"line_number":128,"context_line":"        self._load_service_plugins()"},{"line_number":129,"context_line":""},{"line_number":130,"context_line":"    def _get_plugin_class(self, namespace, plugin_provider):"},{"line_number":131,"context_line":"        try:"},{"line_number":132,"context_line":"            # Try to resolve plugin by name"},{"line_number":133,"context_line":"            mgr \u003d driver.DriverManager(namespace, plugin_provider)"}],"source_content_type":"text/x-python","patch_set":21,"id":"9a80dd14_0dc1f12e","line":130,"updated":"2015-03-13 12:23:20.000000000","message":"this method now can load pretty much anything.\nWe might rename it as well load_class_for_provider or something like that","commit_id":"529dcc0628d9a1c9f40e24b77f6d6c93a726dc75"},{"author":{"_account_id":13768,"name":"Pavel Bondar","email":"pbondar@infoblox.com","username":"pavel_bondar"},"change_message_id":"228f7495f137591e820f826d0914629d1c861ed9","unresolved":false,"context_lines":[{"line_number":127,"context_line":"        self.service_plugins \u003d {constants.CORE: self.plugin}"},{"line_number":128,"context_line":"        self._load_service_plugins()"},{"line_number":129,"context_line":""},{"line_number":130,"context_line":"    def _get_plugin_class(self, namespace, plugin_provider):"},{"line_number":131,"context_line":"        try:"},{"line_number":132,"context_line":"            # Try to resolve plugin by name"},{"line_number":133,"context_line":"            mgr \u003d driver.DriverManager(namespace, plugin_provider)"}],"source_content_type":"text/x-python","patch_set":21,"id":"9a80dd14_0de2d19f","line":130,"in_reply_to":"9a80dd14_0dc1f12e","updated":"2015-03-13 12:37:08.000000000","message":"will do,  load_class_for_provider sounds ok for me","commit_id":"529dcc0628d9a1c9f40e24b77f6d6c93a726dc75"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"ab5a8f2723fb4e35117fa7b815cc0f2ff9b1d3ff","unresolved":false,"context_lines":[{"line_number":199,"context_line":"                      {\"type\": plugin_inst.get_plugin_type(),"},{"line_number":200,"context_line":"                       \"desc\": plugin_inst.get_plugin_description()})"},{"line_number":201,"context_line":""},{"line_number":202,"context_line":"    def load_ipam_driver_class(self, ipam_driver_name):"},{"line_number":203,"context_line":"        \"\"\"Loads IPAM driver class from neutron.ipam_drivers namespace.\"\"\""},{"line_number":204,"context_line":"        LOG.debug(\"Loading ipam driver: %s\", ipam_driver_name)"},{"line_number":205,"context_line":"        return self._get_plugin_class(\u0027neutron.ipam_drivers\u0027,"}],"source_content_type":"text/x-python","patch_set":21,"id":"9a80dd14_eda01d92","line":202,"updated":"2015-03-13 12:23:20.000000000","message":"I understand you may be trying to minimze code duplication, but I am not sure this method belong here.\n\nIs there any other reason for doing this?","commit_id":"529dcc0628d9a1c9f40e24b77f6d6c93a726dc75"},{"author":{"_account_id":261,"name":"Salvatore Orlando","email":"salv.orlando@gmail.com","username":"salvatore-orlando"},"change_message_id":"ef95b5ee1b4937f10760e12a65c548f7c83758c8","unresolved":false,"context_lines":[{"line_number":199,"context_line":"                      {\"type\": plugin_inst.get_plugin_type(),"},{"line_number":200,"context_line":"                       \"desc\": plugin_inst.get_plugin_description()})"},{"line_number":201,"context_line":""},{"line_number":202,"context_line":"    def load_ipam_driver_class(self, ipam_driver_name):"},{"line_number":203,"context_line":"        \"\"\"Loads IPAM driver class from neutron.ipam_drivers namespace.\"\"\""},{"line_number":204,"context_line":"        LOG.debug(\"Loading ipam driver: %s\", ipam_driver_name)"},{"line_number":205,"context_line":"        return self._get_plugin_class(\u0027neutron.ipam_drivers\u0027,"}],"source_content_type":"text/x-python","patch_set":21,"id":"9a80dd14_9f13425b","line":202,"in_reply_to":"9a80dd14_48759796","updated":"2015-03-13 13:12:49.000000000","message":"I think it makes sense to do that but I will not go and fight another holy war for this.\n\nYou can try and then if people complain we\u0027ll do as you\u0027re doing here","commit_id":"529dcc0628d9a1c9f40e24b77f6d6c93a726dc75"},{"author":{"_account_id":13768,"name":"Pavel Bondar","email":"pbondar@infoblox.com","username":"pavel_bondar"},"change_message_id":"228f7495f137591e820f826d0914629d1c861ed9","unresolved":false,"context_lines":[{"line_number":199,"context_line":"                      {\"type\": plugin_inst.get_plugin_type(),"},{"line_number":200,"context_line":"                       \"desc\": plugin_inst.get_plugin_description()})"},{"line_number":201,"context_line":""},{"line_number":202,"context_line":"    def load_ipam_driver_class(self, ipam_driver_name):"},{"line_number":203,"context_line":"        \"\"\"Loads IPAM driver class from neutron.ipam_drivers namespace.\"\"\""},{"line_number":204,"context_line":"        LOG.debug(\"Loading ipam driver: %s\", ipam_driver_name)"},{"line_number":205,"context_line":"        return self._get_plugin_class(\u0027neutron.ipam_drivers\u0027,"}],"source_content_type":"text/x-python","patch_set":21,"id":"9a80dd14_48759796","line":202,"in_reply_to":"9a80dd14_eda01d92","updated":"2015-03-13 12:37:08.000000000","message":"Main reason why it here is providing access to private method _get_plugin_class(). \nIf we are ok with renaming _get_plugin_class -\u003e load_class_for_provider (it become public method in this case), then  there is no reason to have load_ipam_driver_class here.","commit_id":"529dcc0628d9a1c9f40e24b77f6d6c93a726dc75"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"5fc30919ed592ef89b8275acdc0a8e16145a0b0b","unresolved":false,"context_lines":[{"line_number":140,"context_line":"            except ImportError as e2:"},{"line_number":141,"context_line":"                LOG.exception(_LE(\"Error loading plugin by name, %s\"), e1)"},{"line_number":142,"context_line":"                LOG.exception(_LE(\"Error loading plugin by class, %s\"), e2)"},{"line_number":143,"context_line":"                raise ImportError(_(\"Plugin not found.\"))"},{"line_number":144,"context_line":"        return plugin_class"},{"line_number":145,"context_line":""},{"line_number":146,"context_line":"    def _get_plugin_instance(self, namespace, plugin_provider):"}],"source_content_type":"text/x-python","patch_set":58,"id":"7a016987_bd2d9a90","line":143,"updated":"2015-06-01 14:36:13.000000000","message":"So what would occur if plugin_provider is None (the default value)? Will it actually raise ImportError?","commit_id":"c76be1939f7c5c4c13c2170498d0100ba3a5ad73"},{"author":{"_account_id":13768,"name":"Pavel Bondar","email":"pbondar@infoblox.com","username":"pavel_bondar"},"change_message_id":"6ccafef29e30285fc872cfdef2f90dfd130e2a4d","unresolved":false,"context_lines":[{"line_number":140,"context_line":"            except ImportError as e2:"},{"line_number":141,"context_line":"                LOG.exception(_LE(\"Error loading plugin by name, %s\"), e1)"},{"line_number":142,"context_line":"                LOG.exception(_LE(\"Error loading plugin by class, %s\"), e2)"},{"line_number":143,"context_line":"                raise ImportError(_(\"Plugin not found.\"))"},{"line_number":144,"context_line":"        return plugin_class"},{"line_number":145,"context_line":""},{"line_number":146,"context_line":"    def _get_plugin_instance(self, namespace, plugin_provider):"}],"source_content_type":"text/x-python","patch_set":58,"id":"7a016987_e2d00a21","line":143,"in_reply_to":"7a016987_bd2d9a90","updated":"2015-06-01 15:44:59.000000000","message":"load_class_for_provider is not called by dependent patches if default value(None) is set and internal IPAM implementation is used.\n\nUnfortunatelly passing None generates not very meaningful stacktrace:\n\nTraceback (most recent call last):\n  File \"/home/apostal/PycharmProjects/neutron-community/neutron/tests/unit/test_ipam.py\", line 289, in test_load_none\n    driver.Pool.get_instance(None, self.ctx)\n  File \"/home/apostal/PycharmProjects/neutron-community/neutron/ipam/driver.py\", line 52, in get_instance\n    ipam_driver_name)\n  File \"/home/apostal/PycharmProjects/neutron-community/neutron/manager.py\", line 139, in load_class_for_provider\n    plugin_class \u003d importutils.import_class(plugin_provider)\n  File \"/home/apostal/.venv2_test/lib/python2.7/site-packages/oslo_utils/importutils.py\", line 26, in import_class\n    mod_str, _sep, class_str \u003d import_str.rpartition(\u0027.\u0027)\nAttributeError: \u0027NoneType\u0027 object has no attribute \u0027rpartition\u0027\n\nWill update code to raise ImportError for None, and add testcase for that.","commit_id":"c76be1939f7c5c4c13c2170498d0100ba3a5ad73"}],"neutron/tests/unit/ipam/dummy_ipam_driver.py":[{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"b77e969a823120a251d400fa725c2b3f2c508979","unresolved":false,"context_lines":[{"line_number":16,"context_line":"from neutron.ipam import base as ipam_base"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"class DummyIPAMDriver(ipam_base.IPAMDriver):"},{"line_number":20,"context_line":"    \"\"\"Dummy IPAM driver for tests only"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"    Just implement IPAMDriver interface without any functionality inside"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_4c93f04e","line":19,"updated":"2015-01-15 14:00:21.000000000","message":"Please change Dummy to Fake","commit_id":"66e33d306590732f79de09940a89ff4ada59bcda"},{"author":{"_account_id":12912,"name":"John Belamaric","email":"jbelamaric@infoblox.com","username":"johnbelamaric"},"change_message_id":"8c17cd4712ee1bf7f61202a7666bd27f549e02b0","unresolved":false,"context_lines":[{"line_number":16,"context_line":"from neutron.ipam import base as ipam_base"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"class DummyIPAMDriver(ipam_base.IPAMDriver):"},{"line_number":20,"context_line":"    \"\"\"Dummy IPAM driver for tests only"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"    Just implement IPAMDriver interface without any functionality inside"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_f2447274","line":19,"in_reply_to":"3a961159_4c93f04e","updated":"2015-01-15 14:35:16.000000000","message":"+1","commit_id":"66e33d306590732f79de09940a89ff4ada59bcda"},{"author":{"_account_id":13768,"name":"Pavel Bondar","email":"pbondar@infoblox.com","username":"pavel_bondar"},"change_message_id":"c5a76c97c578ca24f830fd7f371d57c7fcfdce04","unresolved":false,"context_lines":[{"line_number":16,"context_line":"from neutron.ipam import base as ipam_base"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"class DummyIPAMDriver(ipam_base.IPAMDriver):"},{"line_number":20,"context_line":"    \"\"\"Dummy IPAM driver for tests only"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"    Just implement IPAMDriver interface without any functionality inside"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a961159_d5304057","line":19,"in_reply_to":"3a961159_f2447274","updated":"2015-01-15 14:53:56.000000000","message":"ok","commit_id":"66e33d306590732f79de09940a89ff4ada59bcda"}],"neutron/tests/unit/ipam/fake_ipam_driver.py":[{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"9665af3ff408e63c69280882bd7a3060919429cf","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright (c) 2012 OpenStack Foundation."},{"line_number":2,"context_line":"# All Rights Reserved."},{"line_number":3,"context_line":"#"},{"line_number":4,"context_line":"#    Licensed under the Apache License, Version 2.0 (the \"License\"); you may"}],"source_content_type":"text/x-python","patch_set":5,"id":"1a930d6b_c6cfb627","line":1,"updated":"2015-01-26 17:54:49.000000000","message":"This is not the correct header for this change.  Shoud be 2015 and attributed to the correct entity contributing code.","commit_id":"6540336ad6115e1ac3031332e0fb0953981ab16e"},{"author":{"_account_id":13768,"name":"Pavel Bondar","email":"pbondar@infoblox.com","username":"pavel_bondar"},"change_message_id":"e68641fcd8dc1f3d9f77c0baea4be22c50b3788b","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright (c) 2012 OpenStack Foundation."},{"line_number":2,"context_line":"# All Rights Reserved."},{"line_number":3,"context_line":"#"},{"line_number":4,"context_line":"#    Licensed under the Apache License, Version 2.0 (the \"License\"); you may"}],"source_content_type":"text/x-python","patch_set":5,"id":"1a930d6b_b9e9b6b8","line":1,"in_reply_to":"1a930d6b_c6cfb627","updated":"2015-02-20 09:44:51.000000000","message":"Done","commit_id":"6540336ad6115e1ac3031332e0fb0953981ab16e"}],"neutron/tests/unit/ipam/test_base.py":[{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"9665af3ff408e63c69280882bd7a3060919429cf","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright (c) 2012 OpenStack Foundation."},{"line_number":2,"context_line":"# All Rights Reserved."},{"line_number":3,"context_line":"#"},{"line_number":4,"context_line":"#    Licensed under the Apache License, Version 2.0 (the \"License\"); you may"}],"source_content_type":"text/x-python","patch_set":5,"id":"1a930d6b_6649a2b6","line":1,"updated":"2015-01-26 17:54:49.000000000","message":"Same comment on header being wrong","commit_id":"6540336ad6115e1ac3031332e0fb0953981ab16e"},{"author":{"_account_id":13768,"name":"Pavel Bondar","email":"pbondar@infoblox.com","username":"pavel_bondar"},"change_message_id":"e68641fcd8dc1f3d9f77c0baea4be22c50b3788b","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright (c) 2012 OpenStack Foundation."},{"line_number":2,"context_line":"# All Rights Reserved."},{"line_number":3,"context_line":"#"},{"line_number":4,"context_line":"#    Licensed under the Apache License, Version 2.0 (the \"License\"); you may"}],"source_content_type":"text/x-python","patch_set":5,"id":"1a930d6b_d9d3e201","line":1,"in_reply_to":"1a930d6b_6649a2b6","updated":"2015-02-20 09:44:51.000000000","message":"Done","commit_id":"6540336ad6115e1ac3031332e0fb0953981ab16e"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"434c1b871c7d5edd11e66f15ff32a1a8c5f80207","unresolved":false,"context_lines":[{"line_number":24,"context_line":"from neutron.tests.unit import testlib_plugin"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":28,"context_line":"DB_PLUGIN_KLASS \u003d \u0027neutron.db.db_base_plugin_v2.NeutronDbPluginV2\u0027"},{"line_number":29,"context_line":"FAKE_IPAM_KLASS \u003d \u0027neutron.tests.unit.ipam.fake_ipam_driver.FakeIPAMDriver\u0027"},{"line_number":30,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"da86d52c_c23c7f96","line":27,"updated":"2015-02-02 11:50:54.000000000","message":"Do we use LOG here?","commit_id":"eb879bd058d971afd1895eef25ffda2c446625b1"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"434c1b871c7d5edd11e66f15ff32a1a8c5f80207","unresolved":false,"context_lines":[{"line_number":25,"context_line":""},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":28,"context_line":"DB_PLUGIN_KLASS \u003d \u0027neutron.db.db_base_plugin_v2.NeutronDbPluginV2\u0027"},{"line_number":29,"context_line":"FAKE_IPAM_KLASS \u003d \u0027neutron.tests.unit.ipam.fake_ipam_driver.FakeIPAMDriver\u0027"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"da86d52c_e241830c","line":28,"updated":"2015-02-02 11:50:54.000000000","message":"KLASS -\u003e CLASS","commit_id":"eb879bd058d971afd1895eef25ffda2c446625b1"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"434c1b871c7d5edd11e66f15ff32a1a8c5f80207","unresolved":false,"context_lines":[{"line_number":34,"context_line":""},{"line_number":35,"context_line":"    def setUp(self):"},{"line_number":36,"context_line":"        super(IPAMDriverTestCase, self).setUp()"},{"line_number":37,"context_line":"        self.config_parse()"},{"line_number":38,"context_line":"        self.setup_coreplugin(DB_PLUGIN_KLASS)"},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"    def test_ipam_driver_is_loaded_by_class(self):"}],"source_content_type":"text/x-python","patch_set":6,"id":"da86d52c_02477720","line":37,"updated":"2015-02-02 11:50:54.000000000","message":"Config is already parsed in BaseTestCase.","commit_id":"eb879bd058d971afd1895eef25ffda2c446625b1"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"434c1b871c7d5edd11e66f15ff32a1a8c5f80207","unresolved":false,"context_lines":[{"line_number":46,"context_line":"            ipam_driver, (fake_ipam_driver.FakeIPAMDriver, types.ClassType),"},{"line_number":47,"context_line":"            \"loaded ipam driver should be of type FakeIPAMDriver\")"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"    def test_ipam_driver_is_loaded_by_name(self):"},{"line_number":50,"context_line":"        cfg.CONF.set_override(\"ipam_driver\", \u0027fake_ipam\u0027)"},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"        ipam_driver \u003d ipam_base.IPAMDriver.get_instance(None)"}],"source_content_type":"text/x-python","patch_set":6,"id":"da86d52c_224b9b2c","line":49,"updated":"2015-02-02 11:50:54.000000000","message":"Those two test cases are pretty similar and ask for being refactored to reuse the same code.","commit_id":"eb879bd058d971afd1895eef25ffda2c446625b1"},{"author":{"_account_id":9631,"name":"sajuptpm","email":"sajuptpm@gmail.com","username":"sajuptpm"},"change_message_id":"552c2bae3f0f96610fa0a2f57e0e21b599d7474f","unresolved":false,"context_lines":[{"line_number":53,"context_line":""},{"line_number":54,"context_line":"        self.assertIsInstance("},{"line_number":55,"context_line":"            ipam_driver, (fake_ipam_driver.FakeIPAMDriver, types.ClassType),"},{"line_number":56,"context_line":"            \"loaded ipam driver should be of type DummyIPAMDriver\")"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"    def test_ipam_driver_raises_import_error(self):"},{"line_number":59,"context_line":"        cfg.CONF.set_override(\"ipam_driver\","}],"source_content_type":"text/x-python","patch_set":6,"id":"da86d52c_5493f6a2","line":56,"updated":"2015-02-02 08:35:26.000000000","message":"Please Change DummyIPAMDriver to FakeIPAMDriver","commit_id":"eb879bd058d971afd1895eef25ffda2c446625b1"},{"author":{"_account_id":13768,"name":"Pavel Bondar","email":"pbondar@infoblox.com","username":"pavel_bondar"},"change_message_id":"29ec7ebc61390ad279faa57d220d0e1fcb518481","unresolved":false,"context_lines":[{"line_number":53,"context_line":""},{"line_number":54,"context_line":"        self.assertIsInstance("},{"line_number":55,"context_line":"            ipam_driver, (fake_ipam_driver.FakeIPAMDriver, types.ClassType),"},{"line_number":56,"context_line":"            \"loaded ipam driver should be of type DummyIPAMDriver\")"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"    def test_ipam_driver_raises_import_error(self):"},{"line_number":59,"context_line":"        cfg.CONF.set_override(\"ipam_driver\","}],"source_content_type":"text/x-python","patch_set":6,"id":"da86d52c_2a7b0d7c","line":56,"in_reply_to":"da86d52c_5493f6a2","updated":"2015-02-04 09:26:06.000000000","message":"Done","commit_id":"eb879bd058d971afd1895eef25ffda2c446625b1"},{"author":{"_account_id":9631,"name":"sajuptpm","email":"sajuptpm@gmail.com","username":"sajuptpm"},"change_message_id":"552c2bae3f0f96610fa0a2f57e0e21b599d7474f","unresolved":false,"context_lines":[{"line_number":58,"context_line":"    def test_ipam_driver_raises_import_error(self):"},{"line_number":59,"context_line":"        cfg.CONF.set_override(\"ipam_driver\","},{"line_number":60,"context_line":"                              \u0027neutron.tests.unit.ipam.SomeNonExistentClass\u0027)"},{"line_number":61,"context_line":"        self.assertRaises(ImportError, ipam_base.IPAMDriver.get_instance, None)"}],"source_content_type":"text/x-python","patch_set":6,"id":"da86d52c_b4d0b254","line":61,"updated":"2015-02-02 08:35:26.000000000","message":"Should be like self.assertRaises(ImportError, ipam_base.IPAMDriver.get_instance(None), None)","commit_id":"eb879bd058d971afd1895eef25ffda2c446625b1"},{"author":{"_account_id":9631,"name":"sajuptpm","email":"sajuptpm@gmail.com","username":"sajuptpm"},"change_message_id":"f3ccb0f0b7ce70735081b133e2f8bee38f714916","unresolved":false,"context_lines":[{"line_number":58,"context_line":"    def test_ipam_driver_raises_import_error(self):"},{"line_number":59,"context_line":"        cfg.CONF.set_override(\"ipam_driver\","},{"line_number":60,"context_line":"                              \u0027neutron.tests.unit.ipam.SomeNonExistentClass\u0027)"},{"line_number":61,"context_line":"        self.assertRaises(ImportError, ipam_base.IPAMDriver.get_instance, None)"}],"source_content_type":"text/x-python","patch_set":6,"id":"da86d52c_f9a135aa","line":61,"in_reply_to":"da86d52c_2220fb48","updated":"2015-02-02 14:24:16.000000000","message":"I think, We need to invoke the method get_instance() to get the ImportError.\nPlease correct me if i am wrong.","commit_id":"eb879bd058d971afd1895eef25ffda2c446625b1"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"695eddc6d277982b9462173e970bc542a7340e58","unresolved":false,"context_lines":[{"line_number":58,"context_line":"    def test_ipam_driver_raises_import_error(self):"},{"line_number":59,"context_line":"        cfg.CONF.set_override(\"ipam_driver\","},{"line_number":60,"context_line":"                              \u0027neutron.tests.unit.ipam.SomeNonExistentClass\u0027)"},{"line_number":61,"context_line":"        self.assertRaises(ImportError, ipam_base.IPAMDriver.get_instance, None)"}],"source_content_type":"text/x-python","patch_set":6,"id":"da86d52c_2220fb48","line":61,"in_reply_to":"da86d52c_b4d0b254","updated":"2015-02-02 11:53:09.000000000","message":"Why?","commit_id":"eb879bd058d971afd1895eef25ffda2c446625b1"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"ddaf532360a89428ee925ba49f32c4659e7170ac","unresolved":false,"context_lines":[{"line_number":58,"context_line":"    def test_ipam_driver_raises_import_error(self):"},{"line_number":59,"context_line":"        cfg.CONF.set_override(\"ipam_driver\","},{"line_number":60,"context_line":"                              \u0027neutron.tests.unit.ipam.SomeNonExistentClass\u0027)"},{"line_number":61,"context_line":"        self.assertRaises(ImportError, ipam_base.IPAMDriver.get_instance, None)"}],"source_content_type":"text/x-python","patch_set":6,"id":"da86d52c_20e8dc0f","line":61,"in_reply_to":"da86d52c_f9a135aa","updated":"2015-02-02 19:13:27.000000000","message":"AssertRaises calls it for you. Otherwise you will get exception before even entering the assert method.","commit_id":"eb879bd058d971afd1895eef25ffda2c446625b1"}],"neutron/tests/unit/ipam/test_ipam_loader.py":[{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"134624d6b99cf63af0052ea492a1b277d49ecb12","unresolved":false,"context_lines":[{"line_number":34,"context_line":"        super(TestIpamDriverLoader, self).setUp()"},{"line_number":35,"context_line":"        self.setup_coreplugin(DB_PLUGIN_CLASS)"},{"line_number":36,"context_line":"        # clean out loaded driver between tests"},{"line_number":37,"context_line":"        driver.Pool._driver_instance \u003d None"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"    def _load_ipam_driver(self, driver_name):"},{"line_number":40,"context_line":"        cfg.CONF.set_override(\"ipam_driver\", driver_name)"}],"source_content_type":"text/x-python","patch_set":14,"id":"ba7be1f8_f5028208","line":37,"updated":"2015-02-25 17:21:11.000000000","message":"this can be moved in  self.addCleanup , see [1]\n\n[1] https://docs.python.org/2/library/unittest.html#unittest.TestCase.addCleanup","commit_id":"f6887ce1183f9324dc6ba9d0ae23f003618e5fdd"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"a521fa09b0a06679c1566c37b73b71abeb858882","unresolved":false,"context_lines":[{"line_number":34,"context_line":"        super(TestIpamDriverLoader, self).setUp()"},{"line_number":35,"context_line":"        self.setup_coreplugin(DB_PLUGIN_CLASS)"},{"line_number":36,"context_line":"        # clean out loaded driver between tests"},{"line_number":37,"context_line":"        driver.Pool._driver_instance \u003d None"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"    def _load_ipam_driver(self, driver_name):"},{"line_number":40,"context_line":"        cfg.CONF.set_override(\"ipam_driver\", driver_name)"}],"source_content_type":"text/x-python","patch_set":14,"id":"ba7be1f8_a26b321e","line":37,"in_reply_to":"ba7be1f8_8b1bcd7f","updated":"2015-02-26 21:53:23.000000000","message":"prefer addCleanup over tearDown [1]\n\n[1] http://lists.openstack.org/pipermail/openstack-dev/2013-October/016203.html","commit_id":"f6887ce1183f9324dc6ba9d0ae23f003618e5fdd"},{"author":{"_account_id":13768,"name":"Pavel Bondar","email":"pbondar@infoblox.com","username":"pavel_bondar"},"change_message_id":"2d367419f5f2dd4cd72c3281650f61cee5d8efb3","unresolved":false,"context_lines":[{"line_number":34,"context_line":"        super(TestIpamDriverLoader, self).setUp()"},{"line_number":35,"context_line":"        self.setup_coreplugin(DB_PLUGIN_CLASS)"},{"line_number":36,"context_line":"        # clean out loaded driver between tests"},{"line_number":37,"context_line":"        driver.Pool._driver_instance \u003d None"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"    def _load_ipam_driver(self, driver_name):"},{"line_number":40,"context_line":"        cfg.CONF.set_override(\"ipam_driver\", driver_name)"}],"source_content_type":"text/x-python","patch_set":14,"id":"ba7be1f8_8b1bcd7f","line":37,"in_reply_to":"ba7be1f8_e2cc6ebd","updated":"2015-02-26 10:49:56.000000000","message":"tearDown() fits well for that too","commit_id":"f6887ce1183f9324dc6ba9d0ae23f003618e5fdd"},{"author":{"_account_id":13768,"name":"Pavel Bondar","email":"pbondar@infoblox.com","username":"pavel_bondar"},"change_message_id":"cf7d7cbfa510252c07c82205c772f6b2e2ac6ee7","unresolved":false,"context_lines":[{"line_number":34,"context_line":"        super(TestIpamDriverLoader, self).setUp()"},{"line_number":35,"context_line":"        self.setup_coreplugin(DB_PLUGIN_CLASS)"},{"line_number":36,"context_line":"        # clean out loaded driver between tests"},{"line_number":37,"context_line":"        driver.Pool._driver_instance \u003d None"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"    def _load_ipam_driver(self, driver_name):"},{"line_number":40,"context_line":"        cfg.CONF.set_override(\"ipam_driver\", driver_name)"}],"source_content_type":"text/x-python","patch_set":14,"id":"ba7be1f8_e2cc6ebd","line":37,"in_reply_to":"ba7be1f8_f5028208","updated":"2015-02-26 08:22:44.000000000","message":"ok, will do","commit_id":"f6887ce1183f9324dc6ba9d0ae23f003618e5fdd"},{"author":{"_account_id":6788,"name":"Rossella Sblendido","email":"rsblendido@suse.com","username":"rossella-o"},"change_message_id":"134624d6b99cf63af0052ea492a1b277d49ecb12","unresolved":false,"context_lines":[{"line_number":38,"context_line":""},{"line_number":39,"context_line":"    def _load_ipam_driver(self, driver_name):"},{"line_number":40,"context_line":"        cfg.CONF.set_override(\"ipam_driver\", driver_name)"},{"line_number":41,"context_line":"        return driver.Pool.get_instance(None)"},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"    def _verify_fake_ipam_driver_is_loaded(self, driver_name):"},{"line_number":44,"context_line":"        ipam_driver \u003d self._load_ipam_driver(driver_name)"}],"source_content_type":"text/x-python","patch_set":14,"id":"ba7be1f8_1a1f456d","line":41,"updated":"2015-02-25 17:21:11.000000000","message":"what\u0027s the reason of not using manager.load_ipam_driver here directly?","commit_id":"f6887ce1183f9324dc6ba9d0ae23f003618e5fdd"},{"author":{"_account_id":4187,"name":"Ryan Tidwell","email":"rtidwell@suse.com","username":"ryan-tidwell"},"change_message_id":"56227282750ae20ac427d3eac4ffbc9a35c1cb40","unresolved":false,"context_lines":[{"line_number":38,"context_line":""},{"line_number":39,"context_line":"    def _load_ipam_driver(self, driver_name):"},{"line_number":40,"context_line":"        cfg.CONF.set_override(\"ipam_driver\", driver_name)"},{"line_number":41,"context_line":"        return driver.Pool.get_instance(None)"},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"    def _verify_fake_ipam_driver_is_loaded(self, driver_name):"},{"line_number":44,"context_line":"        ipam_driver \u003d self._load_ipam_driver(driver_name)"}],"source_content_type":"text/x-python","patch_set":14,"id":"ba7be1f8_c0805b8d","line":41,"in_reply_to":"ba7be1f8_1a1f456d","updated":"2015-02-25 19:36:51.000000000","message":"+1","commit_id":"f6887ce1183f9324dc6ba9d0ae23f003618e5fdd"},{"author":{"_account_id":13768,"name":"Pavel Bondar","email":"pbondar@infoblox.com","username":"pavel_bondar"},"change_message_id":"cf7d7cbfa510252c07c82205c772f6b2e2ac6ee7","unresolved":false,"context_lines":[{"line_number":38,"context_line":""},{"line_number":39,"context_line":"    def _load_ipam_driver(self, driver_name):"},{"line_number":40,"context_line":"        cfg.CONF.set_override(\"ipam_driver\", driver_name)"},{"line_number":41,"context_line":"        return driver.Pool.get_instance(None)"},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"    def _verify_fake_ipam_driver_is_loaded(self, driver_name):"},{"line_number":44,"context_line":"        ipam_driver \u003d self._load_ipam_driver(driver_name)"}],"source_content_type":"text/x-python","patch_set":14,"id":"ba7be1f8_8215729d","line":41,"in_reply_to":"ba7be1f8_c0805b8d","updated":"2015-02-26 08:22:44.000000000","message":"driver.Pool.get_instance includes singleton logic additionally to loading driver and this behavior is tested in test_ipam_driver_is_singleton().\nBut after looking at this part once again, it have sense to use  manager.load_ipam_driver directly for all tests except test_ipam_driver_is_singleton.\nSo I\u0027ll update this part.","commit_id":"f6887ce1183f9324dc6ba9d0ae23f003618e5fdd"},{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"e795a08518225eafa24820f80e8a3691bbc04864","unresolved":false,"context_lines":[{"line_number":35,"context_line":"        super(TestIpamDriverLoader, self).setUp()"},{"line_number":36,"context_line":"        self.setup_coreplugin(DB_PLUGIN_CLASS)"},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"    def tearDown(self):"},{"line_number":39,"context_line":"        super(TestIpamDriverLoader, self).tearDown()"},{"line_number":40,"context_line":"        driver.Pool._driver_instance \u003d None"},{"line_number":41,"context_line":""}],"source_content_type":"text/x-python","patch_set":15,"id":"ba7be1f8_62593a8e","line":38,"updated":"2015-02-26 21:54:02.000000000","message":"http://lists.openstack.org/pipermail/openstack-dev/2013-October/016203.html","commit_id":"00f3f38549d6b9d0d0a278dab8a827909a432d0d"},{"author":{"_account_id":13768,"name":"Pavel Bondar","email":"pbondar@infoblox.com","username":"pavel_bondar"},"change_message_id":"7963f415fb532decb4345d242351879154db807f","unresolved":false,"context_lines":[{"line_number":35,"context_line":"        super(TestIpamDriverLoader, self).setUp()"},{"line_number":36,"context_line":"        self.setup_coreplugin(DB_PLUGIN_CLASS)"},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"    def tearDown(self):"},{"line_number":39,"context_line":"        super(TestIpamDriverLoader, self).tearDown()"},{"line_number":40,"context_line":"        driver.Pool._driver_instance \u003d None"},{"line_number":41,"context_line":""}],"source_content_type":"text/x-python","patch_set":15,"id":"ba7be1f8_8478e9f9","line":38,"in_reply_to":"ba7be1f8_62593a8e","updated":"2015-02-27 08:48:51.000000000","message":"Thanks, got it, will fix in next patchset","commit_id":"00f3f38549d6b9d0d0a278dab8a827909a432d0d"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"e0be9410d397b60808af00b7f42e2adee78c4d76","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":"import mock"},{"line_number":17,"context_line":"import types"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"from oslo_config import cfg"}],"source_content_type":"text/x-python","patch_set":25,"id":"9a80dd14_f37d29e8","line":16,"updated":"2015-03-20 15:11:34.000000000","message":"nit: mock is 3party import, so belongs to the next section (before oslo_config one).","commit_id":"d9d24909bba98d68abe803b7f634cd2f0a5f86f1"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"d5bb759fb6c15c0227d4c3d21e7d9c57e60332f7","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":"import mock"},{"line_number":17,"context_line":"import types"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"from oslo_config import cfg"}],"source_content_type":"text/x-python","patch_set":25,"id":"9a80dd14_64e96ce2","line":16,"in_reply_to":"9a80dd14_2e21189e","updated":"2015-03-20 18:21:26.000000000","message":"At least we should consider it as 3party before neutron gets into py3 business.","commit_id":"d9d24909bba98d68abe803b7f634cd2f0a5f86f1"},{"author":{"_account_id":13768,"name":"Pavel Bondar","email":"pbondar@infoblox.com","username":"pavel_bondar"},"change_message_id":"a365768cab4f71cb170e7634b339741f734fca2f","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":"import mock"},{"line_number":17,"context_line":"import types"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"from oslo_config import cfg"}],"source_content_type":"text/x-python","patch_set":25,"id":"1a6ced46_92a02bf6","line":16,"in_reply_to":"9a80dd14_64e96ce2","updated":"2015-03-23 12:18:29.000000000","message":"Done","commit_id":"d9d24909bba98d68abe803b7f634cd2f0a5f86f1"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"3668c7122e783ea77a0974c77f2817b7012c026b","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":"import mock"},{"line_number":17,"context_line":"import types"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"from oslo_config import cfg"}],"source_content_type":"text/x-python","patch_set":25,"id":"9a80dd14_2e21189e","line":16,"in_reply_to":"9a80dd14_f37d29e8","updated":"2015-03-20 15:16:06.000000000","message":"mock is in stdlib in py3k so should we consider it as a stdlib or 3rd party import?","commit_id":"d9d24909bba98d68abe803b7f634cd2f0a5f86f1"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"2daccab2d593f0255f5a8f9a41ce01d21c76c723","unresolved":false,"context_lines":[{"line_number":16,"context_line":"import types"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"import mock"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"from oslo_config import cfg"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"from neutron.ipam import driver"}],"source_content_type":"text/x-python","patch_set":26,"id":"1a6ced46_063a33cd","line":19,"updated":"2015-03-23 16:33:20.000000000","message":"nit: there should be no newline here because mock is of same type as oslo_config (both are 3party).","commit_id":"a3226ff136df04162e6efe5a3ecca29d99148cad"},{"author":{"_account_id":13768,"name":"Pavel Bondar","email":"pbondar@infoblox.com","username":"pavel_bondar"},"change_message_id":"ca541c7dbe1e90b95849face3094bfae7b8d55db","unresolved":false,"context_lines":[{"line_number":16,"context_line":"import types"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"import mock"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"from oslo_config import cfg"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"from neutron.ipam import driver"}],"source_content_type":"text/x-python","patch_set":26,"id":"1a6ced46_a5acdaa1","line":19,"in_reply_to":"1a6ced46_063a33cd","updated":"2015-03-24 09:02:24.000000000","message":"Ah, sorry, misread your last message, will fix it.","commit_id":"a3226ff136df04162e6efe5a3ecca29d99148cad"},{"author":{"_account_id":13768,"name":"Pavel Bondar","email":"pbondar@infoblox.com","username":"pavel_bondar"},"change_message_id":"32b098af98d80fc2972a8136ae8155cba26b68b2","unresolved":false,"context_lines":[{"line_number":16,"context_line":"import types"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"import mock"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"from oslo_config import cfg"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"from neutron.ipam import driver"}],"source_content_type":"text/x-python","patch_set":26,"id":"1a6ced46_fd157de5","line":19,"in_reply_to":"1a6ced46_a5acdaa1","updated":"2015-03-24 12:46:09.000000000","message":"Done","commit_id":"a3226ff136df04162e6efe5a3ecca29d99148cad"}],"neutron/tests/unit/test_ipam.py":[{"author":{"_account_id":7448,"name":"Carl Baldwin","email":"carl@ecbaldwin.net","username":"carl-baldwin"},"change_message_id":"3b51c1107750ba5c59a40b0c29b49b9baa856a26","unresolved":false,"context_lines":[{"line_number":29,"context_line":""},{"line_number":30,"context_line":"DB_PLUGIN_CLASS \u003d \u0027neutron.db.db_base_plugin_v2.NeutronDbPluginV2\u0027"},{"line_number":31,"context_line":"FAKE_IPAM_CLASS \u003d \u0027neutron.tests.unit.ipam.fake_ipam_driver.FakeIPAMDriver\u0027"},{"line_number":32,"context_line":"FAKE_IPAM_CLASS_LOADER \u003d \\"},{"line_number":33,"context_line":"    \u0027neutron.tests.unit.ipam.fake_ipam_driver.FakeIPAMDriverCustomLoader\u0027"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":""}],"source_content_type":"text/x-python","patch_set":55,"id":"7a016987_eb8a57be","line":32,"updated":"2015-05-29 18:09:07.000000000","message":"Shouldn\u0027t be using \\ to continue lines in any new code where it can be helped.","commit_id":"25303cc76051f2d9ac27c498621aea97480e121a"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"5fc30919ed592ef89b8275acdc0a8e16145a0b0b","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright (c) 2012 OpenStack Foundation."},{"line_number":2,"context_line":"# All Rights Reserved."},{"line_number":3,"context_line":"#"},{"line_number":4,"context_line":"#    Licensed under the Apache License, Version 2.0 (the \"License\"); you may"}],"source_content_type":"text/x-python","patch_set":58,"id":"7a016987_1d994ec4","line":1,"updated":"2015-06-01 14:36:13.000000000","message":"I don\u0027t fully understand why you introduce a copyright year of 2012 now, for an organization that is not your employer. :)","commit_id":"c76be1939f7c5c4c13c2170498d0100ba3a5ad73"},{"author":{"_account_id":13768,"name":"Pavel Bondar","email":"pbondar@infoblox.com","username":"pavel_bondar"},"change_message_id":"6ccafef29e30285fc872cfdef2f90dfd130e2a4d","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright (c) 2012 OpenStack Foundation."},{"line_number":2,"context_line":"# All Rights Reserved."},{"line_number":3,"context_line":"#"},{"line_number":4,"context_line":"#    Licensed under the Apache License, Version 2.0 (the \"License\"); you may"}],"source_content_type":"text/x-python","patch_set":58,"id":"7a016987_226bc2f2","line":1,"in_reply_to":"7a016987_1d994ec4","updated":"2015-06-01 15:44:59.000000000","message":"Looks like my experiments with time machine actually succeed and past was changed:)\nWill remove it.","commit_id":"c76be1939f7c5c4c13c2170498d0100ba3a5ad73"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"5fc30919ed592ef89b8275acdc0a8e16145a0b0b","unresolved":false,"context_lines":[{"line_number":30,"context_line":"from neutron.tests import base"},{"line_number":31,"context_line":"from neutron.tests.unit.ipam import fake_driver"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"DB_PLUGIN_CLASS \u003d \u0027neutron.db.db_base_plugin_v2.NeutronDbPluginV2\u0027"},{"line_number":34,"context_line":"FAKE_IPAM_CLASS \u003d \u0027neutron.tests.unit.ipam.fake_driver.FakeDriver\u0027"},{"line_number":35,"context_line":"FAKE_IPAM_CLASS_LOADER \u003d ("},{"line_number":36,"context_line":"    \u0027neutron.tests.unit.ipam.fake_driver.FakeDriverCustomLoader\u0027)"}],"source_content_type":"text/x-python","patch_set":58,"id":"7a016987_3d42ca0f","line":33,"updated":"2015-06-01 14:36:13.000000000","message":"Where is it used?","commit_id":"c76be1939f7c5c4c13c2170498d0100ba3a5ad73"},{"author":{"_account_id":13768,"name":"Pavel Bondar","email":"pbondar@infoblox.com","username":"pavel_bondar"},"change_message_id":"6ccafef29e30285fc872cfdef2f90dfd130e2a4d","unresolved":false,"context_lines":[{"line_number":30,"context_line":"from neutron.tests import base"},{"line_number":31,"context_line":"from neutron.tests.unit.ipam import fake_driver"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"DB_PLUGIN_CLASS \u003d \u0027neutron.db.db_base_plugin_v2.NeutronDbPluginV2\u0027"},{"line_number":34,"context_line":"FAKE_IPAM_CLASS \u003d \u0027neutron.tests.unit.ipam.fake_driver.FakeDriver\u0027"},{"line_number":35,"context_line":"FAKE_IPAM_CLASS_LOADER \u003d ("},{"line_number":36,"context_line":"    \u0027neutron.tests.unit.ipam.fake_driver.FakeDriverCustomLoader\u0027)"}],"source_content_type":"text/x-python","patch_set":58,"id":"7a016987_c2d86ef1","line":33,"in_reply_to":"7a016987_3d42ca0f","updated":"2015-06-01 15:44:59.000000000","message":"will remove","commit_id":"c76be1939f7c5c4c13c2170498d0100ba3a5ad73"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"5fc30919ed592ef89b8275acdc0a8e16145a0b0b","unresolved":false,"context_lines":[{"line_number":32,"context_line":""},{"line_number":33,"context_line":"DB_PLUGIN_CLASS \u003d \u0027neutron.db.db_base_plugin_v2.NeutronDbPluginV2\u0027"},{"line_number":34,"context_line":"FAKE_IPAM_CLASS \u003d \u0027neutron.tests.unit.ipam.fake_driver.FakeDriver\u0027"},{"line_number":35,"context_line":"FAKE_IPAM_CLASS_LOADER \u003d ("},{"line_number":36,"context_line":"    \u0027neutron.tests.unit.ipam.fake_driver.FakeDriverCustomLoader\u0027)"},{"line_number":37,"context_line":""},{"line_number":38,"context_line":""}],"source_content_type":"text/x-python","patch_set":58,"id":"7a016987_fdc1d280","line":35,"updated":"2015-06-01 14:36:13.000000000","message":"Where is it used?","commit_id":"c76be1939f7c5c4c13c2170498d0100ba3a5ad73"},{"author":{"_account_id":13768,"name":"Pavel Bondar","email":"pbondar@infoblox.com","username":"pavel_bondar"},"change_message_id":"6ccafef29e30285fc872cfdef2f90dfd130e2a4d","unresolved":false,"context_lines":[{"line_number":32,"context_line":""},{"line_number":33,"context_line":"DB_PLUGIN_CLASS \u003d \u0027neutron.db.db_base_plugin_v2.NeutronDbPluginV2\u0027"},{"line_number":34,"context_line":"FAKE_IPAM_CLASS \u003d \u0027neutron.tests.unit.ipam.fake_driver.FakeDriver\u0027"},{"line_number":35,"context_line":"FAKE_IPAM_CLASS_LOADER \u003d ("},{"line_number":36,"context_line":"    \u0027neutron.tests.unit.ipam.fake_driver.FakeDriverCustomLoader\u0027)"},{"line_number":37,"context_line":""},{"line_number":38,"context_line":""}],"source_content_type":"text/x-python","patch_set":58,"id":"7a016987_82def6d7","line":35,"in_reply_to":"7a016987_fdc1d280","updated":"2015-06-01 15:44:59.000000000","message":"will remove","commit_id":"c76be1939f7c5c4c13c2170498d0100ba3a5ad73"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"5fc30919ed592ef89b8275acdc0a8e16145a0b0b","unresolved":false,"context_lines":[{"line_number":274,"context_line":"        return driver.Pool.get_instance(subnet_pool_id, self.ctx)"},{"line_number":275,"context_line":""},{"line_number":276,"context_line":"    def test_ipam_driver_is_loaded_from_ipam_driver_config_value(self):"},{"line_number":277,"context_line":"        ipam_driver \u003d self._load_ipam_driver(\u0027fake\u0027, None)"},{"line_number":278,"context_line":"        self.assertIsInstance("},{"line_number":279,"context_line":"            ipam_driver, (fake_driver.FakeDriver, types.ClassType),"},{"line_number":280,"context_line":"            \"loaded ipam driver should be of type FakeDriver\")"}],"source_content_type":"text/x-python","patch_set":58,"id":"7a016987_3d9aca62","line":277,"updated":"2015-06-01 14:36:13.000000000","message":"I think a test case that would set (or better, leave the default value of) ipam_driver as None and check that it does not blow up is missing.","commit_id":"c76be1939f7c5c4c13c2170498d0100ba3a5ad73"},{"author":{"_account_id":13768,"name":"Pavel Bondar","email":"pbondar@infoblox.com","username":"pavel_bondar"},"change_message_id":"0de56783aa7f6ecb103c716a14019e6b909f6638","unresolved":false,"context_lines":[{"line_number":274,"context_line":"        return driver.Pool.get_instance(subnet_pool_id, self.ctx)"},{"line_number":275,"context_line":""},{"line_number":276,"context_line":"    def test_ipam_driver_is_loaded_from_ipam_driver_config_value(self):"},{"line_number":277,"context_line":"        ipam_driver \u003d self._load_ipam_driver(\u0027fake\u0027, None)"},{"line_number":278,"context_line":"        self.assertIsInstance("},{"line_number":279,"context_line":"            ipam_driver, (fake_driver.FakeDriver, types.ClassType),"},{"line_number":280,"context_line":"            \"loaded ipam driver should be of type FakeDriver\")"}],"source_content_type":"text/x-python","patch_set":58,"id":"5afe65bd_d4036a0c","line":277,"in_reply_to":"7a016987_3d9aca62","updated":"2015-06-01 17:21:45.000000000","message":"driver.Pool.get_instance is not expected to be called if \u0027ipam_driver\u0027 is not set.\nThis is how it used in dependent patches [1].\ntest_ipam_driver_raises_import_error_for_none testcase was added to validate that ImportError is generated for None.\n\n[1] https://review.openstack.org/#/c/183099/9/neutron/db/db_base_plugin_common.py: line 138","commit_id":"c76be1939f7c5c4c13c2170498d0100ba3a5ad73"}],"setup.cfg":[{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"7aa576351f5f4cfb3f010023c67b4ee196d1aa16","unresolved":false,"context_lines":[{"line_number":186,"context_line":"    memory \u003d neutron.openstack.common.cache._backends.memory:MemoryBackend"},{"line_number":187,"context_line":"neutron.ipam_drivers \u003d"},{"line_number":188,"context_line":"    fake_ipam \u003d neutron.tests.unit.ipam.fake_ipam_driver:FakeIPAMDriver"},{"line_number":189,"context_line":"    neutrondb_ipam \u003d neutron.ipam.drivers.neutrondb_ipam:NeutronDbIpamDriver"},{"line_number":190,"context_line":"# These are for backwards compat with Icehouse notification_driver configuration values"},{"line_number":191,"context_line":"oslo.messaging.notify.drivers \u003d"},{"line_number":192,"context_line":"    neutron.openstack.common.notifier.log_notifier \u003d oslo_messaging.notify._impl_log:LogDriver"}],"source_content_type":"text/x-ttcn-cfg","patch_set":19,"id":"9a80dd14_3f3ebfda","line":189,"updated":"2015-03-09 08:55:31.000000000","message":"since the ipam driver is implemented in another patch, so we can defer this until that patch.","commit_id":"103de0740d26d1d2cb4dc44ba040c8b24839ef33"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"22c7622d2aeaa93fa620f6b7545ad75cb8c2ebd7","unresolved":false,"context_lines":[{"line_number":186,"context_line":"    memory \u003d neutron.openstack.common.cache._backends.memory:MemoryBackend"},{"line_number":187,"context_line":"neutron.ipam_drivers \u003d"},{"line_number":188,"context_line":"    fake_ipam \u003d neutron.tests.unit.ipam.fake_ipam_driver:FakeIPAMDriver"},{"line_number":189,"context_line":"    neutrondb_ipam \u003d neutron.ipam.drivers.neutrondb_ipam:NeutronDbIpamDriver"},{"line_number":190,"context_line":"# These are for backwards compat with Icehouse notification_driver configuration values"},{"line_number":191,"context_line":"oslo.messaging.notify.drivers \u003d"},{"line_number":192,"context_line":"    neutron.openstack.common.notifier.log_notifier \u003d oslo_messaging.notify._impl_log:LogDriver"}],"source_content_type":"text/x-ttcn-cfg","patch_set":19,"id":"9a80dd14_c5e1562b","line":189,"in_reply_to":"9a80dd14_3f3ebfda","updated":"2015-03-09 09:37:43.000000000","message":"+1","commit_id":"103de0740d26d1d2cb4dc44ba040c8b24839ef33"},{"author":{"_account_id":13768,"name":"Pavel Bondar","email":"pbondar@infoblox.com","username":"pavel_bondar"},"change_message_id":"3eb2097194ed9986bd0bbdb7c4cfe0e09b2517a2","unresolved":false,"context_lines":[{"line_number":186,"context_line":"    memory \u003d neutron.openstack.common.cache._backends.memory:MemoryBackend"},{"line_number":187,"context_line":"neutron.ipam_drivers \u003d"},{"line_number":188,"context_line":"    fake_ipam \u003d neutron.tests.unit.ipam.fake_ipam_driver:FakeIPAMDriver"},{"line_number":189,"context_line":"    neutrondb_ipam \u003d neutron.ipam.drivers.neutrondb_ipam:NeutronDbIpamDriver"},{"line_number":190,"context_line":"# These are for backwards compat with Icehouse notification_driver configuration values"},{"line_number":191,"context_line":"oslo.messaging.notify.drivers \u003d"},{"line_number":192,"context_line":"    neutron.openstack.common.notifier.log_notifier \u003d oslo_messaging.notify._impl_log:LogDriver"}],"source_content_type":"text/x-ttcn-cfg","patch_set":19,"id":"9a80dd14_4501e668","line":189,"in_reply_to":"9a80dd14_c5e1562b","updated":"2015-03-09 09:51:37.000000000","message":"neutrondb_ipam is also a defaul value, so need to clean it up from two more places config.py and neutron.conf.\nI was thinking about building dependency chain in one line:\n\u0027IPAM Interface\u0027-\u003e \u0027Reference IPAM driver\u0027 -\u003e \u0027IPAM Driver loader\u0027 -\u003e \u0027db_base refactor\u0027 to be able to test refactored db_base with reference ipam driver.\nIn this case \u0027neutrondb_ipam\u0027 will refer to patch in chain.\nBut if we plan to merge \u0027IPAM Interface\u0027/\u0027IPAM Driver loader\u0027 soon, i.e. during next couple of days, then I don\u0027t need to build this chain and will clean up \u0027neutrondb_ipam\u0027 from IPAM driver loader code for now.","commit_id":"103de0740d26d1d2cb4dc44ba040c8b24839ef33"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"24d4d6a04407dd523bb99032762daaa564e69695","unresolved":false,"context_lines":[{"line_number":199,"context_line":"neutron.openstack.common.cache.backends \u003d"},{"line_number":200,"context_line":"    memory \u003d neutron.openstack.common.cache._backends.memory:MemoryBackend"},{"line_number":201,"context_line":"neutron.ipam_drivers \u003d"},{"line_number":202,"context_line":"    fake_ipam \u003d neutron.tests.unit.ipam.fake_ipam_driver:FakeIPAMDriver"},{"line_number":203,"context_line":"    neutrondb_ipam \u003d neutron.ipam.drivers.neutrondb_ipam.driver:NeutronDbPool"},{"line_number":204,"context_line":"# These are for backwards compat with Icehouse notification_driver configuration values"},{"line_number":205,"context_line":"oslo.messaging.notify.drivers \u003d"}],"source_content_type":"text/x-ttcn-cfg","patch_set":56,"id":"7a016987_1ce4dbdd","line":202,"updated":"2015-05-29 19:23:45.000000000","message":"entry points are namespaced... why do we need to add the _ipam suffix to every name?","commit_id":"13585af706d6a6685b322175f93aeac017708534"},{"author":{"_account_id":13721,"name":"Hosung Hwang","email":"hhwang@infoblox.com","username":"hhwang"},"change_message_id":"9d71bd56b6baf6f2c6d602d306bd8abcbfab9f1c","unresolved":false,"context_lines":[{"line_number":199,"context_line":"neutron.openstack.common.cache.backends \u003d"},{"line_number":200,"context_line":"    memory \u003d neutron.openstack.common.cache._backends.memory:MemoryBackend"},{"line_number":201,"context_line":"neutron.ipam_drivers \u003d"},{"line_number":202,"context_line":"    fake_ipam \u003d neutron.tests.unit.ipam.fake_ipam_driver:FakeIPAMDriver"},{"line_number":203,"context_line":"    neutrondb_ipam \u003d neutron.ipam.drivers.neutrondb_ipam.driver:NeutronDbPool"},{"line_number":204,"context_line":"# These are for backwards compat with Icehouse notification_driver configuration values"},{"line_number":205,"context_line":"oslo.messaging.notify.drivers \u003d"}],"source_content_type":"text/x-ttcn-cfg","patch_set":56,"id":"7a016987_929c2f6b","line":202,"in_reply_to":"7a016987_1ce4dbdd","updated":"2015-05-29 22:17:17.000000000","message":"Done","commit_id":"13585af706d6a6685b322175f93aeac017708534"},{"author":{"_account_id":2592,"name":"Mark McClain","email":"mark@mcclain.xyz","username":"markmcclain"},"change_message_id":"24d4d6a04407dd523bb99032762daaa564e69695","unresolved":false,"context_lines":[{"line_number":200,"context_line":"    memory \u003d neutron.openstack.common.cache._backends.memory:MemoryBackend"},{"line_number":201,"context_line":"neutron.ipam_drivers \u003d"},{"line_number":202,"context_line":"    fake_ipam \u003d neutron.tests.unit.ipam.fake_ipam_driver:FakeIPAMDriver"},{"line_number":203,"context_line":"    neutrondb_ipam \u003d neutron.ipam.drivers.neutrondb_ipam.driver:NeutronDbPool"},{"line_number":204,"context_line":"# These are for backwards compat with Icehouse notification_driver configuration values"},{"line_number":205,"context_line":"oslo.messaging.notify.drivers \u003d"},{"line_number":206,"context_line":"    neutron.openstack.common.notifier.log_notifier \u003d oslo_messaging.notify._impl_log:LogDriver"}],"source_content_type":"text/x-ttcn-cfg","patch_set":56,"id":"7a016987_bcf6e78c","line":203,"updated":"2015-05-29 19:23:45.000000000","message":"This name is confusing for operators who do not know the underlying internals of the Neutron code.  Why just change to this \u0027internal\u0027?","commit_id":"13585af706d6a6685b322175f93aeac017708534"},{"author":{"_account_id":13721,"name":"Hosung Hwang","email":"hhwang@infoblox.com","username":"hhwang"},"change_message_id":"9d71bd56b6baf6f2c6d602d306bd8abcbfab9f1c","unresolved":false,"context_lines":[{"line_number":200,"context_line":"    memory \u003d neutron.openstack.common.cache._backends.memory:MemoryBackend"},{"line_number":201,"context_line":"neutron.ipam_drivers \u003d"},{"line_number":202,"context_line":"    fake_ipam \u003d neutron.tests.unit.ipam.fake_ipam_driver:FakeIPAMDriver"},{"line_number":203,"context_line":"    neutrondb_ipam \u003d neutron.ipam.drivers.neutrondb_ipam.driver:NeutronDbPool"},{"line_number":204,"context_line":"# These are for backwards compat with Icehouse notification_driver configuration values"},{"line_number":205,"context_line":"oslo.messaging.notify.drivers \u003d"},{"line_number":206,"context_line":"    neutron.openstack.common.notifier.log_notifier \u003d oslo_messaging.notify._impl_log:LogDriver"}],"source_content_type":"text/x-ttcn-cfg","patch_set":56,"id":"7a016987_7299b378","line":203,"in_reply_to":"7a016987_bcf6e78c","updated":"2015-05-29 22:17:17.000000000","message":"Done","commit_id":"13585af706d6a6685b322175f93aeac017708534"}]}
