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

iocage snaplist fails with recursive snapshot

    XMLWordPrintable

    Details

      Description

      I have peridoic snapshots that I run nightly for iocage dataset and I have recursive snapshots enabled. As of 12.0-RC1, I now get the following error when running `iocage snaplist <jail>`:

      ```

      iocage snaplist emby-server
      Traceback (most recent call last):
        File "/usr/local/bin/iocage", line 10, in <module>
          sys.exit(cli())
        File "/usr/local/lib/python3.8/site-packages/click/core.py", line 764, in __call__
          return self.main(*args, **kwargs)
        File "/usr/local/lib/python3.8/site-packages/click/core.py", line 717, in main
          rv = self.invoke(ctx)
        File "/usr/local/lib/python3.8/site-packages/click/core.py", line 1137, in invoke
          return _process_result(sub_ctx.command.invoke(sub_ctx))
        File "/usr/local/lib/python3.8/site-packages/click/core.py", line 956, in invoke
          return ctx.invoke(self.callback, **ctx.params)
        File "/usr/local/lib/python3.8/site-packages/click/core.py", line 555, in invoke
          return callback(*args, **kwargs)
        File "/usr/local/lib/python3.8/site-packages/iocage_cli/snaplist.py", line 43, in cli
          snap_list = ioc.IOCage(jail=jail).snap_list(_long, _sort)
        File "/usr/local/lib/python3.8/site-packages/iocage_lib/iocage.py", line 1668, in snap_list
          creation = snap.properties["creation"]
        File "/usr/local/lib/python3.8/site-packages/iocage_lib/resource.py", line 23, in properties
          self._properties = iocage_cache.datasets[self.resource_name]
      KeyError: 'Sasquatch/iocage/jails/emby-server@backup-before-12-upgd'

      ```

      PS - this worked fine in 12.0-beta1. Thanks, L

        Attachments

          Attachments

            JEditor

              Activity

                People

                Assignee:
                waqar Waqar Ahmed
                Reporter:
                lancespeelmon Lance Speelmon
                Watchers:
                Bonnie Follweiler, Bug Clerk, Lance Speelmon, William Grzybowski
                Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: