Add ovirt_imageio.admin python library for controlling the imageio daemon. The library provides the Client class, supporting adding, getting or deleting tickets. This library will replace the code in vdsm for manipulating tickets. The new ovirt-imageioctl command uses the admin library to manipulate tickets, providing way to manage tickets manually. This will be useful to test the Go client. The library and the command also make it possible to use the ovirt-imageio service on any host without oVirt installation. One use case can be a container image, starting a daemon for single image. The container startup script can install a ticket using the ovirt-imageioctl command. Change-Id: I2cc209f4a27d8b4a1021e49c214b7f1f7f229915 Signed-off-by: Nir Soffer <nsoffer@redhat.com>
13 lines
371 B
Python
Executable File
13 lines
371 B
Python
Executable File
#!/usr/bin/python3
|
|
# ovirt-imageio
|
|
# Copyright (C) 2021 Red Hat, Inc.
|
|
#
|
|
# This program is free software; you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
# (at your option) any later version.
|
|
|
|
from ovirt_imageio.admin import tool
|
|
|
|
tool.main()
|