ZFS pool creation fails

I’m encountering a strange issue when trying to create a new ZFS pool using the following yaml:

config:
  scrub_schedule: 0 4 * * 0
  pools:
    - name: redpool
      type: zfs-raid1
      devices:
      - /dev/disk/by-id/ata-WDC_WD8003FFBX-68B9AN0_VYH9WG4M
      - /dev/disk/by-id/ata-WDC_WD8003FFBX-68B9AN0_VYHAKA7M

The edit hangs for a while then throws an error:

Config parsing error: Put "https://192.168.1.98:8443/os/1.0/system/storage": net/http: timeout awaiting response headers

Trying again fails because the encryption key already exists:

Config parsing error: encryption key for 'redpool' already exists

What am I doing wrong?

What IncusOS version is that?

This sounds a lot like our old disk wiping logic where when run on HDDs would literally write zeroes all over them, potentially taking a long time. If that’s the case, you should see a bunch of disk activity though and it should eventually result in a working pool.

@gibmat

os_version: "202604261712"

These are big 8tb hdd drives so I suppose if its running a wipe it could take a long time, but I haven’t seen any new pools created and I ran this yesterday.

Interestingly the old pool was never created. However, I just ran the identical command and it finished successfully and instantly. The old encryption keys that were leftover were deleted too , so I’m assuming some kind of clean up task ran?

I suppose the issue is solved but I’m quite curious what happened here exactly.