Enabling LZ4 encryption on a ZFS pool results in a "middlewared.schema.Error: [aclmode] Invalid choice: DISCARD" error

Description

When attempting to enable LZ4 encryption on a ZFS pool without encryption enabled, an exception occurs and the user is shown an error out of the blue.

Expected

No errors

Actual result

  • Frontend error (see a copy-paste below)

Error output

Error: Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 137, in call_method
result = await self.middleware._call(message['method'], serviceobj, methodobj, params, app=self,
File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 1187, in _call
return await methodobj(*prepared_call.args)
File "/usr/local/lib/python3.8/site-packages/middlewared/service.py", line 457, in update
rv = await self.middleware._call(
File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 1187, in _call
return await methodobj(*prepared_call.args)
File "/usr/local/lib/python3.8/site-packages/middlewared/schema.py", line 972, in nf
args, kwargs = clean_and_validate_args(args, kwargs)
File "/usr/local/lib/python3.8/site-packages/middlewared/schema.py", line 930, in clean_and_validate_args
value = attr.clean(args[args_index + i])
File "/usr/local/lib/python3.8/site-packages/middlewared/schema.py", line 607, in clean
data[key] = attr.clean(value)
File "/usr/local/lib/python3.8/site-packages/middlewared/schema.py", line 167, in clean
value = super(Str, self).clean(value)
File "/usr/local/lib/python3.8/site-packages/middlewared/schema.py", line 53, in clean
raise Error(self.name, f'Invalid choice: {value}')
middlewared.schema.Error: [aclmode] Invalid choice: DISCARD

Screenshot

Problem/Justification

None

Impact

None

SmartDraw Connector

Katalon Manual Tests (BETA)

Activity

Andrew Walker 
August 3, 2020 at 7:52 PM
(edited)

There was a brief period of time between Master and BETA1 in which we new pools were created such that their root-level dataset had an aclmode set to DISCARD. There is a GUI workaround for the issue (change compression / whatever at the same time as setting aclmode to PASSTHROUGH). Issue most likely affects very small number of users. My recommendation is to add an errata message about this particular edge-case bug to the release notes for BETA1.

Erin Clark 
July 27, 2020 at 7:18 PM
(edited)

Could you please go to System > Advanced and create a debug and then attach it to the ticket?

Complete

Details

Assignee

Reporter

Impact

Time remaining

0m

Components

Fix versions

Affects versions

Priority

Katalon Platform

Created July 27, 2020 at 6:50 PM
Updated July 1, 2022 at 4:51 PM
Resolved August 6, 2020 at 2:23 PM