Project

General

Profile

Feature #26779

Add API for boot device scrub

Added by Vaibhav Chauhan over 1 year ago. Updated 10 months ago.

Status:
Done
Priority:
Important
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:

Description

I would request an api end point for

1) setting up freenas-boot Automatic scrub interval in days.

2) starting a freenas-boot scrub process.


Related issues

Blocks FreeNAS - Feature #26755: implement Scrub in boot volume in new UI.Resolved2017-10-30

Associated revisions

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

fix(middlewared): add `timeout` to `Job.wait`

Ticket: #26779

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

fix(middlewared): shield lock wait to avoid task cancellation

Ticket: #26779

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

feat(middlewared/boot): implement `boot.scrub` job

Ticket: #26779

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

fix(middlewared): add `timeout` to `Job.wait`

Ticket: #26779

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

fix(middlewared): shield lock wait to avoid task cancellation

Ticket: #26779

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

feat(middlewared/boot): implement `boot.scrub` job

Ticket: #26779

History

#1 Updated by Vaibhav Chauhan over 1 year ago

  • Blocks Feature #26755: implement Scrub in boot volume in new UI. added

#3 Updated by William Grzybowski over 1 year ago

  • Status changed from Unscreened to Screened
  • Target version set to 11.2-BETA1

#4 Updated by Vaibhav Chauhan over 1 year ago

  • Status changed from Screened to Unscreened
  • Target version deleted (11.2-BETA1)

I have another request, can this API endpoint be written with WebSockets?

#5 Updated by Vaibhav Chauhan over 1 year ago

  • Status changed from Unscreened to Screened
  • Target version set to 11.2-BETA1

sorry for unsetting target and status field

#6 Updated by William Grzybowski over 1 year ago

To be determined, I will try to write in websocket but might not be possible since that part is still intertwined with Django/old API.

#7 Updated by Vaibhav Chauhan over 1 year ago

any updates on this ticket would be really appreciated.

#8 Updated by William Grzybowski over 1 year ago

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

#9 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

#10 Updated by William Grzybowski over 1 year ago

  • Status changed from Reviewed by Developer to Ready For Release

#11 Updated by William Grzybowski over 1 year ago

Vaibhav Chauhan wrote:

any updates on this ticket would be really appreciated.

boot.scrub

middleware call, its a job.

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

  • Status changed from Ready For Release to Done

#13 Updated by Dru Lavigne about 1 year ago

  • Subject changed from please add scrubbing freenas-boot API end points. to Add API for boot device scrub
  • Needs Doc changed from Yes to No
  • Needs Merging changed from Yes to No

#14 Updated by Dru Lavigne 12 months ago

  • Status changed from Done to Ready for Testing

#15 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 the /boot/scrub API call. It seems hooked up and functional. The only data returned is an integer in like "1008" that increases each time I call it. Is this intentional? If so then the API call works.

#16 Updated by William Grzybowski 10 months ago

Zackary Welch wrote:

So this is the /boot/scrub API call. It seems hooked up and functional. The only data returned is an integer in like "1008" that increases each time I call it. Is this intentional? If so then the API call works.

Yes, the integer is the job id, which you can get status using /core/get_jobs/

#17 Updated by Bonnie Follweiler 10 months ago

  • Status changed from Ready for Testing to Passed Testing

#18 Updated by Dru Lavigne 10 months ago

  • Status changed from Passed Testing to Done

Also available in: Atom PDF