Hi! Nice find, this is a bug. I have reported it along with instructions for fixing here:
https://bugs.launchpad.net/nova/+bug/1273837 Vish On Jan 21, 2014, at 6:20 PM, li zheming <[email protected]> wrote: > hi all: > I used euca2tool3.1.10 to test ec2 api.but when I do cmd > "euca-describle-address", it return error, like this: > error(notImplementedError):unknown error occured > > my environment: > two float IPs: > 200.200.130.3-> bingding a instance > 200.200.130.4->no bingding > > if I do cmd "euca-describle-addres 200.200.130.4", it return OK. > if I do cmd "euca-describle-addres 200.200.130.4", it return: > error(notImplementedError):unknown error occured > if I do cmd "euca-describle-addres", it return: > error(notImplementedError):unknown error occured > > so I think it is error with floatIP which is bingding in a instance. > I find the code about this: > nova/api/ec2/cloud.py > def _format_address(self, context, floating_ip): > ec2_id = None > if floating_ip['fixed_ip_id']: > fixed_id = floating_ip['fixed_ip_id'] > fixed = self.network_api.get_fixed_ip(context, fixed_id) > if fixed['instance_uuid'] is not None: > ec2_id = ec2utils.id_to_ec2_inst_id(fixed['instance_uuid']) > address = {'public_ip': floating_ip['address'], > 'instance_id': ec2_id} > if context.is_admin: > details = "%s (%s)" % (address['instance_id'], > floating_ip['project_id']) > address['instance_id'] = details > return address > > if floatIP which bingding instance, it will enter in the red code. it > will > enter function ".get_fixed_ip(context, fixed_id)", but in "get_finxd_ip": > nova/network/neutronv2/api.py: > def get_fixed_ip(self, context, id): > """Get a fixed ip from the id.""" > raise NotImplementedError() > > it raise exception NotImplementedError. > > so I have two questions: > 1. the method of the test is OK?whether I do cmd error? > 2. whether the neutron client unsupport get_fixed_ip by id? > > thanks! > lizheming > > > _______________________________________________ > OpenStack-dev mailing list > [email protected] > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
signature.asc
Description: Message signed with OpenPGP using GPGMail
_______________________________________________ OpenStack-dev mailing list [email protected] http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
