Comment 7 for bug 699654

Revision history for this message
Jay Pipes (jaypipes) wrote :

I had to fix nova/wsgi.py to i18n a string in there, and then put that into the translation file, but afterwards, I could not get an error:

jpipes@serialcoder:~/repos/nova/bug699654$ LANGUAGE=ja_JP.UTF-8 ./bin/nova-api
(nova.root 2011.1-LOCALBRANCH:LOCALREVISION): AUDIT [N/A] ./bin/nova-api 上で最低の 0.0.0.0:8774 の
(nova.root 2011.1-LOCALBRANCH:LOCALREVISION): AUDIT [N/A] ./bin/nova-api 上で最低の 0.0.0.0:8773 の
(nova.api 2011.1-LOCALBRANCH:LOCALREVISION): AUDIT [N/A] Authentication Failure: No user for access key jpipes
(nova.api 2011.1-LOCALBRANCH:LOCALREVISION): INFO [N/A] X.Xs 127.0.0.1 GET /Eucalyptus/ None:None 403 [Boto/1.9b (linux2)] text/plain text/html

and in a separate terminal:

jpipes@serialcoder:~/repos/nova/bug699654$ euca-terminate-instances i-noexist
EC2_URL not specified. Trying http://localhost:8773/services/Eucalyptus
Warning: failed to parse error message from AWS: <unknown>:1:0: syntax error
EC2ResponseError: 403 Forbidden
403 Forbidden

Access was denied to this resource.

tried with locale set for euca-terminate-instances:

jpipes@serialcoder:~/repos/nova/bug699654$ LANGUAGE=ja_JP.UTF-8 euca-terminate-instances i-noexist
EC2_URL not specified. Trying http://localhost:8773/services/Eucalyptus
Warning: failed to parse error message from AWS: <unknown>:1:0: syntax error
EC2ResponseError: 403 Forbidden
403 Forbidden

Access was denied to this resource.

This may be because the 403 returned does not trigger any translated strings...still trying to figure out a way of testing this :(