<div dir="ltr">I am having a problem that I hope someone can comment on.<div><br></div><div>Periodically, an instance ends up w/ 0 rows in '<span style="font-weight:bold;color:rgb(84,84,84);font-family:arial,sans-serif;line-height:10.4000005722046px">instance_info_caches' </span><span style="color:rgb(84,84,84);font-family:arial,sans-serif;line-height:10.4000005722046px">in the nova database.</span></div><div><span style="color:rgb(84,84,84);font-family:arial,sans-serif;line-height:10.4000005722046px"><br></span></div><div><span style="color:rgb(84,84,84);font-family:arial,sans-serif;line-height:10.4000005722046px">as a consequence, when i do 'nova list', it ends up without knowing anything about the networks. The instance is allocated an IP, has booted, is able to use that IP. Neutron owns the port for it, all is good from that standpoint, its just nova knows nothing about it.</span></div><div><span style="color:rgb(84,84,84);font-family:arial,sans-serif;line-height:10.4000005722046px"><br></span></div><div><span style="color:rgb(84,84,84);font-family:arial,sans-serif;line-height:10.4000005722046px">Is 'info_caches' something that is truly a cache? it seems the only known repository.</span></div><div><span style="color:rgb(84,84,84);font-family:arial,sans-serif;line-height:10.4000005722046px"><br></span></div><div><span style="color:rgb(84,84,84);font-family:arial,sans-serif;line-height:10.4000005722046px">There are some spots its possible its not written w/ no message, e.g. in network/manager.py:</span></div><div><font color="#545454" face="arial, sans-serif"><span style="line-height:10.4000005722046px">_do_trigger_security_group_members_refresh_for_instance()</span></font><br></div><div><font color="#545454" face="arial, sans-serif"><div style><span style="line-height:10.4000005722046px">        try:</span></div><div style><span style="line-height:10.4000005722046px">            # NOTE(vish): We need to make sure the instance info cache has been</span></div><div style><span style="line-height:10.4000005722046px">            #             updated with new ip info before we trigger the</span></div><div style><span style="line-height:10.4000005722046px">            #             security group refresh. This is somewhat inefficient</span></div><div style><span style="line-height:10.4000005722046px">            #             but avoids doing some dangerous refactoring for a</span></div><div style><span style="line-height:10.4000005722046px">            #             bug fix.</span></div><div style><span style="line-height:10.4000005722046px">            nw_info = self.get_instance_nw_info(admin_context, instance_id,</span></div><div style><span style="line-height:10.4000005722046px">                                                None, None)</span></div><div style><span style="line-height:10.4000005722046px">            ic = objects.InstanceInfoCache.new(admin_context, instance_id)</span></div><div style><span style="line-height:10.4000005722046px">            ic.network_info = nw_info</span></div><div style><span style="line-height:10.4000005722046px">            ic.save(update_cells=False)</span></div><div style><span style="line-height:10.4000005722046px">        except exception.InstanceInfoCacheNotFound:</span></div><div style><span style="line-height:10.4000005722046px">            pass</span></div><div style="line-height:10.4000005722046px"><br></div><div style="line-height:10.4000005722046px">no error, no message will be thrown.</div><div style="line-height:10.4000005722046px"><br></div><div style="line-height:10.4000005722046px">It appears its intended to update periodically (update_instance_cache_with_nw_info()), not sure if that is my problem (e.g. the refresh wiped it) or the workaround (e.g. it will eventually(?) fix).</div><div style="line-height:10.4000005722046px"><br></div><div style="line-height:10.4000005722046px">Anyone have any light to shed on this?</div><div style="line-height:10.4000005722046px"><br></div><div style="line-height:10.4000005722046px"><br></div></font></div></div>