Skip to content

Commit

Permalink
Version 1.9.25
Browse files Browse the repository at this point in the history
  • Loading branch information
abbbi committed Jun 3, 2023
1 parent 88ae845 commit 5ab23d7
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 18 deletions.
4 changes: 4 additions & 0 deletions Changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Version 1.9.25
---------
* Fix typo in log messages.

Version 1.9.24
---------
* Remove leftover pid files in /var/tmp during offline backup (#114)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -886,7 +886,7 @@ like it would be possible using the `virsh -c` option:
## The thin provisioned backups are bigger than the original qcow images

Virtual machines using the qcow format do compress data. During backup, the
image contents are exposed as NDB device which is a RAW device. The backup data
image contents are exposed as NBD device which is a RAW device. The backup data
will be at least as big as the used data within the virtual machine.

You can use the `--compress` option or other tools to compress the backup
Expand Down
2 changes: 1 addition & 1 deletion libvirtnbdbackup/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""

__version__ = "1.9.24"
__version__ = "1.9.25"
2 changes: 1 addition & 1 deletion libvirtnbdbackup/argopt.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def addRemoteArgs(opt: _ArgumentGroup) -> None:
default=10809,
required=False,
help=(
"Port used by remote NDB Service, should be unique for each"
"Port used by remote NBD Service, should be unique for each"
" started backup. (default: %(default)s)"
),
)
Expand Down
2 changes: 1 addition & 1 deletion libvirtnbdbackup/extenthandler/extenthandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def queryExtentsNbd(self) -> List[_ExtentObj]:
maxRequestLen = self._setRequestAligment()
offset = 0
size = self._nbdFh.nbd.get_size()
log.debug("Size returned from NDB server: %s", size)
log.debug("Size returned from NBD server: %s", size)
lastExtentLen = len(self._extentEntries)
while offset < size:
if size < maxRequestLen:
Expand Down
6 changes: 3 additions & 3 deletions man/virtnbdbackup.1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.48.1.
.TH VIRTNBDBACKUP "1" "April 2023" "virtnbdbackup 1.9.24" "User Commands"
.TH VIRTNBDBACKUP "1" "June 2023" "virtnbdbackup 1.9.25" "User Commands"
.SH NAME
virtnbdbackup \- backup utility for libvirt
.SH DESCRIPTION
Expand Down Expand Up @@ -48,7 +48,7 @@ Backup only disk with target dev name (\fB\-i\fR vda)
Exclude disk(s) with target dev name (\fB\-x\fR vda,vdb)
.TP
\fB\-f\fR SOCKETFILE, \fB\-\-socketfile\fR SOCKETFILE
Use specified file for NBD Server socket (default: \fI\,/var/tmp/virtnbdbackup.51823\/\fP)
Use specified file for NBD Server socket (default: \fI\,/var/tmp/virtnbdbackup.4066\/\fP)
.TP
\fB\-n\fR, \fB\-\-noprogress\fR
Disable progress bar
Expand Down Expand Up @@ -82,7 +82,7 @@ User to authenticate against remote sshd: used for remote copy of files. (defaul
Password to authenticate against libvirtd. (default: None)
.TP
\fB\-P\fR NBD_PORT, \fB\-\-nbd\-port\fR NBD_PORT
Port used by remote NDB Service, should be unique for each started backup. (default: 10809)
Port used by remote NBD Service, should be unique for each started backup. (default: 10809)
.TP
\fB\-I\fR NBD_IP, \fB\-\-nbd\-ip\fR NBD_IP
IP used to bind remote NBD service on (default: hostname returned by libvirtd)
Expand Down
2 changes: 1 addition & 1 deletion man/virtnbdmap.1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.48.1.
.TH VIRTNBDMAP "1" "April 2023" "virtnbdmap 1.9.24" "User Commands"
.TH VIRTNBDMAP "1" "June 2023" "virtnbdmap 1.9.25" "User Commands"
.SH NAME
virtnbdmap \- map virtnbdbackup image files to nbd devices
.SH DESCRIPTION
Expand Down
6 changes: 3 additions & 3 deletions man/virtnbdrestore.1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.48.1.
.TH VIRTNBDRESTORE "1" "April 2023" "virtnbdrestore 1.9.24" "User Commands"
.TH VIRTNBDRESTORE "1" "June 2023" "virtnbdrestore 1.9.25" "User Commands"
.SH NAME
virtnbdrestore \- restore utility for libvirt
.SH DESCRIPTION
Expand Down Expand Up @@ -40,7 +40,7 @@ Process only disk matching target dev name. (default: None)
Disable progress bar
.TP
\fB\-f\fR SOCKETFILE, \fB\-\-socketfile\fR SOCKETFILE
Use specified file for NBD Server socket (default: \fI\,/var/tmp/virtnbdbackup.51828\/\fP)
Use specified file for NBD Server socket (default: \fI\,/var/tmp/virtnbdbackup.4071\/\fP)
.TP
\fB\-r\fR, \fB\-\-raw\fR
Copy raw images as is during restore. (default: False)
Expand Down Expand Up @@ -68,7 +68,7 @@ User to authenticate against remote sshd: used for remote copy of files. (defaul
Password to authenticate against libvirtd. (default: None)
.TP
\fB\-P\fR NBD_PORT, \fB\-\-nbd\-port\fR NBD_PORT
Port used by remote NDB Service, should be unique for each started backup. (default: 10809)
Port used by remote NBD Service, should be unique for each started backup. (default: 10809)
.TP
\fB\-I\fR NBD_IP, \fB\-\-nbd\-ip\fR NBD_IP
IP used to bind remote NBD service on (default: hostname returned by libvirtd)
Expand Down
13 changes: 6 additions & 7 deletions virtnbdbackup
Original file line number Diff line number Diff line change
Expand Up @@ -450,9 +450,8 @@ def main() -> None:
logging.error("Remote backup detected but ssh session setup failed")
sys.exit(1)
logging.info(
"Remote: NDB Endpoint socket: [%s:%s]",
"Remote NBD Endpoint host: [%s]",
virtClient.remoteHost,
args.socketfile,
)
if args.offline is True:
logging.info(
Expand All @@ -461,7 +460,7 @@ def main() -> None:
args.nbd_port + args.worker,
)
else:
logging.info("Local NDB Endpoint socket: [%s]", args.socketfile)
logging.info("Local NBD Endpoint socket: [%s]", args.socketfile)

if args.offline is not True:
logging.info("Temporary scratch file target directory: [%s]", args.scratchdir)
Expand Down Expand Up @@ -597,22 +596,22 @@ def startOfflineNBD(
socket = f"{args.socketfile}.{disk.target}"
if remoteHost != "":
logging.info(
"Offline backup, starting remote NDB server, socket: [%s:%s], port: [%s]",
"Offline backup, starting remote NBD server, socket: [%s:%s], port: [%s]",
remoteHost,
socket,
port,
)
nbdProc = qemu.util(disk.target).startRemoteBackupNbdServer(
args, disk, bitMap, port
)
logging.info("Remote NDB server started, PID: [%s].", nbdProc.pid)
logging.info("Remote NBD server started, PID: [%s].", nbdProc.pid)
return nbdProc

logging.info("Offline backup, starting local NDB server, socket: [%s]", socket)
logging.info("Offline backup, starting local NBD server, socket: [%s]", socket)
nbdProc = qemu.util(disk.target).startBackupNbdServer(
disk.format, disk.path, socket, bitMap
)
logging.info("Local NDB Service started, PID: [%s]", nbdProc.pid)
logging.info("Local NBD Service started, PID: [%s]", nbdProc.pid)
return nbdProc


Expand Down

0 comments on commit 5ab23d7

Please sign in to comment.