Skip to content

Multiple libvirt-provider instances share same storage #198

@lukas016

Description

@lukas016

Problem description

Current implementation of store uses filesystem for storage api.Machine objects. We are using mutex for avoid of race condition during modified api.Machine. But we don't have any protection between running multiple instances of libvirt-provider.

It can create race condition during upgrade of libvirt-provider, when multiple instances of libvirt-provider run simultaneously.

I think we need to fix this special case. One of possible solution is use lock base on file (same logic as flock). Maybe: https://pkg.go.dev/github.com/theckman/go-flock

What do you think?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

In Progress

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions