I was able to reproduce the bug and i found that the "instance_info_caches" table is not getting updated upon associating a floating ip. I thought that there is a need to update the table in compute.api.associate_floating_ip() method.
Following is the change that fixed the bug:
def associate_floating_ip(self, context, instance, address):
...
net_info = self.network_api.get_instance_nw_info(context, instance) LOG.debug(_("floating-ip associated with following entities %s"), net_info)
return
raise exception.ApiError(fail_bag)
This successfully updated entries in the database and nova list is able to reflect it.
I was able to reproduce the bug and i found that the "instance_ info_caches" table is not getting updated upon associating a floating ip. I thought that there is a need to update the table in compute. api.associate_ floating_ ip() method.
Following is the change that fixed the bug: floating_ ip(self, context, instance, address): api.get_ instance_ nw_info( context, instance)
LOG.debug( _("floating- ip associated with following entities %s"), net_info) ApiError( fail_bag)
def associate_
...
net_info = self.network_
return
raise exception.
This successfully updated entries in the database and nova list is able to reflect it.