Project

General

Profile

Bug #39418

Fix zvol creation in APIv2

Added by Waqar Ahmed over 1 year ago. Updated 8 months ago.

Status:
Done
Priority:
No priority
Assignee:
Vladimir Vinogradenko
Category:
Middleware
Target version:
Seen in:
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:
ChangeLog Required:
No

Description

We are unable to create a zvol in freenas/11.3 devel branch. The root cause most probably is linked to middlewared allowing null values for two params ( quota, refquota ). This is the payload being sent by new UI

{"id":"d050a92b-895c-7513-92d5-613333aa5514","msg":"method","method":"pool.dataset.create","params":[{"name":"vol/asdf","volsize":1073758208,"volblocksize":"16K","type":"VOLUME"}]}

The exception which is generated when this call is made is This field is not valid for VOLUME. Two screenshots have been attached ( one for legacy and one for new UI ) showing the bug.
Risk
This ticket is minimal risk as it is made to contain an already existing bug
Acceptance Criteria
End user should be able to create a Zvol

Associated revisions

Revision 4739d809 (diff)
Added by Vladimir Vinogradenko over 1 year ago

null=True should not imply default=None Ticket: #39418

History

#2 Updated by Bug Clerk over 1 year ago

  • Status changed from Unscreened to In Progress

#3 Updated by Bug Clerk over 1 year ago

  • Status changed from In Progress to Ready for Testing

#4 Updated by Dru Lavigne about 1 year ago

  • Subject changed from Unable to create Zvol to Fix zvol creation in APIv2
  • Needs Doc changed from Yes to No
  • Needs Merging changed from Yes to No

#5 Updated by Dru Lavigne 11 months ago

  • Target version changed from 11.3 to 11.3-BETA1

#8 Updated by Jeff Ervin 10 months ago

56398
56407
56415
56416

Test Passed FreeNAS-11.3-MASTER-201902261014

Created zvols in both the WebUI and Legacy

#9 Updated by Dru Lavigne 10 months ago

  • Status changed from Passed Testing to Done

#10 Updated by Dru Lavigne 8 months ago

  • Target version changed from 11.3-BETA1 to 11.3-ALPHA1

Also available in: Atom PDF