diff --git a/templates/nova/nova.conf b/templates/nova/nova.conf index 1c9ef4554..333dc0358 100644 --- a/templates/nova/nova.conf +++ b/templates/nova/nova.conf @@ -14,7 +14,14 @@ log_rotation_type=size {{if (index . "log_file") }} log_file = {{ .log_file }} {{end}} +{{if eq .service_name "nova-novncproxy"}} +# vncproxy does expensive traffic logging +# when debug is enabled so keep it disabled +# by default. +debug=false +{{else}} debug=true +{{end}} {{if eq .service_name "nova-compute"}} compute_driver = {{ .compute_driver }} {{if eq .compute_driver "ironic.IronicDriver"}} diff --git a/test/functional/nova/novncproxy_test.go b/test/functional/nova/novncproxy_test.go index 0889c956d..3b8166071 100644 --- a/test/functional/nova/novncproxy_test.go +++ b/test/functional/nova/novncproxy_test.go @@ -207,6 +207,7 @@ var _ = Describe("NovaNoVNCProxy controller", func() { Expect(configData).Should(ContainSubstring("transport_url=rabbit://cell1/fake")) Expect(configData).Should( ContainSubstring("[upgrade_levels]\ncompute = auto")) + Expect(configData).Should(ContainSubstring("debug=false")) Expect(configDataMap.Data).Should(HaveKey("02-nova-override.conf")) myCnf := configDataMap.Data["my.cnf"] Expect(myCnf).To(