Hello,
I’m running a small 2-node LXD cluster for testing purposes. I’m trying to deploy two units of a charm that has two storage endpoints defined in metadata.yaml
and I’m expecting the units to be distributed evenly across the two cluster nodes. That is
machine1: one container + 2 storage volumes
machine2: one container + 2 storage volumes
The containers seems to be created correctly but I get this error from the filesystem volumes (both) that should be added to machine2
:
"4":
provider-id: docker:juju-4731c1-filesystem-4
storage: docker/4
attachments:
machines:
"2":
mount-point: ""
read-only: false
life: alive
units:
jenkins-agent/2:
machine: "2"
life: alive
pool: ssd-dir
size: 51200
life: alive
status:
current: attaching
message: 'attaching filesystem 4 to machine 2: Failed add validation for device
"filesystem-4": Failed loading custom volume: Storage volume not found'
since: 22 Dec 2022 02:19:35+01:00
And when I check lxc storage show docker
I find that the target for this volume is machine1
:
config: {}
description: ""
name: docker
driver: dir
used_by:
- /1.0/storage-pools/docker/volumes/custom/juju-4731c1-filesystem-2?target=machine1 # this on works fine since it's actually created on machine1
- /1.0/storage-pools/docker/volumes/custom/juju-4731c1-filesystem-4?target=machine1 # this should be machine2
status: Created
locations:
- machine1
- machine2
What is going on here? Is there something wrong with my setup that is causing this issue or am I missing something in juju?
Any input here is much appreciated!