Thanks for using the TrueNAS Community Edition issue tracker! TrueNAS Enterprise users receive direct support for their reports from our support portal.

Fix bug where an empty snapshot prevented adding an iSCSI extent

Description

On a fresh install of FreeNAS 11.2-U4.1, it is not possible to add an iSCSI extent. The Angular UI does not show any ZVOL devices in the Device drop-down, and the legacy UI throws an exception.

The only recent bugs I could find relating to extents were due to spaces in snapshots or pool names (of which I have neither). This same configuration was used previously in 11.1 without issue.

Problem/Justification

None

Impact

None

SmartDraw Connector

Katalon Manual Tests (BETA)

Activity

Show:

Bonnie Follweiler August 19, 2019 at 2:08 PM

Test Passed in TrueNAS-11.2-INTERNAL-32

Bug Clerk July 10, 2019 at 3:17 PM

Bug Clerk July 4, 2019 at 1:03 PM

William Gryzbowski June 18, 2019 at 12:16 PM

Thanks, that was very helpful.

Stephen Cluff June 18, 2019 at 6:20 AM
Edited

I did some additional testing on this today. Installed 11.1-U7, and was able to configure extents. Upgraded to 11.2-U4.1, and was still able to configure extents. After upgrading:

root@inception:~ # midclt call zfs.snapshot.query '[]' '{"select": ["name"], "order_by": ["name"]}' [{"name": "freenas-boot/ROOT/11.2-U4.1@2019-06-17-03:38:32", "pool": "freenas-boot"}, {"name": "freenas-boot/ROOT/11.2-U4.1@2019-06-17-22:53:48", "pool": "freenas-boot"}]

If I remove these boot environments, leaving no snapshots in the system, I am no longer able to create extents:

root@inception:~ # midclt call zfs.snapshot.query '[]' '{"select": ["name"], "order_by": ["name"]}' [{"name": "", "pool": ""}]

If I subsequently clone the boot environment (which creates a snapshot), I am once again able to create extents:

root@inception:~ # midclt call zfs.snapshot.query '[]' '{"select": ["name"], "order_by": ["name"]}' [{"name": "freenas-boot/ROOT/11.2-U4.1@2019-06-17-23:18:04", "pool": "freenas-boot"}]

It seems like it is impossible to create extents if there is not at least one snapshot in the system.

Complete
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Components

Affects versions

Priority

More fields

Katalon Platform

Created June 17, 2019 at 1:50 AM
Updated July 1, 2022 at 4:35 PM
Resolved August 19, 2019 at 2:14 PM