Project

General

Profile

Feature #26432

Provide API calls to get boot pool status and available disks for replacement

Added by William Grzybowski over 1 year ago. Updated 10 months ago.

Status:
Done
Priority:
Nice to have
Assignee:
William Grzybowski
Category:
Middleware
Target version:
Estimated time:
Severity:
New
Reason for Closing:
Reason for Blocked:
Needs QA:
No
Needs Doc:
No
Needs Merging:
No
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:

Associated revisions

Revision c14a1e4b (diff)
Added by William Grzybowski over 1 year ago

feat(middlewared/zfs): add `zfs.pool.query` method

Ticket: #26432

Revision 111d1268 (diff)
Added by William Grzybowski over 1 year ago

feat(middlewared/boot): add `boot.get_state` method

Ticket: #26432

Revision 9eb31fdc (diff)
Added by William Grzybowski over 1 year ago

feat(middlewared/zfs): make parameter for `pool.get_disks` optional

Ticket: #26432

Revision 1cf95bca (diff)
Added by William Grzybowski over 1 year ago

feat(middlewared/disk): add `disk.get_unused` helper method

Ticket: #26432

Revision a36eb17b (diff)
Added by William Grzybowski over 1 year ago

fix(middlewared/pool): do not call `query` twice

Ticket: #26432

Revision ae306fd2 (diff)
Added by William Grzybowski over 1 year ago

fix(middlewared/pool): do not call `query` twice

Ticket: #26432

Revision 29bbf9b0 (diff)
Added by William Grzybowski over 1 year ago

fix(middlewared/zfs): getting pool using `id`

Ticket: #26432

Revision 355cc433 (diff)
Added by William Grzybowski over 1 year ago

feat(middlewared/disk): implement a private `__get_reserved` method

This avoids a code duplication.

Ticket: #26432

Revision 6446ec8d (diff)
Added by William Grzybowski over 1 year ago

fix(api): do not traceback if volume is locked

Ticket: #26432

Revision 1639495b (diff)
Added by William Grzybowski over 1 year ago

fix(api): do not traceback if volume is locked

Ticket: #26432
(cherry picked from commit 6446ec8d15f453eff015b14874a69dda2a25644c)

Revision 448d6408 (diff)
Added by William Grzybowski over 1 year ago

feat(middlewared/zfs): add `zfs.pool.query` method

Ticket: #26432
(cherry picked from commit c14a1e4bbc417b26f1d72f148fe652c8550c4dc3)

Revision 6567f4b4 (diff)
Added by William Grzybowski over 1 year ago

feat(middlewared/zfs): add `zfs.pool.query` method

Ticket: #26432
(cherry picked from commit c14a1e4bbc417b26f1d72f148fe652c8550c4dc3)

Revision 7867c442 (diff)
Added by William Grzybowski over 1 year ago

fix(middlewared/zfs): getting pool using `id`

Ticket: #26432
(cherry picked from commit 29bbf9b03971b87daa79824e535a2f6de145a0bc)

Revision 758ebe43 (diff)
Added by William Grzybowski over 1 year ago

fix(middlewared/zfs): getting pool using `id` (#527)

Ticket: #26432
(cherry picked from commit 29bbf9b03971b87daa79824e535a2f6de145a0bc)

History

#1 Updated by William Grzybowski over 1 year ago

  • Status changed from Screened to Needs Developer Review
  • Assignee changed from William Grzybowski to Vladimir Vinogradenko

#2 Updated by Vladimir Vinogradenko over 1 year ago

  • Status changed from Needs Developer Review to Reviewed by Developer
  • Assignee changed from Vladimir Vinogradenko to William Grzybowski

#3 Updated by William Grzybowski over 1 year ago

  • Status changed from Reviewed by Developer to Ready For Release

#4 Updated by Dru Lavigne about 1 year ago

  • Status changed from Ready For Release to Closed
  • Needs Merging changed from Yes to No

#5 Updated by Dru Lavigne about 1 year ago

  • Tracker changed from Feature to Bug
  • Seen in set to Unspecified
  • ChangeLog Required set to No

#6 Avatar?id=13649&size=24x24 Updated by Ben Gadd about 1 year ago

  • Tracker changed from Bug to Feature
  • Seen in deleted (Unspecified)
  • ChangeLog Required deleted (No)

#7 Avatar?id=13649&size=24x24 Updated by Ben Gadd about 1 year ago

  • Parent task deleted (#26426)

#8 Updated by Dru Lavigne about 1 year ago

  • Status changed from Closed to Done

#9 Updated by Dru Lavigne about 1 year ago

  • Needs Doc changed from Yes to No

#10 Updated by Dru Lavigne 12 months ago

  • Status changed from Done to Ready for Testing

#11 Avatar?id=55038&size=24x24 Updated by Zackary Welch 11 months ago

  • Severity set to New
  • Needs QA changed from Yes to No

So this is about the /boot/get_state and /disk/get_unused calls. I've tested both of these and they seem to work correctly. I cannot verify if the get_state gives the correct information, but considering how much is returned I will assume so. I was able to test get_unused and it works perfectly. Both of these API calls are included in the documentation and execute correctly, showing relevant information.

#12 Updated by Dru Lavigne 11 months ago

  • Status changed from Ready for Testing to Done

#13 Updated by Dru Lavigne 10 months ago

  • Subject changed from Provide API calls to get boot pool status and available disks for replace to Provide API calls to get boot pool status and available disks for replacement

Also available in: Atom PDF