Project

General

Profile

Bug #42899

Fix "list index out of range" error when using Advanced Jail Creation in the New UI

Added by Michael Reynolds over 1 year ago. Updated over 1 year ago.

Status:
Done
Priority:
No priority
Assignee:
Erin Clark
Category:
GUI (new)
Target version:
Severity:
Medium
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

Creating a jail using the Basic Wizard can cause all jails to disappear.
Navigating away and back they re-appear.

I initially thought using a hyphen in the Jail Name was the issue.
I was able to cause the disappearing jail issue to happen without a hyphen in the name as well.

I am unable to create a new jail using the Advanced Jail Wizard. (With or without a hyphen.)

Clicking Save gives the Please Wait spinner, the Jail isn't created and "list index out of range" shows up in the top left corner.

See Jail_list-index-out-of-range_2018-08-24.mkv


Related issues

Copied to FreeNAS - Bug #43119: Fix potential race condition when creating jailsDone

Associated revisions

Revision 4f9a39b3 (diff)
Added by Erin Clark over 1 year ago

Fix creating jails with no ip address Ticket: #42899

History

#1 Updated by Michael Reynolds over 1 year ago

  • Category changed from GUI (new) to Middleware
  • Assignee changed from Erin Clark to William Grzybowski

#3 Updated by Michael Reynolds over 1 year ago

  • File debug.tgz added
  • Private changed from No to Yes

#5 Updated by William Grzybowski over 1 year ago

  • Assignee changed from William Grzybowski to Waqar Ahmed
  • Target version changed from Backlog to 11.2-RC1
  • Severity changed from New to Medium

Waqar, can you investigate this, please?

#6 Updated by Waqar Ahmed over 1 year ago

  • Status changed from Unscreened to In Progress

#7 Updated by Waqar Ahmed over 1 year ago

  • Status changed from In Progress to Blocked
  • Reason for Blocked set to Need additional information from Author

Hello Mike. I am able to create jails on 26th August Nightlies. Could you kindly check and confirm this on your end ? The message appearing ( list index ) Was a bug and it was cleared last week. Kindly let me know if the issue still persists. Thank you

#8 Updated by Michael Reynolds over 1 year ago

25934
25941

I went to Jails -> Add Jail -> Advanced Jail Creation

Gave the new jail a name and release. Set the DHCP Autoconfigure IPv4 option which also set VNET.
Didn't set any other options and hit Save

Now instead of a "list index out of range" error I get the following

[EINVAL] options.props.ip6_addr: valid IP address [EINVAL] options.props.ip4_addr: valid IP address

See the 2 new screenshots I attached that show the Basic Properties and Network Properties sections.

This is using FreeNAS-11.2-MASTER-201808270839 (Build Date: Aug 27, 2018 11:51)

#9 Updated by Waqar Ahmed over 1 year ago

  • Category changed from Middleware to GUI (new)
  • Status changed from Blocked to Unscreened
  • Assignee changed from Waqar Ahmed to Erin Clark
  • Reason for Blocked deleted (Need additional information from Author)

UI is sending the wrong values for ip field when jail is created via advanced mode as outlined in Mike's screenshots.

{"id":"db388fa1-7f48-40b2-8eb6-00701de5716f","msg":"method","method":"jail.create","params":[{"uuid":"jail2","release":"11.2-RELEASE","props":["dhcp=on","vnet=on","bpf=yes","ip6_addr=none","defaultrouter6=none","notes=none","boot=off","devfs_ruleset=4","exec_start=/bin/sh /etc/rc","exec_stop=/bin/sh /etc/rc.shutdown","exec_prestart=/usr/bin/true","exec_poststart=/usr/bin/true","exec_prestop=/usr/bin/true","exec_poststop=/usr/bin/true","exec_clean=1","exec_timeout=60","stop_timeout=30","exec_jail_user=root","exec_system_jail_user=0","exec_system_user=root","mount_devfs=1","mount_fdescfs=1","enforce_statfs=2","children_max=0","login_flags=-f root","securelevel=2","sysvmsg=new","sysvsem=new","sysvshm=new","allow_set_hostname=1","allow_sysvipc=0","allow_raw_sockets=0","allow_chflags=0","allow_mount=0","allow_mount_devfs=0","allow_mount_nullfs=0","allow_mount_procfs=0","allow_mount_tmpfs=0","allow_mount_zfs=0","allow_quotas=0","allow_socket_af=0","interfaces=vnet0:bridge0","host_domainname=none","exec_fib=0","ip4_saddrsel=1","ip4=new","ip6_saddrsel=1","ip6=new","resolver=/etc/resolv.conf","mac_prefix=02ff60","vnet0_mac=none","vnet1_mac=none","vnet2_mac=none","vnet3_mac=none","owner=root","priority=99","hostid=d51fa0f5-a99f-11e8-9d68-61a83b059c52","comment=none","mount_procfs=0","mount_linprocfs=0","host_time=yes","jail_zfs=off","jail_zfs_mountpoint=none","ip4_addr=undefined|undefined/undefined"]}]}

"ip4_addr=undefined|undefined/undefined" 

When middleware tries to validate this address, it fails to do so as it is not a valid ip format. Kindly let me know if there are any issues with this. Thank you

#10 Updated by Erin Clark over 1 year ago

  • Copied to Bug #43119: Fix potential race condition when creating jails added

#11 Updated by Erin Clark over 1 year ago

  • Status changed from Unscreened to In Progress

The IP address bug is definitely a UI error which I will fix with this ticket. The jails disappearing after creation seems to be a middleware thing which I will discuss further in a ticket I have copied to give back to the middleware team with, see:

https://redmine.ixsystems.com/issues/43119

For the UI fix see:

https://github.com/freenas/webui/pull/1201

#12 Updated by Dru Lavigne over 1 year ago

  • Target version changed from 11.2-RC1 to 11.2-BETA3

#13 Updated by Erin Clark over 1 year ago

  • Status changed from In Progress to Ready for Testing

#14 Updated by Dru Lavigne over 1 year ago

  • File deleted (debug.tgz)

#15 Updated by Dru Lavigne over 1 year ago

  • Subject changed from cannot create new jail (list index out of range) in the New UI to Fix "list index out of range" error when using Advanced Jail Creation in the New UI
  • Needs Merging changed from Yes to No

#16 Updated by Dru Lavigne over 1 year ago

  • Private changed from Yes to No

#17 Updated by Michael Reynolds over 1 year ago

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

This bug is resolved.

Created many jails using the Advanced Creation Wizard and did not get an error or traceback

#18 Updated by Dru Lavigne over 1 year ago

  • Status changed from Passed Testing to Done

Also available in: Atom PDF