Project

General

Profile

Bug #58794

Jail - /etc/hosts not generated correctly

Added by Brad Ackerman almost 3 years ago. Updated almost 3 years ago.

Status:
Done
Priority:
No priority
Assignee:
Brandon Schneider
Category:
Middleware
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

Creating a jail named "unifi.example.com" w/ IP x.y.z.w/24 produces the following /etc/hosts (comments removed):

::1 localhost localhost.my.domain
127.0.0.1 localhost localhost.my.domain example
x.y.z.w/24 unifi.example.com example

The CIDR is included and the hostname's short form is incorrectly calculated.

/etc/rc.conf contains the following hostname configuration:

host_hostname="unifi.example.com"

which AFAIK shouldn't even do anything - I don't see where /etc/rc.d/hostname would even see that variable.


Related issues

Copied to FreeNAS - Bug #60480: Fix hostname in iocage rc.conf and /etc/hosts generationDone

History

#1 Updated by Brad Ackerman almost 3 years ago

The jail as described in this issue was created using the new web UI.

#2 Updated by Dru Lavigne almost 3 years ago

  • Private changed from No to Yes
  • Reason for Blocked set to Need additional information from Author

Brad: please attach a debug (System -> Advanced -> Save debug) to this ticket.

#3 Updated by Brad Ackerman almost 3 years ago

Attached as requested.

#4 Updated by Brad Ackerman almost 3 years ago

  • File debug-freenas-20181121171845.tgz added

I don't see an attachment; trying again

#5 Updated by Dru Lavigne almost 3 years ago

  • Category changed from Services to Middleware
  • Assignee changed from Release Council to William Grzybowski
  • Reason for Blocked deleted (Need additional information from Author)

#6 Updated by William Grzybowski almost 3 years ago

  • Assignee changed from William Grzybowski to Brandon Schneider
  • Target version changed from Backlog to 11.2-U2

#7 Updated by Bug Clerk almost 3 years ago

  • Status changed from Unscreened to In Progress

#8 Updated by Bug Clerk almost 3 years ago

  • Status changed from In Progress to Ready for Testing

#9 Updated by Bug Clerk almost 3 years ago

  • Target version changed from 11.2-U2 to 11.3

#10 Updated by Bug Clerk almost 3 years ago

  • Copied to Bug #60480: Fix hostname in iocage rc.conf and /etc/hosts generation added

#11 Updated by Dru Lavigne almost 3 years ago

  • File deleted (debug-freenas-20181121171845.tgz)

#12 Updated by Dru Lavigne almost 3 years ago

  • Status changed from Ready for Testing to Done
  • Target version changed from 11.3 to Master - FreeNAS Nightlies
  • Private changed from Yes to No
  • Needs QA changed from Yes to No
  • Needs Doc changed from Yes to No
  • Needs Merging changed from Yes to No

Also available in: Atom PDF