Skip to content

disk.md disk.xp8 fixes, add provisioned state detection for fs.host#1008

Open
cvaroqui wants to merge 9 commits intoopensvc:mainfrom
cvaroqui:main
Open

disk.md disk.xp8 fixes, add provisioned state detection for fs.host#1008
cvaroqui wants to merge 9 commits intoopensvc:mainfrom
cvaroqui:main

Conversation

@cvaroqui
Copy link
Copy Markdown
Member

@cvaroqui cvaroqui commented Apr 8, 2026

No description provided.

cvaroqui added 5 commits April 8, 2026 15:49
The "at least 1 device must be set in the 'devs' provisioning"
error is emited by a util/md pkg that should have no knowledge
of keywords anyway.
Some fs in the util/filesystems already have a DevicesFormatted
func that can serve as a Provisioned() test.

Stop merging unknown and undef states in the provisioned state
renderer. Use '?' for undef and '!' for unknown.
A non-shared disk-fs resource stack in a failover actor can't
provision on the non-leader instances if the disk is not started.

Don't skip the resource start for shared=false resources. A
instance stop is done at the end of the provision.
Add more state helpers: IsSplit() IsPaired().

Use them in the Start() and Abort() state switchs to handle
mixed states correctly.
A resource always has the "provisioned" struct, no need to test
a "no provisioned data" scenario.
@cvaroqui cvaroqui force-pushed the main branch 2 times, most recently from a6a0c69 to 5b9c70e Compare April 9, 2026 08:13
* Split the MDDriverProvisioner interface into MDDriverProvisioner and
  MDDriverUnprovisioner

* Change the label format so the md name is always shown and uuid is
  shown additionnally when available.

* Allow wiping from the md name detection too. Previously if the uuid
  was no longer known we failed to detect the md legs to wipe.
Say "md %s already exists" instead of "md %s is already created" as the
test is a pure existance test... it does not validate creation
parameters.
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.

1 participant