)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"ac20d49ace59981d397c4180bd1eaca17a41ad36","unresolved":false,"context_lines":[{"line_number":5,"context_line":"CommitDate: 2015-07-17 16:14:58 +0800"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Add DNS and DHCP log into dhcp agent"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Change-Id: I87be346ec5059eaa8a29f48fe53933af82d1b155"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"9a41bdd9_871ca578","line":8,"updated":"2015-07-17 08:20:53.000000000","message":"There\u0027s any bug or blueprint related to this commit?\n\nIt\u0027s quite ok because it\u0027s adding debug capabilities and it\u0027s disabled by default.","commit_id":"73a34df73f8420008191649850b47d8e654866f7"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"d9b35f59020bd1268a6038f662cf3474e812af97","unresolved":false,"context_lines":[{"line_number":5,"context_line":"CommitDate: 2015-07-17 16:14:58 +0800"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Add DNS and DHCP log into dhcp agent"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Change-Id: I87be346ec5059eaa8a29f48fe53933af82d1b155"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"9a41bdd9_07be48ff","line":8,"in_reply_to":"9a41bdd9_360060aa","updated":"2015-07-17 12:31:54.000000000","message":"Done","commit_id":"73a34df73f8420008191649850b47d8e654866f7"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"28ca7509f0fae0c7d7ec51c0dded0471dd32d3c9","unresolved":false,"context_lines":[{"line_number":5,"context_line":"CommitDate: 2015-07-17 16:14:58 +0800"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Add DNS and DHCP log into dhcp agent"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Change-Id: I87be346ec5059eaa8a29f48fe53933af82d1b155"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"9a41bdd9_bae3fc32","line":8,"in_reply_to":"9a41bdd9_871ca578","updated":"2015-07-17 08:24:54.000000000","message":"ah. it seems that there is no bug or bp related this.","commit_id":"73a34df73f8420008191649850b47d8e654866f7"},{"author":{"_account_id":8976,"name":"shihanzhang","email":"ayshihanzhang@gmail.com","username":"shihanzhang"},"change_message_id":"38f8f371dbc889383d3cde5e6adda10cee5c871d","unresolved":false,"context_lines":[{"line_number":5,"context_line":"CommitDate: 2015-07-17 16:14:58 +0800"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Add DNS and DHCP log into dhcp agent"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Change-Id: I87be346ec5059eaa8a29f48fe53933af82d1b155"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"9a41bdd9_360060aa","line":8,"in_reply_to":"9a41bdd9_bae3fc32","updated":"2015-07-17 11:35:50.000000000","message":"I think it is better to filed a bug to track it","commit_id":"73a34df73f8420008191649850b47d8e654866f7"},{"author":{"_account_id":9911,"name":"Wei Wang","email":"wangwei@unitedstack.com","username":"DamonWang"},"change_message_id":"458286c560712eec3064794e660bd8c89520fdd8","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     changzhi \u003cchangzhi@unitedstack.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2015-07-20 13:21:56 +0800"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Add DNS and DHCP log into dhcp agent"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Closes-Bug: #1475636"},{"line_number":10,"context_line":"Change-Id: I87be346ec5059eaa8a29f48fe53933af82d1b155"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":8,"id":"3a50d1a3_c4f959ca","line":7,"updated":"2015-07-20 10:42:12.000000000","message":"Enable set DNS and DHCP log of dnsmasq for dhcp agent","commit_id":"e36fce6519a54c1e9e5a94558c68d3825842e2db"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"7290c90f1cbc8cfb2aa3fe526db896f3cc53370b","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     changzhi \u003cchangzhi@unitedstack.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2015-07-20 13:21:56 +0800"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Add DNS and DHCP log into dhcp agent"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Closes-Bug: #1475636"},{"line_number":10,"context_line":"Change-Id: I87be346ec5059eaa8a29f48fe53933af82d1b155"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":8,"id":"3a50d1a3_84db511b","line":7,"in_reply_to":"3a50d1a3_c4f959ca","updated":"2015-07-20 10:47:13.000000000","message":"Done","commit_id":"e36fce6519a54c1e9e5a94558c68d3825842e2db"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"40c6515f78c09b9c0ea6ad33d1e55cd7d9b435e3","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Add DNS and DHCP log into dhcp agent"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Enable set DNS and DHCP log of dnsmasq for dhcp agent"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"Closes-Bug: #1475636"},{"line_number":12,"context_line":"Change-Id: I87be346ec5059eaa8a29f48fe53933af82d1b155"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":9,"id":"3a50d1a3_d5bedafe","line":10,"updated":"2015-07-20 13:58:59.000000000","message":"Please add DocImpact here and list the new configuration variable","commit_id":"03502d3d08ba8a7b3382e8942ea39115f96157e2"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"851d07eefc3061fc040ca1fdd7454011349254a1","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Add DNS and DHCP log into dhcp agent"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Enable set DNS and DHCP log of dnsmasq for dhcp agent"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"Closes-Bug: #1475636"},{"line_number":12,"context_line":"Change-Id: I87be346ec5059eaa8a29f48fe53933af82d1b155"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":9,"id":"3a50d1a3_35005e34","line":10,"in_reply_to":"3a50d1a3_d5bedafe","updated":"2015-07-20 14:06:46.000000000","message":"Done","commit_id":"03502d3d08ba8a7b3382e8942ea39115f96157e2"},{"author":{"_account_id":9911,"name":"Wei Wang","email":"wangwei@unitedstack.com","username":"DamonWang"},"change_message_id":"5c5c00eb32909f0db28bef546a2ad336172c0d0d","unresolved":false,"context_lines":[{"line_number":16,"context_line":"    dnsmasq_base_log_dir\u003d/tmp"},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"And the DNS and DHCP log will be written into the file"},{"line_number":19,"context_line":"\"/tmp/dhcp_dns_log\". The dir path will be created if the given"},{"line_number":20,"context_line":"path doesn\u0027t exists."},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"DocImpact"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":16,"id":"3a50d1a3_1d0ac426","line":19,"updated":"2015-08-03 05:59:02.000000000","message":"Are you sure? not /tmp/XXXX-XXXXXX-XXXX/dhcp_dns_log ?\n\nI see this in your code: os.path.join(self.conf.dnsmasq_base_log_dir,self.network.id, \u0027dhcp_dns_log\u0027)","commit_id":"62efe82a392480286febcf5cdf0eac482cbc403e"}],"etc/dhcp_agent.ini":[{"author":{"_account_id":11682,"name":"Ryan Moats","email":"rmoats@us.ibm.com","username":"regXboi"},"change_message_id":"6e37a2d37e9fc77ee3f2f0d555c9884772264640","unresolved":false,"context_lines":[{"line_number":71,"context_line":"# Base log dir for dnsmasq logging. The log contains DHCP and DNS log "},{"line_number":72,"context_line":"# information and is useful for debugging issues with either DHCP or DNS."},{"line_number":73,"context_line":"# If this section is null, disable dnsmasq log."},{"line_number":74,"context_line":"# dnsmasq_base_log_dir \u003d "},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"# Limit number of leases to prevent a denial-of-service."},{"line_number":77,"context_line":"# dnsmasq_lease_max \u003d 16777216"}],"source_content_type":"text/x-properties","patch_set":5,"id":"3a50d1a3_dc9dc25a","line":74,"updated":"2015-07-19 17:17:29.000000000","message":"nits: remove trailing white spaces","commit_id":"68ecda0d9b643b2fe36752c83f4d343d95c0c51c"},{"author":{"_account_id":9911,"name":"Wei Wang","email":"wangwei@unitedstack.com","username":"DamonWang"},"change_message_id":"b7aacfdc6b7e44209cae86f4777f0ad8996c09c5","unresolved":false,"context_lines":[{"line_number":68,"context_line":"# as forwarders."},{"line_number":69,"context_line":"# dnsmasq_dns_servers \u003d"},{"line_number":70,"context_line":""},{"line_number":71,"context_line":"# Base log dir for dnsmasq logging. The log contains DHCP and DNS log "},{"line_number":72,"context_line":"# information and is useful for debugging issues with either DHCP or DNS."},{"line_number":73,"context_line":"# If this section is null, disable dnsmasq log."},{"line_number":74,"context_line":"# dnsmasq_base_log_dir \u003d "}],"source_content_type":"text/x-properties","patch_set":7,"id":"3a50d1a3_d4791231","line":71,"updated":"2015-07-20 05:21:20.000000000","message":"fixit","commit_id":"d3067c1ec310aeb1d50f4b8319f1d39d7efd396e"}],"neutron/agent/dhcp/config.py":[{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"baa81aebb4932a0decafb040976e511c848ef340","unresolved":false,"context_lines":[{"line_number":54,"context_line":"                       \"This option is deprecated and \""},{"line_number":55,"context_line":"                       \"will be removed in a future release.\"),"},{"line_number":56,"context_line":"                deprecated_for_removal\u003dTrue),"},{"line_number":57,"context_line":"    cfg.BoolOpt(\u0027dnsmasq_enable_debug\u0027,"},{"line_number":58,"context_line":"                default\u003dFalse,"},{"line_number":59,"context_line":"                help\u003d_(\"Whether or not enable dnsmasq log function.\""},{"line_number":60,"context_line":"                       \"The log contains DHCP and DNS log info.\")),"}],"source_content_type":"text/x-python","patch_set":4,"id":"9a41bdd9_0b262eba","line":57,"updated":"2015-07-18 09:07:37.000000000","message":"rather than this being a boolean, i would rather see it being a string that determines the base log dir that these will land it to give operators more flexibility. then if it\u0027s null, it is disabled.","commit_id":"0fdd4f29086a5ba75f4f16a7ad733d3e66324639"},{"author":{"_account_id":105,"name":"Kyle Mestery","email":"mestery@mestery.com","username":"mestery"},"change_message_id":"69587c20399162b0d9f05c91831e85a4e026ed27","unresolved":false,"context_lines":[{"line_number":56,"context_line":"                deprecated_for_removal\u003dTrue),"},{"line_number":57,"context_line":"    cfg.BoolOpt(\u0027dnsmasq_enable_debug\u0027,"},{"line_number":58,"context_line":"                default\u003dFalse,"},{"line_number":59,"context_line":"                help\u003d_(\"Whether or not enable dnsmasq log function.\""},{"line_number":60,"context_line":"                       \"The log contains DHCP and DNS log info.\")),"},{"line_number":61,"context_line":"    cfg.IntOpt("},{"line_number":62,"context_line":"        \u0027dnsmasq_lease_max\u0027,"}],"source_content_type":"text/x-python","patch_set":4,"id":"9a41bdd9_cf7dd2e8","line":59,"updated":"2015-07-17 13:59:38.000000000","message":"Can you change this help string to read as follows:\n\n\n\"Enable dnsmasq logging. The log contains DHCP and DNS log information and is useful for debugging issues with either DHCP or DNS.\"","commit_id":"0fdd4f29086a5ba75f4f16a7ad733d3e66324639"},{"author":{"_account_id":9911,"name":"Wei Wang","email":"wangwei@unitedstack.com","username":"DamonWang"},"change_message_id":"34a73d057bc2cc59eabf67efbe61702c9440a1c6","unresolved":false,"context_lines":[{"line_number":56,"context_line":"                deprecated_for_removal\u003dTrue),"},{"line_number":57,"context_line":"    cfg.BoolOpt(\u0027dnsmasq_enable_debug\u0027,"},{"line_number":58,"context_line":"                default\u003dFalse,"},{"line_number":59,"context_line":"                help\u003d_(\"Whether or not enable dnsmasq log function.\""},{"line_number":60,"context_line":"                       \"The log contains DHCP and DNS log info.\")),"},{"line_number":61,"context_line":"    cfg.IntOpt("},{"line_number":62,"context_line":"        \u0027dnsmasq_lease_max\u0027,"}],"source_content_type":"text/x-python","patch_set":4,"id":"9a41bdd9_ac416f3b","line":59,"in_reply_to":"9a41bdd9_cf7dd2e8","updated":"2015-07-17 17:10:09.000000000","message":"+1","commit_id":"0fdd4f29086a5ba75f4f16a7ad733d3e66324639"},{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"40c6515f78c09b9c0ea6ad33d1e55cd7d9b435e3","unresolved":false,"context_lines":[{"line_number":55,"context_line":"                       \"will be removed in a future release.\"),"},{"line_number":56,"context_line":"                deprecated_for_removal\u003dTrue),"},{"line_number":57,"context_line":"    cfg.StrOpt(\u0027dnsmasq_base_log_dir\u0027,"},{"line_number":58,"context_line":"               default\u003d\u0027\u0027,"},{"line_number":59,"context_line":"               help\u003d_(\"Base log dir for dnsmasq logging. \""},{"line_number":60,"context_line":"                      \"The log contains DHCP and DNS log information and \""},{"line_number":61,"context_line":"                      \"is useful for debugging issues with either DHCP or \""}],"source_content_type":"text/x-python","patch_set":9,"id":"3a50d1a3_d5557ac6","line":58,"updated":"2015-07-20 13:58:59.000000000","message":"why do we need this. The default value should be None. So I think that you can delete this line","commit_id":"03502d3d08ba8a7b3382e8942ea39115f96157e2"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"851d07eefc3061fc040ca1fdd7454011349254a1","unresolved":false,"context_lines":[{"line_number":55,"context_line":"                       \"will be removed in a future release.\"),"},{"line_number":56,"context_line":"                deprecated_for_removal\u003dTrue),"},{"line_number":57,"context_line":"    cfg.StrOpt(\u0027dnsmasq_base_log_dir\u0027,"},{"line_number":58,"context_line":"               default\u003d\u0027\u0027,"},{"line_number":59,"context_line":"               help\u003d_(\"Base log dir for dnsmasq logging. \""},{"line_number":60,"context_line":"                      \"The log contains DHCP and DNS log information and \""},{"line_number":61,"context_line":"                      \"is useful for debugging issues with either DHCP or \""}],"source_content_type":"text/x-python","patch_set":9,"id":"3a50d1a3_9595b2e5","line":58,"in_reply_to":"3a50d1a3_d5557ac6","updated":"2015-07-20 14:06:46.000000000","message":"Done","commit_id":"03502d3d08ba8a7b3382e8942ea39115f96157e2"},{"author":{"_account_id":704,"name":"Edgar Magana","email":"emagana@gmail.com","username":"emagana"},"change_message_id":"810bcc93b36841b11f30b16bf331bad10f4045c0","unresolved":false,"context_lines":[{"line_number":55,"context_line":"                       \"will be removed in a future release.\"),"},{"line_number":56,"context_line":"                deprecated_for_removal\u003dTrue),"},{"line_number":57,"context_line":"    cfg.StrOpt(\u0027dnsmasq_base_log_dir\u0027,"},{"line_number":58,"context_line":"               help\u003d_(\"Base log dir for dnsmasq logging. \""},{"line_number":59,"context_line":"                      \"The log contains DHCP and DNS log information and \""},{"line_number":60,"context_line":"                      \"is useful for debugging issues with either DHCP or \""},{"line_number":61,"context_line":"                      \"DNS. If this section is null, disable dnsmasq log.\")),"}],"source_content_type":"text/x-python","patch_set":12,"id":"3a50d1a3_e3346bdf","line":58,"updated":"2015-07-20 20:44:41.000000000","message":"I would set up /var/log/ as default","commit_id":"f68bf774fa6e74a2da77379c79745472ab95c516"},{"author":{"_account_id":10257,"name":"Sridhar Gaddam","email":"sgaddam@redhat.com","username":"sridhargaddam"},"change_message_id":"24de6d2ee16574125d09dbcaf996b7eceadde4dc","unresolved":false,"context_lines":[{"line_number":55,"context_line":"                       \"will be removed in a future release.\"),"},{"line_number":56,"context_line":"                deprecated_for_removal\u003dTrue),"},{"line_number":57,"context_line":"    cfg.StrOpt(\u0027dnsmasq_base_log_dir\u0027,"},{"line_number":58,"context_line":"               help\u003d_(\"Base log dir for dnsmasq logging. \""},{"line_number":59,"context_line":"                      \"The log contains DHCP and DNS log information and \""},{"line_number":60,"context_line":"                      \"is useful for debugging issues with either DHCP or \""},{"line_number":61,"context_line":"                      \"DNS. If this section is null, disable dnsmasq log.\")),"}],"source_content_type":"text/x-python","patch_set":12,"id":"3a50d1a3_ce084894","line":58,"in_reply_to":"3a50d1a3_afd71aec","updated":"2015-07-21 15:31:42.000000000","message":"IMO, if dnsmasq_base_log_dir is not configured retaining the existing behavior may be a good idea (i.e., we do not log dnsmasq logs).","commit_id":"f68bf774fa6e74a2da77379c79745472ab95c516"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"e2ac9ce9fd53cecd54b055e2e097f2af68aa7b88","unresolved":false,"context_lines":[{"line_number":55,"context_line":"                       \"will be removed in a future release.\"),"},{"line_number":56,"context_line":"                deprecated_for_removal\u003dTrue),"},{"line_number":57,"context_line":"    cfg.StrOpt(\u0027dnsmasq_base_log_dir\u0027,"},{"line_number":58,"context_line":"               help\u003d_(\"Base log dir for dnsmasq logging. \""},{"line_number":59,"context_line":"                      \"The log contains DHCP and DNS log information and \""},{"line_number":60,"context_line":"                      \"is useful for debugging issues with either DHCP or \""},{"line_number":61,"context_line":"                      \"DNS. If this section is null, disable dnsmasq log.\")),"}],"source_content_type":"text/x-python","patch_set":12,"id":"3a50d1a3_c44ee795","line":58,"in_reply_to":"3a50d1a3_ce084894","updated":"2015-07-21 16:10:06.000000000","message":"ok, what should i do? how do i define this entry?","commit_id":"f68bf774fa6e74a2da77379c79745472ab95c516"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"bc588752df6d3a83a99c1b19887667d57c4a31fe","unresolved":false,"context_lines":[{"line_number":55,"context_line":"                       \"will be removed in a future release.\"),"},{"line_number":56,"context_line":"                deprecated_for_removal\u003dTrue),"},{"line_number":57,"context_line":"    cfg.StrOpt(\u0027dnsmasq_base_log_dir\u0027,"},{"line_number":58,"context_line":"               help\u003d_(\"Base log dir for dnsmasq logging. \""},{"line_number":59,"context_line":"                      \"The log contains DHCP and DNS log information and \""},{"line_number":60,"context_line":"                      \"is useful for debugging issues with either DHCP or \""},{"line_number":61,"context_line":"                      \"DNS. If this section is null, disable dnsmasq log.\")),"}],"source_content_type":"text/x-python","patch_set":12,"id":"3a50d1a3_afd71aec","line":58,"in_reply_to":"3a50d1a3_e3346bdf","updated":"2015-07-21 05:11:47.000000000","message":"I disagree. I prefer old behavior as default.","commit_id":"f68bf774fa6e74a2da77379c79745472ab95c516"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"69951bb49aafef54c7cd43fca9df4ef6d3a65341","unresolved":false,"context_lines":[{"line_number":55,"context_line":"                       \"will be removed in a future release.\"),"},{"line_number":56,"context_line":"                deprecated_for_removal\u003dTrue),"},{"line_number":57,"context_line":"    cfg.BoolOpt(\u0027dnsmasq_enable_debug\u0027,"},{"line_number":58,"context_line":"               default\u003dFalse,"},{"line_number":59,"context_line":"               help\u003d_(\"Enable debug for dnsmasq logging. \""},{"line_number":60,"context_line":"                      \"The log contains DHCP, DNS log information and \""},{"line_number":61,"context_line":"                      \"is useful for debugging issues with either DHCP or \""}],"source_content_type":"text/x-python","patch_set":14,"id":"3a50d1a3_28858058","line":58,"updated":"2015-07-30 08:09:27.000000000","message":"I prefer the version in PS12. Make the default empty which will disable it. Then in the help string, you can put the path to DHCP state if people want to share the same location.","commit_id":"8c0035232d223fb558fb35d1905fce6c559b4960"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"33c10f2e0d84c4c399f8f9aceec570a59c2a834a","unresolved":false,"context_lines":[{"line_number":55,"context_line":"                       \"will be removed in a future release.\"),"},{"line_number":56,"context_line":"                deprecated_for_removal\u003dTrue),"},{"line_number":57,"context_line":"    cfg.BoolOpt(\u0027dnsmasq_enable_debug\u0027,"},{"line_number":58,"context_line":"               default\u003dFalse,"},{"line_number":59,"context_line":"               help\u003d_(\"Enable debug for dnsmasq logging. \""},{"line_number":60,"context_line":"                      \"The log contains DHCP, DNS log information and \""},{"line_number":61,"context_line":"                      \"is useful for debugging issues with either DHCP or \""}],"source_content_type":"text/x-python","patch_set":14,"id":"3a50d1a3_cdbf205f","line":58,"in_reply_to":"3a50d1a3_19478e4c","updated":"2015-07-31 02:53:19.000000000","message":"hmmm... what does your advice? Shoud i define dictionary to store debug infos for each dnsmasq process? if the dictionary has no permission to create it, what should i do?","commit_id":"8c0035232d223fb558fb35d1905fce6c559b4960"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"542b7e3d45aa9b503e51f9754bb0e8b653bcf2ae","unresolved":false,"context_lines":[{"line_number":55,"context_line":"                       \"will be removed in a future release.\"),"},{"line_number":56,"context_line":"                deprecated_for_removal\u003dTrue),"},{"line_number":57,"context_line":"    cfg.BoolOpt(\u0027dnsmasq_enable_debug\u0027,"},{"line_number":58,"context_line":"               default\u003dFalse,"},{"line_number":59,"context_line":"               help\u003d_(\"Enable debug for dnsmasq logging. \""},{"line_number":60,"context_line":"                      \"The log contains DHCP, DNS log information and \""},{"line_number":61,"context_line":"                      \"is useful for debugging issues with either DHCP or \""}],"source_content_type":"text/x-python","patch_set":14,"id":"3a50d1a3_c832dc5e","line":58,"in_reply_to":"3a50d1a3_28858058","updated":"2015-07-30 08:15:17.000000000","message":"+1","commit_id":"8c0035232d223fb558fb35d1905fce6c559b4960"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"bc9e0233c08880347993f9bb385b65ffe8e85260","unresolved":false,"context_lines":[{"line_number":55,"context_line":"                       \"will be removed in a future release.\"),"},{"line_number":56,"context_line":"                deprecated_for_removal\u003dTrue),"},{"line_number":57,"context_line":"    cfg.BoolOpt(\u0027dnsmasq_enable_debug\u0027,"},{"line_number":58,"context_line":"               default\u003dFalse,"},{"line_number":59,"context_line":"               help\u003d_(\"Enable debug for dnsmasq logging. \""},{"line_number":60,"context_line":"                      \"The log contains DHCP, DNS log information and \""},{"line_number":61,"context_line":"                      \"is useful for debugging issues with either DHCP or \""}],"source_content_type":"text/x-python","patch_set":14,"id":"3a50d1a3_0e23eda8","line":58,"in_reply_to":"3a50d1a3_28858058","updated":"2015-07-30 08:17:10.000000000","message":"dhcp agent can\u0027t create the dictionary if i set the debug log path is \"/home/test\".  because of permission deny.  how to fix ?","commit_id":"8c0035232d223fb558fb35d1905fce6c559b4960"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"1a179d41b340b5a843ce8596d8e6948ad7963f0a","unresolved":false,"context_lines":[{"line_number":55,"context_line":"                       \"will be removed in a future release.\"),"},{"line_number":56,"context_line":"                deprecated_for_removal\u003dTrue),"},{"line_number":57,"context_line":"    cfg.BoolOpt(\u0027dnsmasq_enable_debug\u0027,"},{"line_number":58,"context_line":"               default\u003dFalse,"},{"line_number":59,"context_line":"               help\u003d_(\"Enable debug for dnsmasq logging. \""},{"line_number":60,"context_line":"                      \"The log contains DHCP, DNS log information and \""},{"line_number":61,"context_line":"                      \"is useful for debugging issues with either DHCP or \""}],"source_content_type":"text/x-python","patch_set":14,"id":"3a50d1a3_2e5ca9ef","line":58,"in_reply_to":"3a50d1a3_28858058","updated":"2015-07-30 08:20:55.000000000","message":"every dnsmasq process has its own dictionary path. if this configuration is a path, so all dnsmasq processes put its debug info the same file, thus we can\u0027t distinguish which dnsmasq process\u0027s debug info","commit_id":"8c0035232d223fb558fb35d1905fce6c559b4960"},{"author":{"_account_id":10257,"name":"Sridhar Gaddam","email":"sgaddam@redhat.com","username":"sridhargaddam"},"change_message_id":"583d3850192ec6e82587b2b57226b3166ad5a541","unresolved":false,"context_lines":[{"line_number":55,"context_line":"                       \"will be removed in a future release.\"),"},{"line_number":56,"context_line":"                deprecated_for_removal\u003dTrue),"},{"line_number":57,"context_line":"    cfg.BoolOpt(\u0027dnsmasq_enable_debug\u0027,"},{"line_number":58,"context_line":"               default\u003dFalse,"},{"line_number":59,"context_line":"               help\u003d_(\"Enable debug for dnsmasq logging. \""},{"line_number":60,"context_line":"                      \"The log contains DHCP, DNS log information and \""},{"line_number":61,"context_line":"                      \"is useful for debugging issues with either DHCP or \""}],"source_content_type":"text/x-python","patch_set":14,"id":"3a50d1a3_379958d1","line":58,"in_reply_to":"3a50d1a3_2e5ca9ef","updated":"2015-07-30 09:19:15.000000000","message":"@Kevin and @Yamamoto:\n\nI personally prefer the current approach over PS12. In this approach, each dnsmasq uses a separate file which is stored in the same path where all the other dnsmasq instance specific files are created (i.e.,  addn_hosts, host, interface, leases etc). \nIn PS12, all dnsmasq instances would use the same log file so isnt it going to be difficult for users to map the dhcp logs to dnsmasq instance? \nOTOH, we will also have to take care of issues like the folder_path provided in \"dnsmasq_base_log_dir\" is writable by q-dhcp agent.\n\nKeepalived-state-change-monitor process uses the same folder path (i.e., example /opt/stack/data/neutron/ha_confs/c18af46c-33ae-453e-8e59-d8d9ba234e63/*) for logging instead of a different folder. It would be nice if dhcp-agent uses the same approach.","commit_id":"8c0035232d223fb558fb35d1905fce6c559b4960"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"c92272568ed43a2027e8150721e85655f06cee2c","unresolved":false,"context_lines":[{"line_number":55,"context_line":"                       \"will be removed in a future release.\"),"},{"line_number":56,"context_line":"                deprecated_for_removal\u003dTrue),"},{"line_number":57,"context_line":"    cfg.BoolOpt(\u0027dnsmasq_enable_debug\u0027,"},{"line_number":58,"context_line":"               default\u003dFalse,"},{"line_number":59,"context_line":"               help\u003d_(\"Enable debug for dnsmasq logging. \""},{"line_number":60,"context_line":"                      \"The log contains DHCP, DNS log information and \""},{"line_number":61,"context_line":"                      \"is useful for debugging issues with either DHCP or \""}],"source_content_type":"text/x-python","patch_set":14,"id":"3a50d1a3_19478e4c","line":58,"in_reply_to":"3a50d1a3_379958d1","updated":"2015-07-30 23:19:57.000000000","message":"They don\u0027t have to log to the same file. We can still have it follow the instance specific directory structure.\n\nIf you want it to log to the same location, you would just set the configuration value to the same base directory. Then the per-instance logging would land in the same folders as the config.","commit_id":"8c0035232d223fb558fb35d1905fce6c559b4960"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"caace432112ac210c1dd279d57472f8dae40dcde","unresolved":false,"context_lines":[{"line_number":55,"context_line":"                       \"will be removed in a future release.\"),"},{"line_number":56,"context_line":"                deprecated_for_removal\u003dTrue),"},{"line_number":57,"context_line":"    cfg.BoolOpt(\u0027dnsmasq_enable_debug\u0027,"},{"line_number":58,"context_line":"               default\u003dFalse,"},{"line_number":59,"context_line":"               help\u003d_(\"Enable debug for dnsmasq logging. \""},{"line_number":60,"context_line":"                      \"The log contains DHCP, DNS log information and \""},{"line_number":61,"context_line":"                      \"is useful for debugging issues with either DHCP or \""}],"source_content_type":"text/x-python","patch_set":14,"id":"3a50d1a3_ac54c821","line":58,"in_reply_to":"3a50d1a3_83a807dd","updated":"2015-08-03 03:44:55.000000000","message":"yes, each instance gets it own folder.\n\nThe advantage is that an admin can log them to a partition that can handle potentially large files.\n\n\n@Zhi, just define a function just like the existing one. Handling failures is exactly the same as if it doesn\u0027t have permissions for the main folder.","commit_id":"8c0035232d223fb558fb35d1905fce6c559b4960"},{"author":{"_account_id":10257,"name":"Sridhar Gaddam","email":"sgaddam@redhat.com","username":"sridhargaddam"},"change_message_id":"8a697a234355eda5224805fdfd36ea109ddeb3eb","unresolved":false,"context_lines":[{"line_number":55,"context_line":"                       \"will be removed in a future release.\"),"},{"line_number":56,"context_line":"                deprecated_for_removal\u003dTrue),"},{"line_number":57,"context_line":"    cfg.BoolOpt(\u0027dnsmasq_enable_debug\u0027,"},{"line_number":58,"context_line":"               default\u003dFalse,"},{"line_number":59,"context_line":"               help\u003d_(\"Enable debug for dnsmasq logging. \""},{"line_number":60,"context_line":"                      \"The log contains DHCP, DNS log information and \""},{"line_number":61,"context_line":"                      \"is useful for debugging issues with either DHCP or \""}],"source_content_type":"text/x-python","patch_set":14,"id":"3a50d1a3_83a807dd","line":58,"in_reply_to":"3a50d1a3_cdbf205f","updated":"2015-07-31 03:58:55.000000000","message":"@Kevin, assuming that dnsmasq instance is storing its files like leases/opts/addn_hosts etc in\n/opt/stack/data/neutron/dhcp/25332b25-ba31-41ae-9fc6-298780f310a2/*\n\nyour suggestion is...\n1. Use approach in PS12 (i.e., dnsmasq_base_log_dir)\n2. configure \"dnsmasq_base_log_dir\u003d/tmp/dnsmasq_logs\" \n3. then instance specific logs would be dumped to\n   /tmp/dnsmasq_logs/25332b25-ba31-41ae-9fc6-298780f310a2/log\n\nIs this correct? If so, I\u0027m still missing the advantage of using a separate folder instead of the same folder where all the other instance specific files are present.","commit_id":"8c0035232d223fb558fb35d1905fce6c559b4960"}],"neutron/agent/linux/dhcp.py":[{"author":{"_account_id":10257,"name":"Sridhar Gaddam","email":"sgaddam@redhat.com","username":"sridhargaddam"},"change_message_id":"29a546f394c3cb6cb67d67be3e61db4ba73a81c7","unresolved":false,"context_lines":[{"line_number":307,"context_line":"            \u0027--no-hosts\u0027,"},{"line_number":308,"context_line":"            \u0027--no-resolv\u0027,"},{"line_number":309,"context_line":"            \u0027--log-queries\u0027,"},{"line_number":310,"context_line":"            \u0027--log-dhcp\u0027,"},{"line_number":311,"context_line":"            \u0027--strict-order\u0027,"},{"line_number":312,"context_line":"            \u0027--bind-interfaces\u0027,"},{"line_number":313,"context_line":"            \u0027--interface\u003d%s\u0027 % self.interface_name,"}],"source_content_type":"text/x-python","patch_set":2,"id":"9a41bdd9_7b302308","line":310,"updated":"2015-07-17 03:33:17.000000000","message":"@Zhi Chang, since using \"--log-dhcp/log-queries\" can generate lots of debug information, I\u0027m not sure if we can enable this \"un-conditionally\".\nWe follow the same approach for other external processes that are spawned by Neutron - i.e., like keepalived, radvd etc. \nNormally, all these processes dump logs to syslog. \nAre you facing any issue for which you feel this change would be helpful?","commit_id":"d689f9e7f311d488007347c47809c9d979d08fc8"},{"author":{"_account_id":10257,"name":"Sridhar Gaddam","email":"sgaddam@redhat.com","username":"sridhargaddam"},"change_message_id":"de5dbf3c053bb18c046717651537241efd4f80d9","unresolved":false,"context_lines":[{"line_number":307,"context_line":"            \u0027--no-hosts\u0027,"},{"line_number":308,"context_line":"            \u0027--no-resolv\u0027,"},{"line_number":309,"context_line":"            \u0027--log-queries\u0027,"},{"line_number":310,"context_line":"            \u0027--log-dhcp\u0027,"},{"line_number":311,"context_line":"            \u0027--strict-order\u0027,"},{"line_number":312,"context_line":"            \u0027--bind-interfaces\u0027,"},{"line_number":313,"context_line":"            \u0027--interface\u003d%s\u0027 % self.interface_name,"}],"source_content_type":"text/x-python","patch_set":2,"id":"9a41bdd9_7086fa14","line":310,"in_reply_to":"9a41bdd9_3e6da9cc","updated":"2015-07-17 07:22:23.000000000","message":"Ok, but using it un-conditionally may not be a good idea. \nIf its required, enabling it based on debug flag of dhcp_agent.ini can be looked at.\n\nLets hear from other reviewers before doing any further changes.","commit_id":"d689f9e7f311d488007347c47809c9d979d08fc8"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"2f08c15bd65845b4529200cb30c7cd61d7983f59","unresolved":false,"context_lines":[{"line_number":307,"context_line":"            \u0027--no-hosts\u0027,"},{"line_number":308,"context_line":"            \u0027--no-resolv\u0027,"},{"line_number":309,"context_line":"            \u0027--log-queries\u0027,"},{"line_number":310,"context_line":"            \u0027--log-dhcp\u0027,"},{"line_number":311,"context_line":"            \u0027--strict-order\u0027,"},{"line_number":312,"context_line":"            \u0027--bind-interfaces\u0027,"},{"line_number":313,"context_line":"            \u0027--interface\u003d%s\u0027 % self.interface_name,"}],"source_content_type":"text/x-python","patch_set":2,"id":"9a41bdd9_f0ee8ab3","line":310,"in_reply_to":"9a41bdd9_7086fa14","updated":"2015-07-17 07:26:24.000000000","message":"ok","commit_id":"d689f9e7f311d488007347c47809c9d979d08fc8"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"e5ccc399d0c939141dc083ab2eb616f25c86cb95","unresolved":false,"context_lines":[{"line_number":307,"context_line":"            \u0027--no-hosts\u0027,"},{"line_number":308,"context_line":"            \u0027--no-resolv\u0027,"},{"line_number":309,"context_line":"            \u0027--log-queries\u0027,"},{"line_number":310,"context_line":"            \u0027--log-dhcp\u0027,"},{"line_number":311,"context_line":"            \u0027--strict-order\u0027,"},{"line_number":312,"context_line":"            \u0027--bind-interfaces\u0027,"},{"line_number":313,"context_line":"            \u0027--interface\u003d%s\u0027 % self.interface_name,"}],"source_content_type":"text/x-python","patch_set":2,"id":"9a41bdd9_3e6da9cc","line":310,"in_reply_to":"9a41bdd9_7b302308","updated":"2015-07-17 03:40:53.000000000","message":"I think add dncp/dns log will helpful to developers when they are debugging. :-)","commit_id":"d689f9e7f311d488007347c47809c9d979d08fc8"},{"author":{"_account_id":10257,"name":"Sridhar Gaddam","email":"sgaddam@redhat.com","username":"sridhargaddam"},"change_message_id":"24de6d2ee16574125d09dbcaf996b7eceadde4dc","unresolved":false,"context_lines":[{"line_number":384,"context_line":"            cmd.append(\u0027--log-dhcp\u0027)"},{"line_number":385,"context_line":""},{"line_number":386,"context_line":"            if not os.path.exists(self.conf.dnsmasq_base_log_dir):"},{"line_number":387,"context_line":"                os.makedirs(self.conf.dnsmasq_base_log_dir)"},{"line_number":388,"context_line":""},{"line_number":389,"context_line":"            log_filename \u003d os.path.join("},{"line_number":390,"context_line":"                self.conf.dnsmasq_base_log_dir, \u0027log\u0027)"}],"source_content_type":"text/x-python","patch_set":12,"id":"3a50d1a3_0e74f0fa","line":387,"updated":"2015-07-21 15:31:42.000000000","message":"If the dnsmasq_base_log_dir is configured to a path where dnsmasq agent does not have permission, we would get the following error - \"OSError: [Errno 13] Permission denied\"","commit_id":"f68bf774fa6e74a2da77379c79745472ab95c516"},{"author":{"_account_id":704,"name":"Edgar Magana","email":"emagana@gmail.com","username":"emagana"},"change_message_id":"810bcc93b36841b11f30b16bf331bad10f4045c0","unresolved":false,"context_lines":[{"line_number":387,"context_line":"                os.makedirs(self.conf.dnsmasq_base_log_dir)"},{"line_number":388,"context_line":""},{"line_number":389,"context_line":"            log_filename \u003d os.path.join("},{"line_number":390,"context_line":"                self.conf.dnsmasq_base_log_dir, \u0027log\u0027)"},{"line_number":391,"context_line":"            cmd.append(\u0027--log-facility\u003d%s\u0027 % log_filename)"},{"line_number":392,"context_line":""},{"line_number":393,"context_line":"        return cmd"}],"source_content_type":"text/x-python","patch_set":12,"id":"3a50d1a3_433f5fb4","line":390,"updated":"2015-07-20 20:44:41.000000000","message":"log is a very popular name for this, please use something more ad-hoc to this topic.","commit_id":"f68bf774fa6e74a2da77379c79745472ab95c516"},{"author":{"_account_id":10257,"name":"Sridhar Gaddam","email":"sgaddam@redhat.com","username":"sridhargaddam"},"change_message_id":"3273b1d551538a01a863cc452e9b608b7d4621de","unresolved":false,"context_lines":[{"line_number":387,"context_line":"                os.makedirs(self.conf.dnsmasq_base_log_dir)"},{"line_number":388,"context_line":""},{"line_number":389,"context_line":"            log_filename \u003d os.path.join("},{"line_number":390,"context_line":"                self.conf.dnsmasq_base_log_dir, \u0027log\u0027)"},{"line_number":391,"context_line":"            cmd.append(\u0027--log-facility\u003d%s\u0027 % log_filename)"},{"line_number":392,"context_line":""},{"line_number":393,"context_line":"        return cmd"}],"source_content_type":"text/x-python","patch_set":12,"id":"3a50d1a3_f3472449","line":390,"in_reply_to":"3a50d1a3_042ccfa9","updated":"2015-07-21 17:03:31.000000000","message":"hmmm....\n\nAs you know, dhcp-agent creates some files (i.e., addn_hosts, host, interface, leases etc) associated with each dnsmasq process. The folders in which these files are created would be different for each dnsmasq instance as they are created using the network.id in the folder-path (i.e., example \"/opt/stack/data/neutron/dhcp/\u003cnetwork-id\u003e/*\"). This approach helps us to identify all the files associated to the dnsmasq in one folder.\n\nI personally feel that we should take the same approach even for the log file. \ni.e., create the log file in the same folder where all the other files are present instead of taking the folder path from the user (i.e., \"dnsmasq_base_log_dir\") \n\nI understand that your previous patchset [1] had a BoolOpt(\"dnsmasq_enable_debug\") which would fit better in this approach. \n[1] - https://review.openstack.org/#/c/202855/4..12/neutron/agent/dhcp/config.py \n\nMay be you can reach out to @Kevin/@Kyle for their views on this.","commit_id":"f68bf774fa6e74a2da77379c79745472ab95c516"},{"author":{"_account_id":15309,"name":"zhaobo","email":"bzhaojyathousandy@gmail.com","username":"ZhaoBo"},"change_message_id":"40f9c33fc59ef7f9a71949e613a0349ee99b1298","unresolved":false,"context_lines":[{"line_number":387,"context_line":"                os.makedirs(self.conf.dnsmasq_base_log_dir)"},{"line_number":388,"context_line":""},{"line_number":389,"context_line":"            log_filename \u003d os.path.join("},{"line_number":390,"context_line":"                self.conf.dnsmasq_base_log_dir, \u0027log\u0027)"},{"line_number":391,"context_line":"            cmd.append(\u0027--log-facility\u003d%s\u0027 % log_filename)"},{"line_number":392,"context_line":""},{"line_number":393,"context_line":"        return cmd"}],"source_content_type":"text/x-python","patch_set":12,"id":"3a50d1a3_d121ebb5","line":390,"in_reply_to":"3a50d1a3_433f5fb4","updated":"2015-07-21 04:03:06.000000000","message":"I agree with Edgar Magana, the name should be more specific.","commit_id":"f68bf774fa6e74a2da77379c79745472ab95c516"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"e2ac9ce9fd53cecd54b055e2e097f2af68aa7b88","unresolved":false,"context_lines":[{"line_number":387,"context_line":"                os.makedirs(self.conf.dnsmasq_base_log_dir)"},{"line_number":388,"context_line":""},{"line_number":389,"context_line":"            log_filename \u003d os.path.join("},{"line_number":390,"context_line":"                self.conf.dnsmasq_base_log_dir, \u0027log\u0027)"},{"line_number":391,"context_line":"            cmd.append(\u0027--log-facility\u003d%s\u0027 % log_filename)"},{"line_number":392,"context_line":""},{"line_number":393,"context_line":"        return cmd"}],"source_content_type":"text/x-python","patch_set":12,"id":"3a50d1a3_042ccfa9","line":390,"in_reply_to":"3a50d1a3_6ee9f47f","updated":"2015-07-21 16:10:06.000000000","message":"ok, maybe you could give me a meaningful name. how does \u0027dns_dhcp_log\u0027?","commit_id":"f68bf774fa6e74a2da77379c79745472ab95c516"},{"author":{"_account_id":10257,"name":"Sridhar Gaddam","email":"sgaddam@redhat.com","username":"sridhargaddam"},"change_message_id":"24de6d2ee16574125d09dbcaf996b7eceadde4dc","unresolved":false,"context_lines":[{"line_number":387,"context_line":"                os.makedirs(self.conf.dnsmasq_base_log_dir)"},{"line_number":388,"context_line":""},{"line_number":389,"context_line":"            log_filename \u003d os.path.join("},{"line_number":390,"context_line":"                self.conf.dnsmasq_base_log_dir, \u0027log\u0027)"},{"line_number":391,"context_line":"            cmd.append(\u0027--log-facility\u003d%s\u0027 % log_filename)"},{"line_number":392,"context_line":""},{"line_number":393,"context_line":"        return cmd"}],"source_content_type":"text/x-python","patch_set":12,"id":"3a50d1a3_6ee9f47f","line":390,"in_reply_to":"3a50d1a3_6f16f2a8","updated":"2015-07-21 15:31:42.000000000","message":"I agree with @Edgar, please use some meaningful name to convey that the log file is related to dnsmasq.","commit_id":"f68bf774fa6e74a2da77379c79745472ab95c516"},{"author":{"_account_id":7715,"name":"Hirofumi Ichihara","email":"ichihara.hirofumi@gmail.com","username":"Hirofumi-Ichihara"},"change_message_id":"bc588752df6d3a83a99c1b19887667d57c4a31fe","unresolved":false,"context_lines":[{"line_number":387,"context_line":"                os.makedirs(self.conf.dnsmasq_base_log_dir)"},{"line_number":388,"context_line":""},{"line_number":389,"context_line":"            log_filename \u003d os.path.join("},{"line_number":390,"context_line":"                self.conf.dnsmasq_base_log_dir, \u0027log\u0027)"},{"line_number":391,"context_line":"            cmd.append(\u0027--log-facility\u003d%s\u0027 % log_filename)"},{"line_number":392,"context_line":""},{"line_number":393,"context_line":"        return cmd"}],"source_content_type":"text/x-python","patch_set":12,"id":"3a50d1a3_6f16f2a8","line":390,"in_reply_to":"3a50d1a3_d121ebb5","updated":"2015-07-21 05:11:47.000000000","message":"I don\u0027t think that it\u0027s essential since it\u0027s just file name not sutff like global.","commit_id":"f68bf774fa6e74a2da77379c79745472ab95c516"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"4757a64fb4e487ed583834b964ea5cc34ed980d1","unresolved":false,"context_lines":[{"line_number":387,"context_line":"                os.makedirs(self.conf.dnsmasq_base_log_dir)"},{"line_number":388,"context_line":""},{"line_number":389,"context_line":"            log_filename \u003d os.path.join("},{"line_number":390,"context_line":"                self.conf.dnsmasq_base_log_dir, \u0027log\u0027)"},{"line_number":391,"context_line":"            cmd.append(\u0027--log-facility\u003d%s\u0027 % log_filename)"},{"line_number":392,"context_line":""},{"line_number":393,"context_line":"        return cmd"}],"source_content_type":"text/x-python","patch_set":12,"id":"3a50d1a3_d671a145","line":390,"in_reply_to":"3a50d1a3_f3472449","updated":"2015-07-22 02:36:29.000000000","message":"hi, i agree with you. i have upload the new patch and it is same as patch3. i think a  boolean is greater than a dir user defined.","commit_id":"f68bf774fa6e74a2da77379c79745472ab95c516"},{"author":{"_account_id":8976,"name":"shihanzhang","email":"ayshihanzhang@gmail.com","username":"shihanzhang"},"change_message_id":"08b7083ddab11f7a9ffb7c65f8b4e547f3415e4f","unresolved":false,"context_lines":[{"line_number":382,"context_line":"        if self.conf.dnsmasq_enable_debug:"},{"line_number":383,"context_line":"            cmd.append(\u0027--log-queries\u0027)"},{"line_number":384,"context_line":"            cmd.append(\u0027--log-dhcp\u0027)"},{"line_number":385,"context_line":"            cmd.append(\u0027--log-facility\u003d%s\u0027 %"},{"line_number":386,"context_line":"                self.get_conf_file_name(\u0027dhcp_dns_log\u0027))"},{"line_number":387,"context_line":""},{"line_number":388,"context_line":"        return cmd"}],"source_content_type":"text/x-python","patch_set":14,"id":"3a50d1a3_dc441b4b","line":385,"updated":"2015-07-23 06:28:28.000000000","message":"I have a question, dnsmasq will always write log to this file, if so, for a log time, this file will be very lare","commit_id":"8c0035232d223fb558fb35d1905fce6c559b4960"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"c0677d0b2c03b8a4933613faa88bf3dc38758784","unresolved":false,"context_lines":[{"line_number":382,"context_line":"        if self.conf.dnsmasq_enable_debug:"},{"line_number":383,"context_line":"            cmd.append(\u0027--log-queries\u0027)"},{"line_number":384,"context_line":"            cmd.append(\u0027--log-dhcp\u0027)"},{"line_number":385,"context_line":"            cmd.append(\u0027--log-facility\u003d%s\u0027 %"},{"line_number":386,"context_line":"                self.get_conf_file_name(\u0027dhcp_dns_log\u0027))"},{"line_number":387,"context_line":""},{"line_number":388,"context_line":"        return cmd"}],"source_content_type":"text/x-python","patch_set":14,"id":"3a50d1a3_dc997bc5","line":385,"in_reply_to":"3a50d1a3_dc441b4b","updated":"2015-07-23 06:32:10.000000000","message":"yes, you are right. there are many log infos in it. so there is a switch named \u0027dnsmasq_enable_debug\u0027 effects.","commit_id":"8c0035232d223fb558fb35d1905fce6c559b4960"},{"author":{"_account_id":11682,"name":"Ryan Moats","email":"rmoats@us.ibm.com","username":"regXboi"},"change_message_id":"cadc801ada3ab381174336a39d2380a84d0967ce","unresolved":false,"context_lines":[{"line_number":383,"context_line":"            cmd.append(\u0027--log-queries\u0027)"},{"line_number":384,"context_line":"            cmd.append(\u0027--log-dhcp\u0027)"},{"line_number":385,"context_line":"            cmd.append(\u0027--log-facility\u003d%s\u0027 %"},{"line_number":386,"context_line":"                self.get_conf_file_name(\u0027dhcp_dns_log\u0027))"},{"line_number":387,"context_line":""},{"line_number":388,"context_line":"        return cmd"},{"line_number":389,"context_line":""}],"source_content_type":"text/x-python","patch_set":14,"id":"3a50d1a3_8a0e7339","line":386,"updated":"2015-07-22 13:45:09.000000000","message":"shouldn\u0027t there be a definition of dhcp_dns_log in the config file then?","commit_id":"8c0035232d223fb558fb35d1905fce6c559b4960"},{"author":{"_account_id":13702,"name":"yushiro","username":"yushiro","inactive":true},"change_message_id":"8584e4e2cc55436977c313320bf458ad1a9c7db9","unresolved":false,"context_lines":[{"line_number":383,"context_line":"            cmd.append(\u0027--log-queries\u0027)"},{"line_number":384,"context_line":"            cmd.append(\u0027--log-dhcp\u0027)"},{"line_number":385,"context_line":"            cmd.append(\u0027--log-facility\u003d%s\u0027 %"},{"line_number":386,"context_line":"                self.get_conf_file_name(\u0027dhcp_dns_log\u0027))"},{"line_number":387,"context_line":""},{"line_number":388,"context_line":"        return cmd"},{"line_number":389,"context_line":""}],"source_content_type":"text/x-python","patch_set":14,"id":"3a50d1a3_728cd57f","line":386,"in_reply_to":"3a50d1a3_05c9f425","updated":"2015-07-24 02:13:05.000000000","message":"Hi Zhi Chang,\n\nWhy don\u0027t you describe default log output place?\nex. into etc/dhcp_agent.ini","commit_id":"8c0035232d223fb558fb35d1905fce6c559b4960"},{"author":{"_account_id":9970,"name":"John Kasperski","email":"jckasper@linux.vnet.ibm.com","username":"jckasper"},"change_message_id":"3a6f1f057a2abce699a86f2f9241fc957d37167b","unresolved":false,"context_lines":[{"line_number":383,"context_line":"            cmd.append(\u0027--log-queries\u0027)"},{"line_number":384,"context_line":"            cmd.append(\u0027--log-dhcp\u0027)"},{"line_number":385,"context_line":"            cmd.append(\u0027--log-facility\u003d%s\u0027 %"},{"line_number":386,"context_line":"                self.get_conf_file_name(\u0027dhcp_dns_log\u0027))"},{"line_number":387,"context_line":""},{"line_number":388,"context_line":"        return cmd"},{"line_number":389,"context_line":""}],"source_content_type":"text/x-python","patch_set":14,"id":"3a50d1a3_1a8b6a69","line":386,"in_reply_to":"3a50d1a3_05c9f425","updated":"2015-07-23 04:13:03.000000000","message":"I don\u0027t think the dhcp debug log file name should be specified as a configuration option.   The files names for the rest of the neutron log files can not be specified as config options either.\n\nIn addition... the dnsmasq_enable_debug flag defaults to False, so this dnsmasq log file will not normally be created.","commit_id":"8c0035232d223fb558fb35d1905fce6c559b4960"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"7478e7a069b52c859081ab2b406d1919694ddfda","unresolved":false,"context_lines":[{"line_number":383,"context_line":"            cmd.append(\u0027--log-queries\u0027)"},{"line_number":384,"context_line":"            cmd.append(\u0027--log-dhcp\u0027)"},{"line_number":385,"context_line":"            cmd.append(\u0027--log-facility\u003d%s\u0027 %"},{"line_number":386,"context_line":"                self.get_conf_file_name(\u0027dhcp_dns_log\u0027))"},{"line_number":387,"context_line":""},{"line_number":388,"context_line":"        return cmd"},{"line_number":389,"context_line":""}],"source_content_type":"text/x-python","patch_set":14,"id":"3a50d1a3_8df6268f","line":386,"in_reply_to":"3a50d1a3_1a8b6a69","updated":"2015-07-30 08:08:07.000000000","message":"I think the location should be a configuration option. The rest of the files cannot have their location specified, but they are reasonably bounded in size. A dhcp agent serving a million hosts will only have a lease database with a million entries. However, it\u0027s log file would have at least a million entries every 1/2 lease interval.\n\n\nAdditionally. The config directory is completely wiped out whenever DHCP is disabled for a network. In this patches current state, that will wipe out the log files, which isn\u0027t very helpful for debugging.","commit_id":"8c0035232d223fb558fb35d1905fce6c559b4960"},{"author":{"_account_id":13702,"name":"yushiro","username":"yushiro","inactive":true},"change_message_id":"6e333cb2bd1194279222cd99ad8b1e6b3e5afd3f","unresolved":false,"context_lines":[{"line_number":383,"context_line":"            cmd.append(\u0027--log-queries\u0027)"},{"line_number":384,"context_line":"            cmd.append(\u0027--log-dhcp\u0027)"},{"line_number":385,"context_line":"            cmd.append(\u0027--log-facility\u003d%s\u0027 %"},{"line_number":386,"context_line":"                self.get_conf_file_name(\u0027dhcp_dns_log\u0027))"},{"line_number":387,"context_line":""},{"line_number":388,"context_line":"        return cmd"},{"line_number":389,"context_line":""}],"source_content_type":"text/x-python","patch_set":14,"id":"3a50d1a3_f2478575","line":386,"in_reply_to":"3a50d1a3_52f0b9c9","updated":"2015-07-24 02:44:03.000000000","message":"Yes, that\u0027s my suggestion.  I\u0027m sorry for my confusing statement :-(\n\nHowever, I found that you\u0027ve already mentioned \"DocImpact\".  So, maybe it is better to put into some document rather than etc/dhcp_agent.ini.","commit_id":"8c0035232d223fb558fb35d1905fce6c559b4960"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"923876dd552cb718e3eaef7a489190fe833f696c","unresolved":false,"context_lines":[{"line_number":383,"context_line":"            cmd.append(\u0027--log-queries\u0027)"},{"line_number":384,"context_line":"            cmd.append(\u0027--log-dhcp\u0027)"},{"line_number":385,"context_line":"            cmd.append(\u0027--log-facility\u003d%s\u0027 %"},{"line_number":386,"context_line":"                self.get_conf_file_name(\u0027dhcp_dns_log\u0027))"},{"line_number":387,"context_line":""},{"line_number":388,"context_line":"        return cmd"},{"line_number":389,"context_line":""}],"source_content_type":"text/x-python","patch_set":14,"id":"3a50d1a3_52f0b9c9","line":386,"in_reply_to":"3a50d1a3_728cd57f","updated":"2015-07-24 02:22:10.000000000","message":"Did you mean i should put the location of log into etc/dhcp_agent.ini?","commit_id":"8c0035232d223fb558fb35d1905fce6c559b4960"},{"author":{"_account_id":14562,"name":"Zhi Chang","email":"changzhi2@lenovo.com","username":"changzhi"},"change_message_id":"9d1b10958b9a8ad85d36a50523c681fd92e57a43","unresolved":false,"context_lines":[{"line_number":383,"context_line":"            cmd.append(\u0027--log-queries\u0027)"},{"line_number":384,"context_line":"            cmd.append(\u0027--log-dhcp\u0027)"},{"line_number":385,"context_line":"            cmd.append(\u0027--log-facility\u003d%s\u0027 %"},{"line_number":386,"context_line":"                self.get_conf_file_name(\u0027dhcp_dns_log\u0027))"},{"line_number":387,"context_line":""},{"line_number":388,"context_line":"        return cmd"},{"line_number":389,"context_line":""}],"source_content_type":"text/x-python","patch_set":14,"id":"3a50d1a3_05c9f425","line":386,"in_reply_to":"3a50d1a3_8a0e7339","updated":"2015-07-22 13:55:04.000000000","message":"hmmm... dhcp-agent create some files, and associates with  each dnsmasq process. each dnsmasq process has own folder. i think dhcp_dns_log should together with dnsmasq files. like \"/opt/stack/data/neutron/dhcp/\u003cnetwork-id\u003e/dhcp_dns_log\". thus will be help developers to analyze issues. this is my point.","commit_id":"8c0035232d223fb558fb35d1905fce6c559b4960"},{"author":{"_account_id":9911,"name":"Wei Wang","email":"wangwei@unitedstack.com","username":"DamonWang"},"change_message_id":"5c5c00eb32909f0db28bef546a2ad336172c0d0d","unresolved":false,"context_lines":[{"line_number":383,"context_line":"            try:"},{"line_number":384,"context_line":"                if not os.path.exists(self.conf.dnsmasq_base_log_dir):"},{"line_number":385,"context_line":"                    os.makedirs(self.conf.dnsmasq_base_log_dir)"},{"line_number":386,"context_line":"                else:"},{"line_number":387,"context_line":"                    log_filename \u003d os.path.join("},{"line_number":388,"context_line":"                        self.conf.dnsmasq_base_log_dir,"},{"line_number":389,"context_line":"                        self.network.id, \u0027dhcp_dns_log\u0027)"}],"source_content_type":"text/x-python","patch_set":16,"id":"3a50d1a3_1d5c044a","line":386,"updated":"2015-08-03 05:59:02.000000000","message":"It seems we don\u0027t need this else:\n\nif the dir not exists, it will leave dirs with nothing about log, righty?","commit_id":"62efe82a392480286febcf5cdf0eac482cbc403e"},{"author":{"_account_id":9911,"name":"Wei Wang","email":"wangwei@unitedstack.com","username":"DamonWang"},"change_message_id":"5c5c00eb32909f0db28bef546a2ad336172c0d0d","unresolved":false,"context_lines":[{"line_number":390,"context_line":"                    cmd.append(\u0027--log-queries\u0027)"},{"line_number":391,"context_line":"                    cmd.append(\u0027--log-dhcp\u0027)"},{"line_number":392,"context_line":"                    cmd.append(\u0027--log-facility\u003d%s\u0027 % log_filename)"},{"line_number":393,"context_line":""},{"line_number":394,"context_line":"            except OSError:"},{"line_number":395,"context_line":"                LOG.debug(\u0027Error while create dnsmasq base log dir: %s\u0027,"},{"line_number":396,"context_line":"                    self.conf.dnsmasq_base_log_dir)"}],"source_content_type":"text/x-python","patch_set":16,"id":"3a50d1a3_9d9a5413","line":393,"updated":"2015-08-03 05:59:02.000000000","message":"This blank line like seems meaningless","commit_id":"62efe82a392480286febcf5cdf0eac482cbc403e"},{"author":{"_account_id":9911,"name":"Wei Wang","email":"wangwei@unitedstack.com","username":"DamonWang"},"change_message_id":"5c5c00eb32909f0db28bef546a2ad336172c0d0d","unresolved":false,"context_lines":[{"line_number":392,"context_line":"                    cmd.append(\u0027--log-facility\u003d%s\u0027 % log_filename)"},{"line_number":393,"context_line":""},{"line_number":394,"context_line":"            except OSError:"},{"line_number":395,"context_line":"                LOG.debug(\u0027Error while create dnsmasq base log dir: %s\u0027,"},{"line_number":396,"context_line":"                    self.conf.dnsmasq_base_log_dir)"},{"line_number":397,"context_line":""},{"line_number":398,"context_line":"        return cmd"}],"source_content_type":"text/x-python","patch_set":16,"id":"3a50d1a3_5de92c7e","line":395,"updated":"2015-08-03 05:59:02.000000000","message":"I think it\u0027s better to use LOG.error or info at least","commit_id":"62efe82a392480286febcf5cdf0eac482cbc403e"},{"author":{"_account_id":9911,"name":"Wei Wang","email":"wangwei@unitedstack.com","username":"DamonWang"},"change_message_id":"f6f1f511d2a5360cd2d1f975ec6221a367f0d478","unresolved":false,"context_lines":[{"line_number":383,"context_line":"            try:"},{"line_number":384,"context_line":"                if not os.path.exists(self.conf.dnsmasq_base_log_dir):"},{"line_number":385,"context_line":"                    os.makedirs(self.conf.dnsmasq_base_log_dir)"},{"line_number":386,"context_line":"                else:"},{"line_number":387,"context_line":"                    log_filename \u003d os.path.join("},{"line_number":388,"context_line":"                        self.conf.dnsmasq_base_log_dir,"},{"line_number":389,"context_line":"                        self.network.id, \u0027dhcp_dns_log\u0027)"}],"source_content_type":"text/x-python","patch_set":18,"id":"3a50d1a3_01a7bea7","line":386,"updated":"2015-08-03 08:07:35.000000000","message":"See my comments at PS17","commit_id":"58af294d1f42fac942271722d54d445ac9ee3924"}]}
