On 01/13/2012 05:06 PM, Cole Robinson wrote:
On 01/13/2012 01:00 PM, Cole Robinson wrote:
>
> And that should work! ... Or at least it did, as of nova commit
> 8b79dae67ca2686780d3e3b5863d0578264e92a5 on Jan 4. However with current up to
> date nova I'm getting errors like:
>
> Error: Unable to get usage info: Malformed request url
>
> in horizon. There is a recent nova bug filed with a similar error but I'm not
> sure if it's the issue I'm currently hitting:
>
>
https://bugs.launchpad.net/nova/+bug/915151
>
Bisected to the following nova commit:
commit c9c09bd60e7a0e0258d218a31d7878755bea1395
Author: Thierry Carrez <thierry(a)openstack.org>
Date: Wed Jan 11 13:48:29 2012 +0100
Do not overwrite project_id from request params
Prevent project_id overwriting from OSAPI request parameters.
The patch is actually very simple (nova/api/openstack/wsgi.py) but
needs significant test adjustments (nova/tests/*) to pass.
Fixes bug 904072. Patch from Vish Ishaya and Mark McLoughlin.
Change-Id: I66ea0f178ce6271ec1020e9f1a73bd4e8c83ddab
So I assume I've either misconfigured something or horizon is doing something
funky. Mark, any clues?
Please ignore, yet another config issue that just happened to work due to the
original bug.
In the nova api-paste.ini file, we need to change a few pipelines. This script
stolen from devstack makes the changes:
$ cat fix-paste.sh
#!/bin/bash
PASTE="./api-paste.ini"
# Finally, we change the pipelines in nova to use keystone
function replace_pipeline() {
sed "/\[pipeline:$1\]/,/\[/s/^pipeline = .*/pipeline = $2/" -i $PASTE
}
replace_pipeline "ec2cloud" "ec2faultwrap logrequest totoken authtoken
keystonecontext cloudrequest authorizer ec2executor"
replace_pipeline "ec2admin" "ec2faultwrap logrequest totoken authtoken
keystonecontext adminrequest authorizer ec2executor"
replace_pipeline "openstack_api_v2" "faultwrap authtoken keystonecontext
ratelimit serialize extensions osapi_app_v2"
replace_pipeline "openstack_compute_api_v2" "faultwrap authtoken
keystonecontext ratelimit serialize compute_extensions osapi_compute_app_v2"
replace_pipeline "openstack_volume_api_v1" "faultwrap authtoken
keystonecontext ratelimit serialize volume_extensions osapi_volume_app_v1"
- Cole