Event '<storage name>-storage-attached'

Event > List of events > Storage events > <storage name>-storage-attached

This document describes the <storage name>-storage-attached event. The event informs a charm that a storage volume has been attached, and is ready to interact with.


Emission sequence

The event is emitted after a storage volume has been attached to the charm’s host machine or container.

Observing this event in Ops

In ops, you can observe the remove event like you would any other:

self.framework.observe(self.on.<storage-name>-storage-attached, self._on_<storage-name>-storage-attached)

The event object contains information about what volume was attached, at what path.

Last updated 1 year, 4 months ago. Help improve this document in the forum.