Skip to content

Fix lifecycle events being emited on pending entities #2620

@breml

Description

@breml

Current behavior

In clustered setups, lifecycle events for on creation of networks and storage pools are emitted for the first resource created on a node specified with target, thous the resource is in pending state. For the other resources (other targets, final commit of the resource), no lifecycle event is emitted.

Expected behavior

Fix lifecycle events on storage pools and networks to only be emitted on non-pending entities, so only at final creation and only on deletion of non-pending items.

Also make sure that a configuration change results in a single event.

Metadata

Metadata

Assignees

Labels

EasyGood for new contributors

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions