)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":12444,"name":"John Schwarz","email":"jschwarz@redhat.com","username":"jschwarz"},"change_message_id":"7a87787b24045352d13a8d7850940ec1e5315dcc","unresolved":false,"context_lines":[{"line_number":12,"context_line":"  processes were outputting to the same log file. No good!"},{"line_number":13,"context_line":"  Added ms to the log name format. I also changed the log time"},{"line_number":14,"context_line":"  from UTC to local timezone."},{"line_number":15,"context_line":"* Renamed and moved \u0027FullstackFixture\u0027."},{"line_number":16,"context_line":"* Added a multinode environment fixture. It contains two pairs of"},{"line_number":17,"context_line":"  (OVS agent, L3 agent) using the same \u0027host\u0027, looking at the same"},{"line_number":18,"context_line":"  br-int."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"5afe65bd_26d1e6fa","line":15,"updated":"2015-06-04 14:57:14.000000000","message":"Please add indication as to where \u0027FullstackFixture\u0027 can be found now.","commit_id":"c596e29027485e49f257a17d72b7ae47e9f0950a"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"dcb2d276d9672d34d76d58fa9cf4890d0f219d4c","unresolved":false,"context_lines":[{"line_number":12,"context_line":"  processes were outputting to the same log file. No good!"},{"line_number":13,"context_line":"  Added ms to the log name format. I also changed the log time"},{"line_number":14,"context_line":"  from UTC to local timezone."},{"line_number":15,"context_line":"* Renamed and moved \u0027FullstackFixture\u0027."},{"line_number":16,"context_line":"* Added a multinode environment fixture. It contains two pairs of"},{"line_number":17,"context_line":"  (OVS agent, L3 agent) using the same \u0027host\u0027, looking at the same"},{"line_number":18,"context_line":"  br-int."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"3afb71cf_98531017","line":15,"in_reply_to":"5afe65bd_26d1e6fa","updated":"2015-06-11 18:49:02.000000000","message":"Done","commit_id":"c596e29027485e49f257a17d72b7ae47e9f0950a"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"2e25d8a3831a1e69b190e53b8b1ab9333c84eed1","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Assaf Muller \u003camuller@redhat.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2015-06-18 11:58:12 -0400"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Enable fullstack multinode tests, add L3 HA test to prove"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"* Created a \u0027fixtures\u0027 subdir and moved all fixture files"},{"line_number":10,"context_line":"  to it."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":8,"id":"fa32b979_d61e520b","line":7,"updated":"2015-06-25 07:43:11.000000000","message":"I\u0027m confused by \"to prove\", I\u0027d just say something like \"add L3 HA test exemplar\"","commit_id":"0bc3756bfe531d32407dd5c2724d624ffdb2bb9d"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"50fc24ebae702f9d086d66774f823fd7894d4aea","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Assaf Muller \u003camuller@redhat.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2015-06-18 11:58:12 -0400"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Enable fullstack multinode tests, add L3 HA test to prove"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"* Created a \u0027fixtures\u0027 subdir and moved all fixture files"},{"line_number":10,"context_line":"  to it."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":8,"id":"fa32b979_8c29163a","line":7,"in_reply_to":"fa32b979_d61e520b","updated":"2015-06-26 21:36:59.000000000","message":"Done","commit_id":"0bc3756bfe531d32407dd5c2724d624ffdb2bb9d"},{"author":{"_account_id":12444,"name":"John Schwarz","email":"jschwarz@redhat.com","username":"jschwarz"},"change_message_id":"d63218572bdc5cdb1943785cdbb3a082898426d4","unresolved":false,"context_lines":[{"line_number":16,"context_line":"  processes were outputting to the same log file. No good!"},{"line_number":17,"context_line":"  Added ms to the log name format. I also changed the log time"},{"line_number":18,"context_line":"  from UTC to local timezone."},{"line_number":19,"context_line":"* Renamed and moved \u0027FullstackFixture\u0027 to neutron/tests/fullstack/"},{"line_number":20,"context_line":"  fixtures/environment.Environment"},{"line_number":21,"context_line":"* Added a \u0027Host\u0027 abstraction that groups agents that report with"},{"line_number":22,"context_line":"  the same \u0027host\u0027 value. Hosts may be interconnected by the"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":10,"id":"ba3cc151_02e0e694","line":19,"updated":"2015-07-02 15:09:11.000000000","message":"My main concern here is that, if I have a file placed in \u0027neutron/tests/fullstack/\u0027, running \u0027import fixtures\u0027 gives undetermined behaviour depending on the PYTHONPATH setting of the running user. This is a huge drawback of a seemingly good addition, but a drawback nonetheless.\n\nHow about renaming \u0027fixtures\u0027 to \u0027resources\u0027 instead?","commit_id":"4a7d5505a79805b77dd825422ddb6812810848b6"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"057d3f1f6d35befe8745b8ced3a7185c714089cb","unresolved":false,"context_lines":[{"line_number":16,"context_line":"  processes were outputting to the same log file. No good!"},{"line_number":17,"context_line":"  Added ms to the log name format. I also changed the log time"},{"line_number":18,"context_line":"  from UTC to local timezone."},{"line_number":19,"context_line":"* Renamed and moved \u0027FullstackFixture\u0027 to neutron/tests/fullstack/"},{"line_number":20,"context_line":"  fixtures/environment.Environment"},{"line_number":21,"context_line":"* Added a \u0027Host\u0027 abstraction that groups agents that report with"},{"line_number":22,"context_line":"  the same \u0027host\u0027 value. Hosts may be interconnected by the"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":10,"id":"ba3cc151_d267c5b5","line":19,"in_reply_to":"ba3cc151_02e0e694","updated":"2015-07-10 19:17:24.000000000","message":"I actually had issues when switching between branches locally... Yeah I\u0027ll rename it to resources.","commit_id":"4a7d5505a79805b77dd825422ddb6812810848b6"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"971f1ba49ea303f2820b31c788426e45efda962b","unresolved":false,"context_lines":[{"line_number":15,"context_line":"  was fast enough to do that in the same second so that different"},{"line_number":16,"context_line":"  processes were outputting to the same log file. No good!"},{"line_number":17,"context_line":"  Added ms to the log name format. I also changed the log time"},{"line_number":18,"context_line":"  from UTC to local timezone."},{"line_number":19,"context_line":"* Renamed and moved \u0027FullstackFixture\u0027 to neutron/tests/fullstack/"},{"line_number":20,"context_line":"  fixtures/environment.Environment"},{"line_number":21,"context_line":"* Added a \u0027Host\u0027 abstraction that groups agents that report with"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":12,"id":"ba3cc151_46155499","line":18,"updated":"2015-07-10 11:41:44.000000000","message":"Have you considered using uuidutils to generate a hash for log file? Or does the time carry any value?","commit_id":"94f0ce3c06b81c5e6f402903a87667d9c09cf27d"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"3afe393623d0fbdaf25c44c3742c3926739bd167","unresolved":false,"context_lines":[{"line_number":15,"context_line":"  was fast enough to do that in the same second so that different"},{"line_number":16,"context_line":"  processes were outputting to the same log file. No good!"},{"line_number":17,"context_line":"  Added ms to the log name format. I also changed the log time"},{"line_number":18,"context_line":"  from UTC to local timezone."},{"line_number":19,"context_line":"* Renamed and moved \u0027FullstackFixture\u0027 to neutron/tests/fullstack/"},{"line_number":20,"context_line":"  fixtures/environment.Environment"},{"line_number":21,"context_line":"* Added a \u0027Host\u0027 abstraction that groups agents that report with"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":12,"id":"ba3cc151_91862215","line":18,"in_reply_to":"ba3cc151_46155499","updated":"2015-07-10 16:40:58.000000000","message":"Each test gate its own directory for logs, and because the gate uses a fresh VM for every run each directory will only contain one set of logs from that single run. During development you tend to run the same test more than once, so using a hash would make it impossible to correlate logs from different agents that were executed during the same run. We could split it up further with subdirectories, i.e.: name_of_test/run_1/*, name_of_test/run_2/*, or use timestamps in the log name so that the logs are sorted and it\u0027s easy to group the log names by test run by looking at the time difference.","commit_id":"94f0ce3c06b81c5e6f402903a87667d9c09cf27d"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"971f1ba49ea303f2820b31c788426e45efda962b","unresolved":false,"context_lines":[{"line_number":30,"context_line":"  so that I could interconnect them."},{"line_number":31,"context_line":"* Added a super simple L3 HA test to show that this entire thing"},{"line_number":32,"context_line":"  works."},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"Change-Id: Ie64de9f35bd6ab7cbad494061613ecf5e0ccd806"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":12,"id":"ba3cc151_0638ac3c","line":33,"updated":"2015-07-10 11:41:44.000000000","message":"I almost feel like very bullet should have been a separate patch :)","commit_id":"94f0ce3c06b81c5e6f402903a87667d9c09cf27d"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"3afe393623d0fbdaf25c44c3742c3926739bd167","unresolved":false,"context_lines":[{"line_number":30,"context_line":"  so that I could interconnect them."},{"line_number":31,"context_line":"* Added a super simple L3 HA test to show that this entire thing"},{"line_number":32,"context_line":"  works."},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"Change-Id: Ie64de9f35bd6ab7cbad494061613ecf5e0ccd806"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":12,"id":"ba3cc151_b661dcaa","line":33,"in_reply_to":"ba3cc151_0638ac3c","updated":"2015-07-10 16:40:58.000000000","message":"Splitting up content in to patches is an art form :) This series is long enough so I\u0027m generally hesitant to break it up further. All of these changes are related to the same idea: Enabling multinode simulation. I don\u0027t think that splitting off, say: \"Made OVS agent and L3 agent fixtures expose their bridges so that I could interconnect them.\" is a great idea, because while it would be decoupled and trivial to review on its own without consideration for any other patch in flight, it is so trivial that leaving that change here does not make reviewing this patch easier to review.\n\nA single change that introduces a new API method and also makes agent side modifications is unnecessarily large because both changes are essentially unrelated and decoupled and could be reviewed separately without consideration for the other, while reviewing both in the same patch is difficult just because of the size. I think that is a different case.\n\nSo, to summarize, here\u0027s my take on it: Say you want to make changes 1 and 2 (In our case either a DB change and agent change, or for example the first two bullets in this commit message), and you\u0027re considering having them in separate patches or in a single patch. There\u0027s several factors to consider, keeping in mind that even tiny patches carry a cost of their own:\n\n1) Are the two changes dependent? Would they form a linear patch series or could both depend on the same patch instead?\n\n2) Are they both trivial in their own right, so that placing them together in the same patch leaves that patch trivial?\n\n3) If I review one patch do I instantly understand the other? Think renaming variables named q_X to n_X, splitting that up by module instead of putting all of the changes in the same patch is a bad idea.\n\n4) If both changes are complex, and I were to split them to two separate patches, would I be forced to understand both changes in order to be able to review one of them? Or are the changes sufficiently decoupled so that I could at worst only skim one patch [Or it\u0027s spec / devref] in order to be able to review the other properly?\n\nI might just write a blog post about this then refer to it until the end of days, and just pretend it was authoritative because its content in a blog :) My perspective is based off my experience working on oVirt (A large open source project that also uses Git and Gerrit), where tiny patches were preferred, and here in Neutron where we generally go for very large patches. Based off the rest of this comment you can understand that my personal views fall right in the middle.","commit_id":"94f0ce3c06b81c5e6f402903a87667d9c09cf27d"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"0f5d508700e40f124e6504b7428bd72d4598407c","unresolved":false,"context_lines":[{"line_number":23,"context_line":"  environment via shared bridges."},{"line_number":24,"context_line":"* The \u0027Environment\u0027 class will accept global"},{"line_number":25,"context_line":"  attributes (This will be later filled with stuff like tunneling,"},{"line_number":26,"context_line":"  l2pop or other environment-level flags), and in this patch accepts"},{"line_number":27,"context_line":"  a  list of host attributes (Configuration that may differ between"},{"line_number":28,"context_line":"  hosts like the l3 agent mode [legacy, dvr, dvr_snat])."},{"line_number":29,"context_line":"* Made OVS agent and L3 agent fixtures expose their bridges"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":19,"id":"1a4dcd0f_6f9a5065","line":26,"updated":"2015-08-05 07:55:20.000000000","message":"I think this could still use new terms, but it\u0027s kinda irrelevant.","commit_id":"8932735fde385ba2d1d998590acbf952d0b73a08"}],"doc/source/devref/fullstack_testing.rst":[{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"698b695f24c0f5ffaa98d3845ad56b1281637650","unresolved":false,"context_lines":[{"line_number":30,"context_line":""},{"line_number":31,"context_line":"Full stack tests run in the Neutron tree with Neutron resources alone. You"},{"line_number":32,"context_line":"may use the Neutron API (The Neutron server is set to NOAUTH so that Keystone"},{"line_number":33,"context_line":"is out of the picture). instances may be simulated with a helper class that"},{"line_number":34,"context_line":"contains a container-like object in its own namespace and IP address. It has"},{"line_number":35,"context_line":"helper methods to send different kinds of traffic. The \"instance\" may be"},{"line_number":36,"context_line":"connected to br-int or br-ex, to simulate internal or external traffic."}],"source_content_type":"text/x-rst","patch_set":17,"id":"3a50d1a3_4f60a135","line":33,"updated":"2015-08-02 12:33:01.000000000","message":"instances -\u003e Instances","commit_id":"5bb3c8eb22c92732cec3dac75a706ccb84d615ee"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"709d71a527dc5b8c70bfe7da3f6ad3fb8704ada8","unresolved":false,"context_lines":[{"line_number":30,"context_line":""},{"line_number":31,"context_line":"Full stack tests run in the Neutron tree with Neutron resources alone. You"},{"line_number":32,"context_line":"may use the Neutron API (The Neutron server is set to NOAUTH so that Keystone"},{"line_number":33,"context_line":"is out of the picture). instances may be simulated with a helper class that"},{"line_number":34,"context_line":"contains a container-like object in its own namespace and IP address. It has"},{"line_number":35,"context_line":"helper methods to send different kinds of traffic. The \"instance\" may be"},{"line_number":36,"context_line":"connected to br-int or br-ex, to simulate internal or external traffic."}],"source_content_type":"text/x-rst","patch_set":17,"id":"1a4dcd0f_7a99e26d","line":33,"in_reply_to":"3a50d1a3_4f60a135","updated":"2015-08-04 14:34:50.000000000","message":"I\u0027ll roll back the change in line 13 and fold that change in to a new patch along with this change (Capitalize the i).","commit_id":"5bb3c8eb22c92732cec3dac75a706ccb84d615ee"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"698b695f24c0f5ffaa98d3845ad56b1281637650","unresolved":false,"context_lines":[{"line_number":83,"context_line":"  need to support tunneling somehow."},{"line_number":84,"context_line":"* How will advanced services use the full stack testing infrastructure? Full"},{"line_number":85,"context_line":"  stack tests infrastructure classes are expected to change quite a bit over"},{"line_number":86,"context_line":"  the next coming months. This means that other repositories may import these"},{"line_number":87,"context_line":"  classes and break from time to time, or copy them in their repositories"},{"line_number":88,"context_line":"  instead. Since changes to full stack testing infrastructure is a given,"},{"line_number":89,"context_line":"  XaaS repositories should be copying it and not importing it directly."}],"source_content_type":"text/x-rst","patch_set":17,"id":"3a50d1a3_cf54b155","line":86,"updated":"2015-08-02 12:33:01.000000000","message":"I would better not have specific deadlines in devref. You know we are bad at keeping up with schedules and expectations.","commit_id":"5bb3c8eb22c92732cec3dac75a706ccb84d615ee"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"709d71a527dc5b8c70bfe7da3f6ad3fb8704ada8","unresolved":false,"context_lines":[{"line_number":83,"context_line":"  need to support tunneling somehow."},{"line_number":84,"context_line":"* How will advanced services use the full stack testing infrastructure? Full"},{"line_number":85,"context_line":"  stack tests infrastructure classes are expected to change quite a bit over"},{"line_number":86,"context_line":"  the next coming months. This means that other repositories may import these"},{"line_number":87,"context_line":"  classes and break from time to time, or copy them in their repositories"},{"line_number":88,"context_line":"  instead. Since changes to full stack testing infrastructure is a given,"},{"line_number":89,"context_line":"  XaaS repositories should be copying it and not importing it directly."}],"source_content_type":"text/x-rst","patch_set":17,"id":"1a4dcd0f_1ad9be21","line":86,"in_reply_to":"3a50d1a3_cf54b155","updated":"2015-08-04 14:34:50.000000000","message":"I\u0027ll remove the time reference in the separate devref patch I\u0027ll compose.","commit_id":"5bb3c8eb22c92732cec3dac75a706ccb84d615ee"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"698b695f24c0f5ffaa98d3845ad56b1281637650","unresolved":false,"context_lines":[{"line_number":86,"context_line":"  the next coming months. This means that other repositories may import these"},{"line_number":87,"context_line":"  classes and break from time to time, or copy them in their repositories"},{"line_number":88,"context_line":"  instead. Since changes to full stack testing infrastructure is a given,"},{"line_number":89,"context_line":"  XaaS repositories should be copying it and not importing it directly."},{"line_number":90,"context_line":"* Currently we configure the Neutron server with the ML2 plugin and the OVS"},{"line_number":91,"context_line":"  mechanism driver. We may modularize the topology configuration further to"},{"line_number":92,"context_line":"  allow to rerun full stack tests against different Neutron plugins or ML2"}],"source_content_type":"text/x-rst","patch_set":17,"id":"3a50d1a3_0f56195e","line":89,"updated":"2015-08-02 12:33:01.000000000","message":"It\u0027s usually refered as *aas","commit_id":"5bb3c8eb22c92732cec3dac75a706ccb84d615ee"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"709d71a527dc5b8c70bfe7da3f6ad3fb8704ada8","unresolved":false,"context_lines":[{"line_number":86,"context_line":"  the next coming months. This means that other repositories may import these"},{"line_number":87,"context_line":"  classes and break from time to time, or copy them in their repositories"},{"line_number":88,"context_line":"  instead. Since changes to full stack testing infrastructure is a given,"},{"line_number":89,"context_line":"  XaaS repositories should be copying it and not importing it directly."},{"line_number":90,"context_line":"* Currently we configure the Neutron server with the ML2 plugin and the OVS"},{"line_number":91,"context_line":"  mechanism driver. We may modularize the topology configuration further to"},{"line_number":92,"context_line":"  allow to rerun full stack tests against different Neutron plugins or ML2"}],"source_content_type":"text/x-rst","patch_set":17,"id":"1a4dcd0f_1ac21e34","line":89,"in_reply_to":"3a50d1a3_0f56195e","updated":"2015-08-04 14:34:50.000000000","message":"I know but *aaS gives an error when running tox -e docs, so the best I could come up with is XaaS.","commit_id":"5bb3c8eb22c92732cec3dac75a706ccb84d615ee"}],"neutron/tests/base.py":[{"author":{"_account_id":12444,"name":"John Schwarz","email":"jschwarz@redhat.com","username":"jschwarz"},"change_message_id":"d63218572bdc5cdb1943785cdbb3a082898426d4","unresolved":false,"context_lines":[{"line_number":89,"context_line":"    return prefix + suffix"},{"line_number":90,"context_line":""},{"line_number":91,"context_line":""},{"line_number":92,"context_line":"def get_rand_device_name(prefix\u003d\u0027test\u0027):"},{"line_number":93,"context_line":"    return get_rand_name("},{"line_number":94,"context_line":"        max_length\u003dconstants.DEVICE_NAME_MAX_LEN, prefix\u003dprefix)"},{"line_number":95,"context_line":""}],"source_content_type":"text/x-python","patch_set":10,"id":"ba3cc151_d1bdee02","line":92,"updated":"2015-07-02 15:09:11.000000000","message":"I fail to understand what\u0027s the difference between this function and neutron.tests.common.helpers.get_rand_port_name. Probably that needs to be replaced by this implementation.","commit_id":"4a7d5505a79805b77dd825422ddb6812810848b6"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"057d3f1f6d35befe8745b8ced3a7185c714089cb","unresolved":false,"context_lines":[{"line_number":89,"context_line":"    return prefix + suffix"},{"line_number":90,"context_line":""},{"line_number":91,"context_line":""},{"line_number":92,"context_line":"def get_rand_device_name(prefix\u003d\u0027test\u0027):"},{"line_number":93,"context_line":"    return get_rand_name("},{"line_number":94,"context_line":"        max_length\u003dconstants.DEVICE_NAME_MAX_LEN, prefix\u003dprefix)"},{"line_number":95,"context_line":""}],"source_content_type":"text/x-python","patch_set":10,"id":"ba3cc151_32e5d1db","line":92,"in_reply_to":"ba3cc151_d1bdee02","updated":"2015-07-10 19:17:24.000000000","message":"Done","commit_id":"4a7d5505a79805b77dd825422ddb6812810848b6"}],"neutron/tests/common/net_helpers.py":[{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"2e25d8a3831a1e69b190e53b8b1ab9333c84eed1","unresolved":false,"context_lines":[{"line_number":358,"context_line":"    :param source: Instance of OVSBridge"},{"line_number":359,"context_line":"    :param destination: Instance of OVSBridge"},{"line_number":360,"context_line":"    \"\"\""},{"line_number":361,"context_line":"    common \u003d tests_base.get_rand_name(max_length\u003d4, prefix\u003d\u0027\u0027)"},{"line_number":362,"context_line":"    prefix \u003d \u0027%s-%s-\u0027 % (PATCH_PREFIX, common)"},{"line_number":363,"context_line":""},{"line_number":364,"context_line":"    source_name \u003d tests_base.get_rand_name("}],"source_content_type":"text/x-python","patch_set":8,"id":"fa32b979_f6e4b6a8","line":361,"updated":"2015-06-25 07:43:11.000000000","message":"Wouldn\u0027t it make more sense to use prefix\u003dPATCH_PREFIX?","commit_id":"0bc3756bfe531d32407dd5c2724d624ffdb2bb9d"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"5a0ca56381334db768263f976ca8d989364f59d9","unresolved":false,"context_lines":[{"line_number":358,"context_line":"    :param source: Instance of OVSBridge"},{"line_number":359,"context_line":"    :param destination: Instance of OVSBridge"},{"line_number":360,"context_line":"    \"\"\""},{"line_number":361,"context_line":"    common \u003d tests_base.get_rand_name(max_length\u003d4, prefix\u003d\u0027\u0027)"},{"line_number":362,"context_line":"    prefix \u003d \u0027%s-%s-\u0027 % (PATCH_PREFIX, common)"},{"line_number":363,"context_line":""},{"line_number":364,"context_line":"    source_name \u003d tests_base.get_rand_name("}],"source_content_type":"text/x-python","patch_set":8,"id":"fa32b979_8be48aac","line":361,"in_reply_to":"fa32b979_8ce036fc","updated":"2015-06-28 07:23:20.000000000","message":"Well you could always just send max_length\u003d10\n\nIt just seems weird to do the following line since that\u0027s what \u0027get_rand_name\u0027 does anyway...\n\ninstead it would be something along the lines of:\n\nPATCH_PREFIX\u003d\u0027patch-\u0027\n\n...\n\nprefix \u003d \u0027\u0027.join(tests_base.get_rand_name(max_length\u003d10, prefix\u003dPATCH_PREFIX), \u0027-\u0027)","commit_id":"0bc3756bfe531d32407dd5c2724d624ffdb2bb9d"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"50fc24ebae702f9d086d66774f823fd7894d4aea","unresolved":false,"context_lines":[{"line_number":358,"context_line":"    :param source: Instance of OVSBridge"},{"line_number":359,"context_line":"    :param destination: Instance of OVSBridge"},{"line_number":360,"context_line":"    \"\"\""},{"line_number":361,"context_line":"    common \u003d tests_base.get_rand_name(max_length\u003d4, prefix\u003d\u0027\u0027)"},{"line_number":362,"context_line":"    prefix \u003d \u0027%s-%s-\u0027 % (PATCH_PREFIX, common)"},{"line_number":363,"context_line":""},{"line_number":364,"context_line":"    source_name \u003d tests_base.get_rand_name("}],"source_content_type":"text/x-python","patch_set":8,"id":"fa32b979_8ce036fc","line":361,"in_reply_to":"fa32b979_f6e4b6a8","updated":"2015-06-26 21:36:59.000000000","message":"But then the length of the name will be max_length (4) - patch_prefix (5) \u003d -1 and get_rand_name won\u0027t be happy.","commit_id":"0bc3756bfe531d32407dd5c2724d624ffdb2bb9d"},{"author":{"_account_id":12444,"name":"John Schwarz","email":"jschwarz@redhat.com","username":"jschwarz"},"change_message_id":"d63218572bdc5cdb1943785cdbb3a082898426d4","unresolved":false,"context_lines":[{"line_number":349,"context_line":"        self.port.link.set_up()"},{"line_number":350,"context_line":""},{"line_number":351,"context_line":""},{"line_number":352,"context_line":"def create_patch_ports(source, destination):"},{"line_number":353,"context_line":"    \"\"\"Hook up two OVS bridges."},{"line_number":354,"context_line":""},{"line_number":355,"context_line":"    The result is two patch ports, each end connected to a bridge."}],"source_content_type":"text/x-python","patch_set":10,"id":"ba3cc151_918be61e","line":352,"updated":"2015-07-02 15:09:11.000000000","message":"(No action needed) usually functions are declared before the classes, but oh well.","commit_id":"4a7d5505a79805b77dd825422ddb6812810848b6"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"057d3f1f6d35befe8745b8ced3a7185c714089cb","unresolved":false,"context_lines":[{"line_number":349,"context_line":"        self.port.link.set_up()"},{"line_number":350,"context_line":""},{"line_number":351,"context_line":""},{"line_number":352,"context_line":"def create_patch_ports(source, destination):"},{"line_number":353,"context_line":"    \"\"\"Hook up two OVS bridges."},{"line_number":354,"context_line":""},{"line_number":355,"context_line":"    The result is two patch ports, each end connected to a bridge."}],"source_content_type":"text/x-python","patch_set":10,"id":"ba3cc151_d2b90517","line":352,"in_reply_to":"ba3cc151_918be61e","updated":"2015-07-10 19:17:24.000000000","message":"I must admit I wasn\u0027t aware of this consensus, I see why it would make sense.","commit_id":"4a7d5505a79805b77dd825422ddb6812810848b6"},{"author":{"_account_id":12444,"name":"John Schwarz","email":"jschwarz@redhat.com","username":"jschwarz"},"change_message_id":"d63218572bdc5cdb1943785cdbb3a082898426d4","unresolved":false,"context_lines":[{"line_number":354,"context_line":""},{"line_number":355,"context_line":"    The result is two patch ports, each end connected to a bridge."},{"line_number":356,"context_line":"    The two patch port names will start with \u0027patch-\u0027, followed by identical"},{"line_number":357,"context_line":"    four characters. For example patch-xyzw-fedora, and patch-xyzw-ubuntu."},{"line_number":358,"context_line":""},{"line_number":359,"context_line":"    :param source: Instance of OVSBridge"},{"line_number":360,"context_line":"    :param destination: Instance of OVSBridge"}],"source_content_type":"text/x-python","patch_set":10,"id":"ba3cc151_51dc7e45","line":357,"updated":"2015-07-02 15:09:11.000000000","message":"Docstring should indicate that the \u0027fedora\u0027 and \u0027ubuntu\u0027 parts are actually also randomized (by lines 365 and 367), as it currently hints that the caller is able to determine the suffix.","commit_id":"4a7d5505a79805b77dd825422ddb6812810848b6"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"057d3f1f6d35befe8745b8ced3a7185c714089cb","unresolved":false,"context_lines":[{"line_number":354,"context_line":""},{"line_number":355,"context_line":"    The result is two patch ports, each end connected to a bridge."},{"line_number":356,"context_line":"    The two patch port names will start with \u0027patch-\u0027, followed by identical"},{"line_number":357,"context_line":"    four characters. For example patch-xyzw-fedora, and patch-xyzw-ubuntu."},{"line_number":358,"context_line":""},{"line_number":359,"context_line":"    :param source: Instance of OVSBridge"},{"line_number":360,"context_line":"    :param destination: Instance of OVSBridge"}],"source_content_type":"text/x-python","patch_set":10,"id":"ba3cc151_f249a933","line":357,"in_reply_to":"ba3cc151_51dc7e45","updated":"2015-07-10 19:17:24.000000000","message":"Done","commit_id":"4a7d5505a79805b77dd825422ddb6812810848b6"},{"author":{"_account_id":12444,"name":"John Schwarz","email":"jschwarz@redhat.com","username":"jschwarz"},"change_message_id":"d63218572bdc5cdb1943785cdbb3a082898426d4","unresolved":false,"context_lines":[{"line_number":367,"context_line":"    destination_name \u003d tests_base.get_rand_name("},{"line_number":368,"context_line":"        prefix\u003dprefix, max_length\u003dn_const.DEVICE_NAME_MAX_LEN)"},{"line_number":369,"context_line":""},{"line_number":370,"context_line":"    source.add_patch_port(source_name, destination_name)"},{"line_number":371,"context_line":"    destination.add_patch_port(destination_name, source_name)"}],"source_content_type":"text/x-python","patch_set":10,"id":"ba3cc151_71b2e2e6","line":370,"updated":"2015-07-02 15:09:11.000000000","message":"We don\u0027t care about the cleanup since the patch ports get deleted along with the bridge itself, right?\n\nI\u0027m thinking about whether we want to put this in a fixture to match the others in this file, or leave it as is for simplicity.","commit_id":"4a7d5505a79805b77dd825422ddb6812810848b6"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"057d3f1f6d35befe8745b8ced3a7185c714089cb","unresolved":false,"context_lines":[{"line_number":367,"context_line":"    destination_name \u003d tests_base.get_rand_name("},{"line_number":368,"context_line":"        prefix\u003dprefix, max_length\u003dn_const.DEVICE_NAME_MAX_LEN)"},{"line_number":369,"context_line":""},{"line_number":370,"context_line":"    source.add_patch_port(source_name, destination_name)"},{"line_number":371,"context_line":"    destination.add_patch_port(destination_name, source_name)"}],"source_content_type":"text/x-python","patch_set":10,"id":"ba3cc151_325631cf","line":370,"in_reply_to":"ba3cc151_71b2e2e6","updated":"2015-07-10 19:17:24.000000000","message":"\u003e We don\u0027t care about the cleanup since the patch ports get deleted along with the bridge itself, right?\n\nYes. And since that is the case there is no point in a fixture.","commit_id":"4a7d5505a79805b77dd825422ddb6812810848b6"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"7b202bbd3fdc6a531444a6a3ea9ae2660d74f6ed","unresolved":false,"context_lines":[{"line_number":580,"context_line":"    common \u003d tests_base.get_rand_name(max_length\u003d4, prefix\u003d\u0027\u0027)"},{"line_number":581,"context_line":"    prefix \u003d \u0027%s-%s-\u0027 % (PATCH_PREFIX, common)"},{"line_number":582,"context_line":""},{"line_number":583,"context_line":"    source_name \u003d tests_base.get_rand_name("},{"line_number":584,"context_line":"        prefix\u003dprefix, max_length\u003dn_const.DEVICE_NAME_MAX_LEN)"},{"line_number":585,"context_line":"    destination_name \u003d tests_base.get_rand_name("},{"line_number":586,"context_line":"        prefix\u003dprefix, max_length\u003dn_const.DEVICE_NAME_MAX_LEN)"}],"source_content_type":"text/x-python","patch_set":12,"id":"ba3cc151_23bcd405","line":583,"updated":"2015-07-09 23:41:12.000000000","message":"Why not using base.get_rand_device_name?","commit_id":"94f0ce3c06b81c5e6f402903a87667d9c09cf27d"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"971f1ba49ea303f2820b31c788426e45efda962b","unresolved":false,"context_lines":[{"line_number":580,"context_line":"    common \u003d tests_base.get_rand_name(max_length\u003d4, prefix\u003d\u0027\u0027)"},{"line_number":581,"context_line":"    prefix \u003d \u0027%s-%s-\u0027 % (PATCH_PREFIX, common)"},{"line_number":582,"context_line":""},{"line_number":583,"context_line":"    source_name \u003d tests_base.get_rand_name("},{"line_number":584,"context_line":"        prefix\u003dprefix, max_length\u003dn_const.DEVICE_NAME_MAX_LEN)"},{"line_number":585,"context_line":"    destination_name \u003d tests_base.get_rand_name("},{"line_number":586,"context_line":"        prefix\u003dprefix, max_length\u003dn_const.DEVICE_NAME_MAX_LEN)"}],"source_content_type":"text/x-python","patch_set":12,"id":"ba3cc151_41021e0b","line":583,"in_reply_to":"ba3cc151_23bcd405","updated":"2015-07-10 11:41:44.000000000","message":"+1","commit_id":"94f0ce3c06b81c5e6f402903a87667d9c09cf27d"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"3afe393623d0fbdaf25c44c3742c3926739bd167","unresolved":false,"context_lines":[{"line_number":580,"context_line":"    common \u003d tests_base.get_rand_name(max_length\u003d4, prefix\u003d\u0027\u0027)"},{"line_number":581,"context_line":"    prefix \u003d \u0027%s-%s-\u0027 % (PATCH_PREFIX, common)"},{"line_number":582,"context_line":""},{"line_number":583,"context_line":"    source_name \u003d tests_base.get_rand_name("},{"line_number":584,"context_line":"        prefix\u003dprefix, max_length\u003dn_const.DEVICE_NAME_MAX_LEN)"},{"line_number":585,"context_line":"    destination_name \u003d tests_base.get_rand_name("},{"line_number":586,"context_line":"        prefix\u003dprefix, max_length\u003dn_const.DEVICE_NAME_MAX_LEN)"}],"source_content_type":"text/x-python","patch_set":12,"id":"ba3cc151_f1e0ce98","line":583,"in_reply_to":"ba3cc151_41021e0b","updated":"2015-07-10 16:40:58.000000000","message":"+1\n\nYeah I just missed it.","commit_id":"94f0ce3c06b81c5e6f402903a87667d9c09cf27d"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"b5e522d656e41086cb8e46ea90c487743d999532","unresolved":false,"context_lines":[{"line_number":55,"context_line":"TRANSPORT_PROTOCOLS \u003d (n_const.PROTO_NAME_TCP, n_const.PROTO_NAME_UDP)"},{"line_number":56,"context_line":""},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"def get_rand_port_name():"},{"line_number":59,"context_line":"    return tests_base.get_rand_name(max_length\u003dn_const.DEVICE_NAME_MAX_LEN,"},{"line_number":60,"context_line":"                                    prefix\u003dPORT_PREFIX)"},{"line_number":61,"context_line":""}],"source_content_type":"text/x-python","patch_set":13,"id":"9a41bdd9_b06141ab","side":"PARENT","line":58,"updated":"2015-07-15 15:59:10.000000000","message":"Just curious, why the move? It does not belong to neutron/tests/base.py, does it?","commit_id":"9d074513eaca8a2ba88fb270b83bc19b41278d4b"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"af2b417bca4e51eb18247a37c2ddb4e52842f812","unresolved":false,"context_lines":[{"line_number":55,"context_line":"TRANSPORT_PROTOCOLS \u003d (n_const.PROTO_NAME_TCP, n_const.PROTO_NAME_UDP)"},{"line_number":56,"context_line":""},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"def get_rand_port_name():"},{"line_number":59,"context_line":"    return tests_base.get_rand_name(max_length\u003dn_const.DEVICE_NAME_MAX_LEN,"},{"line_number":60,"context_line":"                                    prefix\u003dPORT_PREFIX)"},{"line_number":61,"context_line":""}],"source_content_type":"text/x-python","patch_set":13,"id":"3a50d1a3_d0bb73e3","side":"PARENT","line":58,"in_reply_to":"9a41bdd9_b06141ab","updated":"2015-07-29 22:43:03.000000000","message":"I don\u0027t know what\u0027s the difference to be honest.","commit_id":"9d074513eaca8a2ba88fb270b83bc19b41278d4b"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"4af0b0d7a68321ea1d1f1796becf8e59eb2046e3","unresolved":false,"context_lines":[{"line_number":167,"context_line":"    The result is two patch ports, each end connected to a bridge."},{"line_number":168,"context_line":"    The two patch port names will start with \u0027patch-\u0027, followed by identical"},{"line_number":169,"context_line":"    four characters. For example patch-xyzw-fedora, and patch-xyzw-ubuntu,"},{"line_number":170,"context_line":"    where fedora and ubuntu are random strings."},{"line_number":171,"context_line":""},{"line_number":172,"context_line":"    :param source: Instance of OVSBridge"},{"line_number":173,"context_line":"    :param destination: Instance of OVSBridge"}],"source_content_type":"text/x-python","patch_set":20,"id":"1a4dcd0f_638eb6d1","line":170,"updated":"2015-08-06 05:52:09.000000000","message":"fedora and ubuntu don\u0027t seem random :-)","commit_id":"0de917e09b7caef224804cc7d43a089688df2adb"}],"neutron/tests/fullstack/environment_fixtures.py":[{"author":{"_account_id":12444,"name":"John Schwarz","email":"jschwarz@redhat.com","username":"jschwarz"},"change_message_id":"7a87787b24045352d13a8d7850940ec1e5315dcc","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":3,"id":"5afe65bd_29209747","updated":"2015-06-04 14:57:14.000000000","message":"I\u0027m not sure that this file is a good idea. It\u0027s the third \u0027%s_fixtures.py\u0027 in the fullstack library (which makes me think we don\u0027t want one for every class), but more importantly defining the EnvironmentFixture in the same test file it was needed in, adds context - \"This test suite tests XYZ and the deployment/environment is ABC\", so putting all of the environments (soon to be 10, and then 50...) in one file will only make this one big chunk of code no one will want to touch, and will hurt readability.","commit_id":"c596e29027485e49f257a17d72b7ae47e9f0950a"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"dcb2d276d9672d34d76d58fa9cf4890d0f219d4c","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":3,"id":"3afb71cf_384f7c38","in_reply_to":"5afe65bd_29209747","updated":"2015-06-11 18:49:02.000000000","message":"John and I discussed this offline. I think that both sides are very subjective and I don\u0027t see a very strong case either way (Keeping the environment fixtures with their tests or moving them to a dedicated file). I\u0027ll keep them in their own file for now unless someone can show me a very good reason not to do so.\n\nWhy I like having the environment fixtures in their own file:\n* I don\u0027t mind lots of fixture files under tests/fullstack. I like having smaller files and not fewer but huge files, as long as the files are split up according to an intuitive division (Like the type of the fixture, or what it represents).\n* Looking at tests, I don\u0027t like seeing tons of initialization code, only the tests themselves. To me it\u0027s just clutter.\n* I think we\u0027ll have different test classes share the same environment (Reminder: A fullstack environment is the test topology, i.e. how many agents of each type and their configuration).","commit_id":"c596e29027485e49f257a17d72b7ae47e9f0950a"},{"author":{"_account_id":12444,"name":"John Schwarz","email":"jschwarz@redhat.com","username":"jschwarz"},"change_message_id":"7a87787b24045352d13a8d7850940ec1e5315dcc","unresolved":false,"context_lines":[{"line_number":38,"context_line":"            f_fixtures.NeutronServerFixture("},{"line_number":39,"context_line":"                self.test_name, self.temp_dir, self.rabbitmq_environment))"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"    def setUpOVSL3Pair(self, neutron_config, ml2_config, temp_dir):"},{"line_number":42,"context_line":"        ovs_agent \u003d self.useFixture("},{"line_number":43,"context_line":"            f_fixtures.OVSAgentFixture("},{"line_number":44,"context_line":"                self.test_name, neutron_config, ml2_config))"}],"source_content_type":"text/x-python","patch_set":3,"id":"5afe65bd_49b2b34d","line":41,"updated":"2015-06-04 14:57:14.000000000","message":"I guess this is alright for now, but later down the line we\u0027re going to want to have some base environment which isn\u0027t strictly l3-ovs related...","commit_id":"c596e29027485e49f257a17d72b7ae47e9f0950a"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"dcb2d276d9672d34d76d58fa9cf4890d0f219d4c","unresolved":false,"context_lines":[{"line_number":38,"context_line":"            f_fixtures.NeutronServerFixture("},{"line_number":39,"context_line":"                self.test_name, self.temp_dir, self.rabbitmq_environment))"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"    def setUpOVSL3Pair(self, neutron_config, ml2_config, temp_dir):"},{"line_number":42,"context_line":"        ovs_agent \u003d self.useFixture("},{"line_number":43,"context_line":"            f_fixtures.OVSAgentFixture("},{"line_number":44,"context_line":"                self.test_name, neutron_config, ml2_config))"}],"source_content_type":"text/x-python","patch_set":3,"id":"3afb71cf_c485fe59","line":41,"in_reply_to":"5afe65bd_49b2b34d","updated":"2015-06-11 18:49:02.000000000","message":"Yeah it\u0027s kind of ugly. It\u0027s just here for now but luckily code is not written in adamantium.","commit_id":"c596e29027485e49f257a17d72b7ae47e9f0950a"},{"author":{"_account_id":12444,"name":"John Schwarz","email":"jschwarz@redhat.com","username":"jschwarz"},"change_message_id":"7a87787b24045352d13a8d7850940ec1e5315dcc","unresolved":false,"context_lines":[{"line_number":95,"context_line":""},{"line_number":96,"context_line":"        self.temp_dir_2 \u003d self.useFixture(fixtures.TempDir()).path"},{"line_number":97,"context_line":""},{"line_number":98,"context_line":"        neutron_2_cfg_fixture \u003d config_fixtures.NeutronConfigFixture("},{"line_number":99,"context_line":"            self.temp_dir_2, cfg.CONF.database.connection,"},{"line_number":100,"context_line":"            self.rabbitmq_environment)"},{"line_number":101,"context_line":"        self.useFixture(neutron_2_cfg_fixture)"}],"source_content_type":"text/x-python","patch_set":3,"id":"5afe65bd_8342cc66","line":98,"updated":"2015-06-04 14:57:14.000000000","message":"The statements in lines 98-105 are practically the same as the ones in neutron/tests/fullstack/fullstack_fixtures.py:115-122. Perhaps we can move these to a shared function and reduce code duplication?\n\nNo idea where that function should belong, though.","commit_id":"c596e29027485e49f257a17d72b7ae47e9f0950a"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"dcb2d276d9672d34d76d58fa9cf4890d0f219d4c","unresolved":false,"context_lines":[{"line_number":95,"context_line":""},{"line_number":96,"context_line":"        self.temp_dir_2 \u003d self.useFixture(fixtures.TempDir()).path"},{"line_number":97,"context_line":""},{"line_number":98,"context_line":"        neutron_2_cfg_fixture \u003d config_fixtures.NeutronConfigFixture("},{"line_number":99,"context_line":"            self.temp_dir_2, cfg.CONF.database.connection,"},{"line_number":100,"context_line":"            self.rabbitmq_environment)"},{"line_number":101,"context_line":"        self.useFixture(neutron_2_cfg_fixture)"}],"source_content_type":"text/x-python","patch_set":3,"id":"3afb71cf_044556b2","line":98,"in_reply_to":"5afe65bd_8342cc66","updated":"2015-06-11 18:49:02.000000000","message":"You\u0027re right about the code duplication. I couldn\u0027t really figure out how to mitigate it in a sane way though, or as you pointed out, where it would live.","commit_id":"c596e29027485e49f257a17d72b7ae47e9f0950a"},{"author":{"_account_id":12444,"name":"John Schwarz","email":"jschwarz@redhat.com","username":"jschwarz"},"change_message_id":"7a87787b24045352d13a8d7850940ec1e5315dcc","unresolved":false,"context_lines":[{"line_number":114,"context_line":"                                self.l3_agent_2.br_ex)"},{"line_number":115,"context_line":""},{"line_number":116,"context_line":"        self.wait_until_env_is_up("},{"line_number":117,"context_line":"            self.neutron_server.client, agents_count\u003d4)"},{"line_number":118,"context_line":""},{"line_number":119,"context_line":"    @staticmethod"},{"line_number":120,"context_line":"    def create_patch_ports(source, destination):"}],"source_content_type":"text/x-python","patch_set":3,"id":"5afe65bd_066b8a86","line":117,"updated":"2015-06-04 14:57:14.000000000","message":"(no action required) this \u0027agents_count\u003d%d\u0027 will start causing ugly code sooner or later... any thoughts?","commit_id":"c596e29027485e49f257a17d72b7ae47e9f0950a"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"dcb2d276d9672d34d76d58fa9cf4890d0f219d4c","unresolved":false,"context_lines":[{"line_number":114,"context_line":"                                self.l3_agent_2.br_ex)"},{"line_number":115,"context_line":""},{"line_number":116,"context_line":"        self.wait_until_env_is_up("},{"line_number":117,"context_line":"            self.neutron_server.client, agents_count\u003d4)"},{"line_number":118,"context_line":""},{"line_number":119,"context_line":"    @staticmethod"},{"line_number":120,"context_line":"    def create_patch_ports(source, destination):"}],"source_content_type":"text/x-python","patch_set":3,"id":"3afb71cf_c4d3be5e","line":117,"in_reply_to":"5afe65bd_066b8a86","updated":"2015-06-11 18:49:02.000000000","message":"I\u0027ve been going back and forth internally about environments tracking agents (self.agents VS self.ovs_agent_1/2 etc), helper methods to get an agent by host name, all of that stuff. This this just becomes len(self.agents). I\u0027ll probably implement that when it\u0027s needed for other purposes than just here.","commit_id":"c596e29027485e49f257a17d72b7ae47e9f0950a"},{"author":{"_account_id":12444,"name":"John Schwarz","email":"jschwarz@redhat.com","username":"jschwarz"},"change_message_id":"7a87787b24045352d13a8d7850940ec1e5315dcc","unresolved":false,"context_lines":[{"line_number":117,"context_line":"            self.neutron_server.client, agents_count\u003d4)"},{"line_number":118,"context_line":""},{"line_number":119,"context_line":"    @staticmethod"},{"line_number":120,"context_line":"    def create_patch_ports(source, destination):"},{"line_number":121,"context_line":"        source_name \u003d tests_base.get_rand_name("},{"line_number":122,"context_line":"            prefix\u003d\"patch-\", max_length\u003dconstants.DEVICE_NAME_MAX_LEN)"},{"line_number":123,"context_line":"        destination_name \u003d tests_base.get_rand_name("}],"source_content_type":"text/x-python","patch_set":3,"id":"5afe65bd_867ada75","line":120,"updated":"2015-06-04 14:57:14.000000000","message":"Please look into neutron/tests/common/net_helpers.py, specifically adding a \u0027PatchPortFixture\u0027 class that does exactly this. This seems like a really generic function that someday be exported there anyway, so why not now? :)","commit_id":"c596e29027485e49f257a17d72b7ae47e9f0950a"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"dcb2d276d9672d34d76d58fa9cf4890d0f219d4c","unresolved":false,"context_lines":[{"line_number":117,"context_line":"            self.neutron_server.client, agents_count\u003d4)"},{"line_number":118,"context_line":""},{"line_number":119,"context_line":"    @staticmethod"},{"line_number":120,"context_line":"    def create_patch_ports(source, destination):"},{"line_number":121,"context_line":"        source_name \u003d tests_base.get_rand_name("},{"line_number":122,"context_line":"            prefix\u003d\"patch-\", max_length\u003dconstants.DEVICE_NAME_MAX_LEN)"},{"line_number":123,"context_line":"        destination_name \u003d tests_base.get_rand_name("}],"source_content_type":"text/x-python","patch_set":3,"id":"3afb71cf_c702a009","line":120,"in_reply_to":"5afe65bd_4fdd0e6e","updated":"2015-06-11 18:49:02.000000000","message":"I think that fixtures should only be used if you want the fixture to handle both creation and clean up of a resource. If the resource doesn\u0027t have to be cleaned up (Like here, as patch ports are implicitly deleted when a bridge is deleted), then we should not use fixtures, we should use a simple helper methods, like this one.\n\nThoughts?\n\nI did move this to net_helpers though.","commit_id":"c596e29027485e49f257a17d72b7ae47e9f0950a"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"ddaa90024fb1aa37f4d05ee6a4a2584b69382d21","unresolved":false,"context_lines":[{"line_number":117,"context_line":"            self.neutron_server.client, agents_count\u003d4)"},{"line_number":118,"context_line":""},{"line_number":119,"context_line":"    @staticmethod"},{"line_number":120,"context_line":"    def create_patch_ports(source, destination):"},{"line_number":121,"context_line":"        source_name \u003d tests_base.get_rand_name("},{"line_number":122,"context_line":"            prefix\u003d\"patch-\", max_length\u003dconstants.DEVICE_NAME_MAX_LEN)"},{"line_number":123,"context_line":"        destination_name \u003d tests_base.get_rand_name("}],"source_content_type":"text/x-python","patch_set":3,"id":"5afe65bd_4fdd0e6e","line":120,"in_reply_to":"5afe65bd_867ada75","updated":"2015-06-04 17:18:17.000000000","message":"+1 but PatchPortFixture looks like a PortFixture, i would prefer OVSBindBridgeFixture","commit_id":"c596e29027485e49f257a17d72b7ae47e9f0950a"},{"author":{"_account_id":12444,"name":"John Schwarz","email":"jschwarz@redhat.com","username":"jschwarz"},"change_message_id":"7a87787b24045352d13a8d7850940ec1e5315dcc","unresolved":false,"context_lines":[{"line_number":118,"context_line":""},{"line_number":119,"context_line":"    @staticmethod"},{"line_number":120,"context_line":"    def create_patch_ports(source, destination):"},{"line_number":121,"context_line":"        source_name \u003d tests_base.get_rand_name("},{"line_number":122,"context_line":"            prefix\u003d\"patch-\", max_length\u003dconstants.DEVICE_NAME_MAX_LEN)"},{"line_number":123,"context_line":"        destination_name \u003d tests_base.get_rand_name("},{"line_number":124,"context_line":"            prefix\u003d\"patch-\", max_length\u003dconstants.DEVICE_NAME_MAX_LEN)"}],"source_content_type":"text/x-python","patch_set":3,"id":"5afe65bd_a67b968b","line":121,"updated":"2015-06-04 14:57:14.000000000","message":"Consider, for debug purposes, creating only one random name and changing the prefixes to indicate that the 2 patch ports are connected. Right now they are simply \u0027patch-XXX\u0027 and \u0027patch-YYY\u0027, and you can\u0027t really know which one is connected to what, but if they share the same random string it will be easier.\n\nMaybe look at what Cedric did with VethFixture.get_peer_name in net_helpers.py?","commit_id":"c596e29027485e49f257a17d72b7ae47e9f0950a"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"dcb2d276d9672d34d76d58fa9cf4890d0f219d4c","unresolved":false,"context_lines":[{"line_number":118,"context_line":""},{"line_number":119,"context_line":"    @staticmethod"},{"line_number":120,"context_line":"    def create_patch_ports(source, destination):"},{"line_number":121,"context_line":"        source_name \u003d tests_base.get_rand_name("},{"line_number":122,"context_line":"            prefix\u003d\"patch-\", max_length\u003dconstants.DEVICE_NAME_MAX_LEN)"},{"line_number":123,"context_line":"        destination_name \u003d tests_base.get_rand_name("},{"line_number":124,"context_line":"            prefix\u003d\"patch-\", max_length\u003dconstants.DEVICE_NAME_MAX_LEN)"}],"source_content_type":"text/x-python","patch_set":3,"id":"3afb71cf_d00da9e9","line":121,"in_reply_to":"5afe65bd_a67b968b","updated":"2015-06-11 18:49:02.000000000","message":"Done","commit_id":"c596e29027485e49f257a17d72b7ae47e9f0950a"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"a044e00d2a112e0ddb8bd499431db76080c6d6cb","unresolved":false,"context_lines":[{"line_number":37,"context_line":"            f_fixtures.NeutronServerFixture("},{"line_number":38,"context_line":"                self.test_name, self.temp_dir, self.rabbitmq_environment))"},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"    def setUpOVSL3Pair(self, neutron_config, ml2_config):"},{"line_number":41,"context_line":"        ovs_agent \u003d self.useFixture("},{"line_number":42,"context_line":"            f_fixtures.OVSAgentFixture("},{"line_number":43,"context_line":"                self.test_name, neutron_config, ml2_config))"}],"source_content_type":"text/x-python","patch_set":6,"id":"fa32b979_a893b8f9","line":40,"updated":"2015-06-15 10:58:11.000000000","message":"If we would like to extend the Environment to contain more agents (DHCP, metadata, Agent as a service agent (AaaSa)), how will we setup agent fixtures?\n\nMy point is whether we should rather split this method into a setup per agent? Or call useFixture directly in constructor.","commit_id":"7cf117c70bad1a1d6f99b383192905560979c5e9"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"2530895d8a93a9fc0af071ca2310dcd9790277b7","unresolved":false,"context_lines":[{"line_number":37,"context_line":"            f_fixtures.NeutronServerFixture("},{"line_number":38,"context_line":"                self.test_name, self.temp_dir, self.rabbitmq_environment))"},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"    def setUpOVSL3Pair(self, neutron_config, ml2_config):"},{"line_number":41,"context_line":"        ovs_agent \u003d self.useFixture("},{"line_number":42,"context_line":"            f_fixtures.OVSAgentFixture("},{"line_number":43,"context_line":"                self.test_name, neutron_config, ml2_config))"}],"source_content_type":"text/x-python","patch_set":6,"id":"fa32b979_5a35f2f4","line":40,"in_reply_to":"fa32b979_a893b8f9","updated":"2015-06-15 23:24:17.000000000","message":"I\u0027m going to change this in an upcoming patch in the series. I\u0027ll add a \u0027Host\u0027 class that encapsulates some of this stuff. I\u0027m debating with myself if this should be folded in to this first patch or stand on its own.","commit_id":"7cf117c70bad1a1d6f99b383192905560979c5e9"}],"neutron/tests/fullstack/fixtures/config.py":[{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"2e25d8a3831a1e69b190e53b8b1ab9333c84eed1","unresolved":false,"context_lines":[{"line_number":200,"context_line":"        return base.get_rand_name(prefix\u003d\u0027br-int\u0027,"},{"line_number":201,"context_line":"                                  max_length\u003dconstants.DEVICE_NAME_MAX_LEN)"},{"line_number":202,"context_line":""},{"line_number":203,"context_line":"    def _generate_int_peer(self):"},{"line_number":204,"context_line":"        return base.get_rand_name(prefix\u003d\u0027patch-tun\u0027,"},{"line_number":205,"context_line":"                                  max_length\u003dconstants.DEVICE_NAME_MAX_LEN)"},{"line_number":206,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"fa32b979_4366ff51","line":203,"updated":"2015-06-25 07:43:11.000000000","message":"Since it\u0027s prevalent to call with max_length\u003dconstants.DEVICE_NAME_MAX_LEN how about extracting this to a method, say get_rand_device_name (or modify net_helpers.get_rand_port_name to receive optional prefix)","commit_id":"0bc3756bfe531d32407dd5c2724d624ffdb2bb9d"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"50fc24ebae702f9d086d66774f823fd7894d4aea","unresolved":false,"context_lines":[{"line_number":200,"context_line":"        return base.get_rand_name(prefix\u003d\u0027br-int\u0027,"},{"line_number":201,"context_line":"                                  max_length\u003dconstants.DEVICE_NAME_MAX_LEN)"},{"line_number":202,"context_line":""},{"line_number":203,"context_line":"    def _generate_int_peer(self):"},{"line_number":204,"context_line":"        return base.get_rand_name(prefix\u003d\u0027patch-tun\u0027,"},{"line_number":205,"context_line":"                                  max_length\u003dconstants.DEVICE_NAME_MAX_LEN)"},{"line_number":206,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"fa32b979_ecd9c223","line":203,"in_reply_to":"fa32b979_4366ff51","updated":"2015-06-26 21:36:59.000000000","message":"I created get_rand_device_name and converted all of the fullstack code to use it. If you want you can push another patch to make all appropriate usages to it.","commit_id":"0bc3756bfe531d32407dd5c2724d624ffdb2bb9d"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"5a0ca56381334db768263f976ca8d989364f59d9","unresolved":false,"context_lines":[{"line_number":200,"context_line":"        return base.get_rand_name(prefix\u003d\u0027br-int\u0027,"},{"line_number":201,"context_line":"                                  max_length\u003dconstants.DEVICE_NAME_MAX_LEN)"},{"line_number":202,"context_line":""},{"line_number":203,"context_line":"    def _generate_int_peer(self):"},{"line_number":204,"context_line":"        return base.get_rand_name(prefix\u003d\u0027patch-tun\u0027,"},{"line_number":205,"context_line":"                                  max_length\u003dconstants.DEVICE_NAME_MAX_LEN)"},{"line_number":206,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"fa32b979_cb01323b","line":203,"in_reply_to":"fa32b979_ecd9c223","updated":"2015-06-28 07:23:20.000000000","message":"+1","commit_id":"0bc3756bfe531d32407dd5c2724d624ffdb2bb9d"},{"author":{"_account_id":12444,"name":"John Schwarz","email":"jschwarz@redhat.com","username":"jschwarz"},"change_message_id":"d63218572bdc5cdb1943785cdbb3a082898426d4","unresolved":false,"context_lines":[{"line_number":183,"context_line":"                \u0027enable_tunneling\u0027: \u0027False\u0027,"},{"line_number":184,"context_line":"                \u0027local_ip\u0027: \u0027127.0.0.1\u0027,"},{"line_number":185,"context_line":"                \u0027integration_bridge\u0027: self._generate_integration_bridge(),"},{"line_number":186,"context_line":"                \u0027bridge_mappings\u0027: self._generate_bridge_mappings(),"},{"line_number":187,"context_line":"            },"},{"line_number":188,"context_line":"            \u0027securitygroup\u0027: {"},{"line_number":189,"context_line":"                \u0027firewall_driver\u0027: (\u0027neutron.agent.linux.iptables_firewall.\u0027"}],"source_content_type":"text/x-python","patch_set":10,"id":"ba3cc151_d1dace16","line":186,"updated":"2015-07-02 15:09:11.000000000","message":"Unrelated change, or is there a meaning in the line swap?","commit_id":"4a7d5505a79805b77dd825422ddb6812810848b6"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"057d3f1f6d35befe8745b8ced3a7185c714089cb","unresolved":false,"context_lines":[{"line_number":183,"context_line":"                \u0027enable_tunneling\u0027: \u0027False\u0027,"},{"line_number":184,"context_line":"                \u0027local_ip\u0027: \u0027127.0.0.1\u0027,"},{"line_number":185,"context_line":"                \u0027integration_bridge\u0027: self._generate_integration_bridge(),"},{"line_number":186,"context_line":"                \u0027bridge_mappings\u0027: self._generate_bridge_mappings(),"},{"line_number":187,"context_line":"            },"},{"line_number":188,"context_line":"            \u0027securitygroup\u0027: {"},{"line_number":189,"context_line":"                \u0027firewall_driver\u0027: (\u0027neutron.agent.linux.iptables_firewall.\u0027"}],"source_content_type":"text/x-python","patch_set":10,"id":"ba3cc151_52017569","line":186,"in_reply_to":"ba3cc151_d1dace16","updated":"2015-07-10 19:17:24.000000000","message":"Uhh, dunno why I did this.","commit_id":"4a7d5505a79805b77dd825422ddb6812810848b6"},{"author":{"_account_id":12444,"name":"John Schwarz","email":"jschwarz@redhat.com","username":"jschwarz"},"change_message_id":"d63218572bdc5cdb1943785cdbb3a082898426d4","unresolved":false,"context_lines":[{"line_number":197,"context_line":"    def _generate_integration_bridge(self):"},{"line_number":198,"context_line":"        return base.get_rand_device_name(prefix\u003d\u0027br-int\u0027)"},{"line_number":199,"context_line":""},{"line_number":200,"context_line":"    def _generate_int_peer(self):"},{"line_number":201,"context_line":"        return base.get_rand_device_name(prefix\u003d\u0027patch-tun\u0027)"},{"line_number":202,"context_line":""},{"line_number":203,"context_line":"    def _generate_tun_peer(self):"}],"source_content_type":"text/x-python","patch_set":10,"id":"ba3cc151_f14352ad","line":200,"updated":"2015-07-02 15:09:11.000000000","message":"These 2 functions are unused by the current code.","commit_id":"4a7d5505a79805b77dd825422ddb6812810848b6"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"057d3f1f6d35befe8745b8ced3a7185c714089cb","unresolved":false,"context_lines":[{"line_number":197,"context_line":"    def _generate_integration_bridge(self):"},{"line_number":198,"context_line":"        return base.get_rand_device_name(prefix\u003d\u0027br-int\u0027)"},{"line_number":199,"context_line":""},{"line_number":200,"context_line":"    def _generate_int_peer(self):"},{"line_number":201,"context_line":"        return base.get_rand_device_name(prefix\u003d\u0027patch-tun\u0027)"},{"line_number":202,"context_line":""},{"line_number":203,"context_line":"    def _generate_tun_peer(self):"}],"source_content_type":"text/x-python","patch_set":10,"id":"ba3cc151_b247a1bb","line":200,"in_reply_to":"ba3cc151_f14352ad","updated":"2015-07-10 19:17:24.000000000","message":"Yeah, too many patches in this series.","commit_id":"4a7d5505a79805b77dd825422ddb6812810848b6"}],"neutron/tests/fullstack/fixtures/environment.py":[{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"d1de4bd9d09c4c2176d41777e6992d8d71626824","unresolved":false,"context_lines":[{"line_number":147,"context_line":"                self.connect_host_to_external_network(host)"},{"line_number":148,"context_line":""},{"line_number":149,"context_line":"        self.wait_until_env_is_up()"},{"line_number":150,"context_line":""},{"line_number":151,"context_line":"    def connect_host_to_internal_network_via_vlans(self, host):"},{"line_number":152,"context_line":"        net_helpers.create_patch_ports("},{"line_number":153,"context_line":"            host.ovs_agent.br_phys, self.central_data_bridge)"}],"source_content_type":"text/x-python","patch_set":8,"id":"fa32b979_84f0ffca","line":150,"updated":"2015-06-27 16:01:03.000000000","message":"I\u0027ll move the connect methods to the Host class which is something I wanted originally anyway. There was some issue that I simplified away and now I can move these methods.","commit_id":"0bc3756bfe531d32407dd5c2724d624ffdb2bb9d"},{"author":{"_account_id":12444,"name":"John Schwarz","email":"jschwarz@redhat.com","username":"jschwarz"},"change_message_id":"d63218572bdc5cdb1943785cdbb3a082898426d4","unresolved":false,"context_lines":[{"line_number":26,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"class GlobalEnvironmentAttributes(object):"},{"line_number":30,"context_line":"    pass"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":""}],"source_content_type":"text/x-python","patch_set":10,"id":"ba3cc151_d27ac987","line":29,"updated":"2015-07-02 15:09:11.000000000","message":"I don\u0027t see the use of defining a class today which is clearly marked for \"future use\"","commit_id":"4a7d5505a79805b77dd825422ddb6812810848b6"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"057d3f1f6d35befe8745b8ced3a7185c714089cb","unresolved":false,"context_lines":[{"line_number":26,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"class GlobalEnvironmentAttributes(object):"},{"line_number":30,"context_line":"    pass"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":""}],"source_content_type":"text/x-python","patch_set":10,"id":"ba3cc151_7216f959","line":29,"in_reply_to":"ba3cc151_d27ac987","updated":"2015-07-10 19:17:24.000000000","message":"I agree, that looks like a comment I would write myself :) It feels stupid to remove it from this patch then add it back in the next patch but it\u0027s the right thing to do.","commit_id":"4a7d5505a79805b77dd825422ddb6812810848b6"},{"author":{"_account_id":12444,"name":"John Schwarz","email":"jschwarz@redhat.com","username":"jschwarz"},"change_message_id":"d63218572bdc5cdb1943785cdbb3a082898426d4","unresolved":false,"context_lines":[{"line_number":76,"context_line":"        self.agents.append(self.ovs_agent)"},{"line_number":77,"context_line":""},{"line_number":78,"context_line":"        self.l3_agent \u003d None"},{"line_number":79,"context_line":"        if self.host_attributes.l3_agent:"},{"line_number":80,"context_line":"            self.l3_agent \u003d self.useFixture("},{"line_number":81,"context_line":"                f_fixtures.L3AgentFixture("},{"line_number":82,"context_line":"                    self.test_name,"}],"source_content_type":"text/x-python","patch_set":10,"id":"ba3cc151_6f7bda7b","line":79,"updated":"2015-07-02 15:09:11.000000000","message":"The issue I have with this is that it\u0027s another way to use some variable to determine the flow of a function. In the future we will have more than just an l3 agent - so are we expecting this function to grow with statements like the following?\n\n if self.host_attributes.ovs_agent:\n     #...\n if self.host_attributes.dhcp_agent:\n     #...\n if self.host_attributes.metadata_agent:\n     #...\n if self.host_attributes.lbaas_agent:\n     #...\n\nThis is exactly what we were trying to avoid with the code we merged in the first place, and this is what the inheritable environment fixed - each environment (SingleNodeEnvironemnt, MultiNodeHAEnvironment, ...) knows which resources exactly it needs, and there are no \u0027if-then-else\u0027 like this.\n\nSuggestion: Lose the HostEnvironmentAttributes class. Instead of passing HostEnvironmentAttributes to Environment, pass a subclass of \u0027Host\u0027 instead. Each subclass of \u0027Host\u0027 will be able to create exactly which processes it needs to (NetworkHost, NetworkDHCPHost, OVSOnlyHost...)","commit_id":"4a7d5505a79805b77dd825422ddb6812810848b6"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"057d3f1f6d35befe8745b8ced3a7185c714089cb","unresolved":false,"context_lines":[{"line_number":76,"context_line":"        self.agents.append(self.ovs_agent)"},{"line_number":77,"context_line":""},{"line_number":78,"context_line":"        self.l3_agent \u003d None"},{"line_number":79,"context_line":"        if self.host_attributes.l3_agent:"},{"line_number":80,"context_line":"            self.l3_agent \u003d self.useFixture("},{"line_number":81,"context_line":"                f_fixtures.L3AgentFixture("},{"line_number":82,"context_line":"                    self.test_name,"}],"source_content_type":"text/x-python","patch_set":10,"id":"ba3cc151_ad0186b1","line":79,"in_reply_to":"ba3cc151_6f7bda7b","updated":"2015-07-10 19:17:24.000000000","message":"Conditionals control the flow of functions, that\u0027s what they do. Eliminating a conditional (Or 5) is not a good reason to create a complex inheritance tree. Right now the code is simple because the use case is simple (Each host starts the OVS agent and may or may not start the L3 agent). In the future, when the requirements get more complicated we can reconsider the design, but for now something stupidly simple like an if statement is awesome.","commit_id":"4a7d5505a79805b77dd825422ddb6812810848b6"},{"author":{"_account_id":12444,"name":"John Schwarz","email":"jschwarz@redhat.com","username":"jschwarz"},"change_message_id":"d63218572bdc5cdb1943785cdbb3a082898426d4","unresolved":false,"context_lines":[{"line_number":78,"context_line":"        self.l3_agent \u003d None"},{"line_number":79,"context_line":"        if self.host_attributes.l3_agent:"},{"line_number":80,"context_line":"            self.l3_agent \u003d self.useFixture("},{"line_number":81,"context_line":"                f_fixtures.L3AgentFixture("},{"line_number":82,"context_line":"                    self.test_name,"},{"line_number":83,"context_line":"                    self.neutron_config.temp_dir,"},{"line_number":84,"context_line":"                    self.neutron_config,"}],"source_content_type":"text/x-python","patch_set":10,"id":"ba3cc151_6fb3da0a","line":81,"updated":"2015-07-02 15:09:11.000000000","message":"Why doesn\u0027t L3AgentFixture handle the \u0027connect_to_external_network\u0027 call? It\u0027s only logical that it will do it on its own. This can save some future hard-to-detect issues, including an agent saying \"hey, this bridge isn\u0027t connected to anywhere so I must crash!\", even though the bridge is created a few ms later. Moving the call inside, aside from being good design and code composition, will make sure that each fixture creates and connects whatever it needs to, whenever it needs to, and prevents easy to make mistakes later down the line. Trust me, I\u0027m an engineer.\n\nThis is also relevant to the \u0027connect_to_internal_network_via_vlans\u0027 and the OVSAgentFixture above.","commit_id":"4a7d5505a79805b77dd825422ddb6812810848b6"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"057d3f1f6d35befe8745b8ced3a7185c714089cb","unresolved":false,"context_lines":[{"line_number":78,"context_line":"        self.l3_agent \u003d None"},{"line_number":79,"context_line":"        if self.host_attributes.l3_agent:"},{"line_number":80,"context_line":"            self.l3_agent \u003d self.useFixture("},{"line_number":81,"context_line":"                f_fixtures.L3AgentFixture("},{"line_number":82,"context_line":"                    self.test_name,"},{"line_number":83,"context_line":"                    self.neutron_config.temp_dir,"},{"line_number":84,"context_line":"                    self.neutron_config,"}],"source_content_type":"text/x-python","patch_set":10,"id":"ba3cc151_8d92824a","line":81,"in_reply_to":"ba3cc151_6fb3da0a","updated":"2015-07-10 19:17:24.000000000","message":"I don\u0027t understand your point about \"hey, this bridge isn\u0027t connected to anywhere so I must crash!\" or \"easy to make mistakes later down the line\". About it making sense or good design and code composition - \"That\u0027s like, your opinion, man\". On that I completely disagree, the current model is correct. Hosts interconnect themselves, not agents. The L3 agent doesn\u0027t connect its br-ex to a physical NIC, the installer does, which is how the current code is modeled. The OVS agent doesn\u0027t configure the local_ip of a tunnel device, the installer or admin do.","commit_id":"4a7d5505a79805b77dd825422ddb6812810848b6"},{"author":{"_account_id":12444,"name":"John Schwarz","email":"jschwarz@redhat.com","username":"jschwarz"},"change_message_id":"d63218572bdc5cdb1943785cdbb3a082898426d4","unresolved":false,"context_lines":[{"line_number":120,"context_line":"    def _processes_are_ready(self):"},{"line_number":121,"context_line":"        try:"},{"line_number":122,"context_line":"            running_agents \u003d self.neutron_server.client.list_agents()[\u0027agents\u0027]"},{"line_number":123,"context_line":"            agents_count \u003d sum(len(host.agents) for host in self.hosts)"},{"line_number":124,"context_line":"            return len(running_agents) \u003d\u003d agents_count"},{"line_number":125,"context_line":"        except nc_exc.NeutronClientException:"},{"line_number":126,"context_line":"            return False"}],"source_content_type":"text/x-python","patch_set":10,"id":"ba3cc151_8f85fecf","line":123,"updated":"2015-07-02 15:09:11.000000000","message":"This I like a lot.","commit_id":"4a7d5505a79805b77dd825422ddb6812810848b6"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"057d3f1f6d35befe8745b8ced3a7185c714089cb","unresolved":false,"context_lines":[{"line_number":120,"context_line":"    def _processes_are_ready(self):"},{"line_number":121,"context_line":"        try:"},{"line_number":122,"context_line":"            running_agents \u003d self.neutron_server.client.list_agents()[\u0027agents\u0027]"},{"line_number":123,"context_line":"            agents_count \u003d sum(len(host.agents) for host in self.hosts)"},{"line_number":124,"context_line":"            return len(running_agents) \u003d\u003d agents_count"},{"line_number":125,"context_line":"        except nc_exc.NeutronClientException:"},{"line_number":126,"context_line":"            return False"}],"source_content_type":"text/x-python","patch_set":10,"id":"ba3cc151_cd5dea16","line":123,"in_reply_to":"ba3cc151_8f85fecf","updated":"2015-07-10 19:17:24.000000000","message":"Me too!","commit_id":"4a7d5505a79805b77dd825422ddb6812810848b6"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"1bca748ef953d98ec5c87edab759eebd2ff22170","unresolved":false,"context_lines":[{"line_number":120,"context_line":"    def _processes_are_ready(self):"},{"line_number":121,"context_line":"        try:"},{"line_number":122,"context_line":"            running_agents \u003d self.neutron_server.client.list_agents()[\u0027agents\u0027]"},{"line_number":123,"context_line":"            agents_count \u003d sum(len(host.agents) for host in self.hosts)"},{"line_number":124,"context_line":"            return len(running_agents) \u003d\u003d agents_count"},{"line_number":125,"context_line":"        except nc_exc.NeutronClientException:"},{"line_number":126,"context_line":"            return False"}],"source_content_type":"text/x-python","patch_set":10,"id":"9a41bdd9_9b2628b9","line":123,"in_reply_to":"ba3cc151_cd5dea16","updated":"2015-07-13 11:55:29.000000000","message":"And me too!","commit_id":"4a7d5505a79805b77dd825422ddb6812810848b6"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"971f1ba49ea303f2820b31c788426e45efda962b","unresolved":false,"context_lines":[{"line_number":20,"context_line":"from neutron.agent.linux import utils"},{"line_number":21,"context_line":"from neutron.tests.common import net_helpers"},{"line_number":22,"context_line":"from neutron.tests.fullstack.fixtures import config"},{"line_number":23,"context_line":"from neutron.tests.fullstack.fixtures import process as f_fixtures"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":26,"context_line":""}],"source_content_type":"text/x-python","patch_set":12,"id":"ba3cc151_2724cab0","line":23,"updated":"2015-07-10 11:41:44.000000000","message":"Isn\u0027t this confusing? Maybe f_process is better alias?","commit_id":"94f0ce3c06b81c5e6f402903a87667d9c09cf27d"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"3b70b88f67b043c99674f4c275e949401861b381","unresolved":false,"context_lines":[{"line_number":20,"context_line":"from neutron.agent.linux import utils"},{"line_number":21,"context_line":"from neutron.tests.common import net_helpers"},{"line_number":22,"context_line":"from neutron.tests.fullstack.fixtures import config"},{"line_number":23,"context_line":"from neutron.tests.fullstack.fixtures import process as f_fixtures"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":26,"context_line":""}],"source_content_type":"text/x-python","patch_set":12,"id":"ba3cc151_c32f0187","line":23,"in_reply_to":"ba3cc151_2724cab0","updated":"2015-07-10 19:49:49.000000000","message":"This is essentially a left over... I can just drop the \u0027as\u0027 since the \u0027process\u0027 module doesn\u0027t seem to exist.","commit_id":"94f0ce3c06b81c5e6f402903a87667d9c09cf27d"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"971f1ba49ea303f2820b31c788426e45efda962b","unresolved":false,"context_lines":[{"line_number":52,"context_line":"        self.global_attributes \u003d global_attributes"},{"line_number":53,"context_line":"        self.host_attributes \u003d host_attributes"},{"line_number":54,"context_line":"        self.central_data_bridge \u003d central_data_bridge"},{"line_number":55,"context_line":"        self.central_external_bridge \u003d central_external_bridge"},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"    def _setUp(self):"},{"line_number":58,"context_line":"        agent_cfg_fixture \u003d config.OVSConfigFixture("}],"source_content_type":"text/x-python","patch_set":12,"id":"ba3cc151_4ce015cd","line":55,"updated":"2015-07-10 11:41:44.000000000","message":"Idea: Would it make sense to unify agent attributes with agents list? Assuming Host can have multiple agents (if not, usual dict without list is used):\n\n self.agents \u003d collections.defaultdict(lambda: list)\n ...\n\nCreation:\n\n l3_agent \u003d self._create_l3_agent()\n self.agents[\u0027l3-agent\u0027].append(l3_agent)\n ...\n\nIn case you need to easily access:\n\n @property\n def l3_agents(self):\n     return self.agents[\u0027l3-agent\u0027]\n\n_processes_are_ready() will stay as is and you don\u0027t need to create attribute and call append() every time you create a new agent.\n\n\nAlso I guess this will reflect better documentation text on L98","commit_id":"94f0ce3c06b81c5e6f402903a87667d9c09cf27d"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"3b70b88f67b043c99674f4c275e949401861b381","unresolved":false,"context_lines":[{"line_number":52,"context_line":"        self.global_attributes \u003d global_attributes"},{"line_number":53,"context_line":"        self.host_attributes \u003d host_attributes"},{"line_number":54,"context_line":"        self.central_data_bridge \u003d central_data_bridge"},{"line_number":55,"context_line":"        self.central_external_bridge \u003d central_external_bridge"},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"    def _setUp(self):"},{"line_number":58,"context_line":"        agent_cfg_fixture \u003d config.OVSConfigFixture("}],"source_content_type":"text/x-python","patch_set":12,"id":"ba3cc151_68ce0cb9","line":55,"in_reply_to":"ba3cc151_4ce015cd","updated":"2015-07-10 19:49:49.000000000","message":"That\u0027s a mighty fine idea. Note: A host simulates a physical host that runs agents, so it\u0027s expected to run only a single instance of L3 agent, OVS agent, etc.","commit_id":"94f0ce3c06b81c5e6f402903a87667d9c09cf27d"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"971f1ba49ea303f2820b31c788426e45efda962b","unresolved":false,"context_lines":[{"line_number":65,"context_line":"        self.connect_to_internal_network_via_vlans("},{"line_number":66,"context_line":"            br_phys, self.central_data_bridge)"},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"        self.agents \u003d []"},{"line_number":69,"context_line":"        self.ovs_agent \u003d self.useFixture("},{"line_number":70,"context_line":"            f_fixtures.OVSAgentFixture("},{"line_number":71,"context_line":"                self.test_name, self.neutron_config, agent_cfg_fixture,"}],"source_content_type":"text/x-python","patch_set":12,"id":"ba3cc151_2c5cb1ef","line":68,"updated":"2015-07-10 11:41:44.000000000","message":"I would move this to constructor","commit_id":"94f0ce3c06b81c5e6f402903a87667d9c09cf27d"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"3b70b88f67b043c99674f4c275e949401861b381","unresolved":false,"context_lines":[{"line_number":65,"context_line":"        self.connect_to_internal_network_via_vlans("},{"line_number":66,"context_line":"            br_phys, self.central_data_bridge)"},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"        self.agents \u003d []"},{"line_number":69,"context_line":"        self.ovs_agent \u003d self.useFixture("},{"line_number":70,"context_line":"            f_fixtures.OVSAgentFixture("},{"line_number":71,"context_line":"                self.test_name, self.neutron_config, agent_cfg_fixture,"}],"source_content_type":"text/x-python","patch_set":12,"id":"ba3cc151_2897a43b","line":68,"in_reply_to":"ba3cc151_2c5cb1ef","updated":"2015-07-10 19:49:49.000000000","message":"Done","commit_id":"94f0ce3c06b81c5e6f402903a87667d9c09cf27d"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"971f1ba49ea303f2820b31c788426e45efda962b","unresolved":false,"context_lines":[{"line_number":66,"context_line":"            br_phys, self.central_data_bridge)"},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"        self.agents \u003d []"},{"line_number":69,"context_line":"        self.ovs_agent \u003d self.useFixture("},{"line_number":70,"context_line":"            f_fixtures.OVSAgentFixture("},{"line_number":71,"context_line":"                self.test_name, self.neutron_config, agent_cfg_fixture,"},{"line_number":72,"context_line":"                br_phys))"}],"source_content_type":"text/x-python","patch_set":12,"id":"ba3cc151_ac49a134","line":69,"updated":"2015-07-10 11:41:44.000000000","message":"Consider:\n\n self.ovs_agent \u003d self._create_ovs_agent()\n\n ...\n\n def _create_ovs_agent(self):\n     agent \u003d self.useFixture( ... )\n     self.agents.append(agent)\n     return agent","commit_id":"94f0ce3c06b81c5e6f402903a87667d9c09cf27d"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"3b70b88f67b043c99674f4c275e949401861b381","unresolved":false,"context_lines":[{"line_number":66,"context_line":"            br_phys, self.central_data_bridge)"},{"line_number":67,"context_line":""},{"line_number":68,"context_line":"        self.agents \u003d []"},{"line_number":69,"context_line":"        self.ovs_agent \u003d self.useFixture("},{"line_number":70,"context_line":"            f_fixtures.OVSAgentFixture("},{"line_number":71,"context_line":"                self.test_name, self.neutron_config, agent_cfg_fixture,"},{"line_number":72,"context_line":"                br_phys))"}],"source_content_type":"text/x-python","patch_set":12,"id":"ba3cc151_68b4ccd3","line":69,"in_reply_to":"ba3cc151_ac49a134","updated":"2015-07-10 19:49:49.000000000","message":"No need now that the append is not needed.","commit_id":"94f0ce3c06b81c5e6f402903a87667d9c09cf27d"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"971f1ba49ea303f2820b31c788426e45efda962b","unresolved":false,"context_lines":[{"line_number":72,"context_line":"                br_phys))"},{"line_number":73,"context_line":"        self.agents.append(self.ovs_agent)"},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"        self.l3_agent \u003d None"},{"line_number":76,"context_line":"        if self.host_attributes.l3_agent:"},{"line_number":77,"context_line":"            self.l3_agent \u003d self.useFixture("},{"line_number":78,"context_line":"                f_fixtures.L3AgentFixture("}],"source_content_type":"text/x-python","patch_set":12,"id":"ba3cc151_ac94418c","line":75,"updated":"2015-07-10 11:41:44.000000000","message":"I would move this to constructor","commit_id":"94f0ce3c06b81c5e6f402903a87667d9c09cf27d"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"3b70b88f67b043c99674f4c275e949401861b381","unresolved":false,"context_lines":[{"line_number":72,"context_line":"                br_phys))"},{"line_number":73,"context_line":"        self.agents.append(self.ovs_agent)"},{"line_number":74,"context_line":""},{"line_number":75,"context_line":"        self.l3_agent \u003d None"},{"line_number":76,"context_line":"        if self.host_attributes.l3_agent:"},{"line_number":77,"context_line":"            self.l3_agent \u003d self.useFixture("},{"line_number":78,"context_line":"                f_fixtures.L3AgentFixture("}],"source_content_type":"text/x-python","patch_set":12,"id":"ba3cc151_88b910ce","line":75,"in_reply_to":"ba3cc151_ac94418c","updated":"2015-07-10 19:49:49.000000000","message":"Done","commit_id":"94f0ce3c06b81c5e6f402903a87667d9c09cf27d"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"971f1ba49ea303f2820b31c788426e45efda962b","unresolved":false,"context_lines":[{"line_number":74,"context_line":""},{"line_number":75,"context_line":"        self.l3_agent \u003d None"},{"line_number":76,"context_line":"        if self.host_attributes.l3_agent:"},{"line_number":77,"context_line":"            self.l3_agent \u003d self.useFixture("},{"line_number":78,"context_line":"                f_fixtures.L3AgentFixture("},{"line_number":79,"context_line":"                    self.test_name,"},{"line_number":80,"context_line":"                    self.neutron_config.temp_dir,"}],"source_content_type":"text/x-python","patch_set":12,"id":"ba3cc151_ecc7a996","line":77,"updated":"2015-07-10 11:41:44.000000000","message":"Consider the same as per ovs_agent","commit_id":"94f0ce3c06b81c5e6f402903a87667d9c09cf27d"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"3b70b88f67b043c99674f4c275e949401861b381","unresolved":false,"context_lines":[{"line_number":74,"context_line":""},{"line_number":75,"context_line":"        self.l3_agent \u003d None"},{"line_number":76,"context_line":"        if self.host_attributes.l3_agent:"},{"line_number":77,"context_line":"            self.l3_agent \u003d self.useFixture("},{"line_number":78,"context_line":"                f_fixtures.L3AgentFixture("},{"line_number":79,"context_line":"                    self.test_name,"},{"line_number":80,"context_line":"                    self.neutron_config.temp_dir,"}],"source_content_type":"text/x-python","patch_set":12,"id":"ba3cc151_c8bf18a9","line":77,"in_reply_to":"ba3cc151_ecc7a996","updated":"2015-07-10 19:49:49.000000000","message":"Same reply.","commit_id":"94f0ce3c06b81c5e6f402903a87667d9c09cf27d"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"971f1ba49ea303f2820b31c788426e45efda962b","unresolved":false,"context_lines":[{"line_number":83,"context_line":"            self.connect_to_external_network(self.central_external_bridge)"},{"line_number":84,"context_line":"            self.agents.append(self.l3_agent)"},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"    def connect_to_internal_network_via_vlans(self, local_bridge, bridge):"},{"line_number":87,"context_line":"        net_helpers.create_patch_ports(local_bridge, bridge)"},{"line_number":88,"context_line":""},{"line_number":89,"context_line":"    def connect_to_external_network(self, bridge):"}],"source_content_type":"text/x-python","patch_set":12,"id":"ba3cc151_ccf425d1","line":86,"updated":"2015-07-10 11:41:44.000000000","message":"I don\u0027t get this. Host is connected to internal network via vlans? How, where?","commit_id":"94f0ce3c06b81c5e6f402903a87667d9c09cf27d"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"3b70b88f67b043c99674f4c275e949401861b381","unresolved":false,"context_lines":[{"line_number":83,"context_line":"            self.connect_to_external_network(self.central_external_bridge)"},{"line_number":84,"context_line":"            self.agents.append(self.l3_agent)"},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"    def connect_to_internal_network_via_vlans(self, local_bridge, bridge):"},{"line_number":87,"context_line":"        net_helpers.create_patch_ports(local_bridge, bridge)"},{"line_number":88,"context_line":""},{"line_number":89,"context_line":"    def connect_to_external_network(self, bridge):"}],"source_content_type":"text/x-python","patch_set":12,"id":"ba3cc151_289d640a","line":86,"in_reply_to":"ba3cc151_ccf425d1","updated":"2015-07-10 19:49:49.000000000","message":"I improved the documentation here and in the Host doctext.","commit_id":"94f0ce3c06b81c5e6f402903a87667d9c09cf27d"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"971f1ba49ea303f2820b31c788426e45efda962b","unresolved":false,"context_lines":[{"line_number":138,"context_line":"        self.central_external_bridge \u003d self.useFixture("},{"line_number":139,"context_line":"            net_helpers.OVSBridgeFixture(\u0027cnt-ex\u0027)).bridge"},{"line_number":140,"context_line":""},{"line_number":141,"context_line":"        for host_attributes in self.host_attributes:"},{"line_number":142,"context_line":"            temp_dir \u003d self.useFixture(fixtures.TempDir()).path"},{"line_number":143,"context_line":"            neutron_config \u003d config.NeutronConfigFixture("},{"line_number":144,"context_line":"                temp_dir, cfg.CONF.database.connection,"}],"source_content_type":"text/x-python","patch_set":12,"id":"ba3cc151_8cf7fd58","line":141,"updated":"2015-07-10 11:41:44.000000000","message":"Consider separate creation of host:\n\n def _create_host(self, attributes):\n     temp_dir ...\n     ...\n     host \u003d Host(...)\n     return host\n\n def _setUp(self):\n     ...\n     self.hosts \u003d [self._create_host(attrs) for attrs in self.host_attributes]","commit_id":"94f0ce3c06b81c5e6f402903a87667d9c09cf27d"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"3b70b88f67b043c99674f4c275e949401861b381","unresolved":false,"context_lines":[{"line_number":138,"context_line":"        self.central_external_bridge \u003d self.useFixture("},{"line_number":139,"context_line":"            net_helpers.OVSBridgeFixture(\u0027cnt-ex\u0027)).bridge"},{"line_number":140,"context_line":""},{"line_number":141,"context_line":"        for host_attributes in self.host_attributes:"},{"line_number":142,"context_line":"            temp_dir \u003d self.useFixture(fixtures.TempDir()).path"},{"line_number":143,"context_line":"            neutron_config \u003d config.NeutronConfigFixture("},{"line_number":144,"context_line":"                temp_dir, cfg.CONF.database.connection,"}],"source_content_type":"text/x-python","patch_set":12,"id":"ba3cc151_c8539838","line":141,"in_reply_to":"ba3cc151_8cf7fd58","updated":"2015-07-10 19:49:49.000000000","message":"Done","commit_id":"94f0ce3c06b81c5e6f402903a87667d9c09cf27d"}],"neutron/tests/fullstack/fullstack_fixtures.py":[{"author":{"_account_id":12444,"name":"John Schwarz","email":"jschwarz@redhat.com","username":"jschwarz"},"change_message_id":"7a87787b24045352d13a8d7850940ec1e5315dcc","unresolved":false,"context_lines":[{"line_number":58,"context_line":"                if e.errno !\u003d errno.EEXIST:"},{"line_number":59,"context_line":"                    raise"},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"        time_format \u003d \"%Y-%m-%d--%H-%M-%S-%f\""},{"line_number":62,"context_line":"        log_file \u003d \"%s--%s.log\" % ("},{"line_number":63,"context_line":"            self.process_name, datetime.datetime.now().strftime(time_format))"},{"line_number":64,"context_line":"        cmd \u003d [spawn.find_executable(self.exec_name),"}],"source_content_type":"text/x-python","patch_set":3,"id":"5afe65bd_a696f63c","line":61,"updated":"2015-06-04 14:57:14.000000000","message":"nit: handling with the entire datetime business in the same line looks better to me, ie:\n\n timestamp \u003d datetime.datetime.now().strftime(\"%Y-%m-%d--%H-%M-%S-%f\")\n log_file \u003d \"%s--%s.log\" % (self.process_name, timestamp))","commit_id":"c596e29027485e49f257a17d72b7ae47e9f0950a"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"dcb2d276d9672d34d76d58fa9cf4890d0f219d4c","unresolved":false,"context_lines":[{"line_number":58,"context_line":"                if e.errno !\u003d errno.EEXIST:"},{"line_number":59,"context_line":"                    raise"},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"        time_format \u003d \"%Y-%m-%d--%H-%M-%S-%f\""},{"line_number":62,"context_line":"        log_file \u003d \"%s--%s.log\" % ("},{"line_number":63,"context_line":"            self.process_name, datetime.datetime.now().strftime(time_format))"},{"line_number":64,"context_line":"        cmd \u003d [spawn.find_executable(self.exec_name),"}],"source_content_type":"text/x-python","patch_set":3,"id":"3afb71cf_a46c42d1","line":61,"in_reply_to":"5afe65bd_a696f63c","updated":"2015-06-11 18:49:02.000000000","message":"Done","commit_id":"c596e29027485e49f257a17d72b7ae47e9f0950a"},{"author":{"_account_id":12444,"name":"John Schwarz","email":"jschwarz@redhat.com","username":"jschwarz"},"change_message_id":"7a87787b24045352d13a8d7850940ec1e5315dcc","unresolved":false,"context_lines":[{"line_number":164,"context_line":"    def setUp(self):"},{"line_number":165,"context_line":"        super(OVSAgentFixture, self).setUp()"},{"line_number":166,"context_line":""},{"line_number":167,"context_line":"        self.br_int \u003d self.useFixture("},{"line_number":168,"context_line":"            net_helpers.OVSBridgeFixture(self._get_br_int_name())).bridge"},{"line_number":169,"context_line":"        self.br_phys \u003d self.useFixture("},{"line_number":170,"context_line":"            net_helpers.OVSBridgeFixture(self._get_br_phys_name())).bridge"}],"source_content_type":"text/x-python","patch_set":3,"id":"5afe65bd_09c71b65","line":167,"updated":"2015-06-04 14:57:14.000000000","message":"+1","commit_id":"c596e29027485e49f257a17d72b7ae47e9f0950a"}],"neutron/tests/fullstack/resources/config.py":[{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"698b695f24c0f5ffaa98d3845ad56b1281637650","unresolved":false,"context_lines":[{"line_number":175,"context_line":""},{"line_number":176,"context_line":"    def __init__(self, temp_dir):"},{"line_number":177,"context_line":"        super(OVSConfigFixture, self).__init__("},{"line_number":178,"context_line":"            temp_dir, base_filename\u003d\u0027ovs_conf.ini\u0027)"},{"line_number":179,"context_line":""},{"line_number":180,"context_line":"        self.config.update({"},{"line_number":181,"context_line":"            \u0027ovs\u0027: {"}],"source_content_type":"text/x-python","patch_set":17,"id":"3a50d1a3_2f45156e","line":178,"updated":"2015-08-02 12:33:01.000000000","message":"I know that config file names do not really matter that much, but why don\u0027t we follow the name that is usually used for ovs agent (openvswitch_agent.ini that is)?","commit_id":"5bb3c8eb22c92732cec3dac75a706ccb84d615ee"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"709d71a527dc5b8c70bfe7da3f6ad3fb8704ada8","unresolved":false,"context_lines":[{"line_number":175,"context_line":""},{"line_number":176,"context_line":"    def __init__(self, temp_dir):"},{"line_number":177,"context_line":"        super(OVSConfigFixture, self).__init__("},{"line_number":178,"context_line":"            temp_dir, base_filename\u003d\u0027ovs_conf.ini\u0027)"},{"line_number":179,"context_line":""},{"line_number":180,"context_line":"        self.config.update({"},{"line_number":181,"context_line":"            \u0027ovs\u0027: {"}],"source_content_type":"text/x-python","patch_set":17,"id":"1a4dcd0f_ba2beaea","line":178,"in_reply_to":"3a50d1a3_2f45156e","updated":"2015-08-04 14:34:50.000000000","message":"Done","commit_id":"5bb3c8eb22c92732cec3dac75a706ccb84d615ee"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"698b695f24c0f5ffaa98d3845ad56b1281637650","unresolved":false,"context_lines":[{"line_number":226,"context_line":"    def _generate_external_bridge(self):"},{"line_number":227,"context_line":"        return base.get_rand_device_name(prefix\u003d\u0027br-ex\u0027)"},{"line_number":228,"context_line":""},{"line_number":229,"context_line":"    def _get_external_bridge(self):"},{"line_number":230,"context_line":"        return self.config.DEFAULT.external_network_bridge"},{"line_number":231,"context_line":""},{"line_number":232,"context_line":"    def _generate_namespace_suffix(self):"}],"source_content_type":"text/x-python","patch_set":17,"id":"3a50d1a3_9219ec7c","line":229,"updated":"2015-08-02 12:33:01.000000000","message":"Since the method is used from outside, should it be public?","commit_id":"5bb3c8eb22c92732cec3dac75a706ccb84d615ee"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"709d71a527dc5b8c70bfe7da3f6ad3fb8704ada8","unresolved":false,"context_lines":[{"line_number":226,"context_line":"    def _generate_external_bridge(self):"},{"line_number":227,"context_line":"        return base.get_rand_device_name(prefix\u003d\u0027br-ex\u0027)"},{"line_number":228,"context_line":""},{"line_number":229,"context_line":"    def _get_external_bridge(self):"},{"line_number":230,"context_line":"        return self.config.DEFAULT.external_network_bridge"},{"line_number":231,"context_line":""},{"line_number":232,"context_line":"    def _generate_namespace_suffix(self):"}],"source_content_type":"text/x-python","patch_set":17,"id":"1a4dcd0f_3a403aa5","line":229,"in_reply_to":"3a50d1a3_9219ec7c","updated":"2015-08-04 14:34:50.000000000","message":"Correct!","commit_id":"5bb3c8eb22c92732cec3dac75a706ccb84d615ee"}],"neutron/tests/fullstack/resources/environment.py":[{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"2f3ded934015bd407b623b6cf933573b1b228ae5","unresolved":false,"context_lines":[{"line_number":156,"context_line":"        self.neutron_server \u003d self.useFixture("},{"line_number":157,"context_line":"            process.NeutronServerFixture("},{"line_number":158,"context_line":"                self.test_name, self.temp_dir, self.rabbitmq_environment,"},{"line_number":159,"context_line":"                plugin_cfg_fixture))"},{"line_number":160,"context_line":""},{"line_number":161,"context_line":"        self.central_data_bridge \u003d self.useFixture("},{"line_number":162,"context_line":"            net_helpers.OVSBridgeFixture(\u0027cnt-data\u0027)).bridge"}],"source_content_type":"text/x-python","patch_set":13,"id":"9a41bdd9_7749825f","line":159,"updated":"2015-07-15 10:39:34.000000000","message":"Base on comment in process module the code would be following:\n\n temp_dir \u003d ...\n self.rabbitmq_environment \u003d ...\n plugin_cfg_fixture \u003d ...\n neutron_cfg_fixture \u003d self.useFixture(config.NeutronConfigFixutre(\n     temp_dir, self.cfg.CONF.database.connection, self.rabbitmq_environment)\n self.neutron_server \u003d self.useFixture(\n     process.NeutronServerFixture(self.test_name, plugin_cfg_fixture, neutron_cfg_fixture)\n\n\nMakes more sense to me to provide process just config files just like we do with executables.","commit_id":"c8b02136ab7b55694fc55b706a8f22a1049f07f2"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"b5e522d656e41086cb8e46ea90c487743d999532","unresolved":false,"context_lines":[{"line_number":156,"context_line":"        self.neutron_server \u003d self.useFixture("},{"line_number":157,"context_line":"            process.NeutronServerFixture("},{"line_number":158,"context_line":"                self.test_name, self.temp_dir, self.rabbitmq_environment,"},{"line_number":159,"context_line":"                plugin_cfg_fixture))"},{"line_number":160,"context_line":""},{"line_number":161,"context_line":"        self.central_data_bridge \u003d self.useFixture("},{"line_number":162,"context_line":"            net_helpers.OVSBridgeFixture(\u0027cnt-data\u0027)).bridge"}],"source_content_type":"text/x-python","patch_set":13,"id":"9a41bdd9_fc1485e9","line":159,"in_reply_to":"9a41bdd9_7749825f","updated":"2015-07-15 15:59:10.000000000","message":"+","commit_id":"c8b02136ab7b55694fc55b706a8f22a1049f07f2"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"af2b417bca4e51eb18247a37c2ddb4e52842f812","unresolved":false,"context_lines":[{"line_number":156,"context_line":"        self.neutron_server \u003d self.useFixture("},{"line_number":157,"context_line":"            process.NeutronServerFixture("},{"line_number":158,"context_line":"                self.test_name, self.temp_dir, self.rabbitmq_environment,"},{"line_number":159,"context_line":"                plugin_cfg_fixture))"},{"line_number":160,"context_line":""},{"line_number":161,"context_line":"        self.central_data_bridge \u003d self.useFixture("},{"line_number":162,"context_line":"            net_helpers.OVSBridgeFixture(\u0027cnt-data\u0027)).bridge"}],"source_content_type":"text/x-python","patch_set":13,"id":"3a50d1a3_5c945d8b","line":159,"in_reply_to":"9a41bdd9_7749825f","updated":"2015-07-29 22:43:03.000000000","message":"Done","commit_id":"c8b02136ab7b55694fc55b706a8f22a1049f07f2"},{"author":{"_account_id":12444,"name":"John Schwarz","email":"jschwarz@redhat.com","username":"jschwarz"},"change_message_id":"b9a348f6de1cceb56dea77f67921ab38dc68924e","unresolved":false,"context_lines":[{"line_number":25,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":26,"context_line":""},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"class HostEnvironmentAttributes(object):"},{"line_number":29,"context_line":"    def __init__(self, l3_agent\u003dTrue):"},{"line_number":30,"context_line":"        self.l3_agent \u003d l3_agent"},{"line_number":31,"context_line":""}],"source_content_type":"text/x-python","patch_set":14,"id":"3a50d1a3_f2ffa963","line":28,"updated":"2015-07-23 14:45:30.000000000","message":"I think HostEnvironmentAttributes is a bit long and confusing (and should be documented a bit to indicate its exact uses). How about \u0027HostDescriptor\u0027 or \u0027HostDescription\u0027 instead?","commit_id":"d1205e1d97ccc3bef40d755f06b6ac8cdf59b558"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"30e544c4e6c3b114b0e15d2898fa7f0d46b9cb63","unresolved":false,"context_lines":[{"line_number":25,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":26,"context_line":""},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"class HostEnvironmentAttributes(object):"},{"line_number":29,"context_line":"    def __init__(self, l3_agent\u003dTrue):"},{"line_number":30,"context_line":"        self.l3_agent \u003d l3_agent"},{"line_number":31,"context_line":""}],"source_content_type":"text/x-python","patch_set":14,"id":"3a50d1a3_78f401f0","line":28,"in_reply_to":"3a50d1a3_f2ffa963","updated":"2015-07-28 23:38:18.000000000","message":"Done","commit_id":"d1205e1d97ccc3bef40d755f06b6ac8cdf59b558"},{"author":{"_account_id":12444,"name":"John Schwarz","email":"jschwarz@redhat.com","username":"jschwarz"},"change_message_id":"b9a348f6de1cceb56dea77f67921ab38dc68924e","unresolved":false,"context_lines":[{"line_number":30,"context_line":"        self.l3_agent \u003d l3_agent"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"class Host(fixtures.Fixture):"},{"line_number":34,"context_line":"    \"\"\"The Host class models a physical host running agents, all reporting with"},{"line_number":35,"context_line":"    the same hostname."},{"line_number":36,"context_line":""}],"source_content_type":"text/x-python","patch_set":14,"id":"3a50d1a3_b966e4ea","line":33,"updated":"2015-07-23 14:45:30.000000000","message":"Since this mostly does most of the deployment for a single host, HostDeployer might be a more fitting name. I might be wrong though.","commit_id":"d1205e1d97ccc3bef40d755f06b6ac8cdf59b558"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"30e544c4e6c3b114b0e15d2898fa7f0d46b9cb63","unresolved":false,"context_lines":[{"line_number":30,"context_line":"        self.l3_agent \u003d l3_agent"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"class Host(fixtures.Fixture):"},{"line_number":34,"context_line":"    \"\"\"The Host class models a physical host running agents, all reporting with"},{"line_number":35,"context_line":"    the same hostname."},{"line_number":36,"context_line":""}],"source_content_type":"text/x-python","patch_set":14,"id":"3a50d1a3_785961fc","line":33,"in_reply_to":"3a50d1a3_b966e4ea","updated":"2015-07-28 23:38:18.000000000","message":"According to the TODO I wrote at the bottom of the docstring I think that start/stop/restart methods belong to this class as well, I\u0027d like to keep it a generic \u0027Host\u0027 at this point.","commit_id":"d1205e1d97ccc3bef40d755f06b6ac8cdf59b558"},{"author":{"_account_id":12444,"name":"John Schwarz","email":"jschwarz@redhat.com","username":"jschwarz"},"change_message_id":"b9a348f6de1cceb56dea77f67921ab38dc68924e","unresolved":false,"context_lines":[{"line_number":77,"context_line":"                    self.neutron_config.temp_dir,"},{"line_number":78,"context_line":"                    self.neutron_config,"},{"line_number":79,"context_line":"                    self.ovs_agent.agent_cfg_fixture.get_br_int_name()))"},{"line_number":80,"context_line":"            self.connect_to_external_network(self.central_external_bridge)"},{"line_number":81,"context_line":""},{"line_number":82,"context_line":"    def connect_to_internal_network_via_vlans("},{"line_number":83,"context_line":"            self, local_bridge, central_bridge):"}],"source_content_type":"text/x-python","patch_set":14,"id":"3a50d1a3_e5f4c5f1","line":80,"updated":"2015-07-23 14:45:30.000000000","message":"As a rule I think initializing/connecting interfaces should happen before the process is started (specifically move \u0027self.connect_to_external_network\u0027 to before line 74). This is because some processes can have problems initializing if some of the connections that are supposed to be made by the deployment level is not there yet (and it might not at that stage - CPU-scheduler-dependent).\n\nEven if this specifically is not an issue here, I think this should be done as a rule for all resources and processes.","commit_id":"d1205e1d97ccc3bef40d755f06b6ac8cdf59b558"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"30e544c4e6c3b114b0e15d2898fa7f0d46b9cb63","unresolved":false,"context_lines":[{"line_number":77,"context_line":"                    self.neutron_config.temp_dir,"},{"line_number":78,"context_line":"                    self.neutron_config,"},{"line_number":79,"context_line":"                    self.ovs_agent.agent_cfg_fixture.get_br_int_name()))"},{"line_number":80,"context_line":"            self.connect_to_external_network(self.central_external_bridge)"},{"line_number":81,"context_line":""},{"line_number":82,"context_line":"    def connect_to_internal_network_via_vlans("},{"line_number":83,"context_line":"            self, local_bridge, central_bridge):"}],"source_content_type":"text/x-python","patch_set":14,"id":"3a50d1a3_d8d99523","line":80,"in_reply_to":"3a50d1a3_e5f4c5f1","updated":"2015-07-28 23:38:18.000000000","message":"\u003e Even if this specifically is not an issue here, I think this should be done as a rule for all resources and processes.\n\nAgreed.","commit_id":"d1205e1d97ccc3bef40d755f06b6ac8cdf59b558"},{"author":{"_account_id":12444,"name":"John Schwarz","email":"jschwarz@redhat.com","username":"jschwarz"},"change_message_id":"b9a348f6de1cceb56dea77f67921ab38dc68924e","unresolved":false,"context_lines":[{"line_number":107,"context_line":""},{"line_number":108,"context_line":"class Environment(fixtures.Fixture):"},{"line_number":109,"context_line":"    def __init__(self, host_attributes):"},{"line_number":110,"context_line":"        \"\"\"Represents a deployment topology."},{"line_number":111,"context_line":""},{"line_number":112,"context_line":"        Environment is a collection of hosts. It starts a Neutron server"},{"line_number":113,"context_line":"        and a parametrized number of Hosts, each a collection of agents."}],"source_content_type":"text/x-python","patch_set":14,"id":"3a50d1a3_05f1b16a","line":110,"updated":"2015-07-23 14:45:30.000000000","message":"This docstring (up until and not including \u0027:param ...\u0027 should be the class\u0027 docstring and not the constructor\u0027s.","commit_id":"d1205e1d97ccc3bef40d755f06b6ac8cdf59b558"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"30e544c4e6c3b114b0e15d2898fa7f0d46b9cb63","unresolved":false,"context_lines":[{"line_number":107,"context_line":""},{"line_number":108,"context_line":"class Environment(fixtures.Fixture):"},{"line_number":109,"context_line":"    def __init__(self, host_attributes):"},{"line_number":110,"context_line":"        \"\"\"Represents a deployment topology."},{"line_number":111,"context_line":""},{"line_number":112,"context_line":"        Environment is a collection of hosts. It starts a Neutron server"},{"line_number":113,"context_line":"        and a parametrized number of Hosts, each a collection of agents."}],"source_content_type":"text/x-python","patch_set":14,"id":"3a50d1a3_b8092997","line":110,"in_reply_to":"3a50d1a3_05f1b16a","updated":"2015-07-28 23:38:18.000000000","message":"Done","commit_id":"d1205e1d97ccc3bef40d755f06b6ac8cdf59b558"},{"author":{"_account_id":12444,"name":"John Schwarz","email":"jschwarz@redhat.com","username":"jschwarz"},"change_message_id":"b9a348f6de1cceb56dea77f67921ab38dc68924e","unresolved":false,"context_lines":[{"line_number":115,"context_line":"        what agents to activate on each one. It is also intended for per-host"},{"line_number":116,"context_line":"        parameters such as the L3 agent mode (legacy, dvr or dvr_snat)."},{"line_number":117,"context_line":""},{"line_number":118,"context_line":"        :param host_attributes: A list of HostEnvironmentAttributes instances."},{"line_number":119,"context_line":"        \"\"\""},{"line_number":120,"context_line":""},{"line_number":121,"context_line":"        super(Environment, self).__init__()"}],"source_content_type":"text/x-python","patch_set":14,"id":"3a50d1a3_9c452144","line":118,"updated":"2015-07-23 14:45:30.000000000","message":"Please rename \u0027host_attributes\u0027 to \u0027hosts_attributes\u0027. This is confusing considering that \u0027Host\u0027 receives a single instance of type HostEnvironmentAttributes using a variable also called \u0027host_attributes\u0027.","commit_id":"d1205e1d97ccc3bef40d755f06b6ac8cdf59b558"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"30e544c4e6c3b114b0e15d2898fa7f0d46b9cb63","unresolved":false,"context_lines":[{"line_number":115,"context_line":"        what agents to activate on each one. It is also intended for per-host"},{"line_number":116,"context_line":"        parameters such as the L3 agent mode (legacy, dvr or dvr_snat)."},{"line_number":117,"context_line":""},{"line_number":118,"context_line":"        :param host_attributes: A list of HostEnvironmentAttributes instances."},{"line_number":119,"context_line":"        \"\"\""},{"line_number":120,"context_line":""},{"line_number":121,"context_line":"        super(Environment, self).__init__()"}],"source_content_type":"text/x-python","patch_set":14,"id":"3a50d1a3_18fb7d7a","line":118,"in_reply_to":"3a50d1a3_9c452144","updated":"2015-07-28 23:38:18.000000000","message":"Done","commit_id":"d1205e1d97ccc3bef40d755f06b6ac8cdf59b558"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"698b695f24c0f5ffaa98d3845ad56b1281637650","unresolved":false,"context_lines":[{"line_number":35,"context_line":""},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"class Host(fixtures.Fixture):"},{"line_number":38,"context_line":"    \"\"\"The Host class models a physical host running agents, all reporting with"},{"line_number":39,"context_line":"    the same hostname."},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"    OpenStack installers or administrators connect compute nodes to the"}],"source_content_type":"text/x-python","patch_set":17,"id":"3a50d1a3_d2af74e1","line":38,"updated":"2015-08-02 12:33:01.000000000","message":"Since it maintains agents only, should the name of the class be more specific about it? Otherwise, someone could expect e.g. neutron-server to be managed by one of Hosts.","commit_id":"5bb3c8eb22c92732cec3dac75a706ccb84d615ee"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"190d6a1125c456565e596c288bb15a59b32af89a","unresolved":false,"context_lines":[{"line_number":35,"context_line":""},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"class Host(fixtures.Fixture):"},{"line_number":38,"context_line":"    \"\"\"The Host class models a physical host running agents, all reporting with"},{"line_number":39,"context_line":"    the same hostname."},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"    OpenStack installers or administrators connect compute nodes to the"}],"source_content_type":"text/x-python","patch_set":17,"id":"1a4dcd0f_a740aaa6","line":38,"in_reply_to":"1a4dcd0f_1c2771b7","updated":"2015-08-04 14:40:42.000000000","message":"OK, if you envision neutron-server in the host, then it\u0027s fine. Maybe docstring should be cleaned up from strict references to agents and instead use term \u0027service\u0027, but I don\u0027t mind much.","commit_id":"5bb3c8eb22c92732cec3dac75a706ccb84d615ee"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"709d71a527dc5b8c70bfe7da3f6ad3fb8704ada8","unresolved":false,"context_lines":[{"line_number":35,"context_line":""},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"class Host(fixtures.Fixture):"},{"line_number":38,"context_line":"    \"\"\"The Host class models a physical host running agents, all reporting with"},{"line_number":39,"context_line":"    the same hostname."},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"    OpenStack installers or administrators connect compute nodes to the"}],"source_content_type":"text/x-python","patch_set":17,"id":"1a4dcd0f_1c2771b7","line":38,"in_reply_to":"3a50d1a3_d2af74e1","updated":"2015-08-04 14:34:50.000000000","message":"It\u0027s a fair point. I want it to be more generic than \u0027AgentsGroup\u0027 or similar because in my mind this class models a host, and so I put the connect methods here (And in a later patch the disconnect method).\n\nRight now the Neutron servers belongs to the environment and not to a Host. If at some point we\u0027ll want tests that target multiple Neutron servers then we can move the server to a host, but right now it doesn\u0027t make sense to me.\n\nSo, I understand the problem but I don\u0027t know exactly what to do about it at this point. Thoughts?","commit_id":"5bb3c8eb22c92732cec3dac75a706ccb84d615ee"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"698b695f24c0f5ffaa98d3845ad56b1281637650","unresolved":false,"context_lines":[{"line_number":89,"context_line":"                    self.neutron_config,"},{"line_number":90,"context_line":"                    l3_agent_cfg_fixture))"},{"line_number":91,"context_line":""},{"line_number":92,"context_line":"    def connect_to_internal_network_via_vlans("},{"line_number":93,"context_line":"            self, local_bridge, central_bridge):"},{"line_number":94,"context_line":"        # If using VLANs as a segmentation device, it\u0027s needed to connect"},{"line_number":95,"context_line":"        # a provider bridge to a centralized, shared bridge."}],"source_content_type":"text/x-python","patch_set":17,"id":"3a50d1a3_720a20d4","line":92,"updated":"2015-08-02 12:33:01.000000000","message":"What\u0027s the point of having it as an object method if it does not use self? Shouldn\u0027t we instead allow it to receive the centralized bridge from self?","commit_id":"5bb3c8eb22c92732cec3dac75a706ccb84d615ee"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"709d71a527dc5b8c70bfe7da3f6ad3fb8704ada8","unresolved":false,"context_lines":[{"line_number":89,"context_line":"                    self.neutron_config,"},{"line_number":90,"context_line":"                    l3_agent_cfg_fixture))"},{"line_number":91,"context_line":""},{"line_number":92,"context_line":"    def connect_to_internal_network_via_vlans("},{"line_number":93,"context_line":"            self, local_bridge, central_bridge):"},{"line_number":94,"context_line":"        # If using VLANs as a segmentation device, it\u0027s needed to connect"},{"line_number":95,"context_line":"        # a provider bridge to a centralized, shared bridge."}],"source_content_type":"text/x-python","patch_set":17,"id":"1a4dcd0f_5ca0999f","line":92,"in_reply_to":"3a50d1a3_720a20d4","updated":"2015-08-04 14:34:50.000000000","message":"I changed it to use self.central_data_bridge instead of receiving the central bridge (It was passing in self.central_data_bridge), so now this method uses self and it\u0027s consistent with the method below.","commit_id":"5bb3c8eb22c92732cec3dac75a706ccb84d615ee"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"698b695f24c0f5ffaa98d3845ad56b1281637650","unresolved":false,"context_lines":[{"line_number":95,"context_line":"        # a provider bridge to a centralized, shared bridge."},{"line_number":96,"context_line":"        net_helpers.create_patch_ports(local_bridge, central_bridge)"},{"line_number":97,"context_line":""},{"line_number":98,"context_line":"    def connect_to_external_network(self, l3_bridge):"},{"line_number":99,"context_line":"        net_helpers.create_patch_ports(self.central_external_bridge, l3_bridge)"},{"line_number":100,"context_line":""},{"line_number":101,"context_line":"    @property"}],"source_content_type":"text/x-python","patch_set":17,"id":"3a50d1a3_f292b056","line":98,"updated":"2015-08-02 12:33:01.000000000","message":"should the parameter be named as l3_bridge and not just bridge or smth?","commit_id":"5bb3c8eb22c92732cec3dac75a706ccb84d615ee"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"709d71a527dc5b8c70bfe7da3f6ad3fb8704ada8","unresolved":false,"context_lines":[{"line_number":95,"context_line":"        # a provider bridge to a centralized, shared bridge."},{"line_number":96,"context_line":"        net_helpers.create_patch_ports(local_bridge, central_bridge)"},{"line_number":97,"context_line":""},{"line_number":98,"context_line":"    def connect_to_external_network(self, l3_bridge):"},{"line_number":99,"context_line":"        net_helpers.create_patch_ports(self.central_external_bridge, l3_bridge)"},{"line_number":100,"context_line":""},{"line_number":101,"context_line":"    @property"}],"source_content_type":"text/x-python","patch_set":17,"id":"1a4dcd0f_5cae5986","line":98,"in_reply_to":"3a50d1a3_f292b056","updated":"2015-08-04 14:34:50.000000000","message":"I think you diffed with PS13, I changed this to l3_bridge since. I\u0027ll change this to host_external_bridge though.","commit_id":"5bb3c8eb22c92732cec3dac75a706ccb84d615ee"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"698b695f24c0f5ffaa98d3845ad56b1281637650","unresolved":false,"context_lines":[{"line_number":120,"context_line":""},{"line_number":121,"context_line":"    Environment is a collection of hosts. It starts a Neutron server"},{"line_number":122,"context_line":"    and a parametrized number of Hosts, each a collection of agents."},{"line_number":123,"context_line":"    The Environment accepts a collection of per-host attributes such as"},{"line_number":124,"context_line":"    what agents to activate on each one. It is also intended for per-host"},{"line_number":125,"context_line":"    parameters such as the L3 agent mode (legacy, dvr or dvr_snat)."},{"line_number":126,"context_line":"    \"\"\""}],"source_content_type":"text/x-python","patch_set":17,"id":"3a50d1a3_127e3c1b","line":123,"updated":"2015-08-02 12:33:01.000000000","message":"should this reflect the new name of the parameter?","commit_id":"5bb3c8eb22c92732cec3dac75a706ccb84d615ee"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"709d71a527dc5b8c70bfe7da3f6ad3fb8704ada8","unresolved":false,"context_lines":[{"line_number":120,"context_line":""},{"line_number":121,"context_line":"    Environment is a collection of hosts. It starts a Neutron server"},{"line_number":122,"context_line":"    and a parametrized number of Hosts, each a collection of agents."},{"line_number":123,"context_line":"    The Environment accepts a collection of per-host attributes such as"},{"line_number":124,"context_line":"    what agents to activate on each one. It is also intended for per-host"},{"line_number":125,"context_line":"    parameters such as the L3 agent mode (legacy, dvr or dvr_snat)."},{"line_number":126,"context_line":"    \"\"\""}],"source_content_type":"text/x-python","patch_set":17,"id":"1a4dcd0f_476206af","line":123,"in_reply_to":"3a50d1a3_127e3c1b","updated":"2015-08-04 14:34:50.000000000","message":"Done","commit_id":"5bb3c8eb22c92732cec3dac75a706ccb84d615ee"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"698b695f24c0f5ffaa98d3845ad56b1281637650","unresolved":false,"context_lines":[{"line_number":127,"context_line":""},{"line_number":128,"context_line":"    def __init__(self, hosts_descriptors):"},{"line_number":129,"context_line":"        \"\"\""},{"line_number":130,"context_line":"        :param hosts_descriptors: A list of HostDescriptor instances."},{"line_number":131,"context_line":"        \"\"\""},{"line_number":132,"context_line":""},{"line_number":133,"context_line":"        super(Environment, self).__init__()"}],"source_content_type":"text/x-python","patch_set":17,"id":"3a50d1a3_32833805","line":130,"updated":"2015-08-02 12:33:01.000000000","message":"It\u0027s HostDescription. Consider using identical terms everywhere, for attributes and in docstrings too.","commit_id":"5bb3c8eb22c92732cec3dac75a706ccb84d615ee"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"709d71a527dc5b8c70bfe7da3f6ad3fb8704ada8","unresolved":false,"context_lines":[{"line_number":127,"context_line":""},{"line_number":128,"context_line":"    def __init__(self, hosts_descriptors):"},{"line_number":129,"context_line":"        \"\"\""},{"line_number":130,"context_line":"        :param hosts_descriptors: A list of HostDescriptor instances."},{"line_number":131,"context_line":"        \"\"\""},{"line_number":132,"context_line":""},{"line_number":133,"context_line":"        super(Environment, self).__init__()"}],"source_content_type":"text/x-python","patch_set":17,"id":"1a4dcd0f_675622d4","line":130,"in_reply_to":"3a50d1a3_32833805","updated":"2015-08-04 14:34:50.000000000","message":"Done. I think I whacked them all.","commit_id":"5bb3c8eb22c92732cec3dac75a706ccb84d615ee"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"698b695f24c0f5ffaa98d3845ad56b1281637650","unresolved":false,"context_lines":[{"line_number":179,"context_line":"        self.central_external_bridge \u003d self.useFixture("},{"line_number":180,"context_line":"            net_helpers.OVSBridgeFixture(\u0027cnt-ex\u0027)).bridge"},{"line_number":181,"context_line":""},{"line_number":182,"context_line":"        self.hosts \u003d [self._create_host(attributes) for attributes in"},{"line_number":183,"context_line":"                      self.hosts_descriptors]"},{"line_number":184,"context_line":""},{"line_number":185,"context_line":"        self.wait_until_env_is_up()"}],"source_content_type":"text/x-python","patch_set":17,"id":"3a50d1a3_d27c5422","line":182,"updated":"2015-08-02 12:33:01.000000000","message":"should those variables also refer to descriptions/descriptors?","commit_id":"5bb3c8eb22c92732cec3dac75a706ccb84d615ee"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"709d71a527dc5b8c70bfe7da3f6ad3fb8704ada8","unresolved":false,"context_lines":[{"line_number":179,"context_line":"        self.central_external_bridge \u003d self.useFixture("},{"line_number":180,"context_line":"            net_helpers.OVSBridgeFixture(\u0027cnt-ex\u0027)).bridge"},{"line_number":181,"context_line":""},{"line_number":182,"context_line":"        self.hosts \u003d [self._create_host(attributes) for attributes in"},{"line_number":183,"context_line":"                      self.hosts_descriptors]"},{"line_number":184,"context_line":""},{"line_number":185,"context_line":"        self.wait_until_env_is_up()"}],"source_content_type":"text/x-python","patch_set":17,"id":"1a4dcd0f_4709a6dc","line":182,"in_reply_to":"3a50d1a3_d27c5422","updated":"2015-08-04 14:34:50.000000000","message":"The answer is yes.","commit_id":"5bb3c8eb22c92732cec3dac75a706ccb84d615ee"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"0feeca1a96262a87def0de5620c8cc9868665caa","unresolved":false,"context_lines":[{"line_number":126,"context_line":""},{"line_number":127,"context_line":"    def __init__(self, hosts_descriptions):"},{"line_number":128,"context_line":"        \"\"\""},{"line_number":129,"context_line":"        :param hosts_descriptors: A list of HostDescriptor instances."},{"line_number":130,"context_line":"        \"\"\""},{"line_number":131,"context_line":""},{"line_number":132,"context_line":"        super(Environment, self).__init__()"}],"source_content_type":"text/x-python","patch_set":18,"id":"1a4dcd0f_cf3044a1","line":129,"updated":"2015-08-05 07:51:19.000000000","message":"meh...","commit_id":"e951ece01da2361e71574748f0529b7987183af1"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"a472ee7a298206cb6cb5a34cd99917ee6479b013","unresolved":false,"context_lines":[{"line_number":126,"context_line":""},{"line_number":127,"context_line":"    def __init__(self, hosts_descriptions):"},{"line_number":128,"context_line":"        \"\"\""},{"line_number":129,"context_line":"        :param hosts_descriptors: A list of HostDescriptor instances."},{"line_number":130,"context_line":"        \"\"\""},{"line_number":131,"context_line":""},{"line_number":132,"context_line":"        super(Environment, self).__init__()"}],"source_content_type":"text/x-python","patch_set":18,"id":"1a4dcd0f_ef774038","line":129,"in_reply_to":"1a4dcd0f_cf3044a1","updated":"2015-08-05 07:54:35.000000000","message":"Done","commit_id":"e951ece01da2361e71574748f0529b7987183af1"}],"neutron/tests/fullstack/resources/process.py":[{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"2f3ded934015bd407b623b6cf933573b1b228ae5","unresolved":false,"context_lines":[{"line_number":95,"context_line":"                 plugin_cfg_fixture):"},{"line_number":96,"context_line":"        self.test_name \u003d test_name"},{"line_number":97,"context_line":"        self.temp_dir \u003d temp_dir"},{"line_number":98,"context_line":"        self.rabbitmq_environment \u003d rabbitmq_environment"},{"line_number":99,"context_line":"        self.plugin_cfg_fixture \u003d plugin_cfg_fixture"},{"line_number":100,"context_line":""},{"line_number":101,"context_line":"    def _setUp(self):"}],"source_content_type":"text/x-python","patch_set":13,"id":"9a41bdd9_177116a8","line":98,"updated":"2015-07-15 10:39:34.000000000","message":"Based on comment below L97 and L98 above won\u0027t be needed.","commit_id":"c8b02136ab7b55694fc55b706a8f22a1049f07f2"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"af2b417bca4e51eb18247a37c2ddb4e52842f812","unresolved":false,"context_lines":[{"line_number":95,"context_line":"                 plugin_cfg_fixture):"},{"line_number":96,"context_line":"        self.test_name \u003d test_name"},{"line_number":97,"context_line":"        self.temp_dir \u003d temp_dir"},{"line_number":98,"context_line":"        self.rabbitmq_environment \u003d rabbitmq_environment"},{"line_number":99,"context_line":"        self.plugin_cfg_fixture \u003d plugin_cfg_fixture"},{"line_number":100,"context_line":""},{"line_number":101,"context_line":"    def _setUp(self):"}],"source_content_type":"text/x-python","patch_set":13,"id":"3a50d1a3_1c8ed579","line":98,"in_reply_to":"9a41bdd9_177116a8","updated":"2015-07-29 22:43:03.000000000","message":"Done","commit_id":"c8b02136ab7b55694fc55b706a8f22a1049f07f2"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"2f3ded934015bd407b623b6cf933573b1b228ae5","unresolved":false,"context_lines":[{"line_number":99,"context_line":"        self.plugin_cfg_fixture \u003d plugin_cfg_fixture"},{"line_number":100,"context_line":""},{"line_number":101,"context_line":"    def _setUp(self):"},{"line_number":102,"context_line":"        self.neutron_cfg_fixture \u003d config.NeutronConfigFixture("},{"line_number":103,"context_line":"            self.temp_dir, cfg.CONF.database.connection,"},{"line_number":104,"context_line":"            self.rabbitmq_environment)"},{"line_number":105,"context_line":""}],"source_content_type":"text/x-python","patch_set":13,"id":"9a41bdd9_ece5c9a3","line":102,"updated":"2015-07-15 10:39:34.000000000","message":"Can we do the same with neutron_cfg_fixture as what we do with plugin_cfg_fixture?","commit_id":"c8b02136ab7b55694fc55b706a8f22a1049f07f2"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"af2b417bca4e51eb18247a37c2ddb4e52842f812","unresolved":false,"context_lines":[{"line_number":99,"context_line":"        self.plugin_cfg_fixture \u003d plugin_cfg_fixture"},{"line_number":100,"context_line":""},{"line_number":101,"context_line":"    def _setUp(self):"},{"line_number":102,"context_line":"        self.neutron_cfg_fixture \u003d config.NeutronConfigFixture("},{"line_number":103,"context_line":"            self.temp_dir, cfg.CONF.database.connection,"},{"line_number":104,"context_line":"            self.rabbitmq_environment)"},{"line_number":105,"context_line":""}],"source_content_type":"text/x-python","patch_set":13,"id":"3a50d1a3_3c8b916a","line":102,"in_reply_to":"9a41bdd9_10490db7","updated":"2015-07-29 22:43:03.000000000","message":"Done","commit_id":"c8b02136ab7b55694fc55b706a8f22a1049f07f2"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"b5e522d656e41086cb8e46ea90c487743d999532","unresolved":false,"context_lines":[{"line_number":99,"context_line":"        self.plugin_cfg_fixture \u003d plugin_cfg_fixture"},{"line_number":100,"context_line":""},{"line_number":101,"context_line":"    def _setUp(self):"},{"line_number":102,"context_line":"        self.neutron_cfg_fixture \u003d config.NeutronConfigFixture("},{"line_number":103,"context_line":"            self.temp_dir, cfg.CONF.database.connection,"},{"line_number":104,"context_line":"            self.rabbitmq_environment)"},{"line_number":105,"context_line":""}],"source_content_type":"text/x-python","patch_set":13,"id":"9a41bdd9_10490db7","line":102,"in_reply_to":"9a41bdd9_ece5c9a3","updated":"2015-07-15 15:59:10.000000000","message":"Indeed it seems a bit mixed now that we pass plugin conf but not server conf to neutron-server.","commit_id":"c8b02136ab7b55694fc55b706a8f22a1049f07f2"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"b5e522d656e41086cb8e46ea90c487743d999532","unresolved":false,"context_lines":[{"line_number":137,"context_line":"    NEUTRON_OVS_AGENT \u003d \"neutron-openvswitch-agent\""},{"line_number":138,"context_line":""},{"line_number":139,"context_line":"    def __init__(self, test_name, neutron_cfg_fixture, agent_cfg_fixture,"},{"line_number":140,"context_line":"                 br_phys\u003dNone):"},{"line_number":141,"context_line":"        self.test_name \u003d test_name"},{"line_number":142,"context_line":"        self.neutron_cfg_fixture \u003d neutron_cfg_fixture"},{"line_number":143,"context_line":"        self.neutron_config \u003d self.neutron_cfg_fixture.config"}],"source_content_type":"text/x-python","patch_set":13,"id":"9a41bdd9_f0058913","line":140,"updated":"2015-07-15 15:59:10.000000000","message":"Not sure where br_phys is used.","commit_id":"c8b02136ab7b55694fc55b706a8f22a1049f07f2"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"dbed3bcaf50a138a515dee3e647de5a26b059182","unresolved":false,"context_lines":[{"line_number":100,"context_line":"        self.plugin_cfg_fixture \u003d plugin_cfg_fixture"},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"    def _setUp(self):"},{"line_number":103,"context_line":"        self.neutron_cfg_fixture \u003d config.NeutronConfigFixture("},{"line_number":104,"context_line":"            self.temp_dir, cfg.CONF.database.connection,"},{"line_number":105,"context_line":"            self.rabbitmq_environment)"},{"line_number":106,"context_line":""}],"source_content_type":"text/x-python","patch_set":15,"id":"3a50d1a3_d7a28dad","line":103,"updated":"2015-07-29 20:22:59.000000000","message":"Please see comments in PS13","commit_id":"0e519ce966487cb4f738c3ac061cd687c3dd66da"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"7ecf9be95e29c45a06e9d541677fad36dd9d9bfe","unresolved":false,"context_lines":[{"line_number":100,"context_line":"        self.plugin_cfg_fixture \u003d plugin_cfg_fixture"},{"line_number":101,"context_line":""},{"line_number":102,"context_line":"    def _setUp(self):"},{"line_number":103,"context_line":"        self.neutron_cfg_fixture \u003d config.NeutronConfigFixture("},{"line_number":104,"context_line":"            self.temp_dir, cfg.CONF.database.connection,"},{"line_number":105,"context_line":"            self.rabbitmq_environment)"},{"line_number":106,"context_line":""}],"source_content_type":"text/x-python","patch_set":15,"id":"3a50d1a3_701dbf0d","line":103,"in_reply_to":"3a50d1a3_d7a28dad","updated":"2015-07-29 21:20:20.000000000","message":"Sorry about that I missed those comments.","commit_id":"0e519ce966487cb4f738c3ac061cd687c3dd66da"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"698b695f24c0f5ffaa98d3845ad56b1281637650","unresolved":false,"context_lines":[{"line_number":61,"context_line":"        self.process.start(block\u003dTrue)"},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"    def stop(self):"},{"line_number":64,"context_line":"        self.process.stop(block\u003dTrue)"},{"line_number":65,"context_line":""},{"line_number":66,"context_line":""},{"line_number":67,"context_line":"class RabbitmqEnvironmentFixture(fixtures.Fixture):"}],"source_content_type":"text/x-python","patch_set":17,"id":"3a50d1a3_528fe422","line":64,"updated":"2015-08-02 12:33:01.000000000","message":"So what if start hasn\u0027t reached self.process setting? Will we crash here with AttributeError?","commit_id":"5bb3c8eb22c92732cec3dac75a706ccb84d615ee"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"709d71a527dc5b8c70bfe7da3f6ad3fb8704ada8","unresolved":false,"context_lines":[{"line_number":61,"context_line":"        self.process.start(block\u003dTrue)"},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"    def stop(self):"},{"line_number":64,"context_line":"        self.process.stop(block\u003dTrue)"},{"line_number":65,"context_line":""},{"line_number":66,"context_line":""},{"line_number":67,"context_line":"class RabbitmqEnvironmentFixture(fixtures.Fixture):"}],"source_content_type":"text/x-python","patch_set":17,"id":"1a4dcd0f_f39f5d5d","line":64,"in_reply_to":"3a50d1a3_528fe422","updated":"2015-08-04 14:34:50.000000000","message":"I reversed lines 46 and 47. It should arguably be in a separate patch but it\u0027ll add non-trivial overhead which I\u0027d like to try and avoid.","commit_id":"5bb3c8eb22c92732cec3dac75a706ccb84d615ee"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"698b695f24c0f5ffaa98d3845ad56b1281637650","unresolved":false,"context_lines":[{"line_number":126,"context_line":"    NEUTRON_OVS_AGENT \u003d \"neutron-openvswitch-agent\""},{"line_number":127,"context_line":""},{"line_number":128,"context_line":"    def __init__(self, test_name, neutron_cfg_fixture, agent_cfg_fixture,"},{"line_number":129,"context_line":"                 br_phys\u003dNone):"},{"line_number":130,"context_line":"        self.test_name \u003d test_name"},{"line_number":131,"context_line":"        self.neutron_cfg_fixture \u003d neutron_cfg_fixture"},{"line_number":132,"context_line":"        self.neutron_config \u003d self.neutron_cfg_fixture.config"}],"source_content_type":"text/x-python","patch_set":17,"id":"3a50d1a3_efd88df1","line":129,"updated":"2015-08-02 12:33:01.000000000","message":"So where is that argument used?","commit_id":"5bb3c8eb22c92732cec3dac75a706ccb84d615ee"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"709d71a527dc5b8c70bfe7da3f6ad3fb8704ada8","unresolved":false,"context_lines":[{"line_number":126,"context_line":"    NEUTRON_OVS_AGENT \u003d \"neutron-openvswitch-agent\""},{"line_number":127,"context_line":""},{"line_number":128,"context_line":"    def __init__(self, test_name, neutron_cfg_fixture, agent_cfg_fixture,"},{"line_number":129,"context_line":"                 br_phys\u003dNone):"},{"line_number":130,"context_line":"        self.test_name \u003d test_name"},{"line_number":131,"context_line":"        self.neutron_cfg_fixture \u003d neutron_cfg_fixture"},{"line_number":132,"context_line":"        self.neutron_config \u003d self.neutron_cfg_fixture.config"}],"source_content_type":"text/x-python","patch_set":17,"id":"1a4dcd0f_13d9a921","line":129,"in_reply_to":"3a50d1a3_efd88df1","updated":"2015-08-04 14:34:50.000000000","message":"I seem to have missed your comment from PS13, twice. Sorry about that!","commit_id":"5bb3c8eb22c92732cec3dac75a706ccb84d615ee"}],"neutron/tests/fullstack/test_l3_agent.py":[{"author":{"_account_id":12444,"name":"John Schwarz","email":"jschwarz@redhat.com","username":"jschwarz"},"change_message_id":"7a87787b24045352d13a8d7850940ec1e5315dcc","unresolved":false,"context_lines":[{"line_number":93,"context_line":"            functools.partial("},{"line_number":94,"context_line":"                self._is_ha_router_active_on_one_agent,"},{"line_number":95,"context_line":"                router[\u0027router\u0027][\u0027id\u0027]),"},{"line_number":96,"context_line":"            timeout\u003d180)"},{"line_number":97,"context_line":""},{"line_number":98,"context_line":"        self.client.delete_router(router[\u0027router\u0027][\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":3,"id":"5afe65bd_89fc2b73","line":96,"updated":"2015-06-04 14:57:14.000000000","message":"Can we add a check that the actual \u0027state\u0027 files are also valid?\n\n(no action needed) a further test might want add a FakeMachine and check connectivity.","commit_id":"c596e29027485e49f257a17d72b7ae47e9f0950a"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"dcb2d276d9672d34d76d58fa9cf4890d0f219d4c","unresolved":false,"context_lines":[{"line_number":93,"context_line":"            functools.partial("},{"line_number":94,"context_line":"                self._is_ha_router_active_on_one_agent,"},{"line_number":95,"context_line":"                router[\u0027router\u0027][\u0027id\u0027]),"},{"line_number":96,"context_line":"            timeout\u003d180)"},{"line_number":97,"context_line":""},{"line_number":98,"context_line":"        self.client.delete_router(router[\u0027router\u0027][\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":3,"id":"3afb71cf_5e7afc24","line":96,"in_reply_to":"5afe65bd_89fc2b73","updated":"2015-06-11 18:49:02.000000000","message":"This test is as simple as could be in this patch and I\u0027d like to keep it that way, for now. Future steps include connectivity testing under different scenarios.","commit_id":"c596e29027485e49f257a17d72b7ae47e9f0950a"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"ddaa90024fb1aa37f4d05ee6a4a2584b69382d21","unresolved":false,"context_lines":[{"line_number":95,"context_line":"                router[\u0027router\u0027][\u0027id\u0027]),"},{"line_number":96,"context_line":"            timeout\u003d180)"},{"line_number":97,"context_line":""},{"line_number":98,"context_line":"        self.client.delete_router(router[\u0027router\u0027][\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":3,"id":"5afe65bd_cf80dec2","line":98,"updated":"2015-06-04 17:18:17.000000000","message":"If wait_until_true fails then we don\u0027t delete router namespace? If so, we should define a cleanup afterrouter creation","commit_id":"c596e29027485e49f257a17d72b7ae47e9f0950a"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"dcb2d276d9672d34d76d58fa9cf4890d0f219d4c","unresolved":false,"context_lines":[{"line_number":95,"context_line":"                router[\u0027router\u0027][\u0027id\u0027]),"},{"line_number":96,"context_line":"            timeout\u003d180)"},{"line_number":97,"context_line":""},{"line_number":98,"context_line":"        self.client.delete_router(router[\u0027router\u0027][\u0027id\u0027])"}],"source_content_type":"text/x-python","patch_set":3,"id":"3afb71cf_fe064884","line":98,"in_reply_to":"5afe65bd_cf80dec2","updated":"2015-06-11 18:49:02.000000000","message":"Resource clean up is honestly messed up with full stack tests. Look at the existing test above, it suffers from the safe issue. Resources aren\u0027t actually cleared if the test *passes* because we kill the L3 agent before it has a chance to delete a router. We have an open bug here:\nhttps://bugs.launchpad.net/neutron/+bug/1452935\n\nWe can add wrappers around client create operations that automatically call addCleanup or some other generic solution. I haven\u0027t given this too much thought yet. Handling signal 15 in our agents seems to make sense for start.","commit_id":"c596e29027485e49f257a17d72b7ae47e9f0950a"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"a044e00d2a112e0ddb8bd499431db76080c6d6cb","unresolved":false,"context_lines":[{"line_number":82,"context_line":"    def _is_ha_router_active_on_one_agent(self, router_id):"},{"line_number":83,"context_line":"        result \u003d self.client.list_l3_agent_hosting_routers(router_id)"},{"line_number":84,"context_line":"        return ("},{"line_number":85,"context_line":"            result[\u0027agents\u0027][0][\u0027ha_state\u0027] !\u003d result[\u0027agents\u0027][1][\u0027ha_state\u0027])"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"    def test_ha_router(self):"},{"line_number":88,"context_line":"        router \u003d self.client.create_router("}],"source_content_type":"text/x-python","patch_set":6,"id":"fa32b979_7b301c57","line":85,"updated":"2015-06-15 10:58:11.000000000","message":"Should we catch IndexError and raise more meaningful message in case router is scheduled on just one agent?","commit_id":"7cf117c70bad1a1d6f99b383192905560979c5e9"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"2530895d8a93a9fc0af071ca2310dcd9790277b7","unresolved":false,"context_lines":[{"line_number":82,"context_line":"    def _is_ha_router_active_on_one_agent(self, router_id):"},{"line_number":83,"context_line":"        result \u003d self.client.list_l3_agent_hosting_routers(router_id)"},{"line_number":84,"context_line":"        return ("},{"line_number":85,"context_line":"            result[\u0027agents\u0027][0][\u0027ha_state\u0027] !\u003d result[\u0027agents\u0027][1][\u0027ha_state\u0027])"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"    def test_ha_router(self):"},{"line_number":88,"context_line":"        router \u003d self.client.create_router("}],"source_content_type":"text/x-python","patch_set":6,"id":"fa32b979_fa12c661","line":85,"in_reply_to":"fa32b979_7b301c57","updated":"2015-06-15 23:24:17.000000000","message":"Done","commit_id":"7cf117c70bad1a1d6f99b383192905560979c5e9"},{"author":{"_account_id":7921,"name":"Mike Kolesnik","email":"mkolesni@redhat.com","username":"mkolesni"},"change_message_id":"2e25d8a3831a1e69b190e53b8b1ab9333c84eed1","unresolved":false,"context_lines":[{"line_number":88,"context_line":""},{"line_number":89,"context_line":"    def _is_ha_router_active_on_one_agent(self, router_id):"},{"line_number":90,"context_line":"        result \u003d self.client.list_l3_agent_hosting_routers(router_id)"},{"line_number":91,"context_line":"        self.assertEqual(2, len(result[\u0027agents\u0027]),"},{"line_number":92,"context_line":"                         \u0027HA router must be scheduled on both nodes\u0027)"},{"line_number":93,"context_line":"        return ("},{"line_number":94,"context_line":"            result[\u0027agents\u0027][0][\u0027ha_state\u0027] !\u003d result[\u0027agents\u0027][1][\u0027ha_state\u0027])"}],"source_content_type":"text/x-python","patch_set":8,"id":"fa32b979_66f0ca91","line":91,"updated":"2015-06-25 07:43:11.000000000","message":"Seems wrong to put this assertion as part of this function, I think it should be done in the test itself.","commit_id":"0bc3756bfe531d32407dd5c2724d624ffdb2bb9d"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"50fc24ebae702f9d086d66774f823fd7894d4aea","unresolved":false,"context_lines":[{"line_number":88,"context_line":""},{"line_number":89,"context_line":"    def _is_ha_router_active_on_one_agent(self, router_id):"},{"line_number":90,"context_line":"        result \u003d self.client.list_l3_agent_hosting_routers(router_id)"},{"line_number":91,"context_line":"        self.assertEqual(2, len(result[\u0027agents\u0027]),"},{"line_number":92,"context_line":"                         \u0027HA router must be scheduled on both nodes\u0027)"},{"line_number":93,"context_line":"        return ("},{"line_number":94,"context_line":"            result[\u0027agents\u0027][0][\u0027ha_state\u0027] !\u003d result[\u0027agents\u0027][1][\u0027ha_state\u0027])"}],"source_content_type":"text/x-python","patch_set":8,"id":"fa32b979_acbada6f","line":91,"in_reply_to":"fa32b979_66f0ca91","updated":"2015-06-26 21:36:59.000000000","message":"That\u0027s correct.","commit_id":"0bc3756bfe531d32407dd5c2724d624ffdb2bb9d"},{"author":{"_account_id":8655,"name":"Jakub Libosvar","email":"libosvar@redhat.com","username":"jlibosva"},"change_message_id":"2ab99624bd0d980c5d03769946b6a65f615aa0a7","unresolved":false,"context_lines":[{"line_number":105,"context_line":"            functools.partial("},{"line_number":106,"context_line":"                self._is_ha_router_active_on_one_agent,"},{"line_number":107,"context_line":"                router_id),"},{"line_number":108,"context_line":"            timeout\u003d90)"}],"source_content_type":"text/x-python","patch_set":13,"id":"9a41bdd9_c0ccc137","line":108,"updated":"2015-07-13 11:55:36.000000000","message":"Given that test failed due to timeout, we can consider increasing this value to avoid random gate failures and look why it takes so much time to set router from standby to active state.","commit_id":"c8b02136ab7b55694fc55b706a8f22a1049f07f2"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"af2b417bca4e51eb18247a37c2ddb4e52842f812","unresolved":false,"context_lines":[{"line_number":105,"context_line":"            functools.partial("},{"line_number":106,"context_line":"                self._is_ha_router_active_on_one_agent,"},{"line_number":107,"context_line":"                router_id),"},{"line_number":108,"context_line":"            timeout\u003d90)"}],"source_content_type":"text/x-python","patch_set":13,"id":"3a50d1a3_c6bdfd68","line":108,"in_reply_to":"9a41bdd9_c0ccc137","updated":"2015-07-29 22:43:03.000000000","message":"Answered in the main patch comments section.","commit_id":"c8b02136ab7b55694fc55b706a8f22a1049f07f2"},{"author":{"_account_id":12444,"name":"John Schwarz","email":"jschwarz@redhat.com","username":"jschwarz"},"change_message_id":"b9a348f6de1cceb56dea77f67921ab38dc68924e","unresolved":false,"context_lines":[{"line_number":87,"context_line":""},{"line_number":88,"context_line":"    def _is_ha_router_active_on_one_agent(self, router_id):"},{"line_number":89,"context_line":"        agents \u003d self.client.list_l3_agent_hosting_routers(router_id)"},{"line_number":90,"context_line":"        return ("},{"line_number":91,"context_line":"            agents[\u0027agents\u0027][0][\u0027ha_state\u0027] !\u003d agents[\u0027agents\u0027][1][\u0027ha_state\u0027])"},{"line_number":92,"context_line":""},{"line_number":93,"context_line":"    def test_ha_router(self):"}],"source_content_type":"text/x-python","patch_set":14,"id":"3a50d1a3_91df4ad5","line":90,"updated":"2015-07-23 14:45:30.000000000","message":"Possible scenario: a keepalived starts in \u0027master\u0027 mode, right? So could this check return True if one of the server has been set to standby, while the other is \u0027just about\u0027 to go into standby, but didn\u0027t do so yet because of CPU-scheduler-related issues? If this case could actually happen, then this check isn\u0027t reliable enough IMO. We might want to do this at the end of the test (perhaps do some more logic like fake-VM-pinging) and make sure this is still the case.","commit_id":"d1205e1d97ccc3bef40d755f06b6ac8cdf59b558"},{"author":{"_account_id":12444,"name":"John Schwarz","email":"jschwarz@redhat.com","username":"jschwarz"},"change_message_id":"3fb3891d5d9d376c5798234fe1852107e8b27ef6","unresolved":false,"context_lines":[{"line_number":87,"context_line":""},{"line_number":88,"context_line":"    def _is_ha_router_active_on_one_agent(self, router_id):"},{"line_number":89,"context_line":"        agents \u003d self.client.list_l3_agent_hosting_routers(router_id)"},{"line_number":90,"context_line":"        return ("},{"line_number":91,"context_line":"            agents[\u0027agents\u0027][0][\u0027ha_state\u0027] !\u003d agents[\u0027agents\u0027][1][\u0027ha_state\u0027])"},{"line_number":92,"context_line":""},{"line_number":93,"context_line":"    def test_ha_router(self):"}],"source_content_type":"text/x-python","patch_set":14,"id":"3a50d1a3_69fba779","line":90,"in_reply_to":"3a50d1a3_91df4ad5","updated":"2015-07-23 16:11:15.000000000","message":"Me and Assaf talked about this. Since it\u0027s difficult to write code that detects such cases, and since the code will be replaced by a more thorough test soon, it\u0027s not worthwhile to fix it for the case where there are 2 master routers (ie. an error occurred and both keepalived change their status to master - this is a different case then what I originally posted).","commit_id":"d1205e1d97ccc3bef40d755f06b6ac8cdf59b558"},{"author":{"_account_id":12444,"name":"John Schwarz","email":"jschwarz@redhat.com","username":"jschwarz"},"change_message_id":"b9a348f6de1cceb56dea77f67921ab38dc68924e","unresolved":false,"context_lines":[{"line_number":90,"context_line":"        return ("},{"line_number":91,"context_line":"            agents[\u0027agents\u0027][0][\u0027ha_state\u0027] !\u003d agents[\u0027agents\u0027][1][\u0027ha_state\u0027])"},{"line_number":92,"context_line":""},{"line_number":93,"context_line":"    def test_ha_router(self):"},{"line_number":94,"context_line":"        router \u003d self.client.create_router("},{"line_number":95,"context_line":"            body\u003d{\u0027router\u0027: {\u0027name\u0027: \u0027router-test\u0027,"},{"line_number":96,"context_line":"                             \u0027tenant_id\u0027: uuidutils.generate_uuid(),"}],"source_content_type":"text/x-python","patch_set":14,"id":"3a50d1a3_f1e56edb","line":93,"updated":"2015-07-23 14:45:30.000000000","message":"I would expect such a test to also set up 2 fake VMs, one in each node, and check cross-connectivity. I see that this is planned for future patches, so perhaps a TODO can be added instead?","commit_id":"d1205e1d97ccc3bef40d755f06b6ac8cdf59b558"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"30e544c4e6c3b114b0e15d2898fa7f0d46b9cb63","unresolved":false,"context_lines":[{"line_number":90,"context_line":"        return ("},{"line_number":91,"context_line":"            agents[\u0027agents\u0027][0][\u0027ha_state\u0027] !\u003d agents[\u0027agents\u0027][1][\u0027ha_state\u0027])"},{"line_number":92,"context_line":""},{"line_number":93,"context_line":"    def test_ha_router(self):"},{"line_number":94,"context_line":"        router \u003d self.client.create_router("},{"line_number":95,"context_line":"            body\u003d{\u0027router\u0027: {\u0027name\u0027: \u0027router-test\u0027,"},{"line_number":96,"context_line":"                             \u0027tenant_id\u0027: uuidutils.generate_uuid(),"}],"source_content_type":"text/x-python","patch_set":14,"id":"3a50d1a3_f870110a","line":93,"in_reply_to":"3a50d1a3_f1e56edb","updated":"2015-07-28 23:38:18.000000000","message":"Done","commit_id":"d1205e1d97ccc3bef40d755f06b6ac8cdf59b558"},{"author":{"_account_id":12444,"name":"John Schwarz","email":"jschwarz@redhat.com","username":"jschwarz"},"change_message_id":"b9a348f6de1cceb56dea77f67921ab38dc68924e","unresolved":false,"context_lines":[{"line_number":101,"context_line":"        self.assertEqual(2, len(agents[\u0027agents\u0027]),"},{"line_number":102,"context_line":"                         \u0027HA router must be scheduled to both nodes\u0027)"},{"line_number":103,"context_line":""},{"line_number":104,"context_line":"        utils.wait_until_true("},{"line_number":105,"context_line":"            functools.partial("},{"line_number":106,"context_line":"                self._is_ha_router_active_on_one_agent,"},{"line_number":107,"context_line":"                router_id),"}],"source_content_type":"text/x-python","patch_set":14,"id":"3a50d1a3_5131c258","line":104,"updated":"2015-07-23 14:45:30.000000000","message":"Can we also check that none of the keepalived are in \u0027fault\u0027 mode? This isn\u0027t currently checked as part of the test, only that one is master.","commit_id":"d1205e1d97ccc3bef40d755f06b6ac8cdf59b558"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"30e544c4e6c3b114b0e15d2898fa7f0d46b9cb63","unresolved":false,"context_lines":[{"line_number":101,"context_line":"        self.assertEqual(2, len(agents[\u0027agents\u0027]),"},{"line_number":102,"context_line":"                         \u0027HA router must be scheduled to both nodes\u0027)"},{"line_number":103,"context_line":""},{"line_number":104,"context_line":"        utils.wait_until_true("},{"line_number":105,"context_line":"            functools.partial("},{"line_number":106,"context_line":"                self._is_ha_router_active_on_one_agent,"},{"line_number":107,"context_line":"                router_id),"}],"source_content_type":"text/x-python","patch_set":14,"id":"3a50d1a3_3800b933","line":104,"in_reply_to":"3a50d1a3_5131c258","updated":"2015-07-28 23:38:18.000000000","message":"I\u0027m currently using the API which only exposes active and standby. Under normal operation (As well as expected faults and errors) keepalived would not enter the fault state. The only way I\u0027m aware of it would enter the fault state, is if you kill the \u0027ha\u0027 interface in the namespace, which can only happen synthetically by the admin as far as I can imagine. I don\u0027t think it\u0027s something we\u0027ll want to test. Even if we do the correct place to do that is in a functional test, not a fullstack test.","commit_id":"d1205e1d97ccc3bef40d755f06b6ac8cdf59b558"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"698b695f24c0f5ffaa98d3845ad56b1281637650","unresolved":false,"context_lines":[{"line_number":64,"context_line":"    def _is_ha_router_active_on_one_agent(self, router_id):"},{"line_number":65,"context_line":"        agents \u003d self.client.list_l3_agent_hosting_routers(router_id)"},{"line_number":66,"context_line":"        return ("},{"line_number":67,"context_line":"            agents[\u0027agents\u0027][0][\u0027ha_state\u0027] !\u003d agents[\u0027agents\u0027][1][\u0027ha_state\u0027])"},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"    def test_ha_router(self):"},{"line_number":70,"context_line":"        # TODO(amuller): Test external connectivity before and after a"}],"source_content_type":"text/x-python","patch_set":17,"id":"3a50d1a3_f2239003","line":67,"updated":"2015-08-02 12:33:01.000000000","message":"Do we really have only two states enforced somewhere? Looking at neutron/agent/l3/ha_router.py, I see that ha_state getter can at least return None in case of some failure mode.","commit_id":"5bb3c8eb22c92732cec3dac75a706ccb84d615ee"},{"author":{"_account_id":8873,"name":"Assaf Muller","email":"amuller@redhat.com","username":"amuller"},"change_message_id":"709d71a527dc5b8c70bfe7da3f6ad3fb8704ada8","unresolved":false,"context_lines":[{"line_number":64,"context_line":"    def _is_ha_router_active_on_one_agent(self, router_id):"},{"line_number":65,"context_line":"        agents \u003d self.client.list_l3_agent_hosting_routers(router_id)"},{"line_number":66,"context_line":"        return ("},{"line_number":67,"context_line":"            agents[\u0027agents\u0027][0][\u0027ha_state\u0027] !\u003d agents[\u0027agents\u0027][1][\u0027ha_state\u0027])"},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"    def test_ha_router(self):"},{"line_number":70,"context_line":"        # TODO(amuller): Test external connectivity before and after a"}],"source_content_type":"text/x-python","patch_set":17,"id":"1a4dcd0f_da9a7614","line":67,"in_reply_to":"3a50d1a3_f2239003","updated":"2015-08-04 14:34:50.000000000","message":"I\u0027m using http://specs.openstack.org/openstack/neutron-specs/specs/kilo/report-ha-router-master.html here to convert the agent HA states to the states the API exposes, which is currently only two states.","commit_id":"5bb3c8eb22c92732cec3dac75a706ccb84d615ee"}]}
