Defect #1809
closed
Failed/Blocked provisionings are ignored when doing another provisioning
Added by Alena Peterová over 5 years ago.
Updated over 5 years ago.
Description
Version 9.7.4
(the bug was introduced after upgrading to 9.7.0 from 9.7.0-SNAPSHOT b01ad57e5e80aae2c13f2629e0b8efee5bf0cd84)
When there are some failed provisionings in the queue and another provisioning is created, it's attempted. But it shouldn't be attempted, it should be waiting in the state "Not executed - another provisioning is already in the queue".
Steps to reproduce locally:
- create a virtual system
- create an account on the system
- block Update operations
- change e.g. the first name of the identity -> the operation is Blocked
- unblock Update operations
- change e.g. the last name of the identity -> the operation is executed
Files
- Assignee changed from Vít Švanda to Radek Tomiška
- Assignee changed from Radek Tomiška to Vít Švanda
- Status changed from New to In Progress
- Target version set to Rhyolite (9.7.5)
I simulated this bug. I created this bug during implementation of request system state. There I needed persist provisioning-operation in created state (because transaction). This is primary cause this problem. I fixed problem with no creation NOT_EXECUTED operations, but this caused next problems (for example in case when multiple provisioning are executed during one transaction, then second operation is marked as NOT_EXECUTED).
I didn't found correct solution yet (more precisely some tests do not passing now).
- % Done changed from 0 to 50
- Status changed from In Progress to Needs feedback
- Assignee changed from Vít Švanda to Radek Tomiška
- % Done changed from 50 to 90
- Status changed from Needs feedback to Resolved
- Assignee changed from Radek Tomiška to Vít Švanda
- % Done changed from 90 to 100
I did test (brake, readonly, inactive, merge exclueded contracts) and operation is not executed, when some operation for the same entity is in queue, thx! Code is nice too.
- Status changed from Resolved to Closed
- Related to Task #1736: State of request on a systems (+ propagation to the VS) added
Also available in: Atom
PDF