Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ovirt-img: add name option for disk #122

Merged
merged 1 commit into from
Aug 1, 2022

Conversation

aesteve-rh
Copy link
Member

Add '--name' option to the 'upload-disk' command
to allow users to define a custom alias name
for the new uploaded disk. If ommited, default
behaviour remains, taking the source image filename
as an alias.

usage: ovirt-img upload-disk [-h] [-c CONFIG] [--engine-url ENGINE_URL]
                             [--username USERNAME]
                             [--password-file PASSWORD_FILE] [--cafile CAFILE]
                             [--log-file LOG_FILE] [--log-level LOG_LEVEL]
                             [--max-workers MAX_WORKERS]
                             [--buffer-size BUFFER_SIZE] -s STORAGE_DOMAIN
                             [-f {raw,qcow2}] [--preallocated]
                             [--disk-id DISK_ID] [--name NAME]
                             filename
....
  --name NAME           Alias name for the new disk. If not specified, name
                        will correspond with the image filename.

Closes: #121
Signed-off-by: Albert Esteve aesteve@redhat.com

@aesteve-rh aesteve-rh added the enhancement Enhancing the system by adding new feature or improving performance or reliability label Aug 1, 2022
@aesteve-rh aesteve-rh added this to the ovirt-4.5.2 milestone Aug 1, 2022
@aesteve-rh aesteve-rh requested a review from nirs as a code owner August 1, 2022 12:47
@aesteve-rh aesteve-rh self-assigned this Aug 1, 2022
ovirt_imageio/client/_upload.py Outdated Show resolved Hide resolved
Add '--name' option to the 'upload-disk' command
to allow users to define a custom alias name
for the new uploaded disk. If ommited, default
behaviour remains, taking the source image filename
as an alias.

usage: ovirt-img upload-disk [-h] [-c CONFIG] [--engine-url ENGINE_URL]
                             [--username USERNAME]
                             [--password-file PASSWORD_FILE] [--cafile CAFILE]
                             [--log-file LOG_FILE] [--log-level LOG_LEVEL]
                             [--max-workers MAX_WORKERS]
                             [--buffer-size BUFFER_SIZE] -s STORAGE_DOMAIN
                             [-f {raw,qcow2}] [--preallocated]
                             [--disk-id DISK_ID] [--name NAME]
                             filename
....
  --name NAME           Alias name for the new disk. If not specified, name
                        will correspond with the image filename.

Closes: oVirt#121
Signed-off-by: Albert Esteve <aesteve@redhat.com>
@aesteve-rh aesteve-rh force-pushed the aesteve/ovirt-img-upload-disk-alias branch from 35cf8d2 to c293765 Compare August 1, 2022 14:09
@nirs nirs merged commit c77a1ba into oVirt:master Aug 1, 2022
@aesteve-rh aesteve-rh deleted the aesteve/ovirt-img-upload-disk-alias branch August 23, 2022 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancing the system by adding new feature or improving performance or reliability
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add option for custom disk alias for uploaded disk
2 participants