diff --git a/templates/nova.conf b/templates/nova.conf index 6d1657e78..8e6cf1335 100644 --- a/templates/nova.conf +++ b/templates/nova.conf @@ -62,7 +62,8 @@ heartbeat_in_pthread=false {{ if eq .service_name "nova-api"}} [oslo_policy] -enforce_new_defaults=false +enforce_new_defaults=true +enforce_scope=true {{end}} {{ if eq .service_name "nova-conductor"}} diff --git a/test/functional/novaapi_controller_test.go b/test/functional/novaapi_controller_test.go index 96fa64d73..0a747738b 100644 --- a/test/functional/novaapi_controller_test.go +++ b/test/functional/novaapi_controller_test.go @@ -183,6 +183,9 @@ var _ = Describe("NovaAPI controller", func() { Expect(configData).Should(ContainSubstring("www_authenticate_uri = keystone-public-auth-url")) Expect(configData).Should( ContainSubstring("[upgrade_levels]\ncompute = auto")) + Expect(configData).Should(ContainSubstring("enforce_new_defaults=true")) + Expect(configData).Should(ContainSubstring("enforce_scope=true")) + // test config override Expect(configDataMap.Data).Should(HaveKey("02-nova-override.conf")) extraData := string(configDataMap.Data["02-nova-override.conf"]) Expect(extraData).To(Equal("foo=bar"))