Comment 3 for bug 1957164

Revision history for this message
Erik Lönroth (erik-lonroth) wrote :

I can reproduce this again with this charm: https://github.com/erik78se/juju-operators-examples/tree/main/storage-filesystem

So, basically I think that the storage with aws must be broken.

I can only attach back storage to the same unit after detaching it.

Steps to reproduce:

* Build the charm "storage-filesystem"

# Deploy the charm
* juju deploy storage-filesystem

# Add storage to it
* juju add-storage storage-filesystem/0 logdata=ebs,1,200M

# Detach it
* juju detach-storage logdata/0

# Add a second unit
* juju add-unit storage-filesystem.

# Try attach the storage to the new unit
* juju attach-storage storage-filesystem/1 logdata/0

Expected: It would attach the storage to the second unit.

Outcome: It does not attach the storage.

Note: It can be "re-attached" to the first unit.

# re-attach
* juju attach-storage storage-filesystem/0 logdata/0