Project

General

Profile

Bug #6998

Enabling DHCP for existing jails created before upgrade to 9.3 does not work.

Added by Jesse Knight almost 6 years ago. Updated about 4 years ago.

Status:
Resolved
Priority:
Nice to have
Assignee:
John Hixson
Category:
OS
Target version:
Seen in:
Severity:
New
Reason for Closing:
Reason for Blocked:
Needs QA:
Yes
Needs Doc:
Yes
Needs Merging:
Yes
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:
ChangeLog Required:
No

Description

After upgrading to 9.3, I tried to enable some existing jails to get ips by dhcp, but it did not work. I tried stopping the plugins, stopping the jail, then editing the jail config to use dhcp. On restart, the jails did not get an ip via dhcp.

NEW jails/plugins installed have no problems working with dhcp.


Related issues

Related to FreeNAS - Bug #7638: Plugins don't show statusClosed: Behaves correctly2015-01-23

Associated revisions

Revision 28819396 (diff)
Added by John Hixson over 5 years ago

When turning DHCP on in a single jail, set the IP to DHCP Ticket: #6998

Revision 3b0ea6e6 (diff)
Added by John Hixson over 5 years ago

When turning DHCP on in a single jail, set the IP to DHCP Ticket: #6998 (cherry picked from commit 2881939612fd8b8a19534293f77cf07ba97a140c)

History

#1 Updated by Jordan Hubbard almost 6 years ago

  • Category set to 1
  • Assignee set to John Hixson
  • Target version set to Unspecified

#2 Updated by John Hixson almost 6 years ago

  • Status changed from Unscreened to Screened

#3 Updated by Jesse Knight almost 6 years ago

I noticed that when the dhcp setting is enabled on the config tab, and any existing non dhcp jail is edited, for something simple like changing autostart, the existing ip settings and mac id get mangled.

#4 Updated by John Hixson almost 6 years ago

in your jail root directory, you should have a .jailname.meta directory for each jail. Can you paste the contents of the 'ipv4' and 'ipv6' files here? Can you also do a 'warden list -v' from the CLI and paste the output here, describing which of the jails have issues and which don't ?

#5 Updated by Greg DePasse almost 6 years ago

This can be reproduced in a fresh 9.3 system:
1. in the Jails configuration, uncheck the IPv4 DHCP option.
2. I installed the crashplan plugin and it somehow got configured with a 172.16.1.2 address (not in my DHCP scope, nor part of the jail configuration, 172.16.1.1 is the default rote of my FreeNas).
3. Enable the jail IPv4 DHCP option
4. Jail remains at 172.16.1.2.
5. manually delete the Jail IP config, restart plugin.
6. Plugin IP now says "DHCP" and plugin can't start
7. delete plugin and create a new plugin, it now comes up with a DHCP address in my scope.

#6 Updated by John Hixson almost 6 years ago

Greg DePasse wrote:

This can be reproduced in a fresh 9.3 system:
1. in the Jails configuration, uncheck the IPv4 DHCP option.
2. I installed the crashplan plugin and it somehow got configured with a 172.16.1.2 address (not in my DHCP scope, nor part of the jail configuration, 172.16.1.1 is the default rote of my FreeNas).
3. Enable the jail IPv4 DHCP option
4. Jail remains at 172.16.1.2.
5. manually delete the Jail IP config, restart plugin.
6. Plugin IP now says "DHCP" and plugin can't start
7. delete plugin and create a new plugin, it now comes up with a DHCP address in my scope.

This is a great reproduction case. I'm able to reproduce the problem thanks to your steps ;-) Working on a fix.

#7 Updated by Greg DePasse almost 6 years ago

Glad to help! Thank for your help. :-)

#8 Updated by John Hixson over 5 years ago

  • Status changed from Screened to 15

Can you guys try out 2881939612fd8b8a19534293f77cf07ba97a140c and verify it works for you?

#9 Updated by Suraj Ravichandran over 5 years ago

  • Related to Bug #7638: Plugins don't show status added

#10 Updated by John Hixson over 5 years ago

If I can get confirmation that my commit fixes this, I can get the fix rolled into an update.

#11 Updated by John Hixson over 5 years ago

  • Status changed from 15 to Ready For Release

I can't get any feedback and I'm certain this fixes the issue, marking ready for release.

#12 Updated by Jordan Hubbard over 5 years ago

  • Status changed from Ready For Release to Resolved

#13 Updated by Thomas Larsen over 5 years ago

John Hixson wrote:

If I can get confirmation that my commit fixes this, I can get the fix rolled into an update.

Has this hit the Stable-train yet? I converted my jails to DHCP this morning by changing the jail configuration to use DHCP.

The jails were shown as using DHCP, but wouldn't actually use DHCP unless you manually edited every jail, reticked the DHCP option, clicking save and then rebooted the jail.

#14 Avatar?id=14398&size=24x24 Updated by Kris Moore about 4 years ago

  • Target version changed from Unspecified to N/A

Also available in: Atom PDF