Project

General

Profile

Bug #42641

Only show one interface for the plugin IP of a non-vnet iocage jail

Added by John Hixson over 1 year ago. Updated over 1 year ago.

Status:
Done
Priority:
No priority
Assignee:
Brandon Schneider
Category:
Middleware
Target version:
Seen in:
Severity:
Low
Reason for Closing:
Reason for Blocked:
Needs QA:
Yes
Needs Doc:
No
Needs Merging:
No
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:
ChangeLog Required:
No

Description

I am currently creating a jail like so:

iocage fetch \
    -P \
    --name foo \
    ip4_addr="igb0|10.231.4.223,lo0|127.0.0.1" \
    defaultrouter="10.231.0.1" \
    resolver="nameserver 8.8.8.8" 

My ui.json looks like this:

{
    "adminportal": "http://%%IP%%:8888/foo/DSOP.jnlp" 
}

In my post-install.sh script, the variable IOCAGE_PLUGIN_IP gets the value of "10.231.4.223,lo0"

The /etc/hosts file has this in it:

10.231.4.223,lo0|127.0.0.1    foo

And when the plugin finishes installing, this is the what is displayed for the admin portal:

Admin Portal:
http://10.231.4.223,lo0:8888/foo/DSOP.jnlp

So, clearly this is wrong. Please fix.


Related issues

Related to FreeNAS - Bug #41308: vnet0 option only valid if vnet checked for jail in new UIDone

History

#1 Updated by William Grzybowski over 1 year ago

  • Assignee changed from William Grzybowski to Brandon Schneider
  • Target version changed from 11.2-BETA3 to 11.2-RC1

Does this need to be fixed for BETA3 or can it wait next release?

If there is urgency please let us know so we can get it sorted out ASAP since freeze is supposed to be today.

Thanks.

#2 Updated by Brandon Schneider over 1 year ago

  • Status changed from Unscreened to In Progress
  • Severity changed from Med High to Low

PR: https://github.com/freenas/iocage/pull/23
DESC: Cosmetic issue with IP portal and multiple interfaces without vnet.
RISK: Low
ACCEPTANCE: Use the same command, notice it's gone.

#3 Updated by Dru Lavigne over 1 year ago

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

#4 Updated by Brandon Schneider over 1 year ago

  • Status changed from In Progress to Ready for Testing
  • Needs Merging changed from Yes to No

#5 Updated by Dru Lavigne over 1 year ago

  • Subject changed from When creating a non-vnet iocage jail, parsing is not handled correctly to Only show one interface for the plugin IP of a non-vnet iocage jail
  • Needs Doc changed from Yes to No

#6 Updated by Dru Lavigne over 1 year ago

  • Related to Bug #41308: vnet0 option only valid if vnet checked for jail in new UI added

#7 Updated by Bonnie Follweiler over 1 year ago

  • Status changed from Ready for Testing to Done

Also available in: Atom PDF