manila rate-limits returns oslo_service.wsgi.PasteAppNotFound:

Bug #1908526 reported by Paul Ali
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Shared File Systems Service (Manila)

Bug Description

Running manila rate-limits after setting new limits as described on returns ERROR manila oslo_service.wsgi.PasteAppNotFound: Could not load paste app 'osapi_share' from /etc/manila/api-paste.ini in manila api logs.

Steps to reproduce

1.Copy and paste
limits = (POST, "*/shares", ^/shares, 120, MINUTE);(PUT, "*/shares", .*, 120, MINUTE);(DELETE, "*", .*, 120, MINUTE)
after the line
paste.filter_factory = manila.api.v1.limits:RateLimitingMiddleware.factory
in the /etc/manila/api-paste.ini file.

2.add the ratelimit to noauth, keystone, keystone_nolimit parameters in the [composite:openstack_share_api] and [composite:openstack_share_api_v2] groups in the /etc/manila/api-paste.ini file.
Use either of the two api-paste.ini files below.

api-paste.ini 1 ratelimit has been added as the last variable :

api-paste.ini 2 content from has been pasted with existing lines commented out:

3.Run systemctl restart <email address hidden> in terminal to restart manila api.

4.Run manila rate-limits in terminal window to see manila rate-limits.

Expected result
| Verb | URI | Value | Remain | Unit | Next_Available |
| DELETE | "*" | 120 | 120 | MINUTE | 2015-10-20T15:17:20Z |
| POST | "*/shares" | 120 | 120 | MINUTE | 2015-10-20T15:17:20Z |
| PUT | "*/shares" | 120 | 120 | MINUTE | 2015-10-20T15:17:20Z |

Actual Result
ERROR: Internal Server Error (HTTP 500)

Backend used : ZFSOnLinux

Logs and Configs :

Revision history for this message
Vida Haririan (vhariria) wrote :
Paul Ali (paulali)
description: updated
Vida Haririan (vhariria)
Changed in manila:
status: New → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.