On 22 January 2015 at 09:30, Don Waterloo <don.water...@gmail.com> wrote:
> > > On 3 December 2014 at 11:58, Don Waterloo <don.water...@gmail.com> wrote: > >> I am having a problem that I hope someone can comment on. >> >> Periodically, an instance ends up w/ 0 rows in 'instance_info_caches' in >> the nova database. >> > > If anyone else has a chance, and can try running this sql query against > their nova database, it will show if you are seeing the same problem I am: > > select instances.host,instances.hostname,instances.uuid,instances.user_id > from instance_info_caches,instances where network_info = '[]' and > instances.deleted = 0 and instances.uuid = > instance_info_caches.instance_uuid; > > The expectation is this returns 0 rows. I'm finding about 1 instance in > 100 ends up with [] for the network_info. > > After some more digging, what is happening in the bad case is a race condition. In the 'good' case, _allocate_network_async() is called followed by _get_guest_xml() In the 'bad' case, _allocate_network_async() is called, followed by _get_instance_nw_info(). E.g. it is doing a refresh_cache() on this instance while it is being created (before its finished).
_______________________________________________ Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack Post to : openstack@lists.openstack.org Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack