11.3 U5 autosnap.py - Unverified HTTPS request is being made, expired snapshots - live

lexxai

Dabbler
Joined
Nov 9, 2016
Messages
33
11.3 U5
I have some question why not removed expired snapshots. And try run task that should be stated by cron. And have warning.

/usr/local/bin/python /usr/local/www/freenasUI/tools/autosnap.py
/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings InsecureRequestWarning,

resolved Waringd by:
env PYTHONWARNINGS="ignore:Unverified HTTPS request" /usr/local/bin/python /usr/local/www/freenasUI/tools/autosnap.py

Q: It will prevent remove expired snaphots ?
On image snapshot must expire after 2week

P.S. I have one HOLD other snapshot on all datasets that created when I replicate to external drive.
 

Attachments

  • Знімок екрану з 2020-10-07 04-30-51.png
    Знімок екрану з 2020-10-07 04-30-51.png
    54.3 KB · Views: 292
  • Знімок екрану з 2020-10-07 04-32-47.png
    Знімок екрану з 2020-10-07 04-32-47.png
    41.3 KB · Views: 298
Last edited:

lexxai

Dabbler
Joined
Nov 9, 2016
Messages
33
Some WIN:
I removed all previously created Periodic Snapshot Tasks on previous versions FreeNAS.
I create on FreeNAS 11.3 U5 new Periodic Snapshot Tasks - and expirations work.
 

rogerh

Guru
Joined
Apr 18, 2014
Messages
1,111
Some WIN:
I removed all previously created Periodic Snapshot Tasks on previous versions FreeNAS.
I create on FreeNAS 11.3 U5 new Periodic Snapshot Tasks - and expirations work.

But does it remove old snapshots created by the previous snapshot tasks as they expire? Or didn't you have any?
 

lexxai

Dabbler
Joined
Nov 9, 2016
Messages
33
But does it remove old snapshots created by the previous snapshot tasks as they expire? Or didn't you have any?
Snapshot tasks list was cleared totally.
But physical zfs snapshots leaved untouched.

For one dataset 'emailstore' I clear all previously created snapshots manually.
For now I test and create snapshot tasks for one dataset, with differ expiration for snapshot fired every 15mins, hourly, daily, monthly and see what result be.

on screenshot snap_ext10tb-01_20201008060022 is HOLD snapshot that created by my script that do snapshots to offline HDD.
 

Attachments

  • Знімок екрану з 2020-10-09 02-28-32.png
    Знімок екрану з 2020-10-09 02-28-32.png
    62.1 KB · Views: 275
  • Знімок екрану з 2020-10-09 02-28-03.png
    Знімок екрану з 2020-10-09 02-28-03.png
    45.1 KB · Views: 279
Top