)]}'
{"manifests/db.pp":[{"author":{"_account_id":7604,"name":"Sergey Kolekonov","email":"skolekonov@mirantis.com","username":"skolekonov"},"change_message_id":"3dba333c8c4a60425d2020f27f5f6b94b9a72bed","unresolved":false,"context_lines":[{"line_number":45,"context_line":""},{"line_number":46,"context_line":"  # NOTE(spredzy): In order to keep backward compatibility we rely on the pick function"},{"line_number":47,"context_line":"  # to use neutron::\u003cmyparam\u003e if neutron::db::\u003cmyparam\u003e isn\u0027t specified."},{"line_number":48,"context_line":"  $database_connection_real \u003d pick($database_connection,$::neutron::database_connection, \u0027sqlite:////var/lib/neutron/ovs.sqlite\u0027)"},{"line_number":49,"context_line":"  $database_idle_timeout_real \u003d pick($database_idle_timeout,$::neutron::database_idle_timeout, \u00273600\u0027)"},{"line_number":50,"context_line":"  $database_min_pool_size_real \u003d pick($database_min_pool_size,$::neutron::database_min_pool_size, \u00271\u0027)"},{"line_number":51,"context_line":"  $database_max_pool_size_real \u003d pick($database_max_pool_size,$::neutron::database_max_pool_size, false)"}],"source_content_type":"text/x-puppet","patch_set":2,"id":"ba15a1d1_a0bad708","line":48,"updated":"2015-09-15 10:02:35.000000000","message":"Why don\u0027t use the old parameter as the first and set defaults? For example:\n$database_idle_timeout   \u003d 3600, pick($::neutron::database_idle_timeout, $database_idle_timeout). In that case if the old parameter is defined, it will be used. Otherwise the new parameter will be used (default value or set out)","commit_id":"26ebff6fa9782b7381a37fcd4d220151040fc529"},{"author":{"_account_id":9410,"name":"Yanis Guenane","email":"yguenane@redhat.com","username":"yguenane"},"change_message_id":"2f327c7a48adbce43c46f59c42d84e7bbba6a519","unresolved":false,"context_lines":[{"line_number":45,"context_line":""},{"line_number":46,"context_line":"  # NOTE(spredzy): In order to keep backward compatibility we rely on the pick function"},{"line_number":47,"context_line":"  # to use neutron::\u003cmyparam\u003e if neutron::db::\u003cmyparam\u003e isn\u0027t specified."},{"line_number":48,"context_line":"  $database_connection_real \u003d pick($database_connection,$::neutron::database_connection, \u0027sqlite:////var/lib/neutron/ovs.sqlite\u0027)"},{"line_number":49,"context_line":"  $database_idle_timeout_real \u003d pick($database_idle_timeout,$::neutron::database_idle_timeout, \u00273600\u0027)"},{"line_number":50,"context_line":"  $database_min_pool_size_real \u003d pick($database_min_pool_size,$::neutron::database_min_pool_size, \u00271\u0027)"},{"line_number":51,"context_line":"  $database_max_pool_size_real \u003d pick($database_max_pool_size,$::neutron::database_max_pool_size, false)"}],"source_content_type":"text/x-puppet","patch_set":2,"id":"ba15a1d1_1683c905","line":48,"in_reply_to":"ba15a1d1_9bf3849e","updated":"2015-09-15 10:52:15.000000000","message":"Sorry I didn\u0027t explain myself correctly.\n\nPurpose of those patches is two things :\n\n  * Bring consistency about the way database setup is done across module\n\n  * Alleviate the init.pp (in the case of neutron the server.pp), by moving some specialized parameter into its own class (here db).\n\nWhile doing #2, we still need to support hiera and non-hiera based OpenStack deployments.\n\n * For people using hiera, they will include neutron::db in their class list and specify values like the following neutron::db::database_connection \u003d \u0027mysql://....\u0027\n\n * For people not-using hiera, they will probably class neutron-server directly in their manifest\n\nclass { \u0027neutron-server\u0027 :\n  database_connection \u003d\u003e \u0027mysql://....\u0027\n}\n\nThe use of pick(), allows to give hiera user parameters priority, else if hiera is not used it will rely on the neutron-server parameter, else it will default to the value it used to default previous this patchset.\n\nHope this explanation make more sense.","commit_id":"26ebff6fa9782b7381a37fcd4d220151040fc529"},{"author":{"_account_id":9410,"name":"Yanis Guenane","email":"yguenane@redhat.com","username":"yguenane"},"change_message_id":"434f4ad944226424fbf8862020f0a6d4c26978e4","unresolved":false,"context_lines":[{"line_number":45,"context_line":""},{"line_number":46,"context_line":"  # NOTE(spredzy): In order to keep backward compatibility we rely on the pick function"},{"line_number":47,"context_line":"  # to use neutron::\u003cmyparam\u003e if neutron::db::\u003cmyparam\u003e isn\u0027t specified."},{"line_number":48,"context_line":"  $database_connection_real \u003d pick($database_connection,$::neutron::database_connection, \u0027sqlite:////var/lib/neutron/ovs.sqlite\u0027)"},{"line_number":49,"context_line":"  $database_idle_timeout_real \u003d pick($database_idle_timeout,$::neutron::database_idle_timeout, \u00273600\u0027)"},{"line_number":50,"context_line":"  $database_min_pool_size_real \u003d pick($database_min_pool_size,$::neutron::database_min_pool_size, \u00271\u0027)"},{"line_number":51,"context_line":"  $database_max_pool_size_real \u003d pick($database_max_pool_size,$::neutron::database_max_pool_size, false)"}],"source_content_type":"text/x-puppet","patch_set":2,"id":"ba15a1d1_9bf3849e","line":48,"in_reply_to":"ba15a1d1_a0bad708","updated":"2015-09-15 10:34:14.000000000","message":"Sergey, thanks for poiting that out. The order is actually intended, in order to remain backward compatible we need to pick first the variable the user was relying on before.\n\nMy mistake was that in neutron::server those values should have been set to undef instead of having a value, this way - with the current code - if nothing is specified it will default to the 3 parameters which was previous master/server.pp parameters value.","commit_id":"26ebff6fa9782b7381a37fcd4d220151040fc529"},{"author":{"_account_id":7745,"name":"Denis Egorenko","email":"degorenko@mirantis.com","username":"degorenko"},"change_message_id":"2db48ca5e6d00905505b5bddd729caebb41456d3","unresolved":false,"context_lines":[{"line_number":46,"context_line":"  # NOTE(spredzy): In order to keep backward compatibility we rely on the pick function"},{"line_number":47,"context_line":"  # to use neutron::\u003cmyparam\u003e if neutron::db::\u003cmyparam\u003e isn\u0027t specified."},{"line_number":48,"context_line":"  $database_connection_real \u003d pick($database_connection,$::neutron::database_connection, \u0027sqlite:////var/lib/neutron/ovs.sqlite\u0027)"},{"line_number":49,"context_line":"  $database_idle_timeout_real \u003d pick($database_idle_timeout,$::neutron::database_idle_timeout, 3600)"},{"line_number":50,"context_line":"  $database_min_pool_size_real \u003d pick($database_min_pool_size,$::neutron::database_min_pool_size, 1)"},{"line_number":51,"context_line":"  $database_max_pool_size_real \u003d pick($database_max_pool_size,$::neutron::database_max_pool_size, 10)"},{"line_number":52,"context_line":"  $database_max_retries_real \u003d pick($database_max_retries,$::neutron::database_max_retries, 10)"}],"source_content_type":"text/x-puppet","patch_set":3,"id":"ba15a1d1_36eb6db2","line":49,"updated":"2015-09-15 11:00:31.000000000","message":"Yanis,\n\ni believe, that in previous patch set Sergey meant, that you should pick at first old value from neutron::server, in the case if some body uses old parameters from neutron::server. And in the case, when user wants to use this new class, it also will work, because in neutron::server old parameters are set to undef, so they will be picked from this class and, so, you should add for all variables defaults from config file in this class. For instance:\n\nclass neutron::db (\n....\n  $database_idle_timeout \u003d 3600,\n....\n)\n{\n  $database_idle_timeout_real \u003d pick($::neutron::database_idle_timeout, $database_idle_timeout)\n}","commit_id":"6baef6f984a03c0fca91dd93363874a1b4b090fb"},{"author":{"_account_id":7604,"name":"Sergey Kolekonov","email":"skolekonov@mirantis.com","username":"skolekonov"},"change_message_id":"2ebe130fd22b7095432f6c5e1e8bbfb3d7d262da","unresolved":false,"context_lines":[{"line_number":45,"context_line":""},{"line_number":46,"context_line":"  # NOTE(spredzy): In order to keep backward compatibility we rely on the pick function"},{"line_number":47,"context_line":"  # to use neutron::\u003cmyparam\u003e if neutron::db::\u003cmyparam\u003e isn\u0027t specified."},{"line_number":48,"context_line":"  $database_connection_real \u003d pick($::neutron::server::database_connection, $database_connection)"},{"line_number":49,"context_line":"  $database_idle_timeout_real \u003d pick($::neutron::server::database_idle_timeout, $database_idle_timeout)"},{"line_number":50,"context_line":"  $database_min_pool_size_real \u003d pick($::neutron::server::database_min_pool_size, $database_min_pool_size)"},{"line_number":51,"context_line":"  $database_max_pool_size_real \u003d pick($::neutron::server::database_max_pool_size, $database_max_pool_size)"}],"source_content_type":"text/x-puppet","patch_set":5,"id":"ba15a1d1_acbad008","line":48,"updated":"2015-09-15 11:41:15.000000000","message":"Thank you, that\u0027s exactly what I meant","commit_id":"7b54f896aa1a5303c7c79206f13c46149447c9df"}],"manifests/server.pp":[{"author":{"_account_id":7604,"name":"Sergey Kolekonov","email":"skolekonov@mirantis.com","username":"skolekonov"},"change_message_id":"3dba333c8c4a60425d2020f27f5f6b94b9a72bed","unresolved":false,"context_lines":[{"line_number":164,"context_line":"#   neutron.scheduler.l3_agent_scheduler.ChanceScheduler to schedule a router in a random way"},{"line_number":165,"context_line":"#   neutron.scheduler.l3_agent_scheduler.LeastRoutersScheduler to allocate on an L3 agent with the least number of routers bound."},{"line_number":166,"context_line":"#   Defaults to: neutron.scheduler.l3_agent_scheduler.ChanceScheduler"},{"line_number":167,"context_line":"#"},{"line_number":168,"context_line":"# [*mysql_module*]"},{"line_number":169,"context_line":"#   (optional) Deprecated. Does nothing."},{"line_number":170,"context_line":"#"}],"source_content_type":"text/x-puppet","patch_set":2,"id":"ba15a1d1_5d672425","line":167,"updated":"2015-09-15 10:02:35.000000000","message":"Please remove this doc string, or let\u0027s keep the warning","commit_id":"26ebff6fa9782b7381a37fcd4d220151040fc529"},{"author":{"_account_id":9410,"name":"Yanis Guenane","email":"yguenane@redhat.com","username":"yguenane"},"change_message_id":"434f4ad944226424fbf8862020f0a6d4c26978e4","unresolved":false,"context_lines":[{"line_number":164,"context_line":"#   neutron.scheduler.l3_agent_scheduler.ChanceScheduler to schedule a router in a random way"},{"line_number":165,"context_line":"#   neutron.scheduler.l3_agent_scheduler.LeastRoutersScheduler to allocate on an L3 agent with the least number of routers bound."},{"line_number":166,"context_line":"#   Defaults to: neutron.scheduler.l3_agent_scheduler.ChanceScheduler"},{"line_number":167,"context_line":"#"},{"line_number":168,"context_line":"# [*mysql_module*]"},{"line_number":169,"context_line":"#   (optional) Deprecated. Does nothing."},{"line_number":170,"context_line":"#"}],"source_content_type":"text/x-puppet","patch_set":2,"id":"ba15a1d1_5bb72cd8","line":167,"in_reply_to":"ba15a1d1_5d672425","updated":"2015-09-15 10:34:14.000000000","message":"Done","commit_id":"26ebff6fa9782b7381a37fcd4d220151040fc529"},{"author":{"_account_id":7604,"name":"Sergey Kolekonov","email":"skolekonov@mirantis.com","username":"skolekonov"},"change_message_id":"3dba333c8c4a60425d2020f27f5f6b94b9a72bed","unresolved":false,"context_lines":[{"line_number":234,"context_line":"  $auth_port                        \u003d \u002735357\u0027,"},{"line_number":235,"context_line":"  $auth_protocol                    \u003d \u0027http\u0027,"},{"line_number":236,"context_line":"  $auth_admin_prefix                \u003d false,"},{"line_number":237,"context_line":"  $mysql_module                     \u003d undef,"},{"line_number":238,"context_line":"  $log_dir                          \u003d undef,"},{"line_number":239,"context_line":"  $log_file                         \u003d undef,"},{"line_number":240,"context_line":"  $report_interval                  \u003d undef,"}],"source_content_type":"text/x-puppet","patch_set":2,"id":"ba15a1d1_207247ae","line":237,"updated":"2015-09-15 10:02:35.000000000","message":"The same","commit_id":"26ebff6fa9782b7381a37fcd4d220151040fc529"},{"author":{"_account_id":9410,"name":"Yanis Guenane","email":"yguenane@redhat.com","username":"yguenane"},"change_message_id":"434f4ad944226424fbf8862020f0a6d4c26978e4","unresolved":false,"context_lines":[{"line_number":234,"context_line":"  $auth_port                        \u003d \u002735357\u0027,"},{"line_number":235,"context_line":"  $auth_protocol                    \u003d \u0027http\u0027,"},{"line_number":236,"context_line":"  $auth_admin_prefix                \u003d false,"},{"line_number":237,"context_line":"  $mysql_module                     \u003d undef,"},{"line_number":238,"context_line":"  $log_dir                          \u003d undef,"},{"line_number":239,"context_line":"  $log_file                         \u003d undef,"},{"line_number":240,"context_line":"  $report_interval                  \u003d undef,"}],"source_content_type":"text/x-puppet","patch_set":2,"id":"ba15a1d1_7bba30c2","line":237,"in_reply_to":"ba15a1d1_207247ae","updated":"2015-09-15 10:34:14.000000000","message":"Done","commit_id":"26ebff6fa9782b7381a37fcd4d220151040fc529"},{"author":{"_account_id":7604,"name":"Sergey Kolekonov","email":"skolekonov@mirantis.com","username":"skolekonov"},"change_message_id":"abdc3307ba5d24f86f6424fdb43322165a0741df","unresolved":false,"context_lines":[{"line_number":238,"context_line":"  $lock_path                        \u003d undef,"},{"line_number":239,"context_line":") {"},{"line_number":240,"context_line":""},{"line_number":241,"context_line":"  include ::neutron::db"},{"line_number":242,"context_line":"  include ::neutron::params"},{"line_number":243,"context_line":"  include ::neutron::policy"},{"line_number":244,"context_line":"  require keystone::python"}],"source_content_type":"text/x-puppet","patch_set":3,"id":"ba15a1d1_d6f9d181","line":241,"updated":"2015-09-15 11:00:30.000000000","message":"Is this include safe? It will lead to duplicate class declaration, if someone will try to switch to the new scheme (when neutron::db class should be called separately from neutron::server). What do you think about the following scheme: we include neutron::db only if a user gave old database-related parameters. If none of this parameters were passed (if user wants to directly use new neutron::db class), we don\u0027t include the neutron::db class at all (because we rely on the user).","commit_id":"6baef6f984a03c0fca91dd93363874a1b4b090fb"},{"author":{"_account_id":9410,"name":"Yanis Guenane","email":"yguenane@redhat.com","username":"yguenane"},"change_message_id":"c8d9ea3d5e81b8e14143f2b916ed25ed3b139857","unresolved":false,"context_lines":[{"line_number":238,"context_line":"  $lock_path                        \u003d undef,"},{"line_number":239,"context_line":") {"},{"line_number":240,"context_line":""},{"line_number":241,"context_line":"  include ::neutron::db"},{"line_number":242,"context_line":"  include ::neutron::params"},{"line_number":243,"context_line":"  include ::neutron::policy"},{"line_number":244,"context_line":"  require keystone::python"}],"source_content_type":"text/x-puppet","patch_set":3,"id":"ba15a1d1_519cebbf","line":241,"in_reply_to":"ba15a1d1_d6f9d181","updated":"2015-09-15 11:15:30.000000000","message":"Sergey, The new scheme is meant to be used mainly with hiera.\n\nBasically ENC could return someting like \n\nclasses:\n  - neutron::server\n  - neutron::db\n\nYes neutron::server will also include neutron::db, but this isn\u0027t an issue as we can include the same class as many times as one wants.\n\nAs for your suggestion, it doesn\u0027t fit in the vision I had, but it is interesting. Let\u0027s see what people prefer.","commit_id":"6baef6f984a03c0fca91dd93363874a1b4b090fb"}]}
