Uploaded image for project: 'FreeNAS / TrueNAS'
  1. FreeNAS / TrueNAS
  2. NAS-106959

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

    XMLWordPrintable

    Details

    • Impact:
      Medium

      JEditor

        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

          Attachments

            Attachments

              Issue Links

                Activity

                  People

                  Assignee:
                  tim Tim Moore
                  Reporter:
                  releng Release Council
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved:

                      Time Tracking

                      Estimated:
                      Original Estimate - 0 minutes
                      0m
                      Remaining:
                      Remaining Estimate - 0 minutes
                      0m
                      Logged:
                      Time Spent - 1 hour
                      1h