Project

General

Profile

Bug #41268

Decomplicate things and just use pool/iocage as mount

Added by George Valenzuela about 2 years ago. Updated almost 2 years ago.

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

When I create a jail either through the UI or using iocage in a shell, when I restart the system, the jail no longer shows up in the UI list. When I try to run it from the shell, I get an error saying that the configuration is missing and the jail needs to be destroyed. Even snapshots are missing.

Selection_002.png (6.91 KB) Selection_002.png Error when starting jail George Valenzuela, 08/14/2018 01:34 PM
Selection_003.png (5.54 KB) Selection_003.png Empty jail directory after restart George Valenzuela, 08/14/2018 01:34 PM
Selection_005.png (17 KB) Selection_005.png Errors when destroying jail George Valenzuela, 08/14/2018 01:34 PM
Screenshot-2018-10-3 FreeNAS - 10 231 4 231(6).png (27.5 KB) Screenshot-2018-10-3 FreeNAS - 10 231 4 231(6).png Jeff Ervin, 10/03/2018 07:08 AM
Screenshot-2018-10-3 FreeNAS - 10 231 4 231(5).png (30.7 KB) Screenshot-2018-10-3 FreeNAS - 10 231 4 231(5).png Jeff Ervin, 10/03/2018 07:08 AM
24360
24366
24372
33252
33261

History

#1 Updated by George Valenzuela about 2 years ago

  • File debug-gCloud02-20180810233020.txz added
  • Private changed from No to Yes

#2 Updated by George Valenzuela about 2 years ago

UPDATE: although jail snapshots are missing, it appears that if you run iocage export, you can import the archive when the jail disappears.

#3 Updated by Dru Lavigne about 2 years ago

  • Category changed from OS to Middleware
  • Assignee changed from Release Council to William Grzybowski

#5 Updated by William Grzybowski about 2 years ago

  • Status changed from Unscreened to Blocked
  • Reason for Blocked set to Waiting for feedback

Can you share the exact error message, please?

#6 Updated by George Valenzuela about 2 years ago

24360
24366
24372

I've added three images that show the errors when trying to start the jail after a restart and when destroying it.

#7 Updated by Dru Lavigne about 2 years ago

  • Status changed from Blocked to Unscreened

#8 Updated by William Grzybowski about 2 years ago

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

Brandon thinks this might have been fixed for upcoming BETA3, we will investigate for RC1. If it keeps happening in BETA3 let us know, please.

#9 Updated by Brandon Schneider about 2 years ago

  • Status changed from Unscreened to Blocked

#10 Updated by George Valenzuela about 2 years ago

I have just updated to Beta3 and am still seeing the same thing. Any imported jail or newly created jail disappears after a system restart.

#11 Updated by William Grzybowski about 2 years ago

  • Status changed from Blocked to Unscreened

George Valenzuela wrote:

I have just updated to Beta3 and am still seeing the same thing. Any imported jail or newly created jail disappears after a system restart.

Please add a save debug from BETA3.

#12 Updated by Brandon Schneider about 2 years ago

  • Status changed from Unscreened to Blocked
  • Reason for Blocked changed from Waiting for feedback to Need additional information from Author

#13 Updated by George Valenzuela about 2 years ago

  • File debug.tgz added
  • Seen in changed from 11.2-BETA2 to 11.2-BETA3

I have captured the debug log in the new Beta 3 environment, as requested.
Please let me know if you require any further information.

#14 Updated by Dru Lavigne about 2 years ago

  • Status changed from Blocked to Unscreened
  • Reason for Blocked deleted (Need additional information from Author)

#15 Updated by Brandon Schneider about 2 years ago

  • Category changed from Middleware to GUI (new)
  • Assignee changed from Brandon Schneider to Lola Yang

From what I can tell, you have two pools that have had iocage usage. gHome and rumford. My guess is the UI is automatically activating the first zpool it sees and that happens to be gHome until you manually solve it. Lola: Can you investigate please?

#16 Updated by George Valenzuela about 2 years ago

Brandon Schneider wrote:

From what I can tell, you have two pools that have had iocage usage. gHome and rumford. My guess is the UI is automatically activating the first zpool it sees and that happens to be gHome until you manually solve it. Lola: Can you investigate please?

Is there some way to delete or disable one using iocage commands? I can test to see if that gets around the problem. I'd also be interested in knowing if any of the others who reported seeing the same behaviour also have two zpools with iocage usage?

Thanks!

#17 Updated by Brandon Schneider almost 2 years ago

  • Category changed from GUI (new) to Middleware
  • Status changed from Unscreened to In Progress
  • Assignee changed from Lola Yang to Brandon Schneider

Result from investigation with Lola was that creating and activating the second pool is incorrectly shadowing the first one's mountpoint. I will investigate on my end, and then we will see where the work is needed.

#18 Updated by Brandon Schneider almost 2 years ago

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

George: You can run these commands in the interim to solved your issue

zfs inherit -r mountpoint gHome/iocage rumford/iocage

You can verify with zfs list that the two no longer are mounted on /mnt/iocage anymore. If you see any children datasets of iocage mounted at /mnt/iocage/<DATASET> then you will have to run that command for each of those as well.

PR: https://github.com/freenas/iocage/pull/50

#19 Updated by Dru Lavigne almost 2 years ago

  • File deleted (debug-gCloud02-20180810233020.txz)

#20 Updated by Dru Lavigne almost 2 years ago

  • File deleted (debug.tgz)

#21 Updated by Dru Lavigne almost 2 years ago

  • Subject changed from Any jail created through shell or UI disappears and cannot be restarted after a system restart. to Decomplicate things and just use pool/iocage as mount
  • Private changed from Yes to No

#23 Updated by Jeff Ervin almost 2 years ago

33252
33261

Test Passed FreeNAS-11.2-MASTER-201810020854

#24 Updated by George Valenzuela almost 2 years ago

Brandon Schneider wrote:

George: You can run these commands in the interim to solved your issue
[...]

You can verify with zfs list that the two no longer are mounted on /mnt/iocage anymore. If you see any children datasets of iocage mounted at /mnt/iocage/<DATASET> then you will have to run that command for each of those as well.

PR: https://github.com/freenas/iocage/pull/50

Is this something that should be run in the FreeNAS console? Can I use the shell on a running system? I get errors saying that the devices are busy.

#25 Updated by Dru Lavigne almost 2 years ago

  • Status changed from Passed Testing to Done

Also available in: Atom PDF