zettarepl failing to pull-replicate a dataset with canmount=noauto (12.0-U1 regression)

Description

[2020/12/09 15:03:36] DEBUG [replication_task__task_2] [zettarepl.transport.local.shell.1.async_exec.125] Running ['zfs', 'list', '-t', 'filesystem,volume', '-H', '-o', 'type,mounted,canmount,mountpoint,name', '-s', 'name', '-r', 'storage/incoming/srv']
[2020/12/09 15:03:37] DEBUG [replication_task__task_2] [zettarepl.transport.local.shell.1.async_exec.125] Success: 'filesystem\tno\tnoauto\t/mnt/stor....storage/incoming/srv/tftpboot\n'
[2020/12/09 15:03:37] ERROR [replication_task__task_2] [zettarepl.replication.run] For task 'task_2' unhandled replication error KeyError('noauto')
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/zettarepl/replication/run.py", line 154, in run_replication_tasks
run_replication_task_part(replication_task, source_dataset, src_context, dst_context, observer)
File "/usr/local/lib/python3.8/site-packages/zettarepl/replication/run.py", line 239, in run_replication_task_part
mount_dst_datasets(dst_context, target_dataset, replication_task.recursive)
File "/usr/local/lib/python3.8/site-packages/zettarepl/replication/run.py", line 674, in mount_dst_datasets
dst_datasets = list_datasets_with_properties(dst_context.shell, dst_dataset, recursive, {
File "/usr/local/lib/python3.8/site-packages/zettarepl/dataset/list.py", line 32, in list_datasets_with_properties
return [
File "/usr/local/lib/python3.8/site-packages/zettarepl/dataset/list.py", line 33, in <listcomp>
{
File "/usr/local/lib/python3.8/site-packages/zettarepl/dataset/list.py", line 34, in <dictcomp>
property: parse_property(value, properties[property])
File "/usr/local/lib/python3.8/site-packages/zettarepl/transport/zfscli/_init_.py", line 105, in parse_property
return type(value)
File "/usr/local/lib/python3.8/site-packages/zettarepl/transport/zfscli/parse.py", line 10, in zfs_bool
return {
KeyError: 'noauto'

This is the log output from a task which was previously working on 12.0-RELEASE (pull replication from a Debian Buster system running ZoL 0.8.5). The version of zettarepl in 12.0-U1 seems to not like the canmount=noauto property.

Problem/Justification

None

Impact

None

SmartDraw Connector

Katalon Manual Tests (BETA)

Activity

Show:

Bug Clerk December 10, 2020 at 12:47 PM

Bug Clerk December 9, 2020 at 8:37 PM

Gavin Chappell December 9, 2020 at 3:29 PM

I couldn't find anywhere in the TrueNAS UI to change the canmount property (and I'm not 100% sure how it was set in the first place) but I can confirm that manually setting canmount=on via the CLI allows the replication to run successfully again.

Gavin Chappell December 9, 2020 at 3:19 PM

Apologies - I misread the output.

This canmount property is not set on the source system, it is set locally on the TrueNAS box itself on the target dataset.

Complete

Details

Assignee

Reporter

Components

Affects versions

Priority

More fields

Katalon Platform

Created December 9, 2020 at 3:13 PM
Updated July 1, 2022 at 4:59 PM
Resolved December 10, 2020 at 12:47 PM