Project

General

Profile

Bug #72627

Create a snapshot when updating an iocage jail

Added by Bug Clerk almost 3 years ago. Updated over 2 years ago.

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

jail_update.png (9.28 KB) jail_update.png Bonnie Follweiler, 03/07/2019 02:00 PM
testjail_dataset.png (59.6 KB) testjail_dataset.png Bonnie Follweiler, 03/07/2019 02:01 PM
59880
59889

Related issues

Copied from FreeNAS - Bug #72619: Create a snapshot when updating an iocage jailDone

History

#1 Updated by Bug Clerk almost 3 years ago

  • Copied from Bug #72619: Create a snapshot when updating an iocage jail added

#2 Updated by Bug Clerk almost 3 years ago

  • Status changed from Unscreened to In Progress

#3 Updated by Bug Clerk almost 3 years ago

  • Status changed from In Progress to Ready for Testing

#4 Updated by Bug Clerk almost 3 years ago

  • Target version changed from Master - FreeNAS Nightlies to 11.2-U3

#5 Updated by Dru Lavigne almost 3 years ago

  • Subject changed from Create a snapshot for iocage jails being updated to Create a snapshot when updating an iocage jail
  • Needs Merging changed from Yes to No

Test case =========
Create a jail, update the jail, and do zfs list -t snap and verify a snapshot exists on the jail.

#6 Updated by Dru Lavigne almost 3 years ago

  • Needs Doc changed from Yes to No

#8 Updated by Bonnie Follweiler over 2 years ago

59880
59889

The zfs list -t snap after an upsdate gets back
no datasets available
In mnt/tank/iocage/jails/there is /testjail

#9 Updated by Brandon Schneider over 2 years ago

  • Status changed from Failed Testing to Done
  • Needs QA changed from Yes to No

You're doing it in the jail, the snapshots can't exist there.

This passes testing, here's the paste:

root@freenas[~]# iocage create -n updatejail -r 11.2-RELEASE
updatejail successfully created!
root@freenas[~]# zfs list -t snap | grep updatejail
tank/iocage/releases/11.2-RELEASE/root@updatejail                144K      -  1.01G  -
root@freenas[~]# iocage update updatejail
Snapshot: tank/iocage/jails/updatejail@ioc_update_11.2-RELEASE-p9 created.

* Updating updatejail to the latest patch level... 
Looking up update.FreeBSD.org mirrors... 3 mirrors found.
Fetching metadata signature for 11.2-RELEASE from update1.FreeBSD.org... done.
Fetching metadata index... done.
Inspecting system... done.
Preparing to download files... done.

No updates needed to update system to 11.2-RELEASE-p9.
No updates are available to install.
Run '/tmp/tmpmgub2k4m fetch' first.

updatejail has been updated successfully.
root@freenas[~]# zfs list -t snap | grep updatejail
tank/iocage/jails/updatejail@ioc_update_11.2-RELEASE-p9           60K      -    92K  -
tank/iocage/jails/updatejail/root@ioc_update_11.2-RELEASE-p9     192K      -  1.01G  -
tank/iocage/releases/11.2-RELEASE/root@updatejail                144K      -  1.01G  -

Also available in: Atom PDF