Project

General

Profile

Actions

Bug #14262

open

Host orchestration ends up in inconsistent state when timeout it hit on compute resource

Added by Ivan Necas about 8 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Orchestration
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Provided the compute resource is slow for some reason (such as heavy load),
it can happen that the request to the compute resource takes longer than expected.
In that case, orchestration rolls back the local database. However, the
original request finishes successfully. This leads to this scenario:

1. try to delete a host with compute resource
2. compute resource timeouts on deletion of the VM
4. the local database host deletion is rolled back
5. the deletion of the VM succeeds eventually
6. the next attempt to delete the host fails with 'ActiveRecord::RecordNotFound', because
the associated VM is missing

Similar cases apply to other host orchestation (create, update), and are not limited to just
compute resources (same applies to smart proxy calls).


Related issues 1 (1 open0 closed)

Related to Foreman - Tracker #14002: Orchestration build around ActiveRecord hooks trackerNew03/02/2016

Actions
Actions #1

Updated by Ivan Necas about 8 years ago

  • Related to Tracker #14002: Orchestration build around ActiveRecord hooks tracker added
Actions

Also available in: Atom PDF