[Openstack] instance_info_caches table, nova not populating for some instances

Don Waterloo don.waterloo at gmail.com
Fri Jan 23 01:43:06 UTC 2015


On 22 January 2015 at 09:30, Don Waterloo <don.waterloo at gmail.com> wrote:

>
>
> On 3 December 2014 at 11:58, Don Waterloo <don.waterloo at 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).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20150122/061142c8/attachment.html>


More information about the Openstack mailing list