Comment 3 for bug 939122

Revision history for this message
D LALITHA RANI (deevi-rani) wrote :

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.