Browse Source

Corrected default limits filter in nova API

The old syntax that used % symbols, caused some errors upon a restart
of the nova-api. Replacing the % and parentheses with the double quotes
allows the API to start without errors.

Change-Id: I96c00590390c6caf0a17a43e68ede111684b3110
Closes-Bug: #1683496
changes/55/468855/2
Sergii Rizvan 2 years ago
parent
commit
442f6a0ed7

+ 2
- 2
deployment/puppet/openstack_tasks/manifests/openstack_controller/openstack_controller.pp View File

@@ -246,8 +246,8 @@ class openstack_tasks::openstack_controller::openstack_controller {
246 246
   $delete_limit  = $merged_limits['DELETE']
247 247
   $post_servers_limit = $merged_limits['POST_SERVERS']
248 248
   $nova_rate_limits_string = inline_template('<%="(POST, *, .*,  #{@post_limit} , MINUTE);\
249
-  (POST, %(*/servers), ^/servers,  #{@post_servers_limit} , DAY);(PUT, %(*) , .*,  #{@put_limit}\
250
-  , MINUTE);(GET, %(*changes-since*), .*changes-since.*, #{@get_limit}, MINUTE);(DELETE, %(*),\
249
+  (POST, \"*/servers\", ^/servers,  #{@post_servers_limit} , DAY);(PUT, \"*\" , .*,  #{@put_limit}\
250
+  , MINUTE);(GET, \"*changes-since*\", .*changes-since.*, #{@get_limit}, MINUTE);(DELETE, \"*\",\
251 251
   .*, #{@delete_limit} , MINUTE)" %>')
252 252
 
253 253
   class { '::nova::keystone::authtoken':

Loading…
Cancel
Save