)]}'
{"manifests/profile/base/neutron/server.pp":[{"author":{"_account_id":6681,"name":"Brent Eagles","email":"beagles@redhat.com","username":"beagles"},"change_message_id":"0aba584bfe8d1b8b5066da027676df61677ca45d","unresolved":false,"context_lines":[{"line_number":49,"context_line":"  # combined with if DVR is enabled."},{"line_number":50,"context_line":"  if $l3_ha_override !\u003d \u0027\u0027 {"},{"line_number":51,"context_line":"    $l3_ha \u003d str2bool($l3_ha_override)"},{"line_number":52,"context_line":"  } elsif ! str2bool(hiera(\u0027neutron::server::router_distributed\u0027, false)) {"},{"line_number":53,"context_line":"    $l3_ha \u003d size(hiera(\u0027neutron_api_node_names\u0027)) \u003e 1"},{"line_number":54,"context_line":"  } else {"},{"line_number":55,"context_line":"    $l3_ha \u003d false"}],"source_content_type":"text/x-puppet","patch_set":2,"id":"7a77a97e_6a39e6a3","line":52,"updated":"2016-11-17 14:13:22.000000000","message":"Seems legit. We provide an option to force to l3_ha otherwise, we guess. LGTM.","commit_id":"997a9de6910d9a94c6eb34298199b7c0265dc353"},{"author":{"_account_id":6681,"name":"Brent Eagles","email":"beagles@redhat.com","username":"beagles"},"change_message_id":"6963bb00a9b6eb27de7ca9aa195c08f9de4f4a4e","unresolved":false,"context_lines":[{"line_number":49,"context_line":"  # combined with if DVR is enabled."},{"line_number":50,"context_line":"  if $l3_ha_override !\u003d \u0027\u0027 {"},{"line_number":51,"context_line":"    $l3_ha \u003d str2bool($l3_ha_override)"},{"line_number":52,"context_line":"  } elsif ! str2bool(hiera(\u0027neutron::server::router_distributed\u0027, false)) {"},{"line_number":53,"context_line":"    $l3_ha \u003d size(hiera(\u0027neutron_api_node_names\u0027)) \u003e 1"},{"line_number":54,"context_line":"  } else {"},{"line_number":55,"context_line":"    $l3_ha \u003d false"}],"source_content_type":"text/x-puppet","patch_set":2,"id":"7a77a97e_c523cba5","line":52,"in_reply_to":"7a77a97e_6a39e6a3","updated":"2016-11-17 14:21:42.000000000","message":"Actually, just a heads up that DVR \u0026 HA can co-exist now so we may be able to skip this. I\u0027ll verify the \"support matrix\" since this might be the preferred way to go for backporting to newton and then we can adjust with a follow up for ocata.","commit_id":"997a9de6910d9a94c6eb34298199b7c0265dc353"},{"author":{"_account_id":6681,"name":"Brent Eagles","email":"beagles@redhat.com","username":"beagles"},"change_message_id":"68f254b0f72a0e899db0641f9d9dbcbdaa2a4e75","unresolved":false,"context_lines":[{"line_number":50,"context_line":"  if $l3_ha_override !\u003d \u0027\u0027 {"},{"line_number":51,"context_line":"    $l3_ha \u003d str2bool($l3_ha_override)"},{"line_number":52,"context_line":"  } elsif ! str2bool(hiera(\u0027neutron::server::router_distributed\u0027, false)) {"},{"line_number":53,"context_line":"    $l3_ha \u003d size(hiera(\u0027neutron_api_node_names\u0027)) \u003e 1"},{"line_number":54,"context_line":"  } else {"},{"line_number":55,"context_line":"    $l3_ha \u003d false"},{"line_number":56,"context_line":"  }"}],"source_content_type":"text/x-puppet","patch_set":2,"id":"7a77a97e_455edb12","line":53,"updated":"2016-11-17 14:24:07.000000000","message":"More coffee is apparently acquired actually. I\u0027m not sure neutron_api_node_names and number of l3 agents are equivalent. Technically an controller/networker/compute node type setup could have the neutron API running on the controllers and rpc controllers, L3 agents, etc running elsewhere.","commit_id":"997a9de6910d9a94c6eb34298199b7c0265dc353"},{"author":{"_account_id":14985,"name":"Alex Schultz","email":"aschultz@next-development.com","username":"mwhahaha"},"change_message_id":"b63bfaa1757d5e0d600cb43d96d5a69e55e6b050","unresolved":false,"context_lines":[{"line_number":35,"context_line":"class tripleo::profile::base::neutron::server ("},{"line_number":36,"context_line":"  $bootstrap_node \u003d hiera(\u0027bootstrap_nodeid\u0027, undef),"},{"line_number":37,"context_line":"  $step           \u003d hiera(\u0027step\u0027),"},{"line_number":38,"context_line":"  $l3_ha_override \u003d \u0027\u0027,"},{"line_number":39,"context_line":") {"},{"line_number":40,"context_line":"  if $::hostname \u003d\u003d downcase($bootstrap_node) {"},{"line_number":41,"context_line":"    $sync_db \u003d true"}],"source_content_type":"text/x-puppet","patch_set":3,"id":"7a77a97e_a9b92c17","line":38,"updated":"2016-11-18 03:43:36.000000000","message":"Why \u0027\u0027 instead of something like undef?","commit_id":"c2ab75025ce248b0285dfad6b11571f8ce79448a"},{"author":{"_account_id":14985,"name":"Alex Schultz","email":"aschultz@next-development.com","username":"mwhahaha"},"change_message_id":"4391db1976eda955aed07e40a6a1b479e56c5b93","unresolved":false,"context_lines":[{"line_number":35,"context_line":"class tripleo::profile::base::neutron::server ("},{"line_number":36,"context_line":"  $bootstrap_node \u003d hiera(\u0027bootstrap_nodeid\u0027, undef),"},{"line_number":37,"context_line":"  $step           \u003d hiera(\u0027step\u0027),"},{"line_number":38,"context_line":"  $l3_ha_override \u003d \u0027\u0027,"},{"line_number":39,"context_line":") {"},{"line_number":40,"context_line":"  if $::hostname \u003d\u003d downcase($bootstrap_node) {"},{"line_number":41,"context_line":"    $sync_db \u003d true"}],"source_content_type":"text/x-puppet","patch_set":3,"id":"7a77a97e_a4cdc332","line":38,"in_reply_to":"7a77a97e_3dbf13ab","updated":"2016-11-18 11:47:49.000000000","message":"I guess \u0027\u0027 works, it would be nice if heat could have a not defined rather than trying to pass strings however.  I figured it was something related to THT.  \u0027\u0027 works for now, I would just also document this in the comment for the parameter that this is the default and explanation of the  expected inputs.  One of the tricky things that will come up as we move to puppet4 is that we can do expected type checking in the parameters and things like this will get tricky.","commit_id":"c2ab75025ce248b0285dfad6b11571f8ce79448a"},{"author":{"_account_id":4328,"name":"Steven Hardy","email":"steven.hardy@suse.com","username":"shardy"},"change_message_id":"77390828432a488ebe8a5ad1bf63bc660fc6db7d","unresolved":false,"context_lines":[{"line_number":35,"context_line":"class tripleo::profile::base::neutron::server ("},{"line_number":36,"context_line":"  $bootstrap_node \u003d hiera(\u0027bootstrap_nodeid\u0027, undef),"},{"line_number":37,"context_line":"  $step           \u003d hiera(\u0027step\u0027),"},{"line_number":38,"context_line":"  $l3_ha_override \u003d \u0027\u0027,"},{"line_number":39,"context_line":") {"},{"line_number":40,"context_line":"  if $::hostname \u003d\u003d downcase($bootstrap_node) {"},{"line_number":41,"context_line":"    $sync_db \u003d true"}],"source_content_type":"text/x-puppet","patch_set":3,"id":"7a77a97e_3dbf13ab","line":38,"in_reply_to":"7a77a97e_a9b92c17","updated":"2016-11-18 08:58:58.000000000","message":"Because I need a way to differentiate from the default in the tripleo-heat-templates template here:\n\nhttps://review.openstack.org/#/c/398934/3/puppet/services/neutron-api.yaml\n\nI changed the heat type type there from bool to string so we can differentiate between:\n\n1. \u0027\u0027 - calculate the l3_ha setting, no user input\n2. \u0027true\u0027 - user override true\n4. \u0027false\u0027 - user override false\n\nYou\u0027re right tho, I guess we could have this as undef then modify the conditional below to just cope with both - using the same \"no user override\" default in both places seemed more consistent to me tho?","commit_id":"c2ab75025ce248b0285dfad6b11571f8ce79448a"},{"author":{"_account_id":14985,"name":"Alex Schultz","email":"aschultz@next-development.com","username":"mwhahaha"},"change_message_id":"b63bfaa1757d5e0d600cb43d96d5a69e55e6b050","unresolved":false,"context_lines":[{"line_number":52,"context_line":"  } elsif ! str2bool(hiera(\u0027neutron::server::router_distributed\u0027, false)) {"},{"line_number":53,"context_line":"    # Note we need to default neutron_l3_short_node_names to an empty"},{"line_number":54,"context_line":"    # list because some neutron backends disable the l3 agent"},{"line_number":55,"context_line":"    $l3_ha \u003d size(hiera(\u0027neutron_l3_short_node_names\u0027, [])) \u003e 1"},{"line_number":56,"context_line":"  } else {"},{"line_number":57,"context_line":"    $l3_ha \u003d false"},{"line_number":58,"context_line":"  }"}],"source_content_type":"text/x-puppet","patch_set":3,"id":"7a77a97e_c93828a3","line":55,"updated":"2016-11-18 03:43:36.000000000","message":"Please don\u0027t put hiera lookups in the class it makes it very hard to test with rspec. Can we move these to parameters on the class instead since they have defaults there\u0027s no reason to put them here.","commit_id":"c2ab75025ce248b0285dfad6b11571f8ce79448a"},{"author":{"_account_id":4328,"name":"Steven Hardy","email":"steven.hardy@suse.com","username":"shardy"},"change_message_id":"77390828432a488ebe8a5ad1bf63bc660fc6db7d","unresolved":false,"context_lines":[{"line_number":52,"context_line":"  } elsif ! str2bool(hiera(\u0027neutron::server::router_distributed\u0027, false)) {"},{"line_number":53,"context_line":"    # Note we need to default neutron_l3_short_node_names to an empty"},{"line_number":54,"context_line":"    # list because some neutron backends disable the l3 agent"},{"line_number":55,"context_line":"    $l3_ha \u003d size(hiera(\u0027neutron_l3_short_node_names\u0027, [])) \u003e 1"},{"line_number":56,"context_line":"  } else {"},{"line_number":57,"context_line":"    $l3_ha \u003d false"},{"line_number":58,"context_line":"  }"}],"source_content_type":"text/x-puppet","patch_set":3,"id":"7a77a97e_fdcf5b53","line":55,"in_reply_to":"7a77a97e_c93828a3","updated":"2016-11-18 08:58:58.000000000","message":"Ack, will do, thanks for the review!","commit_id":"c2ab75025ce248b0285dfad6b11571f8ce79448a"}]}
