<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>Hi!</div><div><br></div>Nice find, this is a bug. I have reported it along with instructions for fixing here:<div><br></div><div><a href="https://bugs.launchpad.net/nova/+bug/1273837">https://bugs.launchpad.net/nova/+bug/1273837</a></div><div><br></div><div>Vish</div><div><br><div><div><div><div>On Jan 21, 2014, at 6:20 PM, li zheming <<a href="mailto:lizheminghw@gmail.com">lizheminghw@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><div><div><div><font>hi all:<br></font></div><font>   I used euca2tool3.1.10 to test ec2 api.but when I do cmd "euca-describle-address", it return error, like this:<br></font></div><font>   error(notImplementedError):unknown error occured<br>

    <br>    my <span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:22px;color:rgb(51,51,51);text-transform:none;white-space:normal;font-family:arial;word-spacing:0px">environment:<br>

</span></font></div><div><font><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:22px;color:rgb(51,51,51);text-transform:none;white-space:normal;font-family:arial;word-spacing:0px">    two float IPs:<br>

</span></font></div><div><font><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:22px;color:rgb(51,51,51);text-transform:none;white-space:normal;font-family:arial;word-spacing:0px">    200.200.130.3-> </span><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:22px;color:rgb(51,51,51);text-transform:none;white-space:normal;font-family:arial;word-spacing:0px">bingding a instance<br>

</span></font></div><div><font><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:22px;color:rgb(51,51,51);text-transform:none;white-space:normal;font-family:arial;word-spacing:0px">   200.200.130.4->no bingding<br>

   <br></span></font></div><div><font><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:22px;color:rgb(51,51,51);text-transform:none;white-space:normal;font-family:arial;word-spacing:0px">   if  I do cmd "</span><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:22px;color:rgb(51,51,51);text-transform:none;white-space:normal;font-family:arial;word-spacing:0px">euca-describle-addres </span><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:22px;color:rgb(51,51,51);text-transform:none;white-space:normal;font-family:arial;word-spacing:0px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:22px;color:rgb(51,51,51);text-transform:none;white-space:normal;font-family:arial;word-spacing:0px">200.200.130.4</span>", it return OK.<br>

</span></font></div><div><font><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:22px;color:rgb(51,51,51);text-transform:none;white-space:normal;font-family:arial;word-spacing:0px">   if  </span><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:22px;color:rgb(51,51,51);text-transform:none;white-space:normal;font-family:arial;word-spacing:0px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:22px;color:rgb(51,51,51);text-transform:none;white-space:normal;font-family:arial;word-spacing:0px">I do cmd "</span><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:22px;color:rgb(51,51,51);text-transform:none;white-space:normal;font-family:arial;word-spacing:0px">euca-describle-addres </span><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:22px;color:rgb(51,51,51);text-transform:none;white-space:normal;font-family:arial;word-spacing:0px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:22px;color:rgb(51,51,51);text-transform:none;white-space:normal;font-family:arial;word-spacing:0px">200.200.130.4</span>", it return:<br>

  </span></span><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:22px;color:rgb(51,51,51);text-transform:none;white-space:normal;font-family:arial;word-spacing:0px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:22px;color:rgb(51,51,51);text-transform:none;white-space:normal;font-family:arial;word-spacing:0px"> error(notImplementedError):unknown error occured<br>

    </span></span><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:22px;color:rgb(51,51,51);text-transform:none;white-space:normal;font-family:arial;word-spacing:0px"> if  </span><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:22px;color:rgb(51,51,51);text-transform:none;white-space:normal;font-family:arial;word-spacing:0px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:22px;color:rgb(51,51,51);text-transform:none;white-space:normal;font-family:arial;word-spacing:0px">I do cmd "</span><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:22px;color:rgb(51,51,51);text-transform:none;white-space:normal;font-family:arial;word-spacing:0px">euca-describle-addres</span><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:22px;color:rgb(51,51,51);text-transform:none;white-space:normal;font-family:arial;word-spacing:0px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:22px;color:rgb(51,51,51);text-transform:none;white-space:normal;font-family:arial;word-spacing:0px"></span>", it return:<br>

   </span></span><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:22px;color:rgb(51,51,51);text-transform:none;white-space:normal;font-family:arial;word-spacing:0px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:22px;color:rgb(51,51,51);text-transform:none;white-space:normal;font-family:arial;word-spacing:0px"> error(notImplementedError):unknown error occured<br>

    <br></span></span></font></div><div><font><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:22px;color:rgb(51,51,51);text-transform:none;white-space:normal;font-family:arial;word-spacing:0px">     so I think it is error with floatIP which is bingding in a instance.<br>

</span></font></div><div><font><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:22px;color:rgb(51,51,51);text-transform:none;white-space:normal;font-family:arial;word-spacing:0px">     I find the code about this:<br>

</span></font></div><div><font><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:22px;color:rgb(51,51,51);text-transform:none;white-space:normal;font-family:arial;word-spacing:0px">     nova/api/ec2/cloud.py<br>

     def _format_address(self, context, floating_ip):<br>        ec2_id = None<br>    <span style="color:rgb(255,0,0)">    if floating_ip['fixed_ip_id']:<br>            fixed_id = floating_ip['fixed_ip_id']<br>

            fixed = self.network_api.get_fixed_ip(context, fixed_id)<br>            if fixed['instance_uuid'] is not None:<br>                ec2_id = ec2utils.id_to_ec2_inst_id(fixed['instance_uuid'])</span><br>

        address = {'public_ip': floating_ip['address'],<br>                   'instance_id': ec2_id}<br>        if <a href="http://context.is">context.is</a>_admin:<br>            details = "%s (%s)" % (address['instance_id'],<br>

                                   floating_ip['project_id'])<br>            address['instance_id'] = details<br>        return address<br></span></font></div><div><font><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:22px;color:rgb(51,51,51);text-transform:none;white-space:normal;font-family:arial;word-spacing:0px">  <br>

</span></font></div><div><font><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:22px;color:rgb(51,51,51);text-transform:none;white-space:normal;font-family:arial;word-spacing:0px">     if floatIP which bingding instance, it will enter in the red code. it will<br>

</span></font></div><div><font><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:22px;color:rgb(51,51,51);text-transform:none;white-space:normal;font-family:arial;word-spacing:0px">enter function  "</span><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:22px;color:rgb(51,51,51);text-transform:none;white-space:normal;font-family:arial;word-spacing:0px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:22px;color:rgb(51,51,51);text-transform:none;white-space:normal;font-family:arial;word-spacing:0px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:22px;color:rgb(51,51,51);text-transform:none;white-space:normal;font-family:arial;word-spacing:0px"><span style="color:rgb(255,0,0)">.get_fixed_ip(</span></span></span></span><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:22px;color:rgb(51,51,51);text-transform:none;white-space:normal;font-family:arial;word-spacing:0px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:22px;color:rgb(51,51,51);text-transform:none;white-space:normal;font-family:arial;word-spacing:0px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:22px;color:rgb(51,51,51);text-transform:none;white-space:normal;font-family:arial;word-spacing:0px"><span style="color:rgb(255,0,0)"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:22px;color:rgb(51,51,51);text-transform:none;white-space:normal;font-family:arial;word-spacing:0px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:22px;color:rgb(51,51,51);text-transform:none;white-space:normal;font-family:arial;word-spacing:0px"><span style="color:rgb(255,0,0)">context, fixed_id</span></span></span>)</span></span></span>", but in </span><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:22px;color:rgb(51,51,51);text-transform:none;white-space:normal;font-family:arial;word-spacing:0px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:22px;color:rgb(51,51,51);text-transform:none;white-space:normal;font-family:arial;word-spacing:0px"><span style="color:rgb(255,0,0)">"get_finxd_ip":<br>

</span></span></span></font></div><div><font><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:22px;color:rgb(51,51,51);text-transform:none;white-space:normal;font-family:arial;word-spacing:0px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:22px;color:rgb(51,51,51);text-transform:none;white-space:normal;font-family:arial;word-spacing:0px"><span style="color:rgb(255,0,0)">      nova/network/neutronv2/api.py:<br>

         def get_fixed_ip(self, context, id):<br>        """Get a fixed ip from the id."""<br>        raise NotImplementedError()<br> <br></span></span></span></font></div><div><font><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:22px;color:rgb(51,51,51);text-transform:none;white-space:normal;font-family:arial;word-spacing:0px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:22px;color:rgb(51,51,51);text-transform:none;white-space:normal;font-family:arial;word-spacing:0px"><span style="color:rgb(255,0,0)"><font>      <span style="color:rgb(255,0,0)">   it raise exception </span></font></span></span></span></font><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:22px;color:rgb(51,51,51);text-transform:none;font-size:18px;white-space:normal;font-family:arial;word-spacing:0px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:22px;color:rgb(51,51,51);text-transform:none;font-size:18px;white-space:normal;font-family:arial;word-spacing:0px"><font><span style="color:rgb(255,0,0)"><span style="color:rgb(255,0,0)">NotImplementedError. </span><br>

<br></span></font></span></span></div><div><font><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:22px;color:rgb(51,51,51);text-transform:none;white-space:normal;font-family:arial;word-spacing:0px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:22px;color:rgb(51,51,51);text-transform:none;white-space:normal;font-family:arial;word-spacing:0px"><font><span style="color:rgb(255,0,0)">  so I have two questions:<br>

</span></font></span></span></font></div><div><font><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:22px;color:rgb(51,51,51);text-transform:none;white-space:normal;font-family:arial;word-spacing:0px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:22px;color:rgb(51,51,51);text-transform:none;white-space:normal;font-family:arial;word-spacing:0px"><font><span style="color:rgb(255,0,0)"><font>1. the method of the test is  OK?whether I do cmd error?<br>

2. whether the neutron client unsupport get_fixed_ip by id?<br><br>thanks!<br>lizheming</font></span></font></span></span><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:22px;color:rgb(51,51,51);text-transform:none;white-space:normal;font-family:arial;word-spacing:0px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:22px;color:rgb(51,51,51);text-transform:none;white-space:normal;font-family:arial;word-spacing:0px"><font><span style="color:rgb(255,0,0)"><font></font></span></font></span></span></font></div>
<font>
</font><div><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:start;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:22px;color:rgb(51,51,51);text-transform:none;font-size:18px;white-space:normal;font-family:arial;word-spacing:0px"><br>

  <br></span></div></div>
_______________________________________________<br>OpenStack-dev mailing list<br><a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev<br></blockquote></div><br></div></div></div></body></html>