From Dan Kenigsberg <danken(a)redhat.com>:
Dan Kenigsberg has submitted this change and it was merged.
Change subject: vdsm-client: add help message per namespace
......................................................................
vdsm-client: add help message per namespace
help message is now generated from vdsm schema
and provides information for constructing a command.
vdsm-client -h
usage: vdsm-client [-h] [-a HOST] [-p PORT] [--unsecure] [--timeout TIMEOUT]
[-f FILE]
namespace method [arg=value] ...
Namespaces:
namespace method [arg=value]
Host
Task
LVMVolumeGroup
Image
VM
Volume
StorageDomain
ISCSIConnection
StoragePool
SDM
Lease
vdsm-client Lease -h
usage: vdsm-client Lease [-h] method [arg=value] ...
optional arguments:
-h, --help show this help message and exit
Lease methods:
method [arg=value]
rebuild_leases Rebuild external leases index on storage domain
status Return the underlying sanlock lease status
info Return external lease information
delete Delete an external lease (only on the SPM host)
create Create an external lease (only on the SPM host)
vdsm-client Lease create -h
usage: vdsm-client Lease create [-h] [arg=value [arg=value ...]]
positional arguments:
arg=value lease: The lease to create
JSON representation:
{
"lease": {
"sd_id": "UUID",
"lease_id": "UUID"
}
}
optional arguments:
-h, --help show this help message and exit
Change-Id: Ia9a8a605394e21fe5cbb7c3ddbe67d07a7da0f5c
Signed-off-by: Irit Goihman <igoihman(a)redhat.com>
---
M lib/vdsmclient/client.py
1 file changed, 61 insertions(+), 8 deletions(-)
Approvals:
Piotr Kliczewski: Looks good to me, approved
Yaniv Bronhaim: Looks good to me, but someone else must approve
Jenkins CI: Passed CI tests
Irit Goihman: Verified
--
To view, visit
https://gerrit.ovirt.org/68101
To unsubscribe, visit
https://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ia9a8a605394e21fe5cbb7c3ddbe67d07a7da0f5c
Gerrit-PatchSet: 10
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Irit Goihman <igoihman(a)redhat.com>
Gerrit-Reviewer: Dan Kenigsberg <danken(a)redhat.com>
Gerrit-Reviewer: Irit Goihman <igoihman(a)redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Martin Peřina <mperina(a)redhat.com>
Gerrit-Reviewer: Nir Soffer <nsoffer(a)redhat.com>
Gerrit-Reviewer: Piotr Kliczewski <piotr.kliczewski(a)gmail.com>
Gerrit-Reviewer: Yaniv Bronhaim <ybronhei(a)redhat.com>
Gerrit-Reviewer: gerrit-hooks <automation(a)ovirt.org>