Project

General

Profile

Bug #36668

Fix validation of extent size in new UI

Added by Timothy Moore II 11 months ago. Updated 10 months ago.

Status:
Done
Priority:
No priority
Assignee:
Lola Yang
Category:
GUI (new)
Target version:
Seen in:
Severity:
New
Reason for Closing:
Reason for Blocked:
Needs QA:
No
Needs Doc:
No
Needs Merging:
No
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:
ChangeLog Required:
No

Description

Attempting to test #34636 by configuring iSCSI sharing with a ZVOL on a FreeNAS Mini with INTERNAL14 installed. After configuring Sharing/iSCSI, attempted to start the iSCSI service. The service would not start. Nick W. helped me with some troubleshooting and discovered something wrong with the reported "device-id" in /etc/ctl.conf:

lun "testing" {
        ctl-lun 0
        path "/dev/zvol/iSCSI-share-34636/share1" 
        blocksize 512
        serial "d05099c356a400" 
        device-id "iSCSI Disk      d05099c356a400                 " 
                size 50
        option vendor "FreeNAS" 
        option product "iSCSI Disk" 
        option revision "0123" 
        option naa 0x6589cfc00000028f749a38055ab5e809
        option insecure_tpc on
        option avail-threshold 483183820800
        option pool-avail-threshold 2690367514214
        option rpm 1
}

Related issues

Related to FreeNAS - Feature #34636: Reload iSCSI when zvol size changes on legacy UIDone
Has duplicate FreeNAS - Bug #36663: Cannot Save new iSCSI ExtentClosed

History

#1 Updated by Timothy Moore II 11 months ago

  • Related to Feature #34636: Reload iSCSI when zvol size changes on legacy UI added

#2 Updated by Dru Lavigne 11 months ago

  • Assignee changed from Release Council to Erin Clark
  • Target version changed from Backlog to 11.2-BETA2

#3 Updated by Erin Clark 11 months ago

  • Assignee changed from Erin Clark to Lola Yang

#4 Updated by Lola Yang 11 months ago

Hi Tim, could you provide the steps to reproduce it? Thanks.

#5 Updated by Lola Yang 11 months ago

  • Status changed from Unscreened to Screened

#6 Updated by Timothy Moore II 11 months ago

On a FreeNAS Mini with INTERNAL14 installed:

  • Log into new UI.
  • Storage/Pools: create pool "test-36668". Mirror with two 3 Tb disks.
  • Storage/Pools: Expand pool "test-36668", click "more options" (vertical dots), click "Add Zvol". Enter "zvol name:" and set "Size for this zvol" to "500 GiB". Click "Save".
  • Shell: type ifconfig, note IP address of system.
  • Sharing/Block (iSCSI)/Global Configuration: Add system IP address to "ISNS Servers" field. Click "Save".
  • Sharing/Block (iSCSI)/Portals: Add new portal, enter a comment, click "Save".
  • Sharing/Block (iSCSI)/Initiators: Add new initiator, enter comment, click "Save"
  • Sharing/Block (iSCSI)/Target: Add, enter "Target Name", set "Portal Group ID", set "Initiator Group ID", click "Save"

Note: new UI doesn't appear to detect a zvol as an option for Sharing/Block (iSCSI)/Extent/Add/"Device" field. New issue may be needed or maybe rework this one.

  • Switch to legacy UI.
  • Add new Device extent, choose created Zvol from drop-down list for the "Device", click "Save".
  • Switch back to new UI.
  • Sharing/Block (iSCSI)/Associated Targets: Add, set "Target", set "Extent", click "Save".
  • Services: Find iSCSI card, set "Auto-start", and click "Power" button to turn on.
  • Shell: Enter cat /etc/ctl.conf and read output "device-id" line, reproduced here:
    device-id "iSCSI Disk      <serial number>                 " 
    

I'm no longer seeing a size 50 entry under that line, but it still appears malformed compared to the rest of the entries in the file.

#7 Updated by Lola Yang 11 months ago

Timothy Moore II wrote:

On a FreeNAS Mini with INTERNAL14 installed:

  • Log into new UI.
  • Storage/Pools: create pool "test-36668". Mirror with two 3 Tb disks.
  • Storage/Pools: Expand pool "test-36668", click "more options" (vertical dots), click "Add Zvol". Enter "zvol name:" and set "Size for this zvol" to "500 GiB". Click "Save".
  • Shell: type ifconfig, note IP address of system.
  • Sharing/Block (iSCSI)/Global Configuration: Add system IP address to "ISNS Servers" field. Click "Save".
  • Sharing/Block (iSCSI)/Portals: Add new portal, enter a comment, click "Save".
  • Sharing/Block (iSCSI)/Initiators: Add new initiator, enter comment, click "Save"
  • Sharing/Block (iSCSI)/Target: Add, enter "Target Name", set "Portal Group ID", set "Initiator Group ID", click "Save"

Note: new UI doesn't appear to detect a zvol as an option for Sharing/Block (iSCSI)/Extent/Add/"Device" field. New issue may be needed or maybe rework this one.

  • Switch to legacy UI.
  • Add new Device extent, choose created Zvol from drop-down list for the "Device", click "Save".
  • Switch back to new UI.
  • Sharing/Block (iSCSI)/Associated Targets: Add, set "Target", set "Extent", click "Save".
  • Services: Find iSCSI card, set "Auto-start", and click "Power" button to turn on.
  • Shell: Enter cat /etc/ctl.conf and read output "device-id" line, reproduced here:
    [...]

I'm no longer seeing a size 50 entry under that line, but it still appears malformed compared to the rest of the entries in the file.

Thanks Tim. Maybe you selected file type first and then change it back to device. then it will show the size thing. (William remind me to double check it). I already create a pr to fixed it, and also fixed the extent devices drop down issue.

#8 Updated by Lola Yang 11 months ago

  • Category changed from Middleware to GUI (new)
  • Status changed from Screened to In Progress
  • Assignee changed from Lola Yang to Erin Clark

#9 Updated by Erin Clark 11 months ago

  • Status changed from In Progress to Ready for Testing
  • Assignee changed from Erin Clark to Lola Yang

#10 Updated by Dru Lavigne 11 months ago

  • Subject changed from Extent size misreported for iSCSI zvol sharing to Fix validation of extent size in new UI
  • Needs Doc changed from Yes to No
  • Needs Merging changed from Yes to No

#11 Updated by Dru Lavigne 11 months ago

  • Has duplicate Bug #36663: Cannot Save new iSCSI Extent added

#12 Updated by Timothy Moore II 10 months ago

  • Status changed from Ready for Testing to Passed Testing
  • Needs QA changed from Yes to No

Followed steps outlined in previous comments up to adding the extent.

In the new UI, add new iSCSI extent. Verify zvol is a valid extent device option. Change “Extent type” to “File”, set “Extent size” to “50”, then switch “Extent type” back to "Device", add the zvol, and click “Save”. Create new Associated Target. Services/iSCSI: set “Auto-start” and click Power button.

Go to Shell and enter `cat /etc/ctl.conf`. device-id output reads ok, with no erroneous “size 50” reported.

#13 Updated by Timothy Moore II 10 months ago

Tested with FreeNAS Mini manually updated to FreeNAS-11.2-MASTER-201807110935.

#14 Updated by Dru Lavigne 10 months ago

  • Status changed from Passed Testing to Done

Also available in: Atom PDF