Bug 904928 - [RFE] Aliases and set commands for ovirt-shell
Summary: [RFE] Aliases and set commands for ovirt-shell
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: oVirt
Classification: Retired
Component: ovirt-engine-cli
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Michael Pasternak
QA Contact:
URL:
Whiteboard: infra
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-28 08:27 UTC by Jiri Belka
Modified: 2014-01-13 00:38 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-12-01 10:18:47 UTC
oVirt Team: ---
Embargoed:


Attachments (Terms of Use)

Description Jiri Belka 2013-01-28 08:27:23 UTC
Could be implemented an ovirt-shell command like 'set' to set
configuration from ovirt-shell and save it.
 
Example:
> set username = "foo@domain"
> save -a # save all runtime settings  
 
3. Aliases like in lftp client?
> alias lsvmmyvm list vms --query "name=myvm*"
> save alias lsvmmyvm  
  
Actual results:
Changing configuration of ovirt-shell is right now possible
via editing config file on filesystem directly or to invoke
ovirt-shell with specific arguments.

Expected results:
Defining alias/set and then save them from ovirt-shell
would allow a user to save configuration without need to
have direct access to config file.

Additional info:
Original discussion on the list:
http://permalink.gmane.org/gmane.comp.emulators.ovirt.user/5374

Comment 1 Michael Pasternak 2013-01-28 08:34:47 UTC
(In reply to comment #0)
> Could be implemented an ovirt-shell command like 'set' to set
> configuration from ovirt-shell and save it.
>  
> Example:
> > set username = "foo@domain"
> > save -a # save all runtime settings  
>  
> 3. Aliases like in lftp client?
> > alias lsvmmyvm list vms --query "name=myvm*"
> > save alias lsvmmyvm  

this can be achieved via scripting interface, see [1].

[1] http://www.ovirt.org/CLI#Scripting

>   
> Actual results:
> Changing configuration of ovirt-shell is right now possible
> via editing config file on filesystem directly or to invoke
> ovirt-shell with specific arguments.
> 
> Expected results:
> Defining alias/set and then save them from ovirt-shell
> would allow a user to save configuration without need to
> have direct access to config file.
> 
> Additional info:
> Original discussion on the list:
> http://permalink.gmane.org/gmane.comp.emulators.ovirt.user/5374

Comment 2 Jiri Belka 2013-01-28 08:55:46 UTC
This,

'set' command to define/save configuration from ovirt-shell is useful, even more if BZ04939 would be implemented and users would have no access to filesystem to edit config and/or would not be allowed to define command args for ovirt-shell session.

Comment 3 Jiri Belka 2013-01-28 08:58:20 UTC
Sorry typo, talking about BZ904939 of course.

Comment 4 Itamar Heim 2013-12-01 10:18:47 UTC
Closing old bugs. If this issue is still relevant/important in current version, please re-open the bug.


Note You need to log in before you can comment on or make changes to this bug.