<div dir="ltr">Kieran, <div><br></div><div>Thanks for your response.  Because of the statement 'django_openstack_auth>=1.0.7' in tools/pip-requires the openstack_auth had been upgraded to 1.1.0 when I installed the virt env for horizon.  After downgrading to the module to 1.0.7 it works as expected.</div>
<div><br></div><div>Thanks,</div><div>Joel</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jul 17, 2013 at 10:04 PM, Kieran Spear <span dir="ltr"><<a href="mailto:kispear@gmail.com" target="_blank">kispear@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div><div>Hi Joel,</div><div><div class="h5"><div><br></div><div>On 18/07/2013, at 12:39 PM, Joel Cooklin <<a href="mailto:joel.cooklin@gmail.com" target="_blank">joel.cooklin@gmail.com</a>> wrote:</div>
<br><blockquote type="cite"><div dir="ltr">When I authenticate against 01 and then force it to fail so that 02 takes the next request (on refresh).  I get the error that 'dict' object has no attribute 'user'.  <div>
<br></div><div>I am running grizzly/stable and both member nodes have the same SECRET_KEY.  While debugging I have found that the token is extracted from the session OK in openstack_auth/backend.py(48) however it does not have an attribute 'user' as it does when authenticating against the original node (01).  The token pulled from the session does however have a 'user' with a more comprehensive structure in it than is expected if the 'user' attribute exists.</div>

<div><br></div><div><div>ipdb> l</div><div>     24     request.session['user_id'] = <a href="http://user.id/" target="_blank">user.id</a></div><div>     25     request.session['region_endpoint'] = user.endpoint</div>
<div>
     26     request.session['services_region'] = user.services_region</div><div>     27 </div><div>     28 </div><div>---> 29 def create_user_from_token(request, token, endpoint, services_region=None):</div><div>

     30     #import ipdb; ipdb.set_trace()</div><div>     31     return User(id=token.user['id'],</div><div>     32                 token=token,</div><div>     33                 user=token.user['name'],</div>

<div>     34                 user_domain_id=token.user_domain_id,</div><div><br></div><div>ipdb> token.user</div><div>*** AttributeError: 'dict' object has no attribute 'user'</div></div><div><br></div>

<div>Any help or advice would be greatly appreciated.</div></div></blockquote><div><br></div></div></div>Are you running openstack_auth from master? Or was that just for debugging? The ubuntu cloud archive ships with 1.0.7, it's possible more recent releases introduced a compatibility issue.</div>
<div><br></div><div>Cheers,</div><div>Kieran</div><div><br><blockquote type="cite"><div dir="ltr"><div><br></div><div>Thanks,</div><div>Joel</div></div></blockquote></div><br></div></blockquote></div><br></div>