<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Can you add this as a question on the dashboard launchpad site?  This may be a bug that was introduced that we are missing a test for.  If so we can escalate this from launchpad:<div><br></div><div><a href="https://answers.launchpad.net/openstack-dashboard">https://answers.launchpad.net/openstack-dashboard</a></div><div><br></div><div><br></div><div>Best,</div><div><br></div><div>Devin<br><div><br></div><div><br><div><div>On Sep 18, 2011, at 7:27 AM, 董志斌 wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>
      <h2>Error</h2><p>Unexpected error: 'module' object has no attribute 'server_add_floating_ip'</p><p><br></p><p>dashboard  error as follows :</p><p>DEBUG:openstack_dashboard.api:extras_api connection created using token "atkisc" and url "<a href="http://127.0.0.1:8774/v1.1/cloud" target="_blank">http://127.0.0.1:8774/v1.1/cloud</a>"<br>


DEBUG:openstack_dashboard.api:novaclient connection created using token "atkisc" and url "<a href="http://127.0.0.1:8774/v1.1/cloud" target="_blank">http://127.0.0.1:8774/v1.1/cloud</a>"<br>DEBUG:novaclient.client:REQ: curl -i <a href="http://127.0.0.1:8774/v1.1/cloud/os-floating-ips/3?fresh=1316327073.34" target="_blank">http://127.0.0.1:8774/v1.1/cloud/os-floating-ips/3?fresh=1316327073.34</a> -X GET -H "X-Auth-Project-Id: cloud" -H "User-Agent: python-novaclient" -H "X-Auth-Token: atkisc"<br>


<br>DEBUG:novaclient.client:RESP:{'date': 'Sun, 18 Sep 2011 06:24:33 GMT', 'status': '200', 'content-length': '88', 'content-type': 'application/json', 'content-location': u'<a href="http://127.0.0.1:8774/v1.1/cloud/os-floating-ips/3?fresh=1316327073.34" target="_blank">http://127.0.0.1:8774/v1.1/cloud/os-floating-ips/3?fresh=1316327073.34</a>'} {"floating_ip": {"instance_id": null, "ip": "60.12.206.120", "fixed_ip": null, "id": 3}}<br>


<br>ERROR:openstack_dashboard.forms:Nonspecific error while handling form<br>Traceback (most recent call last):<br>  File "/usr/lib/python2.6/site-packages/openstack_dashboard/forms.py", line 168, in maybe_handle<br>


    return form, form.handle(request, data)<br>  File "/usr/lib/python2.6/site-packages/openstack_dashboard/plugins/user/floating_ips.py", line 82, in handle<br>    api.server_add_floating_ip(request,<br>AttributeError: 'module' object has no attribute 'server_add_floating_ip'<br>


DEBUG:openstack_dashboard.api:auth_api connection created using url "<a href="http://localhost:5000/v2.0/" target="_blank">http://localhost:5000/v2.0/</a>"<br></p><p><br></p><p><br></p><p>nova-api.log as follows :</p><p><br></p><p>2011-09-18 14:25:31,186 routes.middleware: Matched GET /cloud/extras/servers<br>2011-09-18 14:25:31,186 routes.middleware: Route path: '/{project_id}/extras/servers', defaults: {'action': u'index', 'controller': <nova.api.openstack.wsgi.Resource object at 0x3d85f90>}<br>


2011-09-18 14:25:31,186 routes.middleware: Match dict: {'action': u'index', 'controller': <nova.api.openstack.wsgi.Resource object at 0x3d85f90>, 'project_id': u'cloud'}<br>2011-09-18 14:25:31,187 nova.api.openstack.wsgi: GET <a href="http://127.0.0.1:8774/v1.1/cloud/extras/servers?fresh=1316327131.18" target="_blank">http://127.0.0.1:8774/v1.1/cloud/extras/servers?fresh=1316327131.18</a><br>


2011-09-18 14:25:31,187 nova.api.openstack.wsgi: Unrecognized Content-Type provided in request<br>2011-09-18 14:25:31,188 nova.api.openstack.servers: Removing options 'fresh' from query<br>2011-09-18 14:25:31,188 nova.compute.api: Searching by: {'deleted': False, 'recurse_zones': False}<br>


2011-09-18 14:25:31,274 nova.api.openstack.common: Attempting to treat 10 as an integer ID.<br>2011-09-18 14:25:31,274 nova.api.openstack.common: Attempting to treat <a href="http://127.0.0.1:8774/v1.1/cloud/flavors/1" target="_blank">http://127.0.0.1:8774/v1.1/cloud/flavors/1</a> as an integer ID.<br>


2011-09-18 14:25:31,274 nova.api.openstack.common: Attempting to treat <a href="http://127.0.0.1:8774/v1.1/cloud/flavors/1" target="_blank">http://127.0.0.1:8774/v1.1/cloud/flavors/1</a> as a URL.<br>2011-09-18 14:25:31,291 nova.api.openstack.wsgi: <a href="http://127.0.0.1:8774/v1.1/cloud/extras/servers?fresh=1316327131.18" target="_blank">http://127.0.0.1:8774/v1.1/cloud/extras/servers?fresh=1316327131.18</a> returned with HTTP 200<br>


2011-09-18 14:25:31,299 routes.middleware: Matched GET /cloud/os-floating-ips/3<br>2011-09-18 14:25:31,299 routes.middleware: Route path: '/{project_id}/os-floating-ips/:(id)', defaults: {'action': u'show', 'controller': <nova.api.openstack.wsgi.Resource object at 0x3eca250>}<br>


2011-09-18 14:25:31,300 routes.middleware: Match dict: {'action': u'show', 'controller': <nova.api.openstack.wsgi.Resource object at 0x3eca250>, 'project_id': u'cloud', 'id': u'3'}<br>


2011-09-18 14:25:31,300 nova.api.openstack.wsgi: GET <a href="http://127.0.0.1:8774/v1.1/cloud/os-floating-ips/3?fresh=1316327131.3" target="_blank">http://127.0.0.1:8774/v1.1/cloud/os-floating-ips/3?fresh=1316327131.3</a><br>

2011-09-18 14:25:31,300 nova.api.openstack.wsgi: Unrecognized Content-Type provided in request<br>
2011-09-18 14:25:31,327 nova.api.openstack.wsgi: <a href="http://127.0.0.1:8774/v1.1/cloud/os-floating-ips/3?fresh=1316327131.3" target="_blank">http://127.0.0.1:8774/v1.1/cloud/os-floating-ips/3?fresh=1316327131.3</a> returned with HTTP 200</p><p><br></p><p><br></p>
    </div>
_______________________________________________<br>Mailing list: <a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a><br>Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>Unsubscribe : <a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a><br>More help   : <a href="https://help.launchpad.net/ListHelp">https://help.launchpad.net/ListHelp</a><br></blockquote></div><br></div></div></body></html>