Quantum crashes with field parameter on querystring and keystone enabled
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
High
|
Salvatore Orlando |
Bug Description
When keystone middleware is in the pipeline, Quantum tracebacks and returns 500 for each requests within a non-admin context which specifies the field query string parameter, unless tenant_id is specified in the field list.
This bug can be easily reproduced with the Quantum cli.
1) Enable auth in the pipeline.
2) quantum --os_username <regular_user> --os_password <her_password> --os_tenant_name <regular_tenant> --os_auth_url <where_keystone_is> net-create <whatever_name>
3) quantum --os_username <regular_user> --os_password <her_password> --os_tenant_name <regular_tenant> --os_auth_url <where_keystone_is> net-list -F name
4) Error on quantum cli: ERROR: cliff.app u'tenant_id'
This happens because when the fields query parameter is specified, only the fields specified in the querystring are returned by the plugin (assuming it is inheriting from db_base_plugin_v2). This means that the fields which are then required by the policy engine, such as tenant_id, might not be available for processing by the policy engine.
Traceback available at: http://
Changed in quantum: | |
importance: | Undecided → High |
assignee: | nobody → Salvatore Orlando (salvatore-orlando) |
milestone: | none → folsom-3 |
description: | updated |
Changed in quantum: | |
status: | Fix Committed → Fix Released |
Changed in quantum: | |
milestone: | folsom-3 → 2012.2 |
Fix proposed to branch: master /review. openstack. org/9859
Review: https:/