canonical / charm-microceph

Charm to deploy/manage microceph
Apache License 2.0
2 stars 9 forks source link

Added support for Juju Storage #37

Closed UtkarshBhatthere closed 8 months ago

UtkarshBhatthere commented 9 months ago
Model  Controller  Cloud/Region             Version  SLA          Timestamp
mcu    newtestcon  serverstack/serverstack  2.9.44   unsupported  12:31:51Z

App        Version  Status   Scale  Charm      Channel  Rev  Exposed  Message
microceph           blocked      1  microceph             2  no       (workload) Storage wal/6 detached, provide replacement for osd.5.

Unit          Workload  Agent  Machine  Public address  Ports  Message
microceph/0*  blocked   idle   0        10.5.3.170             (workload) Storage wal/6 detached, provide replacement for osd.5.

Machine  State    Address     Inst id                               Series  AZ    Message
0        started  10.5.3.170  e29179d6-3427-4903-9af0-d78e827c1867  jammy   nova  ACTIVE
UtkarshBhatthere commented 9 months ago

Thanks for the review @lmlg there are a few things that I have not completely figured out (mostly sane detachment of disks). And need to implement a storage_updated event handler in charm to update the unit status. Will resolve your comments along with that. Apart from that this logic does two things nicely:

  1. Automatically enrolls OSDs once disks are added to the unit.
  2. Automatically enrolls OSDs with WAL/DB as soon as equal atleast one of each is available to the unit.
  3. Trigger an event to notify charm about remaining wal/db/disk devices. (Charm will react to it by updating the charm status)