Skip to content

Add support for 'disabling' physical disks to prevent future allocations#3526

Closed
smklein wants to merge 13 commits into
mainfrom
disk-disable
Closed

Add support for 'disabling' physical disks to prevent future allocations#3526
smklein wants to merge 13 commits into
mainfrom
disk-disable

Conversation

@smklein

@smklein smklein commented Jul 7, 2023

Copy link
Copy Markdown
Collaborator

Part of #3480

Fixes #5153

Comment thread openapi/nexus.json Outdated
Comment thread schema/crdb/dbinit.sql

-- Describes how the control plane manages this disk
state omicron.public.physical_disk_state NOT NULL,

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO(me): add an index to look up all "draining" disks".

Also maybe update the terminology here to match #4719

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: I should use the term "deactivating" here, rather than "draining", because "draining" can refer to cooperative removal (e.g. in the context of draining instances from a sled)

@smklein

smklein commented Jan 10, 2024

Copy link
Copy Markdown
Collaborator Author

During the update sync, we had an interesting discussion where we floated the following idea: Instead of storing the "State" in the disk itself, what if state was implied by presence in a blueprint?

In this world:

  • A disk that appears in a blueprint is implicitly active
  • A disk that is not in the blueprint is not active (distinguishing between deactivating or inactive is a little more subtle?)

I'm going to explore this space a bit more, since I think it would fundamentally change how the "disk state" is stored in the DB.

@smklein

smklein commented Apr 1, 2024

Copy link
Copy Markdown
Collaborator Author

Closing in favor of #5335

@smklein smklein closed this Apr 1, 2024
@smklein smklein deleted the disk-disable branch April 1, 2024 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add notion of physical disk "policy" and "state" to physical disks in the control plane

3 participants