Uploaded image for project: 'TrueNAS'
  1. TrueNAS
  2. NAS-110295

Incorrect form behaviour when editing Zvol

    XMLWordPrintable

Details

    Description

      When I trying to edit zvol, error occured:
      [sync] Invalid choice:

      {'parsed': 'standard', 'rawvalue': 'standard', 'value': 'STANDARD', 'source': 'DEFAULT'}

      More info...

      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 1195, in _call
      return await methodobj(*prepared_call.args)
      File "/usr/local/lib/python3.8/site-packages/middlewared/service.py", line 476, in update
      rv = await self.middleware._call(
      File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 1195, 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: [sync] Invalid choice:

      {'parsed': 'standard', 'rawvalue': 'standard', 'value': 'STANDARD', 'source': 'DEFAULT'}

      Also, any zvol selected for editing shows wrong zvol name (for example I edit zvol named "backup", but it shows that it's another "hdd_mirror" zvol)

      Attachments

        1. debug-truenas-20210421153705.txz
          667 kB
        2. image-2021-06-21-12-58-00-634.png
          image-2021-06-21-12-58-00-634.png
          319 kB
        3. scr1.jpg
          scr1.jpg
          90 kB
        4. scr2.jpg
          scr2.jpg
          52 kB
        5. scr3.jpg
          scr3.jpg
          54 kB

        Attachments

          JEditor

            Issue Links

              Activity

                People

                  releng Triage Team
                  alexgum Alexander Humianiuk
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                    Created:
                    Updated:
                    Resolved: