2019-09-29 19:04:53 +02:00
.. include :: global.rst.inc
2018-10-11 17:46:26 +02:00
.. |break_config| replace :: **[CONFIG]**
2018-02-17 20:48:31 +01:00
.. |break| replace :: **[BREAK]**
2017-11-12 14:12:57 +01:00
.. |bugfix| replace :: [BUG]
2018-04-01 14:53:44 +02:00
.. |docs| replace :: [DOCS]
2018-02-17 20:48:31 +01:00
.. |feature| replace :: [FEATURE]
2019-03-19 17:43:28 +01:00
.. |mig| replace :: **[MIGRATION]**
2017-11-12 14:12:57 +01:00
2018-10-11 17:46:26 +02:00
.. _changelog:
2017-11-12 14:12:57 +01:00
Changelog
=========
2018-10-11 17:46:26 +02:00
The changelog summarizes bugfixes that are deemed relevant for users and package maintainers.
2017-11-12 14:12:57 +01:00
Developers should consult the git commit log or GitHub issue tracker.
2018-10-13 16:26:23 +02:00
We use the following annotations for classifying changes:
2018-04-14 11:24:47 +02:00
2018-10-11 17:46:26 +02:00
* |break_config| Change that breaks the config.
As a package maintainer, make sure to warn your users about config breakage somehow.
* |break| Change that breaks interoperability or persistent state representation with previous releases.
As a package maintainer, make sure to warn your users about config breakage somehow.
Note that even updating the package on both sides might not be sufficient, e.g. if persistent state needs to be migrated to a new format.
2019-03-19 17:43:28 +01:00
* |mig| Migration that must be run by the user.
2018-10-11 17:46:26 +02:00
* |feature| Change that introduces new functionality.
* |bugfix| Change that fixes a bug, no regressions or incompatibilities expected.
* |docs| Change to the documentation.
2018-04-14 11:24:47 +02:00
2019-11-20 20:16:41 +01:00
0.2.1
-----
* |feature| Illumos (and Solaris) compatibility and binary builds (thanks, `MNX.io <https://mnx.io> `_ )
* |feature| 32bit binaries for Linux and FreeBSD (untested, though)
* |bugfix| better error messages in `` ssh+stdinserver `` transport
* |bugfix| systemd + `` ssh+stdinserver `` : automatically create `` /var/run/zrepl/stdinserver ``
* |bugfix| crash if Prometheus listening socket cannot be opened
* [MAINTAINER NOTICE] `` Makefile `` refactoring, see :commit: `080f2c0`
2019-09-28 17:50:07 +02:00
0.2
---
2019-06-23 12:10:52 +02:00
2019-07-26 21:12:21 +02:00
* |feature| :ref: `Pre- and Post-Snapshot Hooks <job-snapshotting-hooks>`
with built-in support for MySQL and Postgres checkpointing
2019-09-28 17:50:07 +02:00
as well as custom scripts (thanks, `@overhacked <https://github.com/overhacked> `_ !)
* |feature| Use `` zfs destroy pool/fs@snap1,snap2,... `` CLI feature if available
* |feature| Linux ARM64 Docker build support & binary builds
* |feature| `` zrepl status `` now displays snapshotting reports
* |feature| `` zrepl status --job <JOBNAME> `` filter flag
* |bugfix| i386 build
* |bugfix| early validation of host:port tuples in config
* |bugfix| `` zrepl status `` now supports `` TERM=screen `` (tmux on FreeBSD / FreeNAS)
* |bugfix| ignore *connection reset by peer* errors when shutting down connections
* |bugfix| correct error messages when receive-side pool or `` root_fs `` dataset is not imported
* |bugfix| fail fast for misconfigured local transport
* |bugfix| race condition in replication report generation would crash the daemon when running `` zrepl status ``
* |bugfix| rpc goroutine leak in `` push `` mode if zfs recv fails on the `` sink `` side
* [MAINTAINER NOTICE] Go modules for dependency management both inside and outside of GOPATH
(`` lazy.sh `` and `` Makefile `` force `` GO111MODULE=on `` )
2019-09-29 18:44:59 +02:00
* [MAINTAINER NOTICE] `` make platformtest `` target to check zrepl's ZFS abstractions (screen scraping, etc.).
These tests only work on a system with ZFS installed, and must be run as root because they create a file-backed pool for each test case.
The pool name `` zreplplatformtest `` is reserved for this use case.
Only run `` make platformtest `` on test systems, e.g. a FreeBSD VM image.
2019-06-23 12:10:52 +02:00
2019-09-29 19:04:53 +02:00
.. NOTE ::
| zrepl is a spare-time project primarily developed by `Christian Schwarz <https://cschwarz.com> `_ .
| You can support maintenance and feature development through one of the following services:
| |Donate via Patreon| |Donate via Liberapay| |Donate via PayPal|
2019-10-03 11:57:19 +02:00
| Note that PayPal processing fees are relatively high for small donations.
| For SEPA wire transfer and **commerical support** , please `contact Christian directly <https://cschwarz.com> `_ .
2019-09-29 19:04:53 +02:00
2019-04-06 12:36:06 +02:00
0.1.1
-----
* |bugfix| :issue: `162` :commit: `d6304f4` : fix I/O timeout errors on variable receive rate
* A significant reduction or sudden stall of the receive rate (e.g. recv pool has other I/O to do)
would cause a `` writev I/O timeout `` error after approximately ten seconds.
2018-10-13 17:35:38 +02:00
0.1
---
2018-02-17 20:48:31 +01:00
2018-10-11 17:46:26 +02:00
This release is a milestone for zrepl and required significant refactoring if not rewrites of substantial parts of the application.
It breaks both configuration and transport format, and thus requires manual intervention and updates on both sides of a replication setup.
2018-02-17 20:48:31 +01:00
2018-10-13 18:29:40 +02:00
.. DANGER ::
The changes in the pruning system for this release require you to explicitly define **keep rules** :
for any snapshot that you want to keep, at least one rule must match.
This is different from previous releases where pruning only affected snapshots with the configured snapshotting prefix.
Make sure that snapshots to be kept or ignored by zrepl are covered, e.g. by using the `` regex `` keep rule.
:ref: `Learn more in the config docs... <prune>`
2018-10-13 16:26:23 +02:00
Notes to Package Maintainers
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2018-02-17 20:48:31 +01:00
2019-03-30 18:50:51 +01:00
* Notify users about config changes and migrations (see changes attributed with |break| and |mig| below)
2018-10-11 17:46:26 +02:00
* If the daemon crashes, the stack trace produced by the Go runtime and possibly diagnostic output of zrepl will be written to stderr.
This behavior is independent from the `` stdout `` outlet type.
2018-10-22 11:27:00 +02:00
Please make sure the stderr output of the daemon is captured somewhere.
2018-10-11 17:46:26 +02:00
To conserve precious stack traces, make sure that multiple service restarts do not directly discard previous stderr output.
* Make it obvious for users how to set the `` GOTRACEBACK `` environment variable to `` GOTRACEBACK=crash `` .
This functionality will cause SIGABRT on panics and can be used to capture a coredump of the panicking process.
To that extend, make sure that your package build system, your OS's coredump collection and the Go delve debugger work together.
Use your build system to package the Go program in `this tutorial on Go coredumps and the delve debugger <https://rakyll.org/coredumps/> `_ , and make sure the symbol resolution etc. work on coredumps captured from the binary produced by your build system. (Special focus on symbol stripping, etc.)
2019-03-30 18:50:51 +01:00
* Consider using the `` zrepl configcheck `` subcommand in startup scripts to abort a restart that would fail due to an invalid config.
2018-03-04 17:19:41 +01:00
2018-10-11 17:46:26 +02:00
Changes
~~~~~~~
2018-03-04 17:19:41 +01:00
2019-03-19 17:43:28 +01:00
* |break| |mig| Placeholder property representation changed
* The :ref: `placeholder property <replication-placeholder-property>` now uses `` on|off `` as values
instead of hashes of the dataset path. This permits renames of the sink filesystem without
updating all placeholder properties.
* Relevant for 0.0.X-0.1-rc* to 0.1 migrations
* Make sure your config is valid with `` zrepl configcheck ``
* Run `` zrepl migrate 0.0.X:0.1:placeholder ``
2018-10-11 17:46:26 +02:00
* |feature| :issue: `55` : Push replication (see :ref: `push job <job-push>` and :ref: `sink job <job-sink>` )
* |feature| :ref: `TCP Transport <transport-tcp>`
* |feature| :ref: `TCP + TLS client authentication transport <transport-tcp+tlsclientauth>`
2019-03-18 12:30:19 +01:00
* |feature| :issue: `111` : RPC protocol rewrite
2018-02-18 13:35:40 +01:00
2019-03-18 12:30:19 +01:00
* |break| Protocol breakage; Update and restart of all zrepl daemons is required.
* Use `gRPC <https://grpc.io/> `_ for control RPCs and a custom protocol for bulk data transfer.
* Automatic retries for network-temporary errors
2018-02-18 13:35:40 +01:00
2019-03-18 12:30:19 +01:00
* Limited to errors during replication for this release.
Addresses the common problem of ISP-forced reconnection at night, but will become
way more useful with resumable send & recv support.
Pruning errors are handled per FS, i.e., a prune RPC is attempted at least once per FS.
* |feature| Proper timeout handling for the :ref: `SSH transport <transport-ssh+stdinserver>`
* |break| Requires Go 1.11 or later.
* |break| |break_config|: mappings are no longer supported
* Receiving sides (`` pull `` and `` sink `` job) specify a single `` root_fs `` .
Received filesystems are then stored *per client* in `` ${root_fs}/${client_identity} `` .
See :ref: `job-overview` for details.
2018-02-18 13:35:40 +01:00
2018-10-11 17:46:26 +02:00
* |feature| |break| |break_config| Manual snapshotting + triggering of replication
2018-02-18 13:35:40 +01:00
2018-10-11 17:46:26 +02:00
* |feature| :issue: `69` : include manually created snapshots in replication
* |break_config| `` manual `` and `` periodic `` :ref: `snapshotting types <job-snapshotting-spec>`
2018-10-22 11:27:00 +02:00
* |feature| `` zrepl signal wakeup JOB `` subcommand to trigger replication + pruning
* |feature| `` zrepl signal reset JOB `` subcommand to abort current replication + pruning
2018-02-18 13:28:46 +01:00
2018-10-11 17:46:26 +02:00
* |feature| |break| |break_config| New pruning system
2017-11-12 14:12:57 +01:00
2018-10-11 17:46:26 +02:00
* The active side of a replication (pull or push) decides what to prune for both sender and receiver.
The RPC protocol is used to execute the destroy operations on the remote side.
* New pruning policies (see :ref: `configuration documentation <prune>` )
2017-11-12 14:12:57 +01:00
2018-10-11 17:46:26 +02:00
* The decision what snapshots shall be pruned is now made based on *keep rules*
* |feature| :issue: `68` : keep rule `` not_replicated `` prevents divergence of sender and receiver
2017-11-12 14:12:57 +01:00
2018-10-11 17:46:26 +02:00
* |feature| |break| Bookmark pruning is no longer necessary
2017-11-12 14:12:57 +01:00
2018-10-11 17:46:26 +02:00
* Per filesystem, zrepl creates a single bookmark (`` #zrepl_replication_cursor `` ) and moves it forward with the most recent successfully replicated snapshot on the receiving side.
2018-10-22 11:27:00 +02:00
* Old bookmarks created by prior versions of zrepl (named like their corresponding snapshot) must be deleted manually.
2018-10-11 17:46:26 +02:00
* |break_config| `` keep_bookmarks `` parameter of the `` grid `` keep rule has been removed
2017-11-12 14:12:57 +01:00
2018-10-11 17:46:26 +02:00
* |feature| `` zrepl status `` for live-updating replication progress (it's really cool!)
2019-03-18 14:53:12 +01:00
* |feature| :ref: `Snapshot- & pruning-only job type <job-snap>` (for local snapshot management)
2018-10-11 17:46:26 +02:00
* |feature| :issue: `67` : Expose `Prometheus <https://prometheus.io> `_ metrics via HTTP (:ref: `config docs <monitoring-prometheus>` )
2017-11-12 14:12:57 +01:00
2019-03-18 12:45:27 +01:00
* Compatible Grafana dashboard shipping in `` dist/grafana ``
2018-10-11 17:46:26 +02:00
* |break_config| Logging outlet types must be specified using the `` type `` instead of `` outlet `` key
* |break| :issue: `53` : CLI: `` zrepl control * `` subcommands have been made direct subcommands of `` zrepl * ``
2018-10-13 16:26:23 +02:00
* |bugfix| Goroutine leak on ssh transport connection timeouts
2018-10-11 17:46:26 +02:00
* |bugfix| :issue: `81` :issue: `77` : handle failed accepts correctly (`` source `` job)
2019-03-18 12:46:16 +01:00
* |bugfix| :issue: `100` : fix incompatibility with ZoL 0.8
* |feature| :issue: `115` : logging: configurable syslog facility
2019-03-18 12:45:27 +01:00
* |feature| Systemd unit file in `` dist/systemd ``
2017-11-12 14:12:57 +01:00
2018-10-11 17:46:26 +02:00
.. |lastrelease| replace :: 0.0.3
2017-11-12 14:12:57 +01:00
2018-10-11 17:46:26 +02:00
Previous Releases
-----------------
2017-11-12 14:12:57 +01:00
2018-10-11 17:46:26 +02:00
.. NOTE ::
Due to limitations in our documentation system, we only show the changelog since the last release and the time this documentation is built.
For the changelog of previous releases, use the version selection in the hosted version of these docs at `zrepl.github.io <https://zrepl.github.io> `_ .